{"version":3,"file":"vendor.bundle.js","sources":["webpack:///./~/moment/moment.js","webpack:///./~/@angular/core/@angular/core.es5.js","webpack:///./~/rxjs/Observable.js","webpack:///./~/jszip/lib/utils.js","webpack:///./~/jquery/dist/jquery.js","webpack:///./~/@angular/common/@angular/common.es5.js","webpack:///./~/rxjs/Subscriber.js","webpack:///./~/@angular/forms/@angular/forms.es5.js","webpack:///./~/jszip/lib/stream/GenericWorker.js","webpack:///./~/rxjs/util/root.js","webpack:///./~/@angular/platform-browser/@angular/platform-browser.es5.js","webpack:///./~/jszip/lib/support.js","webpack:///./~/pako/lib/utils/common.js","webpack:///./~/inherits/inherits_browser.js","webpack:///./~/readable-stream/lib/_stream_duplex.js","webpack:///./~/rxjs/Subject.js","webpack:///./~/rxjs/Subscription.js","webpack:///./~/buffer/index.js","webpack:///./~/jszip/lib/utf8.js","webpack:///./~/datatables.net/js/jquery.dataTables.js","webpack:///./~/@angular/http/@angular/http.es5.js","webpack:///./~/core-util-is/lib/util.js","webpack:///./~/jszip/lib/external.js","webpack:///./~/datatables.net-buttons/js/dataTables.buttons.js","webpack:///./~/@angularclass/hmr/dist/index.js","webpack:///./~/rxjs/OuterSubscriber.js","webpack:///./~/rxjs/util/subscribeToResult.js","webpack:///./~/rxjs/util/isArray.js","webpack:///./~/rxjs/add/operator/map.js","webpack:///./~/core-js/library/modules/_global.js","webpack:///./~/jszip/lib/nodejsUtils.js","webpack:///./~/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js","webpack:///./~/rxjs/util/errorObject.js","webpack:///./~/rxjs/observable/ArrayObservable.js","webpack:///./~/rxjs/observable/EmptyObservable.js","webpack:///./~/@angular/router/@angular/router.es5.js","webpack:///./~/rxjs/operator/map.js","webpack:///./~/rxjs/operator/mergeAll.js","webpack:///./~/rxjs/symbol/iterator.js","webpack:///./~/rxjs/util/EmptyError.js","webpack:///./~/rxjs/symbol/observable.js","webpack:///./~/rxjs/symbol/rxSubscriber.js","webpack:///./~/rxjs/add/operator/mergeMap.js","webpack:///./~/core-js/library/modules/_descriptors.js","webpack:///./~/core-js/library/modules/_is-object.js","webpack:///./~/events/events.js","webpack:///./~/jszip/lib/compressedObject.js","webpack:///./~/jszip/lib/crc32.js","webpack:///./~/pako/lib/zlib/messages.js","webpack:///./~/process-nextick-args/index.js","webpack:///./~/readable-stream/lib/_stream_writable.js","webpack:///./~/readable-stream/readable-browser.js","webpack:///./~/rxjs/operator/mergeMap.js","webpack:///./~/rxjs/util/isFunction.js","webpack:///./~/safe-buffer/browser.js","webpack:///./~/tether/dist/js/tether.js","webpack:///./~/rxjs/util/tryCatch.js","webpack:///./~/rxjs/util/isScheduler.js","webpack:///./~/rxjs/util/ObjectUnsubscribedError.js","webpack:///./~/rxjs/observable/ScalarObservable.js","webpack:///./~/rxjs/observable/fromPromise.js","webpack:///./~/rxjs/operator/filter.js","webpack:///./~/rxjs/observable/of.js","webpack:///./~/@angular/core/@angular async","webpack:///./~/core-js/library/modules/_core.js","webpack:///./~/core-js/library/modules/_ctx.js","webpack:///./~/core-js/library/modules/_dom-create.js","webpack:///./~/core-js/library/modules/_fails.js","webpack:///./~/isarray/index.js","webpack:///./~/jszip/lib/base64.js","webpack:///./~/jszip/lib/compressions.js","webpack:///./~/jszip/lib/defaults.js","webpack:///./~/jszip/lib/readable-stream-browser.js","webpack:///./~/jszip/lib/reader/ArrayReader.js","webpack:///./~/jszip/lib/reader/DataReader.js","webpack:///./~/jszip/lib/reader/Uint8ArrayReader.js","webpack:///./~/jszip/lib/reader/readerFor.js","webpack:///./~/jszip/lib/signature.js","webpack:///./~/jszip/lib/stream/Crc32Probe.js","webpack:///./~/jszip/lib/stream/DataLengthProbe.js","webpack:///./~/jszip/lib/stream/DataWorker.js","webpack:///./~/jszip/lib/stream/StreamHelper.js","webpack:///./~/moment/locale/af.js","webpack:///./~/moment/locale/ar-ly.js","webpack:///./~/moment/locale/ar-ma.js","webpack:///./~/moment/locale/ar-sa.js","webpack:///./~/moment/locale/ar-tn.js","webpack:///./~/moment/locale/ar.js","webpack:///./~/moment/locale/az.js","webpack:///./~/moment/locale/be.js","webpack:///./~/moment/locale/bg.js","webpack:///./~/moment/locale/bn.js","webpack:///./~/moment/locale/bo.js","webpack:///./~/moment/locale/br.js","webpack:///./~/moment/locale/bs.js","webpack:///./~/moment/locale/ca.js","webpack:///./~/moment/locale/cs.js","webpack:///./~/moment/locale/cv.js","webpack:///./~/moment/locale/cy.js","webpack:///./~/moment/locale/da.js","webpack:///./~/moment/locale/de-at.js","webpack:///./~/moment/locale/de.js","webpack:///./~/moment/locale/dv.js","webpack:///./~/moment/locale/el.js","webpack:///./~/moment/locale/en-au.js","webpack:///./~/moment/locale/en-ca.js","webpack:///./~/moment/locale/en-gb.js","webpack:///./~/moment/locale/en-ie.js","webpack:///./~/moment/locale/en-nz.js","webpack:///./~/moment/locale/eo.js","webpack:///./~/moment/locale/es-do.js","webpack:///./~/moment/locale/es.js","webpack:///./~/moment/locale/et.js","webpack:///./~/moment/locale/eu.js","webpack:///./~/moment/locale/fa.js","webpack:///./~/moment/locale/fi.js","webpack:///./~/moment/locale/fo.js","webpack:///./~/moment/locale/fr-ca.js","webpack:///./~/moment/locale/fr-ch.js","webpack:///./~/moment/locale/fr.js","webpack:///./~/moment/locale/fy.js","webpack:///./~/moment/locale/gd.js","webpack:///./~/moment/locale/gl.js","webpack:///./~/moment/locale/he.js","webpack:///./~/moment/locale/hi.js","webpack:///./~/moment/locale/hr.js","webpack:///./~/moment/locale/hu.js","webpack:///./~/moment/locale/hy-am.js","webpack:///./~/moment/locale/id.js","webpack:///./~/moment/locale/is.js","webpack:///./~/moment/locale/it.js","webpack:///./~/moment/locale/ja.js","webpack:///./~/moment/locale/jv.js","webpack:///./~/moment/locale/ka.js","webpack:///./~/moment/locale/kk.js","webpack:///./~/moment/locale/km.js","webpack:///./~/moment/locale/ko.js","webpack:///./~/moment/locale/ky.js","webpack:///./~/moment/locale/lb.js","webpack:///./~/moment/locale/lo.js","webpack:///./~/moment/locale/lt.js","webpack:///./~/moment/locale/lv.js","webpack:///./~/moment/locale/me.js","webpack:///./~/moment/locale/mi.js","webpack:///./~/moment/locale/mk.js","webpack:///./~/moment/locale/ml.js","webpack:///./~/moment/locale/mr.js","webpack:///./~/moment/locale/ms-my.js","webpack:///./~/moment/locale/ms.js","webpack:///./~/moment/locale/my.js","webpack:///./~/moment/locale/nb.js","webpack:///./~/moment/locale/ne.js","webpack:///./~/moment/locale/nl.js","webpack:///./~/moment/locale/nn.js","webpack:///./~/moment/locale/pa-in.js","webpack:///./~/moment/locale/pl.js","webpack:///./~/moment/locale/pt-br.js","webpack:///./~/moment/locale/pt.js","webpack:///./~/moment/locale/ro.js","webpack:///./~/moment/locale/ru.js","webpack:///./~/moment/locale/se.js","webpack:///./~/moment/locale/si.js","webpack:///./~/moment/locale/sk.js","webpack:///./~/moment/locale/sl.js","webpack:///./~/moment/locale/sq.js","webpack:///./~/moment/locale/sr-cyrl.js","webpack:///./~/moment/locale/sr.js","webpack:///./~/moment/locale/ss.js","webpack:///./~/moment/locale/sv.js","webpack:///./~/moment/locale/sw.js","webpack:///./~/moment/locale/ta.js","webpack:///./~/moment/locale/te.js","webpack:///./~/moment/locale/th.js","webpack:///./~/moment/locale/tl-ph.js","webpack:///./~/moment/locale/tlh.js","webpack:///./~/moment/locale/tr.js","webpack:///./~/moment/locale/tzl.js","webpack:///./~/moment/locale/tzm-latn.js","webpack:///./~/moment/locale/tzm.js","webpack:///./~/moment/locale/uk.js","webpack:///./~/moment/locale/uz.js","webpack:///./~/moment/locale/vi.js","webpack:///./~/moment/locale/x-pseudo.js","webpack:///./~/moment/locale/zh-cn.js","webpack:///./~/moment/locale/zh-hk.js","webpack:///./~/moment/locale/zh-tw.js","webpack:///./~/node-libs-browser/~/string_decoder/index.js","webpack:///./~/pako/lib/utils/strings.js","webpack:///./~/pako/lib/zlib/adler32.js","webpack:///./~/pako/lib/zlib/constants.js","webpack:///./~/pako/lib/zlib/crc32.js","webpack:///./~/pako/lib/zlib/zstream.js","webpack:///./~/readable-stream/lib/_stream_readable.js","webpack:///./~/readable-stream/lib/_stream_transform.js","webpack:///./~/readable-stream/lib/internal/streams/stream-browser.js","webpack:///./~/rxjs/Observer.js","webpack:///./~/rxjs/observable/PromiseObservable.js","webpack:///./~/rxjs/observable/from.js","webpack:///./~/rxjs/util/isObject.js","webpack:///./~/rxjs/util/isPromise.js","webpack:///./~/bootstrap-select/dist/js/bootstrap-select.js","webpack:///./~/bootstrap/dist/js/bootstrap.js","webpack:///./~/datatables.net-buttons/js/buttons.flash.js","webpack:///./~/datatables.net-buttons/js/buttons.html5.js","webpack:///./~/datatables.net-buttons/js/buttons.print.js","webpack:///./~/jquery-sparkline/jquery.sparkline.js","webpack:///./~/jszip/lib/index.js","webpack:///./~/messenger/build/js/messenger.js","webpack:///./~/pace/pace.js","webpack:///./~/select2/dist/js/select2.js","webpack:///./~/widgster/widgster.js","webpack:///./src/assets/Semantic/semantic.js","webpack:///./src/assets/datapicker/bootstrap-material-datetimepicker.js","webpack:///./src/assets/fileinput/fileinput.min.js","webpack:///./~/rxjs/operator/multicast.js","webpack:///./~/rxjs/Notification.js","webpack:///./~/rxjs/operator/reduce.js","webpack:///./~/rxjs/BehaviorSubject.js","webpack:///./~/rxjs/operator/observeOn.js","webpack:///./~/rxjs/SubjectSubscription.js","webpack:///./~/rxjs/observable/ConnectableObservable.js","webpack:///./~/rxjs/observable/FromObservable.js","webpack:///./~/rxjs/observable/forkJoin.js","webpack:///./~/rxjs/observable/merge.js","webpack:///./~/rxjs/operator/catch.js","webpack:///./~/rxjs/operator/concatAll.js","webpack:///./~/rxjs/operator/concatMap.js","webpack:///./~/rxjs/operator/every.js","webpack:///./~/rxjs/operator/first.js","webpack:///./~/rxjs/operator/last.js","webpack:///./~/rxjs/operator/merge.js","webpack:///./~/rxjs/operator/share.js","webpack:///./~/rxjs/util/UnsubscriptionError.js","webpack:///./~/hammerjs/hammer.js","webpack:///./~/@angular/compiler/@angular/compiler.es5.js","webpack:///./~/@angularclass/hmr/dist/helpers.js","webpack:///./~/base64-js/index.js","webpack:///./~/core-js/library/fn/set-immediate.js","webpack:///./~/core-js/library/modules/_a-function.js","webpack:///./~/core-js/library/modules/_an-object.js","webpack:///./~/core-js/library/modules/_cof.js","webpack:///./~/core-js/library/modules/_export.js","webpack:///./~/core-js/library/modules/_hide.js","webpack:///./~/core-js/library/modules/_html.js","webpack:///./~/core-js/library/modules/_ie8-dom-define.js","webpack:///./~/core-js/library/modules/_invoke.js","webpack:///./~/core-js/library/modules/_object-dp.js","webpack:///./~/core-js/library/modules/_property-desc.js","webpack:///./~/core-js/library/modules/_task.js","webpack:///./~/core-js/library/modules/_to-primitive.js","webpack:///./~/core-js/library/modules/web.immediate.js","webpack:///./~/ieee754/index.js","webpack:///./~/immediate/lib/browser.js","webpack:///./~/jszip/lib/flate.js","webpack:///./~/jszip/lib/generate/ZipFileWorker.js","webpack:///./~/jszip/lib/generate/index.js","webpack:///./~/jszip/lib/load.js","webpack:///./~/jszip/lib/nodejs/NodejsStreamInputAdapter.js","webpack:///./~/jszip/lib/nodejs/NodejsStreamOutputAdapter.js","webpack:///./~/jszip/lib/object.js","webpack:///./~/jszip/lib/reader/NodeBufferReader.js","webpack:///./~/jszip/lib/reader/StringReader.js","webpack:///./~/jszip/lib/stream/ConvertWorker.js","webpack:///./~/jszip/lib/zipEntries.js","webpack:///./~/jszip/lib/zipEntry.js","webpack:///./~/jszip/lib/zipObject.js","webpack:///./~/lie/lib/browser.js","webpack:///./~/moment/locale ^\\.\\/.*$","webpack:///./~/pako/index.js","webpack:///./~/pako/lib/deflate.js","webpack:///./~/pako/lib/inflate.js","webpack:///./~/pako/lib/zlib/deflate.js","webpack:///./~/pako/lib/zlib/gzheader.js","webpack:///./~/pako/lib/zlib/inffast.js","webpack:///./~/pako/lib/zlib/inflate.js","webpack:///./~/pako/lib/zlib/inftrees.js","webpack:///./~/pako/lib/zlib/trees.js","webpack:///./~/readable-stream/duplex-browser.js","webpack:///./~/readable-stream/lib/_stream_passthrough.js","webpack:///./~/readable-stream/lib/internal/streams/BufferList.js","webpack:///./~/readable-stream/passthrough.js","webpack:///./~/readable-stream/transform.js","webpack:///./~/readable-stream/writable-browser.js","webpack:///./~/rxjs/InnerSubscriber.js","webpack:///./~/rxjs/observable/ArrayLikeObservable.js","webpack:///./~/rxjs/observable/ForkJoinObservable.js","webpack:///./~/rxjs/observable/IteratorObservable.js","webpack:///./~/rxjs/util/toSubscriber.js","webpack:///./~/stream-browserify/index.js","webpack:///./~/util-deprecate/browser.js","webpack:///./~/util/support/isBufferBrowser.js","webpack:///./~/util/util.js","webpack:///(webpack)/buildin/module.js","webpack:///util (ignored)","webpack:///./src/vendor.browser.ts"],"sourcesContent":["//! moment.js\r\n//! version : 2.15.1\r\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\r\n//! license : MIT\r\n//! momentjs.com\r\n\r\n;(function (global, factory) {\r\n    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\r\n    typeof define === 'function' && define.amd ? define(factory) :\r\n    global.moment = factory()\r\n}(this, function () { 'use strict';\r\n\r\n    var hookCallback;\r\n\r\n    function utils_hooks__hooks () {\r\n        return hookCallback.apply(null, arguments);\r\n    }\r\n\r\n    // This is done to register the method called with moment()\r\n    // without creating circular dependencies.\r\n    function setHookCallback (callback) {\r\n        hookCallback = callback;\r\n    }\r\n\r\n    function isArray(input) {\r\n        return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';\r\n    }\r\n\r\n    function isObject(input) {\r\n        // IE8 will treat undefined and null as object if it wasn't for\r\n        // input != null\r\n        return input != null && Object.prototype.toString.call(input) === '[object Object]';\r\n    }\r\n\r\n    function isObjectEmpty(obj) {\r\n        var k;\r\n        for (k in obj) {\r\n            // even if its not own property I'd still call it non-empty\r\n            return false;\r\n        }\r\n        return true;\r\n    }\r\n\r\n    function isDate(input) {\r\n        return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';\r\n    }\r\n\r\n    function map(arr, fn) {\r\n        var res = [], i;\r\n        for (i = 0; i < arr.length; ++i) {\r\n            res.push(fn(arr[i], i));\r\n        }\r\n        return res;\r\n    }\r\n\r\n    function hasOwnProp(a, b) {\r\n        return Object.prototype.hasOwnProperty.call(a, b);\r\n    }\r\n\r\n    function extend(a, b) {\r\n        for (var i in b) {\r\n            if (hasOwnProp(b, i)) {\r\n                a[i] = b[i];\r\n            }\r\n        }\r\n\r\n        if (hasOwnProp(b, 'toString')) {\r\n            a.toString = b.toString;\r\n        }\r\n\r\n        if (hasOwnProp(b, 'valueOf')) {\r\n            a.valueOf = b.valueOf;\r\n        }\r\n\r\n        return a;\r\n    }\r\n\r\n    function create_utc__createUTC (input, format, locale, strict) {\r\n        return createLocalOrUTC(input, format, locale, strict, true).utc();\r\n    }\r\n\r\n    function defaultParsingFlags() {\r\n        // We need to deep clone this object.\r\n        return {\r\n            empty           : false,\r\n            unusedTokens    : [],\r\n            unusedInput     : [],\r\n            overflow        : -2,\r\n            charsLeftOver   : 0,\r\n            nullInput       : false,\r\n            invalidMonth    : null,\r\n            invalidFormat   : false,\r\n            userInvalidated : false,\r\n            iso             : false,\r\n            parsedDateParts : [],\r\n            meridiem        : null\r\n        };\r\n    }\r\n\r\n    function getParsingFlags(m) {\r\n        if (m._pf == null) {\r\n            m._pf = defaultParsingFlags();\r\n        }\r\n        return m._pf;\r\n    }\r\n\r\n    var some;\r\n    if (Array.prototype.some) {\r\n        some = Array.prototype.some;\r\n    } else {\r\n        some = function (fun) {\r\n            var t = Object(this);\r\n            var len = t.length >>> 0;\r\n\r\n            for (var i = 0; i < len; i++) {\r\n                if (i in t && fun.call(this, t[i], i, t)) {\r\n                    return true;\r\n                }\r\n            }\r\n\r\n            return false;\r\n        };\r\n    }\r\n\r\n    function valid__isValid(m) {\r\n        if (m._isValid == null) {\r\n            var flags = getParsingFlags(m);\r\n            var parsedParts = some.call(flags.parsedDateParts, function (i) {\r\n                return i != null;\r\n            });\r\n            var isNowValid = !isNaN(m._d.getTime()) &&\r\n                flags.overflow < 0 &&\r\n                !flags.empty &&\r\n                !flags.invalidMonth &&\r\n                !flags.invalidWeekday &&\r\n                !flags.nullInput &&\r\n                !flags.invalidFormat &&\r\n                !flags.userInvalidated &&\r\n                (!flags.meridiem || (flags.meridiem && parsedParts));\r\n\r\n            if (m._strict) {\r\n                isNowValid = isNowValid &&\r\n                    flags.charsLeftOver === 0 &&\r\n                    flags.unusedTokens.length === 0 &&\r\n                    flags.bigHour === undefined;\r\n            }\r\n\r\n            if (Object.isFrozen == null || !Object.isFrozen(m)) {\r\n                m._isValid = isNowValid;\r\n            }\r\n            else {\r\n                return isNowValid;\r\n            }\r\n        }\r\n        return m._isValid;\r\n    }\r\n\r\n    function valid__createInvalid (flags) {\r\n        var m = create_utc__createUTC(NaN);\r\n        if (flags != null) {\r\n            extend(getParsingFlags(m), flags);\r\n        }\r\n        else {\r\n            getParsingFlags(m).userInvalidated = true;\r\n        }\r\n\r\n        return m;\r\n    }\r\n\r\n    function isUndefined(input) {\r\n        return input === void 0;\r\n    }\r\n\r\n    // Plugins that add properties should also add the key here (null value),\r\n    // so we can properly clone ourselves.\r\n    var momentProperties = utils_hooks__hooks.momentProperties = [];\r\n\r\n    function copyConfig(to, from) {\r\n        var i, prop, val;\r\n\r\n        if (!isUndefined(from._isAMomentObject)) {\r\n            to._isAMomentObject = from._isAMomentObject;\r\n        }\r\n        if (!isUndefined(from._i)) {\r\n            to._i = from._i;\r\n        }\r\n        if (!isUndefined(from._f)) {\r\n            to._f = from._f;\r\n        }\r\n        if (!isUndefined(from._l)) {\r\n            to._l = from._l;\r\n        }\r\n        if (!isUndefined(from._strict)) {\r\n            to._strict = from._strict;\r\n        }\r\n        if (!isUndefined(from._tzm)) {\r\n            to._tzm = from._tzm;\r\n        }\r\n        if (!isUndefined(from._isUTC)) {\r\n            to._isUTC = from._isUTC;\r\n        }\r\n        if (!isUndefined(from._offset)) {\r\n            to._offset = from._offset;\r\n        }\r\n        if (!isUndefined(from._pf)) {\r\n            to._pf = getParsingFlags(from);\r\n        }\r\n        if (!isUndefined(from._locale)) {\r\n            to._locale = from._locale;\r\n        }\r\n\r\n        if (momentProperties.length > 0) {\r\n            for (i in momentProperties) {\r\n                prop = momentProperties[i];\r\n                val = from[prop];\r\n                if (!isUndefined(val)) {\r\n                    to[prop] = val;\r\n                }\r\n            }\r\n        }\r\n\r\n        return to;\r\n    }\r\n\r\n    var updateInProgress = false;\r\n\r\n    // Moment prototype object\r\n    function Moment(config) {\r\n        copyConfig(this, config);\r\n        this._d = new Date(config._d != null ? config._d.getTime() : NaN);\r\n        // Prevent infinite loop in case updateOffset creates new moment\r\n        // objects.\r\n        if (updateInProgress === false) {\r\n            updateInProgress = true;\r\n            utils_hooks__hooks.updateOffset(this);\r\n            updateInProgress = false;\r\n        }\r\n    }\r\n\r\n    function isMoment (obj) {\r\n        return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);\r\n    }\r\n\r\n    function absFloor (number) {\r\n        if (number < 0) {\r\n            // -0 -> 0\r\n            return Math.ceil(number) || 0;\r\n        } else {\r\n            return Math.floor(number);\r\n        }\r\n    }\r\n\r\n    function toInt(argumentForCoercion) {\r\n        var coercedNumber = +argumentForCoercion,\r\n            value = 0;\r\n\r\n        if (coercedNumber !== 0 && isFinite(coercedNumber)) {\r\n            value = absFloor(coercedNumber);\r\n        }\r\n\r\n        return value;\r\n    }\r\n\r\n    // compare two arrays, return the number of differences\r\n    function compareArrays(array1, array2, dontConvert) {\r\n        var len = Math.min(array1.length, array2.length),\r\n            lengthDiff = Math.abs(array1.length - array2.length),\r\n            diffs = 0,\r\n            i;\r\n        for (i = 0; i < len; i++) {\r\n            if ((dontConvert && array1[i] !== array2[i]) ||\r\n                (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {\r\n                diffs++;\r\n            }\r\n        }\r\n        return diffs + lengthDiff;\r\n    }\r\n\r\n    function warn(msg) {\r\n        if (utils_hooks__hooks.suppressDeprecationWarnings === false &&\r\n                (typeof console !==  'undefined') && console.warn) {\r\n            console.warn('Deprecation warning: ' + msg);\r\n        }\r\n    }\r\n\r\n    function deprecate(msg, fn) {\r\n        var firstTime = true;\r\n\r\n        return extend(function () {\r\n            if (utils_hooks__hooks.deprecationHandler != null) {\r\n                utils_hooks__hooks.deprecationHandler(null, msg);\r\n            }\r\n            if (firstTime) {\r\n                var args = [];\r\n                var arg;\r\n                for (var i = 0; i < arguments.length; i++) {\r\n                    arg = '';\r\n                    if (typeof arguments[i] === 'object') {\r\n                        arg += '\\n[' + i + '] ';\r\n                        for (var key in arguments[0]) {\r\n                            arg += key + ': ' + arguments[0][key] + ', ';\r\n                        }\r\n                        arg = arg.slice(0, -2); // Remove trailing comma and space\r\n                    } else {\r\n                        arg = arguments[i];\r\n                    }\r\n                    args.push(arg);\r\n                }\r\n                warn(msg + '\\nArguments: ' + Array.prototype.slice.call(args).join('') + '\\n' + (new Error()).stack);\r\n                firstTime = false;\r\n            }\r\n            return fn.apply(this, arguments);\r\n        }, fn);\r\n    }\r\n\r\n    var deprecations = {};\r\n\r\n    function deprecateSimple(name, msg) {\r\n        if (utils_hooks__hooks.deprecationHandler != null) {\r\n            utils_hooks__hooks.deprecationHandler(name, msg);\r\n        }\r\n        if (!deprecations[name]) {\r\n            warn(msg);\r\n            deprecations[name] = true;\r\n        }\r\n    }\r\n\r\n    utils_hooks__hooks.suppressDeprecationWarnings = false;\r\n    utils_hooks__hooks.deprecationHandler = null;\r\n\r\n    function isFunction(input) {\r\n        return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';\r\n    }\r\n\r\n    function locale_set__set (config) {\r\n        var prop, i;\r\n        for (i in config) {\r\n            prop = config[i];\r\n            if (isFunction(prop)) {\r\n                this[i] = prop;\r\n            } else {\r\n                this['_' + i] = prop;\r\n            }\r\n        }\r\n        this._config = config;\r\n        // Lenient ordinal parsing accepts just a number in addition to\r\n        // number + (possibly) stuff coming from _ordinalParseLenient.\r\n        this._ordinalParseLenient = new RegExp(this._ordinalParse.source + '|' + (/\\d{1,2}/).source);\r\n    }\r\n\r\n    function mergeConfigs(parentConfig, childConfig) {\r\n        var res = extend({}, parentConfig), prop;\r\n        for (prop in childConfig) {\r\n            if (hasOwnProp(childConfig, prop)) {\r\n                if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\r\n                    res[prop] = {};\r\n                    extend(res[prop], parentConfig[prop]);\r\n                    extend(res[prop], childConfig[prop]);\r\n                } else if (childConfig[prop] != null) {\r\n                    res[prop] = childConfig[prop];\r\n                } else {\r\n                    delete res[prop];\r\n                }\r\n            }\r\n        }\r\n        for (prop in parentConfig) {\r\n            if (hasOwnProp(parentConfig, prop) &&\r\n                    !hasOwnProp(childConfig, prop) &&\r\n                    isObject(parentConfig[prop])) {\r\n                // make sure changes to properties don't modify parent config\r\n                res[prop] = extend({}, res[prop]);\r\n            }\r\n        }\r\n        return res;\r\n    }\r\n\r\n    function Locale(config) {\r\n        if (config != null) {\r\n            this.set(config);\r\n        }\r\n    }\r\n\r\n    var keys;\r\n\r\n    if (Object.keys) {\r\n        keys = Object.keys;\r\n    } else {\r\n        keys = function (obj) {\r\n            var i, res = [];\r\n            for (i in obj) {\r\n                if (hasOwnProp(obj, i)) {\r\n                    res.push(i);\r\n                }\r\n            }\r\n            return res;\r\n        };\r\n    }\r\n\r\n    var defaultCalendar = {\r\n        sameDay : '[Today at] LT',\r\n        nextDay : '[Tomorrow at] LT',\r\n        nextWeek : 'dddd [at] LT',\r\n        lastDay : '[Yesterday at] LT',\r\n        lastWeek : '[Last] dddd [at] LT',\r\n        sameElse : 'L'\r\n    };\r\n\r\n    function locale_calendar__calendar (key, mom, now) {\r\n        var output = this._calendar[key] || this._calendar['sameElse'];\r\n        return isFunction(output) ? output.call(mom, now) : output;\r\n    }\r\n\r\n    var defaultLongDateFormat = {\r\n        LTS  : 'h:mm:ss A',\r\n        LT   : 'h:mm A',\r\n        L    : 'MM/DD/YYYY',\r\n        LL   : 'MMMM D, YYYY',\r\n        LLL  : 'MMMM D, YYYY h:mm A',\r\n        LLLL : 'dddd, MMMM D, YYYY h:mm A'\r\n    };\r\n\r\n    function longDateFormat (key) {\r\n        var format = this._longDateFormat[key],\r\n            formatUpper = this._longDateFormat[key.toUpperCase()];\r\n\r\n        if (format || !formatUpper) {\r\n            return format;\r\n        }\r\n\r\n        this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {\r\n            return val.slice(1);\r\n        });\r\n\r\n        return this._longDateFormat[key];\r\n    }\r\n\r\n    var defaultInvalidDate = 'Invalid date';\r\n\r\n    function invalidDate () {\r\n        return this._invalidDate;\r\n    }\r\n\r\n    var defaultOrdinal = '%d';\r\n    var defaultOrdinalParse = /\\d{1,2}/;\r\n\r\n    function ordinal (number) {\r\n        return this._ordinal.replace('%d', number);\r\n    }\r\n\r\n    var defaultRelativeTime = {\r\n        future : 'in %s',\r\n        past   : '%s ago',\r\n        s  : 'a few seconds',\r\n        m  : 'a minute',\r\n        mm : '%d minutes',\r\n        h  : 'an hour',\r\n        hh : '%d hours',\r\n        d  : 'a day',\r\n        dd : '%d days',\r\n        M  : 'a month',\r\n        MM : '%d months',\r\n        y  : 'a year',\r\n        yy : '%d years'\r\n    };\r\n\r\n    function relative__relativeTime (number, withoutSuffix, string, isFuture) {\r\n        var output = this._relativeTime[string];\r\n        return (isFunction(output)) ?\r\n            output(number, withoutSuffix, string, isFuture) :\r\n            output.replace(/%d/i, number);\r\n    }\r\n\r\n    function pastFuture (diff, output) {\r\n        var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\r\n        return isFunction(format) ? format(output) : format.replace(/%s/i, output);\r\n    }\r\n\r\n    var aliases = {};\r\n\r\n    function addUnitAlias (unit, shorthand) {\r\n        var lowerCase = unit.toLowerCase();\r\n        aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\r\n    }\r\n\r\n    function normalizeUnits(units) {\r\n        return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;\r\n    }\r\n\r\n    function normalizeObjectUnits(inputObject) {\r\n        var normalizedInput = {},\r\n            normalizedProp,\r\n            prop;\r\n\r\n        for (prop in inputObject) {\r\n            if (hasOwnProp(inputObject, prop)) {\r\n                normalizedProp = normalizeUnits(prop);\r\n                if (normalizedProp) {\r\n                    normalizedInput[normalizedProp] = inputObject[prop];\r\n                }\r\n            }\r\n        }\r\n\r\n        return normalizedInput;\r\n    }\r\n\r\n    var priorities = {};\r\n\r\n    function addUnitPriority(unit, priority) {\r\n        priorities[unit] = priority;\r\n    }\r\n\r\n    function getPrioritizedUnits(unitsObj) {\r\n        var units = [];\r\n        for (var u in unitsObj) {\r\n            units.push({unit: u, priority: priorities[u]});\r\n        }\r\n        units.sort(function (a, b) {\r\n            return a.priority - b.priority;\r\n        });\r\n        return units;\r\n    }\r\n\r\n    function makeGetSet (unit, keepTime) {\r\n        return function (value) {\r\n            if (value != null) {\r\n                get_set__set(this, unit, value);\r\n                utils_hooks__hooks.updateOffset(this, keepTime);\r\n                return this;\r\n            } else {\r\n                return get_set__get(this, unit);\r\n            }\r\n        };\r\n    }\r\n\r\n    function get_set__get (mom, unit) {\r\n        return mom.isValid() ?\r\n            mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;\r\n    }\r\n\r\n    function get_set__set (mom, unit, value) {\r\n        if (mom.isValid()) {\r\n            mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\r\n        }\r\n    }\r\n\r\n    // MOMENTS\r\n\r\n    function stringGet (units) {\r\n        units = normalizeUnits(units);\r\n        if (isFunction(this[units])) {\r\n            return this[units]();\r\n        }\r\n        return this;\r\n    }\r\n\r\n\r\n    function stringSet (units, value) {\r\n        if (typeof units === 'object') {\r\n            units = normalizeObjectUnits(units);\r\n            var prioritized = getPrioritizedUnits(units);\r\n            for (var i = 0; i < prioritized.length; i++) {\r\n                this[prioritized[i].unit](units[prioritized[i].unit]);\r\n            }\r\n        } else {\r\n            units = normalizeUnits(units);\r\n            if (isFunction(this[units])) {\r\n                return this[units](value);\r\n            }\r\n        }\r\n        return this;\r\n    }\r\n\r\n    function zeroFill(number, targetLength, forceSign) {\r\n        var absNumber = '' + Math.abs(number),\r\n            zerosToFill = targetLength - absNumber.length,\r\n            sign = number >= 0;\r\n        return (sign ? (forceSign ? '+' : '') : '-') +\r\n            Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;\r\n    }\r\n\r\n    var formattingTokens = /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;\r\n\r\n    var localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g;\r\n\r\n    var formatFunctions = {};\r\n\r\n    var formatTokenFunctions = {};\r\n\r\n    // token:    'M'\r\n    // padded:   ['MM', 2]\r\n    // ordinal:  'Mo'\r\n    // callback: function () { this.month() + 1 }\r\n    function addFormatToken (token, padded, ordinal, callback) {\r\n        var func = callback;\r\n        if (typeof callback === 'string') {\r\n            func = function () {\r\n                return this[callback]();\r\n            };\r\n        }\r\n        if (token) {\r\n            formatTokenFunctions[token] = func;\r\n        }\r\n        if (padded) {\r\n            formatTokenFunctions[padded[0]] = function () {\r\n                return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\r\n            };\r\n        }\r\n        if (ordinal) {\r\n            formatTokenFunctions[ordinal] = function () {\r\n                return this.localeData().ordinal(func.apply(this, arguments), token);\r\n            };\r\n        }\r\n    }\r\n\r\n    function removeFormattingTokens(input) {\r\n        if (input.match(/\\[[\\s\\S]/)) {\r\n            return input.replace(/^\\[|\\]$/g, '');\r\n        }\r\n        return input.replace(/\\\\/g, '');\r\n    }\r\n\r\n    function makeFormatFunction(format) {\r\n        var array = format.match(formattingTokens), i, length;\r\n\r\n        for (i = 0, length = array.length; i < length; i++) {\r\n            if (formatTokenFunctions[array[i]]) {\r\n                array[i] = formatTokenFunctions[array[i]];\r\n            } else {\r\n                array[i] = removeFormattingTokens(array[i]);\r\n            }\r\n        }\r\n\r\n        return function (mom) {\r\n            var output = '', i;\r\n            for (i = 0; i < length; i++) {\r\n                output += array[i] instanceof Function ? array[i].call(mom, format) : array[i];\r\n            }\r\n            return output;\r\n        };\r\n    }\r\n\r\n    // format date using native date object\r\n    function formatMoment(m, format) {\r\n        if (!m.isValid()) {\r\n            return m.localeData().invalidDate();\r\n        }\r\n\r\n        format = expandFormat(format, m.localeData());\r\n        formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);\r\n\r\n        return formatFunctions[format](m);\r\n    }\r\n\r\n    function expandFormat(format, locale) {\r\n        var i = 5;\r\n\r\n        function replaceLongDateFormatTokens(input) {\r\n            return locale.longDateFormat(input) || input;\r\n        }\r\n\r\n        localFormattingTokens.lastIndex = 0;\r\n        while (i >= 0 && localFormattingTokens.test(format)) {\r\n            format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);\r\n            localFormattingTokens.lastIndex = 0;\r\n            i -= 1;\r\n        }\r\n\r\n        return format;\r\n    }\r\n\r\n    var match1         = /\\d/;            //       0 - 9\r\n    var match2         = /\\d\\d/;          //      00 - 99\r\n    var match3         = /\\d{3}/;         //     000 - 999\r\n    var match4         = /\\d{4}/;         //    0000 - 9999\r\n    var match6         = /[+-]?\\d{6}/;    // -999999 - 999999\r\n    var match1to2      = /\\d\\d?/;         //       0 - 99\r\n    var match3to4      = /\\d\\d\\d\\d?/;     //     999 - 9999\r\n    var match5to6      = /\\d\\d\\d\\d\\d\\d?/; //   99999 - 999999\r\n    var match1to3      = /\\d{1,3}/;       //       0 - 999\r\n    var match1to4      = /\\d{1,4}/;       //       0 - 9999\r\n    var match1to6      = /[+-]?\\d{1,6}/;  // -999999 - 999999\r\n\r\n    var matchUnsigned  = /\\d+/;           //       0 - inf\r\n    var matchSigned    = /[+-]?\\d+/;      //    -inf - inf\r\n\r\n    var matchOffset    = /Z|[+-]\\d\\d:?\\d\\d/gi; // +00:00 -00:00 +0000 -0000 or Z\r\n    var matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z\r\n\r\n    var matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/; // 123456789 123456789.123\r\n\r\n    // any word (or two) characters or numbers including two/three word month in arabic.\r\n    // includes scottish gaelic two word and hyphenated months\r\n    var matchWord = /[0-9]*['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+|[\\u0600-\\u06FF\\/]+(\\s*?[\\u0600-\\u06FF]+){1,2}/i;\r\n\r\n\r\n    var regexes = {};\r\n\r\n    function addRegexToken (token, regex, strictRegex) {\r\n        regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {\r\n            return (isStrict && strictRegex) ? strictRegex : regex;\r\n        };\r\n    }\r\n\r\n    function getParseRegexForToken (token, config) {\r\n        if (!hasOwnProp(regexes, token)) {\r\n            return new RegExp(unescapeFormat(token));\r\n        }\r\n\r\n        return regexes[token](config._strict, config._locale);\r\n    }\r\n\r\n    // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\r\n    function unescapeFormat(s) {\r\n        return regexEscape(s.replace('\\\\', '').replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function (matched, p1, p2, p3, p4) {\r\n            return p1 || p2 || p3 || p4;\r\n        }));\r\n    }\r\n\r\n    function regexEscape(s) {\r\n        return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\r\n    }\r\n\r\n    var tokens = {};\r\n\r\n    function addParseToken (token, callback) {\r\n        var i, func = callback;\r\n        if (typeof token === 'string') {\r\n            token = [token];\r\n        }\r\n        if (typeof callback === 'number') {\r\n            func = function (input, array) {\r\n                array[callback] = toInt(input);\r\n            };\r\n        }\r\n        for (i = 0; i < token.length; i++) {\r\n            tokens[token[i]] = func;\r\n        }\r\n    }\r\n\r\n    function addWeekParseToken (token, callback) {\r\n        addParseToken(token, function (input, array, config, token) {\r\n            config._w = config._w || {};\r\n            callback(input, config._w, config, token);\r\n        });\r\n    }\r\n\r\n    function addTimeToArrayFromToken(token, input, config) {\r\n        if (input != null && hasOwnProp(tokens, token)) {\r\n            tokens[token](input, config._a, config, token);\r\n        }\r\n    }\r\n\r\n    var YEAR = 0;\r\n    var MONTH = 1;\r\n    var DATE = 2;\r\n    var HOUR = 3;\r\n    var MINUTE = 4;\r\n    var SECOND = 5;\r\n    var MILLISECOND = 6;\r\n    var WEEK = 7;\r\n    var WEEKDAY = 8;\r\n\r\n    var indexOf;\r\n\r\n    if (Array.prototype.indexOf) {\r\n        indexOf = Array.prototype.indexOf;\r\n    } else {\r\n        indexOf = function (o) {\r\n            // I know\r\n            var i;\r\n            for (i = 0; i < this.length; ++i) {\r\n                if (this[i] === o) {\r\n                    return i;\r\n                }\r\n            }\r\n            return -1;\r\n        };\r\n    }\r\n\r\n    function daysInMonth(year, month) {\r\n        return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();\r\n    }\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('M', ['MM', 2], 'Mo', function () {\r\n        return this.month() + 1;\r\n    });\r\n\r\n    addFormatToken('MMM', 0, 0, function (format) {\r\n        return this.localeData().monthsShort(this, format);\r\n    });\r\n\r\n    addFormatToken('MMMM', 0, 0, function (format) {\r\n        return this.localeData().months(this, format);\r\n    });\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('month', 'M');\r\n\r\n    // PRIORITY\r\n\r\n    addUnitPriority('month', 8);\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('M',    match1to2);\r\n    addRegexToken('MM',   match1to2, match2);\r\n    addRegexToken('MMM',  function (isStrict, locale) {\r\n        return locale.monthsShortRegex(isStrict);\r\n    });\r\n    addRegexToken('MMMM', function (isStrict, locale) {\r\n        return locale.monthsRegex(isStrict);\r\n    });\r\n\r\n    addParseToken(['M', 'MM'], function (input, array) {\r\n        array[MONTH] = toInt(input) - 1;\r\n    });\r\n\r\n    addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\r\n        var month = config._locale.monthsParse(input, token, config._strict);\r\n        // if we didn't find a month name, mark the date as invalid.\r\n        if (month != null) {\r\n            array[MONTH] = month;\r\n        } else {\r\n            getParsingFlags(config).invalidMonth = input;\r\n        }\r\n    });\r\n\r\n    // LOCALES\r\n\r\n    var MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s+)+MMMM?/;\r\n    var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');\r\n    function localeMonths (m, format) {\r\n        if (!m) {\r\n            return this._months;\r\n        }\r\n        return isArray(this._months) ? this._months[m.month()] :\r\n            this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];\r\n    }\r\n\r\n    var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');\r\n    function localeMonthsShort (m, format) {\r\n        if (!m) {\r\n            return this._monthsShort;\r\n        }\r\n        return isArray(this._monthsShort) ? this._monthsShort[m.month()] :\r\n            this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];\r\n    }\r\n\r\n    function units_month__handleStrictParse(monthName, format, strict) {\r\n        var i, ii, mom, llc = monthName.toLocaleLowerCase();\r\n        if (!this._monthsParse) {\r\n            // this is not used\r\n            this._monthsParse = [];\r\n            this._longMonthsParse = [];\r\n            this._shortMonthsParse = [];\r\n            for (i = 0; i < 12; ++i) {\r\n                mom = create_utc__createUTC([2000, i]);\r\n                this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();\r\n                this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\r\n            }\r\n        }\r\n\r\n        if (strict) {\r\n            if (format === 'MMM') {\r\n                ii = indexOf.call(this._shortMonthsParse, llc);\r\n                return ii !== -1 ? ii : null;\r\n            } else {\r\n                ii = indexOf.call(this._longMonthsParse, llc);\r\n                return ii !== -1 ? ii : null;\r\n            }\r\n        } else {\r\n            if (format === 'MMM') {\r\n                ii = indexOf.call(this._shortMonthsParse, llc);\r\n                if (ii !== -1) {\r\n                    return ii;\r\n                }\r\n                ii = indexOf.call(this._longMonthsParse, llc);\r\n                return ii !== -1 ? ii : null;\r\n            } else {\r\n                ii = indexOf.call(this._longMonthsParse, llc);\r\n                if (ii !== -1) {\r\n                    return ii;\r\n                }\r\n                ii = indexOf.call(this._shortMonthsParse, llc);\r\n                return ii !== -1 ? ii : null;\r\n            }\r\n        }\r\n    }\r\n\r\n    function localeMonthsParse (monthName, format, strict) {\r\n        var i, mom, regex;\r\n\r\n        if (this._monthsParseExact) {\r\n            return units_month__handleStrictParse.call(this, monthName, format, strict);\r\n        }\r\n\r\n        if (!this._monthsParse) {\r\n            this._monthsParse = [];\r\n            this._longMonthsParse = [];\r\n            this._shortMonthsParse = [];\r\n        }\r\n\r\n        // TODO: add sorting\r\n        // Sorting makes sure if one month (or abbr) is a prefix of another\r\n        // see sorting in computeMonthsParse\r\n        for (i = 0; i < 12; i++) {\r\n            // make the regex if we don't have it already\r\n            mom = create_utc__createUTC([2000, i]);\r\n            if (strict && !this._longMonthsParse[i]) {\r\n                this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');\r\n                this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');\r\n            }\r\n            if (!strict && !this._monthsParse[i]) {\r\n                regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\r\n                this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\r\n            }\r\n            // test the regex\r\n            if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {\r\n                return i;\r\n            } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {\r\n                return i;\r\n            } else if (!strict && this._monthsParse[i].test(monthName)) {\r\n                return i;\r\n            }\r\n        }\r\n    }\r\n\r\n    // MOMENTS\r\n\r\n    function setMonth (mom, value) {\r\n        var dayOfMonth;\r\n\r\n        if (!mom.isValid()) {\r\n            // No op\r\n            return mom;\r\n        }\r\n\r\n        if (typeof value === 'string') {\r\n            if (/^\\d+$/.test(value)) {\r\n                value = toInt(value);\r\n            } else {\r\n                value = mom.localeData().monthsParse(value);\r\n                // TODO: Another silent failure?\r\n                if (typeof value !== 'number') {\r\n                    return mom;\r\n                }\r\n            }\r\n        }\r\n\r\n        dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\r\n        mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\r\n        return mom;\r\n    }\r\n\r\n    function getSetMonth (value) {\r\n        if (value != null) {\r\n            setMonth(this, value);\r\n            utils_hooks__hooks.updateOffset(this, true);\r\n            return this;\r\n        } else {\r\n            return get_set__get(this, 'Month');\r\n        }\r\n    }\r\n\r\n    function getDaysInMonth () {\r\n        return daysInMonth(this.year(), this.month());\r\n    }\r\n\r\n    var defaultMonthsShortRegex = matchWord;\r\n    function monthsShortRegex (isStrict) {\r\n        if (this._monthsParseExact) {\r\n            if (!hasOwnProp(this, '_monthsRegex')) {\r\n                computeMonthsParse.call(this);\r\n            }\r\n            if (isStrict) {\r\n                return this._monthsShortStrictRegex;\r\n            } else {\r\n                return this._monthsShortRegex;\r\n            }\r\n        } else {\r\n            if (!hasOwnProp(this, '_monthsShortRegex')) {\r\n                this._monthsShortRegex = defaultMonthsShortRegex;\r\n            }\r\n            return this._monthsShortStrictRegex && isStrict ?\r\n                this._monthsShortStrictRegex : this._monthsShortRegex;\r\n        }\r\n    }\r\n\r\n    var defaultMonthsRegex = matchWord;\r\n    function monthsRegex (isStrict) {\r\n        if (this._monthsParseExact) {\r\n            if (!hasOwnProp(this, '_monthsRegex')) {\r\n                computeMonthsParse.call(this);\r\n            }\r\n            if (isStrict) {\r\n                return this._monthsStrictRegex;\r\n            } else {\r\n                return this._monthsRegex;\r\n            }\r\n        } else {\r\n            if (!hasOwnProp(this, '_monthsRegex')) {\r\n                this._monthsRegex = defaultMonthsRegex;\r\n            }\r\n            return this._monthsStrictRegex && isStrict ?\r\n                this._monthsStrictRegex : this._monthsRegex;\r\n        }\r\n    }\r\n\r\n    function computeMonthsParse () {\r\n        function cmpLenRev(a, b) {\r\n            return b.length - a.length;\r\n        }\r\n\r\n        var shortPieces = [], longPieces = [], mixedPieces = [],\r\n            i, mom;\r\n        for (i = 0; i < 12; i++) {\r\n            // make the regex if we don't have it already\r\n            mom = create_utc__createUTC([2000, i]);\r\n            shortPieces.push(this.monthsShort(mom, ''));\r\n            longPieces.push(this.months(mom, ''));\r\n            mixedPieces.push(this.months(mom, ''));\r\n            mixedPieces.push(this.monthsShort(mom, ''));\r\n        }\r\n        // Sorting makes sure if one month (or abbr) is a prefix of another it\r\n        // will match the longer piece.\r\n        shortPieces.sort(cmpLenRev);\r\n        longPieces.sort(cmpLenRev);\r\n        mixedPieces.sort(cmpLenRev);\r\n        for (i = 0; i < 12; i++) {\r\n            shortPieces[i] = regexEscape(shortPieces[i]);\r\n            longPieces[i] = regexEscape(longPieces[i]);\r\n        }\r\n        for (i = 0; i < 24; i++) {\r\n            mixedPieces[i] = regexEscape(mixedPieces[i]);\r\n        }\r\n\r\n        this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\r\n        this._monthsShortRegex = this._monthsRegex;\r\n        this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');\r\n        this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');\r\n    }\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('Y', 0, 0, function () {\r\n        var y = this.year();\r\n        return y <= 9999 ? '' + y : '+' + y;\r\n    });\r\n\r\n    addFormatToken(0, ['YY', 2], 0, function () {\r\n        return this.year() % 100;\r\n    });\r\n\r\n    addFormatToken(0, ['YYYY',   4],       0, 'year');\r\n    addFormatToken(0, ['YYYYY',  5],       0, 'year');\r\n    addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('year', 'y');\r\n\r\n    // PRIORITIES\r\n\r\n    addUnitPriority('year', 1);\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('Y',      matchSigned);\r\n    addRegexToken('YY',     match1to2, match2);\r\n    addRegexToken('YYYY',   match1to4, match4);\r\n    addRegexToken('YYYYY',  match1to6, match6);\r\n    addRegexToken('YYYYYY', match1to6, match6);\r\n\r\n    addParseToken(['YYYYY', 'YYYYYY'], YEAR);\r\n    addParseToken('YYYY', function (input, array) {\r\n        array[YEAR] = input.length === 2 ? utils_hooks__hooks.parseTwoDigitYear(input) : toInt(input);\r\n    });\r\n    addParseToken('YY', function (input, array) {\r\n        array[YEAR] = utils_hooks__hooks.parseTwoDigitYear(input);\r\n    });\r\n    addParseToken('Y', function (input, array) {\r\n        array[YEAR] = parseInt(input, 10);\r\n    });\r\n\r\n    // HELPERS\r\n\r\n    function daysInYear(year) {\r\n        return isLeapYear(year) ? 366 : 365;\r\n    }\r\n\r\n    function isLeapYear(year) {\r\n        return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\r\n    }\r\n\r\n    // HOOKS\r\n\r\n    utils_hooks__hooks.parseTwoDigitYear = function (input) {\r\n        return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\r\n    };\r\n\r\n    // MOMENTS\r\n\r\n    var getSetYear = makeGetSet('FullYear', true);\r\n\r\n    function getIsLeapYear () {\r\n        return isLeapYear(this.year());\r\n    }\r\n\r\n    function createDate (y, m, d, h, M, s, ms) {\r\n        //can't just apply() to create a date:\r\n        //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply\r\n        var date = new Date(y, m, d, h, M, s, ms);\r\n\r\n        //the date constructor remaps years 0-99 to 1900-1999\r\n        if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {\r\n            date.setFullYear(y);\r\n        }\r\n        return date;\r\n    }\r\n\r\n    function createUTCDate (y) {\r\n        var date = new Date(Date.UTC.apply(null, arguments));\r\n\r\n        //the Date.UTC function remaps years 0-99 to 1900-1999\r\n        if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {\r\n            date.setUTCFullYear(y);\r\n        }\r\n        return date;\r\n    }\r\n\r\n    // start-of-first-week - start-of-year\r\n    function firstWeekOffset(year, dow, doy) {\r\n        var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\r\n            fwd = 7 + dow - doy,\r\n            // first-week day local weekday -- which local weekday is fwd\r\n            fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\r\n\r\n        return -fwdlw + fwd - 1;\r\n    }\r\n\r\n    //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\r\n    function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\r\n        var localWeekday = (7 + weekday - dow) % 7,\r\n            weekOffset = firstWeekOffset(year, dow, doy),\r\n            dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\r\n            resYear, resDayOfYear;\r\n\r\n        if (dayOfYear <= 0) {\r\n            resYear = year - 1;\r\n            resDayOfYear = daysInYear(resYear) + dayOfYear;\r\n        } else if (dayOfYear > daysInYear(year)) {\r\n            resYear = year + 1;\r\n            resDayOfYear = dayOfYear - daysInYear(year);\r\n        } else {\r\n            resYear = year;\r\n            resDayOfYear = dayOfYear;\r\n        }\r\n\r\n        return {\r\n            year: resYear,\r\n            dayOfYear: resDayOfYear\r\n        };\r\n    }\r\n\r\n    function weekOfYear(mom, dow, doy) {\r\n        var weekOffset = firstWeekOffset(mom.year(), dow, doy),\r\n            week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\r\n            resWeek, resYear;\r\n\r\n        if (week < 1) {\r\n            resYear = mom.year() - 1;\r\n            resWeek = week + weeksInYear(resYear, dow, doy);\r\n        } else if (week > weeksInYear(mom.year(), dow, doy)) {\r\n            resWeek = week - weeksInYear(mom.year(), dow, doy);\r\n            resYear = mom.year() + 1;\r\n        } else {\r\n            resYear = mom.year();\r\n            resWeek = week;\r\n        }\r\n\r\n        return {\r\n            week: resWeek,\r\n            year: resYear\r\n        };\r\n    }\r\n\r\n    function weeksInYear(year, dow, doy) {\r\n        var weekOffset = firstWeekOffset(year, dow, doy),\r\n            weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\r\n        return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\r\n    }\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('w', ['ww', 2], 'wo', 'week');\r\n    addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('week', 'w');\r\n    addUnitAlias('isoWeek', 'W');\r\n\r\n    // PRIORITIES\r\n\r\n    addUnitPriority('week', 5);\r\n    addUnitPriority('isoWeek', 5);\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('w',  match1to2);\r\n    addRegexToken('ww', match1to2, match2);\r\n    addRegexToken('W',  match1to2);\r\n    addRegexToken('WW', match1to2, match2);\r\n\r\n    addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {\r\n        week[token.substr(0, 1)] = toInt(input);\r\n    });\r\n\r\n    // HELPERS\r\n\r\n    // LOCALES\r\n\r\n    function localeWeek (mom) {\r\n        return weekOfYear(mom, this._week.dow, this._week.doy).week;\r\n    }\r\n\r\n    var defaultLocaleWeek = {\r\n        dow : 0, // Sunday is the first day of the week.\r\n        doy : 6  // The week that contains Jan 1st is the first week of the year.\r\n    };\r\n\r\n    function localeFirstDayOfWeek () {\r\n        return this._week.dow;\r\n    }\r\n\r\n    function localeFirstDayOfYear () {\r\n        return this._week.doy;\r\n    }\r\n\r\n    // MOMENTS\r\n\r\n    function getSetWeek (input) {\r\n        var week = this.localeData().week(this);\r\n        return input == null ? week : this.add((input - week) * 7, 'd');\r\n    }\r\n\r\n    function getSetISOWeek (input) {\r\n        var week = weekOfYear(this, 1, 4).week;\r\n        return input == null ? week : this.add((input - week) * 7, 'd');\r\n    }\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('d', 0, 'do', 'day');\r\n\r\n    addFormatToken('dd', 0, 0, function (format) {\r\n        return this.localeData().weekdaysMin(this, format);\r\n    });\r\n\r\n    addFormatToken('ddd', 0, 0, function (format) {\r\n        return this.localeData().weekdaysShort(this, format);\r\n    });\r\n\r\n    addFormatToken('dddd', 0, 0, function (format) {\r\n        return this.localeData().weekdays(this, format);\r\n    });\r\n\r\n    addFormatToken('e', 0, 0, 'weekday');\r\n    addFormatToken('E', 0, 0, 'isoWeekday');\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('day', 'd');\r\n    addUnitAlias('weekday', 'e');\r\n    addUnitAlias('isoWeekday', 'E');\r\n\r\n    // PRIORITY\r\n    addUnitPriority('day', 11);\r\n    addUnitPriority('weekday', 11);\r\n    addUnitPriority('isoWeekday', 11);\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('d',    match1to2);\r\n    addRegexToken('e',    match1to2);\r\n    addRegexToken('E',    match1to2);\r\n    addRegexToken('dd',   function (isStrict, locale) {\r\n        return locale.weekdaysMinRegex(isStrict);\r\n    });\r\n    addRegexToken('ddd',   function (isStrict, locale) {\r\n        return locale.weekdaysShortRegex(isStrict);\r\n    });\r\n    addRegexToken('dddd',   function (isStrict, locale) {\r\n        return locale.weekdaysRegex(isStrict);\r\n    });\r\n\r\n    addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\r\n        var weekday = config._locale.weekdaysParse(input, token, config._strict);\r\n        // if we didn't get a weekday name, mark the date as invalid\r\n        if (weekday != null) {\r\n            week.d = weekday;\r\n        } else {\r\n            getParsingFlags(config).invalidWeekday = input;\r\n        }\r\n    });\r\n\r\n    addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\r\n        week[token] = toInt(input);\r\n    });\r\n\r\n    // HELPERS\r\n\r\n    function parseWeekday(input, locale) {\r\n        if (typeof input !== 'string') {\r\n            return input;\r\n        }\r\n\r\n        if (!isNaN(input)) {\r\n            return parseInt(input, 10);\r\n        }\r\n\r\n        input = locale.weekdaysParse(input);\r\n        if (typeof input === 'number') {\r\n            return input;\r\n        }\r\n\r\n        return null;\r\n    }\r\n\r\n    function parseIsoWeekday(input, locale) {\r\n        if (typeof input === 'string') {\r\n            return locale.weekdaysParse(input) % 7 || 7;\r\n        }\r\n        return isNaN(input) ? null : input;\r\n    }\r\n\r\n    // LOCALES\r\n\r\n    var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');\r\n    function localeWeekdays (m, format) {\r\n        if (!m) {\r\n            return this._weekdays;\r\n        }\r\n        return isArray(this._weekdays) ? this._weekdays[m.day()] :\r\n            this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];\r\n    }\r\n\r\n    var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');\r\n    function localeWeekdaysShort (m) {\r\n        return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;\r\n    }\r\n\r\n    var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');\r\n    function localeWeekdaysMin (m) {\r\n        return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;\r\n    }\r\n\r\n    function day_of_week__handleStrictParse(weekdayName, format, strict) {\r\n        var i, ii, mom, llc = weekdayName.toLocaleLowerCase();\r\n        if (!this._weekdaysParse) {\r\n            this._weekdaysParse = [];\r\n            this._shortWeekdaysParse = [];\r\n            this._minWeekdaysParse = [];\r\n\r\n            for (i = 0; i < 7; ++i) {\r\n                mom = create_utc__createUTC([2000, 1]).day(i);\r\n                this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();\r\n                this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();\r\n                this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\r\n            }\r\n        }\r\n\r\n        if (strict) {\r\n            if (format === 'dddd') {\r\n                ii = indexOf.call(this._weekdaysParse, llc);\r\n                return ii !== -1 ? ii : null;\r\n            } else if (format === 'ddd') {\r\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\r\n                return ii !== -1 ? ii : null;\r\n            } else {\r\n                ii = indexOf.call(this._minWeekdaysParse, llc);\r\n                return ii !== -1 ? ii : null;\r\n            }\r\n        } else {\r\n            if (format === 'dddd') {\r\n                ii = indexOf.call(this._weekdaysParse, llc);\r\n                if (ii !== -1) {\r\n                    return ii;\r\n                }\r\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\r\n                if (ii !== -1) {\r\n                    return ii;\r\n                }\r\n                ii = indexOf.call(this._minWeekdaysParse, llc);\r\n                return ii !== -1 ? ii : null;\r\n            } else if (format === 'ddd') {\r\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\r\n                if (ii !== -1) {\r\n                    return ii;\r\n                }\r\n                ii = indexOf.call(this._weekdaysParse, llc);\r\n                if (ii !== -1) {\r\n                    return ii;\r\n                }\r\n                ii = indexOf.call(this._minWeekdaysParse, llc);\r\n                return ii !== -1 ? ii : null;\r\n            } else {\r\n                ii = indexOf.call(this._minWeekdaysParse, llc);\r\n                if (ii !== -1) {\r\n                    return ii;\r\n                }\r\n                ii = indexOf.call(this._weekdaysParse, llc);\r\n                if (ii !== -1) {\r\n                    return ii;\r\n                }\r\n                ii = indexOf.call(this._shortWeekdaysParse, llc);\r\n                return ii !== -1 ? ii : null;\r\n            }\r\n        }\r\n    }\r\n\r\n    function localeWeekdaysParse (weekdayName, format, strict) {\r\n        var i, mom, regex;\r\n\r\n        if (this._weekdaysParseExact) {\r\n            return day_of_week__handleStrictParse.call(this, weekdayName, format, strict);\r\n        }\r\n\r\n        if (!this._weekdaysParse) {\r\n            this._weekdaysParse = [];\r\n            this._minWeekdaysParse = [];\r\n            this._shortWeekdaysParse = [];\r\n            this._fullWeekdaysParse = [];\r\n        }\r\n\r\n        for (i = 0; i < 7; i++) {\r\n            // make the regex if we don't have it already\r\n\r\n            mom = create_utc__createUTC([2000, 1]).day(i);\r\n            if (strict && !this._fullWeekdaysParse[i]) {\r\n                this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i');\r\n                this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i');\r\n                this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i');\r\n            }\r\n            if (!this._weekdaysParse[i]) {\r\n                regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');\r\n                this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\r\n            }\r\n            // test the regex\r\n            if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {\r\n                return i;\r\n            } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {\r\n                return i;\r\n            } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {\r\n                return i;\r\n            } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\r\n                return i;\r\n            }\r\n        }\r\n    }\r\n\r\n    // MOMENTS\r\n\r\n    function getSetDayOfWeek (input) {\r\n        if (!this.isValid()) {\r\n            return input != null ? this : NaN;\r\n        }\r\n        var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\r\n        if (input != null) {\r\n            input = parseWeekday(input, this.localeData());\r\n            return this.add(input - day, 'd');\r\n        } else {\r\n            return day;\r\n        }\r\n    }\r\n\r\n    function getSetLocaleDayOfWeek (input) {\r\n        if (!this.isValid()) {\r\n            return input != null ? this : NaN;\r\n        }\r\n        var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\r\n        return input == null ? weekday : this.add(input - weekday, 'd');\r\n    }\r\n\r\n    function getSetISODayOfWeek (input) {\r\n        if (!this.isValid()) {\r\n            return input != null ? this : NaN;\r\n        }\r\n\r\n        // behaves the same as moment#day except\r\n        // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\r\n        // as a setter, sunday should belong to the previous week.\r\n\r\n        if (input != null) {\r\n            var weekday = parseIsoWeekday(input, this.localeData());\r\n            return this.day(this.day() % 7 ? weekday : weekday - 7);\r\n        } else {\r\n            return this.day() || 7;\r\n        }\r\n    }\r\n\r\n    var defaultWeekdaysRegex = matchWord;\r\n    function weekdaysRegex (isStrict) {\r\n        if (this._weekdaysParseExact) {\r\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\r\n                computeWeekdaysParse.call(this);\r\n            }\r\n            if (isStrict) {\r\n                return this._weekdaysStrictRegex;\r\n            } else {\r\n                return this._weekdaysRegex;\r\n            }\r\n        } else {\r\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\r\n                this._weekdaysRegex = defaultWeekdaysRegex;\r\n            }\r\n            return this._weekdaysStrictRegex && isStrict ?\r\n                this._weekdaysStrictRegex : this._weekdaysRegex;\r\n        }\r\n    }\r\n\r\n    var defaultWeekdaysShortRegex = matchWord;\r\n    function weekdaysShortRegex (isStrict) {\r\n        if (this._weekdaysParseExact) {\r\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\r\n                computeWeekdaysParse.call(this);\r\n            }\r\n            if (isStrict) {\r\n                return this._weekdaysShortStrictRegex;\r\n            } else {\r\n                return this._weekdaysShortRegex;\r\n            }\r\n        } else {\r\n            if (!hasOwnProp(this, '_weekdaysShortRegex')) {\r\n                this._weekdaysShortRegex = defaultWeekdaysShortRegex;\r\n            }\r\n            return this._weekdaysShortStrictRegex && isStrict ?\r\n                this._weekdaysShortStrictRegex : this._weekdaysShortRegex;\r\n        }\r\n    }\r\n\r\n    var defaultWeekdaysMinRegex = matchWord;\r\n    function weekdaysMinRegex (isStrict) {\r\n        if (this._weekdaysParseExact) {\r\n            if (!hasOwnProp(this, '_weekdaysRegex')) {\r\n                computeWeekdaysParse.call(this);\r\n            }\r\n            if (isStrict) {\r\n                return this._weekdaysMinStrictRegex;\r\n            } else {\r\n                return this._weekdaysMinRegex;\r\n            }\r\n        } else {\r\n            if (!hasOwnProp(this, '_weekdaysMinRegex')) {\r\n                this._weekdaysMinRegex = defaultWeekdaysMinRegex;\r\n            }\r\n            return this._weekdaysMinStrictRegex && isStrict ?\r\n                this._weekdaysMinStrictRegex : this._weekdaysMinRegex;\r\n        }\r\n    }\r\n\r\n\r\n    function computeWeekdaysParse () {\r\n        function cmpLenRev(a, b) {\r\n            return b.length - a.length;\r\n        }\r\n\r\n        var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],\r\n            i, mom, minp, shortp, longp;\r\n        for (i = 0; i < 7; i++) {\r\n            // make the regex if we don't have it already\r\n            mom = create_utc__createUTC([2000, 1]).day(i);\r\n            minp = this.weekdaysMin(mom, '');\r\n            shortp = this.weekdaysShort(mom, '');\r\n            longp = this.weekdays(mom, '');\r\n            minPieces.push(minp);\r\n            shortPieces.push(shortp);\r\n            longPieces.push(longp);\r\n            mixedPieces.push(minp);\r\n            mixedPieces.push(shortp);\r\n            mixedPieces.push(longp);\r\n        }\r\n        // Sorting makes sure if one weekday (or abbr) is a prefix of another it\r\n        // will match the longer piece.\r\n        minPieces.sort(cmpLenRev);\r\n        shortPieces.sort(cmpLenRev);\r\n        longPieces.sort(cmpLenRev);\r\n        mixedPieces.sort(cmpLenRev);\r\n        for (i = 0; i < 7; i++) {\r\n            shortPieces[i] = regexEscape(shortPieces[i]);\r\n            longPieces[i] = regexEscape(longPieces[i]);\r\n            mixedPieces[i] = regexEscape(mixedPieces[i]);\r\n        }\r\n\r\n        this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\r\n        this._weekdaysShortRegex = this._weekdaysRegex;\r\n        this._weekdaysMinRegex = this._weekdaysRegex;\r\n\r\n        this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');\r\n        this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');\r\n        this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');\r\n    }\r\n\r\n    // FORMATTING\r\n\r\n    function hFormat() {\r\n        return this.hours() % 12 || 12;\r\n    }\r\n\r\n    function kFormat() {\r\n        return this.hours() || 24;\r\n    }\r\n\r\n    addFormatToken('H', ['HH', 2], 0, 'hour');\r\n    addFormatToken('h', ['hh', 2], 0, hFormat);\r\n    addFormatToken('k', ['kk', 2], 0, kFormat);\r\n\r\n    addFormatToken('hmm', 0, 0, function () {\r\n        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\r\n    });\r\n\r\n    addFormatToken('hmmss', 0, 0, function () {\r\n        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +\r\n            zeroFill(this.seconds(), 2);\r\n    });\r\n\r\n    addFormatToken('Hmm', 0, 0, function () {\r\n        return '' + this.hours() + zeroFill(this.minutes(), 2);\r\n    });\r\n\r\n    addFormatToken('Hmmss', 0, 0, function () {\r\n        return '' + this.hours() + zeroFill(this.minutes(), 2) +\r\n            zeroFill(this.seconds(), 2);\r\n    });\r\n\r\n    function meridiem (token, lowercase) {\r\n        addFormatToken(token, 0, 0, function () {\r\n            return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);\r\n        });\r\n    }\r\n\r\n    meridiem('a', true);\r\n    meridiem('A', false);\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('hour', 'h');\r\n\r\n    // PRIORITY\r\n    addUnitPriority('hour', 13);\r\n\r\n    // PARSING\r\n\r\n    function matchMeridiem (isStrict, locale) {\r\n        return locale._meridiemParse;\r\n    }\r\n\r\n    addRegexToken('a',  matchMeridiem);\r\n    addRegexToken('A',  matchMeridiem);\r\n    addRegexToken('H',  match1to2);\r\n    addRegexToken('h',  match1to2);\r\n    addRegexToken('HH', match1to2, match2);\r\n    addRegexToken('hh', match1to2, match2);\r\n\r\n    addRegexToken('hmm', match3to4);\r\n    addRegexToken('hmmss', match5to6);\r\n    addRegexToken('Hmm', match3to4);\r\n    addRegexToken('Hmmss', match5to6);\r\n\r\n    addParseToken(['H', 'HH'], HOUR);\r\n    addParseToken(['a', 'A'], function (input, array, config) {\r\n        config._isPm = config._locale.isPM(input);\r\n        config._meridiem = input;\r\n    });\r\n    addParseToken(['h', 'hh'], function (input, array, config) {\r\n        array[HOUR] = toInt(input);\r\n        getParsingFlags(config).bigHour = true;\r\n    });\r\n    addParseToken('hmm', function (input, array, config) {\r\n        var pos = input.length - 2;\r\n        array[HOUR] = toInt(input.substr(0, pos));\r\n        array[MINUTE] = toInt(input.substr(pos));\r\n        getParsingFlags(config).bigHour = true;\r\n    });\r\n    addParseToken('hmmss', function (input, array, config) {\r\n        var pos1 = input.length - 4;\r\n        var pos2 = input.length - 2;\r\n        array[HOUR] = toInt(input.substr(0, pos1));\r\n        array[MINUTE] = toInt(input.substr(pos1, 2));\r\n        array[SECOND] = toInt(input.substr(pos2));\r\n        getParsingFlags(config).bigHour = true;\r\n    });\r\n    addParseToken('Hmm', function (input, array, config) {\r\n        var pos = input.length - 2;\r\n        array[HOUR] = toInt(input.substr(0, pos));\r\n        array[MINUTE] = toInt(input.substr(pos));\r\n    });\r\n    addParseToken('Hmmss', function (input, array, config) {\r\n        var pos1 = input.length - 4;\r\n        var pos2 = input.length - 2;\r\n        array[HOUR] = toInt(input.substr(0, pos1));\r\n        array[MINUTE] = toInt(input.substr(pos1, 2));\r\n        array[SECOND] = toInt(input.substr(pos2));\r\n    });\r\n\r\n    // LOCALES\r\n\r\n    function localeIsPM (input) {\r\n        // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\r\n        // Using charAt should be more compatible.\r\n        return ((input + '').toLowerCase().charAt(0) === 'p');\r\n    }\r\n\r\n    var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i;\r\n    function localeMeridiem (hours, minutes, isLower) {\r\n        if (hours > 11) {\r\n            return isLower ? 'pm' : 'PM';\r\n        } else {\r\n            return isLower ? 'am' : 'AM';\r\n        }\r\n    }\r\n\r\n\r\n    // MOMENTS\r\n\r\n    // Setting the hour should keep the time, because the user explicitly\r\n    // specified which hour he wants. So trying to maintain the same hour (in\r\n    // a new timezone) makes sense. Adding/subtracting hours does not follow\r\n    // this rule.\r\n    var getSetHour = makeGetSet('Hours', true);\r\n\r\n    var baseConfig = {\r\n        calendar: defaultCalendar,\r\n        longDateFormat: defaultLongDateFormat,\r\n        invalidDate: defaultInvalidDate,\r\n        ordinal: defaultOrdinal,\r\n        ordinalParse: defaultOrdinalParse,\r\n        relativeTime: defaultRelativeTime,\r\n\r\n        months: defaultLocaleMonths,\r\n        monthsShort: defaultLocaleMonthsShort,\r\n\r\n        week: defaultLocaleWeek,\r\n\r\n        weekdays: defaultLocaleWeekdays,\r\n        weekdaysMin: defaultLocaleWeekdaysMin,\r\n        weekdaysShort: defaultLocaleWeekdaysShort,\r\n\r\n        meridiemParse: defaultLocaleMeridiemParse\r\n    };\r\n\r\n    // internal storage for locale config files\r\n    var locales = {};\r\n    var globalLocale;\r\n\r\n    function normalizeLocale(key) {\r\n        return key ? key.toLowerCase().replace('_', '-') : key;\r\n    }\r\n\r\n    // pick the locale from the array\r\n    // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\r\n    // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\r\n    function chooseLocale(names) {\r\n        var i = 0, j, next, locale, split;\r\n\r\n        while (i < names.length) {\r\n            split = normalizeLocale(names[i]).split('-');\r\n            j = split.length;\r\n            next = normalizeLocale(names[i + 1]);\r\n            next = next ? next.split('-') : null;\r\n            while (j > 0) {\r\n                locale = loadLocale(split.slice(0, j).join('-'));\r\n                if (locale) {\r\n                    return locale;\r\n                }\r\n                if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\r\n                    //the next array item is better than a shallower substring of this one\r\n                    break;\r\n                }\r\n                j--;\r\n            }\r\n            i++;\r\n        }\r\n        return null;\r\n    }\r\n\r\n    function loadLocale(name) {\r\n        var oldLocale = null;\r\n        // TODO: Find a better way to register and load all the locales in Node\r\n        if (!locales[name] && (typeof module !== 'undefined') &&\r\n                module && module.exports) {\r\n            try {\r\n                oldLocale = globalLocale._abbr;\r\n                require('./locale/' + name);\r\n                // because defineLocale currently also sets the global locale, we\r\n                // want to undo that for lazy loaded locales\r\n                locale_locales__getSetGlobalLocale(oldLocale);\r\n            } catch (e) { }\r\n        }\r\n        return locales[name];\r\n    }\r\n\r\n    // This function will load locale and then set the global locale.  If\r\n    // no arguments are passed in, it will simply return the current global\r\n    // locale key.\r\n    function locale_locales__getSetGlobalLocale (key, values) {\r\n        var data;\r\n        if (key) {\r\n            if (isUndefined(values)) {\r\n                data = locale_locales__getLocale(key);\r\n            }\r\n            else {\r\n                data = defineLocale(key, values);\r\n            }\r\n\r\n            if (data) {\r\n                // moment.duration._locale = moment._locale = data;\r\n                globalLocale = data;\r\n            }\r\n        }\r\n\r\n        return globalLocale._abbr;\r\n    }\r\n\r\n    function defineLocale (name, config) {\r\n        if (config !== null) {\r\n            var parentConfig = baseConfig;\r\n            config.abbr = name;\r\n            if (locales[name] != null) {\r\n                deprecateSimple('defineLocaleOverride',\r\n                        'use moment.updateLocale(localeName, config) to change ' +\r\n                        'an existing locale. moment.defineLocale(localeName, ' +\r\n                        'config) should only be used for creating a new locale ' +\r\n                        'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');\r\n                parentConfig = locales[name]._config;\r\n            } else if (config.parentLocale != null) {\r\n                if (locales[config.parentLocale] != null) {\r\n                    parentConfig = locales[config.parentLocale]._config;\r\n                } else {\r\n                    // treat as if there is no base config\r\n                    deprecateSimple('parentLocaleUndefined',\r\n                            'specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/');\r\n                }\r\n            }\r\n            locales[name] = new Locale(mergeConfigs(parentConfig, config));\r\n\r\n            // backwards compat for now: also set the locale\r\n            locale_locales__getSetGlobalLocale(name);\r\n\r\n            return locales[name];\r\n        } else {\r\n            // useful for testing\r\n            delete locales[name];\r\n            return null;\r\n        }\r\n    }\r\n\r\n    function updateLocale(name, config) {\r\n        if (config != null) {\r\n            var locale, parentConfig = baseConfig;\r\n            // MERGE\r\n            if (locales[name] != null) {\r\n                parentConfig = locales[name]._config;\r\n            }\r\n            config = mergeConfigs(parentConfig, config);\r\n            locale = new Locale(config);\r\n            locale.parentLocale = locales[name];\r\n            locales[name] = locale;\r\n\r\n            // backwards compat for now: also set the locale\r\n            locale_locales__getSetGlobalLocale(name);\r\n        } else {\r\n            // pass null for config to unupdate, useful for tests\r\n            if (locales[name] != null) {\r\n                if (locales[name].parentLocale != null) {\r\n                    locales[name] = locales[name].parentLocale;\r\n                } else if (locales[name] != null) {\r\n                    delete locales[name];\r\n                }\r\n            }\r\n        }\r\n        return locales[name];\r\n    }\r\n\r\n    // returns locale data\r\n    function locale_locales__getLocale (key) {\r\n        var locale;\r\n\r\n        if (key && key._locale && key._locale._abbr) {\r\n            key = key._locale._abbr;\r\n        }\r\n\r\n        if (!key) {\r\n            return globalLocale;\r\n        }\r\n\r\n        if (!isArray(key)) {\r\n            //short-circuit everything else\r\n            locale = loadLocale(key);\r\n            if (locale) {\r\n                return locale;\r\n            }\r\n            key = [key];\r\n        }\r\n\r\n        return chooseLocale(key);\r\n    }\r\n\r\n    function locale_locales__listLocales() {\r\n        return keys(locales);\r\n    }\r\n\r\n    function checkOverflow (m) {\r\n        var overflow;\r\n        var a = m._a;\r\n\r\n        if (a && getParsingFlags(m).overflow === -2) {\r\n            overflow =\r\n                a[MONTH]       < 0 || a[MONTH]       > 11  ? MONTH :\r\n                a[DATE]        < 1 || a[DATE]        > daysInMonth(a[YEAR], a[MONTH]) ? DATE :\r\n                a[HOUR]        < 0 || a[HOUR]        > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :\r\n                a[MINUTE]      < 0 || a[MINUTE]      > 59  ? MINUTE :\r\n                a[SECOND]      < 0 || a[SECOND]      > 59  ? SECOND :\r\n                a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :\r\n                -1;\r\n\r\n            if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {\r\n                overflow = DATE;\r\n            }\r\n            if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\r\n                overflow = WEEK;\r\n            }\r\n            if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\r\n                overflow = WEEKDAY;\r\n            }\r\n\r\n            getParsingFlags(m).overflow = overflow;\r\n        }\r\n\r\n        return m;\r\n    }\r\n\r\n    // iso 8601 regex\r\n    // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\r\n    var extendedIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?/;\r\n    var basicIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?/;\r\n\r\n    var tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/;\r\n\r\n    var isoDates = [\r\n        ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\r\n        ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\r\n        ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\r\n        ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\r\n        ['YYYY-DDD', /\\d{4}-\\d{3}/],\r\n        ['YYYY-MM', /\\d{4}-\\d\\d/, false],\r\n        ['YYYYYYMMDD', /[+-]\\d{10}/],\r\n        ['YYYYMMDD', /\\d{8}/],\r\n        // YYYYMM is NOT allowed by the standard\r\n        ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\r\n        ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\r\n        ['YYYYDDD', /\\d{7}/]\r\n    ];\r\n\r\n    // iso time formats and regexes\r\n    var isoTimes = [\r\n        ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\r\n        ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\r\n        ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\r\n        ['HH:mm', /\\d\\d:\\d\\d/],\r\n        ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\r\n        ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\r\n        ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\r\n        ['HHmm', /\\d\\d\\d\\d/],\r\n        ['HH', /\\d\\d/]\r\n    ];\r\n\r\n    var aspNetJsonRegex = /^\\/?Date\\((\\-?\\d+)/i;\r\n\r\n    // date from iso format\r\n    function configFromISO(config) {\r\n        var i, l,\r\n            string = config._i,\r\n            match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\r\n            allowTime, dateFormat, timeFormat, tzFormat;\r\n\r\n        if (match) {\r\n            getParsingFlags(config).iso = true;\r\n\r\n            for (i = 0, l = isoDates.length; i < l; i++) {\r\n                if (isoDates[i][1].exec(match[1])) {\r\n                    dateFormat = isoDates[i][0];\r\n                    allowTime = isoDates[i][2] !== false;\r\n                    break;\r\n                }\r\n            }\r\n            if (dateFormat == null) {\r\n                config._isValid = false;\r\n                return;\r\n            }\r\n            if (match[3]) {\r\n                for (i = 0, l = isoTimes.length; i < l; i++) {\r\n                    if (isoTimes[i][1].exec(match[3])) {\r\n                        // match[2] should be 'T' or space\r\n                        timeFormat = (match[2] || ' ') + isoTimes[i][0];\r\n                        break;\r\n                    }\r\n                }\r\n                if (timeFormat == null) {\r\n                    config._isValid = false;\r\n                    return;\r\n                }\r\n            }\r\n            if (!allowTime && timeFormat != null) {\r\n                config._isValid = false;\r\n                return;\r\n            }\r\n            if (match[4]) {\r\n                if (tzRegex.exec(match[4])) {\r\n                    tzFormat = 'Z';\r\n                } else {\r\n                    config._isValid = false;\r\n                    return;\r\n                }\r\n            }\r\n            config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\r\n            configFromStringAndFormat(config);\r\n        } else {\r\n            config._isValid = false;\r\n        }\r\n    }\r\n\r\n    // date from iso format or fallback\r\n    function configFromString(config) {\r\n        var matched = aspNetJsonRegex.exec(config._i);\r\n\r\n        if (matched !== null) {\r\n            config._d = new Date(+matched[1]);\r\n            return;\r\n        }\r\n\r\n        configFromISO(config);\r\n        if (config._isValid === false) {\r\n            delete config._isValid;\r\n            utils_hooks__hooks.createFromInputFallback(config);\r\n        }\r\n    }\r\n\r\n    utils_hooks__hooks.createFromInputFallback = deprecate(\r\n        'value provided is not in a recognized ISO format. moment construction falls back to js Date(), ' +\r\n        'which is not reliable across all browsers and versions. Non ISO date formats are ' +\r\n        'discouraged and will be removed in an upcoming major release. Please refer to ' +\r\n        'http://momentjs.com/guides/#/warnings/js-date/ for more info.',\r\n        function (config) {\r\n            config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\r\n        }\r\n    );\r\n\r\n    // Pick the first defined of two or three arguments.\r\n    function defaults(a, b, c) {\r\n        if (a != null) {\r\n            return a;\r\n        }\r\n        if (b != null) {\r\n            return b;\r\n        }\r\n        return c;\r\n    }\r\n\r\n    function currentDateArray(config) {\r\n        // hooks is actually the exported moment object\r\n        var nowValue = new Date(utils_hooks__hooks.now());\r\n        if (config._useUTC) {\r\n            return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];\r\n        }\r\n        return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\r\n    }\r\n\r\n    // convert an array to a date.\r\n    // the array should mirror the parameters below\r\n    // note: all values past the year are optional and will default to the lowest possible value.\r\n    // [year, month, day , hour, minute, second, millisecond]\r\n    function configFromArray (config) {\r\n        var i, date, input = [], currentDate, yearToUse;\r\n\r\n        if (config._d) {\r\n            return;\r\n        }\r\n\r\n        currentDate = currentDateArray(config);\r\n\r\n        //compute day of the year from weeks and weekdays\r\n        if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\r\n            dayOfYearFromWeekInfo(config);\r\n        }\r\n\r\n        //if the day of the year is set, figure out what it is\r\n        if (config._dayOfYear) {\r\n            yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\r\n\r\n            if (config._dayOfYear > daysInYear(yearToUse)) {\r\n                getParsingFlags(config)._overflowDayOfYear = true;\r\n            }\r\n\r\n            date = createUTCDate(yearToUse, 0, config._dayOfYear);\r\n            config._a[MONTH] = date.getUTCMonth();\r\n            config._a[DATE] = date.getUTCDate();\r\n        }\r\n\r\n        // Default to current date.\r\n        // * if no year, month, day of month are given, default to today\r\n        // * if day of month is given, default month and year\r\n        // * if month is given, default only year\r\n        // * if year is given, don't default anything\r\n        for (i = 0; i < 3 && config._a[i] == null; ++i) {\r\n            config._a[i] = input[i] = currentDate[i];\r\n        }\r\n\r\n        // Zero out whatever was not defaulted, including time\r\n        for (; i < 7; i++) {\r\n            config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];\r\n        }\r\n\r\n        // Check for 24:00:00.000\r\n        if (config._a[HOUR] === 24 &&\r\n                config._a[MINUTE] === 0 &&\r\n                config._a[SECOND] === 0 &&\r\n                config._a[MILLISECOND] === 0) {\r\n            config._nextDay = true;\r\n            config._a[HOUR] = 0;\r\n        }\r\n\r\n        config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);\r\n        // Apply timezone offset from input. The actual utcOffset can be changed\r\n        // with parseZone.\r\n        if (config._tzm != null) {\r\n            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\r\n        }\r\n\r\n        if (config._nextDay) {\r\n            config._a[HOUR] = 24;\r\n        }\r\n    }\r\n\r\n    function dayOfYearFromWeekInfo(config) {\r\n        var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;\r\n\r\n        w = config._w;\r\n        if (w.GG != null || w.W != null || w.E != null) {\r\n            dow = 1;\r\n            doy = 4;\r\n\r\n            // TODO: We need to take the current isoWeekYear, but that depends on\r\n            // how we interpret now (local, utc, fixed offset). So create\r\n            // a now version of current config (take local/utc/offset flags, and\r\n            // create now).\r\n            weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(local__createLocal(), 1, 4).year);\r\n            week = defaults(w.W, 1);\r\n            weekday = defaults(w.E, 1);\r\n            if (weekday < 1 || weekday > 7) {\r\n                weekdayOverflow = true;\r\n            }\r\n        } else {\r\n            dow = config._locale._week.dow;\r\n            doy = config._locale._week.doy;\r\n\r\n            weekYear = defaults(w.gg, config._a[YEAR], weekOfYear(local__createLocal(), dow, doy).year);\r\n            week = defaults(w.w, 1);\r\n\r\n            if (w.d != null) {\r\n                // weekday -- low day numbers are considered next week\r\n                weekday = w.d;\r\n                if (weekday < 0 || weekday > 6) {\r\n                    weekdayOverflow = true;\r\n                }\r\n            } else if (w.e != null) {\r\n                // local weekday -- counting starts from begining of week\r\n                weekday = w.e + dow;\r\n                if (w.e < 0 || w.e > 6) {\r\n                    weekdayOverflow = true;\r\n                }\r\n            } else {\r\n                // default to begining of week\r\n                weekday = dow;\r\n            }\r\n        }\r\n        if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\r\n            getParsingFlags(config)._overflowWeeks = true;\r\n        } else if (weekdayOverflow != null) {\r\n            getParsingFlags(config)._overflowWeekday = true;\r\n        } else {\r\n            temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\r\n            config._a[YEAR] = temp.year;\r\n            config._dayOfYear = temp.dayOfYear;\r\n        }\r\n    }\r\n\r\n    // constant that refers to the ISO standard\r\n    utils_hooks__hooks.ISO_8601 = function () {};\r\n\r\n    // date from string and format string\r\n    function configFromStringAndFormat(config) {\r\n        // TODO: Move this to another part of the creation flow to prevent circular deps\r\n        if (config._f === utils_hooks__hooks.ISO_8601) {\r\n            configFromISO(config);\r\n            return;\r\n        }\r\n\r\n        config._a = [];\r\n        getParsingFlags(config).empty = true;\r\n\r\n        // This array is used to make a Date, either with `new Date` or `Date.UTC`\r\n        var string = '' + config._i,\r\n            i, parsedInput, tokens, token, skipped,\r\n            stringLength = string.length,\r\n            totalParsedInputLength = 0;\r\n\r\n        tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];\r\n\r\n        for (i = 0; i < tokens.length; i++) {\r\n            token = tokens[i];\r\n            parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];\r\n            // console.log('token', token, 'parsedInput', parsedInput,\r\n            //         'regex', getParseRegexForToken(token, config));\r\n            if (parsedInput) {\r\n                skipped = string.substr(0, string.indexOf(parsedInput));\r\n                if (skipped.length > 0) {\r\n                    getParsingFlags(config).unusedInput.push(skipped);\r\n                }\r\n                string = string.slice(string.indexOf(parsedInput) + parsedInput.length);\r\n                totalParsedInputLength += parsedInput.length;\r\n            }\r\n            // don't parse if it's not a known token\r\n            if (formatTokenFunctions[token]) {\r\n                if (parsedInput) {\r\n                    getParsingFlags(config).empty = false;\r\n                }\r\n                else {\r\n                    getParsingFlags(config).unusedTokens.push(token);\r\n                }\r\n                addTimeToArrayFromToken(token, parsedInput, config);\r\n            }\r\n            else if (config._strict && !parsedInput) {\r\n                getParsingFlags(config).unusedTokens.push(token);\r\n            }\r\n        }\r\n\r\n        // add remaining unparsed input length to the string\r\n        getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;\r\n        if (string.length > 0) {\r\n            getParsingFlags(config).unusedInput.push(string);\r\n        }\r\n\r\n        // clear _12h flag if hour is <= 12\r\n        if (config._a[HOUR] <= 12 &&\r\n            getParsingFlags(config).bigHour === true &&\r\n            config._a[HOUR] > 0) {\r\n            getParsingFlags(config).bigHour = undefined;\r\n        }\r\n\r\n        getParsingFlags(config).parsedDateParts = config._a.slice(0);\r\n        getParsingFlags(config).meridiem = config._meridiem;\r\n        // handle meridiem\r\n        config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);\r\n\r\n        configFromArray(config);\r\n        checkOverflow(config);\r\n    }\r\n\r\n\r\n    function meridiemFixWrap (locale, hour, meridiem) {\r\n        var isPm;\r\n\r\n        if (meridiem == null) {\r\n            // nothing to do\r\n            return hour;\r\n        }\r\n        if (locale.meridiemHour != null) {\r\n            return locale.meridiemHour(hour, meridiem);\r\n        } else if (locale.isPM != null) {\r\n            // Fallback\r\n            isPm = locale.isPM(meridiem);\r\n            if (isPm && hour < 12) {\r\n                hour += 12;\r\n            }\r\n            if (!isPm && hour === 12) {\r\n                hour = 0;\r\n            }\r\n            return hour;\r\n        } else {\r\n            // this is not supposed to happen\r\n            return hour;\r\n        }\r\n    }\r\n\r\n    // date from string and array of format strings\r\n    function configFromStringAndArray(config) {\r\n        var tempConfig,\r\n            bestMoment,\r\n\r\n            scoreToBeat,\r\n            i,\r\n            currentScore;\r\n\r\n        if (config._f.length === 0) {\r\n            getParsingFlags(config).invalidFormat = true;\r\n            config._d = new Date(NaN);\r\n            return;\r\n        }\r\n\r\n        for (i = 0; i < config._f.length; i++) {\r\n            currentScore = 0;\r\n            tempConfig = copyConfig({}, config);\r\n            if (config._useUTC != null) {\r\n                tempConfig._useUTC = config._useUTC;\r\n            }\r\n            tempConfig._f = config._f[i];\r\n            configFromStringAndFormat(tempConfig);\r\n\r\n            if (!valid__isValid(tempConfig)) {\r\n                continue;\r\n            }\r\n\r\n            // if there is any input that was not parsed add a penalty for that format\r\n            currentScore += getParsingFlags(tempConfig).charsLeftOver;\r\n\r\n            //or tokens\r\n            currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\r\n\r\n            getParsingFlags(tempConfig).score = currentScore;\r\n\r\n            if (scoreToBeat == null || currentScore < scoreToBeat) {\r\n                scoreToBeat = currentScore;\r\n                bestMoment = tempConfig;\r\n            }\r\n        }\r\n\r\n        extend(config, bestMoment || tempConfig);\r\n    }\r\n\r\n    function configFromObject(config) {\r\n        if (config._d) {\r\n            return;\r\n        }\r\n\r\n        var i = normalizeObjectUnits(config._i);\r\n        config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {\r\n            return obj && parseInt(obj, 10);\r\n        });\r\n\r\n        configFromArray(config);\r\n    }\r\n\r\n    function createFromConfig (config) {\r\n        var res = new Moment(checkOverflow(prepareConfig(config)));\r\n        if (res._nextDay) {\r\n            // Adding is smart enough around DST\r\n            res.add(1, 'd');\r\n            res._nextDay = undefined;\r\n        }\r\n\r\n        return res;\r\n    }\r\n\r\n    function prepareConfig (config) {\r\n        var input = config._i,\r\n            format = config._f;\r\n\r\n        config._locale = config._locale || locale_locales__getLocale(config._l);\r\n\r\n        if (input === null || (format === undefined && input === '')) {\r\n            return valid__createInvalid({nullInput: true});\r\n        }\r\n\r\n        if (typeof input === 'string') {\r\n            config._i = input = config._locale.preparse(input);\r\n        }\r\n\r\n        if (isMoment(input)) {\r\n            return new Moment(checkOverflow(input));\r\n        } else if (isArray(format)) {\r\n            configFromStringAndArray(config);\r\n        } else if (isDate(input)) {\r\n            config._d = input;\r\n        } else if (format) {\r\n            configFromStringAndFormat(config);\r\n        }  else {\r\n            configFromInput(config);\r\n        }\r\n\r\n        if (!valid__isValid(config)) {\r\n            config._d = null;\r\n        }\r\n\r\n        return config;\r\n    }\r\n\r\n    function configFromInput(config) {\r\n        var input = config._i;\r\n        if (input === undefined) {\r\n            config._d = new Date(utils_hooks__hooks.now());\r\n        } else if (isDate(input)) {\r\n            config._d = new Date(input.valueOf());\r\n        } else if (typeof input === 'string') {\r\n            configFromString(config);\r\n        } else if (isArray(input)) {\r\n            config._a = map(input.slice(0), function (obj) {\r\n                return parseInt(obj, 10);\r\n            });\r\n            configFromArray(config);\r\n        } else if (typeof(input) === 'object') {\r\n            configFromObject(config);\r\n        } else if (typeof(input) === 'number') {\r\n            // from milliseconds\r\n            config._d = new Date(input);\r\n        } else {\r\n            utils_hooks__hooks.createFromInputFallback(config);\r\n        }\r\n    }\r\n\r\n    function createLocalOrUTC (input, format, locale, strict, isUTC) {\r\n        var c = {};\r\n\r\n        if (typeof(locale) === 'boolean') {\r\n            strict = locale;\r\n            locale = undefined;\r\n        }\r\n\r\n        if ((isObject(input) && isObjectEmpty(input)) ||\r\n                (isArray(input) && input.length === 0)) {\r\n            input = undefined;\r\n        }\r\n        // object construction must be done this way.\r\n        // https://github.com/moment/moment/issues/1423\r\n        c._isAMomentObject = true;\r\n        c._useUTC = c._isUTC = isUTC;\r\n        c._l = locale;\r\n        c._i = input;\r\n        c._f = format;\r\n        c._strict = strict;\r\n\r\n        return createFromConfig(c);\r\n    }\r\n\r\n    function local__createLocal (input, format, locale, strict) {\r\n        return createLocalOrUTC(input, format, locale, strict, false);\r\n    }\r\n\r\n    var prototypeMin = deprecate(\r\n        'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\r\n        function () {\r\n            var other = local__createLocal.apply(null, arguments);\r\n            if (this.isValid() && other.isValid()) {\r\n                return other < this ? this : other;\r\n            } else {\r\n                return valid__createInvalid();\r\n            }\r\n        }\r\n    );\r\n\r\n    var prototypeMax = deprecate(\r\n        'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\r\n        function () {\r\n            var other = local__createLocal.apply(null, arguments);\r\n            if (this.isValid() && other.isValid()) {\r\n                return other > this ? this : other;\r\n            } else {\r\n                return valid__createInvalid();\r\n            }\r\n        }\r\n    );\r\n\r\n    // Pick a moment m from moments so that m[fn](other) is true for all\r\n    // other. This relies on the function fn to be transitive.\r\n    //\r\n    // moments should either be an array of moment objects or an array, whose\r\n    // first element is an array of moment objects.\r\n    function pickBy(fn, moments) {\r\n        var res, i;\r\n        if (moments.length === 1 && isArray(moments[0])) {\r\n            moments = moments[0];\r\n        }\r\n        if (!moments.length) {\r\n            return local__createLocal();\r\n        }\r\n        res = moments[0];\r\n        for (i = 1; i < moments.length; ++i) {\r\n            if (!moments[i].isValid() || moments[i][fn](res)) {\r\n                res = moments[i];\r\n            }\r\n        }\r\n        return res;\r\n    }\r\n\r\n    // TODO: Use [].sort instead?\r\n    function min () {\r\n        var args = [].slice.call(arguments, 0);\r\n\r\n        return pickBy('isBefore', args);\r\n    }\r\n\r\n    function max () {\r\n        var args = [].slice.call(arguments, 0);\r\n\r\n        return pickBy('isAfter', args);\r\n    }\r\n\r\n    var now = function () {\r\n        return Date.now ? Date.now() : +(new Date());\r\n    };\r\n\r\n    function Duration (duration) {\r\n        var normalizedInput = normalizeObjectUnits(duration),\r\n            years = normalizedInput.year || 0,\r\n            quarters = normalizedInput.quarter || 0,\r\n            months = normalizedInput.month || 0,\r\n            weeks = normalizedInput.week || 0,\r\n            days = normalizedInput.day || 0,\r\n            hours = normalizedInput.hour || 0,\r\n            minutes = normalizedInput.minute || 0,\r\n            seconds = normalizedInput.second || 0,\r\n            milliseconds = normalizedInput.millisecond || 0;\r\n\r\n        // representation for dateAddRemove\r\n        this._milliseconds = +milliseconds +\r\n            seconds * 1e3 + // 1000\r\n            minutes * 6e4 + // 1000 * 60\r\n            hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\r\n        // Because of dateAddRemove treats 24 hours as different from a\r\n        // day when working around DST, we need to store them separately\r\n        this._days = +days +\r\n            weeks * 7;\r\n        // It is impossible translate months into days without knowing\r\n        // which months you are are talking about, so we have to store\r\n        // it separately.\r\n        this._months = +months +\r\n            quarters * 3 +\r\n            years * 12;\r\n\r\n        this._data = {};\r\n\r\n        this._locale = locale_locales__getLocale();\r\n\r\n        this._bubble();\r\n    }\r\n\r\n    function isDuration (obj) {\r\n        return obj instanceof Duration;\r\n    }\r\n\r\n    function absRound (number) {\r\n        if (number < 0) {\r\n            return Math.round(-1 * number) * -1;\r\n        } else {\r\n            return Math.round(number);\r\n        }\r\n    }\r\n\r\n    // FORMATTING\r\n\r\n    function offset (token, separator) {\r\n        addFormatToken(token, 0, 0, function () {\r\n            var offset = this.utcOffset();\r\n            var sign = '+';\r\n            if (offset < 0) {\r\n                offset = -offset;\r\n                sign = '-';\r\n            }\r\n            return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);\r\n        });\r\n    }\r\n\r\n    offset('Z', ':');\r\n    offset('ZZ', '');\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('Z',  matchShortOffset);\r\n    addRegexToken('ZZ', matchShortOffset);\r\n    addParseToken(['Z', 'ZZ'], function (input, array, config) {\r\n        config._useUTC = true;\r\n        config._tzm = offsetFromString(matchShortOffset, input);\r\n    });\r\n\r\n    // HELPERS\r\n\r\n    // timezone chunker\r\n    // '+10:00' > ['10',  '00']\r\n    // '-1530'  > ['-15', '30']\r\n    var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\r\n\r\n    function offsetFromString(matcher, string) {\r\n        var matches = ((string || '').match(matcher) || []);\r\n        var chunk   = matches[matches.length - 1] || [];\r\n        var parts   = (chunk + '').match(chunkOffset) || ['-', 0, 0];\r\n        var minutes = +(parts[1] * 60) + toInt(parts[2]);\r\n\r\n        return parts[0] === '+' ? minutes : -minutes;\r\n    }\r\n\r\n    // Return a moment from input, that is local/utc/zone equivalent to model.\r\n    function cloneWithOffset(input, model) {\r\n        var res, diff;\r\n        if (model._isUTC) {\r\n            res = model.clone();\r\n            diff = (isMoment(input) || isDate(input) ? input.valueOf() : local__createLocal(input).valueOf()) - res.valueOf();\r\n            // Use low-level api, because this fn is low-level api.\r\n            res._d.setTime(res._d.valueOf() + diff);\r\n            utils_hooks__hooks.updateOffset(res, false);\r\n            return res;\r\n        } else {\r\n            return local__createLocal(input).local();\r\n        }\r\n    }\r\n\r\n    function getDateOffset (m) {\r\n        // On Firefox.24 Date#getTimezoneOffset returns a floating point.\r\n        // https://github.com/moment/moment/pull/1871\r\n        return -Math.round(m._d.getTimezoneOffset() / 15) * 15;\r\n    }\r\n\r\n    // HOOKS\r\n\r\n    // This function will be called whenever a moment is mutated.\r\n    // It is intended to keep the offset in sync with the timezone.\r\n    utils_hooks__hooks.updateOffset = function () {};\r\n\r\n    // MOMENTS\r\n\r\n    // keepLocalTime = true means only change the timezone, without\r\n    // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\r\n    // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\r\n    // +0200, so we adjust the time as needed, to be valid.\r\n    //\r\n    // Keeping the time actually adds/subtracts (one hour)\r\n    // from the actual represented time. That is why we call updateOffset\r\n    // a second time. In case it wants us to change the offset again\r\n    // _changeInProgress == true case, then we have to adjust, because\r\n    // there is no such time in the given timezone.\r\n    function getSetOffset (input, keepLocalTime) {\r\n        var offset = this._offset || 0,\r\n            localAdjust;\r\n        if (!this.isValid()) {\r\n            return input != null ? this : NaN;\r\n        }\r\n        if (input != null) {\r\n            if (typeof input === 'string') {\r\n                input = offsetFromString(matchShortOffset, input);\r\n            } else if (Math.abs(input) < 16) {\r\n                input = input * 60;\r\n            }\r\n            if (!this._isUTC && keepLocalTime) {\r\n                localAdjust = getDateOffset(this);\r\n            }\r\n            this._offset = input;\r\n            this._isUTC = true;\r\n            if (localAdjust != null) {\r\n                this.add(localAdjust, 'm');\r\n            }\r\n            if (offset !== input) {\r\n                if (!keepLocalTime || this._changeInProgress) {\r\n                    add_subtract__addSubtract(this, create__createDuration(input - offset, 'm'), 1, false);\r\n                } else if (!this._changeInProgress) {\r\n                    this._changeInProgress = true;\r\n                    utils_hooks__hooks.updateOffset(this, true);\r\n                    this._changeInProgress = null;\r\n                }\r\n            }\r\n            return this;\r\n        } else {\r\n            return this._isUTC ? offset : getDateOffset(this);\r\n        }\r\n    }\r\n\r\n    function getSetZone (input, keepLocalTime) {\r\n        if (input != null) {\r\n            if (typeof input !== 'string') {\r\n                input = -input;\r\n            }\r\n\r\n            this.utcOffset(input, keepLocalTime);\r\n\r\n            return this;\r\n        } else {\r\n            return -this.utcOffset();\r\n        }\r\n    }\r\n\r\n    function setOffsetToUTC (keepLocalTime) {\r\n        return this.utcOffset(0, keepLocalTime);\r\n    }\r\n\r\n    function setOffsetToLocal (keepLocalTime) {\r\n        if (this._isUTC) {\r\n            this.utcOffset(0, keepLocalTime);\r\n            this._isUTC = false;\r\n\r\n            if (keepLocalTime) {\r\n                this.subtract(getDateOffset(this), 'm');\r\n            }\r\n        }\r\n        return this;\r\n    }\r\n\r\n    function setOffsetToParsedOffset () {\r\n        if (this._tzm) {\r\n            this.utcOffset(this._tzm);\r\n        } else if (typeof this._i === 'string') {\r\n            var tZone = offsetFromString(matchOffset, this._i);\r\n\r\n            if (tZone === 0) {\r\n                this.utcOffset(0, true);\r\n            } else {\r\n                this.utcOffset(offsetFromString(matchOffset, this._i));\r\n            }\r\n        }\r\n        return this;\r\n    }\r\n\r\n    function hasAlignedHourOffset (input) {\r\n        if (!this.isValid()) {\r\n            return false;\r\n        }\r\n        input = input ? local__createLocal(input).utcOffset() : 0;\r\n\r\n        return (this.utcOffset() - input) % 60 === 0;\r\n    }\r\n\r\n    function isDaylightSavingTime () {\r\n        return (\r\n            this.utcOffset() > this.clone().month(0).utcOffset() ||\r\n            this.utcOffset() > this.clone().month(5).utcOffset()\r\n        );\r\n    }\r\n\r\n    function isDaylightSavingTimeShifted () {\r\n        if (!isUndefined(this._isDSTShifted)) {\r\n            return this._isDSTShifted;\r\n        }\r\n\r\n        var c = {};\r\n\r\n        copyConfig(c, this);\r\n        c = prepareConfig(c);\r\n\r\n        if (c._a) {\r\n            var other = c._isUTC ? create_utc__createUTC(c._a) : local__createLocal(c._a);\r\n            this._isDSTShifted = this.isValid() &&\r\n                compareArrays(c._a, other.toArray()) > 0;\r\n        } else {\r\n            this._isDSTShifted = false;\r\n        }\r\n\r\n        return this._isDSTShifted;\r\n    }\r\n\r\n    function isLocal () {\r\n        return this.isValid() ? !this._isUTC : false;\r\n    }\r\n\r\n    function isUtcOffset () {\r\n        return this.isValid() ? this._isUTC : false;\r\n    }\r\n\r\n    function isUtc () {\r\n        return this.isValid() ? this._isUTC && this._offset === 0 : false;\r\n    }\r\n\r\n    // ASP.NET json date format regex\r\n    var aspNetRegex = /^(\\-)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/;\r\n\r\n    // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\r\n    // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\r\n    // and further modified to allow for strings containing both week and day\r\n    var isoRegex = /^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;\r\n\r\n    function create__createDuration (input, key) {\r\n        var duration = input,\r\n            // matching against regexp is expensive, do it on demand\r\n            match = null,\r\n            sign,\r\n            ret,\r\n            diffRes;\r\n\r\n        if (isDuration(input)) {\r\n            duration = {\r\n                ms : input._milliseconds,\r\n                d  : input._days,\r\n                M  : input._months\r\n            };\r\n        } else if (typeof input === 'number') {\r\n            duration = {};\r\n            if (key) {\r\n                duration[key] = input;\r\n            } else {\r\n                duration.milliseconds = input;\r\n            }\r\n        } else if (!!(match = aspNetRegex.exec(input))) {\r\n            sign = (match[1] === '-') ? -1 : 1;\r\n            duration = {\r\n                y  : 0,\r\n                d  : toInt(match[DATE])                         * sign,\r\n                h  : toInt(match[HOUR])                         * sign,\r\n                m  : toInt(match[MINUTE])                       * sign,\r\n                s  : toInt(match[SECOND])                       * sign,\r\n                ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match\r\n            };\r\n        } else if (!!(match = isoRegex.exec(input))) {\r\n            sign = (match[1] === '-') ? -1 : 1;\r\n            duration = {\r\n                y : parseIso(match[2], sign),\r\n                M : parseIso(match[3], sign),\r\n                w : parseIso(match[4], sign),\r\n                d : parseIso(match[5], sign),\r\n                h : parseIso(match[6], sign),\r\n                m : parseIso(match[7], sign),\r\n                s : parseIso(match[8], sign)\r\n            };\r\n        } else if (duration == null) {// checks for null or undefined\r\n            duration = {};\r\n        } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {\r\n            diffRes = momentsDifference(local__createLocal(duration.from), local__createLocal(duration.to));\r\n\r\n            duration = {};\r\n            duration.ms = diffRes.milliseconds;\r\n            duration.M = diffRes.months;\r\n        }\r\n\r\n        ret = new Duration(duration);\r\n\r\n        if (isDuration(input) && hasOwnProp(input, '_locale')) {\r\n            ret._locale = input._locale;\r\n        }\r\n\r\n        return ret;\r\n    }\r\n\r\n    create__createDuration.fn = Duration.prototype;\r\n\r\n    function parseIso (inp, sign) {\r\n        // We'd normally use ~~inp for this, but unfortunately it also\r\n        // converts floats to ints.\r\n        // inp may be undefined, so careful calling replace on it.\r\n        var res = inp && parseFloat(inp.replace(',', '.'));\r\n        // apply sign while we're at it\r\n        return (isNaN(res) ? 0 : res) * sign;\r\n    }\r\n\r\n    function positiveMomentsDifference(base, other) {\r\n        var res = {milliseconds: 0, months: 0};\r\n\r\n        res.months = other.month() - base.month() +\r\n            (other.year() - base.year()) * 12;\r\n        if (base.clone().add(res.months, 'M').isAfter(other)) {\r\n            --res.months;\r\n        }\r\n\r\n        res.milliseconds = +other - +(base.clone().add(res.months, 'M'));\r\n\r\n        return res;\r\n    }\r\n\r\n    function momentsDifference(base, other) {\r\n        var res;\r\n        if (!(base.isValid() && other.isValid())) {\r\n            return {milliseconds: 0, months: 0};\r\n        }\r\n\r\n        other = cloneWithOffset(other, base);\r\n        if (base.isBefore(other)) {\r\n            res = positiveMomentsDifference(base, other);\r\n        } else {\r\n            res = positiveMomentsDifference(other, base);\r\n            res.milliseconds = -res.milliseconds;\r\n            res.months = -res.months;\r\n        }\r\n\r\n        return res;\r\n    }\r\n\r\n    // TODO: remove 'name' arg after deprecation is removed\r\n    function createAdder(direction, name) {\r\n        return function (val, period) {\r\n            var dur, tmp;\r\n            //invert the arguments, but complain about it\r\n            if (period !== null && !isNaN(+period)) {\r\n                deprecateSimple(name, 'moment().' + name  + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +\r\n                'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');\r\n                tmp = val; val = period; period = tmp;\r\n            }\r\n\r\n            val = typeof val === 'string' ? +val : val;\r\n            dur = create__createDuration(val, period);\r\n            add_subtract__addSubtract(this, dur, direction);\r\n            return this;\r\n        };\r\n    }\r\n\r\n    function add_subtract__addSubtract (mom, duration, isAdding, updateOffset) {\r\n        var milliseconds = duration._milliseconds,\r\n            days = absRound(duration._days),\r\n            months = absRound(duration._months);\r\n\r\n        if (!mom.isValid()) {\r\n            // No op\r\n            return;\r\n        }\r\n\r\n        updateOffset = updateOffset == null ? true : updateOffset;\r\n\r\n        if (milliseconds) {\r\n            mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\r\n        }\r\n        if (days) {\r\n            get_set__set(mom, 'Date', get_set__get(mom, 'Date') + days * isAdding);\r\n        }\r\n        if (months) {\r\n            setMonth(mom, get_set__get(mom, 'Month') + months * isAdding);\r\n        }\r\n        if (updateOffset) {\r\n            utils_hooks__hooks.updateOffset(mom, days || months);\r\n        }\r\n    }\r\n\r\n    var add_subtract__add      = createAdder(1, 'add');\r\n    var add_subtract__subtract = createAdder(-1, 'subtract');\r\n\r\n    function getCalendarFormat(myMoment, now) {\r\n        var diff = myMoment.diff(now, 'days', true);\r\n        return diff < -6 ? 'sameElse' :\r\n                diff < -1 ? 'lastWeek' :\r\n                diff < 0 ? 'lastDay' :\r\n                diff < 1 ? 'sameDay' :\r\n                diff < 2 ? 'nextDay' :\r\n                diff < 7 ? 'nextWeek' : 'sameElse';\r\n    }\r\n\r\n    function moment_calendar__calendar (time, formats) {\r\n        // We want to compare the start of today, vs this.\r\n        // Getting start-of-today depends on whether we're local/utc/offset or not.\r\n        var now = time || local__createLocal(),\r\n            sod = cloneWithOffset(now, this).startOf('day'),\r\n            format = utils_hooks__hooks.calendarFormat(this, sod) || 'sameElse';\r\n\r\n        var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);\r\n\r\n        return this.format(output || this.localeData().calendar(format, this, local__createLocal(now)));\r\n    }\r\n\r\n    function clone () {\r\n        return new Moment(this);\r\n    }\r\n\r\n    function isAfter (input, units) {\r\n        var localInput = isMoment(input) ? input : local__createLocal(input);\r\n        if (!(this.isValid() && localInput.isValid())) {\r\n            return false;\r\n        }\r\n        units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');\r\n        if (units === 'millisecond') {\r\n            return this.valueOf() > localInput.valueOf();\r\n        } else {\r\n            return localInput.valueOf() < this.clone().startOf(units).valueOf();\r\n        }\r\n    }\r\n\r\n    function isBefore (input, units) {\r\n        var localInput = isMoment(input) ? input : local__createLocal(input);\r\n        if (!(this.isValid() && localInput.isValid())) {\r\n            return false;\r\n        }\r\n        units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');\r\n        if (units === 'millisecond') {\r\n            return this.valueOf() < localInput.valueOf();\r\n        } else {\r\n            return this.clone().endOf(units).valueOf() < localInput.valueOf();\r\n        }\r\n    }\r\n\r\n    function isBetween (from, to, units, inclusivity) {\r\n        inclusivity = inclusivity || '()';\r\n        return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&\r\n            (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));\r\n    }\r\n\r\n    function isSame (input, units) {\r\n        var localInput = isMoment(input) ? input : local__createLocal(input),\r\n            inputMs;\r\n        if (!(this.isValid() && localInput.isValid())) {\r\n            return false;\r\n        }\r\n        units = normalizeUnits(units || 'millisecond');\r\n        if (units === 'millisecond') {\r\n            return this.valueOf() === localInput.valueOf();\r\n        } else {\r\n            inputMs = localInput.valueOf();\r\n            return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();\r\n        }\r\n    }\r\n\r\n    function isSameOrAfter (input, units) {\r\n        return this.isSame(input, units) || this.isAfter(input,units);\r\n    }\r\n\r\n    function isSameOrBefore (input, units) {\r\n        return this.isSame(input, units) || this.isBefore(input,units);\r\n    }\r\n\r\n    function diff (input, units, asFloat) {\r\n        var that,\r\n            zoneDelta,\r\n            delta, output;\r\n\r\n        if (!this.isValid()) {\r\n            return NaN;\r\n        }\r\n\r\n        that = cloneWithOffset(input, this);\r\n\r\n        if (!that.isValid()) {\r\n            return NaN;\r\n        }\r\n\r\n        zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\r\n\r\n        units = normalizeUnits(units);\r\n\r\n        if (units === 'year' || units === 'month' || units === 'quarter') {\r\n            output = monthDiff(this, that);\r\n            if (units === 'quarter') {\r\n                output = output / 3;\r\n            } else if (units === 'year') {\r\n                output = output / 12;\r\n            }\r\n        } else {\r\n            delta = this - that;\r\n            output = units === 'second' ? delta / 1e3 : // 1000\r\n                units === 'minute' ? delta / 6e4 : // 1000 * 60\r\n                units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60\r\n                units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst\r\n                units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst\r\n                delta;\r\n        }\r\n        return asFloat ? output : absFloor(output);\r\n    }\r\n\r\n    function monthDiff (a, b) {\r\n        // difference in months\r\n        var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),\r\n            // b is in (anchor - 1 month, anchor + 1 month)\r\n            anchor = a.clone().add(wholeMonthDiff, 'months'),\r\n            anchor2, adjust;\r\n\r\n        if (b - anchor < 0) {\r\n            anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\r\n            // linear across the month\r\n            adjust = (b - anchor) / (anchor - anchor2);\r\n        } else {\r\n            anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\r\n            // linear across the month\r\n            adjust = (b - anchor) / (anchor2 - anchor);\r\n        }\r\n\r\n        //check for negative zero, return zero if negative zero\r\n        return -(wholeMonthDiff + adjust) || 0;\r\n    }\r\n\r\n    utils_hooks__hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\r\n    utils_hooks__hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\r\n\r\n    function toString () {\r\n        return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\r\n    }\r\n\r\n    function moment_format__toISOString () {\r\n        var m = this.clone().utc();\r\n        if (0 < m.year() && m.year() <= 9999) {\r\n            if (isFunction(Date.prototype.toISOString)) {\r\n                // native implementation is ~50x faster, use it when we can\r\n                return this.toDate().toISOString();\r\n            } else {\r\n                return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');\r\n            }\r\n        } else {\r\n            return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');\r\n        }\r\n    }\r\n\r\n    function format (inputString) {\r\n        if (!inputString) {\r\n            inputString = this.isUtc() ? utils_hooks__hooks.defaultFormatUtc : utils_hooks__hooks.defaultFormat;\r\n        }\r\n        var output = formatMoment(this, inputString);\r\n        return this.localeData().postformat(output);\r\n    }\r\n\r\n    function from (time, withoutSuffix) {\r\n        if (this.isValid() &&\r\n                ((isMoment(time) && time.isValid()) ||\r\n                 local__createLocal(time).isValid())) {\r\n            return create__createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);\r\n        } else {\r\n            return this.localeData().invalidDate();\r\n        }\r\n    }\r\n\r\n    function fromNow (withoutSuffix) {\r\n        return this.from(local__createLocal(), withoutSuffix);\r\n    }\r\n\r\n    function to (time, withoutSuffix) {\r\n        if (this.isValid() &&\r\n                ((isMoment(time) && time.isValid()) ||\r\n                 local__createLocal(time).isValid())) {\r\n            return create__createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);\r\n        } else {\r\n            return this.localeData().invalidDate();\r\n        }\r\n    }\r\n\r\n    function toNow (withoutSuffix) {\r\n        return this.to(local__createLocal(), withoutSuffix);\r\n    }\r\n\r\n    // If passed a locale key, it will set the locale for this\r\n    // instance.  Otherwise, it will return the locale configuration\r\n    // variables for this instance.\r\n    function locale (key) {\r\n        var newLocaleData;\r\n\r\n        if (key === undefined) {\r\n            return this._locale._abbr;\r\n        } else {\r\n            newLocaleData = locale_locales__getLocale(key);\r\n            if (newLocaleData != null) {\r\n                this._locale = newLocaleData;\r\n            }\r\n            return this;\r\n        }\r\n    }\r\n\r\n    var lang = deprecate(\r\n        'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\r\n        function (key) {\r\n            if (key === undefined) {\r\n                return this.localeData();\r\n            } else {\r\n                return this.locale(key);\r\n            }\r\n        }\r\n    );\r\n\r\n    function localeData () {\r\n        return this._locale;\r\n    }\r\n\r\n    function startOf (units) {\r\n        units = normalizeUnits(units);\r\n        // the following switch intentionally omits break keywords\r\n        // to utilize falling through the cases.\r\n        switch (units) {\r\n            case 'year':\r\n                this.month(0);\r\n                /* falls through */\r\n            case 'quarter':\r\n            case 'month':\r\n                this.date(1);\r\n                /* falls through */\r\n            case 'week':\r\n            case 'isoWeek':\r\n            case 'day':\r\n            case 'date':\r\n                this.hours(0);\r\n                /* falls through */\r\n            case 'hour':\r\n                this.minutes(0);\r\n                /* falls through */\r\n            case 'minute':\r\n                this.seconds(0);\r\n                /* falls through */\r\n            case 'second':\r\n                this.milliseconds(0);\r\n        }\r\n\r\n        // weeks are a special case\r\n        if (units === 'week') {\r\n            this.weekday(0);\r\n        }\r\n        if (units === 'isoWeek') {\r\n            this.isoWeekday(1);\r\n        }\r\n\r\n        // quarters are also special\r\n        if (units === 'quarter') {\r\n            this.month(Math.floor(this.month() / 3) * 3);\r\n        }\r\n\r\n        return this;\r\n    }\r\n\r\n    function endOf (units) {\r\n        units = normalizeUnits(units);\r\n        if (units === undefined || units === 'millisecond') {\r\n            return this;\r\n        }\r\n\r\n        // 'date' is an alias for 'day', so it should be considered as such.\r\n        if (units === 'date') {\r\n            units = 'day';\r\n        }\r\n\r\n        return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');\r\n    }\r\n\r\n    function to_type__valueOf () {\r\n        return this._d.valueOf() - ((this._offset || 0) * 60000);\r\n    }\r\n\r\n    function unix () {\r\n        return Math.floor(this.valueOf() / 1000);\r\n    }\r\n\r\n    function toDate () {\r\n        return new Date(this.valueOf());\r\n    }\r\n\r\n    function toArray () {\r\n        var m = this;\r\n        return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];\r\n    }\r\n\r\n    function toObject () {\r\n        var m = this;\r\n        return {\r\n            years: m.year(),\r\n            months: m.month(),\r\n            date: m.date(),\r\n            hours: m.hours(),\r\n            minutes: m.minutes(),\r\n            seconds: m.seconds(),\r\n            milliseconds: m.milliseconds()\r\n        };\r\n    }\r\n\r\n    function toJSON () {\r\n        // new Date(NaN).toJSON() === null\r\n        return this.isValid() ? this.toISOString() : null;\r\n    }\r\n\r\n    function moment_valid__isValid () {\r\n        return valid__isValid(this);\r\n    }\r\n\r\n    function parsingFlags () {\r\n        return extend({}, getParsingFlags(this));\r\n    }\r\n\r\n    function invalidAt () {\r\n        return getParsingFlags(this).overflow;\r\n    }\r\n\r\n    function creationData() {\r\n        return {\r\n            input: this._i,\r\n            format: this._f,\r\n            locale: this._locale,\r\n            isUTC: this._isUTC,\r\n            strict: this._strict\r\n        };\r\n    }\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken(0, ['gg', 2], 0, function () {\r\n        return this.weekYear() % 100;\r\n    });\r\n\r\n    addFormatToken(0, ['GG', 2], 0, function () {\r\n        return this.isoWeekYear() % 100;\r\n    });\r\n\r\n    function addWeekYearFormatToken (token, getter) {\r\n        addFormatToken(0, [token, token.length], 0, getter);\r\n    }\r\n\r\n    addWeekYearFormatToken('gggg',     'weekYear');\r\n    addWeekYearFormatToken('ggggg',    'weekYear');\r\n    addWeekYearFormatToken('GGGG',  'isoWeekYear');\r\n    addWeekYearFormatToken('GGGGG', 'isoWeekYear');\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('weekYear', 'gg');\r\n    addUnitAlias('isoWeekYear', 'GG');\r\n\r\n    // PRIORITY\r\n\r\n    addUnitPriority('weekYear', 1);\r\n    addUnitPriority('isoWeekYear', 1);\r\n\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('G',      matchSigned);\r\n    addRegexToken('g',      matchSigned);\r\n    addRegexToken('GG',     match1to2, match2);\r\n    addRegexToken('gg',     match1to2, match2);\r\n    addRegexToken('GGGG',   match1to4, match4);\r\n    addRegexToken('gggg',   match1to4, match4);\r\n    addRegexToken('GGGGG',  match1to6, match6);\r\n    addRegexToken('ggggg',  match1to6, match6);\r\n\r\n    addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {\r\n        week[token.substr(0, 2)] = toInt(input);\r\n    });\r\n\r\n    addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\r\n        week[token] = utils_hooks__hooks.parseTwoDigitYear(input);\r\n    });\r\n\r\n    // MOMENTS\r\n\r\n    function getSetWeekYear (input) {\r\n        return getSetWeekYearHelper.call(this,\r\n                input,\r\n                this.week(),\r\n                this.weekday(),\r\n                this.localeData()._week.dow,\r\n                this.localeData()._week.doy);\r\n    }\r\n\r\n    function getSetISOWeekYear (input) {\r\n        return getSetWeekYearHelper.call(this,\r\n                input, this.isoWeek(), this.isoWeekday(), 1, 4);\r\n    }\r\n\r\n    function getISOWeeksInYear () {\r\n        return weeksInYear(this.year(), 1, 4);\r\n    }\r\n\r\n    function getWeeksInYear () {\r\n        var weekInfo = this.localeData()._week;\r\n        return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\r\n    }\r\n\r\n    function getSetWeekYearHelper(input, week, weekday, dow, doy) {\r\n        var weeksTarget;\r\n        if (input == null) {\r\n            return weekOfYear(this, dow, doy).year;\r\n        } else {\r\n            weeksTarget = weeksInYear(input, dow, doy);\r\n            if (week > weeksTarget) {\r\n                week = weeksTarget;\r\n            }\r\n            return setWeekAll.call(this, input, week, weekday, dow, doy);\r\n        }\r\n    }\r\n\r\n    function setWeekAll(weekYear, week, weekday, dow, doy) {\r\n        var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\r\n            date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\r\n\r\n        this.year(date.getUTCFullYear());\r\n        this.month(date.getUTCMonth());\r\n        this.date(date.getUTCDate());\r\n        return this;\r\n    }\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('Q', 0, 'Qo', 'quarter');\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('quarter', 'Q');\r\n\r\n    // PRIORITY\r\n\r\n    addUnitPriority('quarter', 7);\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('Q', match1);\r\n    addParseToken('Q', function (input, array) {\r\n        array[MONTH] = (toInt(input) - 1) * 3;\r\n    });\r\n\r\n    // MOMENTS\r\n\r\n    function getSetQuarter (input) {\r\n        return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);\r\n    }\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('D', ['DD', 2], 'Do', 'date');\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('date', 'D');\r\n\r\n    // PRIOROITY\r\n    addUnitPriority('date', 9);\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('D',  match1to2);\r\n    addRegexToken('DD', match1to2, match2);\r\n    addRegexToken('Do', function (isStrict, locale) {\r\n        return isStrict ? locale._ordinalParse : locale._ordinalParseLenient;\r\n    });\r\n\r\n    addParseToken(['D', 'DD'], DATE);\r\n    addParseToken('Do', function (input, array) {\r\n        array[DATE] = toInt(input.match(match1to2)[0], 10);\r\n    });\r\n\r\n    // MOMENTS\r\n\r\n    var getSetDayOfMonth = makeGetSet('Date', true);\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('dayOfYear', 'DDD');\r\n\r\n    // PRIORITY\r\n    addUnitPriority('dayOfYear', 4);\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('DDD',  match1to3);\r\n    addRegexToken('DDDD', match3);\r\n    addParseToken(['DDD', 'DDDD'], function (input, array, config) {\r\n        config._dayOfYear = toInt(input);\r\n    });\r\n\r\n    // HELPERS\r\n\r\n    // MOMENTS\r\n\r\n    function getSetDayOfYear (input) {\r\n        var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;\r\n        return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');\r\n    }\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('m', ['mm', 2], 0, 'minute');\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('minute', 'm');\r\n\r\n    // PRIORITY\r\n\r\n    addUnitPriority('minute', 14);\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('m',  match1to2);\r\n    addRegexToken('mm', match1to2, match2);\r\n    addParseToken(['m', 'mm'], MINUTE);\r\n\r\n    // MOMENTS\r\n\r\n    var getSetMinute = makeGetSet('Minutes', false);\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('s', ['ss', 2], 0, 'second');\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('second', 's');\r\n\r\n    // PRIORITY\r\n\r\n    addUnitPriority('second', 15);\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('s',  match1to2);\r\n    addRegexToken('ss', match1to2, match2);\r\n    addParseToken(['s', 'ss'], SECOND);\r\n\r\n    // MOMENTS\r\n\r\n    var getSetSecond = makeGetSet('Seconds', false);\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('S', 0, 0, function () {\r\n        return ~~(this.millisecond() / 100);\r\n    });\r\n\r\n    addFormatToken(0, ['SS', 2], 0, function () {\r\n        return ~~(this.millisecond() / 10);\r\n    });\r\n\r\n    addFormatToken(0, ['SSS', 3], 0, 'millisecond');\r\n    addFormatToken(0, ['SSSS', 4], 0, function () {\r\n        return this.millisecond() * 10;\r\n    });\r\n    addFormatToken(0, ['SSSSS', 5], 0, function () {\r\n        return this.millisecond() * 100;\r\n    });\r\n    addFormatToken(0, ['SSSSSS', 6], 0, function () {\r\n        return this.millisecond() * 1000;\r\n    });\r\n    addFormatToken(0, ['SSSSSSS', 7], 0, function () {\r\n        return this.millisecond() * 10000;\r\n    });\r\n    addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\r\n        return this.millisecond() * 100000;\r\n    });\r\n    addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\r\n        return this.millisecond() * 1000000;\r\n    });\r\n\r\n\r\n    // ALIASES\r\n\r\n    addUnitAlias('millisecond', 'ms');\r\n\r\n    // PRIORITY\r\n\r\n    addUnitPriority('millisecond', 16);\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('S',    match1to3, match1);\r\n    addRegexToken('SS',   match1to3, match2);\r\n    addRegexToken('SSS',  match1to3, match3);\r\n\r\n    var token;\r\n    for (token = 'SSSS'; token.length <= 9; token += 'S') {\r\n        addRegexToken(token, matchUnsigned);\r\n    }\r\n\r\n    function parseMs(input, array) {\r\n        array[MILLISECOND] = toInt(('0.' + input) * 1000);\r\n    }\r\n\r\n    for (token = 'S'; token.length <= 9; token += 'S') {\r\n        addParseToken(token, parseMs);\r\n    }\r\n    // MOMENTS\r\n\r\n    var getSetMillisecond = makeGetSet('Milliseconds', false);\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('z',  0, 0, 'zoneAbbr');\r\n    addFormatToken('zz', 0, 0, 'zoneName');\r\n\r\n    // MOMENTS\r\n\r\n    function getZoneAbbr () {\r\n        return this._isUTC ? 'UTC' : '';\r\n    }\r\n\r\n    function getZoneName () {\r\n        return this._isUTC ? 'Coordinated Universal Time' : '';\r\n    }\r\n\r\n    var momentPrototype__proto = Moment.prototype;\r\n\r\n    momentPrototype__proto.add               = add_subtract__add;\r\n    momentPrototype__proto.calendar          = moment_calendar__calendar;\r\n    momentPrototype__proto.clone             = clone;\r\n    momentPrototype__proto.diff              = diff;\r\n    momentPrototype__proto.endOf             = endOf;\r\n    momentPrototype__proto.format            = format;\r\n    momentPrototype__proto.from              = from;\r\n    momentPrototype__proto.fromNow           = fromNow;\r\n    momentPrototype__proto.to                = to;\r\n    momentPrototype__proto.toNow             = toNow;\r\n    momentPrototype__proto.get               = stringGet;\r\n    momentPrototype__proto.invalidAt         = invalidAt;\r\n    momentPrototype__proto.isAfter           = isAfter;\r\n    momentPrototype__proto.isBefore          = isBefore;\r\n    momentPrototype__proto.isBetween         = isBetween;\r\n    momentPrototype__proto.isSame            = isSame;\r\n    momentPrototype__proto.isSameOrAfter     = isSameOrAfter;\r\n    momentPrototype__proto.isSameOrBefore    = isSameOrBefore;\r\n    momentPrototype__proto.isValid           = moment_valid__isValid;\r\n    momentPrototype__proto.lang              = lang;\r\n    momentPrototype__proto.locale            = locale;\r\n    momentPrototype__proto.localeData        = localeData;\r\n    momentPrototype__proto.max               = prototypeMax;\r\n    momentPrototype__proto.min               = prototypeMin;\r\n    momentPrototype__proto.parsingFlags      = parsingFlags;\r\n    momentPrototype__proto.set               = stringSet;\r\n    momentPrototype__proto.startOf           = startOf;\r\n    momentPrototype__proto.subtract          = add_subtract__subtract;\r\n    momentPrototype__proto.toArray           = toArray;\r\n    momentPrototype__proto.toObject          = toObject;\r\n    momentPrototype__proto.toDate            = toDate;\r\n    momentPrototype__proto.toISOString       = moment_format__toISOString;\r\n    momentPrototype__proto.toJSON            = toJSON;\r\n    momentPrototype__proto.toString          = toString;\r\n    momentPrototype__proto.unix              = unix;\r\n    momentPrototype__proto.valueOf           = to_type__valueOf;\r\n    momentPrototype__proto.creationData      = creationData;\r\n\r\n    // Year\r\n    momentPrototype__proto.year       = getSetYear;\r\n    momentPrototype__proto.isLeapYear = getIsLeapYear;\r\n\r\n    // Week Year\r\n    momentPrototype__proto.weekYear    = getSetWeekYear;\r\n    momentPrototype__proto.isoWeekYear = getSetISOWeekYear;\r\n\r\n    // Quarter\r\n    momentPrototype__proto.quarter = momentPrototype__proto.quarters = getSetQuarter;\r\n\r\n    // Month\r\n    momentPrototype__proto.month       = getSetMonth;\r\n    momentPrototype__proto.daysInMonth = getDaysInMonth;\r\n\r\n    // Week\r\n    momentPrototype__proto.week           = momentPrototype__proto.weeks        = getSetWeek;\r\n    momentPrototype__proto.isoWeek        = momentPrototype__proto.isoWeeks     = getSetISOWeek;\r\n    momentPrototype__proto.weeksInYear    = getWeeksInYear;\r\n    momentPrototype__proto.isoWeeksInYear = getISOWeeksInYear;\r\n\r\n    // Day\r\n    momentPrototype__proto.date       = getSetDayOfMonth;\r\n    momentPrototype__proto.day        = momentPrototype__proto.days             = getSetDayOfWeek;\r\n    momentPrototype__proto.weekday    = getSetLocaleDayOfWeek;\r\n    momentPrototype__proto.isoWeekday = getSetISODayOfWeek;\r\n    momentPrototype__proto.dayOfYear  = getSetDayOfYear;\r\n\r\n    // Hour\r\n    momentPrototype__proto.hour = momentPrototype__proto.hours = getSetHour;\r\n\r\n    // Minute\r\n    momentPrototype__proto.minute = momentPrototype__proto.minutes = getSetMinute;\r\n\r\n    // Second\r\n    momentPrototype__proto.second = momentPrototype__proto.seconds = getSetSecond;\r\n\r\n    // Millisecond\r\n    momentPrototype__proto.millisecond = momentPrototype__proto.milliseconds = getSetMillisecond;\r\n\r\n    // Offset\r\n    momentPrototype__proto.utcOffset            = getSetOffset;\r\n    momentPrototype__proto.utc                  = setOffsetToUTC;\r\n    momentPrototype__proto.local                = setOffsetToLocal;\r\n    momentPrototype__proto.parseZone            = setOffsetToParsedOffset;\r\n    momentPrototype__proto.hasAlignedHourOffset = hasAlignedHourOffset;\r\n    momentPrototype__proto.isDST                = isDaylightSavingTime;\r\n    momentPrototype__proto.isLocal              = isLocal;\r\n    momentPrototype__proto.isUtcOffset          = isUtcOffset;\r\n    momentPrototype__proto.isUtc                = isUtc;\r\n    momentPrototype__proto.isUTC                = isUtc;\r\n\r\n    // Timezone\r\n    momentPrototype__proto.zoneAbbr = getZoneAbbr;\r\n    momentPrototype__proto.zoneName = getZoneName;\r\n\r\n    // Deprecations\r\n    momentPrototype__proto.dates  = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);\r\n    momentPrototype__proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);\r\n    momentPrototype__proto.years  = deprecate('years accessor is deprecated. Use year instead', getSetYear);\r\n    momentPrototype__proto.zone   = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);\r\n    momentPrototype__proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);\r\n\r\n    var momentPrototype = momentPrototype__proto;\r\n\r\n    function moment__createUnix (input) {\r\n        return local__createLocal(input * 1000);\r\n    }\r\n\r\n    function moment__createInZone () {\r\n        return local__createLocal.apply(null, arguments).parseZone();\r\n    }\r\n\r\n    function preParsePostFormat (string) {\r\n        return string;\r\n    }\r\n\r\n    var prototype__proto = Locale.prototype;\r\n\r\n    prototype__proto.calendar        = locale_calendar__calendar;\r\n    prototype__proto.longDateFormat  = longDateFormat;\r\n    prototype__proto.invalidDate     = invalidDate;\r\n    prototype__proto.ordinal         = ordinal;\r\n    prototype__proto.preparse        = preParsePostFormat;\r\n    prototype__proto.postformat      = preParsePostFormat;\r\n    prototype__proto.relativeTime    = relative__relativeTime;\r\n    prototype__proto.pastFuture      = pastFuture;\r\n    prototype__proto.set             = locale_set__set;\r\n\r\n    // Month\r\n    prototype__proto.months            =        localeMonths;\r\n    prototype__proto.monthsShort       =        localeMonthsShort;\r\n    prototype__proto.monthsParse       =        localeMonthsParse;\r\n    prototype__proto.monthsRegex       = monthsRegex;\r\n    prototype__proto.monthsShortRegex  = monthsShortRegex;\r\n\r\n    // Week\r\n    prototype__proto.week = localeWeek;\r\n    prototype__proto.firstDayOfYear = localeFirstDayOfYear;\r\n    prototype__proto.firstDayOfWeek = localeFirstDayOfWeek;\r\n\r\n    // Day of Week\r\n    prototype__proto.weekdays       =        localeWeekdays;\r\n    prototype__proto.weekdaysMin    =        localeWeekdaysMin;\r\n    prototype__proto.weekdaysShort  =        localeWeekdaysShort;\r\n    prototype__proto.weekdaysParse  =        localeWeekdaysParse;\r\n\r\n    prototype__proto.weekdaysRegex       =        weekdaysRegex;\r\n    prototype__proto.weekdaysShortRegex  =        weekdaysShortRegex;\r\n    prototype__proto.weekdaysMinRegex    =        weekdaysMinRegex;\r\n\r\n    // Hours\r\n    prototype__proto.isPM = localeIsPM;\r\n    prototype__proto.meridiem = localeMeridiem;\r\n\r\n    function lists__get (format, index, field, setter) {\r\n        var locale = locale_locales__getLocale();\r\n        var utc = create_utc__createUTC().set(setter, index);\r\n        return locale[field](utc, format);\r\n    }\r\n\r\n    function listMonthsImpl (format, index, field) {\r\n        if (typeof format === 'number') {\r\n            index = format;\r\n            format = undefined;\r\n        }\r\n\r\n        format = format || '';\r\n\r\n        if (index != null) {\r\n            return lists__get(format, index, field, 'month');\r\n        }\r\n\r\n        var i;\r\n        var out = [];\r\n        for (i = 0; i < 12; i++) {\r\n            out[i] = lists__get(format, i, field, 'month');\r\n        }\r\n        return out;\r\n    }\r\n\r\n    // ()\r\n    // (5)\r\n    // (fmt, 5)\r\n    // (fmt)\r\n    // (true)\r\n    // (true, 5)\r\n    // (true, fmt, 5)\r\n    // (true, fmt)\r\n    function listWeekdaysImpl (localeSorted, format, index, field) {\r\n        if (typeof localeSorted === 'boolean') {\r\n            if (typeof format === 'number') {\r\n                index = format;\r\n                format = undefined;\r\n            }\r\n\r\n            format = format || '';\r\n        } else {\r\n            format = localeSorted;\r\n            index = format;\r\n            localeSorted = false;\r\n\r\n            if (typeof format === 'number') {\r\n                index = format;\r\n                format = undefined;\r\n            }\r\n\r\n            format = format || '';\r\n        }\r\n\r\n        var locale = locale_locales__getLocale(),\r\n            shift = localeSorted ? locale._week.dow : 0;\r\n\r\n        if (index != null) {\r\n            return lists__get(format, (index + shift) % 7, field, 'day');\r\n        }\r\n\r\n        var i;\r\n        var out = [];\r\n        for (i = 0; i < 7; i++) {\r\n            out[i] = lists__get(format, (i + shift) % 7, field, 'day');\r\n        }\r\n        return out;\r\n    }\r\n\r\n    function lists__listMonths (format, index) {\r\n        return listMonthsImpl(format, index, 'months');\r\n    }\r\n\r\n    function lists__listMonthsShort (format, index) {\r\n        return listMonthsImpl(format, index, 'monthsShort');\r\n    }\r\n\r\n    function lists__listWeekdays (localeSorted, format, index) {\r\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\r\n    }\r\n\r\n    function lists__listWeekdaysShort (localeSorted, format, index) {\r\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\r\n    }\r\n\r\n    function lists__listWeekdaysMin (localeSorted, format, index) {\r\n        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\r\n    }\r\n\r\n    locale_locales__getSetGlobalLocale('en', {\r\n        ordinalParse: /\\d{1,2}(th|st|nd|rd)/,\r\n        ordinal : function (number) {\r\n            var b = number % 10,\r\n                output = (toInt(number % 100 / 10) === 1) ? 'th' :\r\n                (b === 1) ? 'st' :\r\n                (b === 2) ? 'nd' :\r\n                (b === 3) ? 'rd' : 'th';\r\n            return number + output;\r\n        }\r\n    });\r\n\r\n    // Side effect imports\r\n    utils_hooks__hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', locale_locales__getSetGlobalLocale);\r\n    utils_hooks__hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', locale_locales__getLocale);\r\n\r\n    var mathAbs = Math.abs;\r\n\r\n    function duration_abs__abs () {\r\n        var data           = this._data;\r\n\r\n        this._milliseconds = mathAbs(this._milliseconds);\r\n        this._days         = mathAbs(this._days);\r\n        this._months       = mathAbs(this._months);\r\n\r\n        data.milliseconds  = mathAbs(data.milliseconds);\r\n        data.seconds       = mathAbs(data.seconds);\r\n        data.minutes       = mathAbs(data.minutes);\r\n        data.hours         = mathAbs(data.hours);\r\n        data.months        = mathAbs(data.months);\r\n        data.years         = mathAbs(data.years);\r\n\r\n        return this;\r\n    }\r\n\r\n    function duration_add_subtract__addSubtract (duration, input, value, direction) {\r\n        var other = create__createDuration(input, value);\r\n\r\n        duration._milliseconds += direction * other._milliseconds;\r\n        duration._days         += direction * other._days;\r\n        duration._months       += direction * other._months;\r\n\r\n        return duration._bubble();\r\n    }\r\n\r\n    // supports only 2.0-style add(1, 's') or add(duration)\r\n    function duration_add_subtract__add (input, value) {\r\n        return duration_add_subtract__addSubtract(this, input, value, 1);\r\n    }\r\n\r\n    // supports only 2.0-style subtract(1, 's') or subtract(duration)\r\n    function duration_add_subtract__subtract (input, value) {\r\n        return duration_add_subtract__addSubtract(this, input, value, -1);\r\n    }\r\n\r\n    function absCeil (number) {\r\n        if (number < 0) {\r\n            return Math.floor(number);\r\n        } else {\r\n            return Math.ceil(number);\r\n        }\r\n    }\r\n\r\n    function bubble () {\r\n        var milliseconds = this._milliseconds;\r\n        var days         = this._days;\r\n        var months       = this._months;\r\n        var data         = this._data;\r\n        var seconds, minutes, hours, years, monthsFromDays;\r\n\r\n        // if we have a mix of positive and negative values, bubble down first\r\n        // check: https://github.com/moment/moment/issues/2166\r\n        if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||\r\n                (milliseconds <= 0 && days <= 0 && months <= 0))) {\r\n            milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\r\n            days = 0;\r\n            months = 0;\r\n        }\r\n\r\n        // The following code bubbles up values, see the tests for\r\n        // examples of what that means.\r\n        data.milliseconds = milliseconds % 1000;\r\n\r\n        seconds           = absFloor(milliseconds / 1000);\r\n        data.seconds      = seconds % 60;\r\n\r\n        minutes           = absFloor(seconds / 60);\r\n        data.minutes      = minutes % 60;\r\n\r\n        hours             = absFloor(minutes / 60);\r\n        data.hours        = hours % 24;\r\n\r\n        days += absFloor(hours / 24);\r\n\r\n        // convert days to months\r\n        monthsFromDays = absFloor(daysToMonths(days));\r\n        months += monthsFromDays;\r\n        days -= absCeil(monthsToDays(monthsFromDays));\r\n\r\n        // 12 months -> 1 year\r\n        years = absFloor(months / 12);\r\n        months %= 12;\r\n\r\n        data.days   = days;\r\n        data.months = months;\r\n        data.years  = years;\r\n\r\n        return this;\r\n    }\r\n\r\n    function daysToMonths (days) {\r\n        // 400 years have 146097 days (taking into account leap year rules)\r\n        // 400 years have 12 months === 4800\r\n        return days * 4800 / 146097;\r\n    }\r\n\r\n    function monthsToDays (months) {\r\n        // the reverse of daysToMonths\r\n        return months * 146097 / 4800;\r\n    }\r\n\r\n    function as (units) {\r\n        var days;\r\n        var months;\r\n        var milliseconds = this._milliseconds;\r\n\r\n        units = normalizeUnits(units);\r\n\r\n        if (units === 'month' || units === 'year') {\r\n            days   = this._days   + milliseconds / 864e5;\r\n            months = this._months + daysToMonths(days);\r\n            return units === 'month' ? months : months / 12;\r\n        } else {\r\n            // handle milliseconds separately because of floating point math errors (issue #1867)\r\n            days = this._days + Math.round(monthsToDays(this._months));\r\n            switch (units) {\r\n                case 'week'   : return days / 7     + milliseconds / 6048e5;\r\n                case 'day'    : return days         + milliseconds / 864e5;\r\n                case 'hour'   : return days * 24    + milliseconds / 36e5;\r\n                case 'minute' : return days * 1440  + milliseconds / 6e4;\r\n                case 'second' : return days * 86400 + milliseconds / 1000;\r\n                // Math.floor prevents floating point math errors here\r\n                case 'millisecond': return Math.floor(days * 864e5) + milliseconds;\r\n                default: throw new Error('Unknown unit ' + units);\r\n            }\r\n        }\r\n    }\r\n\r\n    // TODO: Use this.as('ms')?\r\n    function duration_as__valueOf () {\r\n        return (\r\n            this._milliseconds +\r\n            this._days * 864e5 +\r\n            (this._months % 12) * 2592e6 +\r\n            toInt(this._months / 12) * 31536e6\r\n        );\r\n    }\r\n\r\n    function makeAs (alias) {\r\n        return function () {\r\n            return this.as(alias);\r\n        };\r\n    }\r\n\r\n    var asMilliseconds = makeAs('ms');\r\n    var asSeconds      = makeAs('s');\r\n    var asMinutes      = makeAs('m');\r\n    var asHours        = makeAs('h');\r\n    var asDays         = makeAs('d');\r\n    var asWeeks        = makeAs('w');\r\n    var asMonths       = makeAs('M');\r\n    var asYears        = makeAs('y');\r\n\r\n    function duration_get__get (units) {\r\n        units = normalizeUnits(units);\r\n        return this[units + 's']();\r\n    }\r\n\r\n    function makeGetter(name) {\r\n        return function () {\r\n            return this._data[name];\r\n        };\r\n    }\r\n\r\n    var milliseconds = makeGetter('milliseconds');\r\n    var seconds      = makeGetter('seconds');\r\n    var minutes      = makeGetter('minutes');\r\n    var hours        = makeGetter('hours');\r\n    var days         = makeGetter('days');\r\n    var months       = makeGetter('months');\r\n    var years        = makeGetter('years');\r\n\r\n    function weeks () {\r\n        return absFloor(this.days() / 7);\r\n    }\r\n\r\n    var round = Math.round;\r\n    var thresholds = {\r\n        s: 45,  // seconds to minute\r\n        m: 45,  // minutes to hour\r\n        h: 22,  // hours to day\r\n        d: 26,  // days to month\r\n        M: 11   // months to year\r\n    };\r\n\r\n    // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\r\n    function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\r\n        return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\r\n    }\r\n\r\n    function duration_humanize__relativeTime (posNegDuration, withoutSuffix, locale) {\r\n        var duration = create__createDuration(posNegDuration).abs();\r\n        var seconds  = round(duration.as('s'));\r\n        var minutes  = round(duration.as('m'));\r\n        var hours    = round(duration.as('h'));\r\n        var days     = round(duration.as('d'));\r\n        var months   = round(duration.as('M'));\r\n        var years    = round(duration.as('y'));\r\n\r\n        var a = seconds < thresholds.s && ['s', seconds]  ||\r\n                minutes <= 1           && ['m']           ||\r\n                minutes < thresholds.m && ['mm', minutes] ||\r\n                hours   <= 1           && ['h']           ||\r\n                hours   < thresholds.h && ['hh', hours]   ||\r\n                days    <= 1           && ['d']           ||\r\n                days    < thresholds.d && ['dd', days]    ||\r\n                months  <= 1           && ['M']           ||\r\n                months  < thresholds.M && ['MM', months]  ||\r\n                years   <= 1           && ['y']           || ['yy', years];\r\n\r\n        a[2] = withoutSuffix;\r\n        a[3] = +posNegDuration > 0;\r\n        a[4] = locale;\r\n        return substituteTimeAgo.apply(null, a);\r\n    }\r\n\r\n    // This function allows you to set the rounding function for relative time strings\r\n    function duration_humanize__getSetRelativeTimeRounding (roundingFunction) {\r\n        if (roundingFunction === undefined) {\r\n            return round;\r\n        }\r\n        if (typeof(roundingFunction) === 'function') {\r\n            round = roundingFunction;\r\n            return true;\r\n        }\r\n        return false;\r\n    }\r\n\r\n    // This function allows you to set a threshold for relative time strings\r\n    function duration_humanize__getSetRelativeTimeThreshold (threshold, limit) {\r\n        if (thresholds[threshold] === undefined) {\r\n            return false;\r\n        }\r\n        if (limit === undefined) {\r\n            return thresholds[threshold];\r\n        }\r\n        thresholds[threshold] = limit;\r\n        return true;\r\n    }\r\n\r\n    function humanize (withSuffix) {\r\n        var locale = this.localeData();\r\n        var output = duration_humanize__relativeTime(this, !withSuffix, locale);\r\n\r\n        if (withSuffix) {\r\n            output = locale.pastFuture(+this, output);\r\n        }\r\n\r\n        return locale.postformat(output);\r\n    }\r\n\r\n    var iso_string__abs = Math.abs;\r\n\r\n    function iso_string__toISOString() {\r\n        // for ISO strings we do not use the normal bubbling rules:\r\n        //  * milliseconds bubble up until they become hours\r\n        //  * days do not bubble at all\r\n        //  * months bubble up until they become years\r\n        // This is because there is no context-free conversion between hours and days\r\n        // (think of clock changes)\r\n        // and also not between days and months (28-31 days per month)\r\n        var seconds = iso_string__abs(this._milliseconds) / 1000;\r\n        var days         = iso_string__abs(this._days);\r\n        var months       = iso_string__abs(this._months);\r\n        var minutes, hours, years;\r\n\r\n        // 3600 seconds -> 60 minutes -> 1 hour\r\n        minutes           = absFloor(seconds / 60);\r\n        hours             = absFloor(minutes / 60);\r\n        seconds %= 60;\r\n        minutes %= 60;\r\n\r\n        // 12 months -> 1 year\r\n        years  = absFloor(months / 12);\r\n        months %= 12;\r\n\r\n\r\n        // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\r\n        var Y = years;\r\n        var M = months;\r\n        var D = days;\r\n        var h = hours;\r\n        var m = minutes;\r\n        var s = seconds;\r\n        var total = this.asSeconds();\r\n\r\n        if (!total) {\r\n            // this is the same as C#'s (Noda) and python (isodate)...\r\n            // but not other JS (goog.date)\r\n            return 'P0D';\r\n        }\r\n\r\n        return (total < 0 ? '-' : '') +\r\n            'P' +\r\n            (Y ? Y + 'Y' : '') +\r\n            (M ? M + 'M' : '') +\r\n            (D ? D + 'D' : '') +\r\n            ((h || m || s) ? 'T' : '') +\r\n            (h ? h + 'H' : '') +\r\n            (m ? m + 'M' : '') +\r\n            (s ? s + 'S' : '');\r\n    }\r\n\r\n    var duration_prototype__proto = Duration.prototype;\r\n\r\n    duration_prototype__proto.abs            = duration_abs__abs;\r\n    duration_prototype__proto.add            = duration_add_subtract__add;\r\n    duration_prototype__proto.subtract       = duration_add_subtract__subtract;\r\n    duration_prototype__proto.as             = as;\r\n    duration_prototype__proto.asMilliseconds = asMilliseconds;\r\n    duration_prototype__proto.asSeconds      = asSeconds;\r\n    duration_prototype__proto.asMinutes      = asMinutes;\r\n    duration_prototype__proto.asHours        = asHours;\r\n    duration_prototype__proto.asDays         = asDays;\r\n    duration_prototype__proto.asWeeks        = asWeeks;\r\n    duration_prototype__proto.asMonths       = asMonths;\r\n    duration_prototype__proto.asYears        = asYears;\r\n    duration_prototype__proto.valueOf        = duration_as__valueOf;\r\n    duration_prototype__proto._bubble        = bubble;\r\n    duration_prototype__proto.get            = duration_get__get;\r\n    duration_prototype__proto.milliseconds   = milliseconds;\r\n    duration_prototype__proto.seconds        = seconds;\r\n    duration_prototype__proto.minutes        = minutes;\r\n    duration_prototype__proto.hours          = hours;\r\n    duration_prototype__proto.days           = days;\r\n    duration_prototype__proto.weeks          = weeks;\r\n    duration_prototype__proto.months         = months;\r\n    duration_prototype__proto.years          = years;\r\n    duration_prototype__proto.humanize       = humanize;\r\n    duration_prototype__proto.toISOString    = iso_string__toISOString;\r\n    duration_prototype__proto.toString       = iso_string__toISOString;\r\n    duration_prototype__proto.toJSON         = iso_string__toISOString;\r\n    duration_prototype__proto.locale         = locale;\r\n    duration_prototype__proto.localeData     = localeData;\r\n\r\n    // Deprecations\r\n    duration_prototype__proto.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', iso_string__toISOString);\r\n    duration_prototype__proto.lang = lang;\r\n\r\n    // Side effect imports\r\n\r\n    // FORMATTING\r\n\r\n    addFormatToken('X', 0, 0, 'unix');\r\n    addFormatToken('x', 0, 0, 'valueOf');\r\n\r\n    // PARSING\r\n\r\n    addRegexToken('x', matchSigned);\r\n    addRegexToken('X', matchTimestamp);\r\n    addParseToken('X', function (input, array, config) {\r\n        config._d = new Date(parseFloat(input, 10) * 1000);\r\n    });\r\n    addParseToken('x', function (input, array, config) {\r\n        config._d = new Date(toInt(input));\r\n    });\r\n\r\n    // Side effect imports\r\n\r\n\r\n    utils_hooks__hooks.version = '2.15.1';\r\n\r\n    setHookCallback(local__createLocal);\r\n\r\n    utils_hooks__hooks.fn                    = momentPrototype;\r\n    utils_hooks__hooks.min                   = min;\r\n    utils_hooks__hooks.max                   = max;\r\n    utils_hooks__hooks.now                   = now;\r\n    utils_hooks__hooks.utc                   = create_utc__createUTC;\r\n    utils_hooks__hooks.unix                  = moment__createUnix;\r\n    utils_hooks__hooks.months                = lists__listMonths;\r\n    utils_hooks__hooks.isDate                = isDate;\r\n    utils_hooks__hooks.locale                = locale_locales__getSetGlobalLocale;\r\n    utils_hooks__hooks.invalid               = valid__createInvalid;\r\n    utils_hooks__hooks.duration              = create__createDuration;\r\n    utils_hooks__hooks.isMoment              = isMoment;\r\n    utils_hooks__hooks.weekdays              = lists__listWeekdays;\r\n    utils_hooks__hooks.parseZone             = moment__createInZone;\r\n    utils_hooks__hooks.localeData            = locale_locales__getLocale;\r\n    utils_hooks__hooks.isDuration            = isDuration;\r\n    utils_hooks__hooks.monthsShort           = lists__listMonthsShort;\r\n    utils_hooks__hooks.weekdaysMin           = lists__listWeekdaysMin;\r\n    utils_hooks__hooks.defineLocale          = defineLocale;\r\n    utils_hooks__hooks.updateLocale          = updateLocale;\r\n    utils_hooks__hooks.locales               = locale_locales__listLocales;\r\n    utils_hooks__hooks.weekdaysShort         = lists__listWeekdaysShort;\r\n    utils_hooks__hooks.normalizeUnits        = normalizeUnits;\r\n    utils_hooks__hooks.relativeTimeRounding = duration_humanize__getSetRelativeTimeRounding;\r\n    utils_hooks__hooks.relativeTimeThreshold = duration_humanize__getSetRelativeTimeThreshold;\r\n    utils_hooks__hooks.calendarFormat        = getCalendarFormat;\r\n    utils_hooks__hooks.prototype             = momentPrototype;\r\n\r\n    var _moment = utils_hooks__hooks;\r\n\r\n    return _moment;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/moment.js\n// module id = 0\n// module chunks = 2","var __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * @license Angular v4.1.3\r\n * (c) 2010-2017 Google, Inc. https://angular.io/\r\n * License: MIT\r\n */\r\nimport { Observable } from 'rxjs/Observable';\r\nimport { merge } from 'rxjs/observable/merge';\r\nimport { share } from 'rxjs/operator/share';\r\nimport { Subject } from 'rxjs/Subject';\r\n/**\r\n * Creates a token that can be used in a DI Provider.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/Ys9ezXpj2Mnoy3Uc8KBp?p=preview))\r\n *\r\n * ```typescript\r\n * var t = new OpaqueToken(\"value\");\r\n *\r\n * var injector = Injector.resolveAndCreate([\r\n *   {provide: t, useValue: \"bindingValue\"}\r\n * ]);\r\n *\r\n * expect(injector.get(t)).toEqual(\"bindingValue\");\r\n * ```\r\n *\r\n * Using an `OpaqueToken` is preferable to using strings as tokens because of possible collisions\r\n * caused by multiple providers using the same string as two different tokens.\r\n *\r\n * Using an `OpaqueToken` is preferable to using an `Object` as tokens because it provides better\r\n * error messages.\r\n * @deprecated since v4.0.0 because it does not support type information, use `InjectionToken<?>`\r\n * instead.\r\n */\r\nvar OpaqueToken = (function () {\r\n    /**\r\n     * @param {?} _desc\r\n     */\r\n    function OpaqueToken(_desc) {\r\n        this._desc = _desc;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    OpaqueToken.prototype.toString = function () { return \"Token \" + this._desc; };\r\n    return OpaqueToken;\r\n}());\r\n/**\r\n * Creates a token that can be used in a DI Provider.\r\n *\r\n * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a\r\n * runtime representation) such as when injecting an interface, callable type, array or\r\n * parametrized type.\r\n *\r\n * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by\r\n * the `Injector`. This provides additional level of type safety.\r\n *\r\n * ```\r\n * interface MyInterface {...}\r\n * var myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));\r\n * // myInterface is inferred to be MyInterface.\r\n * ```\r\n *\r\n * ### Example\r\n *\r\n * {\\@example core/di/ts/injector_spec.ts region='InjectionToken'}\r\n *\r\n * \\@stable\r\n */\r\nvar InjectionToken = (function (_super) {\r\n    __extends(InjectionToken, _super);\r\n    /**\r\n     * @param {?} desc\r\n     */\r\n    function InjectionToken(desc) {\r\n        return _super.call(this, desc) || this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    InjectionToken.prototype.toString = function () { return \"InjectionToken \" + this._desc; };\r\n    return InjectionToken;\r\n}(OpaqueToken));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar __window = typeof window !== 'undefined' && window;\r\nvar __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' &&\r\n    self instanceof WorkerGlobalScope && self;\r\nvar __global = typeof global !== 'undefined' && global;\r\nvar _global = __window || __global || __self;\r\nvar _symbolIterator = null;\r\n/**\r\n * @return {?}\r\n */\r\nfunction getSymbolIterator() {\r\n    if (!_symbolIterator) {\r\n        var /** @type {?} */ Symbol = _global['Symbol'];\r\n        if (Symbol && Symbol.iterator) {\r\n            _symbolIterator = Symbol.iterator;\r\n        }\r\n        else {\r\n            // es6-shim specific logic\r\n            var /** @type {?} */ keys = Object.getOwnPropertyNames(Map.prototype);\r\n            for (var /** @type {?} */ i = 0; i < keys.length; ++i) {\r\n                var /** @type {?} */ key = keys[i];\r\n                if (key !== 'entries' && key !== 'size' &&\r\n                    ((Map)).prototype[key] === Map.prototype['entries']) {\r\n                    _symbolIterator = key;\r\n                }\r\n            }\r\n        }\r\n    }\r\n    return _symbolIterator;\r\n}\r\n/**\r\n * @param {?} fn\r\n * @return {?}\r\n */\r\nfunction scheduleMicroTask(fn) {\r\n    Zone.current.scheduleMicroTask('scheduleMicrotask', fn);\r\n}\r\n/**\r\n * @param {?} a\r\n * @param {?} b\r\n * @return {?}\r\n */\r\nfunction looseIdentical(a, b) {\r\n    return a === b || typeof a === 'number' && typeof b === 'number' && isNaN(a) && isNaN(b);\r\n}\r\n/**\r\n * @param {?} token\r\n * @return {?}\r\n */\r\nfunction stringify(token) {\r\n    if (typeof token === 'string') {\r\n        return token;\r\n    }\r\n    if (token == null) {\r\n        return '' + token;\r\n    }\r\n    if (token.overriddenName) {\r\n        return \"\" + token.overriddenName;\r\n    }\r\n    if (token.name) {\r\n        return \"\" + token.name;\r\n    }\r\n    var /** @type {?} */ res = token.toString();\r\n    if (res == null) {\r\n        return '' + res;\r\n    }\r\n    var /** @type {?} */ newLineIndex = res.indexOf('\\n');\r\n    return newLineIndex === -1 ? res : res.substring(0, newLineIndex);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _nextClassId = 0;\r\nvar Reflect = _global['Reflect'];\r\n/**\r\n * @param {?} annotation\r\n * @return {?}\r\n */\r\nfunction extractAnnotation(annotation) {\r\n    if (typeof annotation === 'function' && annotation.hasOwnProperty('annotation')) {\r\n        // it is a decorator, extract annotation\r\n        annotation = annotation.annotation;\r\n    }\r\n    return annotation;\r\n}\r\n/**\r\n * @param {?} fnOrArray\r\n * @param {?} key\r\n * @return {?}\r\n */\r\nfunction applyParams(fnOrArray, key) {\r\n    if (fnOrArray === Object || fnOrArray === String || fnOrArray === Function ||\r\n        fnOrArray === Number || fnOrArray === Array) {\r\n        throw new Error(\"Can not use native \" + stringify(fnOrArray) + \" as constructor\");\r\n    }\r\n    if (typeof fnOrArray === 'function') {\r\n        return fnOrArray;\r\n    }\r\n    if (Array.isArray(fnOrArray)) {\r\n        var /** @type {?} */ annotations = (fnOrArray);\r\n        var /** @type {?} */ annoLength = annotations.length - 1;\r\n        var /** @type {?} */ fn = fnOrArray[annoLength];\r\n        if (typeof fn !== 'function') {\r\n            throw new Error(\"Last position of Class method array must be Function in key \" + key + \" was '\" + stringify(fn) + \"'\");\r\n        }\r\n        if (annoLength != fn.length) {\r\n            throw new Error(\"Number of annotations (\" + annoLength + \") does not match number of arguments (\" + fn.length + \") in the function: \" + stringify(fn));\r\n        }\r\n        var /** @type {?} */ paramsAnnotations = [];\r\n        for (var /** @type {?} */ i = 0, /** @type {?} */ ii = annotations.length - 1; i < ii; i++) {\r\n            var /** @type {?} */ paramAnnotations = [];\r\n            paramsAnnotations.push(paramAnnotations);\r\n            var /** @type {?} */ annotation = annotations[i];\r\n            if (Array.isArray(annotation)) {\r\n                for (var /** @type {?} */ j = 0; j < annotation.length; j++) {\r\n                    paramAnnotations.push(extractAnnotation(annotation[j]));\r\n                }\r\n            }\r\n            else if (typeof annotation === 'function') {\r\n                paramAnnotations.push(extractAnnotation(annotation));\r\n            }\r\n            else {\r\n                paramAnnotations.push(annotation);\r\n            }\r\n        }\r\n        Reflect.defineMetadata('parameters', paramsAnnotations, fn);\r\n        return fn;\r\n    }\r\n    throw new Error(\"Only Function or Array is supported in Class definition for key '\" + key + \"' is '\" + stringify(fnOrArray) + \"'\");\r\n}\r\n/**\r\n * Provides a way for expressing ES6 classes with parameter annotations in ES5.\r\n *\r\n * ## Basic Example\r\n *\r\n * ```\r\n * var Greeter = ng.Class({\r\n *   constructor: function(name) {\r\n *     this.name = name;\r\n *   },\r\n *\r\n *   greet: function() {\r\n *     alert('Hello ' + this.name + '!');\r\n *   }\r\n * });\r\n * ```\r\n *\r\n * is equivalent to ES6:\r\n *\r\n * ```\r\n * class Greeter {\r\n *   constructor(name) {\r\n *     this.name = name;\r\n *   }\r\n *\r\n *   greet() {\r\n *     alert('Hello ' + this.name + '!');\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * or equivalent to ES5:\r\n *\r\n * ```\r\n * var Greeter = function (name) {\r\n *   this.name = name;\r\n * }\r\n *\r\n * Greeter.prototype.greet = function () {\r\n *   alert('Hello ' + this.name + '!');\r\n * }\r\n * ```\r\n *\r\n * ### Example with parameter annotations\r\n *\r\n * ```\r\n * var MyService = ng.Class({\r\n *   constructor: [String, [new Optional(), Service], function(name, myService) {\r\n *     ...\r\n *   }]\r\n * });\r\n * ```\r\n *\r\n * is equivalent to ES6:\r\n *\r\n * ```\r\n * class MyService {\r\n *   constructor(name: string, \\@Optional() myService: Service) {\r\n *     ...\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * ### Example with inheritance\r\n *\r\n * ```\r\n * var Shape = ng.Class({\r\n *   constructor: (color) {\r\n *     this.color = color;\r\n *   }\r\n * });\r\n *\r\n * var Square = ng.Class({\r\n *   extends: Shape,\r\n *   constructor: function(color, size) {\r\n *     Shape.call(this, color);\r\n *     this.size = size;\r\n *   }\r\n * });\r\n * ```\r\n * @suppress {globalThis}\r\n * \\@stable\r\n * @param {?} clsDef\r\n * @return {?}\r\n */\r\nfunction Class(clsDef) {\r\n    var /** @type {?} */ constructor = applyParams(clsDef.hasOwnProperty('constructor') ? clsDef.constructor : undefined, 'constructor');\r\n    var /** @type {?} */ proto = constructor.prototype;\r\n    if (clsDef.hasOwnProperty('extends')) {\r\n        if (typeof clsDef.extends === 'function') {\r\n            ((constructor)).prototype = proto =\r\n                Object.create(((clsDef.extends)).prototype);\r\n        }\r\n        else {\r\n            throw new Error(\"Class definition 'extends' property must be a constructor function was: \" + stringify(clsDef.extends));\r\n        }\r\n    }\r\n    for (var /** @type {?} */ key in clsDef) {\r\n        if (key !== 'extends' && key !== 'prototype' && clsDef.hasOwnProperty(key)) {\r\n            proto[key] = applyParams(clsDef[key], key);\r\n        }\r\n    }\r\n    if (this && this.annotations instanceof Array) {\r\n        Reflect.defineMetadata('annotations', this.annotations, constructor);\r\n    }\r\n    var /** @type {?} */ constructorName = constructor['name'];\r\n    if (!constructorName || constructorName === 'constructor') {\r\n        ((constructor))['overriddenName'] = \"class\" + _nextClassId++;\r\n    }\r\n    return (constructor);\r\n}\r\n/**\r\n * @suppress {globalThis}\r\n * @param {?} name\r\n * @param {?} props\r\n * @param {?=} parentClass\r\n * @param {?=} chainFn\r\n * @return {?}\r\n */\r\nfunction makeDecorator(name, props, parentClass, chainFn) {\r\n    var /** @type {?} */ metaCtor = makeMetadataCtor([props]);\r\n    /**\r\n     * @param {?} objOrType\r\n     * @return {?}\r\n     */\r\n    function DecoratorFactory(objOrType) {\r\n        if (!(Reflect && Reflect.getOwnMetadata)) {\r\n            throw 'reflect-metadata shim is required when using class decorators';\r\n        }\r\n        if (this instanceof DecoratorFactory) {\r\n            metaCtor.call(this, objOrType);\r\n            return this;\r\n        }\r\n        var /** @type {?} */ annotationInstance = new ((DecoratorFactory))(objOrType);\r\n        var /** @type {?} */ chainAnnotation = typeof this === 'function' && Array.isArray(this.annotations) ? this.annotations : [];\r\n        chainAnnotation.push(annotationInstance);\r\n        var /** @type {?} */ TypeDecorator = (function TypeDecorator(cls) {\r\n            var /** @type {?} */ annotations = Reflect.getOwnMetadata('annotations', cls) || [];\r\n            annotations.push(annotationInstance);\r\n            Reflect.defineMetadata('annotations', annotations, cls);\r\n            return cls;\r\n        });\r\n        TypeDecorator.annotations = chainAnnotation;\r\n        TypeDecorator.Class = Class;\r\n        if (chainFn)\r\n            chainFn(TypeDecorator);\r\n        return TypeDecorator;\r\n    }\r\n    if (parentClass) {\r\n        DecoratorFactory.prototype = Object.create(parentClass.prototype);\r\n    }\r\n    DecoratorFactory.prototype.toString = function () { return \"@\" + name; };\r\n    ((DecoratorFactory)).annotationCls = DecoratorFactory;\r\n    return DecoratorFactory;\r\n}\r\n/**\r\n * @param {?} props\r\n * @return {?}\r\n */\r\nfunction makeMetadataCtor(props) {\r\n    return function ctor() {\r\n        var _this = this;\r\n        var args = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            args[_i] = arguments[_i];\r\n        }\r\n        props.forEach(function (prop, i) {\r\n            var /** @type {?} */ argVal = args[i];\r\n            if (Array.isArray(prop)) {\r\n                // plain parameter\r\n                _this[prop[0]] = argVal === undefined ? prop[1] : argVal;\r\n            }\r\n            else {\r\n                for (var /** @type {?} */ propName in prop) {\r\n                    _this[propName] =\r\n                        argVal && argVal.hasOwnProperty(propName) ? argVal[propName] : prop[propName];\r\n                }\r\n            }\r\n        });\r\n    };\r\n}\r\n/**\r\n * @param {?} name\r\n * @param {?} props\r\n * @param {?=} parentClass\r\n * @return {?}\r\n */\r\nfunction makeParamDecorator(name, props, parentClass) {\r\n    var /** @type {?} */ metaCtor = makeMetadataCtor(props);\r\n    /**\r\n     * @param {...?} args\r\n     * @return {?}\r\n     */\r\n    function ParamDecoratorFactory() {\r\n        var args = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            args[_i] = arguments[_i];\r\n        }\r\n        if (this instanceof ParamDecoratorFactory) {\r\n            metaCtor.apply(this, args);\r\n            return this;\r\n        }\r\n        var /** @type {?} */ annotationInstance = new (((ParamDecoratorFactory)).bind.apply(((ParamDecoratorFactory)), [void 0].concat(args)))();\r\n        ((ParamDecorator)).annotation = annotationInstance;\r\n        return ParamDecorator;\r\n        /**\r\n         * @param {?} cls\r\n         * @param {?} unusedKey\r\n         * @param {?} index\r\n         * @return {?}\r\n         */\r\n        function ParamDecorator(cls, unusedKey, index) {\r\n            var /** @type {?} */ parameters = Reflect.getOwnMetadata('parameters', cls) || [];\r\n            // there might be gaps if some in between parameters do not have annotations.\r\n            // we pad with nulls.\r\n            while (parameters.length <= index) {\r\n                parameters.push(null);\r\n            }\r\n            parameters[index] = parameters[index] || []; /** @type {?} */\r\n            ((parameters[index])).push(annotationInstance);\r\n            Reflect.defineMetadata('parameters', parameters, cls);\r\n            return cls;\r\n        }\r\n    }\r\n    if (parentClass) {\r\n        ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);\r\n    }\r\n    ParamDecoratorFactory.prototype.toString = function () { return \"@\" + name; };\r\n    ((ParamDecoratorFactory)).annotationCls = ParamDecoratorFactory;\r\n    return ParamDecoratorFactory;\r\n}\r\n/**\r\n * @param {?} name\r\n * @param {?} props\r\n * @param {?=} parentClass\r\n * @return {?}\r\n */\r\nfunction makePropDecorator(name, props, parentClass) {\r\n    var /** @type {?} */ metaCtor = makeMetadataCtor(props);\r\n    /**\r\n     * @param {...?} args\r\n     * @return {?}\r\n     */\r\n    function PropDecoratorFactory() {\r\n        var args = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            args[_i] = arguments[_i];\r\n        }\r\n        if (this instanceof PropDecoratorFactory) {\r\n            metaCtor.apply(this, args);\r\n            return this;\r\n        }\r\n        var /** @type {?} */ decoratorInstance = new (((PropDecoratorFactory)).bind.apply(((PropDecoratorFactory)), [void 0].concat(args)))();\r\n        return function PropDecorator(target, name) {\r\n            var /** @type {?} */ meta = Reflect.getOwnMetadata('propMetadata', target.constructor) || {};\r\n            meta[name] = meta.hasOwnProperty(name) && meta[name] || [];\r\n            meta[name].unshift(decoratorInstance);\r\n            Reflect.defineMetadata('propMetadata', meta, target.constructor);\r\n        };\r\n    }\r\n    if (parentClass) {\r\n        PropDecoratorFactory.prototype = Object.create(parentClass.prototype);\r\n    }\r\n    PropDecoratorFactory.prototype.toString = function () { return \"@\" + name; };\r\n    ((PropDecoratorFactory)).annotationCls = PropDecoratorFactory;\r\n    return PropDecoratorFactory;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * This token can be used to create a virtual provider that will populate the\r\n * `entryComponents` fields of components and ng modules based on its `useValue`.\r\n * All components that are referenced in the `useValue` value (either directly\r\n * or in a nested array or map) will be added to the `entryComponents` property.\r\n *\r\n * ### Example\r\n * The following example shows how the router can populate the `entryComponents`\r\n * field of an NgModule based on the router configuration which refers\r\n * to components.\r\n *\r\n * ```typescript\r\n * // helper function inside the router\r\n * function provideRoutes(routes) {\r\n *   return [\r\n *     {provide: ROUTES, useValue: routes},\r\n *     {provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: routes, multi: true}\r\n *   ];\r\n * }\r\n *\r\n * // user code\r\n * let routes = [\r\n *   {path: '/root', component: RootComp},\r\n *   {path: '/teams', component: TeamsComp}\r\n * ];\r\n *\r\n * \\@NgModule({\r\n *   providers: [provideRoutes(routes)]\r\n * })\r\n * class ModuleWithRoutes {}\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar ANALYZE_FOR_ENTRY_COMPONENTS = new InjectionToken('AnalyzeForEntryComponents');\r\n/**\r\n * Attribute decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Attribute = makeParamDecorator('Attribute', [['attributeName', undefined]]);\r\n/**\r\n * Base class for query metadata.\r\n *\r\n * See {\\@link ContentChildren}, {\\@link ContentChild}, {\\@link ViewChildren}, {\\@link ViewChild} for\r\n * more information.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar Query = (function () {\r\n    function Query() {\r\n    }\r\n    return Query;\r\n}());\r\n/**\r\n * ContentChildren decorator and metadata.\r\n *\r\n *  \\@stable\r\n *  \\@Annotation\r\n */\r\nvar ContentChildren = makePropDecorator('ContentChildren', [\r\n    ['selector', undefined], {\r\n        first: false,\r\n        isViewQuery: false,\r\n        descendants: false,\r\n        read: undefined,\r\n    }\r\n], Query);\r\n/**\r\n * ContentChild decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar ContentChild = makePropDecorator('ContentChild', [\r\n    ['selector', undefined], {\r\n        first: true,\r\n        isViewQuery: false,\r\n        descendants: true,\r\n        read: undefined,\r\n    }\r\n], Query);\r\n/**\r\n * ViewChildren decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar ViewChildren = makePropDecorator('ViewChildren', [\r\n    ['selector', undefined], {\r\n        first: false,\r\n        isViewQuery: true,\r\n        descendants: true,\r\n        read: undefined,\r\n    }\r\n], Query);\r\n/**\r\n * ViewChild decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar ViewChild = makePropDecorator('ViewChild', [\r\n    ['selector', undefined], {\r\n        first: true,\r\n        isViewQuery: true,\r\n        descendants: true,\r\n        read: undefined,\r\n    }\r\n], Query);\r\nvar ChangeDetectionStrategy = {};\r\nChangeDetectionStrategy.OnPush = 0;\r\nChangeDetectionStrategy.Default = 1;\r\nChangeDetectionStrategy[ChangeDetectionStrategy.OnPush] = \"OnPush\";\r\nChangeDetectionStrategy[ChangeDetectionStrategy.Default] = \"Default\";\r\nvar ChangeDetectorStatus = {};\r\nChangeDetectorStatus.CheckOnce = 0;\r\nChangeDetectorStatus.Checked = 1;\r\nChangeDetectorStatus.CheckAlways = 2;\r\nChangeDetectorStatus.Detached = 3;\r\nChangeDetectorStatus.Errored = 4;\r\nChangeDetectorStatus.Destroyed = 5;\r\nChangeDetectorStatus[ChangeDetectorStatus.CheckOnce] = \"CheckOnce\";\r\nChangeDetectorStatus[ChangeDetectorStatus.Checked] = \"Checked\";\r\nChangeDetectorStatus[ChangeDetectorStatus.CheckAlways] = \"CheckAlways\";\r\nChangeDetectorStatus[ChangeDetectorStatus.Detached] = \"Detached\";\r\nChangeDetectorStatus[ChangeDetectorStatus.Errored] = \"Errored\";\r\nChangeDetectorStatus[ChangeDetectorStatus.Destroyed] = \"Destroyed\";\r\n/**\r\n * @param {?} changeDetectionStrategy\r\n * @return {?}\r\n */\r\nfunction isDefaultChangeDetectionStrategy(changeDetectionStrategy) {\r\n    return changeDetectionStrategy == null ||\r\n        changeDetectionStrategy === ChangeDetectionStrategy.Default;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Directive decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Directive = makeDecorator('Directive', {\r\n    selector: undefined,\r\n    inputs: undefined,\r\n    outputs: undefined,\r\n    host: undefined,\r\n    providers: undefined,\r\n    exportAs: undefined,\r\n    queries: undefined\r\n});\r\n/**\r\n * Component decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Component = makeDecorator('Component', {\r\n    selector: undefined,\r\n    inputs: undefined,\r\n    outputs: undefined,\r\n    host: undefined,\r\n    exportAs: undefined,\r\n    moduleId: undefined,\r\n    providers: undefined,\r\n    viewProviders: undefined,\r\n    changeDetection: ChangeDetectionStrategy.Default,\r\n    queries: undefined,\r\n    templateUrl: undefined,\r\n    template: undefined,\r\n    styleUrls: undefined,\r\n    styles: undefined,\r\n    animations: undefined,\r\n    encapsulation: undefined,\r\n    interpolation: undefined,\r\n    entryComponents: undefined\r\n}, Directive);\r\n/**\r\n * Pipe decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Pipe = makeDecorator('Pipe', {\r\n    name: undefined,\r\n    pure: true,\r\n});\r\n/**\r\n * Input decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Input = makePropDecorator('Input', [['bindingPropertyName', undefined]]);\r\n/**\r\n * Output decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Output = makePropDecorator('Output', [['bindingPropertyName', undefined]]);\r\n/**\r\n * HostBinding decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar HostBinding = makePropDecorator('HostBinding', [['hostPropertyName', undefined]]);\r\n/**\r\n * HostListener decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar HostListener = makePropDecorator('HostListener', [['eventName', undefined], ['args', []]]);\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Defines a schema that will allow:\r\n * - any non-Angular elements with a `-` in their name,\r\n * - any properties on elements with a `-` in their name which is the common rule for custom\r\n * elements.\r\n *\r\n * \\@stable\r\n */\r\nvar CUSTOM_ELEMENTS_SCHEMA = {\r\n    name: 'custom-elements'\r\n};\r\n/**\r\n * Defines a schema that will allow any property on any element.\r\n *\r\n * \\@experimental\r\n */\r\nvar NO_ERRORS_SCHEMA = {\r\n    name: 'no-errors-schema'\r\n};\r\n/**\r\n * NgModule decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar NgModule = makeDecorator('NgModule', {\r\n    providers: undefined,\r\n    declarations: undefined,\r\n    imports: undefined,\r\n    exports: undefined,\r\n    entryComponents: undefined,\r\n    bootstrap: undefined,\r\n    schemas: undefined,\r\n    id: undefined,\r\n});\r\nvar ViewEncapsulation = {};\r\nViewEncapsulation.Emulated = 0;\r\nViewEncapsulation.Native = 1;\r\nViewEncapsulation.None = 2;\r\nViewEncapsulation[ViewEncapsulation.Emulated] = \"Emulated\";\r\nViewEncapsulation[ViewEncapsulation.Native] = \"Native\";\r\nViewEncapsulation[ViewEncapsulation.None] = \"None\";\r\n/**\r\n * Metadata properties available for configuring Views.\r\n *\r\n * For details on the `\\@Component` annotation, see {\\@link Component}.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * \\@Component({\r\n *   selector: 'greet',\r\n *   template: 'Hello {{name}}!',\r\n * })\r\n * class Greet {\r\n *   name: string;\r\n *\r\n *   constructor() {\r\n *     this.name = 'World';\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * @deprecated Use Component instead.\r\n *\r\n * {\\@link Component}\r\n */\r\nvar ViewMetadata = (function () {\r\n    /**\r\n     * @param {?=} __0\r\n     */\r\n    function ViewMetadata(_a) {\r\n        var _b = _a === void 0 ? {} : _a, templateUrl = _b.templateUrl, template = _b.template, encapsulation = _b.encapsulation, styles = _b.styles, styleUrls = _b.styleUrls, animations = _b.animations, interpolation = _b.interpolation;\r\n        this.templateUrl = templateUrl;\r\n        this.template = template;\r\n        this.styleUrls = styleUrls;\r\n        this.styles = styles;\r\n        this.encapsulation = encapsulation;\r\n        this.animations = animations;\r\n        this.interpolation = interpolation;\r\n    }\r\n    return ViewMetadata;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Represents the version of Angular\r\n *\r\n * \\@stable\r\n */\r\nvar Version = (function () {\r\n    /**\r\n     * @param {?} full\r\n     */\r\n    function Version(full) {\r\n        this.full = full;\r\n    }\r\n    Object.defineProperty(Version.prototype, \"major\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.full.split('.')[0]; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Version.prototype, \"minor\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.full.split('.')[1]; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Version.prototype, \"patch\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.full.split('.').slice(2).join('.'); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return Version;\r\n}());\r\n/**\r\n * \\@stable\r\n */\r\nvar VERSION = new Version('4.1.3');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Inject decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Inject = makeParamDecorator('Inject', [['token', undefined]]);\r\n/**\r\n * Optional decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Optional = makeParamDecorator('Optional', []);\r\n/**\r\n * Injectable decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Injectable = makeDecorator('Injectable', []);\r\n/**\r\n * Self decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Self = makeParamDecorator('Self', []);\r\n/**\r\n * SkipSelf decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar SkipSelf = makeParamDecorator('SkipSelf', []);\r\n/**\r\n * Host decorator and metadata.\r\n *\r\n * \\@stable\r\n * \\@Annotation\r\n */\r\nvar Host = makeParamDecorator('Host', []);\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Allows to refer to references which are not yet defined.\r\n *\r\n * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of\r\n * DI is declared,\r\n * but not yet defined. It is also used when the `token` which we use when creating a query is not\r\n * yet defined.\r\n *\r\n * ### Example\r\n * {\\@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}\r\n * \\@experimental\r\n * @param {?} forwardRefFn\r\n * @return {?}\r\n */\r\nfunction forwardRef(forwardRefFn) {\r\n    ((forwardRefFn)).__forward_ref__ = forwardRef;\r\n    ((forwardRefFn)).toString = function () { return stringify(this()); };\r\n    return (((forwardRefFn)));\r\n}\r\n/**\r\n * Lazily retrieves the reference value from a forwardRef.\r\n *\r\n * Acts as the identity function when given a non-forward-ref value.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/GU72mJrk1fiodChcmiDR?p=preview))\r\n *\r\n * {\\@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}\r\n *\r\n * See: {\\@link forwardRef}\r\n * \\@experimental\r\n * @param {?} type\r\n * @return {?}\r\n */\r\nfunction resolveForwardRef(type) {\r\n    if (typeof type === 'function' && type.hasOwnProperty('__forward_ref__') &&\r\n        type.__forward_ref__ === forwardRef) {\r\n        return ((type))();\r\n    }\r\n    else {\r\n        return type;\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _THROW_IF_NOT_FOUND = new Object();\r\nvar THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\r\nvar _NullInjector = (function () {\r\n    function _NullInjector() {\r\n    }\r\n    /**\r\n     * @param {?} token\r\n     * @param {?=} notFoundValue\r\n     * @return {?}\r\n     */\r\n    _NullInjector.prototype.get = function (token, notFoundValue) {\r\n        if (notFoundValue === void 0) { notFoundValue = _THROW_IF_NOT_FOUND; }\r\n        if (notFoundValue === _THROW_IF_NOT_FOUND) {\r\n            throw new Error(\"No provider for \" + stringify(token) + \"!\");\r\n        }\r\n        return notFoundValue;\r\n    };\r\n    return _NullInjector;\r\n}());\r\n/**\r\n * \\@whatItDoes Injector interface\r\n * \\@howToUse\r\n * ```\r\n * const injector: Injector = ...;\r\n * injector.get(...);\r\n * ```\r\n *\r\n * \\@description\r\n * For more details, see the {\\@linkDocs guide/dependency-injection \"Dependency Injection Guide\"}.\r\n *\r\n * ### Example\r\n *\r\n * {\\@example core/di/ts/injector_spec.ts region='Injector'}\r\n *\r\n * `Injector` returns itself when given `Injector` as a token:\r\n * {\\@example core/di/ts/injector_spec.ts region='injectInjector'}\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar Injector = (function () {\r\n    function Injector() {\r\n    }\r\n    /**\r\n     * Retrieves an instance from the injector based on the provided token.\r\n     * If not found:\r\n     * - Throws an error if no `notFoundValue` that is not equal to\r\n     * Injector.THROW_IF_NOT_FOUND is given\r\n     * - Returns the `notFoundValue` otherwise\r\n     * @abstract\r\n     * @template T\r\n     * @param {?} token\r\n     * @param {?=} notFoundValue\r\n     * @return {?}\r\n     */\r\n    Injector.prototype.get = function (token, notFoundValue) { };\r\n    /**\r\n     * @deprecated from v4.0.0 use Type<T> or InjectionToken<T>\r\n     * @suppress {duplicate}\r\n     * @abstract\r\n     * @param {?} token\r\n     * @param {?=} notFoundValue\r\n     * @return {?}\r\n     */\r\n    Injector.prototype.get = function (token, notFoundValue) { };\r\n    return Injector;\r\n}());\r\nInjector.THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\r\nInjector.NULL = new _NullInjector();\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ERROR_COMPONENT_TYPE = 'ngComponentType';\r\nvar ERROR_DEBUG_CONTEXT = 'ngDebugContext';\r\nvar ERROR_ORIGINAL_ERROR = 'ngOriginalError';\r\nvar ERROR_LOGGER = 'ngErrorLogger';\r\n/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\n/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\nfunction getDebugContext(error) {\r\n    return ((error))[ERROR_DEBUG_CONTEXT];\r\n}\r\n/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\nfunction getOriginalError(error) {\r\n    return ((error))[ERROR_ORIGINAL_ERROR];\r\n}\r\n/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\nfunction getErrorLogger(error) {\r\n    return ((error))[ERROR_LOGGER] || defaultErrorLogger;\r\n}\r\n/**\r\n * @param {?} console\r\n * @param {...?} values\r\n * @return {?}\r\n */\r\nfunction defaultErrorLogger(console) {\r\n    var values = [];\r\n    for (var _i = 1; _i < arguments.length; _i++) {\r\n        values[_i - 1] = arguments[_i];\r\n    }\r\n    console.error.apply(console, values);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Provides a hook for centralized exception handling.\r\n *\r\n * \\@description\r\n *\r\n * The default implementation of `ErrorHandler` prints error messages to the `console`. To\r\n * intercept error handling, write a custom exception handler that replaces this default as\r\n * appropriate for your app.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * class MyErrorHandler implements ErrorHandler {\r\n *   handleError(error) {\r\n *     // do something with the exception\r\n *   }\r\n * }\r\n *\r\n * \\@NgModule({\r\n *   providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]\r\n * })\r\n * class MyModule {}\r\n * ```\r\n *\r\n * \\@stable\r\n */\r\nvar ErrorHandler = (function () {\r\n    /**\r\n     * @param {?=} deprecatedParameter\r\n     */\r\n    function ErrorHandler(\r\n        /**\r\n         * @deprecated since v4.0 parameter no longer has an effect, as ErrorHandler will never\r\n         * rethrow.\r\n         */\r\n        deprecatedParameter) {\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._console = console;\r\n    }\r\n    /**\r\n     * @param {?} error\r\n     * @return {?}\r\n     */\r\n    ErrorHandler.prototype.handleError = function (error) {\r\n        var /** @type {?} */ originalError = this._findOriginalError(error);\r\n        var /** @type {?} */ context = this._findContext(error);\r\n        // Note: Browser consoles show the place from where console.error was called.\r\n        // We can use this to give users additional information about the error.\r\n        var /** @type {?} */ errorLogger = getErrorLogger(error);\r\n        errorLogger(this._console, \"ERROR\", error);\r\n        if (originalError) {\r\n            errorLogger(this._console, \"ORIGINAL ERROR\", originalError);\r\n        }\r\n        if (context) {\r\n            errorLogger(this._console, 'ERROR CONTEXT', context);\r\n        }\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} error\r\n     * @return {?}\r\n     */\r\n    ErrorHandler.prototype._findContext = function (error) {\r\n        if (error) {\r\n            return getDebugContext(error) ? getDebugContext(error) :\r\n                this._findContext(getOriginalError(error));\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} error\r\n     * @return {?}\r\n     */\r\n    ErrorHandler.prototype._findOriginalError = function (error) {\r\n        var /** @type {?} */ e = getOriginalError(error);\r\n        while (e && getOriginalError(e)) {\r\n            e = getOriginalError(e);\r\n        }\r\n        return e;\r\n    };\r\n    return ErrorHandler;\r\n}());\r\n/**\r\n * @param {?} message\r\n * @param {?} originalError\r\n * @return {?}\r\n */\r\nfunction wrappedError(message, originalError) {\r\n    var /** @type {?} */ msg = message + \" caused by: \" + (originalError instanceof Error ? originalError.message : originalError);\r\n    var /** @type {?} */ error = Error(msg);\r\n    ((error))[ERROR_ORIGINAL_ERROR] = originalError;\r\n    return error;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} keys\r\n * @return {?}\r\n */\r\nfunction findFirstClosedCycle(keys) {\r\n    var /** @type {?} */ res = [];\r\n    for (var /** @type {?} */ i = 0; i < keys.length; ++i) {\r\n        if (res.indexOf(keys[i]) > -1) {\r\n            res.push(keys[i]);\r\n            return res;\r\n        }\r\n        res.push(keys[i]);\r\n    }\r\n    return res;\r\n}\r\n/**\r\n * @param {?} keys\r\n * @return {?}\r\n */\r\nfunction constructResolvingPath(keys) {\r\n    if (keys.length > 1) {\r\n        var /** @type {?} */ reversed = findFirstClosedCycle(keys.slice().reverse());\r\n        var /** @type {?} */ tokenStrs = reversed.map(function (k) { return stringify(k.token); });\r\n        return ' (' + tokenStrs.join(' -> ') + ')';\r\n    }\r\n    return '';\r\n}\r\n/**\r\n * @param {?} injector\r\n * @param {?} key\r\n * @param {?} constructResolvingMessage\r\n * @param {?=} originalError\r\n * @return {?}\r\n */\r\nfunction injectionError(injector, key, constructResolvingMessage, originalError) {\r\n    var /** @type {?} */ error = ((originalError ? wrappedError('', originalError) : Error()));\r\n    error.addKey = addKey;\r\n    error.keys = [key];\r\n    error.injectors = [injector];\r\n    error.constructResolvingMessage = constructResolvingMessage;\r\n    error.message = error.constructResolvingMessage();\r\n    ((error))[ERROR_ORIGINAL_ERROR] = originalError;\r\n    return error;\r\n}\r\n/**\r\n * @this {?}\r\n * @param {?} injector\r\n * @param {?} key\r\n * @return {?}\r\n */\r\nfunction addKey(injector, key) {\r\n    this.injectors.push(injector);\r\n    this.keys.push(key);\r\n    this.message = this.constructResolvingMessage();\r\n}\r\n/**\r\n * Thrown when trying to retrieve a dependency by key from {\\@link Injector}, but the\r\n * {\\@link Injector} does not have a {\\@link Provider} for the given key.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/vq8D3FRB9aGbnWJqtEPE?p=preview))\r\n *\r\n * ```typescript\r\n * class A {\r\n *   constructor(b:B) {}\r\n * }\r\n *\r\n * expect(() => Injector.resolveAndCreate([A])).toThrowError();\r\n * ```\r\n * @param {?} injector\r\n * @param {?} key\r\n * @return {?}\r\n */\r\nfunction noProviderError(injector, key) {\r\n    return injectionError(injector, key, function () {\r\n        var /** @type {?} */ first = stringify(this.keys[0].token);\r\n        return \"No provider for \" + first + \"!\" + constructResolvingPath(this.keys);\r\n    });\r\n}\r\n/**\r\n * Thrown when dependencies form a cycle.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/wYQdNos0Tzql3ei1EV9j?p=info))\r\n *\r\n * ```typescript\r\n * var injector = Injector.resolveAndCreate([\r\n *   {provide: \"one\", useFactory: (two) => \"two\", deps: [[new Inject(\"two\")]]},\r\n *   {provide: \"two\", useFactory: (one) => \"one\", deps: [[new Inject(\"one\")]]}\r\n * ]);\r\n *\r\n * expect(() => injector.get(\"one\")).toThrowError();\r\n * ```\r\n *\r\n * Retrieving `A` or `B` throws a `CyclicDependencyError` as the graph above cannot be constructed.\r\n * @param {?} injector\r\n * @param {?} key\r\n * @return {?}\r\n */\r\nfunction cyclicDependencyError(injector, key) {\r\n    return injectionError(injector, key, function () {\r\n        return \"Cannot instantiate cyclic dependency!\" + constructResolvingPath(this.keys);\r\n    });\r\n}\r\n/**\r\n * Thrown when a constructing type returns with an Error.\r\n *\r\n * The `InstantiationError` class contains the original error plus the dependency graph which caused\r\n * this object to be instantiated.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/7aWYdcqTQsP0eNqEdUAf?p=preview))\r\n *\r\n * ```typescript\r\n * class A {\r\n *   constructor() {\r\n *     throw new Error('message');\r\n *   }\r\n * }\r\n *\r\n * var injector = Injector.resolveAndCreate([A]);\r\n * try {\r\n *   injector.get(A);\r\n * } catch (e) {\r\n *   expect(e instanceof InstantiationError).toBe(true);\r\n *   expect(e.originalException.message).toEqual(\"message\");\r\n *   expect(e.originalStack).toBeDefined();\r\n * }\r\n * ```\r\n * @param {?} injector\r\n * @param {?} originalException\r\n * @param {?} originalStack\r\n * @param {?} key\r\n * @return {?}\r\n */\r\nfunction instantiationError(injector, originalException, originalStack, key) {\r\n    return injectionError(injector, key, function () {\r\n        var /** @type {?} */ first = stringify(this.keys[0].token);\r\n        return getOriginalError(this).message + \": Error during instantiation of \" + first + \"!\" + constructResolvingPath(this.keys) + \".\";\r\n    }, originalException);\r\n}\r\n/**\r\n * Thrown when an object other then {\\@link Provider} (or `Type`) is passed to {\\@link Injector}\r\n * creation.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/YatCFbPAMCL0JSSQ4mvH?p=preview))\r\n *\r\n * ```typescript\r\n * expect(() => Injector.resolveAndCreate([\"not a type\"])).toThrowError();\r\n * ```\r\n * @param {?} provider\r\n * @return {?}\r\n */\r\nfunction invalidProviderError(provider) {\r\n    return Error(\"Invalid provider - only instances of Provider and Type are allowed, got: \" + provider);\r\n}\r\n/**\r\n * Thrown when the class has no annotation information.\r\n *\r\n * Lack of annotation information prevents the {\\@link Injector} from determining which dependencies\r\n * need to be injected into the constructor.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/rHnZtlNS7vJOPQ6pcVkm?p=preview))\r\n *\r\n * ```typescript\r\n * class A {\r\n *   constructor(b) {}\r\n * }\r\n *\r\n * expect(() => Injector.resolveAndCreate([A])).toThrowError();\r\n * ```\r\n *\r\n * This error is also thrown when the class not marked with {\\@link Injectable} has parameter types.\r\n *\r\n * ```typescript\r\n * class B {}\r\n *\r\n * class A {\r\n *   constructor(b:B) {} // no information about the parameter types of A is available at runtime.\r\n * }\r\n *\r\n * expect(() => Injector.resolveAndCreate([A,B])).toThrowError();\r\n * ```\r\n * \\@stable\r\n * @param {?} typeOrFunc\r\n * @param {?} params\r\n * @return {?}\r\n */\r\nfunction noAnnotationError(typeOrFunc, params) {\r\n    var /** @type {?} */ signature = [];\r\n    for (var /** @type {?} */ i = 0, /** @type {?} */ ii = params.length; i < ii; i++) {\r\n        var /** @type {?} */ parameter = params[i];\r\n        if (!parameter || parameter.length == 0) {\r\n            signature.push('?');\r\n        }\r\n        else {\r\n            signature.push(parameter.map(stringify).join(' '));\r\n        }\r\n    }\r\n    return Error('Cannot resolve all parameters for \\'' + stringify(typeOrFunc) + '\\'(' +\r\n        signature.join(', ') + '). ' +\r\n        'Make sure that all the parameters are decorated with Inject or have valid type annotations and that \\'' +\r\n        stringify(typeOrFunc) + '\\' is decorated with Injectable.');\r\n}\r\n/**\r\n * Thrown when getting an object by index.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/bRs0SX2OTQiJzqvjgl8P?p=preview))\r\n *\r\n * ```typescript\r\n * class A {}\r\n *\r\n * var injector = Injector.resolveAndCreate([A]);\r\n *\r\n * expect(() => injector.getAt(100)).toThrowError();\r\n * ```\r\n * \\@stable\r\n * @param {?} index\r\n * @return {?}\r\n */\r\nfunction outOfBoundsError(index) {\r\n    return Error(\"Index \" + index + \" is out-of-bounds.\");\r\n}\r\n/**\r\n * Thrown when a multi provider and a regular provider are bound to the same token.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * expect(() => Injector.resolveAndCreate([\r\n *   { provide: \"Strings\", useValue: \"string1\", multi: true},\r\n *   { provide: \"Strings\", useValue: \"string2\", multi: false}\r\n * ])).toThrowError();\r\n * ```\r\n * @param {?} provider1\r\n * @param {?} provider2\r\n * @return {?}\r\n */\r\nfunction mixingMultiProvidersWithRegularProvidersError(provider1, provider2) {\r\n    return Error(\"Cannot mix multi providers and regular providers, got: \" + provider1 + \" \" + provider2);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A unique object used for retrieving items from the {\\@link ReflectiveInjector}.\r\n *\r\n * Keys have:\r\n * - a system-wide unique `id`.\r\n * - a `token`.\r\n *\r\n * `Key` is used internally by {\\@link ReflectiveInjector} because its system-wide unique `id` allows\r\n * the\r\n * injector to store created objects in a more efficient way.\r\n *\r\n * `Key` should not be created directly. {\\@link ReflectiveInjector} creates keys automatically when\r\n * resolving\r\n * providers.\r\n * \\@experimental\r\n */\r\nvar ReflectiveKey = (function () {\r\n    /**\r\n     * Private\r\n     * @param {?} token\r\n     * @param {?} id\r\n     */\r\n    function ReflectiveKey(token, id) {\r\n        this.token = token;\r\n        this.id = id;\r\n        if (!token) {\r\n            throw new Error('Token must be defined!');\r\n        }\r\n    }\r\n    Object.defineProperty(ReflectiveKey.prototype, \"displayName\", {\r\n        /**\r\n         * Returns a stringified token.\r\n         * @return {?}\r\n         */\r\n        get: function () { return stringify(this.token); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * Retrieves a `Key` for a token.\r\n     * @param {?} token\r\n     * @return {?}\r\n     */\r\n    ReflectiveKey.get = function (token) {\r\n        return _globalKeyRegistry.get(resolveForwardRef(token));\r\n    };\r\n    Object.defineProperty(ReflectiveKey, \"numberOfKeys\", {\r\n        /**\r\n         * @return {?} the number of keys registered in the system.\r\n         */\r\n        get: function () { return _globalKeyRegistry.numberOfKeys; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return ReflectiveKey;\r\n}());\r\n/**\r\n * \\@internal\r\n */\r\nvar KeyRegistry = (function () {\r\n    function KeyRegistry() {\r\n        this._allKeys = new Map();\r\n    }\r\n    /**\r\n     * @param {?} token\r\n     * @return {?}\r\n     */\r\n    KeyRegistry.prototype.get = function (token) {\r\n        if (token instanceof ReflectiveKey)\r\n            return token;\r\n        if (this._allKeys.has(token)) {\r\n            return ((this._allKeys.get(token)));\r\n        }\r\n        var /** @type {?} */ newKey = new ReflectiveKey(token, ReflectiveKey.numberOfKeys);\r\n        this._allKeys.set(token, newKey);\r\n        return newKey;\r\n    };\r\n    Object.defineProperty(KeyRegistry.prototype, \"numberOfKeys\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._allKeys.size; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return KeyRegistry;\r\n}());\r\nvar _globalKeyRegistry = new KeyRegistry();\r\n/**\r\n * \\@whatItDoes Represents a type that a Component or other object is instances of.\r\n *\r\n * \\@description\r\n *\r\n * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by\r\n * the `MyCustomComponent` constructor function.\r\n *\r\n * \\@stable\r\n */\r\nvar Type = Function;\r\n/**\r\n * @param {?} v\r\n * @return {?}\r\n */\r\nfunction isType(v) {\r\n    return typeof v === 'function';\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Attention: This regex has to hold even if the code is minified!\r\n */\r\nvar DELEGATE_CTOR = /^function\\s+\\S+\\(\\)\\s*{[\\s\\S]+\\.apply\\(this,\\s*arguments\\)/;\r\nvar ReflectionCapabilities = (function () {\r\n    /**\r\n     * @param {?=} reflect\r\n     */\r\n    function ReflectionCapabilities(reflect) {\r\n        this._reflect = reflect || _global['Reflect'];\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.isReflectionEnabled = function () { return true; };\r\n    /**\r\n     * @template T\r\n     * @param {?} t\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.factory = function (t) { return function () {\r\n        var args = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            args[_i] = arguments[_i];\r\n        }\r\n        return new (t.bind.apply(t, [void 0].concat(args)))();\r\n    }; };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} paramTypes\r\n     * @param {?} paramAnnotations\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype._zipTypesAndAnnotations = function (paramTypes, paramAnnotations) {\r\n        var /** @type {?} */ result;\r\n        if (typeof paramTypes === 'undefined') {\r\n            result = new Array(paramAnnotations.length);\r\n        }\r\n        else {\r\n            result = new Array(paramTypes.length);\r\n        }\r\n        for (var /** @type {?} */ i = 0; i < result.length; i++) {\r\n            // TS outputs Object for parameters without types, while Traceur omits\r\n            // the annotations. For now we preserve the Traceur behavior to aid\r\n            // migration, but this can be revisited.\r\n            if (typeof paramTypes === 'undefined') {\r\n                result[i] = [];\r\n            }\r\n            else if (paramTypes[i] != Object) {\r\n                result[i] = [paramTypes[i]];\r\n            }\r\n            else {\r\n                result[i] = [];\r\n            }\r\n            if (paramAnnotations && paramAnnotations[i] != null) {\r\n                result[i] = result[i].concat(paramAnnotations[i]);\r\n            }\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} parentCtor\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype._ownParameters = function (type, parentCtor) {\r\n        // If we have no decorators, we only have function.length as metadata.\r\n        // In that case, to detect whether a child class declared an own constructor or not,\r\n        // we need to look inside of that constructor to check whether it is\r\n        // just calling the parent.\r\n        // This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439\r\n        // that sets 'design:paramtypes' to []\r\n        // if a class inherits from another class but has no ctor declared itself.\r\n        if (DELEGATE_CTOR.exec(type.toString())) {\r\n            return null;\r\n        }\r\n        // Prefer the direct API.\r\n        if (((type)).parameters && ((type)).parameters !== parentCtor.parameters) {\r\n            return ((type)).parameters;\r\n        }\r\n        // API of tsickle for lowering decorators to properties on the class.\r\n        var /** @type {?} */ tsickleCtorParams = ((type)).ctorParameters;\r\n        if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {\r\n            // Newer tsickle uses a function closure\r\n            // Retain the non-function case for compatibility with older tsickle\r\n            var /** @type {?} */ ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;\r\n            var /** @type {?} */ paramTypes = ctorParameters.map(function (ctorParam) { return ctorParam && ctorParam.type; });\r\n            var /** @type {?} */ paramAnnotations = ctorParameters.map(function (ctorParam) { return ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators); });\r\n            return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\r\n        }\r\n        // API for metadata created by invoking the decorators.\r\n        if (this._reflect != null && this._reflect.getOwnMetadata != null) {\r\n            var /** @type {?} */ paramAnnotations = this._reflect.getOwnMetadata('parameters', type);\r\n            var /** @type {?} */ paramTypes = this._reflect.getOwnMetadata('design:paramtypes', type);\r\n            if (paramTypes || paramAnnotations) {\r\n                return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\r\n            }\r\n        }\r\n        // If a class has no decorators, at least create metadata\r\n        // based on function.length.\r\n        // Note: We know that this is a real constructor as we checked\r\n        // the content of the constructor above.\r\n        return new Array(((type.length))).fill(undefined);\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.parameters = function (type) {\r\n        // Note: only report metadata if we have at least one class decorator\r\n        // to stay in sync with the static reflector.\r\n        if (!isType(type)) {\r\n            return [];\r\n        }\r\n        var /** @type {?} */ parentCtor = getParentCtor(type);\r\n        var /** @type {?} */ parameters = this._ownParameters(type, parentCtor);\r\n        if (!parameters && parentCtor !== Object) {\r\n            parameters = this.parameters(parentCtor);\r\n        }\r\n        return parameters || [];\r\n    };\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @param {?} parentCtor\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype._ownAnnotations = function (typeOrFunc, parentCtor) {\r\n        // Prefer the direct API.\r\n        if (((typeOrFunc)).annotations && ((typeOrFunc)).annotations !== parentCtor.annotations) {\r\n            var /** @type {?} */ annotations = ((typeOrFunc)).annotations;\r\n            if (typeof annotations === 'function' && annotations.annotations) {\r\n                annotations = annotations.annotations;\r\n            }\r\n            return annotations;\r\n        }\r\n        // API of tsickle for lowering decorators to properties on the class.\r\n        if (((typeOrFunc)).decorators && ((typeOrFunc)).decorators !== parentCtor.decorators) {\r\n            return convertTsickleDecoratorIntoMetadata(((typeOrFunc)).decorators);\r\n        }\r\n        // API for metadata created by invoking the decorators.\r\n        if (this._reflect && this._reflect.getOwnMetadata) {\r\n            return this._reflect.getOwnMetadata('annotations', typeOrFunc);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.annotations = function (typeOrFunc) {\r\n        if (!isType(typeOrFunc)) {\r\n            return [];\r\n        }\r\n        var /** @type {?} */ parentCtor = getParentCtor(typeOrFunc);\r\n        var /** @type {?} */ ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];\r\n        var /** @type {?} */ parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];\r\n        return parentAnnotations.concat(ownAnnotations);\r\n    };\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @param {?} parentCtor\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype._ownPropMetadata = function (typeOrFunc, parentCtor) {\r\n        // Prefer the direct API.\r\n        if (((typeOrFunc)).propMetadata &&\r\n            ((typeOrFunc)).propMetadata !== parentCtor.propMetadata) {\r\n            var /** @type {?} */ propMetadata = ((typeOrFunc)).propMetadata;\r\n            if (typeof propMetadata === 'function' && propMetadata.propMetadata) {\r\n                propMetadata = propMetadata.propMetadata;\r\n            }\r\n            return propMetadata;\r\n        }\r\n        // API of tsickle for lowering decorators to properties on the class.\r\n        if (((typeOrFunc)).propDecorators &&\r\n            ((typeOrFunc)).propDecorators !== parentCtor.propDecorators) {\r\n            var /** @type {?} */ propDecorators_1 = ((typeOrFunc)).propDecorators;\r\n            var /** @type {?} */ propMetadata_1 = ({});\r\n            Object.keys(propDecorators_1).forEach(function (prop) {\r\n                propMetadata_1[prop] = convertTsickleDecoratorIntoMetadata(propDecorators_1[prop]);\r\n            });\r\n            return propMetadata_1;\r\n        }\r\n        // API for metadata created by invoking the decorators.\r\n        if (this._reflect && this._reflect.getOwnMetadata) {\r\n            return this._reflect.getOwnMetadata('propMetadata', typeOrFunc);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.propMetadata = function (typeOrFunc) {\r\n        if (!isType(typeOrFunc)) {\r\n            return {};\r\n        }\r\n        var /** @type {?} */ parentCtor = getParentCtor(typeOrFunc);\r\n        var /** @type {?} */ propMetadata = {};\r\n        if (parentCtor !== Object) {\r\n            var /** @type {?} */ parentPropMetadata_1 = this.propMetadata(parentCtor);\r\n            Object.keys(parentPropMetadata_1).forEach(function (propName) {\r\n                propMetadata[propName] = parentPropMetadata_1[propName];\r\n            });\r\n        }\r\n        var /** @type {?} */ ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);\r\n        if (ownPropMetadata) {\r\n            Object.keys(ownPropMetadata).forEach(function (propName) {\r\n                var /** @type {?} */ decorators = [];\r\n                if (propMetadata.hasOwnProperty(propName)) {\r\n                    decorators.push.apply(decorators, propMetadata[propName]);\r\n                }\r\n                decorators.push.apply(decorators, ownPropMetadata[propName]);\r\n                propMetadata[propName] = decorators;\r\n            });\r\n        }\r\n        return propMetadata;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} lcProperty\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.hasLifecycleHook = function (type, lcProperty) {\r\n        return type instanceof Type && lcProperty in type.prototype;\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.getter = function (name) { return (new Function('o', 'return o.' + name + ';')); };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.setter = function (name) {\r\n        return (new Function('o', 'v', 'return o.' + name + ' = v;'));\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.method = function (name) {\r\n        var /** @type {?} */ functionBody = \"if (!o.\" + name + \") throw new Error('\\\"\" + name + \"\\\" is undefined');\\n        return o.\" + name + \".apply(o, args);\";\r\n        return (new Function('o', 'args', functionBody));\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.importUri = function (type) {\r\n        // StaticSymbol\r\n        if (typeof type === 'object' && type['filePath']) {\r\n            return type['filePath'];\r\n        }\r\n        // Runtime type\r\n        return \"./\" + stringify(type);\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.resourceUri = function (type) { return \"./\" + stringify(type); };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} moduleUrl\r\n     * @param {?} members\r\n     * @param {?} runtime\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.resolveIdentifier = function (name, moduleUrl, members, runtime) {\r\n        return runtime;\r\n    };\r\n    /**\r\n     * @param {?} enumIdentifier\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ReflectionCapabilities.prototype.resolveEnum = function (enumIdentifier, name) { return enumIdentifier[name]; };\r\n    return ReflectionCapabilities;\r\n}());\r\n/**\r\n * @param {?} decoratorInvocations\r\n * @return {?}\r\n */\r\nfunction convertTsickleDecoratorIntoMetadata(decoratorInvocations) {\r\n    if (!decoratorInvocations) {\r\n        return [];\r\n    }\r\n    return decoratorInvocations.map(function (decoratorInvocation) {\r\n        var /** @type {?} */ decoratorType = decoratorInvocation.type;\r\n        var /** @type {?} */ annotationCls = decoratorType.annotationCls;\r\n        var /** @type {?} */ annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];\r\n        return new (annotationCls.bind.apply(annotationCls, [void 0].concat(annotationArgs)))();\r\n    });\r\n}\r\n/**\r\n * @param {?} ctor\r\n * @return {?}\r\n */\r\nfunction getParentCtor(ctor) {\r\n    var /** @type {?} */ parentProto = Object.getPrototypeOf(ctor.prototype);\r\n    var /** @type {?} */ parentCtor = parentProto ? parentProto.constructor : null;\r\n    // Note: We always use `Object` as the null value\r\n    // to simplify checking later on.\r\n    return parentCtor || Object;\r\n}\r\n/**\r\n * Provides read-only access to reflection data about symbols. Used internally by Angular\r\n * to power dependency injection and compilation.\r\n * @abstract\r\n */\r\nvar ReflectorReader = (function () {\r\n    function ReflectorReader() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    ReflectorReader.prototype.parameters = function (typeOrFunc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    ReflectorReader.prototype.annotations = function (typeOrFunc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    ReflectorReader.prototype.propMetadata = function (typeOrFunc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    ReflectorReader.prototype.importUri = function (typeOrFunc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    ReflectorReader.prototype.resourceUri = function (typeOrFunc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} name\r\n     * @param {?} moduleUrl\r\n     * @param {?} members\r\n     * @param {?} runtime\r\n     * @return {?}\r\n     */\r\n    ReflectorReader.prototype.resolveIdentifier = function (name, moduleUrl, members, runtime) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} identifier\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ReflectorReader.prototype.resolveEnum = function (identifier, name) { };\r\n    return ReflectorReader;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Provides access to reflection data about symbols. Used internally by Angular\r\n * to power dependency injection and compilation.\r\n */\r\nvar Reflector = (function (_super) {\r\n    __extends(Reflector, _super);\r\n    /**\r\n     * @param {?} reflectionCapabilities\r\n     */\r\n    function Reflector(reflectionCapabilities) {\r\n        var _this = _super.call(this) || this;\r\n        _this.reflectionCapabilities = reflectionCapabilities;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} caps\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.updateCapabilities = function (caps) { this.reflectionCapabilities = caps; };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.factory = function (type) { return this.reflectionCapabilities.factory(type); };\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.parameters = function (typeOrFunc) {\r\n        return this.reflectionCapabilities.parameters(typeOrFunc);\r\n    };\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.annotations = function (typeOrFunc) {\r\n        return this.reflectionCapabilities.annotations(typeOrFunc);\r\n    };\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.propMetadata = function (typeOrFunc) {\r\n        return this.reflectionCapabilities.propMetadata(typeOrFunc);\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} lcProperty\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.hasLifecycleHook = function (type, lcProperty) {\r\n        return this.reflectionCapabilities.hasLifecycleHook(type, lcProperty);\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.getter = function (name) { return this.reflectionCapabilities.getter(name); };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.setter = function (name) { return this.reflectionCapabilities.setter(name); };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.method = function (name) { return this.reflectionCapabilities.method(name); };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.importUri = function (type) { return this.reflectionCapabilities.importUri(type); };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.resourceUri = function (type) { return this.reflectionCapabilities.resourceUri(type); };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} moduleUrl\r\n     * @param {?} members\r\n     * @param {?} runtime\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.resolveIdentifier = function (name, moduleUrl, members, runtime) {\r\n        return this.reflectionCapabilities.resolveIdentifier(name, moduleUrl, members, runtime);\r\n    };\r\n    /**\r\n     * @param {?} identifier\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Reflector.prototype.resolveEnum = function (identifier, name) {\r\n        return this.reflectionCapabilities.resolveEnum(identifier, name);\r\n    };\r\n    return Reflector;\r\n}(ReflectorReader));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * The {@link Reflector} used internally in Angular to access metadata\r\n * about symbols.\r\n */\r\nvar reflector = new Reflector(new ReflectionCapabilities());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * `Dependency` is used by the framework to extend DI.\r\n * This is internal to Angular and should not be used directly.\r\n */\r\nvar ReflectiveDependency = (function () {\r\n    /**\r\n     * @param {?} key\r\n     * @param {?} optional\r\n     * @param {?} visibility\r\n     */\r\n    function ReflectiveDependency(key, optional, visibility) {\r\n        this.key = key;\r\n        this.optional = optional;\r\n        this.visibility = visibility;\r\n    }\r\n    /**\r\n     * @param {?} key\r\n     * @return {?}\r\n     */\r\n    ReflectiveDependency.fromKey = function (key) {\r\n        return new ReflectiveDependency(key, false, null);\r\n    };\r\n    return ReflectiveDependency;\r\n}());\r\nvar _EMPTY_LIST = [];\r\nvar ResolvedReflectiveProvider_ = (function () {\r\n    /**\r\n     * @param {?} key\r\n     * @param {?} resolvedFactories\r\n     * @param {?} multiProvider\r\n     */\r\n    function ResolvedReflectiveProvider_(key, resolvedFactories, multiProvider) {\r\n        this.key = key;\r\n        this.resolvedFactories = resolvedFactories;\r\n        this.multiProvider = multiProvider;\r\n    }\r\n    Object.defineProperty(ResolvedReflectiveProvider_.prototype, \"resolvedFactory\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.resolvedFactories[0]; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return ResolvedReflectiveProvider_;\r\n}());\r\n/**\r\n * An internal resolved representation of a factory function created by resolving {\\@link\r\n * Provider}.\r\n * \\@experimental\r\n */\r\nvar ResolvedReflectiveFactory = (function () {\r\n    /**\r\n     * @param {?} factory\r\n     * @param {?} dependencies\r\n     */\r\n    function ResolvedReflectiveFactory(factory, dependencies) {\r\n        this.factory = factory;\r\n        this.dependencies = dependencies;\r\n    }\r\n    return ResolvedReflectiveFactory;\r\n}());\r\n/**\r\n * Resolve a single provider.\r\n * @param {?} provider\r\n * @return {?}\r\n */\r\nfunction resolveReflectiveFactory(provider) {\r\n    var /** @type {?} */ factoryFn;\r\n    var /** @type {?} */ resolvedDeps;\r\n    if (provider.useClass) {\r\n        var /** @type {?} */ useClass = resolveForwardRef(provider.useClass);\r\n        factoryFn = reflector.factory(useClass);\r\n        resolvedDeps = _dependenciesFor(useClass);\r\n    }\r\n    else if (provider.useExisting) {\r\n        factoryFn = function (aliasInstance) { return aliasInstance; };\r\n        resolvedDeps = [ReflectiveDependency.fromKey(ReflectiveKey.get(provider.useExisting))];\r\n    }\r\n    else if (provider.useFactory) {\r\n        factoryFn = provider.useFactory;\r\n        resolvedDeps = constructDependencies(provider.useFactory, provider.deps);\r\n    }\r\n    else {\r\n        factoryFn = function () { return provider.useValue; };\r\n        resolvedDeps = _EMPTY_LIST;\r\n    }\r\n    return new ResolvedReflectiveFactory(factoryFn, resolvedDeps);\r\n}\r\n/**\r\n * Converts the {\\@link Provider} into {\\@link ResolvedProvider}.\r\n *\r\n * {\\@link Injector} internally only uses {\\@link ResolvedProvider}, {\\@link Provider} contains\r\n * convenience provider syntax.\r\n * @param {?} provider\r\n * @return {?}\r\n */\r\nfunction resolveReflectiveProvider(provider) {\r\n    return new ResolvedReflectiveProvider_(ReflectiveKey.get(provider.provide), [resolveReflectiveFactory(provider)], provider.multi || false);\r\n}\r\n/**\r\n * Resolve a list of Providers.\r\n * @param {?} providers\r\n * @return {?}\r\n */\r\nfunction resolveReflectiveProviders(providers) {\r\n    var /** @type {?} */ normalized = _normalizeProviders(providers, []);\r\n    var /** @type {?} */ resolved = normalized.map(resolveReflectiveProvider);\r\n    var /** @type {?} */ resolvedProviderMap = mergeResolvedReflectiveProviders(resolved, new Map());\r\n    return Array.from(resolvedProviderMap.values());\r\n}\r\n/**\r\n * Merges a list of ResolvedProviders into a list where\r\n * each key is contained exactly once and multi providers\r\n * have been merged.\r\n * @param {?} providers\r\n * @param {?} normalizedProvidersMap\r\n * @return {?}\r\n */\r\nfunction mergeResolvedReflectiveProviders(providers, normalizedProvidersMap) {\r\n    for (var /** @type {?} */ i = 0; i < providers.length; i++) {\r\n        var /** @type {?} */ provider = providers[i];\r\n        var /** @type {?} */ existing = normalizedProvidersMap.get(provider.key.id);\r\n        if (existing) {\r\n            if (provider.multiProvider !== existing.multiProvider) {\r\n                throw mixingMultiProvidersWithRegularProvidersError(existing, provider);\r\n            }\r\n            if (provider.multiProvider) {\r\n                for (var /** @type {?} */ j = 0; j < provider.resolvedFactories.length; j++) {\r\n                    existing.resolvedFactories.push(provider.resolvedFactories[j]);\r\n                }\r\n            }\r\n            else {\r\n                normalizedProvidersMap.set(provider.key.id, provider);\r\n            }\r\n        }\r\n        else {\r\n            var /** @type {?} */ resolvedProvider = void 0;\r\n            if (provider.multiProvider) {\r\n                resolvedProvider = new ResolvedReflectiveProvider_(provider.key, provider.resolvedFactories.slice(), provider.multiProvider);\r\n            }\r\n            else {\r\n                resolvedProvider = provider;\r\n            }\r\n            normalizedProvidersMap.set(provider.key.id, resolvedProvider);\r\n        }\r\n    }\r\n    return normalizedProvidersMap;\r\n}\r\n/**\r\n * @param {?} providers\r\n * @param {?} res\r\n * @return {?}\r\n */\r\nfunction _normalizeProviders(providers, res) {\r\n    providers.forEach(function (b) {\r\n        if (b instanceof Type) {\r\n            res.push({ provide: b, useClass: b });\r\n        }\r\n        else if (b && typeof b == 'object' && ((b)).provide !== undefined) {\r\n            res.push(/** @type {?} */ (b));\r\n        }\r\n        else if (b instanceof Array) {\r\n            _normalizeProviders(b, res);\r\n        }\r\n        else {\r\n            throw invalidProviderError(b);\r\n        }\r\n    });\r\n    return res;\r\n}\r\n/**\r\n * @param {?} typeOrFunc\r\n * @param {?=} dependencies\r\n * @return {?}\r\n */\r\nfunction constructDependencies(typeOrFunc, dependencies) {\r\n    if (!dependencies) {\r\n        return _dependenciesFor(typeOrFunc);\r\n    }\r\n    else {\r\n        var /** @type {?} */ params_1 = dependencies.map(function (t) { return [t]; });\r\n        return dependencies.map(function (t) { return _extractToken(typeOrFunc, t, params_1); });\r\n    }\r\n}\r\n/**\r\n * @param {?} typeOrFunc\r\n * @return {?}\r\n */\r\nfunction _dependenciesFor(typeOrFunc) {\r\n    var /** @type {?} */ params = reflector.parameters(typeOrFunc);\r\n    if (!params)\r\n        return [];\r\n    if (params.some(function (p) { return p == null; })) {\r\n        throw noAnnotationError(typeOrFunc, params);\r\n    }\r\n    return params.map(function (p) { return _extractToken(typeOrFunc, p, params); });\r\n}\r\n/**\r\n * @param {?} typeOrFunc\r\n * @param {?} metadata\r\n * @param {?} params\r\n * @return {?}\r\n */\r\nfunction _extractToken(typeOrFunc, metadata, params) {\r\n    var /** @type {?} */ token = null;\r\n    var /** @type {?} */ optional = false;\r\n    if (!Array.isArray(metadata)) {\r\n        if (metadata instanceof Inject) {\r\n            return _createDependency(metadata['token'], optional, null);\r\n        }\r\n        else {\r\n            return _createDependency(metadata, optional, null);\r\n        }\r\n    }\r\n    var /** @type {?} */ visibility = null;\r\n    for (var /** @type {?} */ i = 0; i < metadata.length; ++i) {\r\n        var /** @type {?} */ paramMetadata = metadata[i];\r\n        if (paramMetadata instanceof Type) {\r\n            token = paramMetadata;\r\n        }\r\n        else if (paramMetadata instanceof Inject) {\r\n            token = paramMetadata['token'];\r\n        }\r\n        else if (paramMetadata instanceof Optional) {\r\n            optional = true;\r\n        }\r\n        else if (paramMetadata instanceof Self || paramMetadata instanceof SkipSelf) {\r\n            visibility = paramMetadata;\r\n        }\r\n        else if (paramMetadata instanceof InjectionToken) {\r\n            token = paramMetadata;\r\n        }\r\n    }\r\n    token = resolveForwardRef(token);\r\n    if (token != null) {\r\n        return _createDependency(token, optional, visibility);\r\n    }\r\n    else {\r\n        throw noAnnotationError(typeOrFunc, params);\r\n    }\r\n}\r\n/**\r\n * @param {?} token\r\n * @param {?} optional\r\n * @param {?} visibility\r\n * @return {?}\r\n */\r\nfunction _createDependency(token, optional, visibility) {\r\n    return new ReflectiveDependency(ReflectiveKey.get(token), optional, visibility);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n// Threshold for the dynamic version\r\nvar UNDEFINED = new Object();\r\n/**\r\n * A ReflectiveDependency injection container used for instantiating objects and resolving\r\n * dependencies.\r\n *\r\n * An `Injector` is a replacement for a `new` operator, which can automatically resolve the\r\n * constructor dependencies.\r\n *\r\n * In typical use, application code asks for the dependencies in the constructor and they are\r\n * resolved by the `Injector`.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/jzjec0?p=preview))\r\n *\r\n * The following example creates an `Injector` configured to create `Engine` and `Car`.\r\n *\r\n * ```typescript\r\n * \\@Injectable()\r\n * class Engine {\r\n * }\r\n *\r\n * \\@Injectable()\r\n * class Car {\r\n *   constructor(public engine:Engine) {}\r\n * }\r\n *\r\n * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);\r\n * var car = injector.get(Car);\r\n * expect(car instanceof Car).toBe(true);\r\n * expect(car.engine instanceof Engine).toBe(true);\r\n * ```\r\n *\r\n * Notice, we don't use the `new` operator because we explicitly want to have the `Injector`\r\n * resolve all of the object's dependencies automatically.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar ReflectiveInjector = (function () {\r\n    function ReflectiveInjector() {\r\n    }\r\n    /**\r\n     * Turns an array of provider definitions into an array of resolved providers.\r\n     *\r\n     * A resolution is a process of flattening multiple nested arrays and converting individual\r\n     * providers into an array of {\\@link ResolvedReflectiveProvider}s.\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/AiXTHi?p=preview))\r\n     *\r\n     * ```typescript\r\n     * \\@Injectable()\r\n     * class Engine {\r\n     * }\r\n     *\r\n     * \\@Injectable()\r\n     * class Car {\r\n     *   constructor(public engine:Engine) {}\r\n     * }\r\n     *\r\n     * var providers = ReflectiveInjector.resolve([Car, [[Engine]]]);\r\n     *\r\n     * expect(providers.length).toEqual(2);\r\n     *\r\n     * expect(providers[0] instanceof ResolvedReflectiveProvider).toBe(true);\r\n     * expect(providers[0].key.displayName).toBe(\"Car\");\r\n     * expect(providers[0].dependencies.length).toEqual(1);\r\n     * expect(providers[0].factory).toBeDefined();\r\n     *\r\n     * expect(providers[1].key.displayName).toBe(\"Engine\");\r\n     * });\r\n     * ```\r\n     *\r\n     * See {\\@link ReflectiveInjector#fromResolvedProviders} for more info.\r\n     * @param {?} providers\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector.resolve = function (providers) {\r\n        return resolveReflectiveProviders(providers);\r\n    };\r\n    /**\r\n     * Resolves an array of providers and creates an injector from those providers.\r\n     *\r\n     * The passed-in providers can be an array of `Type`, {\\@link Provider},\r\n     * or a recursive array of more providers.\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/ePOccA?p=preview))\r\n     *\r\n     * ```typescript\r\n     * \\@Injectable()\r\n     * class Engine {\r\n     * }\r\n     *\r\n     * \\@Injectable()\r\n     * class Car {\r\n     *   constructor(public engine:Engine) {}\r\n     * }\r\n     *\r\n     * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);\r\n     * expect(injector.get(Car) instanceof Car).toBe(true);\r\n     * ```\r\n     *\r\n     * This function is slower than the corresponding `fromResolvedProviders`\r\n     * because it needs to resolve the passed-in providers first.\r\n     * See {\\@link ReflectiveInjector#resolve} and {\\@link ReflectiveInjector#fromResolvedProviders}.\r\n     * @param {?} providers\r\n     * @param {?=} parent\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector.resolveAndCreate = function (providers, parent) {\r\n        var /** @type {?} */ ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);\r\n        return ReflectiveInjector.fromResolvedProviders(ResolvedReflectiveProviders, parent);\r\n    };\r\n    /**\r\n     * Creates an injector from previously resolved providers.\r\n     *\r\n     * This API is the recommended way to construct injectors in performance-sensitive parts.\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/KrSMci?p=preview))\r\n     *\r\n     * ```typescript\r\n     * \\@Injectable()\r\n     * class Engine {\r\n     * }\r\n     *\r\n     * \\@Injectable()\r\n     * class Car {\r\n     *   constructor(public engine:Engine) {}\r\n     * }\r\n     *\r\n     * var providers = ReflectiveInjector.resolve([Car, Engine]);\r\n     * var injector = ReflectiveInjector.fromResolvedProviders(providers);\r\n     * expect(injector.get(Car) instanceof Car).toBe(true);\r\n     * ```\r\n     * \\@experimental\r\n     * @param {?} providers\r\n     * @param {?=} parent\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector.fromResolvedProviders = function (providers, parent) {\r\n        return new ReflectiveInjector_(providers, parent);\r\n    };\r\n    /**\r\n     * Parent of this injector.\r\n     *\r\n     * <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.\r\n     * -->\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/eosMGo?p=preview))\r\n     *\r\n     * ```typescript\r\n     * var parent = ReflectiveInjector.resolveAndCreate([]);\r\n     * var child = parent.resolveAndCreateChild([]);\r\n     * expect(child.parent).toBe(parent);\r\n     * ```\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector.prototype.parent = function () { };\r\n    /**\r\n     * Resolves an array of providers and creates a child injector from those providers.\r\n     *\r\n     * <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.\r\n     * -->\r\n     *\r\n     * The passed-in providers can be an array of `Type`, {\\@link Provider},\r\n     * or a recursive array of more providers.\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/opB3T4?p=preview))\r\n     *\r\n     * ```typescript\r\n     * class ParentProvider {}\r\n     * class ChildProvider {}\r\n     *\r\n     * var parent = ReflectiveInjector.resolveAndCreate([ParentProvider]);\r\n     * var child = parent.resolveAndCreateChild([ChildProvider]);\r\n     *\r\n     * expect(child.get(ParentProvider) instanceof ParentProvider).toBe(true);\r\n     * expect(child.get(ChildProvider) instanceof ChildProvider).toBe(true);\r\n     * expect(child.get(ParentProvider)).toBe(parent.get(ParentProvider));\r\n     * ```\r\n     *\r\n     * This function is slower than the corresponding `createChildFromResolved`\r\n     * because it needs to resolve the passed-in providers first.\r\n     * See {\\@link ReflectiveInjector#resolve} and {\\@link ReflectiveInjector#createChildFromResolved}.\r\n     * @abstract\r\n     * @param {?} providers\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector.prototype.resolveAndCreateChild = function (providers) { };\r\n    /**\r\n     * Creates a child injector from previously resolved providers.\r\n     *\r\n     * <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.\r\n     * -->\r\n     *\r\n     * This API is the recommended way to construct injectors in performance-sensitive parts.\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/VhyfjN?p=preview))\r\n     *\r\n     * ```typescript\r\n     * class ParentProvider {}\r\n     * class ChildProvider {}\r\n     *\r\n     * var parentProviders = ReflectiveInjector.resolve([ParentProvider]);\r\n     * var childProviders = ReflectiveInjector.resolve([ChildProvider]);\r\n     *\r\n     * var parent = ReflectiveInjector.fromResolvedProviders(parentProviders);\r\n     * var child = parent.createChildFromResolved(childProviders);\r\n     *\r\n     * expect(child.get(ParentProvider) instanceof ParentProvider).toBe(true);\r\n     * expect(child.get(ChildProvider) instanceof ChildProvider).toBe(true);\r\n     * expect(child.get(ParentProvider)).toBe(parent.get(ParentProvider));\r\n     * ```\r\n     * @abstract\r\n     * @param {?} providers\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector.prototype.createChildFromResolved = function (providers) { };\r\n    /**\r\n     * Resolves a provider and instantiates an object in the context of the injector.\r\n     *\r\n     * The created object does not get cached by the injector.\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/yvVXoB?p=preview))\r\n     *\r\n     * ```typescript\r\n     * \\@Injectable()\r\n     * class Engine {\r\n     * }\r\n     *\r\n     * \\@Injectable()\r\n     * class Car {\r\n     *   constructor(public engine:Engine) {}\r\n     * }\r\n     *\r\n     * var injector = ReflectiveInjector.resolveAndCreate([Engine]);\r\n     *\r\n     * var car = injector.resolveAndInstantiate(Car);\r\n     * expect(car.engine).toBe(injector.get(Engine));\r\n     * expect(car).not.toBe(injector.resolveAndInstantiate(Car));\r\n     * ```\r\n     * @abstract\r\n     * @param {?} provider\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector.prototype.resolveAndInstantiate = function (provider) { };\r\n    /**\r\n     * Instantiates an object using a resolved provider in the context of the injector.\r\n     *\r\n     * The created object does not get cached by the injector.\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/ptCImQ?p=preview))\r\n     *\r\n     * ```typescript\r\n     * \\@Injectable()\r\n     * class Engine {\r\n     * }\r\n     *\r\n     * \\@Injectable()\r\n     * class Car {\r\n     *   constructor(public engine:Engine) {}\r\n     * }\r\n     *\r\n     * var injector = ReflectiveInjector.resolveAndCreate([Engine]);\r\n     * var carProvider = ReflectiveInjector.resolve([Car])[0];\r\n     * var car = injector.instantiateResolved(carProvider);\r\n     * expect(car.engine).toBe(injector.get(Engine));\r\n     * expect(car).not.toBe(injector.instantiateResolved(carProvider));\r\n     * ```\r\n     * @abstract\r\n     * @param {?} provider\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector.prototype.instantiateResolved = function (provider) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} token\r\n     * @param {?=} notFoundValue\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector.prototype.get = function (token, notFoundValue) { };\r\n    return ReflectiveInjector;\r\n}());\r\nvar ReflectiveInjector_ = (function () {\r\n    /**\r\n     * Private\r\n     * @param {?} _providers\r\n     * @param {?=} _parent\r\n     */\r\n    function ReflectiveInjector_(_providers, _parent) {\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._constructionCounter = 0;\r\n        this._providers = _providers;\r\n        this._parent = _parent || null;\r\n        var len = _providers.length;\r\n        this.keyIds = new Array(len);\r\n        this.objs = new Array(len);\r\n        for (var i = 0; i < len; i++) {\r\n            this.keyIds[i] = _providers[i].key.id;\r\n            this.objs[i] = UNDEFINED;\r\n        }\r\n    }\r\n    /**\r\n     * @param {?} token\r\n     * @param {?=} notFoundValue\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype.get = function (token, notFoundValue) {\r\n        if (notFoundValue === void 0) { notFoundValue = THROW_IF_NOT_FOUND; }\r\n        return this._getByKey(ReflectiveKey.get(token), null, notFoundValue);\r\n    };\r\n    Object.defineProperty(ReflectiveInjector_.prototype, \"parent\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._parent; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} providers\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype.resolveAndCreateChild = function (providers) {\r\n        var /** @type {?} */ ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);\r\n        return this.createChildFromResolved(ResolvedReflectiveProviders);\r\n    };\r\n    /**\r\n     * @param {?} providers\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype.createChildFromResolved = function (providers) {\r\n        var /** @type {?} */ inj = new ReflectiveInjector_(providers);\r\n        inj._parent = this;\r\n        return inj;\r\n    };\r\n    /**\r\n     * @param {?} provider\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype.resolveAndInstantiate = function (provider) {\r\n        return this.instantiateResolved(ReflectiveInjector.resolve([provider])[0]);\r\n    };\r\n    /**\r\n     * @param {?} provider\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype.instantiateResolved = function (provider) {\r\n        return this._instantiateProvider(provider);\r\n    };\r\n    /**\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype.getProviderAtIndex = function (index) {\r\n        if (index < 0 || index >= this._providers.length) {\r\n            throw outOfBoundsError(index);\r\n        }\r\n        return this._providers[index];\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} provider\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype._new = function (provider) {\r\n        if (this._constructionCounter++ > this._getMaxNumberOfObjects()) {\r\n            throw cyclicDependencyError(this, provider.key);\r\n        }\r\n        return this._instantiateProvider(provider);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype._getMaxNumberOfObjects = function () { return this.objs.length; };\r\n    /**\r\n     * @param {?} provider\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype._instantiateProvider = function (provider) {\r\n        if (provider.multiProvider) {\r\n            var /** @type {?} */ res = new Array(provider.resolvedFactories.length);\r\n            for (var /** @type {?} */ i = 0; i < provider.resolvedFactories.length; ++i) {\r\n                res[i] = this._instantiate(provider, provider.resolvedFactories[i]);\r\n            }\r\n            return res;\r\n        }\r\n        else {\r\n            return this._instantiate(provider, provider.resolvedFactories[0]);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} provider\r\n     * @param {?} ResolvedReflectiveFactory\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype._instantiate = function (provider, ResolvedReflectiveFactory$$1) {\r\n        var _this = this;\r\n        var /** @type {?} */ factory = ResolvedReflectiveFactory$$1.factory;\r\n        var /** @type {?} */ deps;\r\n        try {\r\n            deps =\r\n                ResolvedReflectiveFactory$$1.dependencies.map(function (dep) { return _this._getByReflectiveDependency(dep); });\r\n        }\r\n        catch (e) {\r\n            if (e.addKey) {\r\n                e.addKey(this, provider.key);\r\n            }\r\n            throw e;\r\n        }\r\n        var /** @type {?} */ obj;\r\n        try {\r\n            obj = factory.apply(void 0, deps);\r\n        }\r\n        catch (e) {\r\n            throw instantiationError(this, e, e.stack, provider.key);\r\n        }\r\n        return obj;\r\n    };\r\n    /**\r\n     * @param {?} dep\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype._getByReflectiveDependency = function (dep) {\r\n        return this._getByKey(dep.key, dep.visibility, dep.optional ? null : THROW_IF_NOT_FOUND);\r\n    };\r\n    /**\r\n     * @param {?} key\r\n     * @param {?} visibility\r\n     * @param {?} notFoundValue\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype._getByKey = function (key, visibility, notFoundValue) {\r\n        if (key === INJECTOR_KEY) {\r\n            return this;\r\n        }\r\n        if (visibility instanceof Self) {\r\n            return this._getByKeySelf(key, notFoundValue);\r\n        }\r\n        else {\r\n            return this._getByKeyDefault(key, notFoundValue, visibility);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} keyId\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype._getObjByKeyId = function (keyId) {\r\n        for (var /** @type {?} */ i = 0; i < this.keyIds.length; i++) {\r\n            if (this.keyIds[i] === keyId) {\r\n                if (this.objs[i] === UNDEFINED) {\r\n                    this.objs[i] = this._new(this._providers[i]);\r\n                }\r\n                return this.objs[i];\r\n            }\r\n        }\r\n        return UNDEFINED;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} key\r\n     * @param {?} notFoundValue\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype._throwOrNull = function (key, notFoundValue) {\r\n        if (notFoundValue !== THROW_IF_NOT_FOUND) {\r\n            return notFoundValue;\r\n        }\r\n        else {\r\n            throw noProviderError(this, key);\r\n        }\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} key\r\n     * @param {?} notFoundValue\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype._getByKeySelf = function (key, notFoundValue) {\r\n        var /** @type {?} */ obj = this._getObjByKeyId(key.id);\r\n        return (obj !== UNDEFINED) ? obj : this._throwOrNull(key, notFoundValue);\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} key\r\n     * @param {?} notFoundValue\r\n     * @param {?} visibility\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype._getByKeyDefault = function (key, notFoundValue, visibility) {\r\n        var /** @type {?} */ inj;\r\n        if (visibility instanceof SkipSelf) {\r\n            inj = this._parent;\r\n        }\r\n        else {\r\n            inj = this;\r\n        }\r\n        while (inj instanceof ReflectiveInjector_) {\r\n            var /** @type {?} */ inj_ = (inj);\r\n            var /** @type {?} */ obj = inj_._getObjByKeyId(key.id);\r\n            if (obj !== UNDEFINED)\r\n                return obj;\r\n            inj = inj_._parent;\r\n        }\r\n        if (inj !== null) {\r\n            return inj.get(key.token, notFoundValue);\r\n        }\r\n        else {\r\n            return this._throwOrNull(key, notFoundValue);\r\n        }\r\n    };\r\n    Object.defineProperty(ReflectiveInjector_.prototype, \"displayName\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            var /** @type {?} */ providers = _mapProviders(this, function (b) { return ' \"' + b.key.displayName + '\" '; })\r\n                .join(', ');\r\n            return \"ReflectiveInjector(providers: [\" + providers + \"])\";\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ReflectiveInjector_.prototype.toString = function () { return this.displayName; };\r\n    return ReflectiveInjector_;\r\n}());\r\nvar INJECTOR_KEY = ReflectiveKey.get(Injector);\r\n/**\r\n * @param {?} injector\r\n * @param {?} fn\r\n * @return {?}\r\n */\r\nfunction _mapProviders(injector, fn) {\r\n    var /** @type {?} */ res = new Array(injector._providers.length);\r\n    for (var /** @type {?} */ i = 0; i < injector._providers.length; ++i) {\r\n        res[i] = fn(injector.getProviderAtIndex(i));\r\n    }\r\n    return res;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * The `di` module provides dependency injection container services.\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Determine if the argument is shaped like a Promise\r\n * @param {?} obj\r\n * @return {?}\r\n */\r\nfunction isPromise(obj) {\r\n    // allow any Promise/A+ compliant thenable.\r\n    // It's up to the caller to ensure that obj.then conforms to the spec\r\n    return !!obj && typeof obj.then === 'function';\r\n}\r\n/**\r\n * Determine if the argument is an Observable\r\n * @param {?} obj\r\n * @return {?}\r\n */\r\nfunction isObservable(obj) {\r\n    // TODO use Symbol.observable when https://github.com/ReactiveX/rxjs/issues/2415 will be resolved\r\n    return !!obj && typeof obj.subscribe === 'function';\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A function that will be executed when an application is initialized.\r\n * \\@experimental\r\n */\r\nvar APP_INITIALIZER = new InjectionToken('Application Initializer');\r\n/**\r\n * A class that reflects the state of running {\\@link APP_INITIALIZER}s.\r\n *\r\n * \\@experimental\r\n */\r\nvar ApplicationInitStatus = (function () {\r\n    /**\r\n     * @param {?} appInits\r\n     */\r\n    function ApplicationInitStatus(appInits) {\r\n        var _this = this;\r\n        this.appInits = appInits;\r\n        this.initialized = false;\r\n        this._done = false;\r\n        this._donePromise = new Promise(function (res, rej) {\r\n            _this.resolve = res;\r\n            _this.reject = rej;\r\n        });\r\n    }\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    ApplicationInitStatus.prototype.runInitializers = function () {\r\n        var _this = this;\r\n        if (this.initialized) {\r\n            return;\r\n        }\r\n        var /** @type {?} */ asyncInitPromises = [];\r\n        var /** @type {?} */ complete = function () {\r\n            _this._done = true;\r\n            _this.resolve();\r\n        };\r\n        if (this.appInits) {\r\n            for (var /** @type {?} */ i = 0; i < this.appInits.length; i++) {\r\n                var /** @type {?} */ initResult = this.appInits[i]();\r\n                if (isPromise(initResult)) {\r\n                    asyncInitPromises.push(initResult);\r\n                }\r\n            }\r\n        }\r\n        Promise.all(asyncInitPromises).then(function () { complete(); }).catch(function (e) { _this.reject(e); });\r\n        if (asyncInitPromises.length === 0) {\r\n            complete();\r\n        }\r\n        this.initialized = true;\r\n    };\r\n    Object.defineProperty(ApplicationInitStatus.prototype, \"done\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._done; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ApplicationInitStatus.prototype, \"donePromise\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._donePromise; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return ApplicationInitStatus;\r\n}());\r\nApplicationInitStatus.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nApplicationInitStatus.ctorParameters = function () { return [\r\n    { type: Array, decorators: [{ type: Inject, args: [APP_INITIALIZER,] }, { type: Optional },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A DI Token representing a unique string id assigned to the application by Angular and used\r\n * primarily for prefixing application attributes and CSS styles when\r\n * {\\@link ViewEncapsulation#Emulated} is being used.\r\n *\r\n * If you need to avoid randomly generated value to be used as an application id, you can provide\r\n * a custom value via a DI provider <!-- TODO: provider --> configuring the root {\\@link Injector}\r\n * using this token.\r\n * \\@experimental\r\n */\r\nvar APP_ID = new InjectionToken('AppId');\r\n/**\r\n * @return {?}\r\n */\r\nfunction _appIdRandomProviderFactory() {\r\n    return \"\" + _randomChar() + _randomChar() + _randomChar();\r\n}\r\n/**\r\n * Providers that will generate a random APP_ID_TOKEN.\r\n * \\@experimental\r\n */\r\nvar APP_ID_RANDOM_PROVIDER = {\r\n    provide: APP_ID,\r\n    useFactory: _appIdRandomProviderFactory,\r\n    deps: [],\r\n};\r\n/**\r\n * @return {?}\r\n */\r\nfunction _randomChar() {\r\n    return String.fromCharCode(97 + Math.floor(Math.random() * 25));\r\n}\r\n/**\r\n * A function that will be executed when a platform is initialized.\r\n * \\@experimental\r\n */\r\nvar PLATFORM_INITIALIZER = new InjectionToken('Platform Initializer');\r\n/**\r\n * A token that indicates an opaque platform id.\r\n * \\@experimental\r\n */\r\nvar PLATFORM_ID = new InjectionToken('Platform ID');\r\n/**\r\n * All callbacks provided via this token will be called for every component that is bootstrapped.\r\n * Signature of the callback:\r\n *\r\n * `(componentRef: ComponentRef) => void`.\r\n *\r\n * \\@experimental\r\n */\r\nvar APP_BOOTSTRAP_LISTENER = new InjectionToken('appBootstrapListener');\r\n/**\r\n * A token which indicates the root directory of the application\r\n * \\@experimental\r\n */\r\nvar PACKAGE_ROOT_URL = new InjectionToken('Application Packages Root URL');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar Console = (function () {\r\n    function Console() {\r\n    }\r\n    /**\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Console.prototype.log = function (message) {\r\n        // tslint:disable-next-line:no-console\r\n        console.log(message);\r\n    };\r\n    /**\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Console.prototype.warn = function (message) {\r\n        // tslint:disable-next-line:no-console\r\n        console.warn(message);\r\n    };\r\n    return Console;\r\n}());\r\nConsole.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nConsole.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Combination of NgModuleFactory and ComponentFactorys.\r\n *\r\n * \\@experimental\r\n */\r\nvar ModuleWithComponentFactories = (function () {\r\n    /**\r\n     * @param {?} ngModuleFactory\r\n     * @param {?} componentFactories\r\n     */\r\n    function ModuleWithComponentFactories(ngModuleFactory, componentFactories) {\r\n        this.ngModuleFactory = ngModuleFactory;\r\n        this.componentFactories = componentFactories;\r\n    }\r\n    return ModuleWithComponentFactories;\r\n}());\r\n/**\r\n * @return {?}\r\n */\r\nfunction _throwError() {\r\n    throw new Error(\"Runtime compiler is not loaded\");\r\n}\r\n/**\r\n * Low-level service for running the angular compiler during runtime\r\n * to create {\\@link ComponentFactory}s, which\r\n * can later be used to create and render a Component instance.\r\n *\r\n * Each `\\@NgModule` provides an own `Compiler` to its injector,\r\n * that will use the directives/pipes of the ng module for compilation\r\n * of components.\r\n * \\@stable\r\n */\r\nvar Compiler = (function () {\r\n    function Compiler() {\r\n    }\r\n    /**\r\n     * Compiles the given NgModule and all of its components. All templates of the components listed\r\n     * in `entryComponents` have to be inlined.\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    Compiler.prototype.compileModuleSync = function (moduleType) { throw _throwError(); };\r\n    /**\r\n     * Compiles the given NgModule and all of its components\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    Compiler.prototype.compileModuleAsync = function (moduleType) { throw _throwError(); };\r\n    /**\r\n     * Same as {\\@link #compileModuleSync} but also creates ComponentFactories for all components.\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    Compiler.prototype.compileModuleAndAllComponentsSync = function (moduleType) {\r\n        throw _throwError();\r\n    };\r\n    /**\r\n     * Same as {\\@link #compileModuleAsync} but also creates ComponentFactories for all components.\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    Compiler.prototype.compileModuleAndAllComponentsAsync = function (moduleType) {\r\n        throw _throwError();\r\n    };\r\n    /**\r\n     * Exposes the CSS-style selectors that have been used in `ngContent` directives within\r\n     * the template of the given component.\r\n     * This is used by the `upgrade` library to compile the appropriate transclude content\r\n     * in the AngularJS wrapper component.\r\n     *\r\n     * @deprecated since v4. Use ComponentFactory.ngContentSelectors instead.\r\n     * @param {?} component\r\n     * @return {?}\r\n     */\r\n    Compiler.prototype.getNgContentSelectors = function (component) { throw _throwError(); };\r\n    /**\r\n     * Clears all caches.\r\n     * @return {?}\r\n     */\r\n    Compiler.prototype.clearCache = function () { };\r\n    /**\r\n     * Clears the cache for the given component/ngModule.\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    Compiler.prototype.clearCacheFor = function (type) { };\r\n    return Compiler;\r\n}());\r\nCompiler.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nCompiler.ctorParameters = function () { return []; };\r\n/**\r\n * Token to provide CompilerOptions in the platform injector.\r\n *\r\n * \\@experimental\r\n */\r\nvar COMPILER_OPTIONS = new InjectionToken('compilerOptions');\r\n/**\r\n * A factory for creating a Compiler\r\n *\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar CompilerFactory = (function () {\r\n    function CompilerFactory() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    CompilerFactory.prototype.createCompiler = function (options) { };\r\n    return CompilerFactory;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Represents an instance of a Component created via a {\\@link ComponentFactory}.\r\n *\r\n * `ComponentRef` provides access to the Component Instance as well other objects related to this\r\n * Component Instance and allows you to destroy the Component Instance via the {\\@link #destroy}\r\n * method.\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar ComponentRef = (function () {\r\n    function ComponentRef() {\r\n    }\r\n    /**\r\n     * Location of the Host Element of this Component Instance.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentRef.prototype.location = function () { };\r\n    /**\r\n     * The injector on which the component instance exists.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentRef.prototype.injector = function () { };\r\n    /**\r\n     * The instance of the Component.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentRef.prototype.instance = function () { };\r\n    /**\r\n     * The {\\@link ViewRef} of the Host View of this Component instance.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentRef.prototype.hostView = function () { };\r\n    /**\r\n     * The {\\@link ChangeDetectorRef} of the Component instance.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentRef.prototype.changeDetectorRef = function () { };\r\n    /**\r\n     * The component type.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentRef.prototype.componentType = function () { };\r\n    /**\r\n     * Destroys the component instance and all of the data structures associated with it.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentRef.prototype.destroy = function () { };\r\n    /**\r\n     * Allows to register a callback that will be called when the component is destroyed.\r\n     * @abstract\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    ComponentRef.prototype.onDestroy = function (callback) { };\r\n    return ComponentRef;\r\n}());\r\n/**\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar ComponentFactory = (function () {\r\n    function ComponentFactory() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentFactory.prototype.selector = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentFactory.prototype.componentType = function () { };\r\n    /**\r\n     * selector for all <ng-content> elements in the component.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentFactory.prototype.ngContentSelectors = function () { };\r\n    /**\r\n     * the inputs of the component.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentFactory.prototype.inputs = function () { };\r\n    /**\r\n     * the outputs of the component.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ComponentFactory.prototype.outputs = function () { };\r\n    /**\r\n     * Creates a new component.\r\n     * @abstract\r\n     * @param {?} injector\r\n     * @param {?=} projectableNodes\r\n     * @param {?=} rootSelectorOrNode\r\n     * @param {?=} ngModule\r\n     * @return {?}\r\n     */\r\n    ComponentFactory.prototype.create = function (injector, projectableNodes, rootSelectorOrNode, ngModule) { };\r\n    return ComponentFactory;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} component\r\n * @return {?}\r\n */\r\nfunction noComponentFactoryError(component) {\r\n    var /** @type {?} */ error = Error(\"No component factory found for \" + stringify(component) + \". Did you add it to @NgModule.entryComponents?\");\r\n    ((error))[ERROR_COMPONENT] = component;\r\n    return error;\r\n}\r\nvar ERROR_COMPONENT = 'ngComponent';\r\n/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\nvar _NullComponentFactoryResolver = (function () {\r\n    function _NullComponentFactoryResolver() {\r\n    }\r\n    /**\r\n     * @template T\r\n     * @param {?} component\r\n     * @return {?}\r\n     */\r\n    _NullComponentFactoryResolver.prototype.resolveComponentFactory = function (component) {\r\n        throw noComponentFactoryError(component);\r\n    };\r\n    return _NullComponentFactoryResolver;\r\n}());\r\n/**\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar ComponentFactoryResolver = (function () {\r\n    function ComponentFactoryResolver() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @template T\r\n     * @param {?} component\r\n     * @return {?}\r\n     */\r\n    ComponentFactoryResolver.prototype.resolveComponentFactory = function (component) { };\r\n    return ComponentFactoryResolver;\r\n}());\r\nComponentFactoryResolver.NULL = new _NullComponentFactoryResolver();\r\nvar CodegenComponentFactoryResolver = (function () {\r\n    /**\r\n     * @param {?} factories\r\n     * @param {?} _parent\r\n     * @param {?} _ngModule\r\n     */\r\n    function CodegenComponentFactoryResolver(factories, _parent, _ngModule) {\r\n        this._parent = _parent;\r\n        this._ngModule = _ngModule;\r\n        this._factories = new Map();\r\n        for (var i = 0; i < factories.length; i++) {\r\n            var factory = factories[i];\r\n            this._factories.set(factory.componentType, factory);\r\n        }\r\n    }\r\n    /**\r\n     * @template T\r\n     * @param {?} component\r\n     * @return {?}\r\n     */\r\n    CodegenComponentFactoryResolver.prototype.resolveComponentFactory = function (component) {\r\n        var /** @type {?} */ factory = this._factories.get(component) || this._parent.resolveComponentFactory(component);\r\n        return new ComponentFactoryBoundToModule(factory, this._ngModule);\r\n    };\r\n    return CodegenComponentFactoryResolver;\r\n}());\r\nvar ComponentFactoryBoundToModule = (function (_super) {\r\n    __extends(ComponentFactoryBoundToModule, _super);\r\n    /**\r\n     * @param {?} factory\r\n     * @param {?} ngModule\r\n     */\r\n    function ComponentFactoryBoundToModule(factory, ngModule) {\r\n        var _this = _super.call(this) || this;\r\n        _this.factory = factory;\r\n        _this.ngModule = ngModule;\r\n        return _this;\r\n    }\r\n    Object.defineProperty(ComponentFactoryBoundToModule.prototype, \"selector\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.factory.selector; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ComponentFactoryBoundToModule.prototype, \"componentType\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.factory.componentType; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ComponentFactoryBoundToModule.prototype, \"ngContentSelectors\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.factory.ngContentSelectors; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ComponentFactoryBoundToModule.prototype, \"inputs\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.factory.inputs; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ComponentFactoryBoundToModule.prototype, \"outputs\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.factory.outputs; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} injector\r\n     * @param {?=} projectableNodes\r\n     * @param {?=} rootSelectorOrNode\r\n     * @param {?=} ngModule\r\n     * @return {?}\r\n     */\r\n    ComponentFactoryBoundToModule.prototype.create = function (injector, projectableNodes, rootSelectorOrNode, ngModule) {\r\n        return this.factory.create(injector, projectableNodes, rootSelectorOrNode, ngModule || this.ngModule);\r\n    };\r\n    return ComponentFactoryBoundToModule;\r\n}(ComponentFactory));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Represents an instance of an NgModule created via a {\\@link NgModuleFactory}.\r\n *\r\n * `NgModuleRef` provides access to the NgModule Instance as well other objects related to this\r\n * NgModule Instance.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar NgModuleRef = (function () {\r\n    function NgModuleRef() {\r\n    }\r\n    /**\r\n     * The injector that contains all of the providers of the NgModule.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    NgModuleRef.prototype.injector = function () { };\r\n    /**\r\n     * The ComponentFactoryResolver to get hold of the ComponentFactories\r\n     * declared in the `entryComponents` property of the module.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    NgModuleRef.prototype.componentFactoryResolver = function () { };\r\n    /**\r\n     * The NgModule instance.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    NgModuleRef.prototype.instance = function () { };\r\n    /**\r\n     * Destroys the module instance and all of the data structures associated with it.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    NgModuleRef.prototype.destroy = function () { };\r\n    /**\r\n     * Allows to register a callback that will be called when the module is destroyed.\r\n     * @abstract\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    NgModuleRef.prototype.onDestroy = function (callback) { };\r\n    return NgModuleRef;\r\n}());\r\n/**\r\n * \\@experimental\r\n */\r\nvar NgModuleFactory = (function () {\r\n    /**\r\n     * @param {?} _injectorClass\r\n     * @param {?} _moduleType\r\n     */\r\n    function NgModuleFactory(_injectorClass, _moduleType) {\r\n        this._injectorClass = _injectorClass;\r\n        this._moduleType = _moduleType;\r\n    }\r\n    Object.defineProperty(NgModuleFactory.prototype, \"moduleType\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._moduleType; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} parentInjector\r\n     * @return {?}\r\n     */\r\n    NgModuleFactory.prototype.create = function (parentInjector) {\r\n        var /** @type {?} */ instance = new this._injectorClass(parentInjector || Injector.NULL);\r\n        instance.create();\r\n        return instance;\r\n    };\r\n    return NgModuleFactory;\r\n}());\r\nvar _UNDEFINED = new Object();\r\n/**\r\n * @abstract\r\n */\r\nvar NgModuleInjector = (function () {\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} factories\r\n     * @param {?} bootstrapFactories\r\n     */\r\n    function NgModuleInjector(parent, factories, bootstrapFactories) {\r\n        var _this = this;\r\n        this.parent = parent;\r\n        this._destroyListeners = [];\r\n        this._destroyed = false;\r\n        this.bootstrapFactories =\r\n            bootstrapFactories.map(function (f) { return new ComponentFactoryBoundToModule(f, _this); });\r\n        this._cmpFactoryResolver = new CodegenComponentFactoryResolver(factories, parent.get(ComponentFactoryResolver, ComponentFactoryResolver.NULL), this);\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgModuleInjector.prototype.create = function () { this.instance = this.createInternal(); };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    NgModuleInjector.prototype.createInternal = function () { };\r\n    /**\r\n     * @param {?} token\r\n     * @param {?=} notFoundValue\r\n     * @return {?}\r\n     */\r\n    NgModuleInjector.prototype.get = function (token, notFoundValue) {\r\n        if (notFoundValue === void 0) { notFoundValue = THROW_IF_NOT_FOUND; }\r\n        if (token === Injector || token === NgModuleRef) {\r\n            return this;\r\n        }\r\n        if (token === ComponentFactoryResolver) {\r\n            return this._cmpFactoryResolver;\r\n        }\r\n        var /** @type {?} */ result = this.getInternal(token, _UNDEFINED);\r\n        return result === _UNDEFINED ? this.parent.get(token, notFoundValue) : result;\r\n    };\r\n    /**\r\n     * @abstract\r\n     * @param {?} token\r\n     * @param {?} notFoundValue\r\n     * @return {?}\r\n     */\r\n    NgModuleInjector.prototype.getInternal = function (token, notFoundValue) { };\r\n    Object.defineProperty(NgModuleInjector.prototype, \"injector\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgModuleInjector.prototype, \"componentFactoryResolver\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._cmpFactoryResolver; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgModuleInjector.prototype.destroy = function () {\r\n        if (this._destroyed) {\r\n            throw new Error(\"The ng module \" + stringify(this.instance.constructor) + \" has already been destroyed.\");\r\n        }\r\n        this._destroyed = true;\r\n        this.destroyInternal();\r\n        this._destroyListeners.forEach(function (listener) { return listener(); });\r\n    };\r\n    /**\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    NgModuleInjector.prototype.onDestroy = function (callback) { this._destroyListeners.push(callback); };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    NgModuleInjector.prototype.destroyInternal = function () { };\r\n    return NgModuleInjector;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar trace;\r\nvar events;\r\n/**\r\n * @return {?}\r\n */\r\nfunction detectWTF() {\r\n    var /** @type {?} */ wtf = ((_global) /** TODO #9100 */)['wtf'];\r\n    if (wtf) {\r\n        trace = wtf['trace'];\r\n        if (trace) {\r\n            events = trace['events'];\r\n            return true;\r\n        }\r\n    }\r\n    return false;\r\n}\r\n/**\r\n * @param {?} signature\r\n * @param {?=} flags\r\n * @return {?}\r\n */\r\nfunction createScope$1(signature, flags) {\r\n    if (flags === void 0) { flags = null; }\r\n    return events.createScope(signature, flags);\r\n}\r\n/**\r\n * @template T\r\n * @param {?} scope\r\n * @param {?=} returnValue\r\n * @return {?}\r\n */\r\nfunction leave(scope, returnValue) {\r\n    trace.leaveScope(scope, returnValue);\r\n    return returnValue;\r\n}\r\n/**\r\n * @param {?} rangeType\r\n * @param {?} action\r\n * @return {?}\r\n */\r\nfunction startTimeRange(rangeType, action) {\r\n    return trace.beginTimeRange(rangeType, action);\r\n}\r\n/**\r\n * @param {?} range\r\n * @return {?}\r\n */\r\nfunction endTimeRange(range) {\r\n    trace.endTimeRange(range);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * True if WTF is enabled.\r\n */\r\nvar wtfEnabled = detectWTF();\r\n/**\r\n * @param {?=} arg0\r\n * @param {?=} arg1\r\n * @return {?}\r\n */\r\nfunction noopScope(arg0, arg1) {\r\n    return null;\r\n}\r\n/**\r\n * Create trace scope.\r\n *\r\n * Scopes must be strictly nested and are analogous to stack frames, but\r\n * do not have to follow the stack frames. Instead it is recommended that they follow logical\r\n * nesting. You may want to use\r\n * [Event\r\n * Signatures](http://google.github.io/tracing-framework/instrumenting-code.html#custom-events)\r\n * as they are defined in WTF.\r\n *\r\n * Used to mark scope entry. The return value is used to leave the scope.\r\n *\r\n *     var myScope = wtfCreateScope('MyClass#myMethod(ascii someVal)');\r\n *\r\n *     someMethod() {\r\n *        var s = myScope('Foo'); // 'Foo' gets stored in tracing UI\r\n *        // DO SOME WORK HERE\r\n *        return wtfLeave(s, 123); // Return value 123\r\n *     }\r\n *\r\n * Note, adding try-finally block around the work to ensure that `wtfLeave` gets called can\r\n * negatively impact the performance of your application. For this reason we recommend that\r\n * you don't add them to ensure that `wtfLeave` gets called. In production `wtfLeave` is a noop and\r\n * so try-finally block has no value. When debugging perf issues, skipping `wtfLeave`, do to\r\n * exception, will produce incorrect trace, but presence of exception signifies logic error which\r\n * needs to be fixed before the app should be profiled. Add try-finally only when you expect that\r\n * an exception is expected during normal execution while profiling.\r\n *\r\n * \\@experimental\r\n */\r\nvar wtfCreateScope = wtfEnabled ? createScope$1 : function (signature, flags) { return noopScope; };\r\n/**\r\n * Used to mark end of Scope.\r\n *\r\n * - `scope` to end.\r\n * - `returnValue` (optional) to be passed to the WTF.\r\n *\r\n * Returns the `returnValue for easy chaining.\r\n * \\@experimental\r\n */\r\nvar wtfLeave = wtfEnabled ? leave : function (s, r) { return r; };\r\n/**\r\n * Used to mark Async start. Async are similar to scope but they don't have to be strictly nested.\r\n * The return value is used in the call to [endAsync]. Async ranges only work if WTF has been\r\n * enabled.\r\n *\r\n *     someMethod() {\r\n *        var s = wtfStartTimeRange('HTTP:GET', 'some.url');\r\n *        var future = new Future.delay(5).then((_) {\r\n *          wtfEndTimeRange(s);\r\n *        });\r\n *     }\r\n * \\@experimental\r\n */\r\nvar wtfStartTimeRange = wtfEnabled ? startTimeRange : function (rangeType, action) { return null; };\r\n/**\r\n * Ends a async time range operation.\r\n * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been\r\n * enabled.\r\n * \\@experimental\r\n */\r\nvar wtfEndTimeRange = wtfEnabled ? endTimeRange : function (r) { return null; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Use by directives and components to emit custom Events.\r\n *\r\n * ### Examples\r\n *\r\n * In the following example, `Zippy` alternatively emits `open` and `close` events when its\r\n * title gets clicked:\r\n *\r\n * ```\r\n * \\@Component({\r\n *   selector: 'zippy',\r\n *   template: `\r\n *   <div class=\"zippy\">\r\n *     <div (click)=\"toggle()\">Toggle</div>\r\n *     <div [hidden]=\"!visible\">\r\n *       <ng-content></ng-content>\r\n *     </div>\r\n *  </div>`})\r\n * export class Zippy {\r\n *   visible: boolean = true;\r\n *   \\@Output() open: EventEmitter<any> = new EventEmitter();\r\n *   \\@Output() close: EventEmitter<any> = new EventEmitter();\r\n *\r\n *   toggle() {\r\n *     this.visible = !this.visible;\r\n *     if (this.visible) {\r\n *       this.open.emit(null);\r\n *     } else {\r\n *       this.close.emit(null);\r\n *     }\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * The events payload can be accessed by the parameter `$event` on the components output event\r\n * handler:\r\n *\r\n * ```\r\n * <zippy (open)=\"onOpen($event)\" (close)=\"onClose($event)\"></zippy>\r\n * ```\r\n *\r\n * Uses Rx.Observable but provides an adapter to make it work as specified here:\r\n * https://github.com/jhusain/observable-spec\r\n *\r\n * Once a reference implementation of the spec is available, switch to it.\r\n * \\@stable\r\n */\r\nvar EventEmitter = (function (_super) {\r\n    __extends(EventEmitter, _super);\r\n    /**\r\n     * Creates an instance of {\\@link EventEmitter}, which depending on `isAsync`,\r\n     * delivers events synchronously or asynchronously.\r\n     *\r\n     * @param {?=} isAsync By default, events are delivered synchronously (default value: `false`).\r\n     * Set to `true` for asynchronous event delivery.\r\n     */\r\n    function EventEmitter(isAsync) {\r\n        if (isAsync === void 0) { isAsync = false; }\r\n        var _this = _super.call(this) || this;\r\n        _this.__isAsync = isAsync;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?=} value\r\n     * @return {?}\r\n     */\r\n    EventEmitter.prototype.emit = function (value) { _super.prototype.next.call(this, value); };\r\n    /**\r\n     * @param {?=} generatorOrNext\r\n     * @param {?=} error\r\n     * @param {?=} complete\r\n     * @return {?}\r\n     */\r\n    EventEmitter.prototype.subscribe = function (generatorOrNext, error, complete) {\r\n        var /** @type {?} */ schedulerFn;\r\n        var /** @type {?} */ errorFn = function (err) { return null; };\r\n        var /** @type {?} */ completeFn = function () { return null; };\r\n        if (generatorOrNext && typeof generatorOrNext === 'object') {\r\n            schedulerFn = this.__isAsync ? function (value) {\r\n                setTimeout(function () { return generatorOrNext.next(value); });\r\n            } : function (value) { generatorOrNext.next(value); };\r\n            if (generatorOrNext.error) {\r\n                errorFn = this.__isAsync ? function (err) { setTimeout(function () { return generatorOrNext.error(err); }); } :\r\n                    function (err) { generatorOrNext.error(err); };\r\n            }\r\n            if (generatorOrNext.complete) {\r\n                completeFn = this.__isAsync ? function () { setTimeout(function () { return generatorOrNext.complete(); }); } :\r\n                    function () { generatorOrNext.complete(); };\r\n            }\r\n        }\r\n        else {\r\n            schedulerFn = this.__isAsync ? function (value) { setTimeout(function () { return generatorOrNext(value); }); } :\r\n                function (value) { generatorOrNext(value); };\r\n            if (error) {\r\n                errorFn =\r\n                    this.__isAsync ? function (err) { setTimeout(function () { return error(err); }); } : function (err) { error(err); };\r\n            }\r\n            if (complete) {\r\n                completeFn =\r\n                    this.__isAsync ? function () { setTimeout(function () { return complete(); }); } : function () { complete(); };\r\n            }\r\n        }\r\n        return _super.prototype.subscribe.call(this, schedulerFn, errorFn, completeFn);\r\n    };\r\n    return EventEmitter;\r\n}(Subject));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * An injectable service for executing work inside or outside of the Angular zone.\r\n *\r\n * The most common use of this service is to optimize performance when starting a work consisting of\r\n * one or more asynchronous tasks that don't require UI updates or error handling to be handled by\r\n * Angular. Such tasks can be kicked off via {\\@link #runOutsideAngular} and if needed, these tasks\r\n * can reenter the Angular zone via {\\@link #run}.\r\n *\r\n * <!-- TODO: add/fix links to:\r\n *   - docs explaining zones and the use of zones in Angular and change-detection\r\n *   - link to runOutsideAngular/run (throughout this file!)\r\n *   -->\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * import {Component, NgZone} from '\\@angular/core';\r\n * import {NgIf} from '\\@angular/common';\r\n *\r\n * \\@Component({\r\n *   selector: 'ng-zone-demo'.\r\n *   template: `\r\n *     <h2>Demo: NgZone</h2>\r\n *\r\n *     <p>Progress: {{progress}}%</p>\r\n *     <p *ngIf=\"progress >= 100\">Done processing {{label}} of Angular zone!</p>\r\n *\r\n *     <button (click)=\"processWithinAngularZone()\">Process within Angular zone</button>\r\n *     <button (click)=\"processOutsideOfAngularZone()\">Process outside of Angular zone</button>\r\n *   `,\r\n * })\r\n * export class NgZoneDemo {\r\n *   progress: number = 0;\r\n *   label: string;\r\n *\r\n *   constructor(private _ngZone: NgZone) {}\r\n *\r\n *   // Loop inside the Angular zone\r\n *   // so the UI DOES refresh after each setTimeout cycle\r\n *   processWithinAngularZone() {\r\n *     this.label = 'inside';\r\n *     this.progress = 0;\r\n *     this._increaseProgress(() => console.log('Inside Done!'));\r\n *   }\r\n *\r\n *   // Loop outside of the Angular zone\r\n *   // so the UI DOES NOT refresh after each setTimeout cycle\r\n *   processOutsideOfAngularZone() {\r\n *     this.label = 'outside';\r\n *     this.progress = 0;\r\n *     this._ngZone.runOutsideAngular(() => {\r\n *       this._increaseProgress(() => {\r\n *       // reenter the Angular zone and display done\r\n *       this._ngZone.run(() => {console.log('Outside Done!') });\r\n *     }}));\r\n *   }\r\n *\r\n *   _increaseProgress(doneCallback: () => void) {\r\n *     this.progress += 1;\r\n *     console.log(`Current progress: ${this.progress}%`);\r\n *\r\n *     if (this.progress < 100) {\r\n *       window.setTimeout(() => this._increaseProgress(doneCallback)), 10)\r\n *     } else {\r\n *       doneCallback();\r\n *     }\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar NgZone = (function () {\r\n    /**\r\n     * @param {?} __0\r\n     */\r\n    function NgZone(_a) {\r\n        var _b = _a.enableLongStackTrace, enableLongStackTrace = _b === void 0 ? false : _b;\r\n        this._hasPendingMicrotasks = false;\r\n        this._hasPendingMacrotasks = false;\r\n        this._isStable = true;\r\n        this._nesting = 0;\r\n        this._onUnstable = new EventEmitter(false);\r\n        this._onMicrotaskEmpty = new EventEmitter(false);\r\n        this._onStable = new EventEmitter(false);\r\n        this._onErrorEvents = new EventEmitter(false);\r\n        if (typeof Zone == 'undefined') {\r\n            throw new Error('Angular requires Zone.js prolyfill.');\r\n        }\r\n        Zone.assertZonePatched();\r\n        this.outer = this.inner = Zone.current;\r\n        if (Zone['wtfZoneSpec']) {\r\n            this.inner = this.inner.fork(Zone['wtfZoneSpec']);\r\n        }\r\n        if (enableLongStackTrace && Zone['longStackTraceZoneSpec']) {\r\n            this.inner = this.inner.fork(Zone['longStackTraceZoneSpec']);\r\n        }\r\n        this.forkInnerZoneWithAngularBehavior();\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgZone.isInAngularZone = function () { return Zone.current.get('isAngularZone') === true; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgZone.assertInAngularZone = function () {\r\n        if (!NgZone.isInAngularZone()) {\r\n            throw new Error('Expected to be in Angular Zone, but it is not!');\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgZone.assertNotInAngularZone = function () {\r\n        if (NgZone.isInAngularZone()) {\r\n            throw new Error('Expected to not be in Angular Zone, but it is!');\r\n        }\r\n    };\r\n    /**\r\n     * Executes the `fn` function synchronously within the Angular zone and returns value returned by\r\n     * the function.\r\n     *\r\n     * Running functions via `run` allows you to reenter Angular zone from a task that was executed\r\n     * outside of the Angular zone (typically started via {\\@link #runOutsideAngular}).\r\n     *\r\n     * Any future tasks or microtasks scheduled from within this function will continue executing from\r\n     * within the Angular zone.\r\n     *\r\n     * If a synchronous error happens it will be rethrown and not reported via `onError`.\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    NgZone.prototype.run = function (fn) { return this.inner.run(fn); };\r\n    /**\r\n     * Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not\r\n     * rethrown.\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    NgZone.prototype.runGuarded = function (fn) { return this.inner.runGuarded(fn); };\r\n    /**\r\n     * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by\r\n     * the function.\r\n     *\r\n     * Running functions via {\\@link #runOutsideAngular} allows you to escape Angular's zone and do\r\n     * work that\r\n     * doesn't trigger Angular change-detection or is subject to Angular's error handling.\r\n     *\r\n     * Any future tasks or microtasks scheduled from within this function will continue executing from\r\n     * outside of the Angular zone.\r\n     *\r\n     * Use {\\@link #run} to reenter the Angular zone and do work that updates the application model.\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    NgZone.prototype.runOutsideAngular = function (fn) { return this.outer.run(fn); };\r\n    Object.defineProperty(NgZone.prototype, \"onUnstable\", {\r\n        /**\r\n         * Notifies when code enters Angular Zone. This gets fired first on VM Turn.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._onUnstable; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgZone.prototype, \"onMicrotaskEmpty\", {\r\n        /**\r\n         * Notifies when there is no more microtasks enqueue in the current VM Turn.\r\n         * This is a hint for Angular to do change detection, which may enqueue more microtasks.\r\n         * For this reason this event can fire multiple times per VM Turn.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._onMicrotaskEmpty; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgZone.prototype, \"onStable\", {\r\n        /**\r\n         * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which\r\n         * implies we are about to relinquish VM turn.\r\n         * This event gets called just once.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._onStable; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgZone.prototype, \"onError\", {\r\n        /**\r\n         * Notify that an error has been delivered.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._onErrorEvents; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgZone.prototype, \"isStable\", {\r\n        /**\r\n         * Whether there are no outstanding microtasks or macrotasks.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._isStable; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgZone.prototype, \"hasPendingMicrotasks\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._hasPendingMicrotasks; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgZone.prototype, \"hasPendingMacrotasks\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._hasPendingMacrotasks; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgZone.prototype.checkStable = function () {\r\n        var _this = this;\r\n        if (this._nesting == 0 && !this._hasPendingMicrotasks && !this._isStable) {\r\n            try {\r\n                this._nesting++;\r\n                this._onMicrotaskEmpty.emit(null);\r\n            }\r\n            finally {\r\n                this._nesting--;\r\n                if (!this._hasPendingMicrotasks) {\r\n                    try {\r\n                        this.runOutsideAngular(function () { return _this._onStable.emit(null); });\r\n                    }\r\n                    finally {\r\n                        this._isStable = true;\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgZone.prototype.forkInnerZoneWithAngularBehavior = function () {\r\n        var _this = this;\r\n        this.inner = this.inner.fork({\r\n            name: 'angular',\r\n            properties: /** @type {?} */ ({ 'isAngularZone': true }),\r\n            onInvokeTask: function (delegate, current, target, task, applyThis, applyArgs) {\r\n                try {\r\n                    _this.onEnter();\r\n                    return delegate.invokeTask(target, task, applyThis, applyArgs);\r\n                }\r\n                finally {\r\n                    _this.onLeave();\r\n                }\r\n            },\r\n            onInvoke: function (delegate, current, target, callback, applyThis, applyArgs, source) {\r\n                try {\r\n                    _this.onEnter();\r\n                    return delegate.invoke(target, callback, applyThis, applyArgs, source);\r\n                }\r\n                finally {\r\n                    _this.onLeave();\r\n                }\r\n            },\r\n            onHasTask: function (delegate, current, target, hasTaskState) {\r\n                delegate.hasTask(target, hasTaskState);\r\n                if (current === target) {\r\n                    // We are only interested in hasTask events which originate from our zone\r\n                    // (A child hasTask event is not interesting to us)\r\n                    if (hasTaskState.change == 'microTask') {\r\n                        _this.setHasMicrotask(hasTaskState.microTask);\r\n                    }\r\n                    else if (hasTaskState.change == 'macroTask') {\r\n                        _this.setHasMacrotask(hasTaskState.macroTask);\r\n                    }\r\n                }\r\n            },\r\n            onHandleError: function (delegate, current, target, error) {\r\n                delegate.handleError(target, error);\r\n                _this.triggerError(error);\r\n                return false;\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgZone.prototype.onEnter = function () {\r\n        this._nesting++;\r\n        if (this._isStable) {\r\n            this._isStable = false;\r\n            this._onUnstable.emit(null);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgZone.prototype.onLeave = function () {\r\n        this._nesting--;\r\n        this.checkStable();\r\n    };\r\n    /**\r\n     * @param {?} hasMicrotasks\r\n     * @return {?}\r\n     */\r\n    NgZone.prototype.setHasMicrotask = function (hasMicrotasks) {\r\n        this._hasPendingMicrotasks = hasMicrotasks;\r\n        this.checkStable();\r\n    };\r\n    /**\r\n     * @param {?} hasMacrotasks\r\n     * @return {?}\r\n     */\r\n    NgZone.prototype.setHasMacrotask = function (hasMacrotasks) { this._hasPendingMacrotasks = hasMacrotasks; };\r\n    /**\r\n     * @param {?} error\r\n     * @return {?}\r\n     */\r\n    NgZone.prototype.triggerError = function (error) { this._onErrorEvents.emit(error); };\r\n    return NgZone;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * The Testability service provides testing hooks that can be accessed from\r\n * the browser and by services such as Protractor. Each bootstrapped Angular\r\n * application on the page will have an instance of Testability.\r\n * \\@experimental\r\n */\r\nvar Testability = (function () {\r\n    /**\r\n     * @param {?} _ngZone\r\n     */\r\n    function Testability(_ngZone) {\r\n        this._ngZone = _ngZone;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._pendingCount = 0;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._isZoneStable = true;\r\n        /**\r\n         * Whether any work was done since the last 'whenStable' callback. This is\r\n         * useful to detect if this could have potentially destabilized another\r\n         * component while it is stabilizing.\r\n         * \\@internal\r\n         */\r\n        this._didWork = false;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._callbacks = [];\r\n        this._watchAngularEvents();\r\n    }\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    Testability.prototype._watchAngularEvents = function () {\r\n        var _this = this;\r\n        this._ngZone.onUnstable.subscribe({\r\n            next: function () {\r\n                _this._didWork = true;\r\n                _this._isZoneStable = false;\r\n            }\r\n        });\r\n        this._ngZone.runOutsideAngular(function () {\r\n            _this._ngZone.onStable.subscribe({\r\n                next: function () {\r\n                    NgZone.assertNotInAngularZone();\r\n                    scheduleMicroTask(function () {\r\n                        _this._isZoneStable = true;\r\n                        _this._runCallbacksIfReady();\r\n                    });\r\n                }\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Testability.prototype.increasePendingRequestCount = function () {\r\n        this._pendingCount += 1;\r\n        this._didWork = true;\r\n        return this._pendingCount;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Testability.prototype.decreasePendingRequestCount = function () {\r\n        this._pendingCount -= 1;\r\n        if (this._pendingCount < 0) {\r\n            throw new Error('pending async requests below zero');\r\n        }\r\n        this._runCallbacksIfReady();\r\n        return this._pendingCount;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Testability.prototype.isStable = function () {\r\n        return this._isZoneStable && this._pendingCount == 0 && !this._ngZone.hasPendingMacrotasks;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    Testability.prototype._runCallbacksIfReady = function () {\r\n        var _this = this;\r\n        if (this.isStable()) {\r\n            // Schedules the call backs in a new frame so that it is always async.\r\n            scheduleMicroTask(function () {\r\n                while (_this._callbacks.length !== 0) {\r\n                    (((_this._callbacks.pop())))(_this._didWork);\r\n                }\r\n                _this._didWork = false;\r\n            });\r\n        }\r\n        else {\r\n            // Not Ready\r\n            this._didWork = true;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    Testability.prototype.whenStable = function (callback) {\r\n        this._callbacks.push(callback);\r\n        this._runCallbacksIfReady();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Testability.prototype.getPendingRequestCount = function () { return this._pendingCount; };\r\n    /**\r\n     * @deprecated use findProviders\r\n     * @param {?} using\r\n     * @param {?} provider\r\n     * @param {?} exactMatch\r\n     * @return {?}\r\n     */\r\n    Testability.prototype.findBindings = function (using, provider, exactMatch) {\r\n        // TODO(juliemr): implement.\r\n        return [];\r\n    };\r\n    /**\r\n     * @param {?} using\r\n     * @param {?} provider\r\n     * @param {?} exactMatch\r\n     * @return {?}\r\n     */\r\n    Testability.prototype.findProviders = function (using, provider, exactMatch) {\r\n        // TODO(juliemr): implement.\r\n        return [];\r\n    };\r\n    return Testability;\r\n}());\r\nTestability.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nTestability.ctorParameters = function () { return [\r\n    { type: NgZone, },\r\n]; };\r\n/**\r\n * A global registry of {\\@link Testability} instances for specific elements.\r\n * \\@experimental\r\n */\r\nvar TestabilityRegistry = (function () {\r\n    function TestabilityRegistry() {\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._applications = new Map();\r\n        _testabilityGetter.addToWindow(this);\r\n    }\r\n    /**\r\n     * @param {?} token\r\n     * @param {?} testability\r\n     * @return {?}\r\n     */\r\n    TestabilityRegistry.prototype.registerApplication = function (token, testability) {\r\n        this._applications.set(token, testability);\r\n    };\r\n    /**\r\n     * @param {?} elem\r\n     * @return {?}\r\n     */\r\n    TestabilityRegistry.prototype.getTestability = function (elem) { return this._applications.get(elem) || null; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    TestabilityRegistry.prototype.getAllTestabilities = function () { return Array.from(this._applications.values()); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    TestabilityRegistry.prototype.getAllRootElements = function () { return Array.from(this._applications.keys()); };\r\n    /**\r\n     * @param {?} elem\r\n     * @param {?=} findInAncestors\r\n     * @return {?}\r\n     */\r\n    TestabilityRegistry.prototype.findTestabilityInTree = function (elem, findInAncestors) {\r\n        if (findInAncestors === void 0) { findInAncestors = true; }\r\n        return _testabilityGetter.findTestabilityInTree(this, elem, findInAncestors);\r\n    };\r\n    return TestabilityRegistry;\r\n}());\r\nTestabilityRegistry.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nTestabilityRegistry.ctorParameters = function () { return []; };\r\nvar _NoopGetTestability = (function () {\r\n    function _NoopGetTestability() {\r\n    }\r\n    /**\r\n     * @param {?} registry\r\n     * @return {?}\r\n     */\r\n    _NoopGetTestability.prototype.addToWindow = function (registry) { };\r\n    /**\r\n     * @param {?} registry\r\n     * @param {?} elem\r\n     * @param {?} findInAncestors\r\n     * @return {?}\r\n     */\r\n    _NoopGetTestability.prototype.findTestabilityInTree = function (registry, elem, findInAncestors) {\r\n        return null;\r\n    };\r\n    return _NoopGetTestability;\r\n}());\r\n/**\r\n * Set the {\\@link GetTestability} implementation used by the Angular testing framework.\r\n * \\@experimental\r\n * @param {?} getter\r\n * @return {?}\r\n */\r\nfunction setTestabilityGetter(getter) {\r\n    _testabilityGetter = getter;\r\n}\r\nvar _testabilityGetter = new _NoopGetTestability();\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _devMode = true;\r\nvar _runModeLocked = false;\r\nvar _platform;\r\nvar ALLOW_MULTIPLE_PLATFORMS = new InjectionToken('AllowMultipleToken');\r\n/**\r\n * Disable Angular's development mode, which turns off assertions and other\r\n * checks within the framework.\r\n *\r\n * One important assertion this disables verifies that a change detection pass\r\n * does not result in additional changes to any bindings (also known as\r\n * unidirectional data flow).\r\n *\r\n * \\@stable\r\n * @return {?}\r\n */\r\nfunction enableProdMode() {\r\n    if (_runModeLocked) {\r\n        throw new Error('Cannot enable prod mode after platform setup.');\r\n    }\r\n    _devMode = false;\r\n}\r\n/**\r\n * Returns whether Angular is in development mode. After called once,\r\n * the value is locked and won't change any more.\r\n *\r\n * By default, this is true, unless a user calls `enableProdMode` before calling this.\r\n *\r\n * \\@experimental APIs related to application bootstrap are currently under review.\r\n * @return {?}\r\n */\r\nfunction isDevMode() {\r\n    _runModeLocked = true;\r\n    return _devMode;\r\n}\r\n/**\r\n * A token for third-party components that can register themselves with NgProbe.\r\n *\r\n * \\@experimental\r\n */\r\nvar NgProbeToken = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} token\r\n     */\r\n    function NgProbeToken(name, token) {\r\n        this.name = name;\r\n        this.token = token;\r\n    }\r\n    return NgProbeToken;\r\n}());\r\n/**\r\n * Creates a platform.\r\n * Platforms have to be eagerly created via this function.\r\n *\r\n * \\@experimental APIs related to application bootstrap are currently under review.\r\n * @param {?} injector\r\n * @return {?}\r\n */\r\nfunction createPlatform(injector) {\r\n    if (_platform && !_platform.destroyed &&\r\n        !_platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {\r\n        throw new Error('There can be only one platform. Destroy the previous one to create a new one.');\r\n    }\r\n    _platform = injector.get(PlatformRef);\r\n    var /** @type {?} */ inits = injector.get(PLATFORM_INITIALIZER, null);\r\n    if (inits)\r\n        inits.forEach(function (init) { return init(); });\r\n    return _platform;\r\n}\r\n/**\r\n * Creates a factory for a platform\r\n *\r\n * \\@experimental APIs related to application bootstrap are currently under review.\r\n * @param {?} parentPlatformFactory\r\n * @param {?} name\r\n * @param {?=} providers\r\n * @return {?}\r\n */\r\nfunction createPlatformFactory(parentPlatformFactory, name, providers) {\r\n    if (providers === void 0) { providers = []; }\r\n    var /** @type {?} */ marker = new InjectionToken(\"Platform: \" + name);\r\n    return function (extraProviders) {\r\n        if (extraProviders === void 0) { extraProviders = []; }\r\n        var /** @type {?} */ platform = getPlatform();\r\n        if (!platform || platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {\r\n            if (parentPlatformFactory) {\r\n                parentPlatformFactory(providers.concat(extraProviders).concat({ provide: marker, useValue: true }));\r\n            }\r\n            else {\r\n                createPlatform(ReflectiveInjector.resolveAndCreate(providers.concat(extraProviders).concat({ provide: marker, useValue: true })));\r\n            }\r\n        }\r\n        return assertPlatform(marker);\r\n    };\r\n}\r\n/**\r\n * Checks that there currently is a platform which contains the given token as a provider.\r\n *\r\n * \\@experimental APIs related to application bootstrap are currently under review.\r\n * @param {?} requiredToken\r\n * @return {?}\r\n */\r\nfunction assertPlatform(requiredToken) {\r\n    var /** @type {?} */ platform = getPlatform();\r\n    if (!platform) {\r\n        throw new Error('No platform exists!');\r\n    }\r\n    if (!platform.injector.get(requiredToken, null)) {\r\n        throw new Error('A platform with a different configuration has been created. Please destroy it first.');\r\n    }\r\n    return platform;\r\n}\r\n/**\r\n * Destroy the existing platform.\r\n *\r\n * \\@experimental APIs related to application bootstrap are currently under review.\r\n * @return {?}\r\n */\r\nfunction destroyPlatform() {\r\n    if (_platform && !_platform.destroyed) {\r\n        _platform.destroy();\r\n    }\r\n}\r\n/**\r\n * Returns the current platform.\r\n *\r\n * \\@experimental APIs related to application bootstrap are currently under review.\r\n * @return {?}\r\n */\r\nfunction getPlatform() {\r\n    return _platform && !_platform.destroyed ? _platform : null;\r\n}\r\n/**\r\n * The Angular platform is the entry point for Angular on a web page. Each page\r\n * has exactly one platform, and services (such as reflection) which are common\r\n * to every Angular application running on the page are bound in its scope.\r\n *\r\n * A page's platform is initialized implicitly when a platform is created via a platform factory\r\n * (e.g. {\\@link platformBrowser}), or explicitly by calling the {\\@link createPlatform} function.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar PlatformRef = (function () {\r\n    function PlatformRef() {\r\n    }\r\n    /**\r\n     * Creates an instance of an `\\@NgModule` for the given platform\r\n     * for offline compilation.\r\n     *\r\n     * ## Simple Example\r\n     *\r\n     * ```typescript\r\n     * my_module.ts:\r\n     *\r\n     * \\@NgModule({\r\n     *   imports: [BrowserModule]\r\n     * })\r\n     * class MyModule {}\r\n     *\r\n     * main.ts:\r\n     * import {MyModuleNgFactory} from './my_module.ngfactory';\r\n     * import {platformBrowser} from '\\@angular/platform-browser';\r\n     *\r\n     * let moduleRef = platformBrowser().bootstrapModuleFactory(MyModuleNgFactory);\r\n     * ```\r\n     *\r\n     * \\@experimental APIs related to application bootstrap are currently under review.\r\n     * @abstract\r\n     * @template M\r\n     * @param {?} moduleFactory\r\n     * @return {?}\r\n     */\r\n    PlatformRef.prototype.bootstrapModuleFactory = function (moduleFactory) { };\r\n    /**\r\n     * Creates an instance of an `\\@NgModule` for a given platform using the given runtime compiler.\r\n     *\r\n     * ## Simple Example\r\n     *\r\n     * ```typescript\r\n     * \\@NgModule({\r\n     *   imports: [BrowserModule]\r\n     * })\r\n     * class MyModule {}\r\n     *\r\n     * let moduleRef = platformBrowser().bootstrapModule(MyModule);\r\n     * ```\r\n     * \\@stable\r\n     * @abstract\r\n     * @template M\r\n     * @param {?} moduleType\r\n     * @param {?=} compilerOptions\r\n     * @return {?}\r\n     */\r\n    PlatformRef.prototype.bootstrapModule = function (moduleType, compilerOptions) { };\r\n    /**\r\n     * Register a listener to be called when the platform is disposed.\r\n     * @abstract\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    PlatformRef.prototype.onDestroy = function (callback) { };\r\n    /**\r\n     * Retrieve the platform {\\@link Injector}, which is the parent injector for\r\n     * every Angular application on the page and provides singleton providers.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    PlatformRef.prototype.injector = function () { };\r\n    /**\r\n     * Destroy the Angular platform and all Angular applications on the page.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    PlatformRef.prototype.destroy = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    PlatformRef.prototype.destroyed = function () { };\r\n    return PlatformRef;\r\n}());\r\n/**\r\n * @param {?} errorHandler\r\n * @param {?} callback\r\n * @return {?}\r\n */\r\nfunction _callAndReportToErrorHandler(errorHandler, callback) {\r\n    try {\r\n        var /** @type {?} */ result = callback();\r\n        if (isPromise(result)) {\r\n            return result.catch(function (e) {\r\n                errorHandler.handleError(e);\r\n                // rethrow as the exception handler might not do it\r\n                throw e;\r\n            });\r\n        }\r\n        return result;\r\n    }\r\n    catch (e) {\r\n        errorHandler.handleError(e);\r\n        // rethrow as the exception handler might not do it\r\n        throw e;\r\n    }\r\n}\r\n/**\r\n * workaround https://github.com/angular/tsickle/issues/350\r\n * @suppress {checkTypes}\r\n */\r\nvar PlatformRef_ = (function (_super) {\r\n    __extends(PlatformRef_, _super);\r\n    /**\r\n     * @param {?} _injector\r\n     */\r\n    function PlatformRef_(_injector) {\r\n        var _this = _super.call(this) || this;\r\n        _this._injector = _injector;\r\n        _this._modules = [];\r\n        _this._destroyListeners = [];\r\n        _this._destroyed = false;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    PlatformRef_.prototype.onDestroy = function (callback) { this._destroyListeners.push(callback); };\r\n    Object.defineProperty(PlatformRef_.prototype, \"injector\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._injector; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(PlatformRef_.prototype, \"destroyed\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._destroyed; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    PlatformRef_.prototype.destroy = function () {\r\n        if (this._destroyed) {\r\n            throw new Error('The platform has already been destroyed!');\r\n        }\r\n        this._modules.slice().forEach(function (module) { return module.destroy(); });\r\n        this._destroyListeners.forEach(function (listener) { return listener(); });\r\n        this._destroyed = true;\r\n    };\r\n    /**\r\n     * @template M\r\n     * @param {?} moduleFactory\r\n     * @return {?}\r\n     */\r\n    PlatformRef_.prototype.bootstrapModuleFactory = function (moduleFactory) {\r\n        return this._bootstrapModuleFactoryWithZone(moduleFactory);\r\n    };\r\n    /**\r\n     * @template M\r\n     * @param {?} moduleFactory\r\n     * @param {?=} ngZone\r\n     * @return {?}\r\n     */\r\n    PlatformRef_.prototype._bootstrapModuleFactoryWithZone = function (moduleFactory, ngZone) {\r\n        var _this = this;\r\n        // Note: We need to create the NgZone _before_ we instantiate the module,\r\n        // as instantiating the module creates some providers eagerly.\r\n        // So we create a mini parent injector that just contains the new NgZone and\r\n        // pass that as parent to the NgModuleFactory.\r\n        if (!ngZone)\r\n            ngZone = new NgZone({ enableLongStackTrace: isDevMode() });\r\n        // Attention: Don't use ApplicationRef.run here,\r\n        // as we want to be sure that all possible constructor calls are inside `ngZone.run`!\r\n        return ngZone.run(function () {\r\n            var /** @type {?} */ ngZoneInjector = ReflectiveInjector.resolveAndCreate([{ provide: NgZone, useValue: ngZone }], _this.injector);\r\n            var /** @type {?} */ moduleRef = (moduleFactory.create(ngZoneInjector));\r\n            var /** @type {?} */ exceptionHandler = moduleRef.injector.get(ErrorHandler, null);\r\n            if (!exceptionHandler) {\r\n                throw new Error('No ErrorHandler. Is platform module (BrowserModule) included?');\r\n            }\r\n            moduleRef.onDestroy(function () { return remove(_this._modules, moduleRef); }); /** @type {?} */\r\n            ((ngZone)).onError.subscribe({ next: function (error) { exceptionHandler.handleError(error); } });\r\n            return _callAndReportToErrorHandler(exceptionHandler, function () {\r\n                var /** @type {?} */ initStatus = moduleRef.injector.get(ApplicationInitStatus);\r\n                initStatus.runInitializers();\r\n                return initStatus.donePromise.then(function () {\r\n                    _this._moduleDoBootstrap(moduleRef);\r\n                    return moduleRef;\r\n                });\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * @template M\r\n     * @param {?} moduleType\r\n     * @param {?=} compilerOptions\r\n     * @return {?}\r\n     */\r\n    PlatformRef_.prototype.bootstrapModule = function (moduleType, compilerOptions) {\r\n        if (compilerOptions === void 0) { compilerOptions = []; }\r\n        return this._bootstrapModuleWithZone(moduleType, compilerOptions);\r\n    };\r\n    /**\r\n     * @template M\r\n     * @param {?} moduleType\r\n     * @param {?=} compilerOptions\r\n     * @param {?=} ngZone\r\n     * @return {?}\r\n     */\r\n    PlatformRef_.prototype._bootstrapModuleWithZone = function (moduleType, compilerOptions, ngZone) {\r\n        var _this = this;\r\n        if (compilerOptions === void 0) { compilerOptions = []; }\r\n        var /** @type {?} */ compilerFactory = this.injector.get(CompilerFactory);\r\n        var /** @type {?} */ compiler = compilerFactory.createCompiler(Array.isArray(compilerOptions) ? compilerOptions : [compilerOptions]);\r\n        return compiler.compileModuleAsync(moduleType)\r\n            .then(function (moduleFactory) { return _this._bootstrapModuleFactoryWithZone(moduleFactory, ngZone); });\r\n    };\r\n    /**\r\n     * @param {?} moduleRef\r\n     * @return {?}\r\n     */\r\n    PlatformRef_.prototype._moduleDoBootstrap = function (moduleRef) {\r\n        var /** @type {?} */ appRef = moduleRef.injector.get(ApplicationRef);\r\n        if (moduleRef.bootstrapFactories.length > 0) {\r\n            moduleRef.bootstrapFactories.forEach(function (f) { return appRef.bootstrap(f); });\r\n        }\r\n        else if (moduleRef.instance.ngDoBootstrap) {\r\n            moduleRef.instance.ngDoBootstrap(appRef);\r\n        }\r\n        else {\r\n            throw new Error(\"The module \" + stringify(moduleRef.instance.constructor) + \" was bootstrapped, but it does not declare \\\"@NgModule.bootstrap\\\" components nor a \\\"ngDoBootstrap\\\" method. \" +\r\n                \"Please define one of these.\");\r\n        }\r\n        this._modules.push(moduleRef);\r\n    };\r\n    return PlatformRef_;\r\n}(PlatformRef));\r\nPlatformRef_.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nPlatformRef_.ctorParameters = function () { return [\r\n    { type: Injector, },\r\n]; };\r\n/**\r\n * A reference to an Angular application running on a page.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar ApplicationRef = (function () {\r\n    function ApplicationRef() {\r\n    }\r\n    /**\r\n     * Bootstrap a new component at the root level of the application.\r\n     *\r\n     * ### Bootstrap process\r\n     *\r\n     * When bootstrapping a new root component into an application, Angular mounts the\r\n     * specified application component onto DOM elements identified by the [componentType]'s\r\n     * selector and kicks off automatic change detection to finish initializing the component.\r\n     *\r\n     * ### Example\r\n     * {\\@example core/ts/platform/platform.ts region='longform'}\r\n     * @abstract\r\n     * @template C\r\n     * @param {?} componentFactory\r\n     * @return {?}\r\n     */\r\n    ApplicationRef.prototype.bootstrap = function (componentFactory) { };\r\n    /**\r\n     * Invoke this method to explicitly process change detection and its side-effects.\r\n     *\r\n     * In development mode, `tick()` also performs a second change detection cycle to ensure that no\r\n     * further changes are detected. If additional changes are picked up during this second cycle,\r\n     * bindings in the app have side-effects that cannot be resolved in a single change detection\r\n     * pass.\r\n     * In this case, Angular throws an error, since an Angular application can only have one change\r\n     * detection pass during which all change detection must complete.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ApplicationRef.prototype.tick = function () { };\r\n    /**\r\n     * Get a list of component types registered to this application.\r\n     * This list is populated even before the component is created.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ApplicationRef.prototype.componentTypes = function () { };\r\n    /**\r\n     * Get a list of components registered to this application.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ApplicationRef.prototype.components = function () { };\r\n    /**\r\n     * Attaches a view so that it will be dirty checked.\r\n     * The view will be automatically detached when it is destroyed.\r\n     * This will throw if the view is already attached to a ViewContainer.\r\n     * @abstract\r\n     * @param {?} view\r\n     * @return {?}\r\n     */\r\n    ApplicationRef.prototype.attachView = function (view) { };\r\n    /**\r\n     * Detaches a view from dirty checking again.\r\n     * @abstract\r\n     * @param {?} view\r\n     * @return {?}\r\n     */\r\n    ApplicationRef.prototype.detachView = function (view) { };\r\n    /**\r\n     * Returns the number of attached views.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ApplicationRef.prototype.viewCount = function () { };\r\n    /**\r\n     * Returns an Observable that indicates when the application is stable or unstable.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ApplicationRef.prototype.isStable = function () { };\r\n    return ApplicationRef;\r\n}());\r\n/**\r\n * workaround https://github.com/angular/tsickle/issues/350\r\n * @suppress {checkTypes}\r\n */\r\nvar ApplicationRef_ = (function (_super) {\r\n    __extends(ApplicationRef_, _super);\r\n    /**\r\n     * @param {?} _zone\r\n     * @param {?} _console\r\n     * @param {?} _injector\r\n     * @param {?} _exceptionHandler\r\n     * @param {?} _componentFactoryResolver\r\n     * @param {?} _initStatus\r\n     */\r\n    function ApplicationRef_(_zone, _console, _injector, _exceptionHandler, _componentFactoryResolver, _initStatus) {\r\n        var _this = _super.call(this) || this;\r\n        _this._zone = _zone;\r\n        _this._console = _console;\r\n        _this._injector = _injector;\r\n        _this._exceptionHandler = _exceptionHandler;\r\n        _this._componentFactoryResolver = _componentFactoryResolver;\r\n        _this._initStatus = _initStatus;\r\n        _this._bootstrapListeners = [];\r\n        _this._rootComponents = [];\r\n        _this._rootComponentTypes = [];\r\n        _this._views = [];\r\n        _this._runningTick = false;\r\n        _this._enforceNoNewChanges = false;\r\n        _this._stable = true;\r\n        _this._enforceNoNewChanges = isDevMode();\r\n        _this._zone.onMicrotaskEmpty.subscribe({ next: function () { _this._zone.run(function () { _this.tick(); }); } });\r\n        var isCurrentlyStable = new Observable(function (observer) {\r\n            _this._stable = _this._zone.isStable && !_this._zone.hasPendingMacrotasks &&\r\n                !_this._zone.hasPendingMicrotasks;\r\n            _this._zone.runOutsideAngular(function () {\r\n                observer.next(_this._stable);\r\n                observer.complete();\r\n            });\r\n        });\r\n        var isStable = new Observable(function (observer) {\r\n            var stableSub = _this._zone.onStable.subscribe(function () {\r\n                NgZone.assertNotInAngularZone();\r\n                // Check whether there are no pending macro/micro tasks in the next tick\r\n                // to allow for NgZone to update the state.\r\n                scheduleMicroTask(function () {\r\n                    if (!_this._stable && !_this._zone.hasPendingMacrotasks &&\r\n                        !_this._zone.hasPendingMicrotasks) {\r\n                        _this._stable = true;\r\n                        observer.next(true);\r\n                    }\r\n                });\r\n            });\r\n            var unstableSub = _this._zone.onUnstable.subscribe(function () {\r\n                NgZone.assertInAngularZone();\r\n                if (_this._stable) {\r\n                    _this._stable = false;\r\n                    _this._zone.runOutsideAngular(function () { observer.next(false); });\r\n                }\r\n            });\r\n            return function () {\r\n                stableSub.unsubscribe();\r\n                unstableSub.unsubscribe();\r\n            };\r\n        });\r\n        _this._isStable = merge(isCurrentlyStable, share.call(isStable));\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} viewRef\r\n     * @return {?}\r\n     */\r\n    ApplicationRef_.prototype.attachView = function (viewRef) {\r\n        var /** @type {?} */ view = ((viewRef));\r\n        this._views.push(view);\r\n        view.attachToAppRef(this);\r\n    };\r\n    /**\r\n     * @param {?} viewRef\r\n     * @return {?}\r\n     */\r\n    ApplicationRef_.prototype.detachView = function (viewRef) {\r\n        var /** @type {?} */ view = ((viewRef));\r\n        remove(this._views, view);\r\n        view.detachFromAppRef();\r\n    };\r\n    /**\r\n     * @template C\r\n     * @param {?} componentOrFactory\r\n     * @return {?}\r\n     */\r\n    ApplicationRef_.prototype.bootstrap = function (componentOrFactory) {\r\n        var _this = this;\r\n        if (!this._initStatus.done) {\r\n            throw new Error('Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.');\r\n        }\r\n        var /** @type {?} */ componentFactory;\r\n        if (componentOrFactory instanceof ComponentFactory) {\r\n            componentFactory = componentOrFactory;\r\n        }\r\n        else {\r\n            componentFactory = ((this._componentFactoryResolver.resolveComponentFactory(componentOrFactory)));\r\n        }\r\n        this._rootComponentTypes.push(componentFactory.componentType);\r\n        // Create a factory associated with the current module if it's not bound to some other\r\n        var /** @type {?} */ ngModule = componentFactory instanceof ComponentFactoryBoundToModule ?\r\n            null :\r\n            this._injector.get(NgModuleRef);\r\n        var /** @type {?} */ compRef = componentFactory.create(Injector.NULL, [], componentFactory.selector, ngModule);\r\n        compRef.onDestroy(function () { _this._unloadComponent(compRef); });\r\n        var /** @type {?} */ testability = compRef.injector.get(Testability, null);\r\n        if (testability) {\r\n            compRef.injector.get(TestabilityRegistry)\r\n                .registerApplication(compRef.location.nativeElement, testability);\r\n        }\r\n        this._loadComponent(compRef);\r\n        if (isDevMode()) {\r\n            this._console.log(\"Angular is running in the development mode. Call enableProdMode() to enable the production mode.\");\r\n        }\r\n        return compRef;\r\n    };\r\n    /**\r\n     * @param {?} componentRef\r\n     * @return {?}\r\n     */\r\n    ApplicationRef_.prototype._loadComponent = function (componentRef) {\r\n        this.attachView(componentRef.hostView);\r\n        this.tick();\r\n        this._rootComponents.push(componentRef);\r\n        // Get the listeners lazily to prevent DI cycles.\r\n        var /** @type {?} */ listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []).concat(this._bootstrapListeners);\r\n        listeners.forEach(function (listener) { return listener(componentRef); });\r\n    };\r\n    /**\r\n     * @param {?} componentRef\r\n     * @return {?}\r\n     */\r\n    ApplicationRef_.prototype._unloadComponent = function (componentRef) {\r\n        this.detachView(componentRef.hostView);\r\n        remove(this._rootComponents, componentRef);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ApplicationRef_.prototype.tick = function () {\r\n        if (this._runningTick) {\r\n            throw new Error('ApplicationRef.tick is called recursively');\r\n        }\r\n        var /** @type {?} */ scope = ApplicationRef_._tickScope();\r\n        try {\r\n            this._runningTick = true;\r\n            this._views.forEach(function (view) { return view.detectChanges(); });\r\n            if (this._enforceNoNewChanges) {\r\n                this._views.forEach(function (view) { return view.checkNoChanges(); });\r\n            }\r\n        }\r\n        catch (e) {\r\n            // Attention: Don't rethrow as it could cancel subscriptions to Observables!\r\n            this._exceptionHandler.handleError(e);\r\n        }\r\n        finally {\r\n            this._runningTick = false;\r\n            wtfLeave(scope);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ApplicationRef_.prototype.ngOnDestroy = function () {\r\n        // TODO(alxhub): Dispose of the NgZone.\r\n        this._views.slice().forEach(function (view) { return view.destroy(); });\r\n    };\r\n    Object.defineProperty(ApplicationRef_.prototype, \"viewCount\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._views.length; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ApplicationRef_.prototype, \"componentTypes\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._rootComponentTypes; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ApplicationRef_.prototype, \"components\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._rootComponents; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ApplicationRef_.prototype, \"isStable\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._isStable; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return ApplicationRef_;\r\n}(ApplicationRef));\r\n/**\r\n * \\@internal\r\n */\r\nApplicationRef_._tickScope = wtfCreateScope('ApplicationRef#tick()');\r\nApplicationRef_.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nApplicationRef_.ctorParameters = function () { return [\r\n    { type: NgZone, },\r\n    { type: Console, },\r\n    { type: Injector, },\r\n    { type: ErrorHandler, },\r\n    { type: ComponentFactoryResolver, },\r\n    { type: ApplicationInitStatus, },\r\n]; };\r\n/**\r\n * @template T\r\n * @param {?} list\r\n * @param {?} el\r\n * @return {?}\r\n */\r\nfunction remove(list, el) {\r\n    var /** @type {?} */ index = list.indexOf(el);\r\n    if (index > -1) {\r\n        list.splice(index, 1);\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n// Public API for Zone\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @deprecated Use `RendererType2` (and `Renderer2`) instead.\r\n */\r\nvar RenderComponentType = (function () {\r\n    /**\r\n     * @param {?} id\r\n     * @param {?} templateUrl\r\n     * @param {?} slotCount\r\n     * @param {?} encapsulation\r\n     * @param {?} styles\r\n     * @param {?} animations\r\n     */\r\n    function RenderComponentType(id, templateUrl, slotCount, encapsulation, styles, animations) {\r\n        this.id = id;\r\n        this.templateUrl = templateUrl;\r\n        this.slotCount = slotCount;\r\n        this.encapsulation = encapsulation;\r\n        this.styles = styles;\r\n        this.animations = animations;\r\n    }\r\n    return RenderComponentType;\r\n}());\r\n/**\r\n * @deprecated Debug info is handeled internally in the view engine now.\r\n * @abstract\r\n */\r\nvar RenderDebugInfo = (function () {\r\n    function RenderDebugInfo() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    RenderDebugInfo.prototype.injector = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    RenderDebugInfo.prototype.component = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    RenderDebugInfo.prototype.providerTokens = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    RenderDebugInfo.prototype.references = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    RenderDebugInfo.prototype.context = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    RenderDebugInfo.prototype.source = function () { };\r\n    return RenderDebugInfo;\r\n}());\r\n/**\r\n * @deprecated Use the `Renderer2` instead.\r\n * @abstract\r\n */\r\nvar Renderer = (function () {\r\n    function Renderer() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} selectorOrNode\r\n     * @param {?=} debugInfo\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.selectRootElement = function (selectorOrNode, debugInfo) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} parentElement\r\n     * @param {?} name\r\n     * @param {?=} debugInfo\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.createElement = function (parentElement, name, debugInfo) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} hostElement\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.createViewRoot = function (hostElement) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} parentElement\r\n     * @param {?=} debugInfo\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.createTemplateAnchor = function (parentElement, debugInfo) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} parentElement\r\n     * @param {?} value\r\n     * @param {?=} debugInfo\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.createText = function (parentElement, value, debugInfo) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} parentElement\r\n     * @param {?} nodes\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.projectNodes = function (parentElement, nodes) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @param {?} viewRootNodes\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.attachViewAfter = function (node, viewRootNodes) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} viewRootNodes\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.detachView = function (viewRootNodes) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} hostElement\r\n     * @param {?} viewAllNodes\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.destroyView = function (hostElement, viewAllNodes) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} renderElement\r\n     * @param {?} name\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.listen = function (renderElement, name, callback) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} target\r\n     * @param {?} name\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.listenGlobal = function (target, name, callback) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} renderElement\r\n     * @param {?} propertyName\r\n     * @param {?} propertyValue\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.setElementProperty = function (renderElement, propertyName, propertyValue) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} renderElement\r\n     * @param {?} attributeName\r\n     * @param {?} attributeValue\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.setElementAttribute = function (renderElement, attributeName, attributeValue) { };\r\n    /**\r\n     * Used only in debug mode to serialize property changes to dom nodes as attributes.\r\n     * @abstract\r\n     * @param {?} renderElement\r\n     * @param {?} propertyName\r\n     * @param {?} propertyValue\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.setBindingDebugInfo = function (renderElement, propertyName, propertyValue) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} renderElement\r\n     * @param {?} className\r\n     * @param {?} isAdd\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.setElementClass = function (renderElement, className, isAdd) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} renderElement\r\n     * @param {?} styleName\r\n     * @param {?} styleValue\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.setElementStyle = function (renderElement, styleName, styleValue) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} renderElement\r\n     * @param {?} methodName\r\n     * @param {?=} args\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.invokeElementMethod = function (renderElement, methodName, args) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} renderNode\r\n     * @param {?} text\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.setText = function (renderNode, text) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} startingStyles\r\n     * @param {?} keyframes\r\n     * @param {?} duration\r\n     * @param {?} delay\r\n     * @param {?} easing\r\n     * @param {?=} previousPlayers\r\n     * @return {?}\r\n     */\r\n    Renderer.prototype.animate = function (element, startingStyles, keyframes, duration, delay, easing, previousPlayers) { };\r\n    return Renderer;\r\n}());\r\nvar Renderer2Interceptor = new InjectionToken('Renderer2Interceptor');\r\n/**\r\n * Injectable service that provides a low-level interface for modifying the UI.\r\n *\r\n * Use this service to bypass Angular's templating and make custom UI changes that can't be\r\n * expressed declaratively. For example if you need to set a property or an attribute whose name is\r\n * not statically known, use {\\@link Renderer#setElementProperty} or {\\@link\r\n * Renderer#setElementAttribute}\r\n * respectively.\r\n *\r\n * If you are implementing a custom renderer, you must implement this interface.\r\n *\r\n * The default Renderer implementation is `DomRenderer`. Also available is `WebWorkerRenderer`.\r\n *\r\n * @deprecated Use `RendererFactory2` instead.\r\n * @abstract\r\n */\r\nvar RootRenderer = (function () {\r\n    function RootRenderer() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} componentType\r\n     * @return {?}\r\n     */\r\n    RootRenderer.prototype.renderComponent = function (componentType) { };\r\n    return RootRenderer;\r\n}());\r\n/**\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar RendererFactory2 = (function () {\r\n    function RendererFactory2() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} hostElement\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    RendererFactory2.prototype.createRenderer = function (hostElement, type) { };\r\n    return RendererFactory2;\r\n}());\r\nvar RendererStyleFlags2 = {};\r\nRendererStyleFlags2.Important = 1;\r\nRendererStyleFlags2.DashCase = 2;\r\nRendererStyleFlags2[RendererStyleFlags2.Important] = \"Important\";\r\nRendererStyleFlags2[RendererStyleFlags2.DashCase] = \"DashCase\";\r\n/**\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar Renderer2 = (function () {\r\n    function Renderer2() {\r\n    }\r\n    /**\r\n     * This field can be used to store arbitrary data on this renderer instance.\r\n     * This is useful for renderers that delegate to other renderers.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.data = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.destroy = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} name\r\n     * @param {?=} namespace\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.createElement = function (name, namespace) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.createComment = function (value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.createText = function (value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} parent\r\n     * @param {?} newChild\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.appendChild = function (parent, newChild) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} parent\r\n     * @param {?} newChild\r\n     * @param {?} refChild\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.insertBefore = function (parent, newChild, refChild) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} parent\r\n     * @param {?} oldChild\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.removeChild = function (parent, oldChild) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} selectorOrNode\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.selectRootElement = function (selectorOrNode) { };\r\n    /**\r\n     * Attention: On WebWorkers, this will always return a value,\r\n     * as we are asking for a result synchronously. I.e.\r\n     * the caller can't rely on checking whether this is null or not.\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.parentNode = function (node) { };\r\n    /**\r\n     * Attention: On WebWorkers, this will always return a value,\r\n     * as we are asking for a result synchronously. I.e.\r\n     * the caller can't rely on checking whether this is null or not.\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.nextSibling = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?=} namespace\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.setAttribute = function (el, name, value, namespace) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?=} namespace\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.removeAttribute = function (el, name, namespace) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.addClass = function (el, name) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.removeClass = function (el, name) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} style\r\n     * @param {?} value\r\n     * @param {?=} flags\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.setStyle = function (el, style, value, flags) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} style\r\n     * @param {?=} flags\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.removeStyle = function (el, style, flags) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.setProperty = function (el, name, value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.setValue = function (node, value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} target\r\n     * @param {?} eventName\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    Renderer2.prototype.listen = function (target, eventName, callback) { };\r\n    return Renderer2;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n// Public API for render\r\nvar ElementRef = (function () {\r\n    /**\r\n     * @param {?} nativeElement\r\n     */\r\n    function ElementRef(nativeElement) {\r\n        this.nativeElement = nativeElement;\r\n    }\r\n    return ElementRef;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Used to load ng module factories.\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar NgModuleFactoryLoader = (function () {\r\n    function NgModuleFactoryLoader() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} path\r\n     * @return {?}\r\n     */\r\n    NgModuleFactoryLoader.prototype.load = function (path) { };\r\n    return NgModuleFactoryLoader;\r\n}());\r\nvar moduleFactories = new Map();\r\n/**\r\n * Registers a loaded module. Should only be called from generated NgModuleFactory code.\r\n * \\@experimental\r\n * @param {?} id\r\n * @param {?} factory\r\n * @return {?}\r\n */\r\nfunction registerModuleFactory(id, factory) {\r\n    var /** @type {?} */ existing = moduleFactories.get(id);\r\n    if (existing) {\r\n        throw new Error(\"Duplicate module registered for \" + id + \" - \" + existing.moduleType.name + \" vs \" + factory.moduleType.name);\r\n    }\r\n    moduleFactories.set(id, factory);\r\n}\r\n/**\r\n * @return {?}\r\n */\r\n/**\r\n * Returns the NgModuleFactory with the given id, if it exists and has been loaded.\r\n * Factories for modules that do not specify an `id` cannot be retrieved. Throws if the module\r\n * cannot be found.\r\n * \\@experimental\r\n * @param {?} id\r\n * @return {?}\r\n */\r\nfunction getModuleFactory(id) {\r\n    var /** @type {?} */ factory = moduleFactories.get(id);\r\n    if (!factory)\r\n        throw new Error(\"No module with ID \" + id + \" loaded\");\r\n    return factory;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * An unmodifiable list of items that Angular keeps up to date when the state\r\n * of the application changes.\r\n *\r\n * The type of object that {\\@link ViewChildren}, {\\@link ContentChildren}, and {\\@link QueryList}\r\n * provide.\r\n *\r\n * Implements an iterable interface, therefore it can be used in both ES6\r\n * javascript `for (var i of items)` loops as well as in Angular templates with\r\n * `*ngFor=\"let i of myList\"`.\r\n *\r\n * Changes can be observed by subscribing to the changes `Observable`.\r\n *\r\n * NOTE: In the future this class will implement an `Observable` interface.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/RX8sJnQYl9FWuSCWme5z?p=preview))\r\n * ```typescript\r\n * \\@Component({...})\r\n * class Container {\r\n *   \\@ViewChildren(Item) items:QueryList<Item>;\r\n * }\r\n * ```\r\n * \\@stable\r\n */\r\nvar QueryList = (function () {\r\n    function QueryList() {\r\n        this._dirty = true;\r\n        this._results = [];\r\n        this._emitter = new EventEmitter();\r\n    }\r\n    Object.defineProperty(QueryList.prototype, \"changes\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._emitter; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(QueryList.prototype, \"length\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._results.length; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(QueryList.prototype, \"first\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._results[0]; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(QueryList.prototype, \"last\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._results[this.length - 1]; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * See\r\n     * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\r\n     * @template U\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.map = function (fn) { return this._results.map(fn); };\r\n    /**\r\n     * See\r\n     * [Array.filter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter)\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.filter = function (fn) {\r\n        return this._results.filter(fn);\r\n    };\r\n    /**\r\n     * See\r\n     * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.find = function (fn) {\r\n        return this._results.find(fn);\r\n    };\r\n    /**\r\n     * See\r\n     * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)\r\n     * @template U\r\n     * @param {?} fn\r\n     * @param {?} init\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.reduce = function (fn, init) {\r\n        return this._results.reduce(fn, init);\r\n    };\r\n    /**\r\n     * See\r\n     * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.forEach = function (fn) { this._results.forEach(fn); };\r\n    /**\r\n     * See\r\n     * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.some = function (fn) {\r\n        return this._results.some(fn);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.toArray = function () { return this._results.slice(); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype[getSymbolIterator()] = function () { return ((this._results))[getSymbolIterator()](); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.toString = function () { return this._results.toString(); };\r\n    /**\r\n     * @param {?} res\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.reset = function (res) {\r\n        this._results = flatten(res);\r\n        this._dirty = false;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.notifyOnChanges = function () { this._emitter.emit(this); };\r\n    /**\r\n     * internal\r\n     * @return {?}\r\n     */\r\n    QueryList.prototype.setDirty = function () { this._dirty = true; };\r\n    Object.defineProperty(QueryList.prototype, \"dirty\", {\r\n        /**\r\n         * internal\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._dirty; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return QueryList;\r\n}());\r\n/**\r\n * @template T\r\n * @param {?} list\r\n * @return {?}\r\n */\r\nfunction flatten(list) {\r\n    return list.reduce(function (flat, item) {\r\n        var /** @type {?} */ flatItem = Array.isArray(item) ? flatten(item) : item;\r\n        return ((flat)).concat(flatItem);\r\n    }, []);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _SEPARATOR = '#';\r\nvar FACTORY_CLASS_SUFFIX = 'NgFactory';\r\n/**\r\n * Configuration for SystemJsNgModuleLoader.\r\n * token.\r\n *\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar SystemJsNgModuleLoaderConfig = (function () {\r\n    function SystemJsNgModuleLoaderConfig() {\r\n    }\r\n    return SystemJsNgModuleLoaderConfig;\r\n}());\r\nvar DEFAULT_CONFIG = {\r\n    factoryPathPrefix: '',\r\n    factoryPathSuffix: '.ngfactory',\r\n};\r\n/**\r\n * NgModuleFactoryLoader that uses SystemJS to load NgModuleFactory\r\n * \\@experimental\r\n */\r\nvar SystemJsNgModuleLoader = (function () {\r\n    /**\r\n     * @param {?} _compiler\r\n     * @param {?=} config\r\n     */\r\n    function SystemJsNgModuleLoader(_compiler, config) {\r\n        this._compiler = _compiler;\r\n        this._config = config || DEFAULT_CONFIG;\r\n    }\r\n    /**\r\n     * @param {?} path\r\n     * @return {?}\r\n     */\r\n    SystemJsNgModuleLoader.prototype.load = function (path) {\r\n        var /** @type {?} */ offlineMode = this._compiler instanceof Compiler;\r\n        return offlineMode ? this.loadFactory(path) : this.loadAndCompile(path);\r\n    };\r\n    /**\r\n     * @param {?} path\r\n     * @return {?}\r\n     */\r\n    SystemJsNgModuleLoader.prototype.loadAndCompile = function (path) {\r\n        var _this = this;\r\n        var _a = path.split(_SEPARATOR), module = _a[0], exportName = _a[1];\r\n        if (exportName === undefined) {\r\n            exportName = 'default';\r\n        }\r\n        return System.import(module)\r\n            .then(function (module) { return module[exportName]; })\r\n            .then(function (type) { return checkNotEmpty(type, module, exportName); })\r\n            .then(function (type) { return _this._compiler.compileModuleAsync(type); });\r\n    };\r\n    /**\r\n     * @param {?} path\r\n     * @return {?}\r\n     */\r\n    SystemJsNgModuleLoader.prototype.loadFactory = function (path) {\r\n        var _a = path.split(_SEPARATOR), module = _a[0], exportName = _a[1];\r\n        var /** @type {?} */ factoryClassSuffix = FACTORY_CLASS_SUFFIX;\r\n        if (exportName === undefined) {\r\n            exportName = 'default';\r\n            factoryClassSuffix = '';\r\n        }\r\n        return System.import(this._config.factoryPathPrefix + module + this._config.factoryPathSuffix)\r\n            .then(function (module) { return module[exportName + factoryClassSuffix]; })\r\n            .then(function (factory) { return checkNotEmpty(factory, module, exportName); });\r\n    };\r\n    return SystemJsNgModuleLoader;\r\n}());\r\nSystemJsNgModuleLoader.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nSystemJsNgModuleLoader.ctorParameters = function () { return [\r\n    { type: Compiler, },\r\n    { type: SystemJsNgModuleLoaderConfig, decorators: [{ type: Optional },] },\r\n]; };\r\n/**\r\n * @param {?} value\r\n * @param {?} modulePath\r\n * @param {?} exportName\r\n * @return {?}\r\n */\r\nfunction checkNotEmpty(value, modulePath, exportName) {\r\n    if (!value) {\r\n        throw new Error(\"Cannot find '\" + exportName + \"' in '\" + modulePath + \"'\");\r\n    }\r\n    return value;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Represents an Embedded Template that can be used to instantiate Embedded Views.\r\n *\r\n * You can access a `TemplateRef`, in two ways. Via a directive placed on a `<ng-template>` element\r\n * (or directive prefixed with `*`) and have the `TemplateRef` for this Embedded View injected into\r\n * the constructor of the directive using the `TemplateRef` Token. Alternatively you can query for\r\n * the `TemplateRef` from a Component or a Directive via {\\@link Query}.\r\n *\r\n * To instantiate Embedded Views based on a Template, use\r\n * {\\@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the\r\n * View Container.\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar TemplateRef = (function () {\r\n    function TemplateRef() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    TemplateRef.prototype.elementRef = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplateRef.prototype.createEmbeddedView = function (context) { };\r\n    return TemplateRef;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Represents a container where one or more Views can be attached.\r\n *\r\n * The container can contain two kinds of Views. Host Views, created by instantiating a\r\n * {\\@link Component} via {\\@link #createComponent}, and Embedded Views, created by instantiating an\r\n * {\\@link TemplateRef Embedded Template} via {\\@link #createEmbeddedView}.\r\n *\r\n * The location of the View Container within the containing View is specified by the Anchor\r\n * `element`. Each View Container can have only one Anchor Element and each Anchor Element can only\r\n * have a single View Container.\r\n *\r\n * Root elements of Views attached to this container become siblings of the Anchor Element in\r\n * the Rendered View.\r\n *\r\n * To access a `ViewContainerRef` of an Element, you can either place a {\\@link Directive} injected\r\n * with `ViewContainerRef` on the Element, or you obtain it via a {\\@link ViewChild} query.\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar ViewContainerRef = (function () {\r\n    function ViewContainerRef() {\r\n    }\r\n    /**\r\n     * Anchor element that specifies the location of this container in the containing View.\r\n     * <!-- TODO: rename to anchorElement -->\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.element = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.injector = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.parentInjector = function () { };\r\n    /**\r\n     * Destroys all Views in this container.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.clear = function () { };\r\n    /**\r\n     * Returns the {\\@link ViewRef} for the View located in this container at the specified index.\r\n     * @abstract\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.get = function (index) { };\r\n    /**\r\n     * Returns the number of Views currently attached to this container.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.length = function () { };\r\n    /**\r\n     * Instantiates an Embedded View based on the {\\@link TemplateRef `templateRef`} and inserts it\r\n     * into this container at the specified `index`.\r\n     *\r\n     * If `index` is not specified, the new View will be inserted as the last View in the container.\r\n     *\r\n     * Returns the {\\@link ViewRef} for the newly created View.\r\n     * @abstract\r\n     * @template C\r\n     * @param {?} templateRef\r\n     * @param {?=} context\r\n     * @param {?=} index\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.createEmbeddedView = function (templateRef, context, index) { };\r\n    /**\r\n     * Instantiates a single {\\@link Component} and inserts its Host View into this container at the\r\n     * specified `index`.\r\n     *\r\n     * The component is instantiated using its {\\@link ComponentFactory} which can be\r\n     * obtained via {\\@link ComponentFactoryResolver#resolveComponentFactory}.\r\n     *\r\n     * If `index` is not specified, the new View will be inserted as the last View in the container.\r\n     *\r\n     * You can optionally specify the {\\@link Injector} that will be used as parent for the Component.\r\n     *\r\n     * Returns the {\\@link ComponentRef} of the Host View created for the newly instantiated Component.\r\n     * @abstract\r\n     * @template C\r\n     * @param {?} componentFactory\r\n     * @param {?=} index\r\n     * @param {?=} injector\r\n     * @param {?=} projectableNodes\r\n     * @param {?=} ngModule\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.createComponent = function (componentFactory, index, injector, projectableNodes, ngModule) { };\r\n    /**\r\n     * Inserts a View identified by a {\\@link ViewRef} into the container at the specified `index`.\r\n     *\r\n     * If `index` is not specified, the new View will be inserted as the last View in the container.\r\n     *\r\n     * Returns the inserted {\\@link ViewRef}.\r\n     * @abstract\r\n     * @param {?} viewRef\r\n     * @param {?=} index\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.insert = function (viewRef, index) { };\r\n    /**\r\n     * Moves a View identified by a {\\@link ViewRef} into the container at the specified `index`.\r\n     *\r\n     * Returns the inserted {\\@link ViewRef}.\r\n     * @abstract\r\n     * @param {?} viewRef\r\n     * @param {?} currentIndex\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.move = function (viewRef, currentIndex) { };\r\n    /**\r\n     * Returns the index of the View, specified via {\\@link ViewRef}, within the current container or\r\n     * `-1` if this container doesn't contain the View.\r\n     * @abstract\r\n     * @param {?} viewRef\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.indexOf = function (viewRef) { };\r\n    /**\r\n     * Destroys a View attached to this container at the specified `index`.\r\n     *\r\n     * If `index` is not specified, the last View in the container will be removed.\r\n     * @abstract\r\n     * @param {?=} index\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.remove = function (index) { };\r\n    /**\r\n     * Use along with {\\@link #insert} to move a View within the current container.\r\n     *\r\n     * If the `index` param is omitted, the last {\\@link ViewRef} is detached.\r\n     * @abstract\r\n     * @param {?=} index\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef.prototype.detach = function (index) { };\r\n    return ViewContainerRef;\r\n}());\r\n/**\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar ChangeDetectorRef = (function () {\r\n    function ChangeDetectorRef() {\r\n    }\r\n    /**\r\n     * Marks all {\\@link ChangeDetectionStrategy#OnPush} ancestors as to be checked.\r\n     *\r\n     * <!-- TODO: Add a link to a chapter on OnPush components -->\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/GC512b?p=preview))\r\n     *\r\n     * ```typescript\r\n     * \\@Component({\r\n     *   selector: 'cmp',\r\n     *   changeDetection: ChangeDetectionStrategy.OnPush,\r\n     *   template: `Number of ticks: {{numberOfTicks}}`\r\n     * })\r\n     * class Cmp {\r\n     *   numberOfTicks = 0;\r\n     *\r\n     *   constructor(ref: ChangeDetectorRef) {\r\n     *     setInterval(() => {\r\n     *       this.numberOfTicks ++\r\n     *       // the following is required, otherwise the view will not be updated\r\n     *       this.ref.markForCheck();\r\n     *     }, 1000);\r\n     *   }\r\n     * }\r\n     *\r\n     * \\@Component({\r\n     *   selector: 'app',\r\n     *   changeDetection: ChangeDetectionStrategy.OnPush,\r\n     *   template: `\r\n     *     <cmp><cmp>\r\n     *   `,\r\n     * })\r\n     * class App {\r\n     * }\r\n     * ```\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ChangeDetectorRef.prototype.markForCheck = function () { };\r\n    /**\r\n     * Detaches the change detector from the change detector tree.\r\n     *\r\n     * The detached change detector will not be checked until it is reattached.\r\n     *\r\n     * This can also be used in combination with {\\@link ChangeDetectorRef#detectChanges} to implement\r\n     * local change\r\n     * detection checks.\r\n     *\r\n     * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\r\n     * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\r\n     *\r\n     * ### Example\r\n     *\r\n     * The following example defines a component with a large list of readonly data.\r\n     * Imagine the data changes constantly, many times per second. For performance reasons,\r\n     * we want to check and update the list every five seconds. We can do that by detaching\r\n     * the component's change detector and doing a local check every five seconds.\r\n     *\r\n     * ```typescript\r\n     * class DataProvider {\r\n     *   // in a real application the returned data will be different every time\r\n     *   get data() {\r\n     *     return [1,2,3,4,5];\r\n     *   }\r\n     * }\r\n     *\r\n     * \\@Component({\r\n     *   selector: 'giant-list',\r\n     *   template: `\r\n     *     <li *ngFor=\"let d of dataProvider.data\">Data {{d}}</lig>\r\n     *   `,\r\n     * })\r\n     * class GiantList {\r\n     *   constructor(private ref: ChangeDetectorRef, private dataProvider:DataProvider) {\r\n     *     ref.detach();\r\n     *     setInterval(() => {\r\n     *       this.ref.detectChanges();\r\n     *     }, 5000);\r\n     *   }\r\n     * }\r\n     *\r\n     * \\@Component({\r\n     *   selector: 'app',\r\n     *   providers: [DataProvider],\r\n     *   template: `\r\n     *     <giant-list><giant-list>\r\n     *   `,\r\n     * })\r\n     * class App {\r\n     * }\r\n     * ```\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ChangeDetectorRef.prototype.detach = function () { };\r\n    /**\r\n     * Checks the change detector and its children.\r\n     *\r\n     * This can also be used in combination with {\\@link ChangeDetectorRef#detach} to implement local\r\n     * change detection\r\n     * checks.\r\n     *\r\n     * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\r\n     * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\r\n     *\r\n     * ### Example\r\n     *\r\n     * The following example defines a component with a large list of readonly data.\r\n     * Imagine, the data changes constantly, many times per second. For performance reasons,\r\n     * we want to check and update the list every five seconds.\r\n     *\r\n     * We can do that by detaching the component's change detector and doing a local change detection\r\n     * check\r\n     * every five seconds.\r\n     *\r\n     * See {\\@link ChangeDetectorRef#detach} for more information.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ChangeDetectorRef.prototype.detectChanges = function () { };\r\n    /**\r\n     * Checks the change detector and its children, and throws if any changes are detected.\r\n     *\r\n     * This is used in development mode to verify that running change detection doesn't introduce\r\n     * other changes.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ChangeDetectorRef.prototype.checkNoChanges = function () { };\r\n    /**\r\n     * Reattach the change detector to the change detector tree.\r\n     *\r\n     * This also marks OnPush ancestors as to be checked. This reattached change detector will be\r\n     * checked during the next change detection run.\r\n     *\r\n     * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/aUhZha?p=preview))\r\n     *\r\n     * The following example creates a component displaying `live` data. The component will detach\r\n     * its change detector from the main change detector tree when the component's live property\r\n     * is set to false.\r\n     *\r\n     * ```typescript\r\n     * class DataProvider {\r\n     *   data = 1;\r\n     *\r\n     *   constructor() {\r\n     *     setInterval(() => {\r\n     *       this.data = this.data * 2;\r\n     *     }, 500);\r\n     *   }\r\n     * }\r\n     *\r\n     * \\@Component({\r\n     *   selector: 'live-data',\r\n     *   inputs: ['live'],\r\n     *   template: 'Data: {{dataProvider.data}}'\r\n     * })\r\n     * class LiveData {\r\n     *   constructor(private ref: ChangeDetectorRef, private dataProvider:DataProvider) {}\r\n     *\r\n     *   set live(value) {\r\n     *     if (value)\r\n     *       this.ref.reattach();\r\n     *     else\r\n     *       this.ref.detach();\r\n     *   }\r\n     * }\r\n     *\r\n     * \\@Component({\r\n     *   selector: 'app',\r\n     *   providers: [DataProvider],\r\n     *   template: `\r\n     *     Live Update: <input type=\"checkbox\" [(ngModel)]=\"live\">\r\n     *     <live-data [live]=\"live\"><live-data>\r\n     *   `,\r\n     * })\r\n     * class App {\r\n     *   live = true;\r\n     * }\r\n     * ```\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ChangeDetectorRef.prototype.reattach = function () { };\r\n    return ChangeDetectorRef;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar ViewRef = (function (_super) {\r\n    __extends(ViewRef, _super);\r\n    function ViewRef() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * Destroys the view and all of the data structures associated with it.\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ViewRef.prototype.destroy = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ViewRef.prototype.destroyed = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    ViewRef.prototype.onDestroy = function (callback) { };\r\n    return ViewRef;\r\n}(ChangeDetectorRef));\r\n/**\r\n * Represents an Angular View.\r\n *\r\n * <!-- TODO: move the next two paragraphs to the dev guide -->\r\n * A View is a fundamental building block of the application UI. It is the smallest grouping of\r\n * Elements which are created and destroyed together.\r\n *\r\n * Properties of elements in a View can change, but the structure (number and order) of elements in\r\n * a View cannot. Changing the structure of Elements can only be done by inserting, moving or\r\n * removing nested Views via a {\\@link ViewContainerRef}. Each View can contain many View Containers.\r\n * <!-- /TODO -->\r\n *\r\n * ### Example\r\n *\r\n * Given this template...\r\n *\r\n * ```\r\n * Count: {{items.length}}\r\n * <ul>\r\n *   <li *ngFor=\"let  item of items\">{{item}}</li>\r\n * </ul>\r\n * ```\r\n *\r\n * We have two {\\@link TemplateRef}s:\r\n *\r\n * Outer {\\@link TemplateRef}:\r\n * ```\r\n * Count: {{items.length}}\r\n * <ul>\r\n *   <ng-template ngFor let-item [ngForOf]=\"items\"></ng-template>\r\n * </ul>\r\n * ```\r\n *\r\n * Inner {\\@link TemplateRef}:\r\n * ```\r\n *   <li>{{item}}</li>\r\n * ```\r\n *\r\n * Notice that the original template is broken down into two separate {\\@link TemplateRef}s.\r\n *\r\n * The outer/inner {\\@link TemplateRef}s are then assembled into views like so:\r\n *\r\n * ```\r\n * <!-- ViewRef: outer-0 -->\r\n * Count: 2\r\n * <ul>\r\n *   <ng-template view-container-ref></ng-template>\r\n *   <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->\r\n *   <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->\r\n * </ul>\r\n * <!-- /ViewRef: outer-0 -->\r\n * ```\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar EmbeddedViewRef = (function (_super) {\r\n    __extends(EmbeddedViewRef, _super);\r\n    function EmbeddedViewRef() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    EmbeddedViewRef.prototype.context = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    EmbeddedViewRef.prototype.rootNodes = function () { };\r\n    return EmbeddedViewRef;\r\n}(ViewRef));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n// Public API for compiler\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar EventListener = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} callback\r\n     */\r\n    function EventListener(name, callback) {\r\n        this.name = name;\r\n        this.callback = callback;\r\n    }\r\n    ;\r\n    return EventListener;\r\n}());\r\n/**\r\n * \\@experimental All debugging apis are currently experimental.\r\n */\r\nvar DebugNode = (function () {\r\n    /**\r\n     * @param {?} nativeNode\r\n     * @param {?} parent\r\n     * @param {?} _debugContext\r\n     */\r\n    function DebugNode(nativeNode, parent, _debugContext) {\r\n        this._debugContext = _debugContext;\r\n        this.nativeNode = nativeNode;\r\n        if (parent && parent instanceof DebugElement) {\r\n            parent.addChild(this);\r\n        }\r\n        else {\r\n            this.parent = null;\r\n        }\r\n        this.listeners = [];\r\n    }\r\n    Object.defineProperty(DebugNode.prototype, \"injector\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._debugContext.injector; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugNode.prototype, \"componentInstance\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._debugContext.component; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugNode.prototype, \"context\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._debugContext.context; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugNode.prototype, \"references\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._debugContext.references; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugNode.prototype, \"providerTokens\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._debugContext.providerTokens; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugNode.prototype, \"source\", {\r\n        /**\r\n         * @deprecated since v4\r\n         * @return {?}\r\n         */\r\n        get: function () { return 'Deprecated since v4'; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return DebugNode;\r\n}());\r\n/**\r\n * \\@experimental All debugging apis are currently experimental.\r\n */\r\nvar DebugElement = (function (_super) {\r\n    __extends(DebugElement, _super);\r\n    /**\r\n     * @param {?} nativeNode\r\n     * @param {?} parent\r\n     * @param {?} _debugContext\r\n     */\r\n    function DebugElement(nativeNode, parent, _debugContext) {\r\n        var _this = _super.call(this, nativeNode, parent, _debugContext) || this;\r\n        _this.properties = {};\r\n        _this.attributes = {};\r\n        _this.classes = {};\r\n        _this.styles = {};\r\n        _this.childNodes = [];\r\n        _this.nativeElement = nativeNode;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} child\r\n     * @return {?}\r\n     */\r\n    DebugElement.prototype.addChild = function (child) {\r\n        if (child) {\r\n            this.childNodes.push(child);\r\n            child.parent = this;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} child\r\n     * @return {?}\r\n     */\r\n    DebugElement.prototype.removeChild = function (child) {\r\n        var /** @type {?} */ childIndex = this.childNodes.indexOf(child);\r\n        if (childIndex !== -1) {\r\n            child.parent = null;\r\n            this.childNodes.splice(childIndex, 1);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} child\r\n     * @param {?} newChildren\r\n     * @return {?}\r\n     */\r\n    DebugElement.prototype.insertChildrenAfter = function (child, newChildren) {\r\n        var _this = this;\r\n        var /** @type {?} */ siblingIndex = this.childNodes.indexOf(child);\r\n        if (siblingIndex !== -1) {\r\n            (_a = this.childNodes).splice.apply(_a, [siblingIndex + 1, 0].concat(newChildren));\r\n            newChildren.forEach(function (c) {\r\n                if (c.parent) {\r\n                    c.parent.removeChild(c);\r\n                }\r\n                c.parent = _this;\r\n            });\r\n        }\r\n        var _a;\r\n    };\r\n    /**\r\n     * @param {?} refChild\r\n     * @param {?} newChild\r\n     * @return {?}\r\n     */\r\n    DebugElement.prototype.insertBefore = function (refChild, newChild) {\r\n        var /** @type {?} */ refIndex = this.childNodes.indexOf(refChild);\r\n        if (refIndex === -1) {\r\n            this.addChild(newChild);\r\n        }\r\n        else {\r\n            if (newChild.parent) {\r\n                newChild.parent.removeChild(newChild);\r\n            }\r\n            newChild.parent = this;\r\n            this.childNodes.splice(refIndex, 0, newChild);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} predicate\r\n     * @return {?}\r\n     */\r\n    DebugElement.prototype.query = function (predicate) {\r\n        var /** @type {?} */ results = this.queryAll(predicate);\r\n        return results[0] || null;\r\n    };\r\n    /**\r\n     * @param {?} predicate\r\n     * @return {?}\r\n     */\r\n    DebugElement.prototype.queryAll = function (predicate) {\r\n        var /** @type {?} */ matches = [];\r\n        _queryElementChildren(this, predicate, matches);\r\n        return matches;\r\n    };\r\n    /**\r\n     * @param {?} predicate\r\n     * @return {?}\r\n     */\r\n    DebugElement.prototype.queryAllNodes = function (predicate) {\r\n        var /** @type {?} */ matches = [];\r\n        _queryNodeChildren(this, predicate, matches);\r\n        return matches;\r\n    };\r\n    Object.defineProperty(DebugElement.prototype, \"children\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return (this.childNodes.filter(function (node) { return node instanceof DebugElement; }));\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} eventName\r\n     * @param {?} eventObj\r\n     * @return {?}\r\n     */\r\n    DebugElement.prototype.triggerEventHandler = function (eventName, eventObj) {\r\n        this.listeners.forEach(function (listener) {\r\n            if (listener.name == eventName) {\r\n                listener.callback(eventObj);\r\n            }\r\n        });\r\n    };\r\n    return DebugElement;\r\n}(DebugNode));\r\n/**\r\n * \\@experimental\r\n * @param {?} debugEls\r\n * @return {?}\r\n */\r\nfunction asNativeElements(debugEls) {\r\n    return debugEls.map(function (el) { return el.nativeElement; });\r\n}\r\n/**\r\n * @param {?} element\r\n * @param {?} predicate\r\n * @param {?} matches\r\n * @return {?}\r\n */\r\nfunction _queryElementChildren(element, predicate, matches) {\r\n    element.childNodes.forEach(function (node) {\r\n        if (node instanceof DebugElement) {\r\n            if (predicate(node)) {\r\n                matches.push(node);\r\n            }\r\n            _queryElementChildren(node, predicate, matches);\r\n        }\r\n    });\r\n}\r\n/**\r\n * @param {?} parentNode\r\n * @param {?} predicate\r\n * @param {?} matches\r\n * @return {?}\r\n */\r\nfunction _queryNodeChildren(parentNode, predicate, matches) {\r\n    if (parentNode instanceof DebugElement) {\r\n        parentNode.childNodes.forEach(function (node) {\r\n            if (predicate(node)) {\r\n                matches.push(node);\r\n            }\r\n            if (node instanceof DebugElement) {\r\n                _queryNodeChildren(node, predicate, matches);\r\n            }\r\n        });\r\n    }\r\n}\r\n// Need to keep the nodes in a global Map so that multiple angular apps are supported.\r\nvar _nativeNodeToDebugNode = new Map();\r\n/**\r\n * \\@experimental\r\n * @param {?} nativeNode\r\n * @return {?}\r\n */\r\nfunction getDebugNode(nativeNode) {\r\n    return _nativeNodeToDebugNode.get(nativeNode) || null;\r\n}\r\n/**\r\n * @return {?}\r\n */\r\n/**\r\n * @param {?} node\r\n * @return {?}\r\n */\r\nfunction indexDebugNode(node) {\r\n    _nativeNodeToDebugNode.set(node.nativeNode, node);\r\n}\r\n/**\r\n * @param {?} node\r\n * @return {?}\r\n */\r\nfunction removeDebugNodeFromIndex(node) {\r\n    _nativeNodeToDebugNode.delete(node.nativeNode);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} a\r\n * @param {?} b\r\n * @return {?}\r\n */\r\nfunction devModeEqual(a, b) {\r\n    var /** @type {?} */ isListLikeIterableA = isListLikeIterable(a);\r\n    var /** @type {?} */ isListLikeIterableB = isListLikeIterable(b);\r\n    if (isListLikeIterableA && isListLikeIterableB) {\r\n        return areIterablesEqual(a, b, devModeEqual);\r\n    }\r\n    else {\r\n        var /** @type {?} */ isAObject = a && (typeof a === 'object' || typeof a === 'function');\r\n        var /** @type {?} */ isBObject = b && (typeof b === 'object' || typeof b === 'function');\r\n        if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {\r\n            return true;\r\n        }\r\n        else {\r\n            return looseIdentical(a, b);\r\n        }\r\n    }\r\n}\r\n/**\r\n * Indicates that the result of a {\\@link Pipe} transformation has changed even though the\r\n * reference\r\n * has not changed.\r\n *\r\n * The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored.\r\n *\r\n * Example:\r\n *\r\n * ```\r\n * if (this._latestValue === this._latestReturnedValue) {\r\n *    return this._latestReturnedValue;\r\n *  } else {\r\n *    this._latestReturnedValue = this._latestValue;\r\n *    return WrappedValue.wrap(this._latestValue); // this will force update\r\n *  }\r\n * ```\r\n * \\@stable\r\n */\r\nvar WrappedValue = (function () {\r\n    /**\r\n     * @param {?} wrapped\r\n     */\r\n    function WrappedValue(wrapped) {\r\n        this.wrapped = wrapped;\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    WrappedValue.wrap = function (value) { return new WrappedValue(value); };\r\n    return WrappedValue;\r\n}());\r\n/**\r\n * Helper class for unwrapping WrappedValue s\r\n */\r\nvar ValueUnwrapper = (function () {\r\n    function ValueUnwrapper() {\r\n        this.hasWrappedValue = false;\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    ValueUnwrapper.prototype.unwrap = function (value) {\r\n        if (value instanceof WrappedValue) {\r\n            this.hasWrappedValue = true;\r\n            return value.wrapped;\r\n        }\r\n        return value;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ValueUnwrapper.prototype.reset = function () { this.hasWrappedValue = false; };\r\n    return ValueUnwrapper;\r\n}());\r\n/**\r\n * Represents a basic change from a previous to a new value.\r\n * \\@stable\r\n */\r\nvar SimpleChange = (function () {\r\n    /**\r\n     * @param {?} previousValue\r\n     * @param {?} currentValue\r\n     * @param {?} firstChange\r\n     */\r\n    function SimpleChange(previousValue, currentValue, firstChange) {\r\n        this.previousValue = previousValue;\r\n        this.currentValue = currentValue;\r\n        this.firstChange = firstChange;\r\n    }\r\n    /**\r\n     * Check whether the new value is the first value assigned.\r\n     * @return {?}\r\n     */\r\n    SimpleChange.prototype.isFirstChange = function () { return this.firstChange; };\r\n    return SimpleChange;\r\n}());\r\n/**\r\n * @param {?} obj\r\n * @return {?}\r\n */\r\nfunction isListLikeIterable(obj) {\r\n    if (!isJsObject(obj))\r\n        return false;\r\n    return Array.isArray(obj) ||\r\n        (!(obj instanceof Map) &&\r\n            getSymbolIterator() in obj); // JS Iterable have a Symbol.iterator prop\r\n}\r\n/**\r\n * @param {?} a\r\n * @param {?} b\r\n * @param {?} comparator\r\n * @return {?}\r\n */\r\nfunction areIterablesEqual(a, b, comparator) {\r\n    var /** @type {?} */ iterator1 = a[getSymbolIterator()]();\r\n    var /** @type {?} */ iterator2 = b[getSymbolIterator()]();\r\n    while (true) {\r\n        var /** @type {?} */ item1 = iterator1.next();\r\n        var /** @type {?} */ item2 = iterator2.next();\r\n        if (item1.done && item2.done)\r\n            return true;\r\n        if (item1.done || item2.done)\r\n            return false;\r\n        if (!comparator(item1.value, item2.value))\r\n            return false;\r\n    }\r\n}\r\n/**\r\n * @param {?} obj\r\n * @param {?} fn\r\n * @return {?}\r\n */\r\nfunction iterateListLike(obj, fn) {\r\n    if (Array.isArray(obj)) {\r\n        for (var /** @type {?} */ i = 0; i < obj.length; i++) {\r\n            fn(obj[i]);\r\n        }\r\n    }\r\n    else {\r\n        var /** @type {?} */ iterator = obj[getSymbolIterator()]();\r\n        var /** @type {?} */ item = void 0;\r\n        while (!((item = iterator.next()).done)) {\r\n            fn(item.value);\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} o\r\n * @return {?}\r\n */\r\nfunction isJsObject(o) {\r\n    return o !== null && (typeof o === 'function' || typeof o === 'object');\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar DefaultIterableDifferFactory = (function () {\r\n    function DefaultIterableDifferFactory() {\r\n    }\r\n    /**\r\n     * @param {?} obj\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDifferFactory.prototype.supports = function (obj) { return isListLikeIterable(obj); };\r\n    /**\r\n     * @deprecated v4.0.0 - ChangeDetectorRef is not used and is no longer a parameter\r\n     * @template V\r\n     * @param {?=} cdRefOrTrackBy\r\n     * @param {?=} trackByFn\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDifferFactory.prototype.create = function (cdRefOrTrackBy, trackByFn) {\r\n        return new DefaultIterableDiffer(trackByFn || (cdRefOrTrackBy));\r\n    };\r\n    return DefaultIterableDifferFactory;\r\n}());\r\nvar trackByIdentity = function (index, item) { return item; };\r\n/**\r\n * @deprecated v4.0.0 - Should not be part of public API.\r\n */\r\nvar DefaultIterableDiffer = (function () {\r\n    /**\r\n     * @param {?=} trackByFn\r\n     */\r\n    function DefaultIterableDiffer(trackByFn) {\r\n        this._length = 0;\r\n        this._collection = null;\r\n        this._linkedRecords = null;\r\n        this._unlinkedRecords = null;\r\n        this._previousItHead = null;\r\n        this._itHead = null;\r\n        this._itTail = null;\r\n        this._additionsHead = null;\r\n        this._additionsTail = null;\r\n        this._movesHead = null;\r\n        this._movesTail = null;\r\n        this._removalsHead = null;\r\n        this._removalsTail = null;\r\n        this._identityChangesHead = null;\r\n        this._identityChangesTail = null;\r\n        this._trackByFn = trackByFn || trackByIdentity;\r\n    }\r\n    Object.defineProperty(DefaultIterableDiffer.prototype, \"collection\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._collection; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DefaultIterableDiffer.prototype, \"length\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._length; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.forEachItem = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._itHead; record !== null; record = record._next) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.forEachOperation = function (fn) {\r\n        var /** @type {?} */ nextIt = this._itHead;\r\n        var /** @type {?} */ nextRemove = this._removalsHead;\r\n        var /** @type {?} */ addRemoveOffset = 0;\r\n        var /** @type {?} */ moveOffsets = null;\r\n        while (nextIt || nextRemove) {\r\n            // Figure out which is the next record to process\r\n            // Order: remove, add, move\r\n            var /** @type {?} */ record = !nextRemove ||\r\n                nextIt && ((nextIt.currentIndex)) <\r\n                    getPreviousIndex(nextRemove, addRemoveOffset, moveOffsets) ? ((nextIt)) :\r\n                nextRemove;\r\n            var /** @type {?} */ adjPreviousIndex = getPreviousIndex(record, addRemoveOffset, moveOffsets);\r\n            var /** @type {?} */ currentIndex = record.currentIndex;\r\n            // consume the item, and adjust the addRemoveOffset and update moveDistance if necessary\r\n            if (record === nextRemove) {\r\n                addRemoveOffset--;\r\n                nextRemove = nextRemove._nextRemoved;\r\n            }\r\n            else {\r\n                nextIt = ((nextIt))._next;\r\n                if (record.previousIndex == null) {\r\n                    addRemoveOffset++;\r\n                }\r\n                else {\r\n                    // INVARIANT:  currentIndex < previousIndex\r\n                    if (!moveOffsets)\r\n                        moveOffsets = [];\r\n                    var /** @type {?} */ localMovePreviousIndex = adjPreviousIndex - addRemoveOffset;\r\n                    var /** @type {?} */ localCurrentIndex = ((currentIndex)) - addRemoveOffset;\r\n                    if (localMovePreviousIndex != localCurrentIndex) {\r\n                        for (var /** @type {?} */ i = 0; i < localMovePreviousIndex; i++) {\r\n                            var /** @type {?} */ offset = i < moveOffsets.length ? moveOffsets[i] : (moveOffsets[i] = 0);\r\n                            var /** @type {?} */ index = offset + i;\r\n                            if (localCurrentIndex <= index && index < localMovePreviousIndex) {\r\n                                moveOffsets[i] = offset + 1;\r\n                            }\r\n                        }\r\n                        var /** @type {?} */ previousIndex = record.previousIndex;\r\n                        moveOffsets[previousIndex] = localCurrentIndex - localMovePreviousIndex;\r\n                    }\r\n                }\r\n            }\r\n            if (adjPreviousIndex !== currentIndex) {\r\n                fn(record, adjPreviousIndex, currentIndex);\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.forEachPreviousItem = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._previousItHead; record !== null; record = record._nextPrevious) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.forEachAddedItem = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._additionsHead; record !== null; record = record._nextAdded) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.forEachMovedItem = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._movesHead; record !== null; record = record._nextMoved) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.forEachRemovedItem = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.forEachIdentityChange = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} collection\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.diff = function (collection) {\r\n        if (collection == null)\r\n            collection = [];\r\n        if (!isListLikeIterable(collection)) {\r\n            throw new Error(\"Error trying to diff '\" + stringify(collection) + \"'. Only arrays and iterables are allowed\");\r\n        }\r\n        if (this.check(collection)) {\r\n            return this;\r\n        }\r\n        else {\r\n            return null;\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.onDestroy = function () { };\r\n    /**\r\n     * @param {?} collection\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.check = function (collection) {\r\n        var _this = this;\r\n        this._reset();\r\n        var /** @type {?} */ record = this._itHead;\r\n        var /** @type {?} */ mayBeDirty = false;\r\n        var /** @type {?} */ index;\r\n        var /** @type {?} */ item;\r\n        var /** @type {?} */ itemTrackBy;\r\n        if (Array.isArray(collection)) {\r\n            this._length = collection.length;\r\n            for (var /** @type {?} */ index_1 = 0; index_1 < this._length; index_1++) {\r\n                item = collection[index_1];\r\n                itemTrackBy = this._trackByFn(index_1, item);\r\n                if (record === null || !looseIdentical(record.trackById, itemTrackBy)) {\r\n                    record = this._mismatch(record, item, itemTrackBy, index_1);\r\n                    mayBeDirty = true;\r\n                }\r\n                else {\r\n                    if (mayBeDirty) {\r\n                        // TODO(misko): can we limit this to duplicates only?\r\n                        record = this._verifyReinsertion(record, item, itemTrackBy, index_1);\r\n                    }\r\n                    if (!looseIdentical(record.item, item))\r\n                        this._addIdentityChange(record, item);\r\n                }\r\n                record = record._next;\r\n            }\r\n        }\r\n        else {\r\n            index = 0;\r\n            iterateListLike(collection, function (item) {\r\n                itemTrackBy = _this._trackByFn(index, item);\r\n                if (record === null || !looseIdentical(record.trackById, itemTrackBy)) {\r\n                    record = _this._mismatch(record, item, itemTrackBy, index);\r\n                    mayBeDirty = true;\r\n                }\r\n                else {\r\n                    if (mayBeDirty) {\r\n                        // TODO(misko): can we limit this to duplicates only?\r\n                        record = _this._verifyReinsertion(record, item, itemTrackBy, index);\r\n                    }\r\n                    if (!looseIdentical(record.item, item))\r\n                        _this._addIdentityChange(record, item);\r\n                }\r\n                record = record._next;\r\n                index++;\r\n            });\r\n            this._length = index;\r\n        }\r\n        this._truncate(record);\r\n        this._collection = collection;\r\n        return this.isDirty;\r\n    };\r\n    Object.defineProperty(DefaultIterableDiffer.prototype, \"isDirty\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this._additionsHead !== null || this._movesHead !== null ||\r\n                this._removalsHead !== null || this._identityChangesHead !== null;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * Reset the state of the change objects to show no changes. This means set previousKey to\r\n     * currentKey, and clear all of the queues (additions, moves, removals).\r\n     * Set the previousIndexes of moved and added items to their currentIndexes\r\n     * Reset the list of additions, moves and removals\r\n     *\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._reset = function () {\r\n        if (this.isDirty) {\r\n            var /** @type {?} */ record = void 0;\r\n            var /** @type {?} */ nextRecord = void 0;\r\n            for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\r\n                record._nextPrevious = record._next;\r\n            }\r\n            for (record = this._additionsHead; record !== null; record = record._nextAdded) {\r\n                record.previousIndex = record.currentIndex;\r\n            }\r\n            this._additionsHead = this._additionsTail = null;\r\n            for (record = this._movesHead; record !== null; record = nextRecord) {\r\n                record.previousIndex = record.currentIndex;\r\n                nextRecord = record._nextMoved;\r\n            }\r\n            this._movesHead = this._movesTail = null;\r\n            this._removalsHead = this._removalsTail = null;\r\n            this._identityChangesHead = this._identityChangesTail = null;\r\n        }\r\n    };\r\n    /**\r\n     * This is the core function which handles differences between collections.\r\n     *\r\n     * - `record` is the record which we saw at this position last time. If null then it is a new\r\n     *   item.\r\n     * - `item` is the current item in the collection\r\n     * - `index` is the position of the item in the collection\r\n     *\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @param {?} item\r\n     * @param {?} itemTrackBy\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._mismatch = function (record, item, itemTrackBy, index) {\r\n        // The previous record after which we will append the current one.\r\n        var /** @type {?} */ previousRecord;\r\n        if (record === null) {\r\n            previousRecord = ((this._itTail));\r\n        }\r\n        else {\r\n            previousRecord = ((record._prev));\r\n            // Remove the record from the collection since we know it does not match the item.\r\n            this._remove(record);\r\n        }\r\n        // Attempt to see if we have seen the item before.\r\n        record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);\r\n        if (record !== null) {\r\n            // We have seen this before, we need to move it forward in the collection.\r\n            // But first we need to check if identity changed, so we can update in view if necessary\r\n            if (!looseIdentical(record.item, item))\r\n                this._addIdentityChange(record, item);\r\n            this._moveAfter(record, previousRecord, index);\r\n        }\r\n        else {\r\n            // Never seen it, check evicted list.\r\n            record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\r\n            if (record !== null) {\r\n                // It is an item which we have evicted earlier: reinsert it back into the list.\r\n                // But first we need to check if identity changed, so we can update in view if necessary\r\n                if (!looseIdentical(record.item, item))\r\n                    this._addIdentityChange(record, item);\r\n                this._reinsertAfter(record, previousRecord, index);\r\n            }\r\n            else {\r\n                // It is a new item: add it.\r\n                record =\r\n                    this._addAfter(new IterableChangeRecord_(item, itemTrackBy), previousRecord, index);\r\n            }\r\n        }\r\n        return record;\r\n    };\r\n    /**\r\n     * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)\r\n     *\r\n     * Use case: `[a, a]` => `[b, a, a]`\r\n     *\r\n     * If we did not have this check then the insertion of `b` would:\r\n     *   1) evict first `a`\r\n     *   2) insert `b` at `0` index.\r\n     *   3) leave `a` at index `1` as is. <-- this is wrong!\r\n     *   3) reinsert `a` at index 2. <-- this is wrong!\r\n     *\r\n     * The correct behavior is:\r\n     *   1) evict first `a`\r\n     *   2) insert `b` at `0` index.\r\n     *   3) reinsert `a` at index 1.\r\n     *   3) move `a` at from `1` to `2`.\r\n     *\r\n     *\r\n     * Double check that we have not evicted a duplicate item. We need to check if the item type may\r\n     * have already been removed:\r\n     * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted\r\n     * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a\r\n     * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'\r\n     * at the end.\r\n     *\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @param {?} item\r\n     * @param {?} itemTrackBy\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._verifyReinsertion = function (record, item, itemTrackBy, index) {\r\n        var /** @type {?} */ reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\r\n        if (reinsertRecord !== null) {\r\n            record = this._reinsertAfter(reinsertRecord, /** @type {?} */ ((record._prev)), index);\r\n        }\r\n        else if (record.currentIndex != index) {\r\n            record.currentIndex = index;\r\n            this._addToMoves(record, index);\r\n        }\r\n        return record;\r\n    };\r\n    /**\r\n     * Get rid of any excess {\\@link IterableChangeRecord_}s from the previous collection\r\n     *\r\n     * - `record` The first excess {\\@link IterableChangeRecord_}.\r\n     *\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._truncate = function (record) {\r\n        // Anything after that needs to be removed;\r\n        while (record !== null) {\r\n            var /** @type {?} */ nextRecord = record._next;\r\n            this._addToRemovals(this._unlink(record));\r\n            record = nextRecord;\r\n        }\r\n        if (this._unlinkedRecords !== null) {\r\n            this._unlinkedRecords.clear();\r\n        }\r\n        if (this._additionsTail !== null) {\r\n            this._additionsTail._nextAdded = null;\r\n        }\r\n        if (this._movesTail !== null) {\r\n            this._movesTail._nextMoved = null;\r\n        }\r\n        if (this._itTail !== null) {\r\n            this._itTail._next = null;\r\n        }\r\n        if (this._removalsTail !== null) {\r\n            this._removalsTail._nextRemoved = null;\r\n        }\r\n        if (this._identityChangesTail !== null) {\r\n            this._identityChangesTail._nextIdentityChange = null;\r\n        }\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @param {?} prevRecord\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._reinsertAfter = function (record, prevRecord, index) {\r\n        if (this._unlinkedRecords !== null) {\r\n            this._unlinkedRecords.remove(record);\r\n        }\r\n        var /** @type {?} */ prev = record._prevRemoved;\r\n        var /** @type {?} */ next = record._nextRemoved;\r\n        if (prev === null) {\r\n            this._removalsHead = next;\r\n        }\r\n        else {\r\n            prev._nextRemoved = next;\r\n        }\r\n        if (next === null) {\r\n            this._removalsTail = prev;\r\n        }\r\n        else {\r\n            next._prevRemoved = prev;\r\n        }\r\n        this._insertAfter(record, prevRecord, index);\r\n        this._addToMoves(record, index);\r\n        return record;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @param {?} prevRecord\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._moveAfter = function (record, prevRecord, index) {\r\n        this._unlink(record);\r\n        this._insertAfter(record, prevRecord, index);\r\n        this._addToMoves(record, index);\r\n        return record;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @param {?} prevRecord\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._addAfter = function (record, prevRecord, index) {\r\n        this._insertAfter(record, prevRecord, index);\r\n        if (this._additionsTail === null) {\r\n            // todo(vicb)\r\n            // assert(this._additionsHead === null);\r\n            this._additionsTail = this._additionsHead = record;\r\n        }\r\n        else {\r\n            // todo(vicb)\r\n            // assert(_additionsTail._nextAdded === null);\r\n            // assert(record._nextAdded === null);\r\n            this._additionsTail = this._additionsTail._nextAdded = record;\r\n        }\r\n        return record;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @param {?} prevRecord\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._insertAfter = function (record, prevRecord, index) {\r\n        // todo(vicb)\r\n        // assert(record != prevRecord);\r\n        // assert(record._next === null);\r\n        // assert(record._prev === null);\r\n        var /** @type {?} */ next = prevRecord === null ? this._itHead : prevRecord._next;\r\n        // todo(vicb)\r\n        // assert(next != record);\r\n        // assert(prevRecord != record);\r\n        record._next = next;\r\n        record._prev = prevRecord;\r\n        if (next === null) {\r\n            this._itTail = record;\r\n        }\r\n        else {\r\n            next._prev = record;\r\n        }\r\n        if (prevRecord === null) {\r\n            this._itHead = record;\r\n        }\r\n        else {\r\n            prevRecord._next = record;\r\n        }\r\n        if (this._linkedRecords === null) {\r\n            this._linkedRecords = new _DuplicateMap();\r\n        }\r\n        this._linkedRecords.put(record);\r\n        record.currentIndex = index;\r\n        return record;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._remove = function (record) {\r\n        return this._addToRemovals(this._unlink(record));\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._unlink = function (record) {\r\n        if (this._linkedRecords !== null) {\r\n            this._linkedRecords.remove(record);\r\n        }\r\n        var /** @type {?} */ prev = record._prev;\r\n        var /** @type {?} */ next = record._next;\r\n        // todo(vicb)\r\n        // assert((record._prev = null) === null);\r\n        // assert((record._next = null) === null);\r\n        if (prev === null) {\r\n            this._itHead = next;\r\n        }\r\n        else {\r\n            prev._next = next;\r\n        }\r\n        if (next === null) {\r\n            this._itTail = prev;\r\n        }\r\n        else {\r\n            next._prev = prev;\r\n        }\r\n        return record;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @param {?} toIndex\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._addToMoves = function (record, toIndex) {\r\n        // todo(vicb)\r\n        // assert(record._nextMoved === null);\r\n        if (record.previousIndex === toIndex) {\r\n            return record;\r\n        }\r\n        if (this._movesTail === null) {\r\n            // todo(vicb)\r\n            // assert(_movesHead === null);\r\n            this._movesTail = this._movesHead = record;\r\n        }\r\n        else {\r\n            // todo(vicb)\r\n            // assert(_movesTail._nextMoved === null);\r\n            this._movesTail = this._movesTail._nextMoved = record;\r\n        }\r\n        return record;\r\n    };\r\n    /**\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._addToRemovals = function (record) {\r\n        if (this._unlinkedRecords === null) {\r\n            this._unlinkedRecords = new _DuplicateMap();\r\n        }\r\n        this._unlinkedRecords.put(record);\r\n        record.currentIndex = null;\r\n        record._nextRemoved = null;\r\n        if (this._removalsTail === null) {\r\n            // todo(vicb)\r\n            // assert(_removalsHead === null);\r\n            this._removalsTail = this._removalsHead = record;\r\n            record._prevRemoved = null;\r\n        }\r\n        else {\r\n            // todo(vicb)\r\n            // assert(_removalsTail._nextRemoved === null);\r\n            // assert(record._nextRemoved === null);\r\n            record._prevRemoved = this._removalsTail;\r\n            this._removalsTail = this._removalsTail._nextRemoved = record;\r\n        }\r\n        return record;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} record\r\n     * @param {?} item\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype._addIdentityChange = function (record, item) {\r\n        record.item = item;\r\n        if (this._identityChangesTail === null) {\r\n            this._identityChangesTail = this._identityChangesHead = record;\r\n        }\r\n        else {\r\n            this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record;\r\n        }\r\n        return record;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DefaultIterableDiffer.prototype.toString = function () {\r\n        var /** @type {?} */ list = [];\r\n        this.forEachItem(function (record) { return list.push(record); });\r\n        var /** @type {?} */ previous = [];\r\n        this.forEachPreviousItem(function (record) { return previous.push(record); });\r\n        var /** @type {?} */ additions = [];\r\n        this.forEachAddedItem(function (record) { return additions.push(record); });\r\n        var /** @type {?} */ moves = [];\r\n        this.forEachMovedItem(function (record) { return moves.push(record); });\r\n        var /** @type {?} */ removals = [];\r\n        this.forEachRemovedItem(function (record) { return removals.push(record); });\r\n        var /** @type {?} */ identityChanges = [];\r\n        this.forEachIdentityChange(function (record) { return identityChanges.push(record); });\r\n        return 'collection: ' + list.join(', ') + '\\n' +\r\n            'previous: ' + previous.join(', ') + '\\n' +\r\n            'additions: ' + additions.join(', ') + '\\n' +\r\n            'moves: ' + moves.join(', ') + '\\n' +\r\n            'removals: ' + removals.join(', ') + '\\n' +\r\n            'identityChanges: ' + identityChanges.join(', ') + '\\n';\r\n    };\r\n    return DefaultIterableDiffer;\r\n}());\r\n/**\r\n * \\@stable\r\n */\r\nvar IterableChangeRecord_ = (function () {\r\n    /**\r\n     * @param {?} item\r\n     * @param {?} trackById\r\n     */\r\n    function IterableChangeRecord_(item, trackById) {\r\n        this.item = item;\r\n        this.trackById = trackById;\r\n        this.currentIndex = null;\r\n        this.previousIndex = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._nextPrevious = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._prev = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._next = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._prevDup = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._nextDup = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._prevRemoved = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._nextRemoved = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._nextAdded = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._nextMoved = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._nextIdentityChange = null;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    IterableChangeRecord_.prototype.toString = function () {\r\n        return this.previousIndex === this.currentIndex ? stringify(this.item) :\r\n            stringify(this.item) + '[' +\r\n                stringify(this.previousIndex) + '->' + stringify(this.currentIndex) + ']';\r\n    };\r\n    return IterableChangeRecord_;\r\n}());\r\nvar _DuplicateItemRecordList = (function () {\r\n    function _DuplicateItemRecordList() {\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._head = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._tail = null;\r\n    }\r\n    /**\r\n     * Append the record to the list of duplicates.\r\n     *\r\n     * Note: by design all records in the list of duplicates hold the same value in record.item.\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    _DuplicateItemRecordList.prototype.add = function (record) {\r\n        if (this._head === null) {\r\n            this._head = this._tail = record;\r\n            record._nextDup = null;\r\n            record._prevDup = null;\r\n        }\r\n        else {\r\n            ((\r\n            // todo(vicb)\r\n            // assert(record.item ==  _head.item ||\r\n            //       record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);\r\n            this._tail))._nextDup = record;\r\n            record._prevDup = this._tail;\r\n            record._nextDup = null;\r\n            this._tail = record;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} trackById\r\n     * @param {?} afterIndex\r\n     * @return {?}\r\n     */\r\n    _DuplicateItemRecordList.prototype.get = function (trackById, afterIndex) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._head; record !== null; record = record._nextDup) {\r\n            if ((afterIndex === null || afterIndex < record.currentIndex) &&\r\n                looseIdentical(record.trackById, trackById)) {\r\n                return record;\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * Remove one {\\@link IterableChangeRecord_} from the list of duplicates.\r\n     *\r\n     * Returns whether the list of duplicates is empty.\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    _DuplicateItemRecordList.prototype.remove = function (record) {\r\n        // todo(vicb)\r\n        // assert(() {\r\n        //  // verify that the record being removed is in the list.\r\n        //  for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {\r\n        //    if (identical(cursor, record)) return true;\r\n        //  }\r\n        //  return false;\r\n        //});\r\n        var /** @type {?} */ prev = record._prevDup;\r\n        var /** @type {?} */ next = record._nextDup;\r\n        if (prev === null) {\r\n            this._head = next;\r\n        }\r\n        else {\r\n            prev._nextDup = next;\r\n        }\r\n        if (next === null) {\r\n            this._tail = prev;\r\n        }\r\n        else {\r\n            next._prevDup = prev;\r\n        }\r\n        return this._head === null;\r\n    };\r\n    return _DuplicateItemRecordList;\r\n}());\r\nvar _DuplicateMap = (function () {\r\n    function _DuplicateMap() {\r\n        this.map = new Map();\r\n    }\r\n    /**\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    _DuplicateMap.prototype.put = function (record) {\r\n        var /** @type {?} */ key = record.trackById;\r\n        var /** @type {?} */ duplicates = this.map.get(key);\r\n        if (!duplicates) {\r\n            duplicates = new _DuplicateItemRecordList();\r\n            this.map.set(key, duplicates);\r\n        }\r\n        duplicates.add(record);\r\n    };\r\n    /**\r\n     * Retrieve the `value` using key. Because the IterableChangeRecord_ value may be one which we\r\n     * have already iterated over, we use the afterIndex to pretend it is not there.\r\n     *\r\n     * Use case: `[a, b, c, a, a]` if we are at index `3` which is the second `a` then asking if we\r\n     * have any more `a`s needs to return the last `a` not the first or second.\r\n     * @param {?} trackById\r\n     * @param {?} afterIndex\r\n     * @return {?}\r\n     */\r\n    _DuplicateMap.prototype.get = function (trackById, afterIndex) {\r\n        var /** @type {?} */ key = trackById;\r\n        var /** @type {?} */ recordList = this.map.get(key);\r\n        return recordList ? recordList.get(trackById, afterIndex) : null;\r\n    };\r\n    /**\r\n     * Removes a {\\@link IterableChangeRecord_} from the list of duplicates.\r\n     *\r\n     * The list of duplicates also is removed from the map if it gets empty.\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    _DuplicateMap.prototype.remove = function (record) {\r\n        var /** @type {?} */ key = record.trackById;\r\n        var /** @type {?} */ recordList = ((this.map.get(key)));\r\n        // Remove the list of duplicates when it gets empty\r\n        if (recordList.remove(record)) {\r\n            this.map.delete(key);\r\n        }\r\n        return record;\r\n    };\r\n    Object.defineProperty(_DuplicateMap.prototype, \"isEmpty\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.map.size === 0; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _DuplicateMap.prototype.clear = function () { this.map.clear(); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _DuplicateMap.prototype.toString = function () { return '_DuplicateMap(' + stringify(this.map) + ')'; };\r\n    return _DuplicateMap;\r\n}());\r\n/**\r\n * @param {?} item\r\n * @param {?} addRemoveOffset\r\n * @param {?} moveOffsets\r\n * @return {?}\r\n */\r\nfunction getPreviousIndex(item, addRemoveOffset, moveOffsets) {\r\n    var /** @type {?} */ previousIndex = item.previousIndex;\r\n    if (previousIndex === null)\r\n        return previousIndex;\r\n    var /** @type {?} */ moveOffset = 0;\r\n    if (moveOffsets && previousIndex < moveOffsets.length) {\r\n        moveOffset = moveOffsets[previousIndex];\r\n    }\r\n    return previousIndex + addRemoveOffset + moveOffset;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar DefaultKeyValueDifferFactory = (function () {\r\n    function DefaultKeyValueDifferFactory() {\r\n    }\r\n    /**\r\n     * @param {?} obj\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDifferFactory.prototype.supports = function (obj) { return obj instanceof Map || isJsObject(obj); };\r\n    /**\r\n     * @deprecated v4.0.0 - ChangeDetectorRef is not used and is no longer a parameter\r\n     * @template K, V\r\n     * @param {?=} cd\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDifferFactory.prototype.create = function (cd) {\r\n        return new DefaultKeyValueDiffer();\r\n    };\r\n    return DefaultKeyValueDifferFactory;\r\n}());\r\nvar DefaultKeyValueDiffer = (function () {\r\n    function DefaultKeyValueDiffer() {\r\n        this._records = new Map();\r\n        this._mapHead = null;\r\n        this._appendAfter = null;\r\n        this._previousMapHead = null;\r\n        this._changesHead = null;\r\n        this._changesTail = null;\r\n        this._additionsHead = null;\r\n        this._additionsTail = null;\r\n        this._removalsHead = null;\r\n        this._removalsTail = null;\r\n    }\r\n    Object.defineProperty(DefaultKeyValueDiffer.prototype, \"isDirty\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this._additionsHead !== null || this._changesHead !== null ||\r\n                this._removalsHead !== null;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype.forEachItem = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._mapHead; record !== null; record = record._next) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype.forEachPreviousItem = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype.forEachChangedItem = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._changesHead; record !== null; record = record._nextChanged) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype.forEachAddedItem = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._additionsHead; record !== null; record = record._nextAdded) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype.forEachRemovedItem = function (fn) {\r\n        var /** @type {?} */ record;\r\n        for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\r\n            fn(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?=} map\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype.diff = function (map) {\r\n        if (!map) {\r\n            map = new Map();\r\n        }\r\n        else if (!(map instanceof Map || isJsObject(map))) {\r\n            throw new Error(\"Error trying to diff '\" + stringify(map) + \"'. Only maps and objects are allowed\");\r\n        }\r\n        return this.check(map) ? this : null;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype.onDestroy = function () { };\r\n    /**\r\n     * Check the current state of the map vs the previous.\r\n     * The algorithm is optimised for when the keys do no change.\r\n     * @param {?} map\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype.check = function (map) {\r\n        var _this = this;\r\n        this._reset();\r\n        var /** @type {?} */ insertBefore = this._mapHead;\r\n        this._appendAfter = null;\r\n        this._forEach(map, function (value, key) {\r\n            if (insertBefore && insertBefore.key === key) {\r\n                _this._maybeAddToChanges(insertBefore, value);\r\n                _this._appendAfter = insertBefore;\r\n                insertBefore = insertBefore._next;\r\n            }\r\n            else {\r\n                var /** @type {?} */ record = _this._getOrCreateRecordForKey(key, value);\r\n                insertBefore = _this._insertBeforeOrAppend(insertBefore, record);\r\n            }\r\n        });\r\n        // Items remaining at the end of the list have been deleted\r\n        if (insertBefore) {\r\n            if (insertBefore._prev) {\r\n                insertBefore._prev._next = null;\r\n            }\r\n            this._removalsHead = insertBefore;\r\n            for (var /** @type {?} */ record = insertBefore; record !== null; record = record._nextRemoved) {\r\n                if (record === this._mapHead) {\r\n                    this._mapHead = null;\r\n                }\r\n                this._records.delete(record.key);\r\n                record._nextRemoved = record._next;\r\n                record.previousValue = record.currentValue;\r\n                record.currentValue = null;\r\n                record._prev = null;\r\n                record._next = null;\r\n            }\r\n        }\r\n        // Make sure tails have no next records from previous runs\r\n        if (this._changesTail)\r\n            this._changesTail._nextChanged = null;\r\n        if (this._additionsTail)\r\n            this._additionsTail._nextAdded = null;\r\n        return this.isDirty;\r\n    };\r\n    /**\r\n     * Inserts a record before `before` or append at the end of the list when `before` is null.\r\n     *\r\n     * Notes:\r\n     * - This method appends at `this._appendAfter`,\r\n     * - This method updates `this._appendAfter`,\r\n     * - The return value is the new value for the insertion pointer.\r\n     * @param {?} before\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype._insertBeforeOrAppend = function (before, record) {\r\n        if (before) {\r\n            var /** @type {?} */ prev = before._prev;\r\n            record._next = before;\r\n            record._prev = prev;\r\n            before._prev = record;\r\n            if (prev) {\r\n                prev._next = record;\r\n            }\r\n            if (before === this._mapHead) {\r\n                this._mapHead = record;\r\n            }\r\n            this._appendAfter = before;\r\n            return before;\r\n        }\r\n        if (this._appendAfter) {\r\n            this._appendAfter._next = record;\r\n            record._prev = this._appendAfter;\r\n        }\r\n        else {\r\n            this._mapHead = record;\r\n        }\r\n        this._appendAfter = record;\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} key\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype._getOrCreateRecordForKey = function (key, value) {\r\n        if (this._records.has(key)) {\r\n            var /** @type {?} */ record_1 = ((this._records.get(key)));\r\n            this._maybeAddToChanges(record_1, value);\r\n            var /** @type {?} */ prev = record_1._prev;\r\n            var /** @type {?} */ next = record_1._next;\r\n            if (prev) {\r\n                prev._next = next;\r\n            }\r\n            if (next) {\r\n                next._prev = prev;\r\n            }\r\n            record_1._next = null;\r\n            record_1._prev = null;\r\n            return record_1;\r\n        }\r\n        var /** @type {?} */ record = new KeyValueChangeRecord_(key);\r\n        this._records.set(key, record);\r\n        record.currentValue = value;\r\n        this._addToAdditions(record);\r\n        return record;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype._reset = function () {\r\n        if (this.isDirty) {\r\n            var /** @type {?} */ record = void 0;\r\n            // let `_previousMapHead` contain the state of the map before the changes\r\n            this._previousMapHead = this._mapHead;\r\n            for (record = this._previousMapHead; record !== null; record = record._next) {\r\n                record._nextPrevious = record._next;\r\n            }\r\n            // Update `record.previousValue` with the value of the item before the changes\r\n            // We need to update all changed items (that's those which have been added and changed)\r\n            for (record = this._changesHead; record !== null; record = record._nextChanged) {\r\n                record.previousValue = record.currentValue;\r\n            }\r\n            for (record = this._additionsHead; record != null; record = record._nextAdded) {\r\n                record.previousValue = record.currentValue;\r\n            }\r\n            this._changesHead = this._changesTail = null;\r\n            this._additionsHead = this._additionsTail = null;\r\n            this._removalsHead = null;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} record\r\n     * @param {?} newValue\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype._maybeAddToChanges = function (record, newValue) {\r\n        if (!looseIdentical(newValue, record.currentValue)) {\r\n            record.previousValue = record.currentValue;\r\n            record.currentValue = newValue;\r\n            this._addToChanges(record);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype._addToAdditions = function (record) {\r\n        if (this._additionsHead === null) {\r\n            this._additionsHead = this._additionsTail = record;\r\n        }\r\n        else {\r\n            ((this._additionsTail))._nextAdded = record;\r\n            this._additionsTail = record;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype._addToChanges = function (record) {\r\n        if (this._changesHead === null) {\r\n            this._changesHead = this._changesTail = record;\r\n        }\r\n        else {\r\n            ((this._changesTail))._nextChanged = record;\r\n            this._changesTail = record;\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype.toString = function () {\r\n        var /** @type {?} */ items = [];\r\n        var /** @type {?} */ previous = [];\r\n        var /** @type {?} */ changes = [];\r\n        var /** @type {?} */ additions = [];\r\n        var /** @type {?} */ removals = [];\r\n        this.forEachItem(function (r) { return items.push(stringify(r)); });\r\n        this.forEachPreviousItem(function (r) { return previous.push(stringify(r)); });\r\n        this.forEachChangedItem(function (r) { return changes.push(stringify(r)); });\r\n        this.forEachAddedItem(function (r) { return additions.push(stringify(r)); });\r\n        this.forEachRemovedItem(function (r) { return removals.push(stringify(r)); });\r\n        return 'map: ' + items.join(', ') + '\\n' +\r\n            'previous: ' + previous.join(', ') + '\\n' +\r\n            'additions: ' + additions.join(', ') + '\\n' +\r\n            'changes: ' + changes.join(', ') + '\\n' +\r\n            'removals: ' + removals.join(', ') + '\\n';\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @template K, V\r\n     * @param {?} obj\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultKeyValueDiffer.prototype._forEach = function (obj, fn) {\r\n        if (obj instanceof Map) {\r\n            obj.forEach(fn);\r\n        }\r\n        else {\r\n            Object.keys(obj).forEach(function (k) { return fn(obj[k], k); });\r\n        }\r\n    };\r\n    return DefaultKeyValueDiffer;\r\n}());\r\n/**\r\n * \\@stable\r\n */\r\nvar KeyValueChangeRecord_ = (function () {\r\n    /**\r\n     * @param {?} key\r\n     */\r\n    function KeyValueChangeRecord_(key) {\r\n        this.key = key;\r\n        this.previousValue = null;\r\n        this.currentValue = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._nextPrevious = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._next = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._prev = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._nextAdded = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._nextRemoved = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._nextChanged = null;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    KeyValueChangeRecord_.prototype.toString = function () {\r\n        return looseIdentical(this.previousValue, this.currentValue) ?\r\n            stringify(this.key) :\r\n            (stringify(this.key) + '[' + stringify(this.previousValue) + '->' +\r\n                stringify(this.currentValue) + ']');\r\n    };\r\n    return KeyValueChangeRecord_;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.\r\n * \\@stable\r\n */\r\nvar IterableDiffers = (function () {\r\n    /**\r\n     * @param {?} factories\r\n     */\r\n    function IterableDiffers(factories) {\r\n        this.factories = factories;\r\n    }\r\n    /**\r\n     * @param {?} factories\r\n     * @param {?=} parent\r\n     * @return {?}\r\n     */\r\n    IterableDiffers.create = function (factories, parent) {\r\n        if (parent != null) {\r\n            var /** @type {?} */ copied = parent.factories.slice();\r\n            factories = factories.concat(copied);\r\n            return new IterableDiffers(factories);\r\n        }\r\n        else {\r\n            return new IterableDiffers(factories);\r\n        }\r\n    };\r\n    /**\r\n     * Takes an array of {\\@link IterableDifferFactory} and returns a provider used to extend the\r\n     * inherited {\\@link IterableDiffers} instance with the provided factories and return a new\r\n     * {\\@link IterableDiffers} instance.\r\n     *\r\n     * The following example shows how to extend an existing list of factories,\r\n     * which will only be applied to the injector for this component and its children.\r\n     * This step is all that's required to make a new {\\@link IterableDiffer} available.\r\n     *\r\n     * ### Example\r\n     *\r\n     * ```\r\n     * \\@Component({\r\n     *   viewProviders: [\r\n     *     IterableDiffers.extend([new ImmutableListDiffer()])\r\n     *   ]\r\n     * })\r\n     * ```\r\n     * @param {?} factories\r\n     * @return {?}\r\n     */\r\n    IterableDiffers.extend = function (factories) {\r\n        return {\r\n            provide: IterableDiffers,\r\n            useFactory: function (parent) {\r\n                if (!parent) {\r\n                    // Typically would occur when calling IterableDiffers.extend inside of dependencies passed\r\n                    // to\r\n                    // bootstrap(), which would override default pipes instead of extending them.\r\n                    throw new Error('Cannot extend IterableDiffers without a parent injector');\r\n                }\r\n                return IterableDiffers.create(factories, parent);\r\n            },\r\n            // Dependency technically isn't optional, but we can provide a better error message this way.\r\n            deps: [[IterableDiffers, new SkipSelf(), new Optional()]]\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} iterable\r\n     * @return {?}\r\n     */\r\n    IterableDiffers.prototype.find = function (iterable) {\r\n        var /** @type {?} */ factory = this.factories.find(function (f) { return f.supports(iterable); });\r\n        if (factory != null) {\r\n            return factory;\r\n        }\r\n        else {\r\n            throw new Error(\"Cannot find a differ supporting object '\" + iterable + \"' of type '\" + getTypeNameForDebugging(iterable) + \"'\");\r\n        }\r\n    };\r\n    return IterableDiffers;\r\n}());\r\n/**\r\n * @param {?} type\r\n * @return {?}\r\n */\r\nfunction getTypeNameForDebugging(type) {\r\n    return type['name'] || typeof type;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.\r\n * \\@stable\r\n */\r\nvar KeyValueDiffers = (function () {\r\n    /**\r\n     * @param {?} factories\r\n     */\r\n    function KeyValueDiffers(factories) {\r\n        this.factories = factories;\r\n    }\r\n    /**\r\n     * @template S\r\n     * @param {?} factories\r\n     * @param {?=} parent\r\n     * @return {?}\r\n     */\r\n    KeyValueDiffers.create = function (factories, parent) {\r\n        if (parent) {\r\n            var /** @type {?} */ copied = parent.factories.slice();\r\n            factories = factories.concat(copied);\r\n        }\r\n        return new KeyValueDiffers(factories);\r\n    };\r\n    /**\r\n     * Takes an array of {\\@link KeyValueDifferFactory} and returns a provider used to extend the\r\n     * inherited {\\@link KeyValueDiffers} instance with the provided factories and return a new\r\n     * {\\@link KeyValueDiffers} instance.\r\n     *\r\n     * The following example shows how to extend an existing list of factories,\r\n     * which will only be applied to the injector for this component and its children.\r\n     * This step is all that's required to make a new {\\@link KeyValueDiffer} available.\r\n     *\r\n     * ### Example\r\n     *\r\n     * ```\r\n     * \\@Component({\r\n     *   viewProviders: [\r\n     *     KeyValueDiffers.extend([new ImmutableMapDiffer()])\r\n     *   ]\r\n     * })\r\n     * ```\r\n     * @template S\r\n     * @param {?} factories\r\n     * @return {?}\r\n     */\r\n    KeyValueDiffers.extend = function (factories) {\r\n        return {\r\n            provide: KeyValueDiffers,\r\n            useFactory: function (parent) {\r\n                if (!parent) {\r\n                    // Typically would occur when calling KeyValueDiffers.extend inside of dependencies passed\r\n                    // to bootstrap(), which would override default pipes instead of extending them.\r\n                    throw new Error('Cannot extend KeyValueDiffers without a parent injector');\r\n                }\r\n                return KeyValueDiffers.create(factories, parent);\r\n            },\r\n            // Dependency technically isn't optional, but we can provide a better error message this way.\r\n            deps: [[KeyValueDiffers, new SkipSelf(), new Optional()]]\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} kv\r\n     * @return {?}\r\n     */\r\n    KeyValueDiffers.prototype.find = function (kv) {\r\n        var /** @type {?} */ factory = this.factories.find(function (f) { return f.supports(kv); });\r\n        if (factory) {\r\n            return factory;\r\n        }\r\n        throw new Error(\"Cannot find a differ supporting object '\" + kv + \"'\");\r\n    };\r\n    return KeyValueDiffers;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Structural diffing for `Object`s and `Map`s.\r\n */\r\nvar keyValDiff = [new DefaultKeyValueDifferFactory()];\r\n/**\r\n * Structural diffing for `Iterable` types such as `Array`s.\r\n */\r\nvar iterableDiff = [new DefaultIterableDifferFactory()];\r\nvar defaultIterableDiffers = new IterableDiffers(iterableDiff);\r\nvar defaultKeyValueDiffers = new KeyValueDiffers(keyValDiff);\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Change detection enables data binding in Angular.\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @return {?}\r\n */\r\nfunction _reflector() {\r\n    return reflector;\r\n}\r\nvar _CORE_PLATFORM_PROVIDERS = [\r\n    // Set a default platform name for platforms that don't set it explicitly.\r\n    { provide: PLATFORM_ID, useValue: 'unknown' },\r\n    PlatformRef_,\r\n    { provide: PlatformRef, useExisting: PlatformRef_ },\r\n    { provide: Reflector, useFactory: _reflector, deps: [] },\r\n    { provide: ReflectorReader, useExisting: Reflector },\r\n    TestabilityRegistry,\r\n    Console,\r\n];\r\n/**\r\n * This platform has to be included in any other platform\r\n *\r\n * \\@experimental\r\n */\r\nvar platformCore = createPlatformFactory(null, 'core', _CORE_PLATFORM_PROVIDERS);\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@experimental i18n support is experimental.\r\n */\r\nvar LOCALE_ID = new InjectionToken('LocaleId');\r\n/**\r\n * \\@experimental i18n support is experimental.\r\n */\r\nvar TRANSLATIONS = new InjectionToken('Translations');\r\n/**\r\n * \\@experimental i18n support is experimental.\r\n */\r\nvar TRANSLATIONS_FORMAT = new InjectionToken('TranslationsFormat');\r\nvar MissingTranslationStrategy = {};\r\nMissingTranslationStrategy.Error = 0;\r\nMissingTranslationStrategy.Warning = 1;\r\nMissingTranslationStrategy.Ignore = 2;\r\nMissingTranslationStrategy[MissingTranslationStrategy.Error] = \"Error\";\r\nMissingTranslationStrategy[MissingTranslationStrategy.Warning] = \"Warning\";\r\nMissingTranslationStrategy[MissingTranslationStrategy.Ignore] = \"Ignore\";\r\nvar SecurityContext = {};\r\nSecurityContext.NONE = 0;\r\nSecurityContext.HTML = 1;\r\nSecurityContext.STYLE = 2;\r\nSecurityContext.SCRIPT = 3;\r\nSecurityContext.URL = 4;\r\nSecurityContext.RESOURCE_URL = 5;\r\nSecurityContext[SecurityContext.NONE] = \"NONE\";\r\nSecurityContext[SecurityContext.HTML] = \"HTML\";\r\nSecurityContext[SecurityContext.STYLE] = \"STYLE\";\r\nSecurityContext[SecurityContext.SCRIPT] = \"SCRIPT\";\r\nSecurityContext[SecurityContext.URL] = \"URL\";\r\nSecurityContext[SecurityContext.RESOURCE_URL] = \"RESOURCE_URL\";\r\n/**\r\n * Sanitizer is used by the views to sanitize potentially dangerous values.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar Sanitizer = (function () {\r\n    function Sanitizer() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} context\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    Sanitizer.prototype.sanitize = function (context, value) { };\r\n    return Sanitizer;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Node instance data.\r\n *\r\n * We have a separate type per NodeType to save memory\r\n * (TextData | ElementData | ProviderData | PureExpressionData | QueryList<any>)\r\n *\r\n * To keep our code monomorphic,\r\n * we prohibit using `NodeData` directly but enforce the use of accessors (`asElementData`, ...).\r\n * This way, no usage site can get a `NodeData` from view.nodes and then use it for different\r\n * purposes.\r\n */\r\n/**\r\n * Accessor for view.nodes, enforcing that every usage site stays monomorphic.\r\n * @param {?} view\r\n * @param {?} index\r\n * @return {?}\r\n */\r\nfunction asTextData(view, index) {\r\n    return (view.nodes[index]);\r\n}\r\n/**\r\n * Accessor for view.nodes, enforcing that every usage site stays monomorphic.\r\n * @param {?} view\r\n * @param {?} index\r\n * @return {?}\r\n */\r\nfunction asElementData(view, index) {\r\n    return (view.nodes[index]);\r\n}\r\n/**\r\n * Accessor for view.nodes, enforcing that every usage site stays monomorphic.\r\n * @param {?} view\r\n * @param {?} index\r\n * @return {?}\r\n */\r\nfunction asProviderData(view, index) {\r\n    return (view.nodes[index]);\r\n}\r\n/**\r\n * Accessor for view.nodes, enforcing that every usage site stays monomorphic.\r\n * @param {?} view\r\n * @param {?} index\r\n * @return {?}\r\n */\r\nfunction asPureExpressionData(view, index) {\r\n    return (view.nodes[index]);\r\n}\r\n/**\r\n * Accessor for view.nodes, enforcing that every usage site stays monomorphic.\r\n * @param {?} view\r\n * @param {?} index\r\n * @return {?}\r\n */\r\nfunction asQueryList(view, index) {\r\n    return (view.nodes[index]);\r\n}\r\n/**\r\n * @abstract\r\n */\r\nvar DebugContext = (function () {\r\n    function DebugContext() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DebugContext.prototype.view = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DebugContext.prototype.nodeIndex = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DebugContext.prototype.injector = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DebugContext.prototype.component = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DebugContext.prototype.providerTokens = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DebugContext.prototype.references = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DebugContext.prototype.context = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DebugContext.prototype.componentRenderElement = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DebugContext.prototype.renderNode = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} console\r\n     * @param {...?} values\r\n     * @return {?}\r\n     */\r\n    DebugContext.prototype.logError = function (console) {\r\n        var values = [];\r\n        for (var _i = 1; _i < arguments.length; _i++) {\r\n            values[_i - 1] = arguments[_i];\r\n        }\r\n    };\r\n    return DebugContext;\r\n}());\r\n/**\r\n * This object is used to prevent cycles in the source files and to have a place where\r\n * debug mode can hook it. It is lazily filled when `isDevMode` is known.\r\n */\r\nvar Services = {\r\n    setCurrentNode: /** @type {?} */ ((undefined)),\r\n    createRootView: /** @type {?} */ ((undefined)),\r\n    createEmbeddedView: /** @type {?} */ ((undefined)),\r\n    checkAndUpdateView: /** @type {?} */ ((undefined)),\r\n    checkNoChangesView: /** @type {?} */ ((undefined)),\r\n    destroyView: /** @type {?} */ ((undefined)),\r\n    resolveDep: /** @type {?} */ ((undefined)),\r\n    createDebugContext: /** @type {?} */ ((undefined)),\r\n    handleEvent: /** @type {?} */ ((undefined)),\r\n    updateDirectives: /** @type {?} */ ((undefined)),\r\n    updateRenderer: /** @type {?} */ ((undefined)),\r\n    dirtyParentQueries: /** @type {?} */ ((undefined)),\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} context\r\n * @param {?} oldValue\r\n * @param {?} currValue\r\n * @param {?} isFirstCheck\r\n * @return {?}\r\n */\r\nfunction expressionChangedAfterItHasBeenCheckedError(context, oldValue, currValue, isFirstCheck) {\r\n    var /** @type {?} */ msg = \"ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '\" + oldValue + \"'. Current value: '\" + currValue + \"'.\";\r\n    if (isFirstCheck) {\r\n        msg +=\r\n            \" It seems like the view has been created after its parent and its children have been dirty checked.\" +\r\n                \" Has it been created in a change detection hook ?\";\r\n    }\r\n    return viewDebugError(msg, context);\r\n}\r\n/**\r\n * @param {?} err\r\n * @param {?} context\r\n * @return {?}\r\n */\r\nfunction viewWrappedDebugError(err, context) {\r\n    if (!(err instanceof Error)) {\r\n        // errors that are not Error instances don't have a stack,\r\n        // so it is ok to wrap them into a new Error object...\r\n        err = new Error(err.toString());\r\n    }\r\n    _addDebugContext(err, context);\r\n    return err;\r\n}\r\n/**\r\n * @param {?} msg\r\n * @param {?} context\r\n * @return {?}\r\n */\r\nfunction viewDebugError(msg, context) {\r\n    var /** @type {?} */ err = new Error(msg);\r\n    _addDebugContext(err, context);\r\n    return err;\r\n}\r\n/**\r\n * @param {?} err\r\n * @param {?} context\r\n * @return {?}\r\n */\r\nfunction _addDebugContext(err, context) {\r\n    ((err))[ERROR_DEBUG_CONTEXT] = context;\r\n    ((err))[ERROR_LOGGER] = context.logError.bind(context);\r\n}\r\n/**\r\n * @param {?} err\r\n * @return {?}\r\n */\r\nfunction isViewDebugError(err) {\r\n    return !!getDebugContext(err);\r\n}\r\n/**\r\n * @param {?} action\r\n * @return {?}\r\n */\r\nfunction viewDestroyedError(action) {\r\n    return new Error(\"ViewDestroyedError: Attempt to use a destroyed view: \" + action);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar NOOP = function () { };\r\nvar _tokenKeyCache = new Map();\r\n/**\r\n * @param {?} token\r\n * @return {?}\r\n */\r\nfunction tokenKey(token) {\r\n    var /** @type {?} */ key = _tokenKeyCache.get(token);\r\n    if (!key) {\r\n        key = stringify(token) + '_' + _tokenKeyCache.size;\r\n        _tokenKeyCache.set(token, key);\r\n    }\r\n    return key;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeIdx\r\n * @param {?} bindingIdx\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction unwrapValue(view, nodeIdx, bindingIdx, value) {\r\n    if (value instanceof WrappedValue) {\r\n        value = value.wrapped;\r\n        var /** @type {?} */ globalBindingIdx = view.def.nodes[nodeIdx].bindingIndex + bindingIdx;\r\n        var /** @type {?} */ oldValue = view.oldValues[globalBindingIdx];\r\n        if (oldValue instanceof WrappedValue) {\r\n            oldValue = oldValue.wrapped;\r\n        }\r\n        view.oldValues[globalBindingIdx] = new WrappedValue(oldValue);\r\n    }\r\n    return value;\r\n}\r\nvar UNDEFINED_RENDERER_TYPE_ID = '$$undefined';\r\nvar EMPTY_RENDERER_TYPE_ID = '$$empty';\r\n/**\r\n * @param {?} values\r\n * @return {?}\r\n */\r\nfunction createRendererType2(values) {\r\n    return {\r\n        id: UNDEFINED_RENDERER_TYPE_ID,\r\n        styles: values.styles,\r\n        encapsulation: values.encapsulation,\r\n        data: values.data\r\n    };\r\n}\r\nvar _renderCompCount = 0;\r\n/**\r\n * @param {?=} type\r\n * @return {?}\r\n */\r\nfunction resolveRendererType2(type) {\r\n    if (type && type.id === UNDEFINED_RENDERER_TYPE_ID) {\r\n        // first time we see this RendererType2. Initialize it...\r\n        var /** @type {?} */ isFilled = ((type.encapsulation != null && type.encapsulation !== ViewEncapsulation.None) ||\r\n            type.styles.length || Object.keys(type.data).length);\r\n        if (isFilled) {\r\n            type.id = \"c\" + _renderCompCount++;\r\n        }\r\n        else {\r\n            type.id = EMPTY_RENDERER_TYPE_ID;\r\n        }\r\n    }\r\n    if (type && type.id === EMPTY_RENDERER_TYPE_ID) {\r\n        type = null;\r\n    }\r\n    return type || null;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} bindingIdx\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction checkBinding(view, def, bindingIdx, value) {\r\n    var /** @type {?} */ oldValues = view.oldValues;\r\n    if ((view.state & 2 /* FirstCheck */) ||\r\n        !looseIdentical(oldValues[def.bindingIndex + bindingIdx], value)) {\r\n        return true;\r\n    }\r\n    return false;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} bindingIdx\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateBinding(view, def, bindingIdx, value) {\r\n    if (checkBinding(view, def, bindingIdx, value)) {\r\n        view.oldValues[def.bindingIndex + bindingIdx] = value;\r\n        return true;\r\n    }\r\n    return false;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} bindingIdx\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction checkBindingNoChanges(view, def, bindingIdx, value) {\r\n    var /** @type {?} */ oldValue = view.oldValues[def.bindingIndex + bindingIdx];\r\n    if ((view.state & 1 /* BeforeFirstCheck */) || !devModeEqual(oldValue, value)) {\r\n        throw expressionChangedAfterItHasBeenCheckedError(Services.createDebugContext(view, def.index), oldValue, value, (view.state & 1 /* BeforeFirstCheck */) !== 0);\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction markParentViewsForCheck(view) {\r\n    var /** @type {?} */ currView = view;\r\n    while (currView) {\r\n        if (currView.def.flags & 2 /* OnPush */) {\r\n            currView.state |= 8 /* ChecksEnabled */;\r\n        }\r\n        currView = currView.viewContainerParent || currView.parent;\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} endView\r\n * @return {?}\r\n */\r\nfunction markParentViewsForCheckProjectedViews(view, endView) {\r\n    var /** @type {?} */ currView = view;\r\n    while (currView && currView !== endView) {\r\n        currView.state |= 64 /* CheckProjectedViews */;\r\n        currView = currView.viewContainerParent || currView.parent;\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeIndex\r\n * @param {?} eventName\r\n * @param {?} event\r\n * @return {?}\r\n */\r\nfunction dispatchEvent(view, nodeIndex, eventName, event) {\r\n    var /** @type {?} */ nodeDef = view.def.nodes[nodeIndex];\r\n    var /** @type {?} */ startView = nodeDef.flags & 33554432 /* ComponentView */ ? asElementData(view, nodeIndex).componentView : view;\r\n    markParentViewsForCheck(startView);\r\n    return Services.handleEvent(view, nodeIndex, eventName, event);\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction declaredViewContainer(view) {\r\n    if (view.parent) {\r\n        var /** @type {?} */ parentView = view.parent;\r\n        return asElementData(parentView, /** @type {?} */ ((view.parentNodeDef)).index);\r\n    }\r\n    return null;\r\n}\r\n/**\r\n * for component views, this is the host element.\r\n * for embedded views, this is the index of the parent node\r\n * that contains the view container.\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction viewParentEl(view) {\r\n    var /** @type {?} */ parentView = view.parent;\r\n    if (parentView) {\r\n        return ((view.parentNodeDef)).parent;\r\n    }\r\n    else {\r\n        return null;\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction renderNode(view, def) {\r\n    switch (def.flags & 201347067 /* Types */) {\r\n        case 1 /* TypeElement */:\r\n            return asElementData(view, def.index).renderElement;\r\n        case 2 /* TypeText */:\r\n            return asTextData(view, def.index).renderText;\r\n    }\r\n}\r\n/**\r\n * @param {?} target\r\n * @param {?} name\r\n * @return {?}\r\n */\r\nfunction elementEventFullName(target, name) {\r\n    return target ? target + \":\" + name : name;\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction isComponentView(view) {\r\n    return !!view.parent && !!(((view.parentNodeDef)).flags & 32768 /* Component */);\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction isEmbeddedView(view) {\r\n    return !!view.parent && !(((view.parentNodeDef)).flags & 32768 /* Component */);\r\n}\r\n/**\r\n * @param {?} queryId\r\n * @return {?}\r\n */\r\nfunction filterQueryId(queryId) {\r\n    return 1 << (queryId % 32);\r\n}\r\n/**\r\n * @param {?} matchedQueriesDsl\r\n * @return {?}\r\n */\r\nfunction splitMatchedQueriesDsl(matchedQueriesDsl) {\r\n    var /** @type {?} */ matchedQueries = {};\r\n    var /** @type {?} */ matchedQueryIds = 0;\r\n    var /** @type {?} */ references = {};\r\n    if (matchedQueriesDsl) {\r\n        matchedQueriesDsl.forEach(function (_a) {\r\n            var queryId = _a[0], valueType = _a[1];\r\n            if (typeof queryId === 'number') {\r\n                matchedQueries[queryId] = valueType;\r\n                matchedQueryIds |= filterQueryId(queryId);\r\n            }\r\n            else {\r\n                references[queryId] = valueType;\r\n            }\r\n        });\r\n    }\r\n    return { matchedQueries: matchedQueries, references: references, matchedQueryIds: matchedQueryIds };\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} renderHost\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction getParentRenderElement(view, renderHost, def) {\r\n    var /** @type {?} */ renderParent = def.renderParent;\r\n    if (renderParent) {\r\n        if ((renderParent.flags & 1 /* TypeElement */) === 0 ||\r\n            (renderParent.flags & 33554432 /* ComponentView */) === 0 ||\r\n            (((renderParent.element)).componentRendererType && ((((renderParent.element)).componentRendererType)).encapsulation ===\r\n                ViewEncapsulation.Native)) {\r\n            // only children of non components, or children of components with native encapsulation should\r\n            // be attached.\r\n            return asElementData(view, /** @type {?} */ ((def.renderParent)).index).renderElement;\r\n        }\r\n    }\r\n    else {\r\n        return renderHost;\r\n    }\r\n}\r\nvar VIEW_DEFINITION_CACHE = new WeakMap();\r\n/**\r\n * @param {?} factory\r\n * @return {?}\r\n */\r\nfunction resolveViewDefinition(factory) {\r\n    var /** @type {?} */ value = ((VIEW_DEFINITION_CACHE.get(factory)));\r\n    if (!value) {\r\n        value = factory(function () { return NOOP; });\r\n        value.factory = factory;\r\n        VIEW_DEFINITION_CACHE.set(factory, value);\r\n    }\r\n    return value;\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction rootRenderNodes(view) {\r\n    var /** @type {?} */ renderNodes = [];\r\n    visitRootRenderNodes(view, 0 /* Collect */, undefined, undefined, renderNodes);\r\n    return renderNodes;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} action\r\n * @param {?} parentNode\r\n * @param {?} nextSibling\r\n * @param {?=} target\r\n * @return {?}\r\n */\r\nfunction visitRootRenderNodes(view, action, parentNode, nextSibling, target) {\r\n    // We need to re-compute the parent node in case the nodes have been moved around manually\r\n    if (action === 3 /* RemoveChild */) {\r\n        parentNode = view.renderer.parentNode(renderNode(view, /** @type {?} */ ((view.def.lastRenderRootNode))));\r\n    }\r\n    visitSiblingRenderNodes(view, action, 0, view.def.nodes.length - 1, parentNode, nextSibling, target);\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} action\r\n * @param {?} startIndex\r\n * @param {?} endIndex\r\n * @param {?} parentNode\r\n * @param {?} nextSibling\r\n * @param {?=} target\r\n * @return {?}\r\n */\r\nfunction visitSiblingRenderNodes(view, action, startIndex, endIndex, parentNode, nextSibling, target) {\r\n    for (var /** @type {?} */ i = startIndex; i <= endIndex; i++) {\r\n        var /** @type {?} */ nodeDef = view.def.nodes[i];\r\n        if (nodeDef.flags & (1 /* TypeElement */ | 2 /* TypeText */ | 8 /* TypeNgContent */)) {\r\n            visitRenderNode(view, nodeDef, action, parentNode, nextSibling, target);\r\n        }\r\n        // jump to next sibling\r\n        i += nodeDef.childCount;\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} ngContentIndex\r\n * @param {?} action\r\n * @param {?} parentNode\r\n * @param {?} nextSibling\r\n * @param {?=} target\r\n * @return {?}\r\n */\r\nfunction visitProjectedRenderNodes(view, ngContentIndex, action, parentNode, nextSibling, target) {\r\n    var /** @type {?} */ compView = view;\r\n    while (compView && !isComponentView(compView)) {\r\n        compView = compView.parent;\r\n    }\r\n    var /** @type {?} */ hostView = ((compView)).parent;\r\n    var /** @type {?} */ hostElDef = viewParentEl(/** @type {?} */ ((compView)));\r\n    var /** @type {?} */ startIndex = ((hostElDef)).index + 1;\r\n    var /** @type {?} */ endIndex = ((hostElDef)).index + ((hostElDef)).childCount;\r\n    for (var /** @type {?} */ i = startIndex; i <= endIndex; i++) {\r\n        var /** @type {?} */ nodeDef = ((hostView)).def.nodes[i];\r\n        if (nodeDef.ngContentIndex === ngContentIndex) {\r\n            visitRenderNode(/** @type {?} */ ((hostView)), nodeDef, action, parentNode, nextSibling, target);\r\n        }\r\n        // jump to next sibling\r\n        i += nodeDef.childCount;\r\n    }\r\n    if (!((hostView)).parent) {\r\n        // a root view\r\n        var /** @type {?} */ projectedNodes = view.root.projectableNodes[ngContentIndex];\r\n        if (projectedNodes) {\r\n            for (var /** @type {?} */ i = 0; i < projectedNodes.length; i++) {\r\n                execRenderNodeAction(view, projectedNodes[i], action, parentNode, nextSibling, target);\r\n            }\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?} action\r\n * @param {?} parentNode\r\n * @param {?} nextSibling\r\n * @param {?=} target\r\n * @return {?}\r\n */\r\nfunction visitRenderNode(view, nodeDef, action, parentNode, nextSibling, target) {\r\n    if (nodeDef.flags & 8 /* TypeNgContent */) {\r\n        visitProjectedRenderNodes(view, /** @type {?} */ ((nodeDef.ngContent)).index, action, parentNode, nextSibling, target);\r\n    }\r\n    else {\r\n        var /** @type {?} */ rn = renderNode(view, nodeDef);\r\n        if (action === 3 /* RemoveChild */ && (nodeDef.flags & 33554432 /* ComponentView */) &&\r\n            (nodeDef.bindingFlags & 48 /* CatSyntheticProperty */)) {\r\n            // Note: we might need to do both actions.\r\n            if (nodeDef.bindingFlags & (16 /* SyntheticProperty */)) {\r\n                execRenderNodeAction(view, rn, action, parentNode, nextSibling, target);\r\n            }\r\n            if (nodeDef.bindingFlags & (32 /* SyntheticHostProperty */)) {\r\n                var /** @type {?} */ compView = asElementData(view, nodeDef.index).componentView;\r\n                execRenderNodeAction(compView, rn, action, parentNode, nextSibling, target);\r\n            }\r\n        }\r\n        else {\r\n            execRenderNodeAction(view, rn, action, parentNode, nextSibling, target);\r\n        }\r\n        if (nodeDef.flags & 16777216 /* EmbeddedViews */) {\r\n            var /** @type {?} */ embeddedViews = ((asElementData(view, nodeDef.index).viewContainer))._embeddedViews;\r\n            for (var /** @type {?} */ k = 0; k < embeddedViews.length; k++) {\r\n                visitRootRenderNodes(embeddedViews[k], action, parentNode, nextSibling, target);\r\n            }\r\n        }\r\n        if (nodeDef.flags & 1 /* TypeElement */ && !((nodeDef.element)).name) {\r\n            visitSiblingRenderNodes(view, action, nodeDef.index + 1, nodeDef.index + nodeDef.childCount, parentNode, nextSibling, target);\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} renderNode\r\n * @param {?} action\r\n * @param {?} parentNode\r\n * @param {?} nextSibling\r\n * @param {?=} target\r\n * @return {?}\r\n */\r\nfunction execRenderNodeAction(view, renderNode, action, parentNode, nextSibling, target) {\r\n    var /** @type {?} */ renderer = view.renderer;\r\n    switch (action) {\r\n        case 1 /* AppendChild */:\r\n            renderer.appendChild(parentNode, renderNode);\r\n            break;\r\n        case 2 /* InsertBefore */:\r\n            renderer.insertBefore(parentNode, renderNode, nextSibling);\r\n            break;\r\n        case 3 /* RemoveChild */:\r\n            renderer.removeChild(parentNode, renderNode);\r\n            break;\r\n        case 0 /* Collect */:\r\n            ((target)).push(renderNode);\r\n            break;\r\n    }\r\n}\r\nvar NS_PREFIX_RE = /^:([^:]+):(.+)$/;\r\n/**\r\n * @param {?} name\r\n * @return {?}\r\n */\r\nfunction splitNamespace(name) {\r\n    if (name[0] === ':') {\r\n        var /** @type {?} */ match = ((name.match(NS_PREFIX_RE)));\r\n        return [match[1], match[2]];\r\n    }\r\n    return ['', name];\r\n}\r\n/**\r\n * @param {?} bindings\r\n * @return {?}\r\n */\r\nfunction calcBindingFlags(bindings) {\r\n    var /** @type {?} */ flags = 0;\r\n    for (var /** @type {?} */ i = 0; i < bindings.length; i++) {\r\n        flags |= bindings[i].flags;\r\n    }\r\n    return flags;\r\n}\r\n/**\r\n * @param {?} valueCount\r\n * @param {?} constAndInterp\r\n * @return {?}\r\n */\r\nfunction interpolate(valueCount, constAndInterp) {\r\n    var /** @type {?} */ result = '';\r\n    for (var /** @type {?} */ i = 0; i < valueCount * 2; i = i + 2) {\r\n        result = result + constAndInterp[i] + _toStringWithNull(constAndInterp[i + 1]);\r\n    }\r\n    return result + constAndInterp[valueCount * 2];\r\n}\r\n/**\r\n * @param {?} valueCount\r\n * @param {?} c0\r\n * @param {?} a1\r\n * @param {?} c1\r\n * @param {?=} a2\r\n * @param {?=} c2\r\n * @param {?=} a3\r\n * @param {?=} c3\r\n * @param {?=} a4\r\n * @param {?=} c4\r\n * @param {?=} a5\r\n * @param {?=} c5\r\n * @param {?=} a6\r\n * @param {?=} c6\r\n * @param {?=} a7\r\n * @param {?=} c7\r\n * @param {?=} a8\r\n * @param {?=} c8\r\n * @param {?=} a9\r\n * @param {?=} c9\r\n * @return {?}\r\n */\r\nfunction inlineInterpolate(valueCount, c0, a1, c1, a2, c2, a3, c3, a4, c4, a5, c5, a6, c6, a7, c7, a8, c8, a9, c9) {\r\n    switch (valueCount) {\r\n        case 1:\r\n            return c0 + _toStringWithNull(a1) + c1;\r\n        case 2:\r\n            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2;\r\n        case 3:\r\n            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n                c3;\r\n        case 4:\r\n            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n                c3 + _toStringWithNull(a4) + c4;\r\n        case 5:\r\n            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n                c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5;\r\n        case 6:\r\n            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n                c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) + c6;\r\n        case 7:\r\n            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n                c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +\r\n                c6 + _toStringWithNull(a7) + c7;\r\n        case 8:\r\n            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n                c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +\r\n                c6 + _toStringWithNull(a7) + c7 + _toStringWithNull(a8) + c8;\r\n        case 9:\r\n            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n                c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +\r\n                c6 + _toStringWithNull(a7) + c7 + _toStringWithNull(a8) + c8 + _toStringWithNull(a9) + c9;\r\n        default:\r\n            throw new Error(\"Does not support more than 9 expressions\");\r\n    }\r\n}\r\n/**\r\n * @param {?} v\r\n * @return {?}\r\n */\r\nfunction _toStringWithNull(v) {\r\n    return v != null ? v.toString() : '';\r\n}\r\nvar EMPTY_ARRAY = [];\r\nvar EMPTY_MAP = {};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} flags\r\n * @param {?} matchedQueriesDsl\r\n * @param {?} ngContentIndex\r\n * @param {?} childCount\r\n * @param {?=} handleEvent\r\n * @param {?=} templateFactory\r\n * @return {?}\r\n */\r\nfunction anchorDef(flags, matchedQueriesDsl, ngContentIndex, childCount, handleEvent, templateFactory) {\r\n    flags |= 1 /* TypeElement */;\r\n    var _a = splitMatchedQueriesDsl(matchedQueriesDsl), matchedQueries = _a.matchedQueries, references = _a.references, matchedQueryIds = _a.matchedQueryIds;\r\n    var /** @type {?} */ template = templateFactory ? resolveViewDefinition(templateFactory) : null;\r\n    return {\r\n        // will bet set by the view definition\r\n        index: -1,\r\n        parent: null,\r\n        renderParent: null,\r\n        bindingIndex: -1,\r\n        outputIndex: -1,\r\n        // regular values\r\n        flags: flags,\r\n        childFlags: 0,\r\n        directChildFlags: 0,\r\n        childMatchedQueries: 0, matchedQueries: matchedQueries, matchedQueryIds: matchedQueryIds, references: references, ngContentIndex: ngContentIndex, childCount: childCount,\r\n        bindings: [],\r\n        bindingFlags: 0,\r\n        outputs: [],\r\n        element: {\r\n            ns: null,\r\n            name: null,\r\n            attrs: null, template: template,\r\n            componentProvider: null,\r\n            componentView: null,\r\n            componentRendererType: null,\r\n            publicProviders: null,\r\n            allProviders: null,\r\n            handleEvent: handleEvent || NOOP\r\n        },\r\n        provider: null,\r\n        text: null,\r\n        query: null,\r\n        ngContent: null\r\n    };\r\n}\r\n/**\r\n * @param {?} flags\r\n * @param {?} matchedQueriesDsl\r\n * @param {?} ngContentIndex\r\n * @param {?} childCount\r\n * @param {?} namespaceAndName\r\n * @param {?=} fixedAttrs\r\n * @param {?=} bindings\r\n * @param {?=} outputs\r\n * @param {?=} handleEvent\r\n * @param {?=} componentView\r\n * @param {?=} componentRendererType\r\n * @return {?}\r\n */\r\nfunction elementDef(flags, matchedQueriesDsl, ngContentIndex, childCount, namespaceAndName, fixedAttrs, bindings, outputs, handleEvent, componentView, componentRendererType) {\r\n    if (fixedAttrs === void 0) { fixedAttrs = []; }\r\n    if (!handleEvent) {\r\n        handleEvent = NOOP;\r\n    }\r\n    var _a = splitMatchedQueriesDsl(matchedQueriesDsl), matchedQueries = _a.matchedQueries, references = _a.references, matchedQueryIds = _a.matchedQueryIds;\r\n    var /** @type {?} */ ns = ((null));\r\n    var /** @type {?} */ name = ((null));\r\n    if (namespaceAndName) {\r\n        _b = splitNamespace(namespaceAndName), ns = _b[0], name = _b[1];\r\n    }\r\n    bindings = bindings || [];\r\n    var /** @type {?} */ bindingDefs = new Array(bindings.length);\r\n    for (var /** @type {?} */ i = 0; i < bindings.length; i++) {\r\n        var _c = bindings[i], bindingFlags = _c[0], namespaceAndName_1 = _c[1], suffixOrSecurityContext = _c[2];\r\n        var _d = splitNamespace(namespaceAndName_1), ns_1 = _d[0], name_1 = _d[1];\r\n        var /** @type {?} */ securityContext = ((undefined));\r\n        var /** @type {?} */ suffix = ((undefined));\r\n        switch (bindingFlags & 15 /* Types */) {\r\n            case 4 /* TypeElementStyle */:\r\n                suffix = (suffixOrSecurityContext);\r\n                break;\r\n            case 1 /* TypeElementAttribute */:\r\n            case 8 /* TypeProperty */:\r\n                securityContext = (suffixOrSecurityContext);\r\n                break;\r\n        }\r\n        bindingDefs[i] =\r\n            { flags: bindingFlags, ns: ns_1, name: name_1, nonMinifiedName: name_1, securityContext: securityContext, suffix: suffix };\r\n    }\r\n    outputs = outputs || [];\r\n    var /** @type {?} */ outputDefs = new Array(outputs.length);\r\n    for (var /** @type {?} */ i = 0; i < outputs.length; i++) {\r\n        var _e = outputs[i], target = _e[0], eventName = _e[1];\r\n        outputDefs[i] = {\r\n            type: 0 /* ElementOutput */,\r\n            target: /** @type {?} */ (target), eventName: eventName,\r\n            propName: null\r\n        };\r\n    }\r\n    fixedAttrs = fixedAttrs || [];\r\n    var /** @type {?} */ attrs = (fixedAttrs.map(function (_a) {\r\n        var namespaceAndName = _a[0], value = _a[1];\r\n        var _b = splitNamespace(namespaceAndName), ns = _b[0], name = _b[1];\r\n        return [ns, name, value];\r\n    }));\r\n    componentRendererType = resolveRendererType2(componentRendererType);\r\n    if (componentView) {\r\n        flags |= 33554432 /* ComponentView */;\r\n    }\r\n    flags |= 1 /* TypeElement */;\r\n    return {\r\n        // will bet set by the view definition\r\n        index: -1,\r\n        parent: null,\r\n        renderParent: null,\r\n        bindingIndex: -1,\r\n        outputIndex: -1,\r\n        // regular values\r\n        flags: flags,\r\n        childFlags: 0,\r\n        directChildFlags: 0,\r\n        childMatchedQueries: 0, matchedQueries: matchedQueries, matchedQueryIds: matchedQueryIds, references: references, ngContentIndex: ngContentIndex, childCount: childCount,\r\n        bindings: bindingDefs,\r\n        bindingFlags: calcBindingFlags(bindingDefs),\r\n        outputs: outputDefs,\r\n        element: {\r\n            ns: ns,\r\n            name: name,\r\n            attrs: attrs,\r\n            template: null,\r\n            // will bet set by the view definition\r\n            componentProvider: null,\r\n            componentView: componentView || null,\r\n            componentRendererType: componentRendererType,\r\n            publicProviders: null,\r\n            allProviders: null,\r\n            handleEvent: handleEvent || NOOP,\r\n        },\r\n        provider: null,\r\n        text: null,\r\n        query: null,\r\n        ngContent: null\r\n    };\r\n    var _b;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} renderHost\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction createElement(view, renderHost, def) {\r\n    var /** @type {?} */ elDef = ((def.element));\r\n    var /** @type {?} */ rootSelectorOrNode = view.root.selectorOrNode;\r\n    var /** @type {?} */ renderer = view.renderer;\r\n    var /** @type {?} */ el;\r\n    if (view.parent || !rootSelectorOrNode) {\r\n        if (elDef.name) {\r\n            el = renderer.createElement(elDef.name, elDef.ns);\r\n        }\r\n        else {\r\n            el = renderer.createComment('');\r\n        }\r\n        var /** @type {?} */ parentEl = getParentRenderElement(view, renderHost, def);\r\n        if (parentEl) {\r\n            renderer.appendChild(parentEl, el);\r\n        }\r\n    }\r\n    else {\r\n        el = renderer.selectRootElement(rootSelectorOrNode);\r\n    }\r\n    if (elDef.attrs) {\r\n        for (var /** @type {?} */ i = 0; i < elDef.attrs.length; i++) {\r\n            var _a = elDef.attrs[i], ns = _a[0], name = _a[1], value = _a[2];\r\n            renderer.setAttribute(el, name, value, ns);\r\n        }\r\n    }\r\n    return el;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} compView\r\n * @param {?} def\r\n * @param {?} el\r\n * @return {?}\r\n */\r\nfunction listenToElementOutputs(view, compView, def, el) {\r\n    for (var /** @type {?} */ i = 0; i < def.outputs.length; i++) {\r\n        var /** @type {?} */ output = def.outputs[i];\r\n        var /** @type {?} */ handleEventClosure = renderEventHandlerClosure(view, def.index, elementEventFullName(output.target, output.eventName));\r\n        var /** @type {?} */ listenTarget = output.target;\r\n        var /** @type {?} */ listenerView = view;\r\n        if (output.target === 'component') {\r\n            listenTarget = null;\r\n            listenerView = compView;\r\n        }\r\n        var /** @type {?} */ disposable = (listenerView.renderer.listen(listenTarget || el, output.eventName, handleEventClosure)); /** @type {?} */\r\n        ((view.disposables))[def.outputIndex + i] = disposable;\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} index\r\n * @param {?} eventName\r\n * @return {?}\r\n */\r\nfunction renderEventHandlerClosure(view, index, eventName) {\r\n    return function (event) {\r\n        try {\r\n            return dispatchEvent(view, index, eventName, event);\r\n        }\r\n        catch (e) {\r\n            // Attention: Don't rethrow, to keep in sync with directive events.\r\n            view.root.errorHandler.handleError(e);\r\n        }\r\n    };\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} v0\r\n * @param {?} v1\r\n * @param {?} v2\r\n * @param {?} v3\r\n * @param {?} v4\r\n * @param {?} v5\r\n * @param {?} v6\r\n * @param {?} v7\r\n * @param {?} v8\r\n * @param {?} v9\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateElementInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\r\n    var /** @type {?} */ bindLen = def.bindings.length;\r\n    var /** @type {?} */ changed = false;\r\n    if (bindLen > 0 && checkAndUpdateElementValue(view, def, 0, v0))\r\n        changed = true;\r\n    if (bindLen > 1 && checkAndUpdateElementValue(view, def, 1, v1))\r\n        changed = true;\r\n    if (bindLen > 2 && checkAndUpdateElementValue(view, def, 2, v2))\r\n        changed = true;\r\n    if (bindLen > 3 && checkAndUpdateElementValue(view, def, 3, v3))\r\n        changed = true;\r\n    if (bindLen > 4 && checkAndUpdateElementValue(view, def, 4, v4))\r\n        changed = true;\r\n    if (bindLen > 5 && checkAndUpdateElementValue(view, def, 5, v5))\r\n        changed = true;\r\n    if (bindLen > 6 && checkAndUpdateElementValue(view, def, 6, v6))\r\n        changed = true;\r\n    if (bindLen > 7 && checkAndUpdateElementValue(view, def, 7, v7))\r\n        changed = true;\r\n    if (bindLen > 8 && checkAndUpdateElementValue(view, def, 8, v8))\r\n        changed = true;\r\n    if (bindLen > 9 && checkAndUpdateElementValue(view, def, 9, v9))\r\n        changed = true;\r\n    return changed;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} values\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateElementDynamic(view, def, values) {\r\n    var /** @type {?} */ changed = false;\r\n    for (var /** @type {?} */ i = 0; i < values.length; i++) {\r\n        if (checkAndUpdateElementValue(view, def, i, values[i]))\r\n            changed = true;\r\n    }\r\n    return changed;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} bindingIdx\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateElementValue(view, def, bindingIdx, value) {\r\n    if (!checkAndUpdateBinding(view, def, bindingIdx, value)) {\r\n        return false;\r\n    }\r\n    var /** @type {?} */ binding = def.bindings[bindingIdx];\r\n    var /** @type {?} */ elData = asElementData(view, def.index);\r\n    var /** @type {?} */ renderNode$$1 = elData.renderElement;\r\n    var /** @type {?} */ name = ((binding.name));\r\n    switch (binding.flags & 15 /* Types */) {\r\n        case 1 /* TypeElementAttribute */:\r\n            setElementAttribute(view, binding, renderNode$$1, binding.ns, name, value);\r\n            break;\r\n        case 2 /* TypeElementClass */:\r\n            setElementClass(view, renderNode$$1, name, value);\r\n            break;\r\n        case 4 /* TypeElementStyle */:\r\n            setElementStyle(view, binding, renderNode$$1, name, value);\r\n            break;\r\n        case 8 /* TypeProperty */:\r\n            var /** @type {?} */ bindView = (def.flags & 33554432 /* ComponentView */ &&\r\n                binding.flags & 32 /* SyntheticHostProperty */) ?\r\n                elData.componentView :\r\n                view;\r\n            setElementProperty(bindView, binding, renderNode$$1, name, value);\r\n            break;\r\n    }\r\n    return true;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} binding\r\n * @param {?} renderNode\r\n * @param {?} ns\r\n * @param {?} name\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction setElementAttribute(view, binding, renderNode$$1, ns, name, value) {\r\n    var /** @type {?} */ securityContext = binding.securityContext;\r\n    var /** @type {?} */ renderValue = securityContext ? view.root.sanitizer.sanitize(securityContext, value) : value;\r\n    renderValue = renderValue != null ? renderValue.toString() : null;\r\n    var /** @type {?} */ renderer = view.renderer;\r\n    if (value != null) {\r\n        renderer.setAttribute(renderNode$$1, name, renderValue, ns);\r\n    }\r\n    else {\r\n        renderer.removeAttribute(renderNode$$1, name, ns);\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} renderNode\r\n * @param {?} name\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction setElementClass(view, renderNode$$1, name, value) {\r\n    var /** @type {?} */ renderer = view.renderer;\r\n    if (value) {\r\n        renderer.addClass(renderNode$$1, name);\r\n    }\r\n    else {\r\n        renderer.removeClass(renderNode$$1, name);\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} binding\r\n * @param {?} renderNode\r\n * @param {?} name\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction setElementStyle(view, binding, renderNode$$1, name, value) {\r\n    var /** @type {?} */ renderValue = view.root.sanitizer.sanitize(SecurityContext.STYLE, /** @type {?} */ (value));\r\n    if (renderValue != null) {\r\n        renderValue = renderValue.toString();\r\n        var /** @type {?} */ unit = binding.suffix;\r\n        if (unit != null) {\r\n            renderValue = renderValue + unit;\r\n        }\r\n    }\r\n    else {\r\n        renderValue = null;\r\n    }\r\n    var /** @type {?} */ renderer = view.renderer;\r\n    if (renderValue != null) {\r\n        renderer.setStyle(renderNode$$1, name, renderValue);\r\n    }\r\n    else {\r\n        renderer.removeStyle(renderNode$$1, name);\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} binding\r\n * @param {?} renderNode\r\n * @param {?} name\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction setElementProperty(view, binding, renderNode$$1, name, value) {\r\n    var /** @type {?} */ securityContext = binding.securityContext;\r\n    var /** @type {?} */ renderValue = securityContext ? view.root.sanitizer.sanitize(securityContext, value) : value;\r\n    view.renderer.setProperty(renderNode$$1, name, renderValue);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} ngContentIndex\r\n * @param {?} index\r\n * @return {?}\r\n */\r\nfunction ngContentDef(ngContentIndex, index) {\r\n    return {\r\n        // will bet set by the view definition\r\n        index: -1,\r\n        parent: null,\r\n        renderParent: null,\r\n        bindingIndex: -1,\r\n        outputIndex: -1,\r\n        // regular values\r\n        flags: 8 /* TypeNgContent */,\r\n        childFlags: 0,\r\n        directChildFlags: 0,\r\n        childMatchedQueries: 0,\r\n        matchedQueries: {},\r\n        matchedQueryIds: 0,\r\n        references: {}, ngContentIndex: ngContentIndex,\r\n        childCount: 0,\r\n        bindings: [],\r\n        bindingFlags: 0,\r\n        outputs: [],\r\n        element: null,\r\n        provider: null,\r\n        text: null,\r\n        query: null,\r\n        ngContent: { index: index }\r\n    };\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} renderHost\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction appendNgContent(view, renderHost, def) {\r\n    var /** @type {?} */ parentEl = getParentRenderElement(view, renderHost, def);\r\n    if (!parentEl) {\r\n        // Nothing to do if there is no parent element.\r\n        return;\r\n    }\r\n    var /** @type {?} */ ngContentIndex = ((def.ngContent)).index;\r\n    visitProjectedRenderNodes(view, ngContentIndex, 1 /* AppendChild */, parentEl, null, undefined);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} parentView\r\n * @param {?} elementData\r\n * @param {?} viewIndex\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction attachEmbeddedView(parentView, elementData, viewIndex, view) {\r\n    var /** @type {?} */ embeddedViews = ((elementData.viewContainer))._embeddedViews;\r\n    if (viewIndex === null || viewIndex === undefined) {\r\n        viewIndex = embeddedViews.length;\r\n    }\r\n    view.viewContainerParent = parentView;\r\n    addToArray(embeddedViews, /** @type {?} */ ((viewIndex)), view);\r\n    attachProjectedView(elementData, view);\r\n    Services.dirtyParentQueries(view);\r\n    var /** @type {?} */ prevView = ((viewIndex)) > 0 ? embeddedViews[((viewIndex)) - 1] : null;\r\n    renderAttachEmbeddedView(elementData, prevView, view);\r\n}\r\n/**\r\n * @param {?} vcElementData\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction attachProjectedView(vcElementData, view) {\r\n    var /** @type {?} */ dvcElementData = declaredViewContainer(view);\r\n    if (!dvcElementData || dvcElementData === vcElementData ||\r\n        view.state & 16 /* IsProjectedView */) {\r\n        return;\r\n    }\r\n    // Note: For performance reasons, we\r\n    // - add a view to template._projectedViews only 1x throughout its lifetime,\r\n    //   and remove it not until the view is destroyed.\r\n    //   (hard, as when a parent view is attached/detached we would need to attach/detach all\r\n    //    nested projected views as well, even accross component boundaries).\r\n    // - don't track the insertion order of views in the projected views array\r\n    //   (hard, as when the views of the same template are inserted different view containers)\r\n    view.state |= 16 /* IsProjectedView */;\r\n    var /** @type {?} */ projectedViews = dvcElementData.template._projectedViews;\r\n    if (!projectedViews) {\r\n        projectedViews = dvcElementData.template._projectedViews = [];\r\n    }\r\n    projectedViews.push(view);\r\n    // Note: we are changing the NodeDef here as we cannot calculate\r\n    // the fact whether a template is used for projection during compilation.\r\n    markNodeAsProjectedTemplate(/** @type {?} */ ((view.parent)).def, /** @type {?} */ ((view.parentNodeDef)));\r\n}\r\n/**\r\n * @param {?} viewDef\r\n * @param {?} nodeDef\r\n * @return {?}\r\n */\r\nfunction markNodeAsProjectedTemplate(viewDef, nodeDef) {\r\n    if (nodeDef.flags & 4 /* ProjectedTemplate */) {\r\n        return;\r\n    }\r\n    viewDef.nodeFlags |= 4 /* ProjectedTemplate */;\r\n    nodeDef.flags |= 4 /* ProjectedTemplate */;\r\n    var /** @type {?} */ parentNodeDef = nodeDef.parent;\r\n    while (parentNodeDef) {\r\n        parentNodeDef.childFlags |= 4 /* ProjectedTemplate */;\r\n        parentNodeDef = parentNodeDef.parent;\r\n    }\r\n}\r\n/**\r\n * @param {?} elementData\r\n * @param {?=} viewIndex\r\n * @return {?}\r\n */\r\nfunction detachEmbeddedView(elementData, viewIndex) {\r\n    var /** @type {?} */ embeddedViews = ((elementData.viewContainer))._embeddedViews;\r\n    if (viewIndex == null || viewIndex >= embeddedViews.length) {\r\n        viewIndex = embeddedViews.length - 1;\r\n    }\r\n    if (viewIndex < 0) {\r\n        return null;\r\n    }\r\n    var /** @type {?} */ view = embeddedViews[viewIndex];\r\n    view.viewContainerParent = null;\r\n    removeFromArray(embeddedViews, viewIndex);\r\n    // See attachProjectedView for why we don't update projectedViews here.\r\n    Services.dirtyParentQueries(view);\r\n    renderDetachView(view);\r\n    return view;\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction detachProjectedView(view) {\r\n    if (!(view.state & 16 /* IsProjectedView */)) {\r\n        return;\r\n    }\r\n    var /** @type {?} */ dvcElementData = declaredViewContainer(view);\r\n    if (dvcElementData) {\r\n        var /** @type {?} */ projectedViews = dvcElementData.template._projectedViews;\r\n        if (projectedViews) {\r\n            removeFromArray(projectedViews, projectedViews.indexOf(view));\r\n            Services.dirtyParentQueries(view);\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} elementData\r\n * @param {?} oldViewIndex\r\n * @param {?} newViewIndex\r\n * @return {?}\r\n */\r\nfunction moveEmbeddedView(elementData, oldViewIndex, newViewIndex) {\r\n    var /** @type {?} */ embeddedViews = ((elementData.viewContainer))._embeddedViews;\r\n    var /** @type {?} */ view = embeddedViews[oldViewIndex];\r\n    removeFromArray(embeddedViews, oldViewIndex);\r\n    if (newViewIndex == null) {\r\n        newViewIndex = embeddedViews.length;\r\n    }\r\n    addToArray(embeddedViews, newViewIndex, view);\r\n    // Note: Don't need to change projectedViews as the order in there\r\n    // as always invalid...\r\n    Services.dirtyParentQueries(view);\r\n    renderDetachView(view);\r\n    var /** @type {?} */ prevView = newViewIndex > 0 ? embeddedViews[newViewIndex - 1] : null;\r\n    renderAttachEmbeddedView(elementData, prevView, view);\r\n    return view;\r\n}\r\n/**\r\n * @param {?} elementData\r\n * @param {?} prevView\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction renderAttachEmbeddedView(elementData, prevView, view) {\r\n    var /** @type {?} */ prevRenderNode = prevView ? renderNode(prevView, /** @type {?} */ ((prevView.def.lastRenderRootNode))) :\r\n        elementData.renderElement;\r\n    var /** @type {?} */ parentNode = view.renderer.parentNode(prevRenderNode);\r\n    var /** @type {?} */ nextSibling = view.renderer.nextSibling(prevRenderNode);\r\n    // Note: We can't check if `nextSibling` is present, as on WebWorkers it will always be!\r\n    // However, browsers automatically do `appendChild` when there is no `nextSibling`.\r\n    visitRootRenderNodes(view, 2 /* InsertBefore */, parentNode, nextSibling, undefined);\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction renderDetachView(view) {\r\n    visitRootRenderNodes(view, 3 /* RemoveChild */, null, null, undefined);\r\n}\r\n/**\r\n * @param {?} arr\r\n * @param {?} index\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction addToArray(arr, index, value) {\r\n    // perf: array.push is faster than array.splice!\r\n    if (index >= arr.length) {\r\n        arr.push(value);\r\n    }\r\n    else {\r\n        arr.splice(index, 0, value);\r\n    }\r\n}\r\n/**\r\n * @param {?} arr\r\n * @param {?} index\r\n * @return {?}\r\n */\r\nfunction removeFromArray(arr, index) {\r\n    // perf: array.pop is faster than array.splice!\r\n    if (index >= arr.length - 1) {\r\n        arr.pop();\r\n    }\r\n    else {\r\n        arr.splice(index, 1);\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar EMPTY_CONTEXT = new Object();\r\n/**\r\n * @param {?} selector\r\n * @param {?} componentType\r\n * @param {?} viewDefFactory\r\n * @param {?} inputs\r\n * @param {?} outputs\r\n * @param {?} ngContentSelectors\r\n * @return {?}\r\n */\r\nfunction createComponentFactory(selector, componentType, viewDefFactory, inputs, outputs, ngContentSelectors) {\r\n    return new ComponentFactory_(selector, componentType, viewDefFactory, inputs, outputs, ngContentSelectors);\r\n}\r\n/**\r\n * @param {?} componentFactory\r\n * @return {?}\r\n */\r\nfunction getComponentViewDefinitionFactory(componentFactory) {\r\n    return ((componentFactory)).viewDefFactory;\r\n}\r\nvar ComponentFactory_ = (function (_super) {\r\n    __extends(ComponentFactory_, _super);\r\n    /**\r\n     * @param {?} selector\r\n     * @param {?} componentType\r\n     * @param {?} viewDefFactory\r\n     * @param {?} _inputs\r\n     * @param {?} _outputs\r\n     * @param {?} ngContentSelectors\r\n     */\r\n    function ComponentFactory_(selector, componentType, viewDefFactory, _inputs, _outputs, ngContentSelectors) {\r\n        var _this = \r\n        // Attention: this ctor is called as top level function.\r\n        // Putting any logic in here will destroy closure tree shaking!\r\n        _super.call(this) || this;\r\n        _this.selector = selector;\r\n        _this.componentType = componentType;\r\n        _this._inputs = _inputs;\r\n        _this._outputs = _outputs;\r\n        _this.ngContentSelectors = ngContentSelectors;\r\n        _this.viewDefFactory = viewDefFactory;\r\n        return _this;\r\n    }\r\n    Object.defineProperty(ComponentFactory_.prototype, \"inputs\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            var /** @type {?} */ inputsArr = [];\r\n            var /** @type {?} */ inputs = ((this._inputs));\r\n            for (var /** @type {?} */ propName in inputs) {\r\n                var /** @type {?} */ templateName = inputs[propName];\r\n                inputsArr.push({ propName: propName, templateName: templateName });\r\n            }\r\n            return inputsArr;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ComponentFactory_.prototype, \"outputs\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            var /** @type {?} */ outputsArr = [];\r\n            for (var /** @type {?} */ propName in this._outputs) {\r\n                var /** @type {?} */ templateName = this._outputs[propName];\r\n                outputsArr.push({ propName: propName, templateName: templateName });\r\n            }\r\n            return outputsArr;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * Creates a new component.\r\n     * @param {?} injector\r\n     * @param {?=} projectableNodes\r\n     * @param {?=} rootSelectorOrNode\r\n     * @param {?=} ngModule\r\n     * @return {?}\r\n     */\r\n    ComponentFactory_.prototype.create = function (injector, projectableNodes, rootSelectorOrNode, ngModule) {\r\n        if (!ngModule) {\r\n            throw new Error('ngModule should be provided');\r\n        }\r\n        var /** @type {?} */ viewDef = resolveViewDefinition(this.viewDefFactory);\r\n        var /** @type {?} */ componentNodeIndex = ((((viewDef.nodes[0].element)).componentProvider)).index;\r\n        var /** @type {?} */ view = Services.createRootView(injector, projectableNodes || [], rootSelectorOrNode, viewDef, ngModule, EMPTY_CONTEXT);\r\n        var /** @type {?} */ component = asProviderData(view, componentNodeIndex).instance;\r\n        if (rootSelectorOrNode) {\r\n            view.renderer.setAttribute(asElementData(view, 0).renderElement, 'ng-version', VERSION.full);\r\n        }\r\n        return new ComponentRef_(view, new ViewRef_(view), component);\r\n    };\r\n    return ComponentFactory_;\r\n}(ComponentFactory));\r\nvar ComponentRef_ = (function (_super) {\r\n    __extends(ComponentRef_, _super);\r\n    /**\r\n     * @param {?} _view\r\n     * @param {?} _viewRef\r\n     * @param {?} _component\r\n     */\r\n    function ComponentRef_(_view, _viewRef, _component) {\r\n        var _this = _super.call(this) || this;\r\n        _this._view = _view;\r\n        _this._viewRef = _viewRef;\r\n        _this._component = _component;\r\n        _this._elDef = _this._view.def.nodes[0];\r\n        return _this;\r\n    }\r\n    Object.defineProperty(ComponentRef_.prototype, \"location\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return new ElementRef(asElementData(this._view, this._elDef.index).renderElement);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ComponentRef_.prototype, \"injector\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return new Injector_(this._view, this._elDef); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ComponentRef_.prototype, \"instance\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._component; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    ;\r\n    Object.defineProperty(ComponentRef_.prototype, \"hostView\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._viewRef; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    ;\r\n    Object.defineProperty(ComponentRef_.prototype, \"changeDetectorRef\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._viewRef; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    ;\r\n    Object.defineProperty(ComponentRef_.prototype, \"componentType\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return (this._component.constructor); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ComponentRef_.prototype.destroy = function () { this._viewRef.destroy(); };\r\n    /**\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    ComponentRef_.prototype.onDestroy = function (callback) { this._viewRef.onDestroy(callback); };\r\n    return ComponentRef_;\r\n}(ComponentRef));\r\n/**\r\n * @param {?} view\r\n * @param {?} elDef\r\n * @param {?} elData\r\n * @return {?}\r\n */\r\nfunction createViewContainerData(view, elDef, elData) {\r\n    return new ViewContainerRef_(view, elDef, elData);\r\n}\r\nvar ViewContainerRef_ = (function () {\r\n    /**\r\n     * @param {?} _view\r\n     * @param {?} _elDef\r\n     * @param {?} _data\r\n     */\r\n    function ViewContainerRef_(_view, _elDef, _data) {\r\n        this._view = _view;\r\n        this._elDef = _elDef;\r\n        this._data = _data;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._embeddedViews = [];\r\n    }\r\n    Object.defineProperty(ViewContainerRef_.prototype, \"element\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return new ElementRef(this._data.renderElement); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ViewContainerRef_.prototype, \"injector\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return new Injector_(this._view, this._elDef); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ViewContainerRef_.prototype, \"parentInjector\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            var /** @type {?} */ view = this._view;\r\n            var /** @type {?} */ elDef = this._elDef.parent;\r\n            while (!elDef && view) {\r\n                elDef = viewParentEl(view);\r\n                view = ((view.parent));\r\n            }\r\n            return view ? new Injector_(view, elDef) : new Injector_(this._view, null);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef_.prototype.clear = function () {\r\n        var /** @type {?} */ len = this._embeddedViews.length;\r\n        for (var /** @type {?} */ i = len - 1; i >= 0; i--) {\r\n            var /** @type {?} */ view = ((detachEmbeddedView(this._data, i)));\r\n            Services.destroyView(view);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef_.prototype.get = function (index) {\r\n        var /** @type {?} */ view = this._embeddedViews[index];\r\n        if (view) {\r\n            var /** @type {?} */ ref = new ViewRef_(view);\r\n            ref.attachToViewContainerRef(this);\r\n            return ref;\r\n        }\r\n        return null;\r\n    };\r\n    Object.defineProperty(ViewContainerRef_.prototype, \"length\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._embeddedViews.length; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    ;\r\n    /**\r\n     * @template C\r\n     * @param {?} templateRef\r\n     * @param {?=} context\r\n     * @param {?=} index\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef_.prototype.createEmbeddedView = function (templateRef, context, index) {\r\n        var /** @type {?} */ viewRef = templateRef.createEmbeddedView(context || ({}));\r\n        this.insert(viewRef, index);\r\n        return viewRef;\r\n    };\r\n    /**\r\n     * @template C\r\n     * @param {?} componentFactory\r\n     * @param {?=} index\r\n     * @param {?=} injector\r\n     * @param {?=} projectableNodes\r\n     * @param {?=} ngModuleRef\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef_.prototype.createComponent = function (componentFactory, index, injector, projectableNodes, ngModuleRef) {\r\n        var /** @type {?} */ contextInjector = injector || this.parentInjector;\r\n        if (!ngModuleRef && !(componentFactory instanceof ComponentFactoryBoundToModule)) {\r\n            ngModuleRef = contextInjector.get(NgModuleRef);\r\n        }\r\n        var /** @type {?} */ componentRef = componentFactory.create(contextInjector, projectableNodes, undefined, ngModuleRef);\r\n        this.insert(componentRef.hostView, index);\r\n        return componentRef;\r\n    };\r\n    /**\r\n     * @param {?} viewRef\r\n     * @param {?=} index\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef_.prototype.insert = function (viewRef, index) {\r\n        var /** @type {?} */ viewRef_ = (viewRef);\r\n        var /** @type {?} */ viewData = viewRef_._view;\r\n        attachEmbeddedView(this._view, this._data, index, viewData);\r\n        viewRef_.attachToViewContainerRef(this);\r\n        return viewRef;\r\n    };\r\n    /**\r\n     * @param {?} viewRef\r\n     * @param {?} currentIndex\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef_.prototype.move = function (viewRef, currentIndex) {\r\n        var /** @type {?} */ previousIndex = this._embeddedViews.indexOf(viewRef._view);\r\n        moveEmbeddedView(this._data, previousIndex, currentIndex);\r\n        return viewRef;\r\n    };\r\n    /**\r\n     * @param {?} viewRef\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef_.prototype.indexOf = function (viewRef) {\r\n        return this._embeddedViews.indexOf(((viewRef))._view);\r\n    };\r\n    /**\r\n     * @param {?=} index\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef_.prototype.remove = function (index) {\r\n        var /** @type {?} */ viewData = detachEmbeddedView(this._data, index);\r\n        if (viewData) {\r\n            Services.destroyView(viewData);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?=} index\r\n     * @return {?}\r\n     */\r\n    ViewContainerRef_.prototype.detach = function (index) {\r\n        var /** @type {?} */ view = detachEmbeddedView(this._data, index);\r\n        return view ? new ViewRef_(view) : null;\r\n    };\r\n    return ViewContainerRef_;\r\n}());\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction createChangeDetectorRef(view) {\r\n    return new ViewRef_(view);\r\n}\r\nvar ViewRef_ = (function () {\r\n    /**\r\n     * @param {?} _view\r\n     */\r\n    function ViewRef_(_view) {\r\n        this._view = _view;\r\n        this._viewContainerRef = null;\r\n        this._appRef = null;\r\n    }\r\n    Object.defineProperty(ViewRef_.prototype, \"rootNodes\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return rootRenderNodes(this._view); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ViewRef_.prototype, \"context\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._view.context; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ViewRef_.prototype, \"destroyed\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return (this._view.state & 128 /* Destroyed */) !== 0; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ViewRef_.prototype.markForCheck = function () { markParentViewsForCheck(this._view); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ViewRef_.prototype.detach = function () { this._view.state &= ~4 /* Attached */; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ViewRef_.prototype.detectChanges = function () { Services.checkAndUpdateView(this._view); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ViewRef_.prototype.checkNoChanges = function () { Services.checkNoChangesView(this._view); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ViewRef_.prototype.reattach = function () { this._view.state |= 4 /* Attached */; };\r\n    /**\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    ViewRef_.prototype.onDestroy = function (callback) {\r\n        if (!this._view.disposables) {\r\n            this._view.disposables = [];\r\n        }\r\n        this._view.disposables.push(/** @type {?} */ (callback));\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ViewRef_.prototype.destroy = function () {\r\n        if (this._appRef) {\r\n            this._appRef.detachView(this);\r\n        }\r\n        else if (this._viewContainerRef) {\r\n            this._viewContainerRef.detach(this._viewContainerRef.indexOf(this));\r\n        }\r\n        Services.destroyView(this._view);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ViewRef_.prototype.detachFromAppRef = function () {\r\n        this._appRef = null;\r\n        renderDetachView(this._view);\r\n        Services.dirtyParentQueries(this._view);\r\n    };\r\n    /**\r\n     * @param {?} appRef\r\n     * @return {?}\r\n     */\r\n    ViewRef_.prototype.attachToAppRef = function (appRef) {\r\n        if (this._viewContainerRef) {\r\n            throw new Error('This view is already attached to a ViewContainer!');\r\n        }\r\n        this._appRef = appRef;\r\n    };\r\n    /**\r\n     * @param {?} vcRef\r\n     * @return {?}\r\n     */\r\n    ViewRef_.prototype.attachToViewContainerRef = function (vcRef) {\r\n        if (this._appRef) {\r\n            throw new Error('This view is already attached directly to the ApplicationRef!');\r\n        }\r\n        this._viewContainerRef = vcRef;\r\n    };\r\n    return ViewRef_;\r\n}());\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction createTemplateData(view, def) {\r\n    return new TemplateRef_(view, def);\r\n}\r\nvar TemplateRef_ = (function (_super) {\r\n    __extends(TemplateRef_, _super);\r\n    /**\r\n     * @param {?} _parentView\r\n     * @param {?} _def\r\n     */\r\n    function TemplateRef_(_parentView, _def) {\r\n        var _this = _super.call(this) || this;\r\n        _this._parentView = _parentView;\r\n        _this._def = _def;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplateRef_.prototype.createEmbeddedView = function (context) {\r\n        return new ViewRef_(Services.createEmbeddedView(this._parentView, this._def, context));\r\n    };\r\n    Object.defineProperty(TemplateRef_.prototype, \"elementRef\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return new ElementRef(asElementData(this._parentView, this._def.index).renderElement);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return TemplateRef_;\r\n}(TemplateRef));\r\n/**\r\n * @param {?} view\r\n * @param {?} elDef\r\n * @return {?}\r\n */\r\nfunction createInjector(view, elDef) {\r\n    return new Injector_(view, elDef);\r\n}\r\nvar Injector_ = (function () {\r\n    /**\r\n     * @param {?} view\r\n     * @param {?} elDef\r\n     */\r\n    function Injector_(view, elDef) {\r\n        this.view = view;\r\n        this.elDef = elDef;\r\n    }\r\n    /**\r\n     * @param {?} token\r\n     * @param {?=} notFoundValue\r\n     * @return {?}\r\n     */\r\n    Injector_.prototype.get = function (token, notFoundValue) {\r\n        if (notFoundValue === void 0) { notFoundValue = Injector.THROW_IF_NOT_FOUND; }\r\n        var /** @type {?} */ allowPrivateServices = this.elDef ? (this.elDef.flags & 33554432 /* ComponentView */) !== 0 : false;\r\n        return Services.resolveDep(this.view, this.elDef, allowPrivateServices, { flags: 0 /* None */, token: token, tokenKey: tokenKey(token) }, notFoundValue);\r\n    };\r\n    return Injector_;\r\n}());\r\n/**\r\n * @param {?} view\r\n * @param {?} index\r\n * @return {?}\r\n */\r\nfunction nodeValue(view, index) {\r\n    var /** @type {?} */ def = view.def.nodes[index];\r\n    if (def.flags & 1 /* TypeElement */) {\r\n        var /** @type {?} */ elData = asElementData(view, def.index);\r\n        return ((def.element)).template ? elData.template : elData.renderElement;\r\n    }\r\n    else if (def.flags & 2 /* TypeText */) {\r\n        return asTextData(view, def.index).renderText;\r\n    }\r\n    else if (def.flags & (20224 /* CatProvider */ | 16 /* TypePipe */)) {\r\n        return asProviderData(view, def.index).instance;\r\n    }\r\n    throw new Error(\"Illegal state: read nodeValue for node index \" + index);\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction createRendererV1(view) {\r\n    return new RendererAdapter(view.renderer);\r\n}\r\nvar RendererAdapter = (function () {\r\n    /**\r\n     * @param {?} delegate\r\n     */\r\n    function RendererAdapter(delegate) {\r\n        this.delegate = delegate;\r\n    }\r\n    /**\r\n     * @param {?} selectorOrNode\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.selectRootElement = function (selectorOrNode) {\r\n        return this.delegate.selectRootElement(selectorOrNode);\r\n    };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} namespaceAndName\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.createElement = function (parent, namespaceAndName) {\r\n        var _a = splitNamespace(namespaceAndName), ns = _a[0], name = _a[1];\r\n        var /** @type {?} */ el = this.delegate.createElement(name, ns);\r\n        if (parent) {\r\n            this.delegate.appendChild(parent, el);\r\n        }\r\n        return el;\r\n    };\r\n    /**\r\n     * @param {?} hostElement\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.createViewRoot = function (hostElement) { return hostElement; };\r\n    /**\r\n     * @param {?} parentElement\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.createTemplateAnchor = function (parentElement) {\r\n        var /** @type {?} */ comment = this.delegate.createComment('');\r\n        if (parentElement) {\r\n            this.delegate.appendChild(parentElement, comment);\r\n        }\r\n        return comment;\r\n    };\r\n    /**\r\n     * @param {?} parentElement\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.createText = function (parentElement, value) {\r\n        var /** @type {?} */ node = this.delegate.createText(value);\r\n        if (parentElement) {\r\n            this.delegate.appendChild(parentElement, node);\r\n        }\r\n        return node;\r\n    };\r\n    /**\r\n     * @param {?} parentElement\r\n     * @param {?} nodes\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.projectNodes = function (parentElement, nodes) {\r\n        for (var /** @type {?} */ i = 0; i < nodes.length; i++) {\r\n            this.delegate.appendChild(parentElement, nodes[i]);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} node\r\n     * @param {?} viewRootNodes\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.attachViewAfter = function (node, viewRootNodes) {\r\n        var /** @type {?} */ parentElement = this.delegate.parentNode(node);\r\n        var /** @type {?} */ nextSibling = this.delegate.nextSibling(node);\r\n        for (var /** @type {?} */ i = 0; i < viewRootNodes.length; i++) {\r\n            this.delegate.insertBefore(parentElement, viewRootNodes[i], nextSibling);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} viewRootNodes\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.detachView = function (viewRootNodes) {\r\n        for (var /** @type {?} */ i = 0; i < viewRootNodes.length; i++) {\r\n            var /** @type {?} */ node = viewRootNodes[i];\r\n            var /** @type {?} */ parentElement = this.delegate.parentNode(node);\r\n            this.delegate.removeChild(parentElement, node);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} hostElement\r\n     * @param {?} viewAllNodes\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.destroyView = function (hostElement, viewAllNodes) {\r\n        for (var /** @type {?} */ i = 0; i < viewAllNodes.length; i++) {\r\n            ((this.delegate.destroyNode))(viewAllNodes[i]);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} renderElement\r\n     * @param {?} name\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.listen = function (renderElement, name, callback) {\r\n        return this.delegate.listen(renderElement, name, /** @type {?} */ (callback));\r\n    };\r\n    /**\r\n     * @param {?} target\r\n     * @param {?} name\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.listenGlobal = function (target, name, callback) {\r\n        return this.delegate.listen(target, name, /** @type {?} */ (callback));\r\n    };\r\n    /**\r\n     * @param {?} renderElement\r\n     * @param {?} propertyName\r\n     * @param {?} propertyValue\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.setElementProperty = function (renderElement, propertyName, propertyValue) {\r\n        this.delegate.setProperty(renderElement, propertyName, propertyValue);\r\n    };\r\n    /**\r\n     * @param {?} renderElement\r\n     * @param {?} namespaceAndName\r\n     * @param {?} attributeValue\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.setElementAttribute = function (renderElement, namespaceAndName, attributeValue) {\r\n        var _a = splitNamespace(namespaceAndName), ns = _a[0], name = _a[1];\r\n        if (attributeValue != null) {\r\n            this.delegate.setAttribute(renderElement, name, attributeValue, ns);\r\n        }\r\n        else {\r\n            this.delegate.removeAttribute(renderElement, name, ns);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} renderElement\r\n     * @param {?} propertyName\r\n     * @param {?} propertyValue\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.setBindingDebugInfo = function (renderElement, propertyName, propertyValue) { };\r\n    /**\r\n     * @param {?} renderElement\r\n     * @param {?} className\r\n     * @param {?} isAdd\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.setElementClass = function (renderElement, className, isAdd) {\r\n        if (isAdd) {\r\n            this.delegate.addClass(renderElement, className);\r\n        }\r\n        else {\r\n            this.delegate.removeClass(renderElement, className);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} renderElement\r\n     * @param {?} styleName\r\n     * @param {?} styleValue\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.setElementStyle = function (renderElement, styleName, styleValue) {\r\n        if (styleValue != null) {\r\n            this.delegate.setStyle(renderElement, styleName, styleValue);\r\n        }\r\n        else {\r\n            this.delegate.removeStyle(renderElement, styleName);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} renderElement\r\n     * @param {?} methodName\r\n     * @param {?} args\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.invokeElementMethod = function (renderElement, methodName, args) {\r\n        ((renderElement))[methodName].apply(renderElement, args);\r\n    };\r\n    /**\r\n     * @param {?} renderNode\r\n     * @param {?} text\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.setText = function (renderNode$$1, text) { this.delegate.setValue(renderNode$$1, text); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RendererAdapter.prototype.animate = function () { throw new Error('Renderer.animate is no longer supported!'); };\r\n    return RendererAdapter;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar RendererV1TokenKey = tokenKey(Renderer);\r\nvar Renderer2TokenKey = tokenKey(Renderer2);\r\nvar ElementRefTokenKey = tokenKey(ElementRef);\r\nvar ViewContainerRefTokenKey = tokenKey(ViewContainerRef);\r\nvar TemplateRefTokenKey = tokenKey(TemplateRef);\r\nvar ChangeDetectorRefTokenKey = tokenKey(ChangeDetectorRef);\r\nvar InjectorRefTokenKey = tokenKey(Injector);\r\nvar NOT_CREATED = new Object();\r\n/**\r\n * @param {?} flags\r\n * @param {?} matchedQueries\r\n * @param {?} childCount\r\n * @param {?} ctor\r\n * @param {?} deps\r\n * @param {?=} props\r\n * @param {?=} outputs\r\n * @return {?}\r\n */\r\nfunction directiveDef(flags, matchedQueries, childCount, ctor, deps, props, outputs) {\r\n    var /** @type {?} */ bindings = [];\r\n    if (props) {\r\n        for (var /** @type {?} */ prop in props) {\r\n            var _a = props[prop], bindingIndex = _a[0], nonMinifiedName = _a[1];\r\n            bindings[bindingIndex] = {\r\n                flags: 8 /* TypeProperty */,\r\n                name: prop, nonMinifiedName: nonMinifiedName,\r\n                ns: null,\r\n                securityContext: null,\r\n                suffix: null\r\n            };\r\n        }\r\n    }\r\n    var /** @type {?} */ outputDefs = [];\r\n    if (outputs) {\r\n        for (var /** @type {?} */ propName in outputs) {\r\n            outputDefs.push({ type: 1 /* DirectiveOutput */, propName: propName, target: null, eventName: outputs[propName] });\r\n        }\r\n    }\r\n    flags |= 16384 /* TypeDirective */;\r\n    return _def(flags, matchedQueries, childCount, ctor, ctor, deps, bindings, outputDefs);\r\n}\r\n/**\r\n * @param {?} flags\r\n * @param {?} ctor\r\n * @param {?} deps\r\n * @return {?}\r\n */\r\nfunction pipeDef(flags, ctor, deps) {\r\n    flags |= 16 /* TypePipe */;\r\n    return _def(flags, null, 0, ctor, ctor, deps);\r\n}\r\n/**\r\n * @param {?} flags\r\n * @param {?} matchedQueries\r\n * @param {?} token\r\n * @param {?} value\r\n * @param {?} deps\r\n * @return {?}\r\n */\r\nfunction providerDef(flags, matchedQueries, token, value, deps) {\r\n    return _def(flags, matchedQueries, 0, token, value, deps);\r\n}\r\n/**\r\n * @param {?} flags\r\n * @param {?} matchedQueriesDsl\r\n * @param {?} childCount\r\n * @param {?} token\r\n * @param {?} value\r\n * @param {?} deps\r\n * @param {?=} bindings\r\n * @param {?=} outputs\r\n * @return {?}\r\n */\r\nfunction _def(flags, matchedQueriesDsl, childCount, token, value, deps, bindings, outputs) {\r\n    var _a = splitMatchedQueriesDsl(matchedQueriesDsl), matchedQueries = _a.matchedQueries, references = _a.references, matchedQueryIds = _a.matchedQueryIds;\r\n    if (!outputs) {\r\n        outputs = [];\r\n    }\r\n    if (!bindings) {\r\n        bindings = [];\r\n    }\r\n    var /** @type {?} */ depDefs = deps.map(function (value) {\r\n        var /** @type {?} */ token;\r\n        var /** @type {?} */ flags;\r\n        if (Array.isArray(value)) {\r\n            flags = value[0], token = value[1];\r\n        }\r\n        else {\r\n            flags = 0 /* None */;\r\n            token = value;\r\n        }\r\n        return { flags: flags, token: token, tokenKey: tokenKey(token) };\r\n    });\r\n    return {\r\n        // will bet set by the view definition\r\n        index: -1,\r\n        parent: null,\r\n        renderParent: null,\r\n        bindingIndex: -1,\r\n        outputIndex: -1,\r\n        // regular values\r\n        flags: flags,\r\n        childFlags: 0,\r\n        directChildFlags: 0,\r\n        childMatchedQueries: 0, matchedQueries: matchedQueries, matchedQueryIds: matchedQueryIds, references: references,\r\n        ngContentIndex: -1, childCount: childCount, bindings: bindings,\r\n        bindingFlags: calcBindingFlags(bindings), outputs: outputs,\r\n        element: null,\r\n        provider: { token: token, tokenKey: tokenKey(token), value: value, deps: depDefs },\r\n        text: null,\r\n        query: null,\r\n        ngContent: null\r\n    };\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction createProviderInstance(view, def) {\r\n    return def.flags & 4096 /* LazyProvider */ ? NOT_CREATED : _createProviderInstance(view, def);\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction createPipeInstance(view, def) {\r\n    // deps are looked up from component.\r\n    var /** @type {?} */ compView = view;\r\n    while (compView.parent && !isComponentView(compView)) {\r\n        compView = compView.parent;\r\n    }\r\n    // pipes can see the private services of the component\r\n    var /** @type {?} */ allowPrivateServices = true;\r\n    // pipes are always eager and classes!\r\n    return createClass(/** @type {?} */ ((compView.parent)), /** @type {?} */ ((viewParentEl(compView))), allowPrivateServices, /** @type {?} */ ((def.provider)).value, /** @type {?} */ ((def.provider)).deps);\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction createDirectiveInstance(view, def) {\r\n    // components can see other private services, other directives can't.\r\n    var /** @type {?} */ allowPrivateServices = (def.flags & 32768 /* Component */) > 0;\r\n    // directives are always eager and classes!\r\n    var /** @type {?} */ instance = createClass(view, /** @type {?} */ ((def.parent)), allowPrivateServices, /** @type {?} */ ((def.provider)).value, /** @type {?} */ ((def.provider)).deps);\r\n    if (def.outputs.length) {\r\n        for (var /** @type {?} */ i = 0; i < def.outputs.length; i++) {\r\n            var /** @type {?} */ output = def.outputs[i];\r\n            var /** @type {?} */ subscription = instance[((output.propName))].subscribe(eventHandlerClosure(view, /** @type {?} */ ((def.parent)).index, output.eventName)); /** @type {?} */\r\n            ((view.disposables))[def.outputIndex + i] = subscription.unsubscribe.bind(subscription);\r\n        }\r\n    }\r\n    return instance;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} index\r\n * @param {?} eventName\r\n * @return {?}\r\n */\r\nfunction eventHandlerClosure(view, index, eventName) {\r\n    return function (event) {\r\n        try {\r\n            return dispatchEvent(view, index, eventName, event);\r\n        }\r\n        catch (e) {\r\n            // Attention: Don't rethrow, as it would cancel Observable subscriptions!\r\n            view.root.errorHandler.handleError(e);\r\n        }\r\n    };\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} v0\r\n * @param {?} v1\r\n * @param {?} v2\r\n * @param {?} v3\r\n * @param {?} v4\r\n * @param {?} v5\r\n * @param {?} v6\r\n * @param {?} v7\r\n * @param {?} v8\r\n * @param {?} v9\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateDirectiveInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\r\n    var /** @type {?} */ providerData = asProviderData(view, def.index);\r\n    var /** @type {?} */ directive = providerData.instance;\r\n    var /** @type {?} */ changed = false;\r\n    var /** @type {?} */ changes = ((undefined));\r\n    var /** @type {?} */ bindLen = def.bindings.length;\r\n    if (bindLen > 0 && checkBinding(view, def, 0, v0)) {\r\n        changed = true;\r\n        changes = updateProp(view, providerData, def, 0, v0, changes);\r\n    }\r\n    if (bindLen > 1 && checkBinding(view, def, 1, v1)) {\r\n        changed = true;\r\n        changes = updateProp(view, providerData, def, 1, v1, changes);\r\n    }\r\n    if (bindLen > 2 && checkBinding(view, def, 2, v2)) {\r\n        changed = true;\r\n        changes = updateProp(view, providerData, def, 2, v2, changes);\r\n    }\r\n    if (bindLen > 3 && checkBinding(view, def, 3, v3)) {\r\n        changed = true;\r\n        changes = updateProp(view, providerData, def, 3, v3, changes);\r\n    }\r\n    if (bindLen > 4 && checkBinding(view, def, 4, v4)) {\r\n        changed = true;\r\n        changes = updateProp(view, providerData, def, 4, v4, changes);\r\n    }\r\n    if (bindLen > 5 && checkBinding(view, def, 5, v5)) {\r\n        changed = true;\r\n        changes = updateProp(view, providerData, def, 5, v5, changes);\r\n    }\r\n    if (bindLen > 6 && checkBinding(view, def, 6, v6)) {\r\n        changed = true;\r\n        changes = updateProp(view, providerData, def, 6, v6, changes);\r\n    }\r\n    if (bindLen > 7 && checkBinding(view, def, 7, v7)) {\r\n        changed = true;\r\n        changes = updateProp(view, providerData, def, 7, v7, changes);\r\n    }\r\n    if (bindLen > 8 && checkBinding(view, def, 8, v8)) {\r\n        changed = true;\r\n        changes = updateProp(view, providerData, def, 8, v8, changes);\r\n    }\r\n    if (bindLen > 9 && checkBinding(view, def, 9, v9)) {\r\n        changed = true;\r\n        changes = updateProp(view, providerData, def, 9, v9, changes);\r\n    }\r\n    if (changes) {\r\n        directive.ngOnChanges(changes);\r\n    }\r\n    if ((view.state & 2 /* FirstCheck */) && (def.flags & 65536 /* OnInit */)) {\r\n        directive.ngOnInit();\r\n    }\r\n    if (def.flags & 262144 /* DoCheck */) {\r\n        directive.ngDoCheck();\r\n    }\r\n    return changed;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} values\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateDirectiveDynamic(view, def, values) {\r\n    var /** @type {?} */ providerData = asProviderData(view, def.index);\r\n    var /** @type {?} */ directive = providerData.instance;\r\n    var /** @type {?} */ changed = false;\r\n    var /** @type {?} */ changes = ((undefined));\r\n    for (var /** @type {?} */ i = 0; i < values.length; i++) {\r\n        if (checkBinding(view, def, i, values[i])) {\r\n            changed = true;\r\n            changes = updateProp(view, providerData, def, i, values[i], changes);\r\n        }\r\n    }\r\n    if (changes) {\r\n        directive.ngOnChanges(changes);\r\n    }\r\n    if ((view.state & 2 /* FirstCheck */) && (def.flags & 65536 /* OnInit */)) {\r\n        directive.ngOnInit();\r\n    }\r\n    if (def.flags & 262144 /* DoCheck */) {\r\n        directive.ngDoCheck();\r\n    }\r\n    return changed;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction _createProviderInstance(view, def) {\r\n    // private services can see other private services\r\n    var /** @type {?} */ allowPrivateServices = (def.flags & 8192 /* PrivateProvider */) > 0;\r\n    var /** @type {?} */ providerDef = def.provider;\r\n    var /** @type {?} */ injectable;\r\n    switch (def.flags & 201347067 /* Types */) {\r\n        case 512 /* TypeClassProvider */:\r\n            injectable = createClass(view, /** @type {?} */ ((def.parent)), allowPrivateServices, /** @type {?} */ ((providerDef)).value, /** @type {?} */ ((providerDef)).deps);\r\n            break;\r\n        case 1024 /* TypeFactoryProvider */:\r\n            injectable = callFactory(view, /** @type {?} */ ((def.parent)), allowPrivateServices, /** @type {?} */ ((providerDef)).value, /** @type {?} */ ((providerDef)).deps);\r\n            break;\r\n        case 2048 /* TypeUseExistingProvider */:\r\n            injectable = resolveDep(view, /** @type {?} */ ((def.parent)), allowPrivateServices, /** @type {?} */ ((providerDef)).deps[0]);\r\n            break;\r\n        case 256 /* TypeValueProvider */:\r\n            injectable = ((providerDef)).value;\r\n            break;\r\n    }\r\n    return injectable;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} elDef\r\n * @param {?} allowPrivateServices\r\n * @param {?} ctor\r\n * @param {?} deps\r\n * @return {?}\r\n */\r\nfunction createClass(view, elDef, allowPrivateServices, ctor, deps) {\r\n    var /** @type {?} */ len = deps.length;\r\n    var /** @type {?} */ injectable;\r\n    switch (len) {\r\n        case 0:\r\n            injectable = new ctor();\r\n            break;\r\n        case 1:\r\n            injectable = new ctor(resolveDep(view, elDef, allowPrivateServices, deps[0]));\r\n            break;\r\n        case 2:\r\n            injectable = new ctor(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]));\r\n            break;\r\n        case 3:\r\n            injectable = new ctor(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]), resolveDep(view, elDef, allowPrivateServices, deps[2]));\r\n            break;\r\n        default:\r\n            var /** @type {?} */ depValues = new Array(len);\r\n            for (var /** @type {?} */ i = 0; i < len; i++) {\r\n                depValues[i] = resolveDep(view, elDef, allowPrivateServices, deps[i]);\r\n            }\r\n            injectable = new (ctor.bind.apply(ctor, [void 0].concat(depValues)))();\r\n    }\r\n    return injectable;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} elDef\r\n * @param {?} allowPrivateServices\r\n * @param {?} factory\r\n * @param {?} deps\r\n * @return {?}\r\n */\r\nfunction callFactory(view, elDef, allowPrivateServices, factory, deps) {\r\n    var /** @type {?} */ len = deps.length;\r\n    var /** @type {?} */ injectable;\r\n    switch (len) {\r\n        case 0:\r\n            injectable = factory();\r\n            break;\r\n        case 1:\r\n            injectable = factory(resolveDep(view, elDef, allowPrivateServices, deps[0]));\r\n            break;\r\n        case 2:\r\n            injectable = factory(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]));\r\n            break;\r\n        case 3:\r\n            injectable = factory(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]), resolveDep(view, elDef, allowPrivateServices, deps[2]));\r\n            break;\r\n        default:\r\n            var /** @type {?} */ depValues = Array(len);\r\n            for (var /** @type {?} */ i = 0; i < len; i++) {\r\n                depValues[i] = resolveDep(view, elDef, allowPrivateServices, deps[i]);\r\n            }\r\n            injectable = factory.apply(void 0, depValues);\r\n    }\r\n    return injectable;\r\n}\r\n// This default value is when checking the hierarchy for a token.\r\n//\r\n// It means both:\r\n// - the token is not provided by the current injector,\r\n// - only the element injectors should be checked (ie do not check module injectors\r\n//\r\n//          mod1\r\n//         /\r\n//       el1   mod2\r\n//         \\  /\r\n//         el2\r\n//\r\n// When requesting el2.injector.get(token), we should check in the following order and return the\r\n// first found value:\r\n// - el2.injector.get(token, default)\r\n// - el1.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) -> do not check the module\r\n// - mod2.injector.get(token, default)\r\nvar NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR = {};\r\n/**\r\n * @param {?} view\r\n * @param {?} elDef\r\n * @param {?} allowPrivateServices\r\n * @param {?} depDef\r\n * @param {?=} notFoundValue\r\n * @return {?}\r\n */\r\nfunction resolveDep(view, elDef, allowPrivateServices, depDef, notFoundValue) {\r\n    if (notFoundValue === void 0) { notFoundValue = Injector.THROW_IF_NOT_FOUND; }\r\n    if (depDef.flags & 8 /* Value */) {\r\n        return depDef.token;\r\n    }\r\n    var /** @type {?} */ startView = view;\r\n    if (depDef.flags & 2 /* Optional */) {\r\n        notFoundValue = null;\r\n    }\r\n    var /** @type {?} */ tokenKey$$1 = depDef.tokenKey;\r\n    if (tokenKey$$1 === ChangeDetectorRefTokenKey) {\r\n        // directives on the same element as a component should be able to control the change detector\r\n        // of that component as well.\r\n        allowPrivateServices = !!(elDef && ((elDef.element)).componentView);\r\n    }\r\n    if (elDef && (depDef.flags & 1 /* SkipSelf */)) {\r\n        allowPrivateServices = false;\r\n        elDef = ((elDef.parent));\r\n    }\r\n    while (view) {\r\n        if (elDef) {\r\n            switch (tokenKey$$1) {\r\n                case RendererV1TokenKey: {\r\n                    var /** @type {?} */ compView = findCompView(view, elDef, allowPrivateServices);\r\n                    return createRendererV1(compView);\r\n                }\r\n                case Renderer2TokenKey: {\r\n                    var /** @type {?} */ compView = findCompView(view, elDef, allowPrivateServices);\r\n                    return compView.renderer;\r\n                }\r\n                case ElementRefTokenKey:\r\n                    return new ElementRef(asElementData(view, elDef.index).renderElement);\r\n                case ViewContainerRefTokenKey:\r\n                    return asElementData(view, elDef.index).viewContainer;\r\n                case TemplateRefTokenKey: {\r\n                    if (((elDef.element)).template) {\r\n                        return asElementData(view, elDef.index).template;\r\n                    }\r\n                    break;\r\n                }\r\n                case ChangeDetectorRefTokenKey: {\r\n                    var /** @type {?} */ cdView = findCompView(view, elDef, allowPrivateServices);\r\n                    return createChangeDetectorRef(cdView);\r\n                }\r\n                case InjectorRefTokenKey:\r\n                    return createInjector(view, elDef);\r\n                default:\r\n                    var /** @type {?} */ providerDef_1 = (((allowPrivateServices ? ((elDef.element)).allProviders : ((elDef.element)).publicProviders)))[tokenKey$$1];\r\n                    if (providerDef_1) {\r\n                        var /** @type {?} */ providerData = asProviderData(view, providerDef_1.index);\r\n                        if (providerData.instance === NOT_CREATED) {\r\n                            providerData.instance = _createProviderInstance(view, providerDef_1);\r\n                        }\r\n                        return providerData.instance;\r\n                    }\r\n            }\r\n        }\r\n        allowPrivateServices = isComponentView(view);\r\n        elDef = ((viewParentEl(view)));\r\n        view = ((view.parent));\r\n    }\r\n    var /** @type {?} */ value = startView.root.injector.get(depDef.token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR);\r\n    if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR ||\r\n        notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {\r\n        // Return the value from the root element injector when\r\n        // - it provides it\r\n        //   (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\r\n        // - the module injector should not be checked\r\n        //   (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\r\n        return value;\r\n    }\r\n    return startView.root.ngModule.injector.get(depDef.token, notFoundValue);\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} elDef\r\n * @param {?} allowPrivateServices\r\n * @return {?}\r\n */\r\nfunction findCompView(view, elDef, allowPrivateServices) {\r\n    var /** @type {?} */ compView;\r\n    if (allowPrivateServices) {\r\n        compView = asElementData(view, elDef.index).componentView;\r\n    }\r\n    else {\r\n        compView = view;\r\n        while (compView.parent && !isComponentView(compView)) {\r\n            compView = compView.parent;\r\n        }\r\n    }\r\n    return compView;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} providerData\r\n * @param {?} def\r\n * @param {?} bindingIdx\r\n * @param {?} value\r\n * @param {?} changes\r\n * @return {?}\r\n */\r\nfunction updateProp(view, providerData, def, bindingIdx, value, changes) {\r\n    if (def.flags & 32768 /* Component */) {\r\n        var /** @type {?} */ compView = asElementData(view, /** @type {?} */ ((def.parent)).index).componentView;\r\n        if (compView.def.flags & 2 /* OnPush */) {\r\n            compView.state |= 8 /* ChecksEnabled */;\r\n        }\r\n    }\r\n    var /** @type {?} */ binding = def.bindings[bindingIdx];\r\n    var /** @type {?} */ propName = ((binding.name));\r\n    // Note: This is still safe with Closure Compiler as\r\n    // the user passed in the property name as an object has to `providerDef`,\r\n    // so Closure Compiler will have renamed the property correctly already.\r\n    providerData.instance[propName] = value;\r\n    if (def.flags & 524288 /* OnChanges */) {\r\n        changes = changes || {};\r\n        var /** @type {?} */ oldValue = view.oldValues[def.bindingIndex + bindingIdx];\r\n        if (oldValue instanceof WrappedValue) {\r\n            oldValue = oldValue.wrapped;\r\n        }\r\n        var /** @type {?} */ binding_1 = def.bindings[bindingIdx];\r\n        changes[((binding_1.nonMinifiedName))] =\r\n            new SimpleChange(oldValue, value, (view.state & 2 /* FirstCheck */) !== 0);\r\n    }\r\n    view.oldValues[def.bindingIndex + bindingIdx] = value;\r\n    return changes;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} lifecycles\r\n * @return {?}\r\n */\r\nfunction callLifecycleHooksChildrenFirst(view, lifecycles) {\r\n    if (!(view.def.nodeFlags & lifecycles)) {\r\n        return;\r\n    }\r\n    var /** @type {?} */ nodes = view.def.nodes;\r\n    for (var /** @type {?} */ i = 0; i < nodes.length; i++) {\r\n        var /** @type {?} */ nodeDef = nodes[i];\r\n        var /** @type {?} */ parent = nodeDef.parent;\r\n        if (!parent && nodeDef.flags & lifecycles) {\r\n            // matching root node (e.g. a pipe)\r\n            callProviderLifecycles(view, i, nodeDef.flags & lifecycles);\r\n        }\r\n        if ((nodeDef.childFlags & lifecycles) === 0) {\r\n            // no child matches one of the lifecycles\r\n            i += nodeDef.childCount;\r\n        }\r\n        while (parent && (parent.flags & 1 /* TypeElement */) &&\r\n            i === parent.index + parent.childCount) {\r\n            // last child of an element\r\n            if (parent.directChildFlags & lifecycles) {\r\n                callElementProvidersLifecycles(view, parent, lifecycles);\r\n            }\r\n            parent = parent.parent;\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} elDef\r\n * @param {?} lifecycles\r\n * @return {?}\r\n */\r\nfunction callElementProvidersLifecycles(view, elDef, lifecycles) {\r\n    for (var /** @type {?} */ i = elDef.index + 1; i <= elDef.index + elDef.childCount; i++) {\r\n        var /** @type {?} */ nodeDef = view.def.nodes[i];\r\n        if (nodeDef.flags & lifecycles) {\r\n            callProviderLifecycles(view, i, nodeDef.flags & lifecycles);\r\n        }\r\n        // only visit direct children\r\n        i += nodeDef.childCount;\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} index\r\n * @param {?} lifecycles\r\n * @return {?}\r\n */\r\nfunction callProviderLifecycles(view, index, lifecycles) {\r\n    var /** @type {?} */ provider = asProviderData(view, index).instance;\r\n    if (provider === NOT_CREATED) {\r\n        return;\r\n    }\r\n    Services.setCurrentNode(view, index);\r\n    if (lifecycles & 1048576 /* AfterContentInit */) {\r\n        provider.ngAfterContentInit();\r\n    }\r\n    if (lifecycles & 2097152 /* AfterContentChecked */) {\r\n        provider.ngAfterContentChecked();\r\n    }\r\n    if (lifecycles & 4194304 /* AfterViewInit */) {\r\n        provider.ngAfterViewInit();\r\n    }\r\n    if (lifecycles & 8388608 /* AfterViewChecked */) {\r\n        provider.ngAfterViewChecked();\r\n    }\r\n    if (lifecycles & 131072 /* OnDestroy */) {\r\n        provider.ngOnDestroy();\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} argCount\r\n * @return {?}\r\n */\r\nfunction purePipeDef(argCount) {\r\n    // argCount + 1 to include the pipe as first arg\r\n    return _pureExpressionDef(128 /* TypePurePipe */, new Array(argCount + 1));\r\n}\r\n/**\r\n * @param {?} argCount\r\n * @return {?}\r\n */\r\nfunction pureArrayDef(argCount) {\r\n    return _pureExpressionDef(32 /* TypePureArray */, new Array(argCount));\r\n}\r\n/**\r\n * @param {?} propertyNames\r\n * @return {?}\r\n */\r\nfunction pureObjectDef(propertyNames) {\r\n    return _pureExpressionDef(64 /* TypePureObject */, propertyNames);\r\n}\r\n/**\r\n * @param {?} flags\r\n * @param {?} propertyNames\r\n * @return {?}\r\n */\r\nfunction _pureExpressionDef(flags, propertyNames) {\r\n    var /** @type {?} */ bindings = new Array(propertyNames.length);\r\n    for (var /** @type {?} */ i = 0; i < propertyNames.length; i++) {\r\n        var /** @type {?} */ prop = propertyNames[i];\r\n        bindings[i] = {\r\n            flags: 8 /* TypeProperty */,\r\n            name: prop,\r\n            ns: null,\r\n            nonMinifiedName: prop,\r\n            securityContext: null,\r\n            suffix: null\r\n        };\r\n    }\r\n    return {\r\n        // will bet set by the view definition\r\n        index: -1,\r\n        parent: null,\r\n        renderParent: null,\r\n        bindingIndex: -1,\r\n        outputIndex: -1,\r\n        // regular values\r\n        flags: flags,\r\n        childFlags: 0,\r\n        directChildFlags: 0,\r\n        childMatchedQueries: 0,\r\n        matchedQueries: {},\r\n        matchedQueryIds: 0,\r\n        references: {},\r\n        ngContentIndex: -1,\r\n        childCount: 0, bindings: bindings,\r\n        bindingFlags: calcBindingFlags(bindings),\r\n        outputs: [],\r\n        element: null,\r\n        provider: null,\r\n        text: null,\r\n        query: null,\r\n        ngContent: null\r\n    };\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction createPureExpression(view, def) {\r\n    return { value: undefined };\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} v0\r\n * @param {?} v1\r\n * @param {?} v2\r\n * @param {?} v3\r\n * @param {?} v4\r\n * @param {?} v5\r\n * @param {?} v6\r\n * @param {?} v7\r\n * @param {?} v8\r\n * @param {?} v9\r\n * @return {?}\r\n */\r\nfunction checkAndUpdatePureExpressionInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\r\n    var /** @type {?} */ bindings = def.bindings;\r\n    var /** @type {?} */ changed = false;\r\n    var /** @type {?} */ bindLen = bindings.length;\r\n    if (bindLen > 0 && checkAndUpdateBinding(view, def, 0, v0))\r\n        changed = true;\r\n    if (bindLen > 1 && checkAndUpdateBinding(view, def, 1, v1))\r\n        changed = true;\r\n    if (bindLen > 2 && checkAndUpdateBinding(view, def, 2, v2))\r\n        changed = true;\r\n    if (bindLen > 3 && checkAndUpdateBinding(view, def, 3, v3))\r\n        changed = true;\r\n    if (bindLen > 4 && checkAndUpdateBinding(view, def, 4, v4))\r\n        changed = true;\r\n    if (bindLen > 5 && checkAndUpdateBinding(view, def, 5, v5))\r\n        changed = true;\r\n    if (bindLen > 6 && checkAndUpdateBinding(view, def, 6, v6))\r\n        changed = true;\r\n    if (bindLen > 7 && checkAndUpdateBinding(view, def, 7, v7))\r\n        changed = true;\r\n    if (bindLen > 8 && checkAndUpdateBinding(view, def, 8, v8))\r\n        changed = true;\r\n    if (bindLen > 9 && checkAndUpdateBinding(view, def, 9, v9))\r\n        changed = true;\r\n    if (changed) {\r\n        var /** @type {?} */ data = asPureExpressionData(view, def.index);\r\n        var /** @type {?} */ value = void 0;\r\n        switch (def.flags & 201347067 /* Types */) {\r\n            case 32 /* TypePureArray */:\r\n                value = new Array(bindings.length);\r\n                if (bindLen > 0)\r\n                    value[0] = v0;\r\n                if (bindLen > 1)\r\n                    value[1] = v1;\r\n                if (bindLen > 2)\r\n                    value[2] = v2;\r\n                if (bindLen > 3)\r\n                    value[3] = v3;\r\n                if (bindLen > 4)\r\n                    value[4] = v4;\r\n                if (bindLen > 5)\r\n                    value[5] = v5;\r\n                if (bindLen > 6)\r\n                    value[6] = v6;\r\n                if (bindLen > 7)\r\n                    value[7] = v7;\r\n                if (bindLen > 8)\r\n                    value[8] = v8;\r\n                if (bindLen > 9)\r\n                    value[9] = v9;\r\n                break;\r\n            case 64 /* TypePureObject */:\r\n                value = {};\r\n                if (bindLen > 0)\r\n                    value[((bindings[0].name))] = v0;\r\n                if (bindLen > 1)\r\n                    value[((bindings[1].name))] = v1;\r\n                if (bindLen > 2)\r\n                    value[((bindings[2].name))] = v2;\r\n                if (bindLen > 3)\r\n                    value[((bindings[3].name))] = v3;\r\n                if (bindLen > 4)\r\n                    value[((bindings[4].name))] = v4;\r\n                if (bindLen > 5)\r\n                    value[((bindings[5].name))] = v5;\r\n                if (bindLen > 6)\r\n                    value[((bindings[6].name))] = v6;\r\n                if (bindLen > 7)\r\n                    value[((bindings[7].name))] = v7;\r\n                if (bindLen > 8)\r\n                    value[((bindings[8].name))] = v8;\r\n                if (bindLen > 9)\r\n                    value[((bindings[9].name))] = v9;\r\n                break;\r\n            case 128 /* TypePurePipe */:\r\n                var /** @type {?} */ pipe = v0;\r\n                switch (bindLen) {\r\n                    case 1:\r\n                        value = pipe.transform(v0);\r\n                        break;\r\n                    case 2:\r\n                        value = pipe.transform(v1);\r\n                        break;\r\n                    case 3:\r\n                        value = pipe.transform(v1, v2);\r\n                        break;\r\n                    case 4:\r\n                        value = pipe.transform(v1, v2, v3);\r\n                        break;\r\n                    case 5:\r\n                        value = pipe.transform(v1, v2, v3, v4);\r\n                        break;\r\n                    case 6:\r\n                        value = pipe.transform(v1, v2, v3, v4, v5);\r\n                        break;\r\n                    case 7:\r\n                        value = pipe.transform(v1, v2, v3, v4, v5, v6);\r\n                        break;\r\n                    case 8:\r\n                        value = pipe.transform(v1, v2, v3, v4, v5, v6, v7);\r\n                        break;\r\n                    case 9:\r\n                        value = pipe.transform(v1, v2, v3, v4, v5, v6, v7, v8);\r\n                        break;\r\n                    case 10:\r\n                        value = pipe.transform(v1, v2, v3, v4, v5, v6, v7, v8, v9);\r\n                        break;\r\n                }\r\n                break;\r\n        }\r\n        data.value = value;\r\n    }\r\n    return changed;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} values\r\n * @return {?}\r\n */\r\nfunction checkAndUpdatePureExpressionDynamic(view, def, values) {\r\n    var /** @type {?} */ bindings = def.bindings;\r\n    var /** @type {?} */ changed = false;\r\n    for (var /** @type {?} */ i = 0; i < values.length; i++) {\r\n        // Note: We need to loop over all values, so that\r\n        // the old values are updates as well!\r\n        if (checkAndUpdateBinding(view, def, i, values[i])) {\r\n            changed = true;\r\n        }\r\n    }\r\n    if (changed) {\r\n        var /** @type {?} */ data = asPureExpressionData(view, def.index);\r\n        var /** @type {?} */ value = void 0;\r\n        switch (def.flags & 201347067 /* Types */) {\r\n            case 32 /* TypePureArray */:\r\n                value = values;\r\n                break;\r\n            case 64 /* TypePureObject */:\r\n                value = {};\r\n                for (var /** @type {?} */ i = 0; i < values.length; i++) {\r\n                    value[((bindings[i].name))] = values[i];\r\n                }\r\n                break;\r\n            case 128 /* TypePurePipe */:\r\n                var /** @type {?} */ pipe = values[0];\r\n                var /** @type {?} */ params = values.slice(1);\r\n                value = pipe.transform.apply(pipe, params);\r\n                break;\r\n        }\r\n        data.value = value;\r\n    }\r\n    return changed;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} flags\r\n * @param {?} id\r\n * @param {?} bindings\r\n * @return {?}\r\n */\r\nfunction queryDef(flags, id, bindings) {\r\n    var /** @type {?} */ bindingDefs = [];\r\n    for (var /** @type {?} */ propName in bindings) {\r\n        var /** @type {?} */ bindingType = bindings[propName];\r\n        bindingDefs.push({ propName: propName, bindingType: bindingType });\r\n    }\r\n    return {\r\n        // will bet set by the view definition\r\n        index: -1,\r\n        parent: null,\r\n        renderParent: null,\r\n        bindingIndex: -1,\r\n        outputIndex: -1,\r\n        // regular values\r\n        flags: flags,\r\n        childFlags: 0,\r\n        directChildFlags: 0,\r\n        childMatchedQueries: 0,\r\n        ngContentIndex: -1,\r\n        matchedQueries: {},\r\n        matchedQueryIds: 0,\r\n        references: {},\r\n        childCount: 0,\r\n        bindings: [],\r\n        bindingFlags: 0,\r\n        outputs: [],\r\n        element: null,\r\n        provider: null,\r\n        text: null,\r\n        query: { id: id, filterId: filterQueryId(id), bindings: bindingDefs },\r\n        ngContent: null\r\n    };\r\n}\r\n/**\r\n * @return {?}\r\n */\r\nfunction createQuery() {\r\n    return new QueryList();\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction dirtyParentQueries(view) {\r\n    var /** @type {?} */ queryIds = view.def.nodeMatchedQueries;\r\n    while (view.parent && isEmbeddedView(view)) {\r\n        var /** @type {?} */ tplDef = ((view.parentNodeDef));\r\n        view = view.parent;\r\n        // content queries\r\n        var /** @type {?} */ end = tplDef.index + tplDef.childCount;\r\n        for (var /** @type {?} */ i = 0; i <= end; i++) {\r\n            var /** @type {?} */ nodeDef = view.def.nodes[i];\r\n            if ((nodeDef.flags & 67108864 /* TypeContentQuery */) &&\r\n                (nodeDef.flags & 536870912 /* DynamicQuery */) &&\r\n                (((nodeDef.query)).filterId & queryIds) === ((nodeDef.query)).filterId) {\r\n                asQueryList(view, i).setDirty();\r\n            }\r\n            if ((nodeDef.flags & 1 /* TypeElement */ && i + nodeDef.childCount < tplDef.index) ||\r\n                !(nodeDef.childFlags & 67108864 /* TypeContentQuery */) ||\r\n                !(nodeDef.childFlags & 536870912 /* DynamicQuery */)) {\r\n                // skip elements that don't contain the template element or no query.\r\n                i += nodeDef.childCount;\r\n            }\r\n        }\r\n    }\r\n    // view queries\r\n    if (view.def.nodeFlags & 134217728 /* TypeViewQuery */) {\r\n        for (var /** @type {?} */ i = 0; i < view.def.nodes.length; i++) {\r\n            var /** @type {?} */ nodeDef = view.def.nodes[i];\r\n            if ((nodeDef.flags & 134217728 /* TypeViewQuery */) && (nodeDef.flags & 536870912 /* DynamicQuery */)) {\r\n                asQueryList(view, i).setDirty();\r\n            }\r\n            // only visit the root nodes\r\n            i += nodeDef.childCount;\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateQuery(view, nodeDef) {\r\n    var /** @type {?} */ queryList = asQueryList(view, nodeDef.index);\r\n    if (!queryList.dirty) {\r\n        return;\r\n    }\r\n    var /** @type {?} */ directiveInstance;\r\n    var /** @type {?} */ newValues = ((undefined));\r\n    if (nodeDef.flags & 67108864 /* TypeContentQuery */) {\r\n        var /** @type {?} */ elementDef_1 = ((((nodeDef.parent)).parent));\r\n        newValues = calcQueryValues(view, elementDef_1.index, elementDef_1.index + elementDef_1.childCount, /** @type {?} */ ((nodeDef.query)), []);\r\n        directiveInstance = asProviderData(view, /** @type {?} */ ((nodeDef.parent)).index).instance;\r\n    }\r\n    else if (nodeDef.flags & 134217728 /* TypeViewQuery */) {\r\n        newValues = calcQueryValues(view, 0, view.def.nodes.length - 1, /** @type {?} */ ((nodeDef.query)), []);\r\n        directiveInstance = view.component;\r\n    }\r\n    queryList.reset(newValues);\r\n    var /** @type {?} */ bindings = ((nodeDef.query)).bindings;\r\n    var /** @type {?} */ notify = false;\r\n    for (var /** @type {?} */ i = 0; i < bindings.length; i++) {\r\n        var /** @type {?} */ binding = bindings[i];\r\n        var /** @type {?} */ boundValue = void 0;\r\n        switch (binding.bindingType) {\r\n            case 0 /* First */:\r\n                boundValue = queryList.first;\r\n                break;\r\n            case 1 /* All */:\r\n                boundValue = queryList;\r\n                notify = true;\r\n                break;\r\n        }\r\n        directiveInstance[binding.propName] = boundValue;\r\n    }\r\n    if (notify) {\r\n        queryList.notifyOnChanges();\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} startIndex\r\n * @param {?} endIndex\r\n * @param {?} queryDef\r\n * @param {?} values\r\n * @return {?}\r\n */\r\nfunction calcQueryValues(view, startIndex, endIndex, queryDef, values) {\r\n    for (var /** @type {?} */ i = startIndex; i <= endIndex; i++) {\r\n        var /** @type {?} */ nodeDef = view.def.nodes[i];\r\n        var /** @type {?} */ valueType = nodeDef.matchedQueries[queryDef.id];\r\n        if (valueType != null) {\r\n            values.push(getQueryValue(view, nodeDef, valueType));\r\n        }\r\n        if (nodeDef.flags & 1 /* TypeElement */ && ((nodeDef.element)).template &&\r\n            (((((nodeDef.element)).template)).nodeMatchedQueries & queryDef.filterId) ===\r\n                queryDef.filterId) {\r\n            // check embedded views that were attached at the place of their template.\r\n            var /** @type {?} */ elementData = asElementData(view, i);\r\n            if (nodeDef.flags & 16777216 /* EmbeddedViews */) {\r\n                var /** @type {?} */ embeddedViews = ((elementData.viewContainer))._embeddedViews;\r\n                for (var /** @type {?} */ k = 0; k < embeddedViews.length; k++) {\r\n                    var /** @type {?} */ embeddedView = embeddedViews[k];\r\n                    var /** @type {?} */ dvc = declaredViewContainer(embeddedView);\r\n                    if (dvc && dvc === elementData) {\r\n                        calcQueryValues(embeddedView, 0, embeddedView.def.nodes.length - 1, queryDef, values);\r\n                    }\r\n                }\r\n            }\r\n            var /** @type {?} */ projectedViews = elementData.template._projectedViews;\r\n            if (projectedViews) {\r\n                for (var /** @type {?} */ k = 0; k < projectedViews.length; k++) {\r\n                    var /** @type {?} */ projectedView = projectedViews[k];\r\n                    calcQueryValues(projectedView, 0, projectedView.def.nodes.length - 1, queryDef, values);\r\n                }\r\n            }\r\n        }\r\n        if ((nodeDef.childMatchedQueries & queryDef.filterId) !== queryDef.filterId) {\r\n            // if no child matches the query, skip the children.\r\n            i += nodeDef.childCount;\r\n        }\r\n    }\r\n    return values;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?} queryValueType\r\n * @return {?}\r\n */\r\nfunction getQueryValue(view, nodeDef, queryValueType) {\r\n    if (queryValueType != null) {\r\n        // a match\r\n        var /** @type {?} */ value = void 0;\r\n        switch (queryValueType) {\r\n            case 1 /* RenderElement */:\r\n                value = asElementData(view, nodeDef.index).renderElement;\r\n                break;\r\n            case 0 /* ElementRef */:\r\n                value = new ElementRef(asElementData(view, nodeDef.index).renderElement);\r\n                break;\r\n            case 2 /* TemplateRef */:\r\n                value = asElementData(view, nodeDef.index).template;\r\n                break;\r\n            case 3 /* ViewContainerRef */:\r\n                value = asElementData(view, nodeDef.index).viewContainer;\r\n                break;\r\n            case 4 /* Provider */:\r\n                value = asProviderData(view, nodeDef.index).instance;\r\n                break;\r\n        }\r\n        return value;\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} ngContentIndex\r\n * @param {?} constants\r\n * @return {?}\r\n */\r\nfunction textDef(ngContentIndex, constants) {\r\n    var /** @type {?} */ bindings = new Array(constants.length - 1);\r\n    for (var /** @type {?} */ i = 1; i < constants.length; i++) {\r\n        bindings[i - 1] = {\r\n            flags: 8 /* TypeProperty */,\r\n            name: null,\r\n            ns: null,\r\n            nonMinifiedName: null,\r\n            securityContext: null,\r\n            suffix: constants[i]\r\n        };\r\n    }\r\n    var /** @type {?} */ flags = 2;\r\n    return {\r\n        // will bet set by the view definition\r\n        index: -1,\r\n        parent: null,\r\n        renderParent: null,\r\n        bindingIndex: -1,\r\n        outputIndex: -1,\r\n        // regular values\r\n        flags: flags,\r\n        childFlags: 0,\r\n        directChildFlags: 0,\r\n        childMatchedQueries: 0,\r\n        matchedQueries: {},\r\n        matchedQueryIds: 0,\r\n        references: {}, ngContentIndex: ngContentIndex,\r\n        childCount: 0, bindings: bindings,\r\n        bindingFlags: calcBindingFlags(bindings),\r\n        outputs: [],\r\n        element: null,\r\n        provider: null,\r\n        text: { prefix: constants[0] },\r\n        query: null,\r\n        ngContent: null\r\n    };\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} renderHost\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction createText(view, renderHost, def) {\r\n    var /** @type {?} */ renderNode$$1;\r\n    var /** @type {?} */ renderer = view.renderer;\r\n    renderNode$$1 = renderer.createText(/** @type {?} */ ((def.text)).prefix);\r\n    var /** @type {?} */ parentEl = getParentRenderElement(view, renderHost, def);\r\n    if (parentEl) {\r\n        renderer.appendChild(parentEl, renderNode$$1);\r\n    }\r\n    return { renderText: renderNode$$1 };\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} v0\r\n * @param {?} v1\r\n * @param {?} v2\r\n * @param {?} v3\r\n * @param {?} v4\r\n * @param {?} v5\r\n * @param {?} v6\r\n * @param {?} v7\r\n * @param {?} v8\r\n * @param {?} v9\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateTextInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\r\n    var /** @type {?} */ changed = false;\r\n    var /** @type {?} */ bindings = def.bindings;\r\n    var /** @type {?} */ bindLen = bindings.length;\r\n    if (bindLen > 0 && checkAndUpdateBinding(view, def, 0, v0))\r\n        changed = true;\r\n    if (bindLen > 1 && checkAndUpdateBinding(view, def, 1, v1))\r\n        changed = true;\r\n    if (bindLen > 2 && checkAndUpdateBinding(view, def, 2, v2))\r\n        changed = true;\r\n    if (bindLen > 3 && checkAndUpdateBinding(view, def, 3, v3))\r\n        changed = true;\r\n    if (bindLen > 4 && checkAndUpdateBinding(view, def, 4, v4))\r\n        changed = true;\r\n    if (bindLen > 5 && checkAndUpdateBinding(view, def, 5, v5))\r\n        changed = true;\r\n    if (bindLen > 6 && checkAndUpdateBinding(view, def, 6, v6))\r\n        changed = true;\r\n    if (bindLen > 7 && checkAndUpdateBinding(view, def, 7, v7))\r\n        changed = true;\r\n    if (bindLen > 8 && checkAndUpdateBinding(view, def, 8, v8))\r\n        changed = true;\r\n    if (bindLen > 9 && checkAndUpdateBinding(view, def, 9, v9))\r\n        changed = true;\r\n    if (changed) {\r\n        var /** @type {?} */ value = ((def.text)).prefix;\r\n        if (bindLen > 0)\r\n            value += _addInterpolationPart(v0, bindings[0]);\r\n        if (bindLen > 1)\r\n            value += _addInterpolationPart(v1, bindings[1]);\r\n        if (bindLen > 2)\r\n            value += _addInterpolationPart(v2, bindings[2]);\r\n        if (bindLen > 3)\r\n            value += _addInterpolationPart(v3, bindings[3]);\r\n        if (bindLen > 4)\r\n            value += _addInterpolationPart(v4, bindings[4]);\r\n        if (bindLen > 5)\r\n            value += _addInterpolationPart(v5, bindings[5]);\r\n        if (bindLen > 6)\r\n            value += _addInterpolationPart(v6, bindings[6]);\r\n        if (bindLen > 7)\r\n            value += _addInterpolationPart(v7, bindings[7]);\r\n        if (bindLen > 8)\r\n            value += _addInterpolationPart(v8, bindings[8]);\r\n        if (bindLen > 9)\r\n            value += _addInterpolationPart(v9, bindings[9]);\r\n        var /** @type {?} */ renderNode$$1 = asTextData(view, def.index).renderText;\r\n        view.renderer.setValue(renderNode$$1, value);\r\n    }\r\n    return changed;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} def\r\n * @param {?} values\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateTextDynamic(view, def, values) {\r\n    var /** @type {?} */ bindings = def.bindings;\r\n    var /** @type {?} */ changed = false;\r\n    for (var /** @type {?} */ i = 0; i < values.length; i++) {\r\n        // Note: We need to loop over all values, so that\r\n        // the old values are updates as well!\r\n        if (checkAndUpdateBinding(view, def, i, values[i])) {\r\n            changed = true;\r\n        }\r\n    }\r\n    if (changed) {\r\n        var /** @type {?} */ value = '';\r\n        for (var /** @type {?} */ i = 0; i < values.length; i++) {\r\n            value = value + _addInterpolationPart(values[i], bindings[i]);\r\n        }\r\n        value = ((def.text)).prefix + value;\r\n        var /** @type {?} */ renderNode$$1 = asTextData(view, def.index).renderText;\r\n        view.renderer.setValue(renderNode$$1, value);\r\n    }\r\n    return changed;\r\n}\r\n/**\r\n * @param {?} value\r\n * @param {?} binding\r\n * @return {?}\r\n */\r\nfunction _addInterpolationPart(value, binding) {\r\n    var /** @type {?} */ valueStr = value != null ? value.toString() : '';\r\n    return valueStr + binding.suffix;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} flags\r\n * @param {?} nodes\r\n * @param {?=} updateDirectives\r\n * @param {?=} updateRenderer\r\n * @return {?}\r\n */\r\nfunction viewDef(flags, nodes, updateDirectives, updateRenderer) {\r\n    // clone nodes and set auto calculated values\r\n    var /** @type {?} */ viewBindingCount = 0;\r\n    var /** @type {?} */ viewDisposableCount = 0;\r\n    var /** @type {?} */ viewNodeFlags = 0;\r\n    var /** @type {?} */ viewRootNodeFlags = 0;\r\n    var /** @type {?} */ viewMatchedQueries = 0;\r\n    var /** @type {?} */ currentParent = null;\r\n    var /** @type {?} */ currentElementHasPublicProviders = false;\r\n    var /** @type {?} */ currentElementHasPrivateProviders = false;\r\n    var /** @type {?} */ lastRenderRootNode = null;\r\n    for (var /** @type {?} */ i = 0; i < nodes.length; i++) {\r\n        while (currentParent && i > currentParent.index + currentParent.childCount) {\r\n            var /** @type {?} */ newParent = currentParent.parent;\r\n            if (newParent) {\r\n                newParent.childFlags |= ((currentParent.childFlags));\r\n                newParent.childMatchedQueries |= currentParent.childMatchedQueries;\r\n            }\r\n            currentParent = newParent;\r\n        }\r\n        var /** @type {?} */ node = nodes[i];\r\n        node.index = i;\r\n        node.parent = currentParent;\r\n        node.bindingIndex = viewBindingCount;\r\n        node.outputIndex = viewDisposableCount;\r\n        // renderParent needs to account for ng-container!\r\n        var /** @type {?} */ currentRenderParent = void 0;\r\n        if (currentParent && currentParent.flags & 1 /* TypeElement */ &&\r\n            !((currentParent.element)).name) {\r\n            currentRenderParent = currentParent.renderParent;\r\n        }\r\n        else {\r\n            currentRenderParent = currentParent;\r\n        }\r\n        node.renderParent = currentRenderParent;\r\n        if (node.element) {\r\n            var /** @type {?} */ elDef = node.element;\r\n            elDef.publicProviders =\r\n                currentParent ? ((currentParent.element)).publicProviders : Object.create(null);\r\n            elDef.allProviders = elDef.publicProviders;\r\n            // Note: We assume that all providers of an element are before any child element!\r\n            currentElementHasPublicProviders = false;\r\n            currentElementHasPrivateProviders = false;\r\n        }\r\n        validateNode(currentParent, node, nodes.length);\r\n        viewNodeFlags |= node.flags;\r\n        viewMatchedQueries |= node.matchedQueryIds;\r\n        if (node.element && node.element.template) {\r\n            viewMatchedQueries |= node.element.template.nodeMatchedQueries;\r\n        }\r\n        if (currentParent) {\r\n            currentParent.childFlags |= node.flags;\r\n            currentParent.directChildFlags |= node.flags;\r\n            currentParent.childMatchedQueries |= node.matchedQueryIds;\r\n            if (node.element && node.element.template) {\r\n                currentParent.childMatchedQueries |= node.element.template.nodeMatchedQueries;\r\n            }\r\n        }\r\n        else {\r\n            viewRootNodeFlags |= node.flags;\r\n        }\r\n        viewBindingCount += node.bindings.length;\r\n        viewDisposableCount += node.outputs.length;\r\n        if (!currentRenderParent && (node.flags & 3 /* CatRenderNode */)) {\r\n            lastRenderRootNode = node;\r\n        }\r\n        if (node.flags & 20224 /* CatProvider */) {\r\n            if (!currentElementHasPublicProviders) {\r\n                currentElementHasPublicProviders = true; /** @type {?} */\r\n                ((((\r\n                // Use prototypical inheritance to not get O(n^2) complexity...\r\n                currentParent)).element)).publicProviders =\r\n                    Object.create(/** @type {?} */ ((((currentParent)).element)).publicProviders); /** @type {?} */\r\n                ((((currentParent)).element)).allProviders = ((((currentParent)).element)).publicProviders;\r\n            }\r\n            var /** @type {?} */ isPrivateService = (node.flags & 8192 /* PrivateProvider */) !== 0;\r\n            var /** @type {?} */ isComponent = (node.flags & 32768 /* Component */) !== 0;\r\n            if (!isPrivateService || isComponent) {\r\n                ((((((currentParent)).element)).publicProviders))[((node.provider)).tokenKey] = node;\r\n            }\r\n            else {\r\n                if (!currentElementHasPrivateProviders) {\r\n                    currentElementHasPrivateProviders = true; /** @type {?} */\r\n                    ((((\r\n                    // Use protoyypical inheritance to not get O(n^2) complexity...\r\n                    currentParent)).element)).allProviders =\r\n                        Object.create(/** @type {?} */ ((((currentParent)).element)).publicProviders);\r\n                } /** @type {?} */\r\n                ((((((currentParent)).element)).allProviders))[((node.provider)).tokenKey] = node;\r\n            }\r\n            if (isComponent) {\r\n                ((((currentParent)).element)).componentProvider = node;\r\n            }\r\n        }\r\n        if (node.childCount) {\r\n            currentParent = node;\r\n        }\r\n    }\r\n    while (currentParent) {\r\n        var /** @type {?} */ newParent = currentParent.parent;\r\n        if (newParent) {\r\n            newParent.childFlags |= currentParent.childFlags;\r\n            newParent.childMatchedQueries |= currentParent.childMatchedQueries;\r\n        }\r\n        currentParent = newParent;\r\n    }\r\n    var /** @type {?} */ handleEvent = function (view, nodeIndex, eventName, event) { return ((((nodes[nodeIndex].element)).handleEvent))(view, eventName, event); };\r\n    return {\r\n        // Will be filled later...\r\n        factory: null,\r\n        nodeFlags: viewNodeFlags,\r\n        rootNodeFlags: viewRootNodeFlags,\r\n        nodeMatchedQueries: viewMatchedQueries, flags: flags,\r\n        nodes: nodes,\r\n        updateDirectives: updateDirectives || NOOP,\r\n        updateRenderer: updateRenderer || NOOP,\r\n        handleEvent: handleEvent || NOOP,\r\n        bindingCount: viewBindingCount,\r\n        outputCount: viewDisposableCount, lastRenderRootNode: lastRenderRootNode\r\n    };\r\n}\r\n/**\r\n * @param {?} parent\r\n * @param {?} node\r\n * @param {?} nodeCount\r\n * @return {?}\r\n */\r\nfunction validateNode(parent, node, nodeCount) {\r\n    var /** @type {?} */ template = node.element && node.element.template;\r\n    if (template) {\r\n        if (!template.lastRenderRootNode) {\r\n            throw new Error(\"Illegal State: Embedded templates without nodes are not allowed!\");\r\n        }\r\n        if (template.lastRenderRootNode &&\r\n            template.lastRenderRootNode.flags & 16777216 /* EmbeddedViews */) {\r\n            throw new Error(\"Illegal State: Last root node of a template can't have embedded views, at index \" + node.index + \"!\");\r\n        }\r\n    }\r\n    if (node.flags & 20224 /* CatProvider */) {\r\n        var /** @type {?} */ parentFlags = parent ? parent.flags : 0;\r\n        if ((parentFlags & 1 /* TypeElement */) === 0) {\r\n            throw new Error(\"Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index \" + node.index + \"!\");\r\n        }\r\n    }\r\n    if (node.query) {\r\n        if (node.flags & 67108864 /* TypeContentQuery */ &&\r\n            (!parent || (parent.flags & 16384 /* TypeDirective */) === 0)) {\r\n            throw new Error(\"Illegal State: Content Query nodes need to be children of directives, at index \" + node.index + \"!\");\r\n        }\r\n        if (node.flags & 134217728 /* TypeViewQuery */ && parent) {\r\n            throw new Error(\"Illegal State: View Query nodes have to be top level nodes, at index \" + node.index + \"!\");\r\n        }\r\n    }\r\n    if (node.childCount) {\r\n        var /** @type {?} */ parentEnd = parent ? parent.index + parent.childCount : nodeCount - 1;\r\n        if (node.index <= parentEnd && node.index + node.childCount > parentEnd) {\r\n            throw new Error(\"Illegal State: childCount of node leads outside of parent, at index \" + node.index + \"!\");\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} parent\r\n * @param {?} anchorDef\r\n * @param {?=} context\r\n * @return {?}\r\n */\r\nfunction createEmbeddedView(parent, anchorDef$$1, context) {\r\n    // embedded views are seen as siblings to the anchor, so we need\r\n    // to get the parent of the anchor and use it as parentIndex.\r\n    var /** @type {?} */ view = createView(parent.root, parent.renderer, parent, anchorDef$$1, /** @type {?} */ ((((anchorDef$$1.element)).template)));\r\n    initView(view, parent.component, context);\r\n    createViewNodes(view);\r\n    return view;\r\n}\r\n/**\r\n * @param {?} root\r\n * @param {?} def\r\n * @param {?=} context\r\n * @return {?}\r\n */\r\nfunction createRootView(root, def, context) {\r\n    var /** @type {?} */ view = createView(root, root.renderer, null, null, def);\r\n    initView(view, context, context);\r\n    createViewNodes(view);\r\n    return view;\r\n}\r\n/**\r\n * @param {?} root\r\n * @param {?} renderer\r\n * @param {?} parent\r\n * @param {?} parentNodeDef\r\n * @param {?} def\r\n * @return {?}\r\n */\r\nfunction createView(root, renderer, parent, parentNodeDef, def) {\r\n    var /** @type {?} */ nodes = new Array(def.nodes.length);\r\n    var /** @type {?} */ disposables = def.outputCount ? new Array(def.outputCount) : null;\r\n    var /** @type {?} */ view = {\r\n        def: def,\r\n        parent: parent,\r\n        viewContainerParent: null, parentNodeDef: parentNodeDef,\r\n        context: null,\r\n        component: null, nodes: nodes,\r\n        state: 13 /* CatInit */, root: root, renderer: renderer,\r\n        oldValues: new Array(def.bindingCount), disposables: disposables\r\n    };\r\n    return view;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} component\r\n * @param {?} context\r\n * @return {?}\r\n */\r\nfunction initView(view, component, context) {\r\n    view.component = component;\r\n    view.context = context;\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction createViewNodes(view) {\r\n    var /** @type {?} */ renderHost;\r\n    if (isComponentView(view)) {\r\n        var /** @type {?} */ hostDef = view.parentNodeDef;\r\n        renderHost = asElementData(/** @type {?} */ ((view.parent)), /** @type {?} */ ((((hostDef)).parent)).index).renderElement;\r\n    }\r\n    var /** @type {?} */ def = view.def;\r\n    var /** @type {?} */ nodes = view.nodes;\r\n    for (var /** @type {?} */ i = 0; i < def.nodes.length; i++) {\r\n        var /** @type {?} */ nodeDef = def.nodes[i];\r\n        Services.setCurrentNode(view, i);\r\n        var /** @type {?} */ nodeData = void 0;\r\n        switch (nodeDef.flags & 201347067 /* Types */) {\r\n            case 1 /* TypeElement */:\r\n                var /** @type {?} */ el = (createElement(view, renderHost, nodeDef));\r\n                var /** @type {?} */ componentView = ((undefined));\r\n                if (nodeDef.flags & 33554432 /* ComponentView */) {\r\n                    var /** @type {?} */ compViewDef = resolveViewDefinition(/** @type {?} */ ((((nodeDef.element)).componentView)));\r\n                    var /** @type {?} */ rendererType = ((nodeDef.element)).componentRendererType;\r\n                    var /** @type {?} */ compRenderer = void 0;\r\n                    if (!rendererType) {\r\n                        compRenderer = view.root.renderer;\r\n                    }\r\n                    else {\r\n                        compRenderer = view.root.rendererFactory.createRenderer(el, rendererType);\r\n                    }\r\n                    componentView = createView(view.root, compRenderer, view, /** @type {?} */ ((nodeDef.element)).componentProvider, compViewDef);\r\n                }\r\n                listenToElementOutputs(view, componentView, nodeDef, el);\r\n                nodeData = ({\r\n                    renderElement: el,\r\n                    componentView: componentView,\r\n                    viewContainer: null,\r\n                    template: /** @type {?} */ ((nodeDef.element)).template ? createTemplateData(view, nodeDef) : undefined\r\n                });\r\n                if (nodeDef.flags & 16777216 /* EmbeddedViews */) {\r\n                    nodeData.viewContainer = createViewContainerData(view, nodeDef, nodeData);\r\n                }\r\n                break;\r\n            case 2 /* TypeText */:\r\n                nodeData = (createText(view, renderHost, nodeDef));\r\n                break;\r\n            case 512 /* TypeClassProvider */:\r\n            case 1024 /* TypeFactoryProvider */:\r\n            case 2048 /* TypeUseExistingProvider */:\r\n            case 256 /* TypeValueProvider */: {\r\n                var /** @type {?} */ instance = createProviderInstance(view, nodeDef);\r\n                nodeData = ({ instance: instance });\r\n                break;\r\n            }\r\n            case 16 /* TypePipe */: {\r\n                var /** @type {?} */ instance = createPipeInstance(view, nodeDef);\r\n                nodeData = ({ instance: instance });\r\n                break;\r\n            }\r\n            case 16384 /* TypeDirective */: {\r\n                var /** @type {?} */ instance = createDirectiveInstance(view, nodeDef);\r\n                nodeData = ({ instance: instance });\r\n                if (nodeDef.flags & 32768 /* Component */) {\r\n                    var /** @type {?} */ compView = asElementData(view, /** @type {?} */ ((nodeDef.parent)).index).componentView;\r\n                    initView(compView, instance, instance);\r\n                }\r\n                break;\r\n            }\r\n            case 32 /* TypePureArray */:\r\n            case 64 /* TypePureObject */:\r\n            case 128 /* TypePurePipe */:\r\n                nodeData = (createPureExpression(view, nodeDef));\r\n                break;\r\n            case 67108864 /* TypeContentQuery */:\r\n            case 134217728 /* TypeViewQuery */:\r\n                nodeData = (createQuery());\r\n                break;\r\n            case 8 /* TypeNgContent */:\r\n                appendNgContent(view, renderHost, nodeDef);\r\n                // no runtime data needed for NgContent...\r\n                nodeData = undefined;\r\n                break;\r\n        }\r\n        nodes[i] = nodeData;\r\n    }\r\n    // Create the ViewData.nodes of component views after we created everything else,\r\n    // so that e.g. ng-content works\r\n    execComponentViewsAction(view, ViewAction.CreateViewNodes);\r\n    // fill static content and view queries\r\n    execQueriesAction(view, 67108864 /* TypeContentQuery */ | 134217728 /* TypeViewQuery */, 268435456 /* StaticQuery */, 0 /* CheckAndUpdate */);\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction checkNoChangesView(view) {\r\n    markProjectedViewsForCheck(view);\r\n    Services.updateDirectives(view, 1 /* CheckNoChanges */);\r\n    execEmbeddedViewsAction(view, ViewAction.CheckNoChanges);\r\n    Services.updateRenderer(view, 1 /* CheckNoChanges */);\r\n    execComponentViewsAction(view, ViewAction.CheckNoChanges);\r\n    // Note: We don't check queries for changes as we didn't do this in v2.x.\r\n    // TODO(tbosch): investigate if we can enable the check again in v5.x with a nicer error message.\r\n    view.state &= ~(64 /* CheckProjectedViews */ | 32 /* CheckProjectedView */);\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateView(view) {\r\n    if (view.state & 1 /* BeforeFirstCheck */) {\r\n        view.state &= ~1 /* BeforeFirstCheck */;\r\n        view.state |= 2 /* FirstCheck */;\r\n    }\r\n    else {\r\n        view.state &= ~2 /* FirstCheck */;\r\n    }\r\n    markProjectedViewsForCheck(view);\r\n    Services.updateDirectives(view, 0 /* CheckAndUpdate */);\r\n    execEmbeddedViewsAction(view, ViewAction.CheckAndUpdate);\r\n    execQueriesAction(view, 67108864 /* TypeContentQuery */, 536870912 /* DynamicQuery */, 0 /* CheckAndUpdate */);\r\n    callLifecycleHooksChildrenFirst(view, 2097152 /* AfterContentChecked */ |\r\n        (view.state & 2 /* FirstCheck */ ? 1048576 /* AfterContentInit */ : 0));\r\n    Services.updateRenderer(view, 0 /* CheckAndUpdate */);\r\n    execComponentViewsAction(view, ViewAction.CheckAndUpdate);\r\n    execQueriesAction(view, 134217728 /* TypeViewQuery */, 536870912 /* DynamicQuery */, 0 /* CheckAndUpdate */);\r\n    callLifecycleHooksChildrenFirst(view, 8388608 /* AfterViewChecked */ |\r\n        (view.state & 2 /* FirstCheck */ ? 4194304 /* AfterViewInit */ : 0));\r\n    if (view.def.flags & 2 /* OnPush */) {\r\n        view.state &= ~8 /* ChecksEnabled */;\r\n    }\r\n    view.state &= ~(64 /* CheckProjectedViews */ | 32 /* CheckProjectedView */);\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?} argStyle\r\n * @param {?=} v0\r\n * @param {?=} v1\r\n * @param {?=} v2\r\n * @param {?=} v3\r\n * @param {?=} v4\r\n * @param {?=} v5\r\n * @param {?=} v6\r\n * @param {?=} v7\r\n * @param {?=} v8\r\n * @param {?=} v9\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\r\n    if (argStyle === 0 /* Inline */) {\r\n        return checkAndUpdateNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);\r\n    }\r\n    else {\r\n        return checkAndUpdateNodeDynamic(view, nodeDef, v0);\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction markProjectedViewsForCheck(view) {\r\n    var /** @type {?} */ def = view.def;\r\n    if (!(def.nodeFlags & 4 /* ProjectedTemplate */)) {\r\n        return;\r\n    }\r\n    for (var /** @type {?} */ i = 0; i < def.nodes.length; i++) {\r\n        var /** @type {?} */ nodeDef = def.nodes[i];\r\n        if (nodeDef.flags & 4 /* ProjectedTemplate */) {\r\n            var /** @type {?} */ projectedViews = asElementData(view, i).template._projectedViews;\r\n            if (projectedViews) {\r\n                for (var /** @type {?} */ i_1 = 0; i_1 < projectedViews.length; i_1++) {\r\n                    var /** @type {?} */ projectedView = projectedViews[i_1];\r\n                    projectedView.state |= 32 /* CheckProjectedView */;\r\n                    markParentViewsForCheckProjectedViews(projectedView, view);\r\n                }\r\n            }\r\n        }\r\n        else if ((nodeDef.childFlags & 4 /* ProjectedTemplate */) === 0) {\r\n            // a parent with leafs\r\n            // no child is a component,\r\n            // then skip the children\r\n            i += nodeDef.childCount;\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?=} v0\r\n * @param {?=} v1\r\n * @param {?=} v2\r\n * @param {?=} v3\r\n * @param {?=} v4\r\n * @param {?=} v5\r\n * @param {?=} v6\r\n * @param {?=} v7\r\n * @param {?=} v8\r\n * @param {?=} v9\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\r\n    var /** @type {?} */ changed = false;\r\n    switch (nodeDef.flags & 201347067 /* Types */) {\r\n        case 1 /* TypeElement */:\r\n            changed = checkAndUpdateElementInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);\r\n            break;\r\n        case 2 /* TypeText */:\r\n            changed = checkAndUpdateTextInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);\r\n            break;\r\n        case 16384 /* TypeDirective */:\r\n            changed =\r\n                checkAndUpdateDirectiveInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);\r\n            break;\r\n        case 32 /* TypePureArray */:\r\n        case 64 /* TypePureObject */:\r\n        case 128 /* TypePurePipe */:\r\n            changed =\r\n                checkAndUpdatePureExpressionInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);\r\n            break;\r\n    }\r\n    return changed;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?} values\r\n * @return {?}\r\n */\r\nfunction checkAndUpdateNodeDynamic(view, nodeDef, values) {\r\n    var /** @type {?} */ changed = false;\r\n    switch (nodeDef.flags & 201347067 /* Types */) {\r\n        case 1 /* TypeElement */:\r\n            changed = checkAndUpdateElementDynamic(view, nodeDef, values);\r\n            break;\r\n        case 2 /* TypeText */:\r\n            changed = checkAndUpdateTextDynamic(view, nodeDef, values);\r\n            break;\r\n        case 16384 /* TypeDirective */:\r\n            changed = checkAndUpdateDirectiveDynamic(view, nodeDef, values);\r\n            break;\r\n        case 32 /* TypePureArray */:\r\n        case 64 /* TypePureObject */:\r\n        case 128 /* TypePurePipe */:\r\n            changed = checkAndUpdatePureExpressionDynamic(view, nodeDef, values);\r\n            break;\r\n    }\r\n    if (changed) {\r\n        // Update oldValues after all bindings have been updated,\r\n        // as a setter for a property might update other properties.\r\n        var /** @type {?} */ bindLen = nodeDef.bindings.length;\r\n        var /** @type {?} */ bindingStart = nodeDef.bindingIndex;\r\n        var /** @type {?} */ oldValues = view.oldValues;\r\n        for (var /** @type {?} */ i = 0; i < bindLen; i++) {\r\n            oldValues[bindingStart + i] = values[i];\r\n        }\r\n    }\r\n    return changed;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?} argStyle\r\n * @param {?=} v0\r\n * @param {?=} v1\r\n * @param {?=} v2\r\n * @param {?=} v3\r\n * @param {?=} v4\r\n * @param {?=} v5\r\n * @param {?=} v6\r\n * @param {?=} v7\r\n * @param {?=} v8\r\n * @param {?=} v9\r\n * @return {?}\r\n */\r\nfunction checkNoChangesNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\r\n    if (argStyle === 0 /* Inline */) {\r\n        checkNoChangesNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);\r\n    }\r\n    else {\r\n        checkNoChangesNodeDynamic(view, nodeDef, v0);\r\n    }\r\n    // Returning false is ok here as we would have thrown in case of a change.\r\n    return false;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?} v0\r\n * @param {?} v1\r\n * @param {?} v2\r\n * @param {?} v3\r\n * @param {?} v4\r\n * @param {?} v5\r\n * @param {?} v6\r\n * @param {?} v7\r\n * @param {?} v8\r\n * @param {?} v9\r\n * @return {?}\r\n */\r\nfunction checkNoChangesNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\r\n    var /** @type {?} */ bindLen = nodeDef.bindings.length;\r\n    if (bindLen > 0)\r\n        checkBindingNoChanges(view, nodeDef, 0, v0);\r\n    if (bindLen > 1)\r\n        checkBindingNoChanges(view, nodeDef, 1, v1);\r\n    if (bindLen > 2)\r\n        checkBindingNoChanges(view, nodeDef, 2, v2);\r\n    if (bindLen > 3)\r\n        checkBindingNoChanges(view, nodeDef, 3, v3);\r\n    if (bindLen > 4)\r\n        checkBindingNoChanges(view, nodeDef, 4, v4);\r\n    if (bindLen > 5)\r\n        checkBindingNoChanges(view, nodeDef, 5, v5);\r\n    if (bindLen > 6)\r\n        checkBindingNoChanges(view, nodeDef, 6, v6);\r\n    if (bindLen > 7)\r\n        checkBindingNoChanges(view, nodeDef, 7, v7);\r\n    if (bindLen > 8)\r\n        checkBindingNoChanges(view, nodeDef, 8, v8);\r\n    if (bindLen > 9)\r\n        checkBindingNoChanges(view, nodeDef, 9, v9);\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?} values\r\n * @return {?}\r\n */\r\nfunction checkNoChangesNodeDynamic(view, nodeDef, values) {\r\n    for (var /** @type {?} */ i = 0; i < values.length; i++) {\r\n        checkBindingNoChanges(view, nodeDef, i, values[i]);\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @return {?}\r\n */\r\nfunction checkNoChangesQuery(view, nodeDef) {\r\n    var /** @type {?} */ queryList = asQueryList(view, nodeDef.index);\r\n    if (queryList.dirty) {\r\n        throw expressionChangedAfterItHasBeenCheckedError(Services.createDebugContext(view, nodeDef.index), \"Query \" + ((nodeDef.query)).id + \" not dirty\", \"Query \" + ((nodeDef.query)).id + \" dirty\", (view.state & 1 /* BeforeFirstCheck */) !== 0);\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction destroyView(view) {\r\n    if (view.state & 128 /* Destroyed */) {\r\n        return;\r\n    }\r\n    execEmbeddedViewsAction(view, ViewAction.Destroy);\r\n    execComponentViewsAction(view, ViewAction.Destroy);\r\n    callLifecycleHooksChildrenFirst(view, 131072 /* OnDestroy */);\r\n    if (view.disposables) {\r\n        for (var /** @type {?} */ i = 0; i < view.disposables.length; i++) {\r\n            view.disposables[i]();\r\n        }\r\n    }\r\n    detachProjectedView(view);\r\n    if (view.renderer.destroyNode) {\r\n        destroyViewNodes(view);\r\n    }\r\n    if (isComponentView(view)) {\r\n        view.renderer.destroy();\r\n    }\r\n    view.state |= 128 /* Destroyed */;\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction destroyViewNodes(view) {\r\n    var /** @type {?} */ len = view.def.nodes.length;\r\n    for (var /** @type {?} */ i = 0; i < len; i++) {\r\n        var /** @type {?} */ def = view.def.nodes[i];\r\n        if (def.flags & 1 /* TypeElement */) {\r\n            ((view.renderer.destroyNode))(asElementData(view, i).renderElement);\r\n        }\r\n        else if (def.flags & 2 /* TypeText */) {\r\n            ((view.renderer.destroyNode))(asTextData(view, i).renderText);\r\n        }\r\n    }\r\n}\r\nvar ViewAction = {};\r\nViewAction.CreateViewNodes = 0;\r\nViewAction.CheckNoChanges = 1;\r\nViewAction.CheckNoChangesProjectedViews = 2;\r\nViewAction.CheckAndUpdate = 3;\r\nViewAction.CheckAndUpdateProjectedViews = 4;\r\nViewAction.Destroy = 5;\r\nViewAction[ViewAction.CreateViewNodes] = \"CreateViewNodes\";\r\nViewAction[ViewAction.CheckNoChanges] = \"CheckNoChanges\";\r\nViewAction[ViewAction.CheckNoChangesProjectedViews] = \"CheckNoChangesProjectedViews\";\r\nViewAction[ViewAction.CheckAndUpdate] = \"CheckAndUpdate\";\r\nViewAction[ViewAction.CheckAndUpdateProjectedViews] = \"CheckAndUpdateProjectedViews\";\r\nViewAction[ViewAction.Destroy] = \"Destroy\";\r\n/**\r\n * @param {?} view\r\n * @param {?} action\r\n * @return {?}\r\n */\r\nfunction execComponentViewsAction(view, action) {\r\n    var /** @type {?} */ def = view.def;\r\n    if (!(def.nodeFlags & 33554432 /* ComponentView */)) {\r\n        return;\r\n    }\r\n    for (var /** @type {?} */ i = 0; i < def.nodes.length; i++) {\r\n        var /** @type {?} */ nodeDef = def.nodes[i];\r\n        if (nodeDef.flags & 33554432 /* ComponentView */) {\r\n            // a leaf\r\n            callViewAction(asElementData(view, i).componentView, action);\r\n        }\r\n        else if ((nodeDef.childFlags & 33554432 /* ComponentView */) === 0) {\r\n            // a parent with leafs\r\n            // no child is a component,\r\n            // then skip the children\r\n            i += nodeDef.childCount;\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} action\r\n * @return {?}\r\n */\r\nfunction execEmbeddedViewsAction(view, action) {\r\n    var /** @type {?} */ def = view.def;\r\n    if (!(def.nodeFlags & 16777216 /* EmbeddedViews */)) {\r\n        return;\r\n    }\r\n    for (var /** @type {?} */ i = 0; i < def.nodes.length; i++) {\r\n        var /** @type {?} */ nodeDef = def.nodes[i];\r\n        if (nodeDef.flags & 16777216 /* EmbeddedViews */) {\r\n            // a leaf\r\n            var /** @type {?} */ embeddedViews = ((asElementData(view, i).viewContainer))._embeddedViews;\r\n            for (var /** @type {?} */ k = 0; k < embeddedViews.length; k++) {\r\n                callViewAction(embeddedViews[k], action);\r\n            }\r\n        }\r\n        else if ((nodeDef.childFlags & 16777216 /* EmbeddedViews */) === 0) {\r\n            // a parent with leafs\r\n            // no child is a component,\r\n            // then skip the children\r\n            i += nodeDef.childCount;\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} action\r\n * @return {?}\r\n */\r\nfunction callViewAction(view, action) {\r\n    var /** @type {?} */ viewState = view.state;\r\n    switch (action) {\r\n        case ViewAction.CheckNoChanges:\r\n            if ((viewState & 128 /* Destroyed */) === 0) {\r\n                if ((viewState & 12 /* CatDetectChanges */) === 12 /* CatDetectChanges */) {\r\n                    checkNoChangesView(view);\r\n                }\r\n                else if (viewState & 64 /* CheckProjectedViews */) {\r\n                    execProjectedViewsAction(view, ViewAction.CheckNoChangesProjectedViews);\r\n                }\r\n            }\r\n            break;\r\n        case ViewAction.CheckNoChangesProjectedViews:\r\n            if ((viewState & 128 /* Destroyed */) === 0) {\r\n                if (viewState & 32 /* CheckProjectedView */) {\r\n                    checkNoChangesView(view);\r\n                }\r\n                else if (viewState & 64 /* CheckProjectedViews */) {\r\n                    execProjectedViewsAction(view, action);\r\n                }\r\n            }\r\n            break;\r\n        case ViewAction.CheckAndUpdate:\r\n            if ((viewState & 128 /* Destroyed */) === 0) {\r\n                if ((viewState & 12 /* CatDetectChanges */) === 12 /* CatDetectChanges */) {\r\n                    checkAndUpdateView(view);\r\n                }\r\n                else if (viewState & 64 /* CheckProjectedViews */) {\r\n                    execProjectedViewsAction(view, ViewAction.CheckAndUpdateProjectedViews);\r\n                }\r\n            }\r\n            break;\r\n        case ViewAction.CheckAndUpdateProjectedViews:\r\n            if ((viewState & 128 /* Destroyed */) === 0) {\r\n                if (viewState & 32 /* CheckProjectedView */) {\r\n                    checkAndUpdateView(view);\r\n                }\r\n                else if (viewState & 64 /* CheckProjectedViews */) {\r\n                    execProjectedViewsAction(view, action);\r\n                }\r\n            }\r\n            break;\r\n        case ViewAction.Destroy:\r\n            // Note: destroyView recurses over all views,\r\n            // so we don't need to special case projected views here.\r\n            destroyView(view);\r\n            break;\r\n        case ViewAction.CreateViewNodes:\r\n            createViewNodes(view);\r\n            break;\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} action\r\n * @return {?}\r\n */\r\nfunction execProjectedViewsAction(view, action) {\r\n    execEmbeddedViewsAction(view, action);\r\n    execComponentViewsAction(view, action);\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} queryFlags\r\n * @param {?} staticDynamicQueryFlag\r\n * @param {?} checkType\r\n * @return {?}\r\n */\r\nfunction execQueriesAction(view, queryFlags, staticDynamicQueryFlag, checkType) {\r\n    if (!(view.def.nodeFlags & queryFlags) || !(view.def.nodeFlags & staticDynamicQueryFlag)) {\r\n        return;\r\n    }\r\n    var /** @type {?} */ nodeCount = view.def.nodes.length;\r\n    for (var /** @type {?} */ i = 0; i < nodeCount; i++) {\r\n        var /** @type {?} */ nodeDef = view.def.nodes[i];\r\n        if ((nodeDef.flags & queryFlags) && (nodeDef.flags & staticDynamicQueryFlag)) {\r\n            Services.setCurrentNode(view, nodeDef.index);\r\n            switch (checkType) {\r\n                case 0 /* CheckAndUpdate */:\r\n                    checkAndUpdateQuery(view, nodeDef);\r\n                    break;\r\n                case 1 /* CheckNoChanges */:\r\n                    checkNoChangesQuery(view, nodeDef);\r\n                    break;\r\n            }\r\n        }\r\n        if (!(nodeDef.childFlags & queryFlags) || !(nodeDef.childFlags & staticDynamicQueryFlag)) {\r\n            // no child has a matching query\r\n            // then skip the children\r\n            i += nodeDef.childCount;\r\n        }\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar initialized = false;\r\n/**\r\n * @return {?}\r\n */\r\nfunction initServicesIfNeeded() {\r\n    if (initialized) {\r\n        return;\r\n    }\r\n    initialized = true;\r\n    var /** @type {?} */ services = isDevMode() ? createDebugServices() : createProdServices();\r\n    Services.setCurrentNode = services.setCurrentNode;\r\n    Services.createRootView = services.createRootView;\r\n    Services.createEmbeddedView = services.createEmbeddedView;\r\n    Services.checkAndUpdateView = services.checkAndUpdateView;\r\n    Services.checkNoChangesView = services.checkNoChangesView;\r\n    Services.destroyView = services.destroyView;\r\n    Services.resolveDep = resolveDep;\r\n    Services.createDebugContext = services.createDebugContext;\r\n    Services.handleEvent = services.handleEvent;\r\n    Services.updateDirectives = services.updateDirectives;\r\n    Services.updateRenderer = services.updateRenderer;\r\n    Services.dirtyParentQueries = dirtyParentQueries;\r\n}\r\n/**\r\n * @return {?}\r\n */\r\nfunction createProdServices() {\r\n    return {\r\n        setCurrentNode: function () { },\r\n        createRootView: createProdRootView,\r\n        createEmbeddedView: createEmbeddedView,\r\n        checkAndUpdateView: checkAndUpdateView,\r\n        checkNoChangesView: checkNoChangesView,\r\n        destroyView: destroyView,\r\n        createDebugContext: function (view, nodeIndex) { return new DebugContext_(view, nodeIndex); },\r\n        handleEvent: function (view, nodeIndex, eventName, event) { return view.def.handleEvent(view, nodeIndex, eventName, event); },\r\n        updateDirectives: function (view, checkType) { return view.def.updateDirectives(checkType === 0 /* CheckAndUpdate */ ? prodCheckAndUpdateNode :\r\n            prodCheckNoChangesNode, view); },\r\n        updateRenderer: function (view, checkType) { return view.def.updateRenderer(checkType === 0 /* CheckAndUpdate */ ? prodCheckAndUpdateNode :\r\n            prodCheckNoChangesNode, view); },\r\n    };\r\n}\r\n/**\r\n * @return {?}\r\n */\r\nfunction createDebugServices() {\r\n    return {\r\n        setCurrentNode: debugSetCurrentNode,\r\n        createRootView: debugCreateRootView,\r\n        createEmbeddedView: debugCreateEmbeddedView,\r\n        checkAndUpdateView: debugCheckAndUpdateView,\r\n        checkNoChangesView: debugCheckNoChangesView,\r\n        destroyView: debugDestroyView,\r\n        createDebugContext: function (view, nodeIndex) { return new DebugContext_(view, nodeIndex); },\r\n        handleEvent: debugHandleEvent,\r\n        updateDirectives: debugUpdateDirectives,\r\n        updateRenderer: debugUpdateRenderer\r\n    };\r\n}\r\n/**\r\n * @param {?} elInjector\r\n * @param {?} projectableNodes\r\n * @param {?} rootSelectorOrNode\r\n * @param {?} def\r\n * @param {?} ngModule\r\n * @param {?=} context\r\n * @return {?}\r\n */\r\nfunction createProdRootView(elInjector, projectableNodes, rootSelectorOrNode, def, ngModule, context) {\r\n    var /** @type {?} */ rendererFactory = ngModule.injector.get(RendererFactory2);\r\n    return createRootView(createRootData(elInjector, ngModule, rendererFactory, projectableNodes, rootSelectorOrNode), def, context);\r\n}\r\n/**\r\n * @param {?} elInjector\r\n * @param {?} projectableNodes\r\n * @param {?} rootSelectorOrNode\r\n * @param {?} def\r\n * @param {?} ngModule\r\n * @param {?=} context\r\n * @return {?}\r\n */\r\nfunction debugCreateRootView(elInjector, projectableNodes, rootSelectorOrNode, def, ngModule, context) {\r\n    var /** @type {?} */ rendererFactory = ngModule.injector.get(RendererFactory2);\r\n    var /** @type {?} */ root = createRootData(elInjector, ngModule, new DebugRendererFactory2(rendererFactory), projectableNodes, rootSelectorOrNode);\r\n    return callWithDebugContext(DebugAction.create, createRootView, null, [root, def, context]);\r\n}\r\n/**\r\n * @param {?} elInjector\r\n * @param {?} ngModule\r\n * @param {?} rendererFactory\r\n * @param {?} projectableNodes\r\n * @param {?} rootSelectorOrNode\r\n * @return {?}\r\n */\r\nfunction createRootData(elInjector, ngModule, rendererFactory, projectableNodes, rootSelectorOrNode) {\r\n    var /** @type {?} */ sanitizer = ngModule.injector.get(Sanitizer);\r\n    var /** @type {?} */ errorHandler = ngModule.injector.get(ErrorHandler);\r\n    var /** @type {?} */ renderer = rendererFactory.createRenderer(null, null);\r\n    return {\r\n        ngModule: ngModule,\r\n        injector: elInjector, projectableNodes: projectableNodes,\r\n        selectorOrNode: rootSelectorOrNode, sanitizer: sanitizer, rendererFactory: rendererFactory, renderer: renderer, errorHandler: errorHandler\r\n    };\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeIndex\r\n * @param {?} argStyle\r\n * @param {?=} v0\r\n * @param {?=} v1\r\n * @param {?=} v2\r\n * @param {?=} v3\r\n * @param {?=} v4\r\n * @param {?=} v5\r\n * @param {?=} v6\r\n * @param {?=} v7\r\n * @param {?=} v8\r\n * @param {?=} v9\r\n * @return {?}\r\n */\r\nfunction prodCheckAndUpdateNode(view, nodeIndex, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\r\n    var /** @type {?} */ nodeDef = view.def.nodes[nodeIndex];\r\n    checkAndUpdateNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);\r\n    return (nodeDef.flags & 224 /* CatPureExpression */) ?\r\n        asPureExpressionData(view, nodeIndex).value :\r\n        undefined;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeIndex\r\n * @param {?} argStyle\r\n * @param {?=} v0\r\n * @param {?=} v1\r\n * @param {?=} v2\r\n * @param {?=} v3\r\n * @param {?=} v4\r\n * @param {?=} v5\r\n * @param {?=} v6\r\n * @param {?=} v7\r\n * @param {?=} v8\r\n * @param {?=} v9\r\n * @return {?}\r\n */\r\nfunction prodCheckNoChangesNode(view, nodeIndex, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {\r\n    var /** @type {?} */ nodeDef = view.def.nodes[nodeIndex];\r\n    checkNoChangesNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);\r\n    return (nodeDef.flags & 224 /* CatPureExpression */) ?\r\n        asPureExpressionData(view, nodeIndex).value :\r\n        undefined;\r\n}\r\n/**\r\n * @param {?} parent\r\n * @param {?} anchorDef\r\n * @param {?=} context\r\n * @return {?}\r\n */\r\nfunction debugCreateEmbeddedView(parent, anchorDef, context) {\r\n    return callWithDebugContext(DebugAction.create, createEmbeddedView, null, [parent, anchorDef, context]);\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction debugCheckAndUpdateView(view) {\r\n    return callWithDebugContext(DebugAction.detectChanges, checkAndUpdateView, null, [view]);\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction debugCheckNoChangesView(view) {\r\n    return callWithDebugContext(DebugAction.checkNoChanges, checkNoChangesView, null, [view]);\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction debugDestroyView(view) {\r\n    return callWithDebugContext(DebugAction.destroy, destroyView, null, [view]);\r\n}\r\nvar DebugAction = {};\r\nDebugAction.create = 0;\r\nDebugAction.detectChanges = 1;\r\nDebugAction.checkNoChanges = 2;\r\nDebugAction.destroy = 3;\r\nDebugAction.handleEvent = 4;\r\nDebugAction[DebugAction.create] = \"create\";\r\nDebugAction[DebugAction.detectChanges] = \"detectChanges\";\r\nDebugAction[DebugAction.checkNoChanges] = \"checkNoChanges\";\r\nDebugAction[DebugAction.destroy] = \"destroy\";\r\nDebugAction[DebugAction.handleEvent] = \"handleEvent\";\r\nvar _currentAction;\r\nvar _currentView;\r\nvar _currentNodeIndex;\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeIndex\r\n * @return {?}\r\n */\r\nfunction debugSetCurrentNode(view, nodeIndex) {\r\n    _currentView = view;\r\n    _currentNodeIndex = nodeIndex;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeIndex\r\n * @param {?} eventName\r\n * @param {?} event\r\n * @return {?}\r\n */\r\nfunction debugHandleEvent(view, nodeIndex, eventName, event) {\r\n    debugSetCurrentNode(view, nodeIndex);\r\n    return callWithDebugContext(DebugAction.handleEvent, view.def.handleEvent, null, [view, nodeIndex, eventName, event]);\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} checkType\r\n * @return {?}\r\n */\r\nfunction debugUpdateDirectives(view, checkType) {\r\n    if (view.state & 128 /* Destroyed */) {\r\n        throw viewDestroyedError(DebugAction[_currentAction]);\r\n    }\r\n    debugSetCurrentNode(view, nextDirectiveWithBinding(view, 0));\r\n    return view.def.updateDirectives(debugCheckDirectivesFn, view);\r\n    /**\r\n     * @param {?} view\r\n     * @param {?} nodeIndex\r\n     * @param {?} argStyle\r\n     * @param {...?} values\r\n     * @return {?}\r\n     */\r\n    function debugCheckDirectivesFn(view, nodeIndex, argStyle) {\r\n        var values = [];\r\n        for (var _i = 3; _i < arguments.length; _i++) {\r\n            values[_i - 3] = arguments[_i];\r\n        }\r\n        var /** @type {?} */ nodeDef = view.def.nodes[nodeIndex];\r\n        if (checkType === 0 /* CheckAndUpdate */) {\r\n            debugCheckAndUpdateNode(view, nodeDef, argStyle, values);\r\n        }\r\n        else {\r\n            debugCheckNoChangesNode(view, nodeDef, argStyle, values);\r\n        }\r\n        if (nodeDef.flags & 16384 /* TypeDirective */) {\r\n            debugSetCurrentNode(view, nextDirectiveWithBinding(view, nodeIndex));\r\n        }\r\n        return (nodeDef.flags & 224 /* CatPureExpression */) ?\r\n            asPureExpressionData(view, nodeDef.index).value :\r\n            undefined;\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} checkType\r\n * @return {?}\r\n */\r\nfunction debugUpdateRenderer(view, checkType) {\r\n    if (view.state & 128 /* Destroyed */) {\r\n        throw viewDestroyedError(DebugAction[_currentAction]);\r\n    }\r\n    debugSetCurrentNode(view, nextRenderNodeWithBinding(view, 0));\r\n    return view.def.updateRenderer(debugCheckRenderNodeFn, view);\r\n    /**\r\n     * @param {?} view\r\n     * @param {?} nodeIndex\r\n     * @param {?} argStyle\r\n     * @param {...?} values\r\n     * @return {?}\r\n     */\r\n    function debugCheckRenderNodeFn(view, nodeIndex, argStyle) {\r\n        var values = [];\r\n        for (var _i = 3; _i < arguments.length; _i++) {\r\n            values[_i - 3] = arguments[_i];\r\n        }\r\n        var /** @type {?} */ nodeDef = view.def.nodes[nodeIndex];\r\n        if (checkType === 0 /* CheckAndUpdate */) {\r\n            debugCheckAndUpdateNode(view, nodeDef, argStyle, values);\r\n        }\r\n        else {\r\n            debugCheckNoChangesNode(view, nodeDef, argStyle, values);\r\n        }\r\n        if (nodeDef.flags & 3 /* CatRenderNode */) {\r\n            debugSetCurrentNode(view, nextRenderNodeWithBinding(view, nodeIndex));\r\n        }\r\n        return (nodeDef.flags & 224 /* CatPureExpression */) ?\r\n            asPureExpressionData(view, nodeDef.index).value :\r\n            undefined;\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?} argStyle\r\n * @param {?} givenValues\r\n * @return {?}\r\n */\r\nfunction debugCheckAndUpdateNode(view, nodeDef, argStyle, givenValues) {\r\n    var /** @type {?} */ changed = ((checkAndUpdateNode)).apply(void 0, [view, nodeDef, argStyle].concat(givenValues));\r\n    if (changed) {\r\n        var /** @type {?} */ values = argStyle === 1 /* Dynamic */ ? givenValues[0] : givenValues;\r\n        if (nodeDef.flags & 16384 /* TypeDirective */) {\r\n            var /** @type {?} */ bindingValues = {};\r\n            for (var /** @type {?} */ i = 0; i < nodeDef.bindings.length; i++) {\r\n                var /** @type {?} */ binding = nodeDef.bindings[i];\r\n                var /** @type {?} */ value = values[i];\r\n                if (binding.flags & 8 /* TypeProperty */) {\r\n                    bindingValues[normalizeDebugBindingName(/** @type {?} */ ((binding.nonMinifiedName)))] =\r\n                        normalizeDebugBindingValue(value);\r\n                }\r\n            }\r\n            var /** @type {?} */ elDef = ((nodeDef.parent));\r\n            var /** @type {?} */ el = asElementData(view, elDef.index).renderElement;\r\n            if (!((elDef.element)).name) {\r\n                // a comment.\r\n                view.renderer.setValue(el, \"bindings=\" + JSON.stringify(bindingValues, null, 2));\r\n            }\r\n            else {\r\n                // a regular element.\r\n                for (var /** @type {?} */ attr in bindingValues) {\r\n                    var /** @type {?} */ value = bindingValues[attr];\r\n                    if (value != null) {\r\n                        view.renderer.setAttribute(el, attr, value);\r\n                    }\r\n                    else {\r\n                        view.renderer.removeAttribute(el, attr);\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?} argStyle\r\n * @param {?} values\r\n * @return {?}\r\n */\r\nfunction debugCheckNoChangesNode(view, nodeDef, argStyle, values) {\r\n    ((checkNoChangesNode)).apply(void 0, [view, nodeDef, argStyle].concat(values));\r\n}\r\n/**\r\n * @param {?} name\r\n * @return {?}\r\n */\r\nfunction normalizeDebugBindingName(name) {\r\n    // Attribute names with `$` (eg `x-y$`) are valid per spec, but unsupported by some browsers\r\n    name = camelCaseToDashCase(name.replace(/[$@]/g, '_'));\r\n    return \"ng-reflect-\" + name;\r\n}\r\nvar CAMEL_CASE_REGEXP = /([A-Z])/g;\r\n/**\r\n * @param {?} input\r\n * @return {?}\r\n */\r\nfunction camelCaseToDashCase(input) {\r\n    return input.replace(CAMEL_CASE_REGEXP, function () {\r\n        var m = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            m[_i] = arguments[_i];\r\n        }\r\n        return '-' + m[1].toLowerCase();\r\n    });\r\n}\r\n/**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction normalizeDebugBindingValue(value) {\r\n    try {\r\n        // Limit the size of the value as otherwise the DOM just gets polluted.\r\n        return value != null ? value.toString().slice(0, 30) : value;\r\n    }\r\n    catch (e) {\r\n        return '[ERROR] Exception while trying to serialize the value';\r\n    }\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeIndex\r\n * @return {?}\r\n */\r\nfunction nextDirectiveWithBinding(view, nodeIndex) {\r\n    for (var /** @type {?} */ i = nodeIndex; i < view.def.nodes.length; i++) {\r\n        var /** @type {?} */ nodeDef = view.def.nodes[i];\r\n        if (nodeDef.flags & 16384 /* TypeDirective */ && nodeDef.bindings && nodeDef.bindings.length) {\r\n            return i;\r\n        }\r\n    }\r\n    return null;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeIndex\r\n * @return {?}\r\n */\r\nfunction nextRenderNodeWithBinding(view, nodeIndex) {\r\n    for (var /** @type {?} */ i = nodeIndex; i < view.def.nodes.length; i++) {\r\n        var /** @type {?} */ nodeDef = view.def.nodes[i];\r\n        if ((nodeDef.flags & 3 /* CatRenderNode */) && nodeDef.bindings && nodeDef.bindings.length) {\r\n            return i;\r\n        }\r\n    }\r\n    return null;\r\n}\r\nvar DebugContext_ = (function () {\r\n    /**\r\n     * @param {?} view\r\n     * @param {?} nodeIndex\r\n     */\r\n    function DebugContext_(view, nodeIndex) {\r\n        this.view = view;\r\n        this.nodeIndex = nodeIndex;\r\n        if (nodeIndex == null) {\r\n            this.nodeIndex = nodeIndex = 0;\r\n        }\r\n        this.nodeDef = view.def.nodes[nodeIndex];\r\n        var elDef = this.nodeDef;\r\n        var elView = view;\r\n        while (elDef && (elDef.flags & 1 /* TypeElement */) === 0) {\r\n            elDef = elDef.parent;\r\n        }\r\n        if (!elDef) {\r\n            while (!elDef && elView) {\r\n                elDef = viewParentEl(elView);\r\n                elView = elView.parent;\r\n            }\r\n        }\r\n        this.elDef = elDef;\r\n        this.elView = elView;\r\n    }\r\n    Object.defineProperty(DebugContext_.prototype, \"elOrCompView\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            // Has to be done lazily as we use the DebugContext also during creation of elements...\r\n            return asElementData(this.elView, this.elDef.index).componentView || this.view;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugContext_.prototype, \"injector\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return createInjector(this.elView, this.elDef); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugContext_.prototype, \"component\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.elOrCompView.component; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugContext_.prototype, \"context\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.elOrCompView.context; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugContext_.prototype, \"providerTokens\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            var /** @type {?} */ tokens = [];\r\n            if (this.elDef) {\r\n                for (var /** @type {?} */ i = this.elDef.index + 1; i <= this.elDef.index + this.elDef.childCount; i++) {\r\n                    var /** @type {?} */ childDef = this.elView.def.nodes[i];\r\n                    if (childDef.flags & 20224 /* CatProvider */) {\r\n                        tokens.push(/** @type {?} */ ((childDef.provider)).token);\r\n                    }\r\n                    i += childDef.childCount;\r\n                }\r\n            }\r\n            return tokens;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugContext_.prototype, \"references\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            var /** @type {?} */ references = {};\r\n            if (this.elDef) {\r\n                collectReferences(this.elView, this.elDef, references);\r\n                for (var /** @type {?} */ i = this.elDef.index + 1; i <= this.elDef.index + this.elDef.childCount; i++) {\r\n                    var /** @type {?} */ childDef = this.elView.def.nodes[i];\r\n                    if (childDef.flags & 20224 /* CatProvider */) {\r\n                        collectReferences(this.elView, childDef, references);\r\n                    }\r\n                    i += childDef.childCount;\r\n                }\r\n            }\r\n            return references;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugContext_.prototype, \"componentRenderElement\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            var /** @type {?} */ elData = findHostElement(this.elOrCompView);\r\n            return elData ? elData.renderElement : undefined;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(DebugContext_.prototype, \"renderNode\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this.nodeDef.flags & 2 /* TypeText */ ? renderNode(this.view, this.nodeDef) :\r\n                renderNode(this.elView, this.elDef);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} console\r\n     * @param {...?} values\r\n     * @return {?}\r\n     */\r\n    DebugContext_.prototype.logError = function (console) {\r\n        var values = [];\r\n        for (var _i = 1; _i < arguments.length; _i++) {\r\n            values[_i - 1] = arguments[_i];\r\n        }\r\n        var /** @type {?} */ logViewDef;\r\n        var /** @type {?} */ logNodeIndex;\r\n        if (this.nodeDef.flags & 2 /* TypeText */) {\r\n            logViewDef = this.view.def;\r\n            logNodeIndex = this.nodeDef.index;\r\n        }\r\n        else {\r\n            logViewDef = this.elView.def;\r\n            logNodeIndex = this.elDef.index;\r\n        }\r\n        // Note: we only generate a log function for text and element nodes\r\n        // to make the generated code as small as possible.\r\n        var /** @type {?} */ renderNodeIndex = getRenderNodeIndex(logViewDef, logNodeIndex);\r\n        var /** @type {?} */ currRenderNodeIndex = -1;\r\n        var /** @type {?} */ nodeLogger = function () {\r\n            currRenderNodeIndex++;\r\n            if (currRenderNodeIndex === renderNodeIndex) {\r\n                return (_a = console.error).bind.apply(_a, [console].concat(values));\r\n            }\r\n            else {\r\n                return NOOP;\r\n            }\r\n            var _a;\r\n        }; /** @type {?} */\r\n        ((logViewDef.factory))(nodeLogger);\r\n        if (currRenderNodeIndex < renderNodeIndex) {\r\n            console.error('Illegal state: the ViewDefinitionFactory did not call the logger!');\r\n            console.error.apply(console, values);\r\n        }\r\n    };\r\n    return DebugContext_;\r\n}());\r\n/**\r\n * @param {?} viewDef\r\n * @param {?} nodeIndex\r\n * @return {?}\r\n */\r\nfunction getRenderNodeIndex(viewDef$$1, nodeIndex) {\r\n    var /** @type {?} */ renderNodeIndex = -1;\r\n    for (var /** @type {?} */ i = 0; i <= nodeIndex; i++) {\r\n        var /** @type {?} */ nodeDef = viewDef$$1.nodes[i];\r\n        if (nodeDef.flags & 3 /* CatRenderNode */) {\r\n            renderNodeIndex++;\r\n        }\r\n    }\r\n    return renderNodeIndex;\r\n}\r\n/**\r\n * @param {?} view\r\n * @return {?}\r\n */\r\nfunction findHostElement(view) {\r\n    while (view && !isComponentView(view)) {\r\n        view = ((view.parent));\r\n    }\r\n    if (view.parent) {\r\n        return asElementData(view.parent, /** @type {?} */ ((viewParentEl(view))).index);\r\n    }\r\n    return null;\r\n}\r\n/**\r\n * @param {?} view\r\n * @param {?} nodeDef\r\n * @param {?} references\r\n * @return {?}\r\n */\r\nfunction collectReferences(view, nodeDef, references) {\r\n    for (var /** @type {?} */ refName in nodeDef.references) {\r\n        references[refName] = getQueryValue(view, nodeDef, nodeDef.references[refName]);\r\n    }\r\n}\r\n/**\r\n * @param {?} action\r\n * @param {?} fn\r\n * @param {?} self\r\n * @param {?} args\r\n * @return {?}\r\n */\r\nfunction callWithDebugContext(action, fn, self, args) {\r\n    var /** @type {?} */ oldAction = _currentAction;\r\n    var /** @type {?} */ oldView = _currentView;\r\n    var /** @type {?} */ oldNodeIndex = _currentNodeIndex;\r\n    try {\r\n        _currentAction = action;\r\n        var /** @type {?} */ result = fn.apply(self, args);\r\n        _currentView = oldView;\r\n        _currentNodeIndex = oldNodeIndex;\r\n        _currentAction = oldAction;\r\n        return result;\r\n    }\r\n    catch (e) {\r\n        if (isViewDebugError(e) || !_currentView) {\r\n            throw e;\r\n        }\r\n        throw viewWrappedDebugError(e, /** @type {?} */ ((getCurrentDebugContext())));\r\n    }\r\n}\r\n/**\r\n * @return {?}\r\n */\r\nfunction getCurrentDebugContext() {\r\n    return _currentView ? new DebugContext_(_currentView, _currentNodeIndex) : null;\r\n}\r\nvar DebugRendererFactory2 = (function () {\r\n    /**\r\n     * @param {?} delegate\r\n     */\r\n    function DebugRendererFactory2(delegate) {\r\n        this.delegate = delegate;\r\n    }\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} renderData\r\n     * @return {?}\r\n     */\r\n    DebugRendererFactory2.prototype.createRenderer = function (element, renderData) {\r\n        return new DebugRenderer2(this.delegate.createRenderer(element, renderData));\r\n    };\r\n    return DebugRendererFactory2;\r\n}());\r\nvar DebugRenderer2 = (function () {\r\n    /**\r\n     * @param {?} delegate\r\n     */\r\n    function DebugRenderer2(delegate) {\r\n        this.delegate = delegate;\r\n    }\r\n    Object.defineProperty(DebugRenderer2.prototype, \"data\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.delegate.data; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.destroyNode = function (node) {\r\n        removeDebugNodeFromIndex(/** @type {?} */ ((getDebugNode(node))));\r\n        if (this.delegate.destroyNode) {\r\n            this.delegate.destroyNode(node);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.destroy = function () { this.delegate.destroy(); };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?=} namespace\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.createElement = function (name, namespace) {\r\n        var /** @type {?} */ el = this.delegate.createElement(name, namespace);\r\n        var /** @type {?} */ debugCtx = getCurrentDebugContext();\r\n        if (debugCtx) {\r\n            var /** @type {?} */ debugEl = new DebugElement(el, null, debugCtx);\r\n            debugEl.name = name;\r\n            indexDebugNode(debugEl);\r\n        }\r\n        return el;\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.createComment = function (value) {\r\n        var /** @type {?} */ comment = this.delegate.createComment(value);\r\n        var /** @type {?} */ debugCtx = getCurrentDebugContext();\r\n        if (debugCtx) {\r\n            indexDebugNode(new DebugNode(comment, null, debugCtx));\r\n        }\r\n        return comment;\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.createText = function (value) {\r\n        var /** @type {?} */ text = this.delegate.createText(value);\r\n        var /** @type {?} */ debugCtx = getCurrentDebugContext();\r\n        if (debugCtx) {\r\n            indexDebugNode(new DebugNode(text, null, debugCtx));\r\n        }\r\n        return text;\r\n    };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} newChild\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.appendChild = function (parent, newChild) {\r\n        var /** @type {?} */ debugEl = getDebugNode(parent);\r\n        var /** @type {?} */ debugChildEl = getDebugNode(newChild);\r\n        if (debugEl && debugChildEl && debugEl instanceof DebugElement) {\r\n            debugEl.addChild(debugChildEl);\r\n        }\r\n        this.delegate.appendChild(parent, newChild);\r\n    };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} newChild\r\n     * @param {?} refChild\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.insertBefore = function (parent, newChild, refChild) {\r\n        var /** @type {?} */ debugEl = getDebugNode(parent);\r\n        var /** @type {?} */ debugChildEl = getDebugNode(newChild);\r\n        var /** @type {?} */ debugRefEl = ((getDebugNode(refChild)));\r\n        if (debugEl && debugChildEl && debugEl instanceof DebugElement) {\r\n            debugEl.insertBefore(debugRefEl, debugChildEl);\r\n        }\r\n        this.delegate.insertBefore(parent, newChild, refChild);\r\n    };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} oldChild\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.removeChild = function (parent, oldChild) {\r\n        var /** @type {?} */ debugEl = getDebugNode(parent);\r\n        var /** @type {?} */ debugChildEl = getDebugNode(oldChild);\r\n        if (debugEl && debugChildEl && debugEl instanceof DebugElement) {\r\n            debugEl.removeChild(debugChildEl);\r\n        }\r\n        this.delegate.removeChild(parent, oldChild);\r\n    };\r\n    /**\r\n     * @param {?} selectorOrNode\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.selectRootElement = function (selectorOrNode) {\r\n        var /** @type {?} */ el = this.delegate.selectRootElement(selectorOrNode);\r\n        var /** @type {?} */ debugCtx = getCurrentDebugContext();\r\n        if (debugCtx) {\r\n            indexDebugNode(new DebugElement(el, null, debugCtx));\r\n        }\r\n        return el;\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?=} namespace\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.setAttribute = function (el, name, value, namespace) {\r\n        var /** @type {?} */ debugEl = getDebugNode(el);\r\n        if (debugEl && debugEl instanceof DebugElement) {\r\n            var /** @type {?} */ fullName = namespace ? namespace + ':' + name : name;\r\n            debugEl.attributes[fullName] = value;\r\n        }\r\n        this.delegate.setAttribute(el, name, value, namespace);\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?=} namespace\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.removeAttribute = function (el, name, namespace) {\r\n        var /** @type {?} */ debugEl = getDebugNode(el);\r\n        if (debugEl && debugEl instanceof DebugElement) {\r\n            var /** @type {?} */ fullName = namespace ? namespace + ':' + name : name;\r\n            debugEl.attributes[fullName] = null;\r\n        }\r\n        this.delegate.removeAttribute(el, name, namespace);\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.addClass = function (el, name) {\r\n        var /** @type {?} */ debugEl = getDebugNode(el);\r\n        if (debugEl && debugEl instanceof DebugElement) {\r\n            debugEl.classes[name] = true;\r\n        }\r\n        this.delegate.addClass(el, name);\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.removeClass = function (el, name) {\r\n        var /** @type {?} */ debugEl = getDebugNode(el);\r\n        if (debugEl && debugEl instanceof DebugElement) {\r\n            debugEl.classes[name] = false;\r\n        }\r\n        this.delegate.removeClass(el, name);\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} style\r\n     * @param {?} value\r\n     * @param {?} flags\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.setStyle = function (el, style, value, flags) {\r\n        var /** @type {?} */ debugEl = getDebugNode(el);\r\n        if (debugEl && debugEl instanceof DebugElement) {\r\n            debugEl.styles[style] = value;\r\n        }\r\n        this.delegate.setStyle(el, style, value, flags);\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} style\r\n     * @param {?} flags\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.removeStyle = function (el, style, flags) {\r\n        var /** @type {?} */ debugEl = getDebugNode(el);\r\n        if (debugEl && debugEl instanceof DebugElement) {\r\n            debugEl.styles[style] = null;\r\n        }\r\n        this.delegate.removeStyle(el, style, flags);\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.setProperty = function (el, name, value) {\r\n        var /** @type {?} */ debugEl = getDebugNode(el);\r\n        if (debugEl && debugEl instanceof DebugElement) {\r\n            debugEl.properties[name] = value;\r\n        }\r\n        this.delegate.setProperty(el, name, value);\r\n    };\r\n    /**\r\n     * @param {?} target\r\n     * @param {?} eventName\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.listen = function (target, eventName, callback) {\r\n        if (typeof target !== 'string') {\r\n            var /** @type {?} */ debugEl = getDebugNode(target);\r\n            if (debugEl) {\r\n                debugEl.listeners.push(new EventListener(eventName, callback));\r\n            }\r\n        }\r\n        return this.delegate.listen(target, eventName, callback);\r\n    };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.parentNode = function (node) { return this.delegate.parentNode(node); };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.nextSibling = function (node) { return this.delegate.nextSibling(node); };\r\n    /**\r\n     * @param {?} node\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DebugRenderer2.prototype.setValue = function (node, value) { return this.delegate.setValue(node, value); };\r\n    return DebugRenderer2;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @return {?}\r\n */\r\nfunction _iterableDiffersFactory() {\r\n    return defaultIterableDiffers;\r\n}\r\n/**\r\n * @return {?}\r\n */\r\nfunction _keyValueDiffersFactory() {\r\n    return defaultKeyValueDiffers;\r\n}\r\n/**\r\n * @param {?=} locale\r\n * @return {?}\r\n */\r\nfunction _localeFactory(locale) {\r\n    return locale || 'en-US';\r\n}\r\n/**\r\n * @return {?}\r\n */\r\nfunction _initViewEngine() {\r\n    initServicesIfNeeded();\r\n}\r\n/**\r\n * This module includes the providers of \\@angular/core that are needed\r\n * to bootstrap components via `ApplicationRef`.\r\n *\r\n * \\@experimental\r\n */\r\nvar ApplicationModule = (function () {\r\n    /**\r\n     * @param {?} appRef\r\n     */\r\n    function ApplicationModule(appRef) {\r\n    }\r\n    return ApplicationModule;\r\n}());\r\nApplicationModule.decorators = [\r\n    { type: NgModule, args: [{\r\n                providers: [\r\n                    ApplicationRef_,\r\n                    { provide: ApplicationRef, useExisting: ApplicationRef_ },\r\n                    ApplicationInitStatus,\r\n                    Compiler,\r\n                    APP_ID_RANDOM_PROVIDER,\r\n                    { provide: IterableDiffers, useFactory: _iterableDiffersFactory },\r\n                    { provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory },\r\n                    {\r\n                        provide: LOCALE_ID,\r\n                        useFactory: _localeFactory,\r\n                        deps: [[new Inject(LOCALE_ID), new Optional(), new SkipSelf()]]\r\n                    },\r\n                    { provide: APP_INITIALIZER, useValue: _initViewEngine, multi: true },\r\n                ]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nApplicationModule.ctorParameters = function () { return [\r\n    { type: ApplicationRef, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar LifecycleHooks = {};\r\nLifecycleHooks.OnInit = 0;\r\nLifecycleHooks.OnDestroy = 1;\r\nLifecycleHooks.DoCheck = 2;\r\nLifecycleHooks.OnChanges = 3;\r\nLifecycleHooks.AfterContentInit = 4;\r\nLifecycleHooks.AfterContentChecked = 5;\r\nLifecycleHooks.AfterViewInit = 6;\r\nLifecycleHooks.AfterViewChecked = 7;\r\nLifecycleHooks[LifecycleHooks.OnInit] = \"OnInit\";\r\nLifecycleHooks[LifecycleHooks.OnDestroy] = \"OnDestroy\";\r\nLifecycleHooks[LifecycleHooks.DoCheck] = \"DoCheck\";\r\nLifecycleHooks[LifecycleHooks.OnChanges] = \"OnChanges\";\r\nLifecycleHooks[LifecycleHooks.AfterContentInit] = \"AfterContentInit\";\r\nLifecycleHooks[LifecycleHooks.AfterContentChecked] = \"AfterContentChecked\";\r\nLifecycleHooks[LifecycleHooks.AfterViewInit] = \"AfterViewInit\";\r\nLifecycleHooks[LifecycleHooks.AfterViewChecked] = \"AfterViewChecked\";\r\nvar LIFECYCLE_HOOKS_VALUES = [\r\n    LifecycleHooks.OnInit, LifecycleHooks.OnDestroy, LifecycleHooks.DoCheck, LifecycleHooks.OnChanges,\r\n    LifecycleHooks.AfterContentInit, LifecycleHooks.AfterContentChecked, LifecycleHooks.AfterViewInit,\r\n    LifecycleHooks.AfterViewChecked\r\n];\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@experimental Animation support is experimental.\r\n */\r\n/**\r\n * `trigger` is an animation-specific function that is designed to be used inside of Angular's\r\n * animation DSL language. If this information is new, please navigate to the {\\@link\r\n * Component#animations component animations metadata page} to gain a better understanding of\r\n * how animations in Angular are used.\r\n *\r\n * `trigger` Creates an animation trigger which will a list of {\\@link state state} and {\\@link\r\n * transition transition} entries that will be evaluated when the expression bound to the trigger\r\n * changes.\r\n *\r\n * Triggers are registered within the component annotation data under the {\\@link\r\n * Component#animations animations section}. An animation trigger can be placed on an element\r\n * within a template by referencing the name of the trigger followed by the expression value that the\r\n * trigger is bound to (in the form of `[\\@triggerName]=\"expression\"`.\r\n *\r\n * ### Usage\r\n *\r\n * `trigger` will create an animation trigger reference based on the provided `name` value. The\r\n * provided `animation` value is expected to be an array consisting of {\\@link state state} and {\\@link\r\n * transition transition} declarations.\r\n *\r\n * ```typescript\r\n * \\@Component({\r\n *   selector: 'my-component',\r\n *   templateUrl: 'my-component-tpl.html',\r\n *   animations: [\r\n *     trigger(\"myAnimationTrigger\", [\r\n *       state(...),\r\n *       state(...),\r\n *       transition(...),\r\n *       transition(...)\r\n *     ])\r\n *   ]\r\n * })\r\n * class MyComponent {\r\n *   myStatusExp = \"something\";\r\n * }\r\n * ```\r\n *\r\n * The template associated with this component will make use of the `myAnimationTrigger` animation\r\n * trigger by binding to an element within its template code.\r\n *\r\n * ```html\r\n * <!-- somewhere inside of my-component-tpl.html -->\r\n * <div [\\@myAnimationTrigger]=\"myStatusExp\">...</div>\r\n * tools/gulp-tasks/validate-commit-message.js ```\r\n *\r\n * {\\@example core/animation/ts/dsl/animation_example.ts region='Component'}\r\n *\r\n * \\@experimental Animation support is experimental.\r\n * @param {?} name\r\n * @param {?} definitions\r\n * @return {?}\r\n */\r\nfunction trigger$1(name, definitions) {\r\n    return { name: name, definitions: definitions };\r\n}\r\n/**\r\n * `animate` is an animation-specific function that is designed to be used inside of Angular's\r\n * animation DSL language. If this information is new, please navigate to the {\\@link\r\n * Component#animations component animations metadata page} to gain a better understanding of\r\n * how animations in Angular are used.\r\n *\r\n * `animate` specifies an animation step that will apply the provided `styles` data for a given\r\n * amount of time based on the provided `timing` expression value. Calls to `animate` are expected\r\n * to be used within {\\@link sequence an animation sequence}, {\\@link group group}, or {\\@link\r\n * transition transition}.\r\n *\r\n * ### Usage\r\n *\r\n * The `animate` function accepts two input parameters: `timing` and `styles`:\r\n *\r\n * - `timing` is a string based value that can be a combination of a duration with optional delay\r\n * and easing values. The format for the expression breaks down to `duration delay easing`\r\n * (therefore a value such as `1s 100ms ease-out` will be parse itself into `duration=1000,\r\n * delay=100, easing=ease-out`. If a numeric value is provided then that will be used as the\r\n * `duration` value in millisecond form.\r\n * - `styles` is the style input data which can either be a call to {\\@link style style} or {\\@link\r\n * keyframes keyframes}. If left empty then the styles from the destination state will be collected\r\n * and used (this is useful when describing an animation step that will complete an animation by\r\n * {\\@link transition#the-final-animate-call animating to the final state}).\r\n *\r\n * ```typescript\r\n * // various functions for specifying timing data\r\n * animate(500, style(...))\r\n * animate(\"1s\", style(...))\r\n * animate(\"100ms 0.5s\", style(...))\r\n * animate(\"5s ease\", style(...))\r\n * animate(\"5s 10ms cubic-bezier(.17,.67,.88,.1)\", style(...))\r\n *\r\n * // either style() of keyframes() can be used\r\n * animate(500, style({ background: \"red\" }))\r\n * animate(500, keyframes([\r\n *   style({ background: \"blue\" })),\r\n *   style({ background: \"red\" }))\r\n * ])\r\n * ```\r\n *\r\n * {\\@example core/animation/ts/dsl/animation_example.ts region='Component'}\r\n *\r\n * \\@experimental Animation support is experimental.\r\n * @param {?} timings\r\n * @param {?=} styles\r\n * @return {?}\r\n */\r\nfunction animate$1(timings, styles) {\r\n    if (styles === void 0) { styles = null; }\r\n    return { type: 4 /* Animate */, styles: styles, timings: timings };\r\n}\r\n/**\r\n * `group` is an animation-specific function that is designed to be used inside of Angular's\r\n * animation DSL language. If this information is new, please navigate to the {\\@link\r\n * Component#animations component animations metadata page} to gain a better understanding of\r\n * how animations in Angular are used.\r\n *\r\n * `group` specifies a list of animation steps that are all run in parallel. Grouped animations are\r\n * useful when a series of styles must be animated/closed off at different statrting/ending times.\r\n *\r\n * The `group` function can either be used within a {\\@link sequence sequence} or a {\\@link transition\r\n * transition} and it will only continue to the next instruction once all of the inner animation\r\n * steps have completed.\r\n *\r\n * ### Usage\r\n *\r\n * The `steps` data that is passed into the `group` animation function can either consist of {\\@link\r\n * style style} or {\\@link animate animate} function calls. Each call to `style()` or `animate()`\r\n * within a group will be executed instantly (use {\\@link keyframes keyframes} or a {\\@link\r\n * animate#usage animate() with a delay value} to offset styles to be applied at a later time).\r\n *\r\n * ```typescript\r\n * group([\r\n *   animate(\"1s\", { background: \"black\" }))\r\n *   animate(\"2s\", { color: \"white\" }))\r\n * ])\r\n * ```\r\n *\r\n * {\\@example core/animation/ts/dsl/animation_example.ts region='Component'}\r\n *\r\n * \\@experimental Animation support is experimental.\r\n * @param {?} steps\r\n * @return {?}\r\n */\r\nfunction group$1(steps) {\r\n    return { type: 3 /* Group */, steps: steps };\r\n}\r\n/**\r\n * `sequence` is an animation-specific function that is designed to be used inside of Angular's\r\n * animation DSL language. If this information is new, please navigate to the {\\@link\r\n * Component#animations component animations metadata page} to gain a better understanding of\r\n * how animations in Angular are used.\r\n *\r\n * `sequence` Specifies a list of animation steps that are run one by one. (`sequence` is used by\r\n * default when an array is passed as animation data into {\\@link transition transition}.)\r\n *\r\n * The `sequence` function can either be used within a {\\@link group group} or a {\\@link transition\r\n * transition} and it will only continue to the next instruction once each of the inner animation\r\n * steps have completed.\r\n *\r\n * To perform animation styling in parallel with other animation steps then have a look at the\r\n * {\\@link group group} animation function.\r\n *\r\n * ### Usage\r\n *\r\n * The `steps` data that is passed into the `sequence` animation function can either consist of\r\n * {\\@link style style} or {\\@link animate animate} function calls. A call to `style()` will apply the\r\n * provided styling data immediately while a call to `animate()` will apply its styling data over a\r\n * given time depending on its timing data.\r\n *\r\n * ```typescript\r\n * sequence([\r\n *   style({ opacity: 0 })),\r\n *   animate(\"1s\", { opacity: 1 }))\r\n * ])\r\n * ```\r\n *\r\n * {\\@example core/animation/ts/dsl/animation_example.ts region='Component'}\r\n *\r\n * \\@experimental Animation support is experimental.\r\n * @param {?} steps\r\n * @return {?}\r\n */\r\nfunction sequence$1(steps) {\r\n    return { type: 2 /* Sequence */, steps: steps };\r\n}\r\n/**\r\n * `style` is an animation-specific function that is designed to be used inside of Angular's\r\n * animation DSL language. If this information is new, please navigate to the {\\@link\r\n * Component#animations component animations metadata page} to gain a better understanding of\r\n * how animations in Angular are used.\r\n *\r\n * `style` declares a key/value object containing CSS properties/styles that can then be used for\r\n * {\\@link state animation states}, within an {\\@link sequence animation sequence}, or as styling data\r\n * for both {\\@link animate animate} and {\\@link keyframes keyframes}.\r\n *\r\n * ### Usage\r\n *\r\n * `style` takes in a key/value string map as data and expects one or more CSS property/value pairs\r\n * to be defined.\r\n *\r\n * ```typescript\r\n * // string values are used for css properties\r\n * style({ background: \"red\", color: \"blue\" })\r\n *\r\n * // numerical (pixel) values are also supported\r\n * style({ width: 100, height: 0 })\r\n * ```\r\n *\r\n * #### Auto-styles (using `*`)\r\n *\r\n * When an asterix (`*`) character is used as a value then it will be detected from the element\r\n * being animated and applied as animation data when the animation starts.\r\n *\r\n * This feature proves useful for a state depending on layout and/or environment factors; in such\r\n * cases the styles are calculated just before the animation starts.\r\n *\r\n * ```typescript\r\n * // the steps below will animate from 0 to the\r\n * // actual height of the element\r\n * style({ height: 0 }),\r\n * animate(\"1s\", style({ height: \"*\" }))\r\n * ```\r\n *\r\n * {\\@example core/animation/ts/dsl/animation_example.ts region='Component'}\r\n *\r\n * \\@experimental Animation support is experimental.\r\n * @param {?} tokens\r\n * @return {?}\r\n */\r\nfunction style$1(tokens) {\r\n    return { type: 6 /* Style */, styles: tokens };\r\n}\r\n/**\r\n * `state` is an animation-specific function that is designed to be used inside of Angular's\r\n * animation DSL language. If this information is new, please navigate to the {\\@link\r\n * Component#animations component animations metadata page} to gain a better understanding of\r\n * how animations in Angular are used.\r\n *\r\n * `state` declares an animation state within the given trigger. When a state is active within a\r\n * component then its associated styles will persist on the element that the trigger is attached to\r\n * (even when the animation ends).\r\n *\r\n * To animate between states, have a look at the animation {\\@link transition transition} DSL\r\n * function. To register states to an animation trigger please have a look at the {\\@link trigger\r\n * trigger} function.\r\n *\r\n * #### The `void` state\r\n *\r\n * The `void` state value is a reserved word that angular uses to determine when the element is not\r\n * apart of the application anymore (e.g. when an `ngIf` evaluates to false then the state of the\r\n * associated element is void).\r\n *\r\n * #### The `*` (default) state\r\n *\r\n * The `*` state (when styled) is a fallback state that will be used if the state that is being\r\n * animated is not declared within the trigger.\r\n *\r\n * ### Usage\r\n *\r\n * `state` will declare an animation state with its associated styles\r\n * within the given trigger.\r\n *\r\n * - `stateNameExpr` can be one or more state names separated by commas.\r\n * - `styles` refers to the {\\@link style styling data} that will be persisted on the element once\r\n * the state has been reached.\r\n *\r\n * ```typescript\r\n * // \"void\" is a reserved name for a state and is used to represent\r\n * // the state in which an element is detached from from the application.\r\n * state(\"void\", style({ height: 0 }))\r\n *\r\n * // user-defined states\r\n * state(\"closed\", style({ height: 0 }))\r\n * state(\"open, visible\", style({ height: \"*\" }))\r\n * ```\r\n *\r\n * {\\@example core/animation/ts/dsl/animation_example.ts region='Component'}\r\n *\r\n * \\@experimental Animation support is experimental.\r\n * @param {?} name\r\n * @param {?} styles\r\n * @return {?}\r\n */\r\nfunction state$1(name, styles) {\r\n    return { type: 0 /* State */, name: name, styles: styles };\r\n}\r\n/**\r\n * `keyframes` is an animation-specific function that is designed to be used inside of Angular's\r\n * animation DSL language. If this information is new, please navigate to the {\\@link\r\n * Component#animations component animations metadata page} to gain a better understanding of\r\n * how animations in Angular are used.\r\n *\r\n * `keyframes` specifies a collection of {\\@link style style} entries each optionally characterized\r\n * by an `offset` value.\r\n *\r\n * ### Usage\r\n *\r\n * The `keyframes` animation function is designed to be used alongside the {\\@link animate animate}\r\n * animation function. Instead of applying animations from where they are currently to their\r\n * destination, keyframes can describe how each style entry is applied and at what point within the\r\n * animation arc (much like CSS Keyframe Animations do).\r\n *\r\n * For each `style()` entry an `offset` value can be set. Doing so allows to specifiy at what\r\n * percentage of the animate time the styles will be applied.\r\n *\r\n * ```typescript\r\n * // the provided offset values describe when each backgroundColor value is applied.\r\n * animate(\"5s\", keyframes([\r\n *   style({ backgroundColor: \"red\", offset: 0 }),\r\n *   style({ backgroundColor: \"blue\", offset: 0.2 }),\r\n *   style({ backgroundColor: \"orange\", offset: 0.3 }),\r\n *   style({ backgroundColor: \"black\", offset: 1 })\r\n * ]))\r\n * ```\r\n *\r\n * Alternatively, if there are no `offset` values used within the style entries then the offsets\r\n * will be calculated automatically.\r\n *\r\n * ```typescript\r\n * animate(\"5s\", keyframes([\r\n *   style({ backgroundColor: \"red\" }) // offset = 0\r\n *   style({ backgroundColor: \"blue\" }) // offset = 0.33\r\n *   style({ backgroundColor: \"orange\" }) // offset = 0.66\r\n *   style({ backgroundColor: \"black\" }) // offset = 1\r\n * ]))\r\n * ```\r\n *\r\n * {\\@example core/animation/ts/dsl/animation_example.ts region='Component'}\r\n *\r\n * \\@experimental Animation support is experimental.\r\n * @param {?} steps\r\n * @return {?}\r\n */\r\nfunction keyframes$1(steps) {\r\n    return { type: 5 /* KeyframeSequence */, steps: steps };\r\n}\r\n/**\r\n * `transition` is an animation-specific function that is designed to be used inside of Angular's\r\n * animation DSL language. If this information is new, please navigate to the {\\@link\r\n * Component#animations component animations metadata page} to gain a better understanding of\r\n * how animations in Angular are used.\r\n *\r\n * `transition` declares the {\\@link sequence sequence of animation steps} that will be run when the\r\n * provided `stateChangeExpr` value is satisfied. The `stateChangeExpr` consists of a `state1 =>\r\n * state2` which consists of two known states (use an asterix (`*`) to refer to a dynamic starting\r\n * and/or ending state).\r\n *\r\n * A function can also be provided as the `stateChangeExpr` argument for a transition and this\r\n * function will be executed each time a state change occurs. If the value returned within the\r\n * function is true then the associated animation will be run.\r\n *\r\n * Animation transitions are placed within an {\\@link trigger animation trigger}. For an transition\r\n * to animate to a state value and persist its styles then one or more {\\@link state animation\r\n * states} is expected to be defined.\r\n *\r\n * ### Usage\r\n *\r\n * An animation transition is kicked off the `stateChangeExpr` predicate evaluates to true based on\r\n * what the previous state is and what the current state has become. In other words, if a transition\r\n * is defined that matches the old/current state criteria then the associated animation will be\r\n * triggered.\r\n *\r\n * ```typescript\r\n * // all transition/state changes are defined within an animation trigger\r\n * trigger(\"myAnimationTrigger\", [\r\n *   // if a state is defined then its styles will be persisted when the\r\n *   // animation has fully completed itself\r\n *   state(\"on\", style({ background: \"green\" })),\r\n *   state(\"off\", style({ background: \"grey\" })),\r\n *\r\n *   // a transition animation that will be kicked off when the state value\r\n *   // bound to \"myAnimationTrigger\" changes from \"on\" to \"off\"\r\n *   transition(\"on => off\", animate(500)),\r\n *\r\n *   // it is also possible to do run the same animation for both directions\r\n *   transition(\"on <=> off\", animate(500)),\r\n *\r\n *   // or to define multiple states pairs separated by commas\r\n *   transition(\"on => off, off => void\", animate(500)),\r\n *\r\n *   // this is a catch-all state change for when an element is inserted into\r\n *   // the page and the destination state is unknown\r\n *   transition(\"void => *\", [\r\n *     style({ opacity: 0 }),\r\n *     animate(500)\r\n *   ]),\r\n *\r\n *   // this will capture a state change between any states\r\n *   transition(\"* => *\", animate(\"1s 0s\")),\r\n *\r\n *   // you can also go full out and include a function\r\n *   transition((fromState, toState) => {\r\n *     // when `true` then it will allow the animation below to be invoked\r\n *     return fromState == \"off\" && toState == \"on\";\r\n *   }, animate(\"1s 0s\"))\r\n * ])\r\n * ```\r\n *\r\n * The template associated with this component will make use of the `myAnimationTrigger` animation\r\n * trigger by binding to an element within its template code.\r\n *\r\n * ```html\r\n * <!-- somewhere inside of my-component-tpl.html -->\r\n * <div [\\@myAnimationTrigger]=\"myStatusExp\">...</div>\r\n * ```\r\n *\r\n * #### The final `animate` call\r\n *\r\n * If the final step within the transition steps is a call to `animate()` that **only** uses a\r\n * timing value with **no style data** then it will be automatically used as the final animation arc\r\n * for the element to animate itself to the final state. This involves an automatic mix of\r\n * adding/removing CSS styles so that the element will be in the exact state it should be for the\r\n * applied state to be presented correctly.\r\n *\r\n * ```\r\n * // start off by hiding the element, but make sure that it animates properly to whatever state\r\n * // is currently active for \"myAnimationTrigger\"\r\n * transition(\"void => *\", [\r\n *   style({ opacity: 0 }),\r\n *   animate(500)\r\n * ])\r\n * ```\r\n *\r\n * ### Transition Aliases (`:enter` and `:leave`)\r\n *\r\n * Given that enter (insertion) and leave (removal) animations are so common, the `transition`\r\n * function accepts both `:enter` and `:leave` values which are aliases for the `void => *` and `*\r\n * => void` state changes.\r\n *\r\n * ```\r\n * transition(\":enter\", [\r\n *   style({ opacity: 0 }),\r\n *   animate(500, style({ opacity: 1 }))\r\n * ])\r\n * transition(\":leave\", [\r\n *   animate(500, style({ opacity: 0 }))\r\n * ])\r\n * ```\r\n *\r\n * {\\@example core/animation/ts/dsl/animation_example.ts region='Component'}\r\n *\r\n * \\@experimental Animation support is experimental.\r\n * @param {?} stateChangeExpr\r\n * @param {?} steps\r\n * @return {?}\r\n */\r\nfunction transition$1(stateChangeExpr, steps) {\r\n    return { type: 1 /* Transition */, expr: stateChangeExpr, animation: steps };\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @deprecated This symbol has moved. Please Import from \\@angular/animations instead!\r\n */\r\nvar AUTO_STYLE$$1 = '*';\r\n/**\r\n * @deprecated This symbol has moved. Please Import from \\@angular/animations instead!\r\n * @param {?} name\r\n * @param {?} definitions\r\n * @return {?}\r\n */\r\nfunction trigger$$1(name, definitions) {\r\n    return trigger$1(name, definitions);\r\n}\r\n/**\r\n * @deprecated This symbol has moved. Please Import from \\@angular/animations instead!\r\n * @param {?} timings\r\n * @param {?=} styles\r\n * @return {?}\r\n */\r\nfunction animate$$1(timings, styles) {\r\n    return animate$1(timings, styles);\r\n}\r\n/**\r\n * @deprecated This symbol has moved. Please Import from \\@angular/animations instead!\r\n * @param {?} steps\r\n * @return {?}\r\n */\r\nfunction group$$1(steps) {\r\n    return group$1(steps);\r\n}\r\n/**\r\n * @deprecated This symbol has moved. Please Import from \\@angular/animations instead!\r\n * @param {?} steps\r\n * @return {?}\r\n */\r\nfunction sequence$$1(steps) {\r\n    return sequence$1(steps);\r\n}\r\n/**\r\n * @deprecated This symbol has moved. Please Import from \\@angular/animations instead!\r\n * @param {?} tokens\r\n * @return {?}\r\n */\r\nfunction style$$1(tokens) {\r\n    return style$1(tokens);\r\n}\r\n/**\r\n * @deprecated This symbol has moved. Please Import from \\@angular/animations instead!\r\n * @param {?} name\r\n * @param {?} styles\r\n * @return {?}\r\n */\r\nfunction state$$1(name, styles) {\r\n    return state$1(name, styles);\r\n}\r\n/**\r\n * @deprecated This symbol has moved. Please Import from \\@angular/animations instead!\r\n * @param {?} steps\r\n * @return {?}\r\n */\r\nfunction keyframes$$1(steps) {\r\n    return keyframes$1(steps);\r\n}\r\n/**\r\n * @deprecated This symbol has moved. Please Import from \\@angular/animations instead!\r\n * @param {?} stateChangeExpr\r\n * @param {?} steps\r\n * @return {?}\r\n */\r\nfunction transition$$1(stateChangeExpr, steps) {\r\n    return transition$1(stateChangeExpr, steps);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point from which you should import all public core APIs.\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the core package.\r\n */\r\n// This file only reexports content of the `src` folder. Keep it that way.\r\n/**\r\n * Generated bundle index. Do not edit.\r\n */\r\nexport { Class, createPlatform, assertPlatform, destroyPlatform, getPlatform, PlatformRef, ApplicationRef, enableProdMode, isDevMode, createPlatformFactory, NgProbeToken, APP_ID, PACKAGE_ROOT_URL, PLATFORM_INITIALIZER, PLATFORM_ID, APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, ApplicationInitStatus, DebugElement, DebugNode, asNativeElements, getDebugNode, Testability, TestabilityRegistry, setTestabilityGetter, TRANSLATIONS, TRANSLATIONS_FORMAT, LOCALE_ID, MissingTranslationStrategy, ApplicationModule, wtfCreateScope, wtfLeave, wtfStartTimeRange, wtfEndTimeRange, Type, EventEmitter, ErrorHandler, Sanitizer, SecurityContext, ANALYZE_FOR_ENTRY_COMPONENTS, Attribute, ContentChild, ContentChildren, Query, ViewChild, ViewChildren, Component, Directive, HostBinding, HostListener, Input, Output, Pipe, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, NgModule, ViewEncapsulation, Version, VERSION, forwardRef, resolveForwardRef, Injector, ReflectiveInjector, ResolvedReflectiveFactory, ReflectiveKey, InjectionToken, OpaqueToken, Inject, Optional, Injectable, Self, SkipSelf, Host, NgZone, RenderComponentType, Renderer, Renderer2, RendererFactory2, RendererStyleFlags2, RootRenderer, COMPILER_OPTIONS, Compiler, CompilerFactory, ModuleWithComponentFactories, ComponentFactory, ComponentRef, ComponentFactoryResolver, ElementRef, NgModuleFactory, NgModuleRef, NgModuleFactoryLoader, getModuleFactory, QueryList, SystemJsNgModuleLoader, SystemJsNgModuleLoaderConfig, TemplateRef, ViewContainerRef, EmbeddedViewRef, ViewRef, ChangeDetectionStrategy, ChangeDetectorRef, DefaultIterableDiffer, IterableDiffers, KeyValueDiffers, SimpleChange, WrappedValue, platformCore, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER, ValueUnwrapper as ɵValueUnwrapper, devModeEqual as ɵdevModeEqual, isListLikeIterable as ɵisListLikeIterable, ChangeDetectorStatus as ɵChangeDetectorStatus, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy, Console as ɵConsole, ERROR_COMPONENT_TYPE as ɵERROR_COMPONENT_TYPE, ComponentFactory as ɵComponentFactory, CodegenComponentFactoryResolver as ɵCodegenComponentFactoryResolver, LIFECYCLE_HOOKS_VALUES as ɵLIFECYCLE_HOOKS_VALUES, LifecycleHooks as ɵLifecycleHooks, ViewMetadata as ɵViewMetadata, Reflector as ɵReflector, reflector as ɵreflector, ReflectionCapabilities as ɵReflectionCapabilities, ReflectorReader as ɵReflectorReader, RenderDebugInfo as ɵRenderDebugInfo, _global as ɵglobal, looseIdentical as ɵlooseIdentical, stringify as ɵstringify, makeDecorator as ɵmakeDecorator, isObservable as ɵisObservable, isPromise as ɵisPromise, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NgModuleInjector as ɵNgModuleInjector, registerModuleFactory as ɵregisterModuleFactory, EMPTY_ARRAY as ɵEMPTY_ARRAY, EMPTY_MAP as ɵEMPTY_MAP, anchorDef as ɵand, createComponentFactory as ɵccf, createRendererType2 as ɵcrt, directiveDef as ɵdid, elementDef as ɵeld, elementEventFullName as ɵelementEventFullName, getComponentViewDefinitionFactory as ɵgetComponentViewDefinitionFactory, inlineInterpolate as ɵinlineInterpolate, interpolate as ɵinterpolate, ngContentDef as ɵncd, nodeValue as ɵnov, pipeDef as ɵpid, providerDef as ɵprd, pureArrayDef as ɵpad, pureObjectDef as ɵpod, purePipeDef as ɵppd, queryDef as ɵqud, textDef as ɵted, unwrapValue as ɵunv, viewDef as ɵvid, AUTO_STYLE$$1 as AUTO_STYLE, trigger$$1 as trigger, animate$$1 as animate, group$$1 as group, sequence$$1 as sequence, style$$1 as style, state$$1 as state, keyframes$$1 as keyframes, transition$$1 as transition, animate$1 as ɵba, group$1 as ɵbb, keyframes$1 as ɵbf, sequence$1 as ɵbc, state$1 as ɵbe, style$1 as ɵbd, transition$1 as ɵbg, trigger$1 as ɵz, _initViewEngine as ɵo, _iterableDiffersFactory as ɵl, _keyValueDiffersFactory as ɵm, _localeFactory as ɵn, ApplicationRef_ as ɵf, _appIdRandomProviderFactory as ɵg, defaultIterableDiffers as ɵh, defaultKeyValueDiffers as ɵi, DefaultIterableDifferFactory as ɵj, DefaultKeyValueDifferFactory as ɵk, ReflectiveInjector_ as ɵc, ReflectiveDependency as ɵd, resolveReflectiveProviders as ɵe, wtfEnabled as ɵp, createScope$1 as ɵr, detectWTF as ɵq, endTimeRange as ɵu, leave as ɵs, startTimeRange as ɵt, makeParamDecorator as ɵa, makePropDecorator as ɵb, _def as ɵw, DebugContext as ɵx };\r\n//# sourceMappingURL=core.es5.js.map\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angular/core/@angular/core.es5.js\n// module id = 1\n// module chunks = 2","\"use strict\";\r\nvar root_1 = require('./util/root');\r\nvar toSubscriber_1 = require('./util/toSubscriber');\r\nvar observable_1 = require('./symbol/observable');\r\n/**\r\n * A representation of any set of values over any amount of time. This the most basic building block\r\n * of RxJS.\r\n *\r\n * @class Observable<T>\r\n */\r\nvar Observable = (function () {\r\n    /**\r\n     * @constructor\r\n     * @param {Function} subscribe the function that is  called when the Observable is\r\n     * initially subscribed to. This function is given a Subscriber, to which new values\r\n     * can be `next`ed, or an `error` method can be called to raise an error, or\r\n     * `complete` can be called to notify of a successful completion.\r\n     */\r\n    function Observable(subscribe) {\r\n        this._isScalar = false;\r\n        if (subscribe) {\r\n            this._subscribe = subscribe;\r\n        }\r\n    }\r\n    /**\r\n     * Creates a new Observable, with this Observable as the source, and the passed\r\n     * operator defined as the new observable's operator.\r\n     * @method lift\r\n     * @param {Operator} operator the operator defining the operation to take on the observable\r\n     * @return {Observable} a new observable with the Operator applied\r\n     */\r\n    Observable.prototype.lift = function (operator) {\r\n        var observable = new Observable();\r\n        observable.source = this;\r\n        observable.operator = operator;\r\n        return observable;\r\n    };\r\n    Observable.prototype.subscribe = function (observerOrNext, error, complete) {\r\n        var operator = this.operator;\r\n        var sink = toSubscriber_1.toSubscriber(observerOrNext, error, complete);\r\n        if (operator) {\r\n            operator.call(sink, this.source);\r\n        }\r\n        else {\r\n            sink.add(this._subscribe(sink));\r\n        }\r\n        if (sink.syncErrorThrowable) {\r\n            sink.syncErrorThrowable = false;\r\n            if (sink.syncErrorThrown) {\r\n                throw sink.syncErrorValue;\r\n            }\r\n        }\r\n        return sink;\r\n    };\r\n    /**\r\n     * @method forEach\r\n     * @param {Function} next a handler for each value emitted by the observable\r\n     * @param {PromiseConstructor} [PromiseCtor] a constructor function used to instantiate the Promise\r\n     * @return {Promise} a promise that either resolves on observable completion or\r\n     *  rejects with the handled error\r\n     */\r\n    Observable.prototype.forEach = function (next, PromiseCtor) {\r\n        var _this = this;\r\n        if (!PromiseCtor) {\r\n            if (root_1.root.Rx && root_1.root.Rx.config && root_1.root.Rx.config.Promise) {\r\n                PromiseCtor = root_1.root.Rx.config.Promise;\r\n            }\r\n            else if (root_1.root.Promise) {\r\n                PromiseCtor = root_1.root.Promise;\r\n            }\r\n        }\r\n        if (!PromiseCtor) {\r\n            throw new Error('no Promise impl found');\r\n        }\r\n        return new PromiseCtor(function (resolve, reject) {\r\n            var subscription = _this.subscribe(function (value) {\r\n                if (subscription) {\r\n                    // if there is a subscription, then we can surmise\r\n                    // the next handling is asynchronous. Any errors thrown\r\n                    // need to be rejected explicitly and unsubscribe must be\r\n                    // called manually\r\n                    try {\r\n                        next(value);\r\n                    }\r\n                    catch (err) {\r\n                        reject(err);\r\n                        subscription.unsubscribe();\r\n                    }\r\n                }\r\n                else {\r\n                    // if there is NO subscription, then we're getting a nexted\r\n                    // value synchronously during subscription. We can just call it.\r\n                    // If it errors, Observable's `subscribe` will ensure the\r\n                    // unsubscription logic is called, then synchronously rethrow the error.\r\n                    // After that, Promise will trap the error and send it\r\n                    // down the rejection path.\r\n                    next(value);\r\n                }\r\n            }, reject, resolve);\r\n        });\r\n    };\r\n    Observable.prototype._subscribe = function (subscriber) {\r\n        return this.source.subscribe(subscriber);\r\n    };\r\n    /**\r\n     * An interop point defined by the es7-observable spec https://github.com/zenparsing/es-observable\r\n     * @method Symbol.observable\r\n     * @return {Observable} this instance of the observable\r\n     */\r\n    Observable.prototype[observable_1.$$observable] = function () {\r\n        return this;\r\n    };\r\n    // HACK: Since TypeScript inherits static properties too, we have to\r\n    // fight against TypeScript here so Subject can have a different static create signature\r\n    /**\r\n     * Creates a new cold Observable by calling the Observable constructor\r\n     * @static true\r\n     * @owner Observable\r\n     * @method create\r\n     * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor\r\n     * @return {Observable} a new cold observable\r\n     */\r\n    Observable.create = function (subscribe) {\r\n        return new Observable(subscribe);\r\n    };\r\n    return Observable;\r\n}());\r\nexports.Observable = Observable;\r\n//# sourceMappingURL=Observable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/Observable.js\n// module id = 5\n// module chunks = 2","'use strict';\r\n\r\nvar support = require('./support');\r\nvar base64 = require('./base64');\r\nvar nodejsUtils = require('./nodejsUtils');\r\nvar setImmediate = require('core-js/library/fn/set-immediate');\r\nvar external = require(\"./external\");\r\n\r\n\r\n/**\r\n * Convert a string that pass as a \"binary string\": it should represent a byte\r\n * array but may have > 255 char codes. Be sure to take only the first byte\r\n * and returns the byte array.\r\n * @param {String} str the string to transform.\r\n * @return {Array|Uint8Array} the string in a binary format.\r\n */\r\nfunction string2binary(str) {\r\n    var result = null;\r\n    if (support.uint8array) {\r\n      result = new Uint8Array(str.length);\r\n    } else {\r\n      result = new Array(str.length);\r\n    }\r\n    return stringToArrayLike(str, result);\r\n}\r\n\r\n/**\r\n * Create a new blob with the given content and the given type.\r\n * @param {Array[String|ArrayBuffer]} parts the content to put in the blob. DO NOT use\r\n * an Uint8Array because the stock browser of android 4 won't accept it (it\r\n * will be silently converted to a string, \"[object Uint8Array]\").\r\n * @param {String} type the mime type of the blob.\r\n * @return {Blob} the created blob.\r\n */\r\nexports.newBlob = function(parts, type) {\r\n    exports.checkSupport(\"blob\");\r\n\r\n    try {\r\n        // Blob constructor\r\n        return new Blob(parts, {\r\n            type: type\r\n        });\r\n    }\r\n    catch (e) {\r\n\r\n        try {\r\n            // deprecated, browser only, old way\r\n            var Builder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder;\r\n            var builder = new Builder();\r\n            for (var i = 0; i < parts.length; i++) {\r\n                builder.append(parts[i]);\r\n            }\r\n            return builder.getBlob(type);\r\n        }\r\n        catch (e) {\r\n\r\n            // well, fuck ?!\r\n            throw new Error(\"Bug : can't construct the Blob.\");\r\n        }\r\n    }\r\n\r\n\r\n};\r\n/**\r\n * The identity function.\r\n * @param {Object} input the input.\r\n * @return {Object} the same input.\r\n */\r\nfunction identity(input) {\r\n    return input;\r\n}\r\n\r\n/**\r\n * Fill in an array with a string.\r\n * @param {String} str the string to use.\r\n * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to fill in (will be mutated).\r\n * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array.\r\n */\r\nfunction stringToArrayLike(str, array) {\r\n    for (var i = 0; i < str.length; ++i) {\r\n        array[i] = str.charCodeAt(i) & 0xFF;\r\n    }\r\n    return array;\r\n}\r\n\r\n/**\r\n * An helper for the function arrayLikeToString.\r\n * This contains static informations and functions that\r\n * can be optimized by the browser JIT compiler.\r\n */\r\nvar arrayToStringHelper = {\r\n    /**\r\n     * Transform an array of int into a string, chunk by chunk.\r\n     * See the performances notes on arrayLikeToString.\r\n     * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.\r\n     * @param {String} type the type of the array.\r\n     * @param {Integer} chunk the chunk size.\r\n     * @return {String} the resulting string.\r\n     * @throws Error if the chunk is too big for the stack.\r\n     */\r\n    stringifyByChunk: function(array, type, chunk) {\r\n        var result = [], k = 0, len = array.length;\r\n        // shortcut\r\n        if (len <= chunk) {\r\n            return String.fromCharCode.apply(null, array);\r\n        }\r\n        while (k < len) {\r\n            if (type === \"array\" || type === \"nodebuffer\") {\r\n                result.push(String.fromCharCode.apply(null, array.slice(k, Math.min(k + chunk, len))));\r\n            }\r\n            else {\r\n                result.push(String.fromCharCode.apply(null, array.subarray(k, Math.min(k + chunk, len))));\r\n            }\r\n            k += chunk;\r\n        }\r\n        return result.join(\"\");\r\n    },\r\n    /**\r\n     * Call String.fromCharCode on every item in the array.\r\n     * This is the naive implementation, which generate A LOT of intermediate string.\r\n     * This should be used when everything else fail.\r\n     * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.\r\n     * @return {String} the result.\r\n     */\r\n    stringifyByChar: function(array){\r\n        var resultStr = \"\";\r\n        for(var i = 0; i < array.length; i++) {\r\n            resultStr += String.fromCharCode(array[i]);\r\n        }\r\n        return resultStr;\r\n    },\r\n    applyCanBeUsed : {\r\n        /**\r\n         * true if the browser accepts to use String.fromCharCode on Uint8Array\r\n         */\r\n        uint8array : (function () {\r\n            try {\r\n                return support.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;\r\n            } catch (e) {\r\n                return false;\r\n            }\r\n        })(),\r\n        /**\r\n         * true if the browser accepts to use String.fromCharCode on nodejs Buffer.\r\n         */\r\n        nodebuffer : (function () {\r\n            try {\r\n                return support.nodebuffer && String.fromCharCode.apply(null, nodejsUtils.newBuffer(1)).length === 1;\r\n            } catch (e) {\r\n                return false;\r\n            }\r\n        })()\r\n    }\r\n};\r\n\r\n/**\r\n * Transform an array-like object to a string.\r\n * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform.\r\n * @return {String} the result.\r\n */\r\nfunction arrayLikeToString(array) {\r\n    // Performances notes :\r\n    // --------------------\r\n    // String.fromCharCode.apply(null, array) is the fastest, see\r\n    // see http://jsperf.com/converting-a-uint8array-to-a-string/2\r\n    // but the stack is limited (and we can get huge arrays !).\r\n    //\r\n    // result += String.fromCharCode(array[i]); generate too many strings !\r\n    //\r\n    // This code is inspired by http://jsperf.com/arraybuffer-to-string-apply-performance/2\r\n    // TODO : we now have workers that split the work. Do we still need that ?\r\n    var chunk = 65536,\r\n        type = exports.getTypeOf(array),\r\n        canUseApply = true;\r\n    if (type === \"uint8array\") {\r\n        canUseApply = arrayToStringHelper.applyCanBeUsed.uint8array;\r\n    } else if (type === \"nodebuffer\") {\r\n        canUseApply = arrayToStringHelper.applyCanBeUsed.nodebuffer;\r\n    }\r\n\r\n    if (canUseApply) {\r\n        while (chunk > 1) {\r\n            try {\r\n                return arrayToStringHelper.stringifyByChunk(array, type, chunk);\r\n            } catch (e) {\r\n                chunk = Math.floor(chunk / 2);\r\n            }\r\n        }\r\n    }\r\n\r\n    // no apply or chunk error : slow and painful algorithm\r\n    // default browser on android 4.*\r\n    return arrayToStringHelper.stringifyByChar(array);\r\n}\r\n\r\nexports.applyFromCharCode = arrayLikeToString;\r\n\r\n\r\n/**\r\n * Copy the data from an array-like to an other array-like.\r\n * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayFrom the origin array.\r\n * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayTo the destination array which will be mutated.\r\n * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array.\r\n */\r\nfunction arrayLikeToArrayLike(arrayFrom, arrayTo) {\r\n    for (var i = 0; i < arrayFrom.length; i++) {\r\n        arrayTo[i] = arrayFrom[i];\r\n    }\r\n    return arrayTo;\r\n}\r\n\r\n// a matrix containing functions to transform everything into everything.\r\nvar transform = {};\r\n\r\n// string to ?\r\ntransform[\"string\"] = {\r\n    \"string\": identity,\r\n    \"array\": function(input) {\r\n        return stringToArrayLike(input, new Array(input.length));\r\n    },\r\n    \"arraybuffer\": function(input) {\r\n        return transform[\"string\"][\"uint8array\"](input).buffer;\r\n    },\r\n    \"uint8array\": function(input) {\r\n        return stringToArrayLike(input, new Uint8Array(input.length));\r\n    },\r\n    \"nodebuffer\": function(input) {\r\n        return stringToArrayLike(input, nodejsUtils.newBuffer(input.length));\r\n    }\r\n};\r\n\r\n// array to ?\r\ntransform[\"array\"] = {\r\n    \"string\": arrayLikeToString,\r\n    \"array\": identity,\r\n    \"arraybuffer\": function(input) {\r\n        return (new Uint8Array(input)).buffer;\r\n    },\r\n    \"uint8array\": function(input) {\r\n        return new Uint8Array(input);\r\n    },\r\n    \"nodebuffer\": function(input) {\r\n        return nodejsUtils.newBuffer(input);\r\n    }\r\n};\r\n\r\n// arraybuffer to ?\r\ntransform[\"arraybuffer\"] = {\r\n    \"string\": function(input) {\r\n        return arrayLikeToString(new Uint8Array(input));\r\n    },\r\n    \"array\": function(input) {\r\n        return arrayLikeToArrayLike(new Uint8Array(input), new Array(input.byteLength));\r\n    },\r\n    \"arraybuffer\": identity,\r\n    \"uint8array\": function(input) {\r\n        return new Uint8Array(input);\r\n    },\r\n    \"nodebuffer\": function(input) {\r\n        return nodejsUtils.newBuffer(new Uint8Array(input));\r\n    }\r\n};\r\n\r\n// uint8array to ?\r\ntransform[\"uint8array\"] = {\r\n    \"string\": arrayLikeToString,\r\n    \"array\": function(input) {\r\n        return arrayLikeToArrayLike(input, new Array(input.length));\r\n    },\r\n    \"arraybuffer\": function(input) {\r\n        // copy the uint8array: DO NOT propagate the original ArrayBuffer, it\r\n        // can be way larger (the whole zip file for example).\r\n        var copy = new Uint8Array(input.length);\r\n        if (input.length) {\r\n            copy.set(input, 0);\r\n        }\r\n        return copy.buffer;\r\n    },\r\n    \"uint8array\": identity,\r\n    \"nodebuffer\": function(input) {\r\n        return nodejsUtils.newBuffer(input);\r\n    }\r\n};\r\n\r\n// nodebuffer to ?\r\ntransform[\"nodebuffer\"] = {\r\n    \"string\": arrayLikeToString,\r\n    \"array\": function(input) {\r\n        return arrayLikeToArrayLike(input, new Array(input.length));\r\n    },\r\n    \"arraybuffer\": function(input) {\r\n        return transform[\"nodebuffer\"][\"uint8array\"](input).buffer;\r\n    },\r\n    \"uint8array\": function(input) {\r\n        return arrayLikeToArrayLike(input, new Uint8Array(input.length));\r\n    },\r\n    \"nodebuffer\": identity\r\n};\r\n\r\n/**\r\n * Transform an input into any type.\r\n * The supported output type are : string, array, uint8array, arraybuffer, nodebuffer.\r\n * If no output type is specified, the unmodified input will be returned.\r\n * @param {String} outputType the output type.\r\n * @param {String|Array|ArrayBuffer|Uint8Array|Buffer} input the input to convert.\r\n * @throws {Error} an Error if the browser doesn't support the requested output type.\r\n */\r\nexports.transformTo = function(outputType, input) {\r\n    if (!input) {\r\n        // undefined, null, etc\r\n        // an empty string won't harm.\r\n        input = \"\";\r\n    }\r\n    if (!outputType) {\r\n        return input;\r\n    }\r\n    exports.checkSupport(outputType);\r\n    var inputType = exports.getTypeOf(input);\r\n    var result = transform[inputType][outputType](input);\r\n    return result;\r\n};\r\n\r\n/**\r\n * Return the type of the input.\r\n * The type will be in a format valid for JSZip.utils.transformTo : string, array, uint8array, arraybuffer.\r\n * @param {Object} input the input to identify.\r\n * @return {String} the (lowercase) type of the input.\r\n */\r\nexports.getTypeOf = function(input) {\r\n    if (typeof input === \"string\") {\r\n        return \"string\";\r\n    }\r\n    if (Object.prototype.toString.call(input) === \"[object Array]\") {\r\n        return \"array\";\r\n    }\r\n    if (support.nodebuffer && nodejsUtils.isBuffer(input)) {\r\n        return \"nodebuffer\";\r\n    }\r\n    if (support.uint8array && input instanceof Uint8Array) {\r\n        return \"uint8array\";\r\n    }\r\n    if (support.arraybuffer && input instanceof ArrayBuffer) {\r\n        return \"arraybuffer\";\r\n    }\r\n};\r\n\r\n/**\r\n * Throw an exception if the type is not supported.\r\n * @param {String} type the type to check.\r\n * @throws {Error} an Error if the browser doesn't support the requested type.\r\n */\r\nexports.checkSupport = function(type) {\r\n    var supported = support[type.toLowerCase()];\r\n    if (!supported) {\r\n        throw new Error(type + \" is not supported by this platform\");\r\n    }\r\n};\r\n\r\nexports.MAX_VALUE_16BITS = 65535;\r\nexports.MAX_VALUE_32BITS = -1; // well, \"\\xFF\\xFF\\xFF\\xFF\\xFF\\xFF\\xFF\\xFF\" is parsed as -1\r\n\r\n/**\r\n * Prettify a string read as binary.\r\n * @param {string} str the string to prettify.\r\n * @return {string} a pretty string.\r\n */\r\nexports.pretty = function(str) {\r\n    var res = '',\r\n        code, i;\r\n    for (i = 0; i < (str || \"\").length; i++) {\r\n        code = str.charCodeAt(i);\r\n        res += '\\\\x' + (code < 16 ? \"0\" : \"\") + code.toString(16).toUpperCase();\r\n    }\r\n    return res;\r\n};\r\n\r\n/**\r\n * Defer the call of a function.\r\n * @param {Function} callback the function to call asynchronously.\r\n * @param {Array} args the arguments to give to the callback.\r\n */\r\nexports.delay = function(callback, args, self) {\r\n    setImmediate(function () {\r\n        callback.apply(self || null, args || []);\r\n    });\r\n};\r\n\r\n/**\r\n * Extends a prototype with an other, without calling a constructor with\r\n * side effects. Inspired by nodejs' `utils.inherits`\r\n * @param {Function} ctor the constructor to augment\r\n * @param {Function} superCtor the parent constructor to use\r\n */\r\nexports.inherits = function (ctor, superCtor) {\r\n    var Obj = function() {};\r\n    Obj.prototype = superCtor.prototype;\r\n    ctor.prototype = new Obj();\r\n};\r\n\r\n/**\r\n * Merge the objects passed as parameters into a new one.\r\n * @private\r\n * @param {...Object} var_args All objects to merge.\r\n * @return {Object} a new object with the data of the others.\r\n */\r\nexports.extend = function() {\r\n    var result = {}, i, attr;\r\n    for (i = 0; i < arguments.length; i++) { // arguments is not enumerable in some browsers\r\n        for (attr in arguments[i]) {\r\n            if (arguments[i].hasOwnProperty(attr) && typeof result[attr] === \"undefined\") {\r\n                result[attr] = arguments[i][attr];\r\n            }\r\n        }\r\n    }\r\n    return result;\r\n};\r\n\r\n/**\r\n * Transform arbitrary content into a Promise.\r\n * @param {String} name a name for the content being processed.\r\n * @param {Object} inputData the content to process.\r\n * @param {Boolean} isBinary true if the content is not an unicode string\r\n * @param {Boolean} isOptimizedBinaryString true if the string content only has one byte per character.\r\n * @param {Boolean} isBase64 true if the string content is encoded with base64.\r\n * @return {Promise} a promise in a format usable by JSZip.\r\n */\r\nexports.prepareContent = function(name, inputData, isBinary, isOptimizedBinaryString, isBase64) {\r\n\r\n    // if inputData is already a promise, this flatten it.\r\n    var promise = external.Promise.resolve(inputData).then(function(data) {\r\n        \r\n        \r\n        var isBlob = support.blob && (data instanceof Blob || ['[object File]', '[object Blob]'].indexOf(Object.prototype.toString.call(data)) !== -1);\r\n\r\n        if (isBlob && typeof FileReader !== \"undefined\") {\r\n            return new external.Promise(function (resolve, reject) {\r\n                var reader = new FileReader();\r\n\r\n                reader.onload = function(e) {\r\n                    resolve(e.target.result);\r\n                };\r\n                reader.onerror = function(e) {\r\n                    reject(e.target.error);\r\n                };\r\n                reader.readAsArrayBuffer(data);\r\n            });\r\n        } else {\r\n            return data;\r\n        }\r\n    });\r\n\r\n    return promise.then(function(data) {\r\n        var dataType = exports.getTypeOf(data);\r\n\r\n        if (!dataType) {\r\n            return external.Promise.reject(\r\n                new Error(\"The data of '\" + name + \"' is in an unsupported format !\")\r\n            );\r\n        }\r\n        // special case : it's way easier to work with Uint8Array than with ArrayBuffer\r\n        if (dataType === \"arraybuffer\") {\r\n            data = exports.transformTo(\"uint8array\", data);\r\n        } else if (dataType === \"string\") {\r\n            if (isBase64) {\r\n                data = base64.decode(data);\r\n            }\r\n            else if (isBinary) {\r\n                // optimizedBinaryString === true means that the file has already been filtered with a 0xFF mask\r\n                if (isOptimizedBinaryString !== true) {\r\n                    // this is a string, not in a base64 format.\r\n                    // Be sure that this is a correct \"binary string\"\r\n                    data = string2binary(data);\r\n                }\r\n            }\r\n        }\r\n        return data;\r\n    });\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/utils.js\n// module id = 10\n// module chunks = 2","/*eslint-disable no-unused-vars*/\r\n/*!\r\n * jQuery JavaScript Library v3.1.0\r\n * https://jquery.com/\r\n *\r\n * Includes Sizzle.js\r\n * https://sizzlejs.com/\r\n *\r\n * Copyright jQuery Foundation and other contributors\r\n * Released under the MIT license\r\n * https://jquery.org/license\r\n *\r\n * Date: 2016-07-07T21:44Z\r\n */\r\n( function( global, factory ) {\r\n\r\n\t\"use strict\";\r\n\r\n\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\r\n\r\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\r\n\t\t// is present, execute the factory and get jQuery.\r\n\t\t// For environments that do not have a `window` with a `document`\r\n\t\t// (such as Node.js), expose a factory as module.exports.\r\n\t\t// This accentuates the need for the creation of a real `window`.\r\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\r\n\t\t// See ticket #14549 for more info.\r\n\t\tmodule.exports = global.document ?\r\n\t\t\tfactory( global, true ) :\r\n\t\t\tfunction( w ) {\r\n\t\t\t\tif ( !w.document ) {\r\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\r\n\t\t\t\t}\r\n\t\t\t\treturn factory( w );\r\n\t\t\t};\r\n\t} else {\r\n\t\tfactory( global );\r\n\t}\r\n\r\n// Pass this if window is not defined yet\r\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\r\n\r\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\r\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\r\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\r\n// enough that all such attempts are guarded in a try block.\r\n\"use strict\";\r\n\r\nvar arr = [];\r\n\r\nvar document = window.document;\r\n\r\nvar getProto = Object.getPrototypeOf;\r\n\r\nvar slice = arr.slice;\r\n\r\nvar concat = arr.concat;\r\n\r\nvar push = arr.push;\r\n\r\nvar indexOf = arr.indexOf;\r\n\r\nvar class2type = {};\r\n\r\nvar toString = class2type.toString;\r\n\r\nvar hasOwn = class2type.hasOwnProperty;\r\n\r\nvar fnToString = hasOwn.toString;\r\n\r\nvar ObjectFunctionString = fnToString.call( Object );\r\n\r\nvar support = {};\r\n\r\n\r\n\r\n\tfunction DOMEval( code, doc ) {\r\n\t\tdoc = doc || document;\r\n\r\n\t\tvar script = doc.createElement( \"script\" );\r\n\r\n\t\tscript.text = code;\r\n\t\tdoc.head.appendChild( script ).parentNode.removeChild( script );\r\n\t}\r\n/* global Symbol */\r\n// Defining this global in .eslintrc would create a danger of using the global\r\n// unguarded in another place, it seems safer to define global only for this module\r\n\r\n\r\n\r\nvar\r\n\tversion = \"3.1.0\",\r\n\r\n\t// Define a local copy of jQuery\r\n\tjQuery = function( selector, context ) {\r\n\r\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\r\n\t\t// Need init if jQuery is called (just allow error to be thrown if not included)\r\n\t\treturn new jQuery.fn.init( selector, context );\r\n\t},\r\n\r\n\t// Support: Android <=4.0 only\r\n\t// Make sure we trim BOM and NBSP\r\n\trtrim = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\r\n\r\n\t// Matches dashed string for camelizing\r\n\trmsPrefix = /^-ms-/,\r\n\trdashAlpha = /-([a-z])/g,\r\n\r\n\t// Used by jQuery.camelCase as callback to replace()\r\n\tfcamelCase = function( all, letter ) {\r\n\t\treturn letter.toUpperCase();\r\n\t};\r\n\r\njQuery.fn = jQuery.prototype = {\r\n\r\n\t// The current version of jQuery being used\r\n\tjquery: version,\r\n\r\n\tconstructor: jQuery,\r\n\r\n\t// The default length of a jQuery object is 0\r\n\tlength: 0,\r\n\r\n\ttoArray: function() {\r\n\t\treturn slice.call( this );\r\n\t},\r\n\r\n\t// Get the Nth element in the matched element set OR\r\n\t// Get the whole matched element set as a clean array\r\n\tget: function( num ) {\r\n\t\treturn num != null ?\r\n\r\n\t\t\t// Return just the one element from the set\r\n\t\t\t( num < 0 ? this[ num + this.length ] : this[ num ] ) :\r\n\r\n\t\t\t// Return all the elements in a clean array\r\n\t\t\tslice.call( this );\r\n\t},\r\n\r\n\t// Take an array of elements and push it onto the stack\r\n\t// (returning the new matched element set)\r\n\tpushStack: function( elems ) {\r\n\r\n\t\t// Build a new jQuery matched element set\r\n\t\tvar ret = jQuery.merge( this.constructor(), elems );\r\n\r\n\t\t// Add the old object onto the stack (as a reference)\r\n\t\tret.prevObject = this;\r\n\r\n\t\t// Return the newly-formed element set\r\n\t\treturn ret;\r\n\t},\r\n\r\n\t// Execute a callback for every element in the matched set.\r\n\teach: function( callback ) {\r\n\t\treturn jQuery.each( this, callback );\r\n\t},\r\n\r\n\tmap: function( callback ) {\r\n\t\treturn this.pushStack( jQuery.map( this, function( elem, i ) {\r\n\t\t\treturn callback.call( elem, i, elem );\r\n\t\t} ) );\r\n\t},\r\n\r\n\tslice: function() {\r\n\t\treturn this.pushStack( slice.apply( this, arguments ) );\r\n\t},\r\n\r\n\tfirst: function() {\r\n\t\treturn this.eq( 0 );\r\n\t},\r\n\r\n\tlast: function() {\r\n\t\treturn this.eq( -1 );\r\n\t},\r\n\r\n\teq: function( i ) {\r\n\t\tvar len = this.length,\r\n\t\t\tj = +i + ( i < 0 ? len : 0 );\r\n\t\treturn this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );\r\n\t},\r\n\r\n\tend: function() {\r\n\t\treturn this.prevObject || this.constructor();\r\n\t},\r\n\r\n\t// For internal use only.\r\n\t// Behaves like an Array's method, not like a jQuery method.\r\n\tpush: push,\r\n\tsort: arr.sort,\r\n\tsplice: arr.splice\r\n};\r\n\r\njQuery.extend = jQuery.fn.extend = function() {\r\n\tvar options, name, src, copy, copyIsArray, clone,\r\n\t\ttarget = arguments[ 0 ] || {},\r\n\t\ti = 1,\r\n\t\tlength = arguments.length,\r\n\t\tdeep = false;\r\n\r\n\t// Handle a deep copy situation\r\n\tif ( typeof target === \"boolean\" ) {\r\n\t\tdeep = target;\r\n\r\n\t\t// Skip the boolean and the target\r\n\t\ttarget = arguments[ i ] || {};\r\n\t\ti++;\r\n\t}\r\n\r\n\t// Handle case when target is a string or something (possible in deep copy)\r\n\tif ( typeof target !== \"object\" && !jQuery.isFunction( target ) ) {\r\n\t\ttarget = {};\r\n\t}\r\n\r\n\t// Extend jQuery itself if only one argument is passed\r\n\tif ( i === length ) {\r\n\t\ttarget = this;\r\n\t\ti--;\r\n\t}\r\n\r\n\tfor ( ; i < length; i++ ) {\r\n\r\n\t\t// Only deal with non-null/undefined values\r\n\t\tif ( ( options = arguments[ i ] ) != null ) {\r\n\r\n\t\t\t// Extend the base object\r\n\t\t\tfor ( name in options ) {\r\n\t\t\t\tsrc = target[ name ];\r\n\t\t\t\tcopy = options[ name ];\r\n\r\n\t\t\t\t// Prevent never-ending loop\r\n\t\t\t\tif ( target === copy ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Recurse if we're merging plain objects or arrays\r\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject( copy ) ||\r\n\t\t\t\t\t( copyIsArray = jQuery.isArray( copy ) ) ) ) {\r\n\r\n\t\t\t\t\tif ( copyIsArray ) {\r\n\t\t\t\t\t\tcopyIsArray = false;\r\n\t\t\t\t\t\tclone = src && jQuery.isArray( src ) ? src : [];\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tclone = src && jQuery.isPlainObject( src ) ? src : {};\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Never move original objects, clone them\r\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\r\n\r\n\t\t\t\t// Don't bring in undefined values\r\n\t\t\t\t} else if ( copy !== undefined ) {\r\n\t\t\t\t\ttarget[ name ] = copy;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// Return the modified object\r\n\treturn target;\r\n};\r\n\r\njQuery.extend( {\r\n\r\n\t// Unique for each copy of jQuery on the page\r\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\r\n\r\n\t// Assume jQuery is ready without the ready module\r\n\tisReady: true,\r\n\r\n\terror: function( msg ) {\r\n\t\tthrow new Error( msg );\r\n\t},\r\n\r\n\tnoop: function() {},\r\n\r\n\tisFunction: function( obj ) {\r\n\t\treturn jQuery.type( obj ) === \"function\";\r\n\t},\r\n\r\n\tisArray: Array.isArray,\r\n\r\n\tisWindow: function( obj ) {\r\n\t\treturn obj != null && obj === obj.window;\r\n\t},\r\n\r\n\tisNumeric: function( obj ) {\r\n\r\n\t\t// As of jQuery 3.0, isNumeric is limited to\r\n\t\t// strings and numbers (primitives or objects)\r\n\t\t// that can be coerced to finite numbers (gh-2662)\r\n\t\tvar type = jQuery.type( obj );\r\n\t\treturn ( type === \"number\" || type === \"string\" ) &&\r\n\r\n\t\t\t// parseFloat NaNs numeric-cast false positives (\"\")\r\n\t\t\t// ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")\r\n\t\t\t// subtraction forces infinities to NaN\r\n\t\t\t!isNaN( obj - parseFloat( obj ) );\r\n\t},\r\n\r\n\tisPlainObject: function( obj ) {\r\n\t\tvar proto, Ctor;\r\n\r\n\t\t// Detect obvious negatives\r\n\t\t// Use toString instead of jQuery.type to catch host objects\r\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tproto = getProto( obj );\r\n\r\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\r\n\t\tif ( !proto ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t// Objects with prototype are plain iff they were constructed by a global Object function\r\n\t\tCtor = hasOwn.call( proto, \"constructor\" ) && proto.constructor;\r\n\t\treturn typeof Ctor === \"function\" && fnToString.call( Ctor ) === ObjectFunctionString;\r\n\t},\r\n\r\n\tisEmptyObject: function( obj ) {\r\n\r\n\t\t/* eslint-disable no-unused-vars */\r\n\t\t// See https://github.com/eslint/eslint/issues/6125\r\n\t\tvar name;\r\n\r\n\t\tfor ( name in obj ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t},\r\n\r\n\ttype: function( obj ) {\r\n\t\tif ( obj == null ) {\r\n\t\t\treturn obj + \"\";\r\n\t\t}\r\n\r\n\t\t// Support: Android <=2.3 only (functionish RegExp)\r\n\t\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\r\n\t\t\tclass2type[ toString.call( obj ) ] || \"object\" :\r\n\t\t\ttypeof obj;\r\n\t},\r\n\r\n\t// Evaluates a script in a global context\r\n\tglobalEval: function( code ) {\r\n\t\tDOMEval( code );\r\n\t},\r\n\r\n\t// Convert dashed to camelCase; used by the css and data modules\r\n\t// Support: IE <=9 - 11, Edge 12 - 13\r\n\t// Microsoft forgot to hump their vendor prefix (#9572)\r\n\tcamelCase: function( string ) {\r\n\t\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\r\n\t},\r\n\r\n\tnodeName: function( elem, name ) {\r\n\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\r\n\t},\r\n\r\n\teach: function( obj, callback ) {\r\n\t\tvar length, i = 0;\r\n\r\n\t\tif ( isArrayLike( obj ) ) {\r\n\t\t\tlength = obj.length;\r\n\t\t\tfor ( ; i < length; i++ ) {\r\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tfor ( i in obj ) {\r\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn obj;\r\n\t},\r\n\r\n\t// Support: Android <=4.0 only\r\n\ttrim: function( text ) {\r\n\t\treturn text == null ?\r\n\t\t\t\"\" :\r\n\t\t\t( text + \"\" ).replace( rtrim, \"\" );\r\n\t},\r\n\r\n\t// results is for internal usage only\r\n\tmakeArray: function( arr, results ) {\r\n\t\tvar ret = results || [];\r\n\r\n\t\tif ( arr != null ) {\r\n\t\t\tif ( isArrayLike( Object( arr ) ) ) {\r\n\t\t\t\tjQuery.merge( ret,\r\n\t\t\t\t\ttypeof arr === \"string\" ?\r\n\t\t\t\t\t[ arr ] : arr\r\n\t\t\t\t);\r\n\t\t\t} else {\r\n\t\t\t\tpush.call( ret, arr );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t},\r\n\r\n\tinArray: function( elem, arr, i ) {\r\n\t\treturn arr == null ? -1 : indexOf.call( arr, elem, i );\r\n\t},\r\n\r\n\t// Support: Android <=4.0 only, PhantomJS 1 only\r\n\t// push.apply(_, arraylike) throws on ancient WebKit\r\n\tmerge: function( first, second ) {\r\n\t\tvar len = +second.length,\r\n\t\t\tj = 0,\r\n\t\t\ti = first.length;\r\n\r\n\t\tfor ( ; j < len; j++ ) {\r\n\t\t\tfirst[ i++ ] = second[ j ];\r\n\t\t}\r\n\r\n\t\tfirst.length = i;\r\n\r\n\t\treturn first;\r\n\t},\r\n\r\n\tgrep: function( elems, callback, invert ) {\r\n\t\tvar callbackInverse,\r\n\t\t\tmatches = [],\r\n\t\t\ti = 0,\r\n\t\t\tlength = elems.length,\r\n\t\t\tcallbackExpect = !invert;\r\n\r\n\t\t// Go through the array, only saving the items\r\n\t\t// that pass the validator function\r\n\t\tfor ( ; i < length; i++ ) {\r\n\t\t\tcallbackInverse = !callback( elems[ i ], i );\r\n\t\t\tif ( callbackInverse !== callbackExpect ) {\r\n\t\t\t\tmatches.push( elems[ i ] );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn matches;\r\n\t},\r\n\r\n\t// arg is for internal usage only\r\n\tmap: function( elems, callback, arg ) {\r\n\t\tvar length, value,\r\n\t\t\ti = 0,\r\n\t\t\tret = [];\r\n\r\n\t\t// Go through the array, translating each of the items to their new values\r\n\t\tif ( isArrayLike( elems ) ) {\r\n\t\t\tlength = elems.length;\r\n\t\t\tfor ( ; i < length; i++ ) {\r\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\r\n\r\n\t\t\t\tif ( value != null ) {\r\n\t\t\t\t\tret.push( value );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t// Go through every key on the object,\r\n\t\t} else {\r\n\t\t\tfor ( i in elems ) {\r\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\r\n\r\n\t\t\t\tif ( value != null ) {\r\n\t\t\t\t\tret.push( value );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Flatten any nested arrays\r\n\t\treturn concat.apply( [], ret );\r\n\t},\r\n\r\n\t// A global GUID counter for objects\r\n\tguid: 1,\r\n\r\n\t// Bind a function to a context, optionally partially applying any\r\n\t// arguments.\r\n\tproxy: function( fn, context ) {\r\n\t\tvar tmp, args, proxy;\r\n\r\n\t\tif ( typeof context === \"string\" ) {\r\n\t\t\ttmp = fn[ context ];\r\n\t\t\tcontext = fn;\r\n\t\t\tfn = tmp;\r\n\t\t}\r\n\r\n\t\t// Quick check to determine if target is callable, in the spec\r\n\t\t// this throws a TypeError, but we will just return undefined.\r\n\t\tif ( !jQuery.isFunction( fn ) ) {\r\n\t\t\treturn undefined;\r\n\t\t}\r\n\r\n\t\t// Simulated bind\r\n\t\targs = slice.call( arguments, 2 );\r\n\t\tproxy = function() {\r\n\t\t\treturn fn.apply( context || this, args.concat( slice.call( arguments ) ) );\r\n\t\t};\r\n\r\n\t\t// Set the guid of unique handler to the same of original handler, so it can be removed\r\n\t\tproxy.guid = fn.guid = fn.guid || jQuery.guid++;\r\n\r\n\t\treturn proxy;\r\n\t},\r\n\r\n\tnow: Date.now,\r\n\r\n\t// jQuery.support is not used in Core but other projects attach their\r\n\t// properties to it so it needs to exist.\r\n\tsupport: support\r\n} );\r\n\r\nif ( typeof Symbol === \"function\" ) {\r\n\tjQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];\r\n}\r\n\r\n// Populate the class2type map\r\njQuery.each( \"Boolean Number String Function Array Date RegExp Object Error Symbol\".split( \" \" ),\r\nfunction( i, name ) {\r\n\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\r\n} );\r\n\r\nfunction isArrayLike( obj ) {\r\n\r\n\t// Support: real iOS 8.2 only (not reproducible in simulator)\r\n\t// `in` check used to prevent JIT error (gh-2145)\r\n\t// hasOwn isn't used here due to false negatives\r\n\t// regarding Nodelist length in IE\r\n\tvar length = !!obj && \"length\" in obj && obj.length,\r\n\t\ttype = jQuery.type( obj );\r\n\r\n\tif ( type === \"function\" || jQuery.isWindow( obj ) ) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\treturn type === \"array\" || length === 0 ||\r\n\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj;\r\n}\r\nvar Sizzle =\r\n/*!\r\n * Sizzle CSS Selector Engine v2.3.0\r\n * https://sizzlejs.com/\r\n *\r\n * Copyright jQuery Foundation and other contributors\r\n * Released under the MIT license\r\n * http://jquery.org/license\r\n *\r\n * Date: 2016-01-04\r\n */\r\n(function( window ) {\r\n\r\nvar i,\r\n\tsupport,\r\n\tExpr,\r\n\tgetText,\r\n\tisXML,\r\n\ttokenize,\r\n\tcompile,\r\n\tselect,\r\n\toutermostContext,\r\n\tsortInput,\r\n\thasDuplicate,\r\n\r\n\t// Local document vars\r\n\tsetDocument,\r\n\tdocument,\r\n\tdocElem,\r\n\tdocumentIsHTML,\r\n\trbuggyQSA,\r\n\trbuggyMatches,\r\n\tmatches,\r\n\tcontains,\r\n\r\n\t// Instance-specific data\r\n\texpando = \"sizzle\" + 1 * new Date(),\r\n\tpreferredDoc = window.document,\r\n\tdirruns = 0,\r\n\tdone = 0,\r\n\tclassCache = createCache(),\r\n\ttokenCache = createCache(),\r\n\tcompilerCache = createCache(),\r\n\tsortOrder = function( a, b ) {\r\n\t\tif ( a === b ) {\r\n\t\t\thasDuplicate = true;\r\n\t\t}\r\n\t\treturn 0;\r\n\t},\r\n\r\n\t// Instance methods\r\n\thasOwn = ({}).hasOwnProperty,\r\n\tarr = [],\r\n\tpop = arr.pop,\r\n\tpush_native = arr.push,\r\n\tpush = arr.push,\r\n\tslice = arr.slice,\r\n\t// Use a stripped-down indexOf as it's faster than native\r\n\t// https://jsperf.com/thor-indexof-vs-for/5\r\n\tindexOf = function( list, elem ) {\r\n\t\tvar i = 0,\r\n\t\t\tlen = list.length;\r\n\t\tfor ( ; i < len; i++ ) {\r\n\t\t\tif ( list[i] === elem ) {\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t},\r\n\r\n\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",\r\n\r\n\t// Regular expressions\r\n\r\n\t// http://www.w3.org/TR/css3-selectors/#whitespace\r\n\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\r\n\r\n\t// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier\r\n\tidentifier = \"(?:\\\\\\\\.|[\\\\w-]|[^\\0-\\\\xa0])+\",\r\n\r\n\t// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\r\n\tattributes = \"\\\\[\" + whitespace + \"*(\" + identifier + \")(?:\" + whitespace +\r\n\t\t// Operator (capture 2)\r\n\t\t\"*([*^$|!~]?=)\" + whitespace +\r\n\t\t// \"Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]\"\r\n\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" + identifier + \"))|)\" + whitespace +\r\n\t\t\"*\\\\]\",\r\n\r\n\tpseudos = \":(\" + identifier + \")(?:\\\\((\" +\r\n\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\r\n\t\t// 1. quoted (capture 3; capture 4 or capture 5)\r\n\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\r\n\t\t// 2. simple (capture 6)\r\n\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes + \")*)|\" +\r\n\t\t// 3. anything else (capture 2)\r\n\t\t\".*\" +\r\n\t\t\")\\\\)|)\",\r\n\r\n\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\r\n\trwhitespace = new RegExp( whitespace + \"+\", \"g\" ),\r\n\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" + whitespace + \"+$\", \"g\" ),\r\n\r\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\r\n\trcombinators = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" + whitespace + \"*\" ),\r\n\r\n\trattributeQuotes = new RegExp( \"=\" + whitespace + \"*([^\\\\]'\\\"]*?)\" + whitespace + \"*\\\\]\", \"g\" ),\r\n\r\n\trpseudo = new RegExp( pseudos ),\r\n\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\r\n\r\n\tmatchExpr = {\r\n\t\t\"ID\": new RegExp( \"^#(\" + identifier + \")\" ),\r\n\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + identifier + \")\" ),\r\n\t\t\"TAG\": new RegExp( \"^(\" + identifier + \"|[*])\" ),\r\n\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\r\n\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\r\n\t\t\"CHILD\": new RegExp( \"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" + whitespace +\r\n\t\t\t\"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" + whitespace +\r\n\t\t\t\"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\r\n\t\t\"bool\": new RegExp( \"^(?:\" + booleans + \")$\", \"i\" ),\r\n\t\t// For use in libraries implementing .is()\r\n\t\t// We use this for POS matching in `select`\r\n\t\t\"needsContext\": new RegExp( \"^\" + whitespace + \"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" +\r\n\t\t\twhitespace + \"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\r\n\t},\r\n\r\n\trinputs = /^(?:input|select|textarea|button)$/i,\r\n\trheader = /^h\\d$/i,\r\n\r\n\trnative = /^[^{]+\\{\\s*\\[native \\w/,\r\n\r\n\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\r\n\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\r\n\r\n\trsibling = /[+~]/,\r\n\r\n\t// CSS escapes\r\n\t// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\r\n\trunescape = new RegExp( \"\\\\\\\\([\\\\da-f]{1,6}\" + whitespace + \"?|(\" + whitespace + \")|.)\", \"ig\" ),\r\n\tfunescape = function( _, escaped, escapedWhitespace ) {\r\n\t\tvar high = \"0x\" + escaped - 0x10000;\r\n\t\t// NaN means non-codepoint\r\n\t\t// Support: Firefox<24\r\n\t\t// Workaround erroneous numeric interpretation of +\"0x\"\r\n\t\treturn high !== high || escapedWhitespace ?\r\n\t\t\tescaped :\r\n\t\t\thigh < 0 ?\r\n\t\t\t\t// BMP codepoint\r\n\t\t\t\tString.fromCharCode( high + 0x10000 ) :\r\n\t\t\t\t// Supplemental Plane codepoint (surrogate pair)\r\n\t\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\r\n\t},\r\n\r\n\t// CSS string/identifier serialization\r\n\t// https://drafts.csswg.org/cssom/#common-serializing-idioms\r\n\trcssescape = /([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\x80-\\uFFFF\\w-]/g,\r\n\tfcssescape = function( ch, asCodePoint ) {\r\n\t\tif ( asCodePoint ) {\r\n\r\n\t\t\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\r\n\t\t\tif ( ch === \"\\0\" ) {\r\n\t\t\t\treturn \"\\uFFFD\";\r\n\t\t\t}\r\n\r\n\t\t\t// Control characters and (dependent upon position) numbers get escaped as code points\r\n\t\t\treturn ch.slice( 0, -1 ) + \"\\\\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + \" \";\r\n\t\t}\r\n\r\n\t\t// Other potentially-special ASCII characters get backslash-escaped\r\n\t\treturn \"\\\\\" + ch;\r\n\t},\r\n\r\n\t// Used for iframes\r\n\t// See setDocument()\r\n\t// Removing the function wrapper causes a \"Permission Denied\"\r\n\t// error in IE\r\n\tunloadHandler = function() {\r\n\t\tsetDocument();\r\n\t},\r\n\r\n\tdisabledAncestor = addCombinator(\r\n\t\tfunction( elem ) {\r\n\t\t\treturn elem.disabled === true;\r\n\t\t},\r\n\t\t{ dir: \"parentNode\", next: \"legend\" }\r\n\t);\r\n\r\n// Optimize for push.apply( _, NodeList )\r\ntry {\r\n\tpush.apply(\r\n\t\t(arr = slice.call( preferredDoc.childNodes )),\r\n\t\tpreferredDoc.childNodes\r\n\t);\r\n\t// Support: Android<4.0\r\n\t// Detect silently failing push.apply\r\n\tarr[ preferredDoc.childNodes.length ].nodeType;\r\n} catch ( e ) {\r\n\tpush = { apply: arr.length ?\r\n\r\n\t\t// Leverage slice if possible\r\n\t\tfunction( target, els ) {\r\n\t\t\tpush_native.apply( target, slice.call(els) );\r\n\t\t} :\r\n\r\n\t\t// Support: IE<9\r\n\t\t// Otherwise append directly\r\n\t\tfunction( target, els ) {\r\n\t\t\tvar j = target.length,\r\n\t\t\t\ti = 0;\r\n\t\t\t// Can't trust NodeList.length\r\n\t\t\twhile ( (target[j++] = els[i++]) ) {}\r\n\t\t\ttarget.length = j - 1;\r\n\t\t}\r\n\t};\r\n}\r\n\r\nfunction Sizzle( selector, context, results, seed ) {\r\n\tvar m, i, elem, nid, match, groups, newSelector,\r\n\t\tnewContext = context && context.ownerDocument,\r\n\r\n\t\t// nodeType defaults to 9, since context defaults to document\r\n\t\tnodeType = context ? context.nodeType : 9;\r\n\r\n\tresults = results || [];\r\n\r\n\t// Return early from calls with invalid selector or context\r\n\tif ( typeof selector !== \"string\" || !selector ||\r\n\t\tnodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {\r\n\r\n\t\treturn results;\r\n\t}\r\n\r\n\t// Try to shortcut find operations (as opposed to filters) in HTML documents\r\n\tif ( !seed ) {\r\n\r\n\t\tif ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {\r\n\t\t\tsetDocument( context );\r\n\t\t}\r\n\t\tcontext = context || document;\r\n\r\n\t\tif ( documentIsHTML ) {\r\n\r\n\t\t\t// If the selector is sufficiently simple, try using a \"get*By*\" DOM method\r\n\t\t\t// (excepting DocumentFragment context, where the methods don't exist)\r\n\t\t\tif ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {\r\n\r\n\t\t\t\t// ID selector\r\n\t\t\t\tif ( (m = match[1]) ) {\r\n\r\n\t\t\t\t\t// Document context\r\n\t\t\t\t\tif ( nodeType === 9 ) {\r\n\t\t\t\t\t\tif ( (elem = context.getElementById( m )) ) {\r\n\r\n\t\t\t\t\t\t\t// Support: IE, Opera, Webkit\r\n\t\t\t\t\t\t\t// TODO: identify versions\r\n\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\r\n\t\t\t\t\t\t\tif ( elem.id === m ) {\r\n\t\t\t\t\t\t\t\tresults.push( elem );\r\n\t\t\t\t\t\t\t\treturn results;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\treturn results;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Element context\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t// Support: IE, Opera, Webkit\r\n\t\t\t\t\t\t// TODO: identify versions\r\n\t\t\t\t\t\t// getElementById can match elements by name instead of ID\r\n\t\t\t\t\t\tif ( newContext && (elem = newContext.getElementById( m )) &&\r\n\t\t\t\t\t\t\tcontains( context, elem ) &&\r\n\t\t\t\t\t\t\telem.id === m ) {\r\n\r\n\t\t\t\t\t\t\tresults.push( elem );\r\n\t\t\t\t\t\t\treturn results;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t// Type selector\r\n\t\t\t\t} else if ( match[2] ) {\r\n\t\t\t\t\tpush.apply( results, context.getElementsByTagName( selector ) );\r\n\t\t\t\t\treturn results;\r\n\r\n\t\t\t\t// Class selector\r\n\t\t\t\t} else if ( (m = match[3]) && support.getElementsByClassName &&\r\n\t\t\t\t\tcontext.getElementsByClassName ) {\r\n\r\n\t\t\t\t\tpush.apply( results, context.getElementsByClassName( m ) );\r\n\t\t\t\t\treturn results;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Take advantage of querySelectorAll\r\n\t\t\tif ( support.qsa &&\r\n\t\t\t\t!compilerCache[ selector + \" \" ] &&\r\n\t\t\t\t(!rbuggyQSA || !rbuggyQSA.test( selector )) ) {\r\n\r\n\t\t\t\tif ( nodeType !== 1 ) {\r\n\t\t\t\t\tnewContext = context;\r\n\t\t\t\t\tnewSelector = selector;\r\n\r\n\t\t\t\t// qSA looks outside Element context, which is not what we want\r\n\t\t\t\t// Thanks to Andrew Dupont for this workaround technique\r\n\t\t\t\t// Support: IE <=8\r\n\t\t\t\t// Exclude object elements\r\n\t\t\t\t} else if ( context.nodeName.toLowerCase() !== \"object\" ) {\r\n\r\n\t\t\t\t\t// Capture the context ID, setting it first if necessary\r\n\t\t\t\t\tif ( (nid = context.getAttribute( \"id\" )) ) {\r\n\t\t\t\t\t\tnid = nid.replace( rcssescape, fcssescape );\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcontext.setAttribute( \"id\", (nid = expando) );\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Prefix every selector in the list\r\n\t\t\t\t\tgroups = tokenize( selector );\r\n\t\t\t\t\ti = groups.length;\r\n\t\t\t\t\twhile ( i-- ) {\r\n\t\t\t\t\t\tgroups[i] = \"#\" + nid + \" \" + toSelector( groups[i] );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnewSelector = groups.join( \",\" );\r\n\r\n\t\t\t\t\t// Expand context for sibling selectors\r\n\t\t\t\t\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) ||\r\n\t\t\t\t\t\tcontext;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( newSelector ) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpush.apply( results,\r\n\t\t\t\t\t\t\tnewContext.querySelectorAll( newSelector )\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\treturn results;\r\n\t\t\t\t\t} catch ( qsaError ) {\r\n\t\t\t\t\t} finally {\r\n\t\t\t\t\t\tif ( nid === expando ) {\r\n\t\t\t\t\t\t\tcontext.removeAttribute( \"id\" );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// All others\r\n\treturn select( selector.replace( rtrim, \"$1\" ), context, results, seed );\r\n}\r\n\r\n/**\r\n * Create key-value caches of limited size\r\n * @returns {function(string, object)} Returns the Object data after storing it on itself with\r\n *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\r\n *\tdeleting the oldest entry\r\n */\r\nfunction createCache() {\r\n\tvar keys = [];\r\n\r\n\tfunction cache( key, value ) {\r\n\t\t// Use (key + \" \") to avoid collision with native prototype properties (see Issue #157)\r\n\t\tif ( keys.push( key + \" \" ) > Expr.cacheLength ) {\r\n\t\t\t// Only keep the most recent entries\r\n\t\t\tdelete cache[ keys.shift() ];\r\n\t\t}\r\n\t\treturn (cache[ key + \" \" ] = value);\r\n\t}\r\n\treturn cache;\r\n}\r\n\r\n/**\r\n * Mark a function for special use by Sizzle\r\n * @param {Function} fn The function to mark\r\n */\r\nfunction markFunction( fn ) {\r\n\tfn[ expando ] = true;\r\n\treturn fn;\r\n}\r\n\r\n/**\r\n * Support testing using an element\r\n * @param {Function} fn Passed the created element and returns a boolean result\r\n */\r\nfunction assert( fn ) {\r\n\tvar el = document.createElement(\"fieldset\");\r\n\r\n\ttry {\r\n\t\treturn !!fn( el );\r\n\t} catch (e) {\r\n\t\treturn false;\r\n\t} finally {\r\n\t\t// Remove from its parent by default\r\n\t\tif ( el.parentNode ) {\r\n\t\t\tel.parentNode.removeChild( el );\r\n\t\t}\r\n\t\t// release memory in IE\r\n\t\tel = null;\r\n\t}\r\n}\r\n\r\n/**\r\n * Adds the same handler for all of the specified attrs\r\n * @param {String} attrs Pipe-separated list of attributes\r\n * @param {Function} handler The method that will be applied\r\n */\r\nfunction addHandle( attrs, handler ) {\r\n\tvar arr = attrs.split(\"|\"),\r\n\t\ti = arr.length;\r\n\r\n\twhile ( i-- ) {\r\n\t\tExpr.attrHandle[ arr[i] ] = handler;\r\n\t}\r\n}\r\n\r\n/**\r\n * Checks document order of two siblings\r\n * @param {Element} a\r\n * @param {Element} b\r\n * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\r\n */\r\nfunction siblingCheck( a, b ) {\r\n\tvar cur = b && a,\r\n\t\tdiff = cur && a.nodeType === 1 && b.nodeType === 1 &&\r\n\t\t\ta.sourceIndex - b.sourceIndex;\r\n\r\n\t// Use IE sourceIndex if available on both nodes\r\n\tif ( diff ) {\r\n\t\treturn diff;\r\n\t}\r\n\r\n\t// Check if b follows a\r\n\tif ( cur ) {\r\n\t\twhile ( (cur = cur.nextSibling) ) {\r\n\t\t\tif ( cur === b ) {\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn a ? 1 : -1;\r\n}\r\n\r\n/**\r\n * Returns a function to use in pseudos for input types\r\n * @param {String} type\r\n */\r\nfunction createInputPseudo( type ) {\r\n\treturn function( elem ) {\r\n\t\tvar name = elem.nodeName.toLowerCase();\r\n\t\treturn name === \"input\" && elem.type === type;\r\n\t};\r\n}\r\n\r\n/**\r\n * Returns a function to use in pseudos for buttons\r\n * @param {String} type\r\n */\r\nfunction createButtonPseudo( type ) {\r\n\treturn function( elem ) {\r\n\t\tvar name = elem.nodeName.toLowerCase();\r\n\t\treturn (name === \"input\" || name === \"button\") && elem.type === type;\r\n\t};\r\n}\r\n\r\n/**\r\n * Returns a function to use in pseudos for :enabled/:disabled\r\n * @param {Boolean} disabled true for :disabled; false for :enabled\r\n */\r\nfunction createDisabledPseudo( disabled ) {\r\n\t// Known :disabled false positives:\r\n\t// IE: *[disabled]:not(button, input, select, textarea, optgroup, option, menuitem, fieldset)\r\n\t// not IE: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\r\n\treturn function( elem ) {\r\n\r\n\t\t// Check form elements and option elements for explicit disabling\r\n\t\treturn \"label\" in elem && elem.disabled === disabled ||\r\n\t\t\t\"form\" in elem && elem.disabled === disabled ||\r\n\r\n\t\t\t// Check non-disabled form elements for fieldset[disabled] ancestors\r\n\t\t\t\"form\" in elem && elem.disabled === false && (\r\n\t\t\t\t// Support: IE6-11+\r\n\t\t\t\t// Ancestry is covered for us\r\n\t\t\t\telem.isDisabled === disabled ||\r\n\r\n\t\t\t\t// Otherwise, assume any non-<option> under fieldset[disabled] is disabled\r\n\t\t\t\t/* jshint -W018 */\r\n\t\t\t\telem.isDisabled !== !disabled &&\r\n\t\t\t\t\t(\"label\" in elem || !disabledAncestor( elem )) !== disabled\r\n\t\t\t);\r\n\t};\r\n}\r\n\r\n/**\r\n * Returns a function to use in pseudos for positionals\r\n * @param {Function} fn\r\n */\r\nfunction createPositionalPseudo( fn ) {\r\n\treturn markFunction(function( argument ) {\r\n\t\targument = +argument;\r\n\t\treturn markFunction(function( seed, matches ) {\r\n\t\t\tvar j,\r\n\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\r\n\t\t\t\ti = matchIndexes.length;\r\n\r\n\t\t\t// Match elements found at the specified indexes\r\n\t\t\twhile ( i-- ) {\r\n\t\t\t\tif ( seed[ (j = matchIndexes[i]) ] ) {\r\n\t\t\t\t\tseed[j] = !(matches[j] = seed[j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n}\r\n\r\n/**\r\n * Checks a node for validity as a Sizzle context\r\n * @param {Element|Object=} context\r\n * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\r\n */\r\nfunction testContext( context ) {\r\n\treturn context && typeof context.getElementsByTagName !== \"undefined\" && context;\r\n}\r\n\r\n// Expose support vars for convenience\r\nsupport = Sizzle.support = {};\r\n\r\n/**\r\n * Detects XML nodes\r\n * @param {Element|Object} elem An element or a document\r\n * @returns {Boolean} True iff elem is a non-HTML XML node\r\n */\r\nisXML = Sizzle.isXML = function( elem ) {\r\n\t// documentElement is verified for cases where it doesn't yet exist\r\n\t// (such as loading iframes in IE - #4833)\r\n\tvar documentElement = elem && (elem.ownerDocument || elem).documentElement;\r\n\treturn documentElement ? documentElement.nodeName !== \"HTML\" : false;\r\n};\r\n\r\n/**\r\n * Sets document-related variables once based on the current document\r\n * @param {Element|Object} [doc] An element or document object to use to set the document\r\n * @returns {Object} Returns the current document\r\n */\r\nsetDocument = Sizzle.setDocument = function( node ) {\r\n\tvar hasCompare, subWindow,\r\n\t\tdoc = node ? node.ownerDocument || node : preferredDoc;\r\n\r\n\t// Return early if doc is invalid or already selected\r\n\tif ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {\r\n\t\treturn document;\r\n\t}\r\n\r\n\t// Update global variables\r\n\tdocument = doc;\r\n\tdocElem = document.documentElement;\r\n\tdocumentIsHTML = !isXML( document );\r\n\r\n\t// Support: IE 9-11, Edge\r\n\t// Accessing iframe documents after unload throws \"permission denied\" errors (jQuery #13936)\r\n\tif ( preferredDoc !== document &&\r\n\t\t(subWindow = document.defaultView) && subWindow.top !== subWindow ) {\r\n\r\n\t\t// Support: IE 11, Edge\r\n\t\tif ( subWindow.addEventListener ) {\r\n\t\t\tsubWindow.addEventListener( \"unload\", unloadHandler, false );\r\n\r\n\t\t// Support: IE 9 - 10 only\r\n\t\t} else if ( subWindow.attachEvent ) {\r\n\t\t\tsubWindow.attachEvent( \"onunload\", unloadHandler );\r\n\t\t}\r\n\t}\r\n\r\n\t/* Attributes\r\n\t---------------------------------------------------------------------- */\r\n\r\n\t// Support: IE<8\r\n\t// Verify that getAttribute really returns attributes and not properties\r\n\t// (excepting IE8 booleans)\r\n\tsupport.attributes = assert(function( el ) {\r\n\t\tel.className = \"i\";\r\n\t\treturn !el.getAttribute(\"className\");\r\n\t});\r\n\r\n\t/* getElement(s)By*\r\n\t---------------------------------------------------------------------- */\r\n\r\n\t// Check if getElementsByTagName(\"*\") returns only elements\r\n\tsupport.getElementsByTagName = assert(function( el ) {\r\n\t\tel.appendChild( document.createComment(\"\") );\r\n\t\treturn !el.getElementsByTagName(\"*\").length;\r\n\t});\r\n\r\n\t// Support: IE<9\r\n\tsupport.getElementsByClassName = rnative.test( document.getElementsByClassName );\r\n\r\n\t// Support: IE<10\r\n\t// Check if getElementById returns elements by name\r\n\t// The broken getElementById methods don't pick up programmatically-set names,\r\n\t// so use a roundabout getElementsByName test\r\n\tsupport.getById = assert(function( el ) {\r\n\t\tdocElem.appendChild( el ).id = expando;\r\n\t\treturn !document.getElementsByName || !document.getElementsByName( expando ).length;\r\n\t});\r\n\r\n\t// ID find and filter\r\n\tif ( support.getById ) {\r\n\t\tExpr.find[\"ID\"] = function( id, context ) {\r\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\r\n\t\t\t\tvar m = context.getElementById( id );\r\n\t\t\t\treturn m ? [ m ] : [];\r\n\t\t\t}\r\n\t\t};\r\n\t\tExpr.filter[\"ID\"] = function( id ) {\r\n\t\t\tvar attrId = id.replace( runescape, funescape );\r\n\t\t\treturn function( elem ) {\r\n\t\t\t\treturn elem.getAttribute(\"id\") === attrId;\r\n\t\t\t};\r\n\t\t};\r\n\t} else {\r\n\t\t// Support: IE6/7\r\n\t\t// getElementById is not reliable as a find shortcut\r\n\t\tdelete Expr.find[\"ID\"];\r\n\r\n\t\tExpr.filter[\"ID\"] =  function( id ) {\r\n\t\t\tvar attrId = id.replace( runescape, funescape );\r\n\t\t\treturn function( elem ) {\r\n\t\t\t\tvar node = typeof elem.getAttributeNode !== \"undefined\" &&\r\n\t\t\t\t\telem.getAttributeNode(\"id\");\r\n\t\t\t\treturn node && node.value === attrId;\r\n\t\t\t};\r\n\t\t};\r\n\t}\r\n\r\n\t// Tag\r\n\tExpr.find[\"TAG\"] = support.getElementsByTagName ?\r\n\t\tfunction( tag, context ) {\r\n\t\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\r\n\t\t\t\treturn context.getElementsByTagName( tag );\r\n\r\n\t\t\t// DocumentFragment nodes don't have gEBTN\r\n\t\t\t} else if ( support.qsa ) {\r\n\t\t\t\treturn context.querySelectorAll( tag );\r\n\t\t\t}\r\n\t\t} :\r\n\r\n\t\tfunction( tag, context ) {\r\n\t\t\tvar elem,\r\n\t\t\t\ttmp = [],\r\n\t\t\t\ti = 0,\r\n\t\t\t\t// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\r\n\t\t\t\tresults = context.getElementsByTagName( tag );\r\n\r\n\t\t\t// Filter out possible comments\r\n\t\t\tif ( tag === \"*\" ) {\r\n\t\t\t\twhile ( (elem = results[i++]) ) {\r\n\t\t\t\t\tif ( elem.nodeType === 1 ) {\r\n\t\t\t\t\t\ttmp.push( elem );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn tmp;\r\n\t\t\t}\r\n\t\t\treturn results;\r\n\t\t};\r\n\r\n\t// Class\r\n\tExpr.find[\"CLASS\"] = support.getElementsByClassName && function( className, context ) {\r\n\t\tif ( typeof context.getElementsByClassName !== \"undefined\" && documentIsHTML ) {\r\n\t\t\treturn context.getElementsByClassName( className );\r\n\t\t}\r\n\t};\r\n\r\n\t/* QSA/matchesSelector\r\n\t---------------------------------------------------------------------- */\r\n\r\n\t// QSA and matchesSelector support\r\n\r\n\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\r\n\trbuggyMatches = [];\r\n\r\n\t// qSa(:focus) reports false when true (Chrome 21)\r\n\t// We allow this because of a bug in IE8/9 that throws an error\r\n\t// whenever `document.activeElement` is accessed on an iframe\r\n\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\r\n\t// See https://bugs.jquery.com/ticket/13378\r\n\trbuggyQSA = [];\r\n\r\n\tif ( (support.qsa = rnative.test( document.querySelectorAll )) ) {\r\n\t\t// Build QSA regex\r\n\t\t// Regex strategy adopted from Diego Perini\r\n\t\tassert(function( el ) {\r\n\t\t\t// Select is set to empty string on purpose\r\n\t\t\t// This is to test IE's treatment of not explicitly\r\n\t\t\t// setting a boolean content attribute,\r\n\t\t\t// since its presence should be enough\r\n\t\t\t// https://bugs.jquery.com/ticket/12359\r\n\t\t\tdocElem.appendChild( el ).innerHTML = \"<a id='\" + expando + \"'></a>\" +\r\n\t\t\t\t\"<select id='\" + expando + \"-\\r\\\\' msallowcapture=''>\" +\r\n\t\t\t\t\"<option selected=''></option></select>\";\r\n\r\n\t\t\t// Support: IE8, Opera 11-12.16\r\n\t\t\t// Nothing should be selected when empty strings follow ^= or $= or *=\r\n\t\t\t// The test attribute must be unknown in Opera but \"safe\" for WinRT\r\n\t\t\t// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\r\n\t\t\tif ( el.querySelectorAll(\"[msallowcapture^='']\").length ) {\r\n\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:''|\\\"\\\")\" );\r\n\t\t\t}\r\n\r\n\t\t\t// Support: IE8\r\n\t\t\t// Boolean attributes and \"value\" are not treated correctly\r\n\t\t\tif ( !el.querySelectorAll(\"[selected]\").length ) {\r\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\r\n\t\t\t}\r\n\r\n\t\t\t// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\r\n\t\t\tif ( !el.querySelectorAll( \"[id~=\" + expando + \"-]\" ).length ) {\r\n\t\t\t\trbuggyQSA.push(\"~=\");\r\n\t\t\t}\r\n\r\n\t\t\t// Webkit/Opera - :checked should return selected option elements\r\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\r\n\t\t\t// IE8 throws error here and will not see later tests\r\n\t\t\tif ( !el.querySelectorAll(\":checked\").length ) {\r\n\t\t\t\trbuggyQSA.push(\":checked\");\r\n\t\t\t}\r\n\r\n\t\t\t// Support: Safari 8+, iOS 8+\r\n\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\r\n\t\t\t// In-page `selector#id sibling-combinator selector` fails\r\n\t\t\tif ( !el.querySelectorAll( \"a#\" + expando + \"+*\" ).length ) {\r\n\t\t\t\trbuggyQSA.push(\".#.+[+~]\");\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tassert(function( el ) {\r\n\t\t\tel.innerHTML = \"<a href='' disabled='disabled'></a>\" +\r\n\t\t\t\t\"<select disabled='disabled'><option/></select>\";\r\n\r\n\t\t\t// Support: Windows 8 Native Apps\r\n\t\t\t// The type and name attributes are restricted during .innerHTML assignment\r\n\t\t\tvar input = document.createElement(\"input\");\r\n\t\t\tinput.setAttribute( \"type\", \"hidden\" );\r\n\t\t\tel.appendChild( input ).setAttribute( \"name\", \"D\" );\r\n\r\n\t\t\t// Support: IE8\r\n\t\t\t// Enforce case-sensitivity of name attribute\r\n\t\t\tif ( el.querySelectorAll(\"[name=d]\").length ) {\r\n\t\t\t\trbuggyQSA.push( \"name\" + whitespace + \"*[*^$|!~]?=\" );\r\n\t\t\t}\r\n\r\n\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\r\n\t\t\t// IE8 throws error here and will not see later tests\r\n\t\t\tif ( el.querySelectorAll(\":enabled\").length !== 2 ) {\r\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\r\n\t\t\t}\r\n\r\n\t\t\t// Support: IE9-11+\r\n\t\t\t// IE's :disabled selector does not pick up the children of disabled fieldsets\r\n\t\t\tdocElem.appendChild( el ).disabled = true;\r\n\t\t\tif ( el.querySelectorAll(\":disabled\").length !== 2 ) {\r\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\r\n\t\t\t}\r\n\r\n\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\r\n\t\t\tel.querySelectorAll(\"*,:x\");\r\n\t\t\trbuggyQSA.push(\",.*:\");\r\n\t\t});\r\n\t}\r\n\r\n\tif ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||\r\n\t\tdocElem.webkitMatchesSelector ||\r\n\t\tdocElem.mozMatchesSelector ||\r\n\t\tdocElem.oMatchesSelector ||\r\n\t\tdocElem.msMatchesSelector) )) ) {\r\n\r\n\t\tassert(function( el ) {\r\n\t\t\t// Check to see if it's possible to do matchesSelector\r\n\t\t\t// on a disconnected node (IE 9)\r\n\t\t\tsupport.disconnectedMatch = matches.call( el, \"*\" );\r\n\r\n\t\t\t// This should fail with an exception\r\n\t\t\t// Gecko does not error, returns false instead\r\n\t\t\tmatches.call( el, \"[s!='']:x\" );\r\n\t\t\trbuggyMatches.push( \"!=\", pseudos );\r\n\t\t});\r\n\t}\r\n\r\n\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join(\"|\") );\r\n\trbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join(\"|\") );\r\n\r\n\t/* Contains\r\n\t---------------------------------------------------------------------- */\r\n\thasCompare = rnative.test( docElem.compareDocumentPosition );\r\n\r\n\t// Element contains another\r\n\t// Purposefully self-exclusive\r\n\t// As in, an element does not contain itself\r\n\tcontains = hasCompare || rnative.test( docElem.contains ) ?\r\n\t\tfunction( a, b ) {\r\n\t\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\r\n\t\t\t\tbup = b && b.parentNode;\r\n\t\t\treturn a === bup || !!( bup && bup.nodeType === 1 && (\r\n\t\t\t\tadown.contains ?\r\n\t\t\t\t\tadown.contains( bup ) :\r\n\t\t\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\r\n\t\t\t));\r\n\t\t} :\r\n\t\tfunction( a, b ) {\r\n\t\t\tif ( b ) {\r\n\t\t\t\twhile ( (b = b.parentNode) ) {\r\n\t\t\t\t\tif ( b === a ) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t};\r\n\r\n\t/* Sorting\r\n\t---------------------------------------------------------------------- */\r\n\r\n\t// Document order sorting\r\n\tsortOrder = hasCompare ?\r\n\tfunction( a, b ) {\r\n\r\n\t\t// Flag for duplicate removal\r\n\t\tif ( a === b ) {\r\n\t\t\thasDuplicate = true;\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\t// Sort on method existence if only one input has compareDocumentPosition\r\n\t\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\r\n\t\tif ( compare ) {\r\n\t\t\treturn compare;\r\n\t\t}\r\n\r\n\t\t// Calculate position if both inputs belong to the same document\r\n\t\tcompare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?\r\n\t\t\ta.compareDocumentPosition( b ) :\r\n\r\n\t\t\t// Otherwise we know they are disconnected\r\n\t\t\t1;\r\n\r\n\t\t// Disconnected nodes\r\n\t\tif ( compare & 1 ||\r\n\t\t\t(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {\r\n\r\n\t\t\t// Choose the first element that is related to our preferred document\r\n\t\t\tif ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t\tif ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\r\n\t\t\t// Maintain original order\r\n\t\t\treturn sortInput ?\r\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\r\n\t\t\t\t0;\r\n\t\t}\r\n\r\n\t\treturn compare & 4 ? -1 : 1;\r\n\t} :\r\n\tfunction( a, b ) {\r\n\t\t// Exit early if the nodes are identical\r\n\t\tif ( a === b ) {\r\n\t\t\thasDuplicate = true;\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tvar cur,\r\n\t\t\ti = 0,\r\n\t\t\taup = a.parentNode,\r\n\t\t\tbup = b.parentNode,\r\n\t\t\tap = [ a ],\r\n\t\t\tbp = [ b ];\r\n\r\n\t\t// Parentless nodes are either documents or disconnected\r\n\t\tif ( !aup || !bup ) {\r\n\t\t\treturn a === document ? -1 :\r\n\t\t\t\tb === document ? 1 :\r\n\t\t\t\taup ? -1 :\r\n\t\t\t\tbup ? 1 :\r\n\t\t\t\tsortInput ?\r\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\r\n\t\t\t\t0;\r\n\r\n\t\t// If the nodes are siblings, we can do a quick check\r\n\t\t} else if ( aup === bup ) {\r\n\t\t\treturn siblingCheck( a, b );\r\n\t\t}\r\n\r\n\t\t// Otherwise we need full lists of their ancestors for comparison\r\n\t\tcur = a;\r\n\t\twhile ( (cur = cur.parentNode) ) {\r\n\t\t\tap.unshift( cur );\r\n\t\t}\r\n\t\tcur = b;\r\n\t\twhile ( (cur = cur.parentNode) ) {\r\n\t\t\tbp.unshift( cur );\r\n\t\t}\r\n\r\n\t\t// Walk down the tree looking for a discrepancy\r\n\t\twhile ( ap[i] === bp[i] ) {\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\treturn i ?\r\n\t\t\t// Do a sibling check if the nodes have a common ancestor\r\n\t\t\tsiblingCheck( ap[i], bp[i] ) :\r\n\r\n\t\t\t// Otherwise nodes in our document sort first\r\n\t\t\tap[i] === preferredDoc ? -1 :\r\n\t\t\tbp[i] === preferredDoc ? 1 :\r\n\t\t\t0;\r\n\t};\r\n\r\n\treturn document;\r\n};\r\n\r\nSizzle.matches = function( expr, elements ) {\r\n\treturn Sizzle( expr, null, null, elements );\r\n};\r\n\r\nSizzle.matchesSelector = function( elem, expr ) {\r\n\t// Set document vars if needed\r\n\tif ( ( elem.ownerDocument || elem ) !== document ) {\r\n\t\tsetDocument( elem );\r\n\t}\r\n\r\n\t// Make sure that attribute selectors are quoted\r\n\texpr = expr.replace( rattributeQuotes, \"='$1']\" );\r\n\r\n\tif ( support.matchesSelector && documentIsHTML &&\r\n\t\t!compilerCache[ expr + \" \" ] &&\r\n\t\t( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&\r\n\t\t( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {\r\n\r\n\t\ttry {\r\n\t\t\tvar ret = matches.call( elem, expr );\r\n\r\n\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\r\n\t\t\tif ( ret || support.disconnectedMatch ||\r\n\t\t\t\t\t// As well, disconnected nodes are said to be in a document\r\n\t\t\t\t\t// fragment in IE 9\r\n\t\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\r\n\t\t\t\treturn ret;\r\n\t\t\t}\r\n\t\t} catch (e) {}\r\n\t}\r\n\r\n\treturn Sizzle( expr, document, null, [ elem ] ).length > 0;\r\n};\r\n\r\nSizzle.contains = function( context, elem ) {\r\n\t// Set document vars if needed\r\n\tif ( ( context.ownerDocument || context ) !== document ) {\r\n\t\tsetDocument( context );\r\n\t}\r\n\treturn contains( context, elem );\r\n};\r\n\r\nSizzle.attr = function( elem, name ) {\r\n\t// Set document vars if needed\r\n\tif ( ( elem.ownerDocument || elem ) !== document ) {\r\n\t\tsetDocument( elem );\r\n\t}\r\n\r\n\tvar fn = Expr.attrHandle[ name.toLowerCase() ],\r\n\t\t// Don't get fooled by Object.prototype properties (jQuery #13807)\r\n\t\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\r\n\t\t\tfn( elem, name, !documentIsHTML ) :\r\n\t\t\tundefined;\r\n\r\n\treturn val !== undefined ?\r\n\t\tval :\r\n\t\tsupport.attributes || !documentIsHTML ?\r\n\t\t\telem.getAttribute( name ) :\r\n\t\t\t(val = elem.getAttributeNode(name)) && val.specified ?\r\n\t\t\t\tval.value :\r\n\t\t\t\tnull;\r\n};\r\n\r\nSizzle.escape = function( sel ) {\r\n\treturn (sel + \"\").replace( rcssescape, fcssescape );\r\n};\r\n\r\nSizzle.error = function( msg ) {\r\n\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\r\n};\r\n\r\n/**\r\n * Document sorting and removing duplicates\r\n * @param {ArrayLike} results\r\n */\r\nSizzle.uniqueSort = function( results ) {\r\n\tvar elem,\r\n\t\tduplicates = [],\r\n\t\tj = 0,\r\n\t\ti = 0;\r\n\r\n\t// Unless we *know* we can detect duplicates, assume their presence\r\n\thasDuplicate = !support.detectDuplicates;\r\n\tsortInput = !support.sortStable && results.slice( 0 );\r\n\tresults.sort( sortOrder );\r\n\r\n\tif ( hasDuplicate ) {\r\n\t\twhile ( (elem = results[i++]) ) {\r\n\t\t\tif ( elem === results[ i ] ) {\r\n\t\t\t\tj = duplicates.push( i );\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile ( j-- ) {\r\n\t\t\tresults.splice( duplicates[ j ], 1 );\r\n\t\t}\r\n\t}\r\n\r\n\t// Clear input after sorting to release objects\r\n\t// See https://github.com/jquery/sizzle/pull/225\r\n\tsortInput = null;\r\n\r\n\treturn results;\r\n};\r\n\r\n/**\r\n * Utility function for retrieving the text value of an array of DOM nodes\r\n * @param {Array|Element} elem\r\n */\r\ngetText = Sizzle.getText = function( elem ) {\r\n\tvar node,\r\n\t\tret = \"\",\r\n\t\ti = 0,\r\n\t\tnodeType = elem.nodeType;\r\n\r\n\tif ( !nodeType ) {\r\n\t\t// If no nodeType, this is expected to be an array\r\n\t\twhile ( (node = elem[i++]) ) {\r\n\t\t\t// Do not traverse comment nodes\r\n\t\t\tret += getText( node );\r\n\t\t}\r\n\t} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\r\n\t\t// Use textContent for elements\r\n\t\t// innerText usage removed for consistency of new lines (jQuery #11153)\r\n\t\tif ( typeof elem.textContent === \"string\" ) {\r\n\t\t\treturn elem.textContent;\r\n\t\t} else {\r\n\t\t\t// Traverse its children\r\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\r\n\t\t\t\tret += getText( elem );\r\n\t\t\t}\r\n\t\t}\r\n\t} else if ( nodeType === 3 || nodeType === 4 ) {\r\n\t\treturn elem.nodeValue;\r\n\t}\r\n\t// Do not include comment or processing instruction nodes\r\n\r\n\treturn ret;\r\n};\r\n\r\nExpr = Sizzle.selectors = {\r\n\r\n\t// Can be adjusted by the user\r\n\tcacheLength: 50,\r\n\r\n\tcreatePseudo: markFunction,\r\n\r\n\tmatch: matchExpr,\r\n\r\n\tattrHandle: {},\r\n\r\n\tfind: {},\r\n\r\n\trelative: {\r\n\t\t\">\": { dir: \"parentNode\", first: true },\r\n\t\t\" \": { dir: \"parentNode\" },\r\n\t\t\"+\": { dir: \"previousSibling\", first: true },\r\n\t\t\"~\": { dir: \"previousSibling\" }\r\n\t},\r\n\r\n\tpreFilter: {\r\n\t\t\"ATTR\": function( match ) {\r\n\t\t\tmatch[1] = match[1].replace( runescape, funescape );\r\n\r\n\t\t\t// Move the given value to match[3] whether quoted or unquoted\r\n\t\t\tmatch[3] = ( match[3] || match[4] || match[5] || \"\" ).replace( runescape, funescape );\r\n\r\n\t\t\tif ( match[2] === \"~=\" ) {\r\n\t\t\t\tmatch[3] = \" \" + match[3] + \" \";\r\n\t\t\t}\r\n\r\n\t\t\treturn match.slice( 0, 4 );\r\n\t\t},\r\n\r\n\t\t\"CHILD\": function( match ) {\r\n\t\t\t/* matches from matchExpr[\"CHILD\"]\r\n\t\t\t\t1 type (only|nth|...)\r\n\t\t\t\t2 what (child|of-type)\r\n\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\r\n\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\r\n\t\t\t\t5 sign of xn-component\r\n\t\t\t\t6 x of xn-component\r\n\t\t\t\t7 sign of y-component\r\n\t\t\t\t8 y of y-component\r\n\t\t\t*/\r\n\t\t\tmatch[1] = match[1].toLowerCase();\r\n\r\n\t\t\tif ( match[1].slice( 0, 3 ) === \"nth\" ) {\r\n\t\t\t\t// nth-* requires argument\r\n\t\t\t\tif ( !match[3] ) {\r\n\t\t\t\t\tSizzle.error( match[0] );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\r\n\t\t\t\t// remember that false/true cast respectively to 0/1\r\n\t\t\t\tmatch[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === \"even\" || match[3] === \"odd\" ) );\r\n\t\t\t\tmatch[5] = +( ( match[7] + match[8] ) || match[3] === \"odd\" );\r\n\r\n\t\t\t// other types prohibit arguments\r\n\t\t\t} else if ( match[3] ) {\r\n\t\t\t\tSizzle.error( match[0] );\r\n\t\t\t}\r\n\r\n\t\t\treturn match;\r\n\t\t},\r\n\r\n\t\t\"PSEUDO\": function( match ) {\r\n\t\t\tvar excess,\r\n\t\t\t\tunquoted = !match[6] && match[2];\r\n\r\n\t\t\tif ( matchExpr[\"CHILD\"].test( match[0] ) ) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\t// Accept quoted arguments as-is\r\n\t\t\tif ( match[3] ) {\r\n\t\t\t\tmatch[2] = match[4] || match[5] || \"\";\r\n\r\n\t\t\t// Strip excess characters from unquoted arguments\r\n\t\t\t} else if ( unquoted && rpseudo.test( unquoted ) &&\r\n\t\t\t\t// Get excess from tokenize (recursively)\r\n\t\t\t\t(excess = tokenize( unquoted, true )) &&\r\n\t\t\t\t// advance to the next closing parenthesis\r\n\t\t\t\t(excess = unquoted.indexOf( \")\", unquoted.length - excess ) - unquoted.length) ) {\r\n\r\n\t\t\t\t// excess is a negative index\r\n\t\t\t\tmatch[0] = match[0].slice( 0, excess );\r\n\t\t\t\tmatch[2] = unquoted.slice( 0, excess );\r\n\t\t\t}\r\n\r\n\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\r\n\t\t\treturn match.slice( 0, 3 );\r\n\t\t}\r\n\t},\r\n\r\n\tfilter: {\r\n\r\n\t\t\"TAG\": function( nodeNameSelector ) {\r\n\t\t\tvar nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();\r\n\t\t\treturn nodeNameSelector === \"*\" ?\r\n\t\t\t\tfunction() { return true; } :\r\n\t\t\t\tfunction( elem ) {\r\n\t\t\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\r\n\t\t\t\t};\r\n\t\t},\r\n\r\n\t\t\"CLASS\": function( className ) {\r\n\t\t\tvar pattern = classCache[ className + \" \" ];\r\n\r\n\t\t\treturn pattern ||\r\n\t\t\t\t(pattern = new RegExp( \"(^|\" + whitespace + \")\" + className + \"(\" + whitespace + \"|$)\" )) &&\r\n\t\t\t\tclassCache( className, function( elem ) {\r\n\t\t\t\t\treturn pattern.test( typeof elem.className === \"string\" && elem.className || typeof elem.getAttribute !== \"undefined\" && elem.getAttribute(\"class\") || \"\" );\r\n\t\t\t\t});\r\n\t\t},\r\n\r\n\t\t\"ATTR\": function( name, operator, check ) {\r\n\t\t\treturn function( elem ) {\r\n\t\t\t\tvar result = Sizzle.attr( elem, name );\r\n\r\n\t\t\t\tif ( result == null ) {\r\n\t\t\t\t\treturn operator === \"!=\";\r\n\t\t\t\t}\r\n\t\t\t\tif ( !operator ) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tresult += \"\";\r\n\r\n\t\t\t\treturn operator === \"=\" ? result === check :\r\n\t\t\t\t\toperator === \"!=\" ? result !== check :\r\n\t\t\t\t\toperator === \"^=\" ? check && result.indexOf( check ) === 0 :\r\n\t\t\t\t\toperator === \"*=\" ? check && result.indexOf( check ) > -1 :\r\n\t\t\t\t\toperator === \"$=\" ? check && result.slice( -check.length ) === check :\r\n\t\t\t\t\toperator === \"~=\" ? ( \" \" + result.replace( rwhitespace, \" \" ) + \" \" ).indexOf( check ) > -1 :\r\n\t\t\t\t\toperator === \"|=\" ? result === check || result.slice( 0, check.length + 1 ) === check + \"-\" :\r\n\t\t\t\t\tfalse;\r\n\t\t\t};\r\n\t\t},\r\n\r\n\t\t\"CHILD\": function( type, what, argument, first, last ) {\r\n\t\t\tvar simple = type.slice( 0, 3 ) !== \"nth\",\r\n\t\t\t\tforward = type.slice( -4 ) !== \"last\",\r\n\t\t\t\tofType = what === \"of-type\";\r\n\r\n\t\t\treturn first === 1 && last === 0 ?\r\n\r\n\t\t\t\t// Shortcut for :nth-*(n)\r\n\t\t\t\tfunction( elem ) {\r\n\t\t\t\t\treturn !!elem.parentNode;\r\n\t\t\t\t} :\r\n\r\n\t\t\t\tfunction( elem, context, xml ) {\r\n\t\t\t\t\tvar cache, uniqueCache, outerCache, node, nodeIndex, start,\r\n\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\r\n\t\t\t\t\t\tparent = elem.parentNode,\r\n\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\r\n\t\t\t\t\t\tuseCache = !xml && !ofType,\r\n\t\t\t\t\t\tdiff = false;\r\n\r\n\t\t\t\t\tif ( parent ) {\r\n\r\n\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\r\n\t\t\t\t\t\tif ( simple ) {\r\n\t\t\t\t\t\t\twhile ( dir ) {\r\n\t\t\t\t\t\t\t\tnode = elem;\r\n\t\t\t\t\t\t\t\twhile ( (node = node[ dir ]) ) {\r\n\t\t\t\t\t\t\t\t\tif ( ofType ?\r\n\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\r\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) {\r\n\r\n\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\r\n\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tstart = [ forward ? parent.firstChild : parent.lastChild ];\r\n\r\n\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\r\n\t\t\t\t\t\tif ( forward && useCache ) {\r\n\r\n\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\r\n\r\n\t\t\t\t\t\t\t// ...in a gzip-friendly way\r\n\t\t\t\t\t\t\tnode = parent;\r\n\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\r\n\r\n\t\t\t\t\t\t\t// Support: IE <9 only\r\n\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\r\n\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\r\n\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\r\n\r\n\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\r\n\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\r\n\t\t\t\t\t\t\tdiff = nodeIndex && cache[ 2 ];\r\n\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\r\n\r\n\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\r\n\r\n\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\r\n\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\r\n\r\n\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\r\n\t\t\t\t\t\t\t\tif ( node.nodeType === 1 && ++diff && node === elem ) {\r\n\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, nodeIndex, diff ];\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// Use previously-cached element index if available\r\n\t\t\t\t\t\t\tif ( useCache ) {\r\n\t\t\t\t\t\t\t\t// ...in a gzip-friendly way\r\n\t\t\t\t\t\t\t\tnode = elem;\r\n\t\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\r\n\r\n\t\t\t\t\t\t\t\t// Support: IE <9 only\r\n\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\r\n\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\r\n\t\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\r\n\r\n\t\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\r\n\t\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\r\n\t\t\t\t\t\t\t\tdiff = nodeIndex;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// xml :nth-child(...)\r\n\t\t\t\t\t\t\t// or :nth-last-child(...) or :nth(-last)?-of-type(...)\r\n\t\t\t\t\t\t\tif ( diff === false ) {\r\n\t\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\r\n\t\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\r\n\t\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\r\n\r\n\t\t\t\t\t\t\t\t\tif ( ( ofType ?\r\n\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\r\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) &&\r\n\t\t\t\t\t\t\t\t\t\t++diff ) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\r\n\t\t\t\t\t\t\t\t\t\tif ( useCache ) {\r\n\t\t\t\t\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t// Support: IE <9 only\r\n\t\t\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\r\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, diff ];\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif ( node === elem ) {\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\r\n\t\t\t\t\t\tdiff -= last;\r\n\t\t\t\t\t\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t},\r\n\r\n\t\t\"PSEUDO\": function( pseudo, argument ) {\r\n\t\t\t// pseudo-class names are case-insensitive\r\n\t\t\t// http://www.w3.org/TR/selectors/#pseudo-classes\r\n\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\r\n\t\t\t// Remember that setFilters inherits from pseudos\r\n\t\t\tvar args,\r\n\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\r\n\t\t\t\t\tSizzle.error( \"unsupported pseudo: \" + pseudo );\r\n\r\n\t\t\t// The user may use createPseudo to indicate that\r\n\t\t\t// arguments are needed to create the filter function\r\n\t\t\t// just as Sizzle does\r\n\t\t\tif ( fn[ expando ] ) {\r\n\t\t\t\treturn fn( argument );\r\n\t\t\t}\r\n\r\n\t\t\t// But maintain support for old signatures\r\n\t\t\tif ( fn.length > 1 ) {\r\n\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\r\n\t\t\t\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\r\n\t\t\t\t\tmarkFunction(function( seed, matches ) {\r\n\t\t\t\t\t\tvar idx,\r\n\t\t\t\t\t\t\tmatched = fn( seed, argument ),\r\n\t\t\t\t\t\t\ti = matched.length;\r\n\t\t\t\t\t\twhile ( i-- ) {\r\n\t\t\t\t\t\t\tidx = indexOf( seed, matched[i] );\r\n\t\t\t\t\t\t\tseed[ idx ] = !( matches[ idx ] = matched[i] );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}) :\r\n\t\t\t\t\tfunction( elem ) {\r\n\t\t\t\t\t\treturn fn( elem, 0, args );\r\n\t\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\t\treturn fn;\r\n\t\t}\r\n\t},\r\n\r\n\tpseudos: {\r\n\t\t// Potentially complex pseudos\r\n\t\t\"not\": markFunction(function( selector ) {\r\n\t\t\t// Trim the selector passed to compile\r\n\t\t\t// to avoid treating leading and trailing\r\n\t\t\t// spaces as combinators\r\n\t\t\tvar input = [],\r\n\t\t\t\tresults = [],\r\n\t\t\t\tmatcher = compile( selector.replace( rtrim, \"$1\" ) );\r\n\r\n\t\t\treturn matcher[ expando ] ?\r\n\t\t\t\tmarkFunction(function( seed, matches, context, xml ) {\r\n\t\t\t\t\tvar elem,\r\n\t\t\t\t\t\tunmatched = matcher( seed, null, xml, [] ),\r\n\t\t\t\t\t\ti = seed.length;\r\n\r\n\t\t\t\t\t// Match elements unmatched by `matcher`\r\n\t\t\t\t\twhile ( i-- ) {\r\n\t\t\t\t\t\tif ( (elem = unmatched[i]) ) {\r\n\t\t\t\t\t\t\tseed[i] = !(matches[i] = elem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}) :\r\n\t\t\t\tfunction( elem, context, xml ) {\r\n\t\t\t\t\tinput[0] = elem;\r\n\t\t\t\t\tmatcher( input, null, xml, results );\r\n\t\t\t\t\t// Don't keep the element (issue #299)\r\n\t\t\t\t\tinput[0] = null;\r\n\t\t\t\t\treturn !results.pop();\r\n\t\t\t\t};\r\n\t\t}),\r\n\r\n\t\t\"has\": markFunction(function( selector ) {\r\n\t\t\treturn function( elem ) {\r\n\t\t\t\treturn Sizzle( selector, elem ).length > 0;\r\n\t\t\t};\r\n\t\t}),\r\n\r\n\t\t\"contains\": markFunction(function( text ) {\r\n\t\t\ttext = text.replace( runescape, funescape );\r\n\t\t\treturn function( elem ) {\r\n\t\t\t\treturn ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;\r\n\t\t\t};\r\n\t\t}),\r\n\r\n\t\t// \"Whether an element is represented by a :lang() selector\r\n\t\t// is based solely on the element's language value\r\n\t\t// being equal to the identifier C,\r\n\t\t// or beginning with the identifier C immediately followed by \"-\".\r\n\t\t// The matching of C against the element's language value is performed case-insensitively.\r\n\t\t// The identifier C does not have to be a valid language name.\"\r\n\t\t// http://www.w3.org/TR/selectors/#lang-pseudo\r\n\t\t\"lang\": markFunction( function( lang ) {\r\n\t\t\t// lang value must be a valid identifier\r\n\t\t\tif ( !ridentifier.test(lang || \"\") ) {\r\n\t\t\t\tSizzle.error( \"unsupported lang: \" + lang );\r\n\t\t\t}\r\n\t\t\tlang = lang.replace( runescape, funescape ).toLowerCase();\r\n\t\t\treturn function( elem ) {\r\n\t\t\t\tvar elemLang;\r\n\t\t\t\tdo {\r\n\t\t\t\t\tif ( (elemLang = documentIsHTML ?\r\n\t\t\t\t\t\telem.lang :\r\n\t\t\t\t\t\telem.getAttribute(\"xml:lang\") || elem.getAttribute(\"lang\")) ) {\r\n\r\n\t\t\t\t\t\telemLang = elemLang.toLowerCase();\r\n\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf( lang + \"-\" ) === 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t} while ( (elem = elem.parentNode) && elem.nodeType === 1 );\r\n\t\t\t\treturn false;\r\n\t\t\t};\r\n\t\t}),\r\n\r\n\t\t// Miscellaneous\r\n\t\t\"target\": function( elem ) {\r\n\t\t\tvar hash = window.location && window.location.hash;\r\n\t\t\treturn hash && hash.slice( 1 ) === elem.id;\r\n\t\t},\r\n\r\n\t\t\"root\": function( elem ) {\r\n\t\t\treturn elem === docElem;\r\n\t\t},\r\n\r\n\t\t\"focus\": function( elem ) {\r\n\t\t\treturn elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);\r\n\t\t},\r\n\r\n\t\t// Boolean properties\r\n\t\t\"enabled\": createDisabledPseudo( false ),\r\n\t\t\"disabled\": createDisabledPseudo( true ),\r\n\r\n\t\t\"checked\": function( elem ) {\r\n\t\t\t// In CSS3, :checked should return both checked and selected elements\r\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\r\n\t\t\tvar nodeName = elem.nodeName.toLowerCase();\r\n\t\t\treturn (nodeName === \"input\" && !!elem.checked) || (nodeName === \"option\" && !!elem.selected);\r\n\t\t},\r\n\r\n\t\t\"selected\": function( elem ) {\r\n\t\t\t// Accessing this property makes selected-by-default\r\n\t\t\t// options in Safari work properly\r\n\t\t\tif ( elem.parentNode ) {\r\n\t\t\t\telem.parentNode.selectedIndex;\r\n\t\t\t}\r\n\r\n\t\t\treturn elem.selected === true;\r\n\t\t},\r\n\r\n\t\t// Contents\r\n\t\t\"empty\": function( elem ) {\r\n\t\t\t// http://www.w3.org/TR/selectors/#empty-pseudo\r\n\t\t\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\r\n\t\t\t//   but not by others (comment: 8; processing instruction: 7; etc.)\r\n\t\t\t// nodeType < 6 works because attributes (2) do not appear as children\r\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\r\n\t\t\t\tif ( elem.nodeType < 6 ) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t},\r\n\r\n\t\t\"parent\": function( elem ) {\r\n\t\t\treturn !Expr.pseudos[\"empty\"]( elem );\r\n\t\t},\r\n\r\n\t\t// Element/input types\r\n\t\t\"header\": function( elem ) {\r\n\t\t\treturn rheader.test( elem.nodeName );\r\n\t\t},\r\n\r\n\t\t\"input\": function( elem ) {\r\n\t\t\treturn rinputs.test( elem.nodeName );\r\n\t\t},\r\n\r\n\t\t\"button\": function( elem ) {\r\n\t\t\tvar name = elem.nodeName.toLowerCase();\r\n\t\t\treturn name === \"input\" && elem.type === \"button\" || name === \"button\";\r\n\t\t},\r\n\r\n\t\t\"text\": function( elem ) {\r\n\t\t\tvar attr;\r\n\t\t\treturn elem.nodeName.toLowerCase() === \"input\" &&\r\n\t\t\t\telem.type === \"text\" &&\r\n\r\n\t\t\t\t// Support: IE<8\r\n\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear with elem.type === \"text\"\r\n\t\t\t\t( (attr = elem.getAttribute(\"type\")) == null || attr.toLowerCase() === \"text\" );\r\n\t\t},\r\n\r\n\t\t// Position-in-collection\r\n\t\t\"first\": createPositionalPseudo(function() {\r\n\t\t\treturn [ 0 ];\r\n\t\t}),\r\n\r\n\t\t\"last\": createPositionalPseudo(function( matchIndexes, length ) {\r\n\t\t\treturn [ length - 1 ];\r\n\t\t}),\r\n\r\n\t\t\"eq\": createPositionalPseudo(function( matchIndexes, length, argument ) {\r\n\t\t\treturn [ argument < 0 ? argument + length : argument ];\r\n\t\t}),\r\n\r\n\t\t\"even\": createPositionalPseudo(function( matchIndexes, length ) {\r\n\t\t\tvar i = 0;\r\n\t\t\tfor ( ; i < length; i += 2 ) {\r\n\t\t\t\tmatchIndexes.push( i );\r\n\t\t\t}\r\n\t\t\treturn matchIndexes;\r\n\t\t}),\r\n\r\n\t\t\"odd\": createPositionalPseudo(function( matchIndexes, length ) {\r\n\t\t\tvar i = 1;\r\n\t\t\tfor ( ; i < length; i += 2 ) {\r\n\t\t\t\tmatchIndexes.push( i );\r\n\t\t\t}\r\n\t\t\treturn matchIndexes;\r\n\t\t}),\r\n\r\n\t\t\"lt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\r\n\t\t\tvar i = argument < 0 ? argument + length : argument;\r\n\t\t\tfor ( ; --i >= 0; ) {\r\n\t\t\t\tmatchIndexes.push( i );\r\n\t\t\t}\r\n\t\t\treturn matchIndexes;\r\n\t\t}),\r\n\r\n\t\t\"gt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\r\n\t\t\tvar i = argument < 0 ? argument + length : argument;\r\n\t\t\tfor ( ; ++i < length; ) {\r\n\t\t\t\tmatchIndexes.push( i );\r\n\t\t\t}\r\n\t\t\treturn matchIndexes;\r\n\t\t})\r\n\t}\r\n};\r\n\r\nExpr.pseudos[\"nth\"] = Expr.pseudos[\"eq\"];\r\n\r\n// Add button/input type pseudos\r\nfor ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\r\n\tExpr.pseudos[ i ] = createInputPseudo( i );\r\n}\r\nfor ( i in { submit: true, reset: true } ) {\r\n\tExpr.pseudos[ i ] = createButtonPseudo( i );\r\n}\r\n\r\n// Easy API for creating new setFilters\r\nfunction setFilters() {}\r\nsetFilters.prototype = Expr.filters = Expr.pseudos;\r\nExpr.setFilters = new setFilters();\r\n\r\ntokenize = Sizzle.tokenize = function( selector, parseOnly ) {\r\n\tvar matched, match, tokens, type,\r\n\t\tsoFar, groups, preFilters,\r\n\t\tcached = tokenCache[ selector + \" \" ];\r\n\r\n\tif ( cached ) {\r\n\t\treturn parseOnly ? 0 : cached.slice( 0 );\r\n\t}\r\n\r\n\tsoFar = selector;\r\n\tgroups = [];\r\n\tpreFilters = Expr.preFilter;\r\n\r\n\twhile ( soFar ) {\r\n\r\n\t\t// Comma and first run\r\n\t\tif ( !matched || (match = rcomma.exec( soFar )) ) {\r\n\t\t\tif ( match ) {\r\n\t\t\t\t// Don't consume trailing commas as valid\r\n\t\t\t\tsoFar = soFar.slice( match[0].length ) || soFar;\r\n\t\t\t}\r\n\t\t\tgroups.push( (tokens = []) );\r\n\t\t}\r\n\r\n\t\tmatched = false;\r\n\r\n\t\t// Combinators\r\n\t\tif ( (match = rcombinators.exec( soFar )) ) {\r\n\t\t\tmatched = match.shift();\r\n\t\t\ttokens.push({\r\n\t\t\t\tvalue: matched,\r\n\t\t\t\t// Cast descendant combinators to space\r\n\t\t\t\ttype: match[0].replace( rtrim, \" \" )\r\n\t\t\t});\r\n\t\t\tsoFar = soFar.slice( matched.length );\r\n\t\t}\r\n\r\n\t\t// Filters\r\n\t\tfor ( type in Expr.filter ) {\r\n\t\t\tif ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||\r\n\t\t\t\t(match = preFilters[ type ]( match ))) ) {\r\n\t\t\t\tmatched = match.shift();\r\n\t\t\t\ttokens.push({\r\n\t\t\t\t\tvalue: matched,\r\n\t\t\t\t\ttype: type,\r\n\t\t\t\t\tmatches: match\r\n\t\t\t\t});\r\n\t\t\t\tsoFar = soFar.slice( matched.length );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ( !matched ) {\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\t// Return the length of the invalid excess\r\n\t// if we're just parsing\r\n\t// Otherwise, throw an error or return tokens\r\n\treturn parseOnly ?\r\n\t\tsoFar.length :\r\n\t\tsoFar ?\r\n\t\t\tSizzle.error( selector ) :\r\n\t\t\t// Cache the tokens\r\n\t\t\ttokenCache( selector, groups ).slice( 0 );\r\n};\r\n\r\nfunction toSelector( tokens ) {\r\n\tvar i = 0,\r\n\t\tlen = tokens.length,\r\n\t\tselector = \"\";\r\n\tfor ( ; i < len; i++ ) {\r\n\t\tselector += tokens[i].value;\r\n\t}\r\n\treturn selector;\r\n}\r\n\r\nfunction addCombinator( matcher, combinator, base ) {\r\n\tvar dir = combinator.dir,\r\n\t\tskip = combinator.next,\r\n\t\tkey = skip || dir,\r\n\t\tcheckNonElements = base && key === \"parentNode\",\r\n\t\tdoneName = done++;\r\n\r\n\treturn combinator.first ?\r\n\t\t// Check against closest ancestor/preceding element\r\n\t\tfunction( elem, context, xml ) {\r\n\t\t\twhile ( (elem = elem[ dir ]) ) {\r\n\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\r\n\t\t\t\t\treturn matcher( elem, context, xml );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} :\r\n\r\n\t\t// Check against all ancestor/preceding elements\r\n\t\tfunction( elem, context, xml ) {\r\n\t\t\tvar oldCache, uniqueCache, outerCache,\r\n\t\t\t\tnewCache = [ dirruns, doneName ];\r\n\r\n\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching\r\n\t\t\tif ( xml ) {\r\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\r\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\r\n\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\r\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\r\n\t\t\t\t\t\touterCache = elem[ expando ] || (elem[ expando ] = {});\r\n\r\n\t\t\t\t\t\t// Support: IE <9 only\r\n\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\r\n\t\t\t\t\t\tuniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});\r\n\r\n\t\t\t\t\t\tif ( skip && skip === elem.nodeName.toLowerCase() ) {\r\n\t\t\t\t\t\t\telem = elem[ dir ] || elem;\r\n\t\t\t\t\t\t} else if ( (oldCache = uniqueCache[ key ]) &&\r\n\t\t\t\t\t\t\toldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {\r\n\r\n\t\t\t\t\t\t\t// Assign to newCache so results back-propagate to previous elements\r\n\t\t\t\t\t\t\treturn (newCache[ 2 ] = oldCache[ 2 ]);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// Reuse newcache so results back-propagate to previous elements\r\n\t\t\t\t\t\t\tuniqueCache[ key ] = newCache;\r\n\r\n\t\t\t\t\t\t\t// A match means we're done; a fail means we have to keep checking\r\n\t\t\t\t\t\t\tif ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n}\r\n\r\nfunction elementMatcher( matchers ) {\r\n\treturn matchers.length > 1 ?\r\n\t\tfunction( elem, context, xml ) {\r\n\t\t\tvar i = matchers.length;\r\n\t\t\twhile ( i-- ) {\r\n\t\t\t\tif ( !matchers[i]( elem, context, xml ) ) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} :\r\n\t\tmatchers[0];\r\n}\r\n\r\nfunction multipleContexts( selector, contexts, results ) {\r\n\tvar i = 0,\r\n\t\tlen = contexts.length;\r\n\tfor ( ; i < len; i++ ) {\r\n\t\tSizzle( selector, contexts[i], results );\r\n\t}\r\n\treturn results;\r\n}\r\n\r\nfunction condense( unmatched, map, filter, context, xml ) {\r\n\tvar elem,\r\n\t\tnewUnmatched = [],\r\n\t\ti = 0,\r\n\t\tlen = unmatched.length,\r\n\t\tmapped = map != null;\r\n\r\n\tfor ( ; i < len; i++ ) {\r\n\t\tif ( (elem = unmatched[i]) ) {\r\n\t\t\tif ( !filter || filter( elem, context, xml ) ) {\r\n\t\t\t\tnewUnmatched.push( elem );\r\n\t\t\t\tif ( mapped ) {\r\n\t\t\t\t\tmap.push( i );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn newUnmatched;\r\n}\r\n\r\nfunction setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\r\n\tif ( postFilter && !postFilter[ expando ] ) {\r\n\t\tpostFilter = setMatcher( postFilter );\r\n\t}\r\n\tif ( postFinder && !postFinder[ expando ] ) {\r\n\t\tpostFinder = setMatcher( postFinder, postSelector );\r\n\t}\r\n\treturn markFunction(function( seed, results, context, xml ) {\r\n\t\tvar temp, i, elem,\r\n\t\t\tpreMap = [],\r\n\t\t\tpostMap = [],\r\n\t\t\tpreexisting = results.length,\r\n\r\n\t\t\t// Get initial elements from seed or context\r\n\t\t\telems = seed || multipleContexts( selector || \"*\", context.nodeType ? [ context ] : context, [] ),\r\n\r\n\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\r\n\t\t\tmatcherIn = preFilter && ( seed || !selector ) ?\r\n\t\t\t\tcondense( elems, preMap, preFilter, context, xml ) :\r\n\t\t\t\telems,\r\n\r\n\t\t\tmatcherOut = matcher ?\r\n\t\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\r\n\t\t\t\tpostFinder || ( seed ? preFilter : preexisting || postFilter ) ?\r\n\r\n\t\t\t\t\t// ...intermediate processing is necessary\r\n\t\t\t\t\t[] :\r\n\r\n\t\t\t\t\t// ...otherwise use results directly\r\n\t\t\t\t\tresults :\r\n\t\t\t\tmatcherIn;\r\n\r\n\t\t// Find primary matches\r\n\t\tif ( matcher ) {\r\n\t\t\tmatcher( matcherIn, matcherOut, context, xml );\r\n\t\t}\r\n\r\n\t\t// Apply postFilter\r\n\t\tif ( postFilter ) {\r\n\t\t\ttemp = condense( matcherOut, postMap );\r\n\t\t\tpostFilter( temp, [], context, xml );\r\n\r\n\t\t\t// Un-match failing elements by moving them back to matcherIn\r\n\t\t\ti = temp.length;\r\n\t\t\twhile ( i-- ) {\r\n\t\t\t\tif ( (elem = temp[i]) ) {\r\n\t\t\t\t\tmatcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ( seed ) {\r\n\t\t\tif ( postFinder || preFilter ) {\r\n\t\t\t\tif ( postFinder ) {\r\n\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\r\n\t\t\t\t\ttemp = [];\r\n\t\t\t\t\ti = matcherOut.length;\r\n\t\t\t\t\twhile ( i-- ) {\r\n\t\t\t\t\t\tif ( (elem = matcherOut[i]) ) {\r\n\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\r\n\t\t\t\t\t\t\ttemp.push( (matcherIn[i] = elem) );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpostFinder( null, (matcherOut = []), temp, xml );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Move matched elements from seed to results to keep them synchronized\r\n\t\t\t\ti = matcherOut.length;\r\n\t\t\t\twhile ( i-- ) {\r\n\t\t\t\t\tif ( (elem = matcherOut[i]) &&\r\n\t\t\t\t\t\t(temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {\r\n\r\n\t\t\t\t\t\tseed[temp] = !(results[temp] = elem);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t// Add elements to results, through postFinder if defined\r\n\t\t} else {\r\n\t\t\tmatcherOut = condense(\r\n\t\t\t\tmatcherOut === results ?\r\n\t\t\t\t\tmatcherOut.splice( preexisting, matcherOut.length ) :\r\n\t\t\t\t\tmatcherOut\r\n\t\t\t);\r\n\t\t\tif ( postFinder ) {\r\n\t\t\t\tpostFinder( null, results, matcherOut, xml );\r\n\t\t\t} else {\r\n\t\t\t\tpush.apply( results, matcherOut );\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}\r\n\r\nfunction matcherFromTokens( tokens ) {\r\n\tvar checkContext, matcher, j,\r\n\t\tlen = tokens.length,\r\n\t\tleadingRelative = Expr.relative[ tokens[0].type ],\r\n\t\timplicitRelative = leadingRelative || Expr.relative[\" \"],\r\n\t\ti = leadingRelative ? 1 : 0,\r\n\r\n\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\r\n\t\tmatchContext = addCombinator( function( elem ) {\r\n\t\t\treturn elem === checkContext;\r\n\t\t}, implicitRelative, true ),\r\n\t\tmatchAnyContext = addCombinator( function( elem ) {\r\n\t\t\treturn indexOf( checkContext, elem ) > -1;\r\n\t\t}, implicitRelative, true ),\r\n\t\tmatchers = [ function( elem, context, xml ) {\r\n\t\t\tvar ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (\r\n\t\t\t\t(checkContext = context).nodeType ?\r\n\t\t\t\t\tmatchContext( elem, context, xml ) :\r\n\t\t\t\t\tmatchAnyContext( elem, context, xml ) );\r\n\t\t\t// Avoid hanging onto element (issue #299)\r\n\t\t\tcheckContext = null;\r\n\t\t\treturn ret;\r\n\t\t} ];\r\n\r\n\tfor ( ; i < len; i++ ) {\r\n\t\tif ( (matcher = Expr.relative[ tokens[i].type ]) ) {\r\n\t\t\tmatchers = [ addCombinator(elementMatcher( matchers ), matcher) ];\r\n\t\t} else {\r\n\t\t\tmatcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );\r\n\r\n\t\t\t// Return special upon seeing a positional matcher\r\n\t\t\tif ( matcher[ expando ] ) {\r\n\t\t\t\t// Find the next relative operator (if any) for proper handling\r\n\t\t\t\tj = ++i;\r\n\t\t\t\tfor ( ; j < len; j++ ) {\r\n\t\t\t\t\tif ( Expr.relative[ tokens[j].type ] ) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn setMatcher(\r\n\t\t\t\t\ti > 1 && elementMatcher( matchers ),\r\n\t\t\t\t\ti > 1 && toSelector(\r\n\t\t\t\t\t\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\r\n\t\t\t\t\t\ttokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === \" \" ? \"*\" : \"\" })\r\n\t\t\t\t\t).replace( rtrim, \"$1\" ),\r\n\t\t\t\t\tmatcher,\r\n\t\t\t\t\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\r\n\t\t\t\t\tj < len && matcherFromTokens( (tokens = tokens.slice( j )) ),\r\n\t\t\t\t\tj < len && toSelector( tokens )\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\tmatchers.push( matcher );\r\n\t\t}\r\n\t}\r\n\r\n\treturn elementMatcher( matchers );\r\n}\r\n\r\nfunction matcherFromGroupMatchers( elementMatchers, setMatchers ) {\r\n\tvar bySet = setMatchers.length > 0,\r\n\t\tbyElement = elementMatchers.length > 0,\r\n\t\tsuperMatcher = function( seed, context, xml, results, outermost ) {\r\n\t\t\tvar elem, j, matcher,\r\n\t\t\t\tmatchedCount = 0,\r\n\t\t\t\ti = \"0\",\r\n\t\t\t\tunmatched = seed && [],\r\n\t\t\t\tsetMatched = [],\r\n\t\t\t\tcontextBackup = outermostContext,\r\n\t\t\t\t// We must always have either seed elements or outermost context\r\n\t\t\t\telems = seed || byElement && Expr.find[\"TAG\"]( \"*\", outermost ),\r\n\t\t\t\t// Use integer dirruns iff this is the outermost matcher\r\n\t\t\t\tdirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),\r\n\t\t\t\tlen = elems.length;\r\n\r\n\t\t\tif ( outermost ) {\r\n\t\t\t\toutermostContext = context === document || context || outermost;\r\n\t\t\t}\r\n\r\n\t\t\t// Add elements passing elementMatchers directly to results\r\n\t\t\t// Support: IE<9, Safari\r\n\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: <number>) matching elements by id\r\n\t\t\tfor ( ; i !== len && (elem = elems[i]) != null; i++ ) {\r\n\t\t\t\tif ( byElement && elem ) {\r\n\t\t\t\t\tj = 0;\r\n\t\t\t\t\tif ( !context && elem.ownerDocument !== document ) {\r\n\t\t\t\t\t\tsetDocument( elem );\r\n\t\t\t\t\t\txml = !documentIsHTML;\r\n\t\t\t\t\t}\r\n\t\t\t\t\twhile ( (matcher = elementMatchers[j++]) ) {\r\n\t\t\t\t\t\tif ( matcher( elem, context || document, xml) ) {\r\n\t\t\t\t\t\t\tresults.push( elem );\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( outermost ) {\r\n\t\t\t\t\t\tdirruns = dirrunsUnique;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Track unmatched elements for set filters\r\n\t\t\t\tif ( bySet ) {\r\n\t\t\t\t\t// They will have gone through all possible matchers\r\n\t\t\t\t\tif ( (elem = !matcher && elem) ) {\r\n\t\t\t\t\t\tmatchedCount--;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Lengthen the array for every element, matched or not\r\n\t\t\t\t\tif ( seed ) {\r\n\t\t\t\t\t\tunmatched.push( elem );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// `i` is now the count of elements visited above, and adding it to `matchedCount`\r\n\t\t\t// makes the latter nonnegative.\r\n\t\t\tmatchedCount += i;\r\n\r\n\t\t\t// Apply set filters to unmatched elements\r\n\t\t\t// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\r\n\t\t\t// equals `i`), unless we didn't visit _any_ elements in the above loop because we have\r\n\t\t\t// no element matchers and no seed.\r\n\t\t\t// Incrementing an initially-string \"0\" `i` allows `i` to remain a string only in that\r\n\t\t\t// case, which will result in a \"00\" `matchedCount` that differs from `i` but is also\r\n\t\t\t// numerically zero.\r\n\t\t\tif ( bySet && i !== matchedCount ) {\r\n\t\t\t\tj = 0;\r\n\t\t\t\twhile ( (matcher = setMatchers[j++]) ) {\r\n\t\t\t\t\tmatcher( unmatched, setMatched, context, xml );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( seed ) {\r\n\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\r\n\t\t\t\t\tif ( matchedCount > 0 ) {\r\n\t\t\t\t\t\twhile ( i-- ) {\r\n\t\t\t\t\t\t\tif ( !(unmatched[i] || setMatched[i]) ) {\r\n\t\t\t\t\t\t\t\tsetMatched[i] = pop.call( results );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Discard index placeholder values to get only actual matches\r\n\t\t\t\t\tsetMatched = condense( setMatched );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Add matches to results\r\n\t\t\t\tpush.apply( results, setMatched );\r\n\r\n\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\r\n\t\t\t\tif ( outermost && !seed && setMatched.length > 0 &&\r\n\t\t\t\t\t( matchedCount + setMatchers.length ) > 1 ) {\r\n\r\n\t\t\t\t\tSizzle.uniqueSort( results );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Override manipulation of globals by nested matchers\r\n\t\t\tif ( outermost ) {\r\n\t\t\t\tdirruns = dirrunsUnique;\r\n\t\t\t\toutermostContext = contextBackup;\r\n\t\t\t}\r\n\r\n\t\t\treturn unmatched;\r\n\t\t};\r\n\r\n\treturn bySet ?\r\n\t\tmarkFunction( superMatcher ) :\r\n\t\tsuperMatcher;\r\n}\r\n\r\ncompile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {\r\n\tvar i,\r\n\t\tsetMatchers = [],\r\n\t\telementMatchers = [],\r\n\t\tcached = compilerCache[ selector + \" \" ];\r\n\r\n\tif ( !cached ) {\r\n\t\t// Generate a function of recursive functions that can be used to check each element\r\n\t\tif ( !match ) {\r\n\t\t\tmatch = tokenize( selector );\r\n\t\t}\r\n\t\ti = match.length;\r\n\t\twhile ( i-- ) {\r\n\t\t\tcached = matcherFromTokens( match[i] );\r\n\t\t\tif ( cached[ expando ] ) {\r\n\t\t\t\tsetMatchers.push( cached );\r\n\t\t\t} else {\r\n\t\t\t\telementMatchers.push( cached );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Cache the compiled function\r\n\t\tcached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );\r\n\r\n\t\t// Save selector and tokenization\r\n\t\tcached.selector = selector;\r\n\t}\r\n\treturn cached;\r\n};\r\n\r\n/**\r\n * A low-level selection function that works with Sizzle's compiled\r\n *  selector functions\r\n * @param {String|Function} selector A selector or a pre-compiled\r\n *  selector function built with Sizzle.compile\r\n * @param {Element} context\r\n * @param {Array} [results]\r\n * @param {Array} [seed] A set of elements to match against\r\n */\r\nselect = Sizzle.select = function( selector, context, results, seed ) {\r\n\tvar i, tokens, token, type, find,\r\n\t\tcompiled = typeof selector === \"function\" && selector,\r\n\t\tmatch = !seed && tokenize( (selector = compiled.selector || selector) );\r\n\r\n\tresults = results || [];\r\n\r\n\t// Try to minimize operations if there is only one selector in the list and no seed\r\n\t// (the latter of which guarantees us context)\r\n\tif ( match.length === 1 ) {\r\n\r\n\t\t// Reduce context if the leading compound selector is an ID\r\n\t\ttokens = match[0] = match[0].slice( 0 );\r\n\t\tif ( tokens.length > 2 && (token = tokens[0]).type === \"ID\" &&\r\n\t\t\t\tsupport.getById && context.nodeType === 9 && documentIsHTML &&\r\n\t\t\t\tExpr.relative[ tokens[1].type ] ) {\r\n\r\n\t\t\tcontext = ( Expr.find[\"ID\"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];\r\n\t\t\tif ( !context ) {\r\n\t\t\t\treturn results;\r\n\r\n\t\t\t// Precompiled matchers will still verify ancestry, so step up a level\r\n\t\t\t} else if ( compiled ) {\r\n\t\t\t\tcontext = context.parentNode;\r\n\t\t\t}\r\n\r\n\t\t\tselector = selector.slice( tokens.shift().value.length );\r\n\t\t}\r\n\r\n\t\t// Fetch a seed set for right-to-left matching\r\n\t\ti = matchExpr[\"needsContext\"].test( selector ) ? 0 : tokens.length;\r\n\t\twhile ( i-- ) {\r\n\t\t\ttoken = tokens[i];\r\n\r\n\t\t\t// Abort if we hit a combinator\r\n\t\t\tif ( Expr.relative[ (type = token.type) ] ) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif ( (find = Expr.find[ type ]) ) {\r\n\t\t\t\t// Search, expanding context for leading sibling combinators\r\n\t\t\t\tif ( (seed = find(\r\n\t\t\t\t\ttoken.matches[0].replace( runescape, funescape ),\r\n\t\t\t\t\trsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context\r\n\t\t\t\t)) ) {\r\n\r\n\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\r\n\t\t\t\t\ttokens.splice( i, 1 );\r\n\t\t\t\t\tselector = seed.length && toSelector( tokens );\r\n\t\t\t\t\tif ( !selector ) {\r\n\t\t\t\t\t\tpush.apply( results, seed );\r\n\t\t\t\t\t\treturn results;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// Compile and execute a filtering function if one is not provided\r\n\t// Provide `match` to avoid retokenization if we modified the selector above\r\n\t( compiled || compile( selector, match ) )(\r\n\t\tseed,\r\n\t\tcontext,\r\n\t\t!documentIsHTML,\r\n\t\tresults,\r\n\t\t!context || rsibling.test( selector ) && testContext( context.parentNode ) || context\r\n\t);\r\n\treturn results;\r\n};\r\n\r\n// One-time assignments\r\n\r\n// Sort stability\r\nsupport.sortStable = expando.split(\"\").sort( sortOrder ).join(\"\") === expando;\r\n\r\n// Support: Chrome 14-35+\r\n// Always assume duplicates if they aren't passed to the comparison function\r\nsupport.detectDuplicates = !!hasDuplicate;\r\n\r\n// Initialize against the default document\r\nsetDocument();\r\n\r\n// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\r\n// Detached nodes confoundingly follow *each other*\r\nsupport.sortDetached = assert(function( el ) {\r\n\t// Should return 1, but returns 4 (following)\r\n\treturn el.compareDocumentPosition( document.createElement(\"fieldset\") ) & 1;\r\n});\r\n\r\n// Support: IE<8\r\n// Prevent attribute/property \"interpolation\"\r\n// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\r\nif ( !assert(function( el ) {\r\n\tel.innerHTML = \"<a href='#'></a>\";\r\n\treturn el.firstChild.getAttribute(\"href\") === \"#\" ;\r\n}) ) {\r\n\taddHandle( \"type|href|height|width\", function( elem, name, isXML ) {\r\n\t\tif ( !isXML ) {\r\n\t\t\treturn elem.getAttribute( name, name.toLowerCase() === \"type\" ? 1 : 2 );\r\n\t\t}\r\n\t});\r\n}\r\n\r\n// Support: IE<9\r\n// Use defaultValue in place of getAttribute(\"value\")\r\nif ( !support.attributes || !assert(function( el ) {\r\n\tel.innerHTML = \"<input/>\";\r\n\tel.firstChild.setAttribute( \"value\", \"\" );\r\n\treturn el.firstChild.getAttribute( \"value\" ) === \"\";\r\n}) ) {\r\n\taddHandle( \"value\", function( elem, name, isXML ) {\r\n\t\tif ( !isXML && elem.nodeName.toLowerCase() === \"input\" ) {\r\n\t\t\treturn elem.defaultValue;\r\n\t\t}\r\n\t});\r\n}\r\n\r\n// Support: IE<9\r\n// Use getAttributeNode to fetch booleans when getAttribute lies\r\nif ( !assert(function( el ) {\r\n\treturn el.getAttribute(\"disabled\") == null;\r\n}) ) {\r\n\taddHandle( booleans, function( elem, name, isXML ) {\r\n\t\tvar val;\r\n\t\tif ( !isXML ) {\r\n\t\t\treturn elem[ name ] === true ? name.toLowerCase() :\r\n\t\t\t\t\t(val = elem.getAttributeNode( name )) && val.specified ?\r\n\t\t\t\t\tval.value :\r\n\t\t\t\tnull;\r\n\t\t}\r\n\t});\r\n}\r\n\r\nreturn Sizzle;\r\n\r\n})( window );\r\n\r\n\r\n\r\njQuery.find = Sizzle;\r\njQuery.expr = Sizzle.selectors;\r\n\r\n// Deprecated\r\njQuery.expr[ \":\" ] = jQuery.expr.pseudos;\r\njQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;\r\njQuery.text = Sizzle.getText;\r\njQuery.isXMLDoc = Sizzle.isXML;\r\njQuery.contains = Sizzle.contains;\r\njQuery.escapeSelector = Sizzle.escape;\r\n\r\n\r\n\r\n\r\nvar dir = function( elem, dir, until ) {\r\n\tvar matched = [],\r\n\t\ttruncate = until !== undefined;\r\n\r\n\twhile ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {\r\n\t\tif ( elem.nodeType === 1 ) {\r\n\t\t\tif ( truncate && jQuery( elem ).is( until ) ) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tmatched.push( elem );\r\n\t\t}\r\n\t}\r\n\treturn matched;\r\n};\r\n\r\n\r\nvar siblings = function( n, elem ) {\r\n\tvar matched = [];\r\n\r\n\tfor ( ; n; n = n.nextSibling ) {\r\n\t\tif ( n.nodeType === 1 && n !== elem ) {\r\n\t\t\tmatched.push( n );\r\n\t\t}\r\n\t}\r\n\r\n\treturn matched;\r\n};\r\n\r\n\r\nvar rneedsContext = jQuery.expr.match.needsContext;\r\n\r\nvar rsingleTag = ( /^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i );\r\n\r\n\r\n\r\nvar risSimple = /^.[^:#\\[\\.,]*$/;\r\n\r\n// Implement the identical functionality for filter and not\r\nfunction winnow( elements, qualifier, not ) {\r\n\tif ( jQuery.isFunction( qualifier ) ) {\r\n\t\treturn jQuery.grep( elements, function( elem, i ) {\r\n\t\t\treturn !!qualifier.call( elem, i, elem ) !== not;\r\n\t\t} );\r\n\r\n\t}\r\n\r\n\tif ( qualifier.nodeType ) {\r\n\t\treturn jQuery.grep( elements, function( elem ) {\r\n\t\t\treturn ( elem === qualifier ) !== not;\r\n\t\t} );\r\n\r\n\t}\r\n\r\n\tif ( typeof qualifier === \"string\" ) {\r\n\t\tif ( risSimple.test( qualifier ) ) {\r\n\t\t\treturn jQuery.filter( qualifier, elements, not );\r\n\t\t}\r\n\r\n\t\tqualifier = jQuery.filter( qualifier, elements );\r\n\t}\r\n\r\n\treturn jQuery.grep( elements, function( elem ) {\r\n\t\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1;\r\n\t} );\r\n}\r\n\r\njQuery.filter = function( expr, elems, not ) {\r\n\tvar elem = elems[ 0 ];\r\n\r\n\tif ( not ) {\r\n\t\texpr = \":not(\" + expr + \")\";\r\n\t}\r\n\r\n\treturn elems.length === 1 && elem.nodeType === 1 ?\r\n\t\tjQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :\r\n\t\tjQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {\r\n\t\t\treturn elem.nodeType === 1;\r\n\t\t} ) );\r\n};\r\n\r\njQuery.fn.extend( {\r\n\tfind: function( selector ) {\r\n\t\tvar i, ret,\r\n\t\t\tlen = this.length,\r\n\t\t\tself = this;\r\n\r\n\t\tif ( typeof selector !== \"string\" ) {\r\n\t\t\treturn this.pushStack( jQuery( selector ).filter( function() {\r\n\t\t\t\tfor ( i = 0; i < len; i++ ) {\r\n\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} ) );\r\n\t\t}\r\n\r\n\t\tret = this.pushStack( [] );\r\n\r\n\t\tfor ( i = 0; i < len; i++ ) {\r\n\t\t\tjQuery.find( selector, self[ i ], ret );\r\n\t\t}\r\n\r\n\t\treturn len > 1 ? jQuery.uniqueSort( ret ) : ret;\r\n\t},\r\n\tfilter: function( selector ) {\r\n\t\treturn this.pushStack( winnow( this, selector || [], false ) );\r\n\t},\r\n\tnot: function( selector ) {\r\n\t\treturn this.pushStack( winnow( this, selector || [], true ) );\r\n\t},\r\n\tis: function( selector ) {\r\n\t\treturn !!winnow(\r\n\t\t\tthis,\r\n\r\n\t\t\t// If this is a positional/relative selector, check membership in the returned set\r\n\t\t\t// so $(\"p:first\").is(\"p:last\") won't return true for a doc with two \"p\".\r\n\t\t\ttypeof selector === \"string\" && rneedsContext.test( selector ) ?\r\n\t\t\t\tjQuery( selector ) :\r\n\t\t\t\tselector || [],\r\n\t\t\tfalse\r\n\t\t).length;\r\n\t}\r\n} );\r\n\r\n\r\n// Initialize a jQuery object\r\n\r\n\r\n// A central reference to the root jQuery(document)\r\nvar rootjQuery,\r\n\r\n\t// A simple way to check for HTML strings\r\n\t// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)\r\n\t// Strict HTML recognition (#11290: must start with <)\r\n\t// Shortcut simple #id case for speed\r\n\trquickExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/,\r\n\r\n\tinit = jQuery.fn.init = function( selector, context, root ) {\r\n\t\tvar match, elem;\r\n\r\n\t\t// HANDLE: $(\"\"), $(null), $(undefined), $(false)\r\n\t\tif ( !selector ) {\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t// Method init() accepts an alternate rootjQuery\r\n\t\t// so migrate can support jQuery.sub (gh-2101)\r\n\t\troot = root || rootjQuery;\r\n\r\n\t\t// Handle HTML strings\r\n\t\tif ( typeof selector === \"string\" ) {\r\n\t\t\tif ( selector[ 0 ] === \"<\" &&\r\n\t\t\t\tselector[ selector.length - 1 ] === \">\" &&\r\n\t\t\t\tselector.length >= 3 ) {\r\n\r\n\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\r\n\t\t\t\tmatch = [ null, selector, null ];\r\n\r\n\t\t\t} else {\r\n\t\t\t\tmatch = rquickExpr.exec( selector );\r\n\t\t\t}\r\n\r\n\t\t\t// Match html or make sure no context is specified for #id\r\n\t\t\tif ( match && ( match[ 1 ] || !context ) ) {\r\n\r\n\t\t\t\t// HANDLE: $(html) -> $(array)\r\n\t\t\t\tif ( match[ 1 ] ) {\r\n\t\t\t\t\tcontext = context instanceof jQuery ? context[ 0 ] : context;\r\n\r\n\t\t\t\t\t// Option to run scripts is true for back-compat\r\n\t\t\t\t\t// Intentionally let the error be thrown if parseHTML is not present\r\n\t\t\t\t\tjQuery.merge( this, jQuery.parseHTML(\r\n\t\t\t\t\t\tmatch[ 1 ],\r\n\t\t\t\t\t\tcontext && context.nodeType ? context.ownerDocument || context : document,\r\n\t\t\t\t\t\ttrue\r\n\t\t\t\t\t) );\r\n\r\n\t\t\t\t\t// HANDLE: $(html, props)\r\n\t\t\t\t\tif ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {\r\n\t\t\t\t\t\tfor ( match in context ) {\r\n\r\n\t\t\t\t\t\t\t// Properties of context are called as methods if possible\r\n\t\t\t\t\t\t\tif ( jQuery.isFunction( this[ match ] ) ) {\r\n\t\t\t\t\t\t\t\tthis[ match ]( context[ match ] );\r\n\r\n\t\t\t\t\t\t\t// ...and otherwise set as attributes\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthis.attr( match, context[ match ] );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn this;\r\n\r\n\t\t\t\t// HANDLE: $(#id)\r\n\t\t\t\t} else {\r\n\t\t\t\t\telem = document.getElementById( match[ 2 ] );\r\n\r\n\t\t\t\t\tif ( elem ) {\r\n\r\n\t\t\t\t\t\t// Inject the element directly into the jQuery object\r\n\t\t\t\t\t\tthis[ 0 ] = elem;\r\n\t\t\t\t\t\tthis.length = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t}\r\n\r\n\t\t\t// HANDLE: $(expr, $(...))\r\n\t\t\t} else if ( !context || context.jquery ) {\r\n\t\t\t\treturn ( context || root ).find( selector );\r\n\r\n\t\t\t// HANDLE: $(expr, context)\r\n\t\t\t// (which is just equivalent to: $(context).find(expr)\r\n\t\t\t} else {\r\n\t\t\t\treturn this.constructor( context ).find( selector );\r\n\t\t\t}\r\n\r\n\t\t// HANDLE: $(DOMElement)\r\n\t\t} else if ( selector.nodeType ) {\r\n\t\t\tthis[ 0 ] = selector;\r\n\t\t\tthis.length = 1;\r\n\t\t\treturn this;\r\n\r\n\t\t// HANDLE: $(function)\r\n\t\t// Shortcut for document ready\r\n\t\t} else if ( jQuery.isFunction( selector ) ) {\r\n\t\t\treturn root.ready !== undefined ?\r\n\t\t\t\troot.ready( selector ) :\r\n\r\n\t\t\t\t// Execute immediately if ready is not present\r\n\t\t\t\tselector( jQuery );\r\n\t\t}\r\n\r\n\t\treturn jQuery.makeArray( selector, this );\r\n\t};\r\n\r\n// Give the init function the jQuery prototype for later instantiation\r\ninit.prototype = jQuery.fn;\r\n\r\n// Initialize central reference\r\nrootjQuery = jQuery( document );\r\n\r\n\r\nvar rparentsprev = /^(?:parents|prev(?:Until|All))/,\r\n\r\n\t// Methods guaranteed to produce a unique set when starting from a unique set\r\n\tguaranteedUnique = {\r\n\t\tchildren: true,\r\n\t\tcontents: true,\r\n\t\tnext: true,\r\n\t\tprev: true\r\n\t};\r\n\r\njQuery.fn.extend( {\r\n\thas: function( target ) {\r\n\t\tvar targets = jQuery( target, this ),\r\n\t\t\tl = targets.length;\r\n\r\n\t\treturn this.filter( function() {\r\n\t\t\tvar i = 0;\r\n\t\t\tfor ( ; i < l; i++ ) {\r\n\t\t\t\tif ( jQuery.contains( this, targets[ i ] ) ) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t},\r\n\r\n\tclosest: function( selectors, context ) {\r\n\t\tvar cur,\r\n\t\t\ti = 0,\r\n\t\t\tl = this.length,\r\n\t\t\tmatched = [],\r\n\t\t\ttargets = typeof selectors !== \"string\" && jQuery( selectors );\r\n\r\n\t\t// Positional selectors never match, since there's no _selection_ context\r\n\t\tif ( !rneedsContext.test( selectors ) ) {\r\n\t\t\tfor ( ; i < l; i++ ) {\r\n\t\t\t\tfor ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {\r\n\r\n\t\t\t\t\t// Always skip document fragments\r\n\t\t\t\t\tif ( cur.nodeType < 11 && ( targets ?\r\n\t\t\t\t\t\ttargets.index( cur ) > -1 :\r\n\r\n\t\t\t\t\t\t// Don't pass non-elements to Sizzle\r\n\t\t\t\t\t\tcur.nodeType === 1 &&\r\n\t\t\t\t\t\t\tjQuery.find.matchesSelector( cur, selectors ) ) ) {\r\n\r\n\t\t\t\t\t\tmatched.push( cur );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );\r\n\t},\r\n\r\n\t// Determine the position of an element within the set\r\n\tindex: function( elem ) {\r\n\r\n\t\t// No argument, return index in parent\r\n\t\tif ( !elem ) {\r\n\t\t\treturn ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;\r\n\t\t}\r\n\r\n\t\t// Index in selector\r\n\t\tif ( typeof elem === \"string\" ) {\r\n\t\t\treturn indexOf.call( jQuery( elem ), this[ 0 ] );\r\n\t\t}\r\n\r\n\t\t// Locate the position of the desired element\r\n\t\treturn indexOf.call( this,\r\n\r\n\t\t\t// If it receives a jQuery object, the first element is used\r\n\t\t\telem.jquery ? elem[ 0 ] : elem\r\n\t\t);\r\n\t},\r\n\r\n\tadd: function( selector, context ) {\r\n\t\treturn this.pushStack(\r\n\t\t\tjQuery.uniqueSort(\r\n\t\t\t\tjQuery.merge( this.get(), jQuery( selector, context ) )\r\n\t\t\t)\r\n\t\t);\r\n\t},\r\n\r\n\taddBack: function( selector ) {\r\n\t\treturn this.add( selector == null ?\r\n\t\t\tthis.prevObject : this.prevObject.filter( selector )\r\n\t\t);\r\n\t}\r\n} );\r\n\r\nfunction sibling( cur, dir ) {\r\n\twhile ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}\r\n\treturn cur;\r\n}\r\n\r\njQuery.each( {\r\n\tparent: function( elem ) {\r\n\t\tvar parent = elem.parentNode;\r\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\r\n\t},\r\n\tparents: function( elem ) {\r\n\t\treturn dir( elem, \"parentNode\" );\r\n\t},\r\n\tparentsUntil: function( elem, i, until ) {\r\n\t\treturn dir( elem, \"parentNode\", until );\r\n\t},\r\n\tnext: function( elem ) {\r\n\t\treturn sibling( elem, \"nextSibling\" );\r\n\t},\r\n\tprev: function( elem ) {\r\n\t\treturn sibling( elem, \"previousSibling\" );\r\n\t},\r\n\tnextAll: function( elem ) {\r\n\t\treturn dir( elem, \"nextSibling\" );\r\n\t},\r\n\tprevAll: function( elem ) {\r\n\t\treturn dir( elem, \"previousSibling\" );\r\n\t},\r\n\tnextUntil: function( elem, i, until ) {\r\n\t\treturn dir( elem, \"nextSibling\", until );\r\n\t},\r\n\tprevUntil: function( elem, i, until ) {\r\n\t\treturn dir( elem, \"previousSibling\", until );\r\n\t},\r\n\tsiblings: function( elem ) {\r\n\t\treturn siblings( ( elem.parentNode || {} ).firstChild, elem );\r\n\t},\r\n\tchildren: function( elem ) {\r\n\t\treturn siblings( elem.firstChild );\r\n\t},\r\n\tcontents: function( elem ) {\r\n\t\treturn elem.contentDocument || jQuery.merge( [], elem.childNodes );\r\n\t}\r\n}, function( name, fn ) {\r\n\tjQuery.fn[ name ] = function( until, selector ) {\r\n\t\tvar matched = jQuery.map( this, fn, until );\r\n\r\n\t\tif ( name.slice( -5 ) !== \"Until\" ) {\r\n\t\t\tselector = until;\r\n\t\t}\r\n\r\n\t\tif ( selector && typeof selector === \"string\" ) {\r\n\t\t\tmatched = jQuery.filter( selector, matched );\r\n\t\t}\r\n\r\n\t\tif ( this.length > 1 ) {\r\n\r\n\t\t\t// Remove duplicates\r\n\t\t\tif ( !guaranteedUnique[ name ] ) {\r\n\t\t\t\tjQuery.uniqueSort( matched );\r\n\t\t\t}\r\n\r\n\t\t\t// Reverse order for parents* and prev-derivatives\r\n\t\t\tif ( rparentsprev.test( name ) ) {\r\n\t\t\t\tmatched.reverse();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this.pushStack( matched );\r\n\t};\r\n} );\r\nvar rnotwhite = ( /\\S+/g );\r\n\r\n\r\n\r\n// Convert String-formatted options into Object-formatted ones\r\nfunction createOptions( options ) {\r\n\tvar object = {};\r\n\tjQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {\r\n\t\tobject[ flag ] = true;\r\n\t} );\r\n\treturn object;\r\n}\r\n\r\n/*\r\n * Create a callback list using the following parameters:\r\n *\r\n *\toptions: an optional list of space-separated options that will change how\r\n *\t\t\tthe callback list behaves or a more traditional option object\r\n *\r\n * By default a callback list will act like an event callback list and can be\r\n * \"fired\" multiple times.\r\n *\r\n * Possible options:\r\n *\r\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\r\n *\r\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\r\n *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\r\n *\t\t\t\t\tvalues (like a Deferred)\r\n *\r\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\r\n *\r\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\r\n *\r\n */\r\njQuery.Callbacks = function( options ) {\r\n\r\n\t// Convert options from String-formatted to Object-formatted if needed\r\n\t// (we check in cache first)\r\n\toptions = typeof options === \"string\" ?\r\n\t\tcreateOptions( options ) :\r\n\t\tjQuery.extend( {}, options );\r\n\r\n\tvar // Flag to know if list is currently firing\r\n\t\tfiring,\r\n\r\n\t\t// Last fire value for non-forgettable lists\r\n\t\tmemory,\r\n\r\n\t\t// Flag to know if list was already fired\r\n\t\tfired,\r\n\r\n\t\t// Flag to prevent firing\r\n\t\tlocked,\r\n\r\n\t\t// Actual callback list\r\n\t\tlist = [],\r\n\r\n\t\t// Queue of execution data for repeatable lists\r\n\t\tqueue = [],\r\n\r\n\t\t// Index of currently firing callback (modified by add/remove as needed)\r\n\t\tfiringIndex = -1,\r\n\r\n\t\t// Fire callbacks\r\n\t\tfire = function() {\r\n\r\n\t\t\t// Enforce single-firing\r\n\t\t\tlocked = options.once;\r\n\r\n\t\t\t// Execute callbacks for all pending executions,\r\n\t\t\t// respecting firingIndex overrides and runtime changes\r\n\t\t\tfired = firing = true;\r\n\t\t\tfor ( ; queue.length; firingIndex = -1 ) {\r\n\t\t\t\tmemory = queue.shift();\r\n\t\t\t\twhile ( ++firingIndex < list.length ) {\r\n\r\n\t\t\t\t\t// Run callback and check for early termination\r\n\t\t\t\t\tif ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&\r\n\t\t\t\t\t\toptions.stopOnFalse ) {\r\n\r\n\t\t\t\t\t\t// Jump to end and forget the data so .add doesn't re-fire\r\n\t\t\t\t\t\tfiringIndex = list.length;\r\n\t\t\t\t\t\tmemory = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Forget the data if we're done with it\r\n\t\t\tif ( !options.memory ) {\r\n\t\t\t\tmemory = false;\r\n\t\t\t}\r\n\r\n\t\t\tfiring = false;\r\n\r\n\t\t\t// Clean up if we're done firing for good\r\n\t\t\tif ( locked ) {\r\n\r\n\t\t\t\t// Keep an empty list if we have data for future add calls\r\n\t\t\t\tif ( memory ) {\r\n\t\t\t\t\tlist = [];\r\n\r\n\t\t\t\t// Otherwise, this object is spent\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlist = \"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t// Actual Callbacks object\r\n\t\tself = {\r\n\r\n\t\t\t// Add a callback or a collection of callbacks to the list\r\n\t\t\tadd: function() {\r\n\t\t\t\tif ( list ) {\r\n\r\n\t\t\t\t\t// If we have memory from a past run, we should fire after adding\r\n\t\t\t\t\tif ( memory && !firing ) {\r\n\t\t\t\t\t\tfiringIndex = list.length - 1;\r\n\t\t\t\t\t\tqueue.push( memory );\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t( function add( args ) {\r\n\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\r\n\t\t\t\t\t\t\tif ( jQuery.isFunction( arg ) ) {\r\n\t\t\t\t\t\t\t\tif ( !options.unique || !self.has( arg ) ) {\r\n\t\t\t\t\t\t\t\t\tlist.push( arg );\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if ( arg && arg.length && jQuery.type( arg ) !== \"string\" ) {\r\n\r\n\t\t\t\t\t\t\t\t// Inspect recursively\r\n\t\t\t\t\t\t\t\tadd( arg );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\t} )( arguments );\r\n\r\n\t\t\t\t\tif ( memory && !firing ) {\r\n\t\t\t\t\t\tfire();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\r\n\t\t\t// Remove a callback from the list\r\n\t\t\tremove: function() {\r\n\t\t\t\tjQuery.each( arguments, function( _, arg ) {\r\n\t\t\t\t\tvar index;\r\n\t\t\t\t\twhile ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\r\n\t\t\t\t\t\tlist.splice( index, 1 );\r\n\r\n\t\t\t\t\t\t// Handle firing indexes\r\n\t\t\t\t\t\tif ( index <= firingIndex ) {\r\n\t\t\t\t\t\t\tfiringIndex--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\r\n\t\t\t// Check if a given callback is in the list.\r\n\t\t\t// If no argument is given, return whether or not list has callbacks attached.\r\n\t\t\thas: function( fn ) {\r\n\t\t\t\treturn fn ?\r\n\t\t\t\t\tjQuery.inArray( fn, list ) > -1 :\r\n\t\t\t\t\tlist.length > 0;\r\n\t\t\t},\r\n\r\n\t\t\t// Remove all callbacks from the list\r\n\t\t\tempty: function() {\r\n\t\t\t\tif ( list ) {\r\n\t\t\t\t\tlist = [];\r\n\t\t\t\t}\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\r\n\t\t\t// Disable .fire and .add\r\n\t\t\t// Abort any current/pending executions\r\n\t\t\t// Clear all callbacks and values\r\n\t\t\tdisable: function() {\r\n\t\t\t\tlocked = queue = [];\r\n\t\t\t\tlist = memory = \"\";\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\t\t\tdisabled: function() {\r\n\t\t\t\treturn !list;\r\n\t\t\t},\r\n\r\n\t\t\t// Disable .fire\r\n\t\t\t// Also disable .add unless we have memory (since it would have no effect)\r\n\t\t\t// Abort any pending executions\r\n\t\t\tlock: function() {\r\n\t\t\t\tlocked = queue = [];\r\n\t\t\t\tif ( !memory && !firing ) {\r\n\t\t\t\t\tlist = memory = \"\";\r\n\t\t\t\t}\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\t\t\tlocked: function() {\r\n\t\t\t\treturn !!locked;\r\n\t\t\t},\r\n\r\n\t\t\t// Call all callbacks with the given context and arguments\r\n\t\t\tfireWith: function( context, args ) {\r\n\t\t\t\tif ( !locked ) {\r\n\t\t\t\t\targs = args || [];\r\n\t\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\r\n\t\t\t\t\tqueue.push( args );\r\n\t\t\t\t\tif ( !firing ) {\r\n\t\t\t\t\t\tfire();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\r\n\t\t\t// Call all the callbacks with the given arguments\r\n\t\t\tfire: function() {\r\n\t\t\t\tself.fireWith( this, arguments );\r\n\t\t\t\treturn this;\r\n\t\t\t},\r\n\r\n\t\t\t// To know if the callbacks have already been called at least once\r\n\t\t\tfired: function() {\r\n\t\t\t\treturn !!fired;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\treturn self;\r\n};\r\n\r\n\r\nfunction Identity( v ) {\r\n\treturn v;\r\n}\r\nfunction Thrower( ex ) {\r\n\tthrow ex;\r\n}\r\n\r\nfunction adoptValue( value, resolve, reject ) {\r\n\tvar method;\r\n\r\n\ttry {\r\n\r\n\t\t// Check for promise aspect first to privilege synchronous behavior\r\n\t\tif ( value && jQuery.isFunction( ( method = value.promise ) ) ) {\r\n\t\t\tmethod.call( value ).done( resolve ).fail( reject );\r\n\r\n\t\t// Other thenables\r\n\t\t} else if ( value && jQuery.isFunction( ( method = value.then ) ) ) {\r\n\t\t\tmethod.call( value, resolve, reject );\r\n\r\n\t\t// Other non-thenables\r\n\t\t} else {\r\n\r\n\t\t\t// Support: Android 4.0 only\r\n\t\t\t// Strict mode functions invoked without .call/.apply get global-object context\r\n\t\t\tresolve.call( undefined, value );\r\n\t\t}\r\n\r\n\t// For Promises/A+, convert exceptions into rejections\r\n\t// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in\r\n\t// Deferred#then to conditionally suppress rejection.\r\n\t} catch ( value ) {\r\n\r\n\t\t// Support: Android 4.0 only\r\n\t\t// Strict mode functions invoked without .call/.apply get global-object context\r\n\t\treject.call( undefined, value );\r\n\t}\r\n}\r\n\r\njQuery.extend( {\r\n\r\n\tDeferred: function( func ) {\r\n\t\tvar tuples = [\r\n\r\n\t\t\t\t// action, add listener, callbacks,\r\n\t\t\t\t// ... .then handlers, argument index, [final state]\r\n\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks( \"memory\" ),\r\n\t\t\t\t\tjQuery.Callbacks( \"memory\" ), 2 ],\r\n\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks( \"once memory\" ),\r\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 0, \"resolved\" ],\r\n\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks( \"once memory\" ),\r\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 1, \"rejected\" ]\r\n\t\t\t],\r\n\t\t\tstate = \"pending\",\r\n\t\t\tpromise = {\r\n\t\t\t\tstate: function() {\r\n\t\t\t\t\treturn state;\r\n\t\t\t\t},\r\n\t\t\t\talways: function() {\r\n\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t},\r\n\t\t\t\t\"catch\": function( fn ) {\r\n\t\t\t\t\treturn promise.then( null, fn );\r\n\t\t\t\t},\r\n\r\n\t\t\t\t// Keep pipe for back-compat\r\n\t\t\t\tpipe: function( /* fnDone, fnFail, fnProgress */ ) {\r\n\t\t\t\t\tvar fns = arguments;\r\n\r\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\r\n\t\t\t\t\t\tjQuery.each( tuples, function( i, tuple ) {\r\n\r\n\t\t\t\t\t\t\t// Map tuples (progress, done, fail) to arguments (done, fail, progress)\r\n\t\t\t\t\t\t\tvar fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];\r\n\r\n\t\t\t\t\t\t\t// deferred.progress(function() { bind to newDefer or newDefer.notify })\r\n\t\t\t\t\t\t\t// deferred.done(function() { bind to newDefer or newDefer.resolve })\r\n\t\t\t\t\t\t\t// deferred.fail(function() { bind to newDefer or newDefer.reject })\r\n\t\t\t\t\t\t\tdeferred[ tuple[ 1 ] ]( function() {\r\n\t\t\t\t\t\t\t\tvar returned = fn && fn.apply( this, arguments );\r\n\t\t\t\t\t\t\t\tif ( returned && jQuery.isFunction( returned.promise ) ) {\r\n\t\t\t\t\t\t\t\t\treturned.promise()\r\n\t\t\t\t\t\t\t\t\t\t.progress( newDefer.notify )\r\n\t\t\t\t\t\t\t\t\t\t.done( newDefer.resolve )\r\n\t\t\t\t\t\t\t\t\t\t.fail( newDefer.reject );\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tnewDefer[ tuple[ 0 ] + \"With\" ](\r\n\t\t\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\t\tfn ? [ returned ] : arguments\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} );\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\t\tfns = null;\r\n\t\t\t\t\t} ).promise();\r\n\t\t\t\t},\r\n\t\t\t\tthen: function( onFulfilled, onRejected, onProgress ) {\r\n\t\t\t\t\tvar maxDepth = 0;\r\n\t\t\t\t\tfunction resolve( depth, deferred, handler, special ) {\r\n\t\t\t\t\t\treturn function() {\r\n\t\t\t\t\t\t\tvar that = this,\r\n\t\t\t\t\t\t\t\targs = arguments,\r\n\t\t\t\t\t\t\t\tmightThrow = function() {\r\n\t\t\t\t\t\t\t\t\tvar returned, then;\r\n\r\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.3\r\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-59\r\n\t\t\t\t\t\t\t\t\t// Ignore double-resolution attempts\r\n\t\t\t\t\t\t\t\t\tif ( depth < maxDepth ) {\r\n\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\treturned = handler.apply( that, args );\r\n\r\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.1\r\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-48\r\n\t\t\t\t\t\t\t\t\tif ( returned === deferred.promise() ) {\r\n\t\t\t\t\t\t\t\t\t\tthrow new TypeError( \"Thenable self-resolution\" );\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ sections 2.3.3.1, 3.5\r\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-54\r\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-75\r\n\t\t\t\t\t\t\t\t\t// Retrieve `then` only once\r\n\t\t\t\t\t\t\t\t\tthen = returned &&\r\n\r\n\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.4\r\n\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-64\r\n\t\t\t\t\t\t\t\t\t\t// Only check objects and functions for thenability\r\n\t\t\t\t\t\t\t\t\t\t( typeof returned === \"object\" ||\r\n\t\t\t\t\t\t\t\t\t\t\ttypeof returned === \"function\" ) &&\r\n\t\t\t\t\t\t\t\t\t\treturned.then;\r\n\r\n\t\t\t\t\t\t\t\t\t// Handle a returned thenable\r\n\t\t\t\t\t\t\t\t\tif ( jQuery.isFunction( then ) ) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t// Special processors (notify) just wait for resolution\r\n\t\t\t\t\t\t\t\t\t\tif ( special ) {\r\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\r\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\r\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\r\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special )\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t\t\t\t// Normal processors (resolve) also hook into progress\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t// ...and disregard older resolution values\r\n\t\t\t\t\t\t\t\t\t\t\tmaxDepth++;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\r\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\r\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\r\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special ),\r\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdeferred.notifyWith )\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t// Handle all other returned values\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\r\n\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\r\n\t\t\t\t\t\t\t\t\t\tif ( handler !== Identity ) {\r\n\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\r\n\t\t\t\t\t\t\t\t\t\t\targs = [ returned ];\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t// Process the value(s)\r\n\t\t\t\t\t\t\t\t\t\t// Default process is resolve\r\n\t\t\t\t\t\t\t\t\t\t( special || deferred.resolveWith )( that, args );\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t// Only normal processors (resolve) catch and reject exceptions\r\n\t\t\t\t\t\t\t\tprocess = special ?\r\n\t\t\t\t\t\t\t\t\tmightThrow :\r\n\t\t\t\t\t\t\t\t\tfunction() {\r\n\t\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\t\tmightThrow();\r\n\t\t\t\t\t\t\t\t\t\t} catch ( e ) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tif ( jQuery.Deferred.exceptionHook ) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery.Deferred.exceptionHook( e,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tprocess.stackTrace );\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.4.1\r\n\t\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-61\r\n\t\t\t\t\t\t\t\t\t\t\t// Ignore post-resolution exceptions\r\n\t\t\t\t\t\t\t\t\t\t\tif ( depth + 1 >= maxDepth ) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\r\n\t\t\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\r\n\t\t\t\t\t\t\t\t\t\t\t\tif ( handler !== Thrower ) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\targs = [ e ];\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tdeferred.rejectWith( that, args );\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.1\r\n\t\t\t\t\t\t\t// https://promisesaplus.com/#point-57\r\n\t\t\t\t\t\t\t// Re-resolve promises immediately to dodge false rejection from\r\n\t\t\t\t\t\t\t// subsequent errors\r\n\t\t\t\t\t\t\tif ( depth ) {\r\n\t\t\t\t\t\t\t\tprocess();\r\n\t\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t\t// Call an optional hook to record the stack, in case of exception\r\n\t\t\t\t\t\t\t\t// since it's otherwise lost when execution goes async\r\n\t\t\t\t\t\t\t\tif ( jQuery.Deferred.getStackHook ) {\r\n\t\t\t\t\t\t\t\t\tprocess.stackTrace = jQuery.Deferred.getStackHook();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\twindow.setTimeout( process );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\r\n\r\n\t\t\t\t\t\t// progress_handlers.add( ... )\r\n\t\t\t\t\t\ttuples[ 0 ][ 3 ].add(\r\n\t\t\t\t\t\t\tresolve(\r\n\t\t\t\t\t\t\t\t0,\r\n\t\t\t\t\t\t\t\tnewDefer,\r\n\t\t\t\t\t\t\t\tjQuery.isFunction( onProgress ) ?\r\n\t\t\t\t\t\t\t\t\tonProgress :\r\n\t\t\t\t\t\t\t\t\tIdentity,\r\n\t\t\t\t\t\t\t\tnewDefer.notifyWith\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t// fulfilled_handlers.add( ... )\r\n\t\t\t\t\t\ttuples[ 1 ][ 3 ].add(\r\n\t\t\t\t\t\t\tresolve(\r\n\t\t\t\t\t\t\t\t0,\r\n\t\t\t\t\t\t\t\tnewDefer,\r\n\t\t\t\t\t\t\t\tjQuery.isFunction( onFulfilled ) ?\r\n\t\t\t\t\t\t\t\t\tonFulfilled :\r\n\t\t\t\t\t\t\t\t\tIdentity\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t// rejected_handlers.add( ... )\r\n\t\t\t\t\t\ttuples[ 2 ][ 3 ].add(\r\n\t\t\t\t\t\t\tresolve(\r\n\t\t\t\t\t\t\t\t0,\r\n\t\t\t\t\t\t\t\tnewDefer,\r\n\t\t\t\t\t\t\t\tjQuery.isFunction( onRejected ) ?\r\n\t\t\t\t\t\t\t\t\tonRejected :\r\n\t\t\t\t\t\t\t\t\tThrower\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t} ).promise();\r\n\t\t\t\t},\r\n\r\n\t\t\t\t// Get a promise for this deferred\r\n\t\t\t\t// If obj is provided, the promise aspect is added to the object\r\n\t\t\t\tpromise: function( obj ) {\r\n\t\t\t\t\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tdeferred = {};\r\n\r\n\t\t// Add list-specific methods\r\n\t\tjQuery.each( tuples, function( i, tuple ) {\r\n\t\t\tvar list = tuple[ 2 ],\r\n\t\t\t\tstateString = tuple[ 5 ];\r\n\r\n\t\t\t// promise.progress = list.add\r\n\t\t\t// promise.done = list.add\r\n\t\t\t// promise.fail = list.add\r\n\t\t\tpromise[ tuple[ 1 ] ] = list.add;\r\n\r\n\t\t\t// Handle state\r\n\t\t\tif ( stateString ) {\r\n\t\t\t\tlist.add(\r\n\t\t\t\t\tfunction() {\r\n\r\n\t\t\t\t\t\t// state = \"resolved\" (i.e., fulfilled)\r\n\t\t\t\t\t\t// state = \"rejected\"\r\n\t\t\t\t\t\tstate = stateString;\r\n\t\t\t\t\t},\r\n\r\n\t\t\t\t\t// rejected_callbacks.disable\r\n\t\t\t\t\t// fulfilled_callbacks.disable\r\n\t\t\t\t\ttuples[ 3 - i ][ 2 ].disable,\r\n\r\n\t\t\t\t\t// progress_callbacks.lock\r\n\t\t\t\t\ttuples[ 0 ][ 2 ].lock\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\t// progress_handlers.fire\r\n\t\t\t// fulfilled_handlers.fire\r\n\t\t\t// rejected_handlers.fire\r\n\t\t\tlist.add( tuple[ 3 ].fire );\r\n\r\n\t\t\t// deferred.notify = function() { deferred.notifyWith(...) }\r\n\t\t\t// deferred.resolve = function() { deferred.resolveWith(...) }\r\n\t\t\t// deferred.reject = function() { deferred.rejectWith(...) }\r\n\t\t\tdeferred[ tuple[ 0 ] ] = function() {\r\n\t\t\t\tdeferred[ tuple[ 0 ] + \"With\" ]( this === deferred ? undefined : this, arguments );\r\n\t\t\t\treturn this;\r\n\t\t\t};\r\n\r\n\t\t\t// deferred.notifyWith = list.fireWith\r\n\t\t\t// deferred.resolveWith = list.fireWith\r\n\t\t\t// deferred.rejectWith = list.fireWith\r\n\t\t\tdeferred[ tuple[ 0 ] + \"With\" ] = list.fireWith;\r\n\t\t} );\r\n\r\n\t\t// Make the deferred a promise\r\n\t\tpromise.promise( deferred );\r\n\r\n\t\t// Call given func if any\r\n\t\tif ( func ) {\r\n\t\t\tfunc.call( deferred, deferred );\r\n\t\t}\r\n\r\n\t\t// All done!\r\n\t\treturn deferred;\r\n\t},\r\n\r\n\t// Deferred helper\r\n\twhen: function( singleValue ) {\r\n\t\tvar\r\n\r\n\t\t\t// count of uncompleted subordinates\r\n\t\t\tremaining = arguments.length,\r\n\r\n\t\t\t// count of unprocessed arguments\r\n\t\t\ti = remaining,\r\n\r\n\t\t\t// subordinate fulfillment data\r\n\t\t\tresolveContexts = Array( i ),\r\n\t\t\tresolveValues = slice.call( arguments ),\r\n\r\n\t\t\t// the master Deferred\r\n\t\t\tmaster = jQuery.Deferred(),\r\n\r\n\t\t\t// subordinate callback factory\r\n\t\t\tupdateFunc = function( i ) {\r\n\t\t\t\treturn function( value ) {\r\n\t\t\t\t\tresolveContexts[ i ] = this;\r\n\t\t\t\t\tresolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;\r\n\t\t\t\t\tif ( !( --remaining ) ) {\r\n\t\t\t\t\t\tmaster.resolveWith( resolveContexts, resolveValues );\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t};\r\n\r\n\t\t// Single- and empty arguments are adopted like Promise.resolve\r\n\t\tif ( remaining <= 1 ) {\r\n\t\t\tadoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject );\r\n\r\n\t\t\t// Use .then() to unwrap secondary thenables (cf. gh-3000)\r\n\t\t\tif ( master.state() === \"pending\" ||\r\n\t\t\t\tjQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {\r\n\r\n\t\t\t\treturn master.then();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Multiple arguments are aggregated like Promise.all array elements\r\n\t\twhile ( i-- ) {\r\n\t\t\tadoptValue( resolveValues[ i ], updateFunc( i ), master.reject );\r\n\t\t}\r\n\r\n\t\treturn master.promise();\r\n\t}\r\n} );\r\n\r\n\r\n// These usually indicate a programmer mistake during development,\r\n// warn about them ASAP rather than swallowing them by default.\r\nvar rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;\r\n\r\njQuery.Deferred.exceptionHook = function( error, stack ) {\r\n\r\n\t// Support: IE 8 - 9 only\r\n\t// Console exists when dev tools are open, which can happen at any time\r\n\tif ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {\r\n\t\twindow.console.warn( \"jQuery.Deferred exception: \" + error.message, error.stack, stack );\r\n\t}\r\n};\r\n\r\n\r\n\r\n\r\njQuery.readyException = function( error ) {\r\n\twindow.setTimeout( function() {\r\n\t\tthrow error;\r\n\t} );\r\n};\r\n\r\n\r\n\r\n\r\n// The deferred used on DOM ready\r\nvar readyList = jQuery.Deferred();\r\n\r\njQuery.fn.ready = function( fn ) {\r\n\r\n\treadyList\r\n\t\t.then( fn )\r\n\r\n\t\t// Wrap jQuery.readyException in a function so that the lookup\r\n\t\t// happens at the time of error handling instead of callback\r\n\t\t// registration.\r\n\t\t.catch( function( error ) {\r\n\t\t\tjQuery.readyException( error );\r\n\t\t} );\r\n\r\n\treturn this;\r\n};\r\n\r\njQuery.extend( {\r\n\r\n\t// Is the DOM ready to be used? Set to true once it occurs.\r\n\tisReady: false,\r\n\r\n\t// A counter to track how many items to wait for before\r\n\t// the ready event fires. See #6781\r\n\treadyWait: 1,\r\n\r\n\t// Hold (or release) the ready event\r\n\tholdReady: function( hold ) {\r\n\t\tif ( hold ) {\r\n\t\t\tjQuery.readyWait++;\r\n\t\t} else {\r\n\t\t\tjQuery.ready( true );\r\n\t\t}\r\n\t},\r\n\r\n\t// Handle when the DOM is ready\r\n\tready: function( wait ) {\r\n\r\n\t\t// Abort if there are pending holds or we're already ready\r\n\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Remember that the DOM is ready\r\n\t\tjQuery.isReady = true;\r\n\r\n\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\r\n\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// If there are functions bound, to execute\r\n\t\treadyList.resolveWith( document, [ jQuery ] );\r\n\t}\r\n} );\r\n\r\njQuery.ready.then = readyList.then;\r\n\r\n// The ready event handler and self cleanup method\r\nfunction completed() {\r\n\tdocument.removeEventListener( \"DOMContentLoaded\", completed );\r\n\twindow.removeEventListener( \"load\", completed );\r\n\tjQuery.ready();\r\n}\r\n\r\n// Catch cases where $(document).ready() is called\r\n// after the browser event has already occurred.\r\n// Support: IE <=9 - 10 only\r\n// Older IE sometimes signals \"interactive\" too soon\r\nif ( document.readyState === \"complete\" ||\r\n\t( document.readyState !== \"loading\" && !document.documentElement.doScroll ) ) {\r\n\r\n\t// Handle it asynchronously to allow scripts the opportunity to delay ready\r\n\twindow.setTimeout( jQuery.ready );\r\n\r\n} else {\r\n\r\n\t// Use the handy event callback\r\n\tdocument.addEventListener( \"DOMContentLoaded\", completed );\r\n\r\n\t// A fallback to window.onload, that will always work\r\n\twindow.addEventListener( \"load\", completed );\r\n}\r\n\r\n\r\n\r\n\r\n// Multifunctional method to get and set values of a collection\r\n// The value/s can optionally be executed if it's a function\r\nvar access = function( elems, fn, key, value, chainable, emptyGet, raw ) {\r\n\tvar i = 0,\r\n\t\tlen = elems.length,\r\n\t\tbulk = key == null;\r\n\r\n\t// Sets many values\r\n\tif ( jQuery.type( key ) === \"object\" ) {\r\n\t\tchainable = true;\r\n\t\tfor ( i in key ) {\r\n\t\t\taccess( elems, fn, i, key[ i ], true, emptyGet, raw );\r\n\t\t}\r\n\r\n\t// Sets one value\r\n\t} else if ( value !== undefined ) {\r\n\t\tchainable = true;\r\n\r\n\t\tif ( !jQuery.isFunction( value ) ) {\r\n\t\t\traw = true;\r\n\t\t}\r\n\r\n\t\tif ( bulk ) {\r\n\r\n\t\t\t// Bulk operations run against the entire set\r\n\t\t\tif ( raw ) {\r\n\t\t\t\tfn.call( elems, value );\r\n\t\t\t\tfn = null;\r\n\r\n\t\t\t// ...except when executing function values\r\n\t\t\t} else {\r\n\t\t\t\tbulk = fn;\r\n\t\t\t\tfn = function( elem, key, value ) {\r\n\t\t\t\t\treturn bulk.call( jQuery( elem ), value );\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif ( fn ) {\r\n\t\t\tfor ( ; i < len; i++ ) {\r\n\t\t\t\tfn(\r\n\t\t\t\t\telems[ i ], key, raw ?\r\n\t\t\t\t\tvalue :\r\n\t\t\t\t\tvalue.call( elems[ i ], i, fn( elems[ i ], key ) )\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn chainable ?\r\n\t\telems :\r\n\r\n\t\t// Gets\r\n\t\tbulk ?\r\n\t\t\tfn.call( elems ) :\r\n\t\t\tlen ? fn( elems[ 0 ], key ) : emptyGet;\r\n};\r\nvar acceptData = function( owner ) {\r\n\r\n\t// Accepts only:\r\n\t//  - Node\r\n\t//    - Node.ELEMENT_NODE\r\n\t//    - Node.DOCUMENT_NODE\r\n\t//  - Object\r\n\t//    - Any\r\n\treturn owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );\r\n};\r\n\r\n\r\n\r\n\r\nfunction Data() {\r\n\tthis.expando = jQuery.expando + Data.uid++;\r\n}\r\n\r\nData.uid = 1;\r\n\r\nData.prototype = {\r\n\r\n\tcache: function( owner ) {\r\n\r\n\t\t// Check if the owner object already has a cache\r\n\t\tvar value = owner[ this.expando ];\r\n\r\n\t\t// If not, create one\r\n\t\tif ( !value ) {\r\n\t\t\tvalue = {};\r\n\r\n\t\t\t// We can accept data for non-element nodes in modern browsers,\r\n\t\t\t// but we should not, see #8335.\r\n\t\t\t// Always return an empty object.\r\n\t\t\tif ( acceptData( owner ) ) {\r\n\r\n\t\t\t\t// If it is a node unlikely to be stringify-ed or looped over\r\n\t\t\t\t// use plain assignment\r\n\t\t\t\tif ( owner.nodeType ) {\r\n\t\t\t\t\towner[ this.expando ] = value;\r\n\r\n\t\t\t\t// Otherwise secure it in a non-enumerable property\r\n\t\t\t\t// configurable must be true to allow the property to be\r\n\t\t\t\t// deleted when data is removed\r\n\t\t\t\t} else {\r\n\t\t\t\t\tObject.defineProperty( owner, this.expando, {\r\n\t\t\t\t\t\tvalue: value,\r\n\t\t\t\t\t\tconfigurable: true\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn value;\r\n\t},\r\n\tset: function( owner, data, value ) {\r\n\t\tvar prop,\r\n\t\t\tcache = this.cache( owner );\r\n\r\n\t\t// Handle: [ owner, key, value ] args\r\n\t\t// Always use camelCase key (gh-2257)\r\n\t\tif ( typeof data === \"string\" ) {\r\n\t\t\tcache[ jQuery.camelCase( data ) ] = value;\r\n\r\n\t\t// Handle: [ owner, { properties } ] args\r\n\t\t} else {\r\n\r\n\t\t\t// Copy the properties one-by-one to the cache object\r\n\t\t\tfor ( prop in data ) {\r\n\t\t\t\tcache[ jQuery.camelCase( prop ) ] = data[ prop ];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cache;\r\n\t},\r\n\tget: function( owner, key ) {\r\n\t\treturn key === undefined ?\r\n\t\t\tthis.cache( owner ) :\r\n\r\n\t\t\t// Always use camelCase key (gh-2257)\r\n\t\t\towner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ];\r\n\t},\r\n\taccess: function( owner, key, value ) {\r\n\r\n\t\t// In cases where either:\r\n\t\t//\r\n\t\t//   1. No key was specified\r\n\t\t//   2. A string key was specified, but no value provided\r\n\t\t//\r\n\t\t// Take the \"read\" path and allow the get method to determine\r\n\t\t// which value to return, respectively either:\r\n\t\t//\r\n\t\t//   1. The entire cache object\r\n\t\t//   2. The data stored at the key\r\n\t\t//\r\n\t\tif ( key === undefined ||\r\n\t\t\t\t( ( key && typeof key === \"string\" ) && value === undefined ) ) {\r\n\r\n\t\t\treturn this.get( owner, key );\r\n\t\t}\r\n\r\n\t\t// When the key is not a string, or both a key and value\r\n\t\t// are specified, set or extend (existing objects) with either:\r\n\t\t//\r\n\t\t//   1. An object of properties\r\n\t\t//   2. A key and value\r\n\t\t//\r\n\t\tthis.set( owner, key, value );\r\n\r\n\t\t// Since the \"set\" path can have two possible entry points\r\n\t\t// return the expected data based on which path was taken[*]\r\n\t\treturn value !== undefined ? value : key;\r\n\t},\r\n\tremove: function( owner, key ) {\r\n\t\tvar i,\r\n\t\t\tcache = owner[ this.expando ];\r\n\r\n\t\tif ( cache === undefined ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( key !== undefined ) {\r\n\r\n\t\t\t// Support array or space separated string of keys\r\n\t\t\tif ( jQuery.isArray( key ) ) {\r\n\r\n\t\t\t\t// If key is an array of keys...\r\n\t\t\t\t// We always set camelCase keys, so remove that.\r\n\t\t\t\tkey = key.map( jQuery.camelCase );\r\n\t\t\t} else {\r\n\t\t\t\tkey = jQuery.camelCase( key );\r\n\r\n\t\t\t\t// If a key with the spaces exists, use it.\r\n\t\t\t\t// Otherwise, create an array by matching non-whitespace\r\n\t\t\t\tkey = key in cache ?\r\n\t\t\t\t\t[ key ] :\r\n\t\t\t\t\t( key.match( rnotwhite ) || [] );\r\n\t\t\t}\r\n\r\n\t\t\ti = key.length;\r\n\r\n\t\t\twhile ( i-- ) {\r\n\t\t\t\tdelete cache[ key[ i ] ];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Remove the expando if there's no more data\r\n\t\tif ( key === undefined || jQuery.isEmptyObject( cache ) ) {\r\n\r\n\t\t\t// Support: Chrome <=35 - 45\r\n\t\t\t// Webkit & Blink performance suffers when deleting properties\r\n\t\t\t// from DOM nodes, so set to undefined instead\r\n\t\t\t// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)\r\n\t\t\tif ( owner.nodeType ) {\r\n\t\t\t\towner[ this.expando ] = undefined;\r\n\t\t\t} else {\r\n\t\t\t\tdelete owner[ this.expando ];\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\thasData: function( owner ) {\r\n\t\tvar cache = owner[ this.expando ];\r\n\t\treturn cache !== undefined && !jQuery.isEmptyObject( cache );\r\n\t}\r\n};\r\nvar dataPriv = new Data();\r\n\r\nvar dataUser = new Data();\r\n\r\n\r\n\r\n//\tImplementation Summary\r\n//\r\n//\t1. Enforce API surface and semantic compatibility with 1.9.x branch\r\n//\t2. Improve the module's maintainability by reducing the storage\r\n//\t\tpaths to a single mechanism.\r\n//\t3. Use the same single mechanism to support \"private\" and \"user\" data.\r\n//\t4. _Never_ expose \"private\" data to user code (TODO: Drop _data, _removeData)\r\n//\t5. Avoid exposing implementation details on user objects (eg. expando properties)\r\n//\t6. Provide a clear path for implementation upgrade to WeakMap in 2014\r\n\r\nvar rbrace = /^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,\r\n\trmultiDash = /[A-Z]/g;\r\n\r\nfunction dataAttr( elem, key, data ) {\r\n\tvar name;\r\n\r\n\t// If nothing was found internally, try to fetch any\r\n\t// data from the HTML5 data-* attribute\r\n\tif ( data === undefined && elem.nodeType === 1 ) {\r\n\t\tname = \"data-\" + key.replace( rmultiDash, \"-$&\" ).toLowerCase();\r\n\t\tdata = elem.getAttribute( name );\r\n\r\n\t\tif ( typeof data === \"string\" ) {\r\n\t\t\ttry {\r\n\t\t\t\tdata = data === \"true\" ? true :\r\n\t\t\t\t\tdata === \"false\" ? false :\r\n\t\t\t\t\tdata === \"null\" ? null :\r\n\r\n\t\t\t\t\t// Only convert to a number if it doesn't change the string\r\n\t\t\t\t\t+data + \"\" === data ? +data :\r\n\t\t\t\t\trbrace.test( data ) ? JSON.parse( data ) :\r\n\t\t\t\t\tdata;\r\n\t\t\t} catch ( e ) {}\r\n\r\n\t\t\t// Make sure we set the data so it isn't changed later\r\n\t\t\tdataUser.set( elem, key, data );\r\n\t\t} else {\r\n\t\t\tdata = undefined;\r\n\t\t}\r\n\t}\r\n\treturn data;\r\n}\r\n\r\njQuery.extend( {\r\n\thasData: function( elem ) {\r\n\t\treturn dataUser.hasData( elem ) || dataPriv.hasData( elem );\r\n\t},\r\n\r\n\tdata: function( elem, name, data ) {\r\n\t\treturn dataUser.access( elem, name, data );\r\n\t},\r\n\r\n\tremoveData: function( elem, name ) {\r\n\t\tdataUser.remove( elem, name );\r\n\t},\r\n\r\n\t// TODO: Now that all calls to _data and _removeData have been replaced\r\n\t// with direct calls to dataPriv methods, these can be deprecated.\r\n\t_data: function( elem, name, data ) {\r\n\t\treturn dataPriv.access( elem, name, data );\r\n\t},\r\n\r\n\t_removeData: function( elem, name ) {\r\n\t\tdataPriv.remove( elem, name );\r\n\t}\r\n} );\r\n\r\njQuery.fn.extend( {\r\n\tdata: function( key, value ) {\r\n\t\tvar i, name, data,\r\n\t\t\telem = this[ 0 ],\r\n\t\t\tattrs = elem && elem.attributes;\r\n\r\n\t\t// Gets all values\r\n\t\tif ( key === undefined ) {\r\n\t\t\tif ( this.length ) {\r\n\t\t\t\tdata = dataUser.get( elem );\r\n\r\n\t\t\t\tif ( elem.nodeType === 1 && !dataPriv.get( elem, \"hasDataAttrs\" ) ) {\r\n\t\t\t\t\ti = attrs.length;\r\n\t\t\t\t\twhile ( i-- ) {\r\n\r\n\t\t\t\t\t\t// Support: IE 11 only\r\n\t\t\t\t\t\t// The attrs elements can be null (#14894)\r\n\t\t\t\t\t\tif ( attrs[ i ] ) {\r\n\t\t\t\t\t\t\tname = attrs[ i ].name;\r\n\t\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\r\n\t\t\t\t\t\t\t\tname = jQuery.camelCase( name.slice( 5 ) );\r\n\t\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdataPriv.set( elem, \"hasDataAttrs\", true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn data;\r\n\t\t}\r\n\r\n\t\t// Sets multiple values\r\n\t\tif ( typeof key === \"object\" ) {\r\n\t\t\treturn this.each( function() {\r\n\t\t\t\tdataUser.set( this, key );\r\n\t\t\t} );\r\n\t\t}\r\n\r\n\t\treturn access( this, function( value ) {\r\n\t\t\tvar data;\r\n\r\n\t\t\t// The calling jQuery object (element matches) is not empty\r\n\t\t\t// (and therefore has an element appears at this[ 0 ]) and the\r\n\t\t\t// `value` parameter was not undefined. An empty jQuery object\r\n\t\t\t// will result in `undefined` for elem = this[ 0 ] which will\r\n\t\t\t// throw an exception if an attempt to read a data cache is made.\r\n\t\t\tif ( elem && value === undefined ) {\r\n\r\n\t\t\t\t// Attempt to get data from the cache\r\n\t\t\t\t// The key will always be camelCased in Data\r\n\t\t\t\tdata = dataUser.get( elem, key );\r\n\t\t\t\tif ( data !== undefined ) {\r\n\t\t\t\t\treturn data;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Attempt to \"discover\" the data in\r\n\t\t\t\t// HTML5 custom data-* attrs\r\n\t\t\t\tdata = dataAttr( elem, key );\r\n\t\t\t\tif ( data !== undefined ) {\r\n\t\t\t\t\treturn data;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// We tried really hard, but the data doesn't exist.\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Set the data...\r\n\t\t\tthis.each( function() {\r\n\r\n\t\t\t\t// We always store the camelCased key\r\n\t\t\t\tdataUser.set( this, key, value );\r\n\t\t\t} );\r\n\t\t}, null, value, arguments.length > 1, null, true );\r\n\t},\r\n\r\n\tremoveData: function( key ) {\r\n\t\treturn this.each( function() {\r\n\t\t\tdataUser.remove( this, key );\r\n\t\t} );\r\n\t}\r\n} );\r\n\r\n\r\njQuery.extend( {\r\n\tqueue: function( elem, type, data ) {\r\n\t\tvar queue;\r\n\r\n\t\tif ( elem ) {\r\n\t\t\ttype = ( type || \"fx\" ) + \"queue\";\r\n\t\t\tqueue = dataPriv.get( elem, type );\r\n\r\n\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\r\n\t\t\tif ( data ) {\r\n\t\t\t\tif ( !queue || jQuery.isArray( data ) ) {\r\n\t\t\t\t\tqueue = dataPriv.access( elem, type, jQuery.makeArray( data ) );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tqueue.push( data );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn queue || [];\r\n\t\t}\r\n\t},\r\n\r\n\tdequeue: function( elem, type ) {\r\n\t\ttype = type || \"fx\";\r\n\r\n\t\tvar queue = jQuery.queue( elem, type ),\r\n\t\t\tstartLength = queue.length,\r\n\t\t\tfn = queue.shift(),\r\n\t\t\thooks = jQuery._queueHooks( elem, type ),\r\n\t\t\tnext = function() {\r\n\t\t\t\tjQuery.dequeue( elem, type );\r\n\t\t\t};\r\n\r\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\r\n\t\tif ( fn === \"inprogress\" ) {\r\n\t\t\tfn = queue.shift();\r\n\t\t\tstartLength--;\r\n\t\t}\r\n\r\n\t\tif ( fn ) {\r\n\r\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\r\n\t\t\t// automatically dequeued\r\n\t\t\tif ( type === \"fx\" ) {\r\n\t\t\t\tqueue.unshift( \"inprogress\" );\r\n\t\t\t}\r\n\r\n\t\t\t// Clear up the last queue stop function\r\n\t\t\tdelete hooks.stop;\r\n\t\t\tfn.call( elem, next, hooks );\r\n\t\t}\r\n\r\n\t\tif ( !startLength && hooks ) {\r\n\t\t\thooks.empty.fire();\r\n\t\t}\r\n\t},\r\n\r\n\t// Not public - generate a queueHooks object, or return the current one\r\n\t_queueHooks: function( elem, type ) {\r\n\t\tvar key = type + \"queueHooks\";\r\n\t\treturn dataPriv.get( elem, key ) || dataPriv.access( elem, key, {\r\n\t\t\tempty: jQuery.Callbacks( \"once memory\" ).add( function() {\r\n\t\t\t\tdataPriv.remove( elem, [ type + \"queue\", key ] );\r\n\t\t\t} )\r\n\t\t} );\r\n\t}\r\n} );\r\n\r\njQuery.fn.extend( {\r\n\tqueue: function( type, data ) {\r\n\t\tvar setter = 2;\r\n\r\n\t\tif ( typeof type !== \"string\" ) {\r\n\t\t\tdata = type;\r\n\t\t\ttype = \"fx\";\r\n\t\t\tsetter--;\r\n\t\t}\r\n\r\n\t\tif ( arguments.length < setter ) {\r\n\t\t\treturn jQuery.queue( this[ 0 ], type );\r\n\t\t}\r\n\r\n\t\treturn data === undefined ?\r\n\t\t\tthis :\r\n\t\t\tthis.each( function() {\r\n\t\t\t\tvar queue = jQuery.queue( this, type, data );\r\n\r\n\t\t\t\t// Ensure a hooks for this queue\r\n\t\t\t\tjQuery._queueHooks( this, type );\r\n\r\n\t\t\t\tif ( type === \"fx\" && queue[ 0 ] !== \"inprogress\" ) {\r\n\t\t\t\t\tjQuery.dequeue( this, type );\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t},\r\n\tdequeue: function( type ) {\r\n\t\treturn this.each( function() {\r\n\t\t\tjQuery.dequeue( this, type );\r\n\t\t} );\r\n\t},\r\n\tclearQueue: function( type ) {\r\n\t\treturn this.queue( type || \"fx\", [] );\r\n\t},\r\n\r\n\t// Get a promise resolved when queues of a certain type\r\n\t// are emptied (fx is the type by default)\r\n\tpromise: function( type, obj ) {\r\n\t\tvar tmp,\r\n\t\t\tcount = 1,\r\n\t\t\tdefer = jQuery.Deferred(),\r\n\t\t\telements = this,\r\n\t\t\ti = this.length,\r\n\t\t\tresolve = function() {\r\n\t\t\t\tif ( !( --count ) ) {\r\n\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\tif ( typeof type !== \"string\" ) {\r\n\t\t\tobj = type;\r\n\t\t\ttype = undefined;\r\n\t\t}\r\n\t\ttype = type || \"fx\";\r\n\r\n\t\twhile ( i-- ) {\r\n\t\t\ttmp = dataPriv.get( elements[ i ], type + \"queueHooks\" );\r\n\t\t\tif ( tmp && tmp.empty ) {\r\n\t\t\t\tcount++;\r\n\t\t\t\ttmp.empty.add( resolve );\r\n\t\t\t}\r\n\t\t}\r\n\t\tresolve();\r\n\t\treturn defer.promise( obj );\r\n\t}\r\n} );\r\nvar pnum = ( /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/ ).source;\r\n\r\nvar rcssNum = new RegExp( \"^(?:([+-])=|)(\" + pnum + \")([a-z%]*)$\", \"i\" );\r\n\r\n\r\nvar cssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ];\r\n\r\nvar isHiddenWithinTree = function( elem, el ) {\r\n\r\n\t\t// isHiddenWithinTree might be called from jQuery#filter function;\r\n\t\t// in that case, element will be second argument\r\n\t\telem = el || elem;\r\n\r\n\t\t// Inline style trumps all\r\n\t\treturn elem.style.display === \"none\" ||\r\n\t\t\telem.style.display === \"\" &&\r\n\r\n\t\t\t// Otherwise, check computed style\r\n\t\t\t// Support: Firefox <=43 - 45\r\n\t\t\t// Disconnected elements can have computed display: none, so first confirm that elem is\r\n\t\t\t// in the document.\r\n\t\t\tjQuery.contains( elem.ownerDocument, elem ) &&\r\n\r\n\t\t\tjQuery.css( elem, \"display\" ) === \"none\";\r\n\t};\r\n\r\nvar swap = function( elem, options, callback, args ) {\r\n\tvar ret, name,\r\n\t\told = {};\r\n\r\n\t// Remember the old values, and insert the new ones\r\n\tfor ( name in options ) {\r\n\t\told[ name ] = elem.style[ name ];\r\n\t\telem.style[ name ] = options[ name ];\r\n\t}\r\n\r\n\tret = callback.apply( elem, args || [] );\r\n\r\n\t// Revert the old values\r\n\tfor ( name in options ) {\r\n\t\telem.style[ name ] = old[ name ];\r\n\t}\r\n\r\n\treturn ret;\r\n};\r\n\r\n\r\n\r\n\r\nfunction adjustCSS( elem, prop, valueParts, tween ) {\r\n\tvar adjusted,\r\n\t\tscale = 1,\r\n\t\tmaxIterations = 20,\r\n\t\tcurrentValue = tween ?\r\n\t\t\tfunction() {\r\n\t\t\t\treturn tween.cur();\r\n\t\t\t} :\r\n\t\t\tfunction() {\r\n\t\t\t\treturn jQuery.css( elem, prop, \"\" );\r\n\t\t\t},\r\n\t\tinitial = currentValue(),\r\n\t\tunit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" ),\r\n\r\n\t\t// Starting value computation is required for potential unit mismatches\r\n\t\tinitialInUnit = ( jQuery.cssNumber[ prop ] || unit !== \"px\" && +initial ) &&\r\n\t\t\trcssNum.exec( jQuery.css( elem, prop ) );\r\n\r\n\tif ( initialInUnit && initialInUnit[ 3 ] !== unit ) {\r\n\r\n\t\t// Trust units reported by jQuery.css\r\n\t\tunit = unit || initialInUnit[ 3 ];\r\n\r\n\t\t// Make sure we update the tween properties later on\r\n\t\tvalueParts = valueParts || [];\r\n\r\n\t\t// Iteratively approximate from a nonzero starting point\r\n\t\tinitialInUnit = +initial || 1;\r\n\r\n\t\tdo {\r\n\r\n\t\t\t// If previous iteration zeroed out, double until we get *something*.\r\n\t\t\t// Use string for doubling so we don't accidentally see scale as unchanged below\r\n\t\t\tscale = scale || \".5\";\r\n\r\n\t\t\t// Adjust and apply\r\n\t\t\tinitialInUnit = initialInUnit / scale;\r\n\t\t\tjQuery.style( elem, prop, initialInUnit + unit );\r\n\r\n\t\t// Update scale, tolerating zero or NaN from tween.cur()\r\n\t\t// Break the loop if scale is unchanged or perfect, or if we've just had enough.\r\n\t\t} while (\r\n\t\t\tscale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations\r\n\t\t);\r\n\t}\r\n\r\n\tif ( valueParts ) {\r\n\t\tinitialInUnit = +initialInUnit || +initial || 0;\r\n\r\n\t\t// Apply relative offset (+=/-=) if specified\r\n\t\tadjusted = valueParts[ 1 ] ?\r\n\t\t\tinitialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :\r\n\t\t\t+valueParts[ 2 ];\r\n\t\tif ( tween ) {\r\n\t\t\ttween.unit = unit;\r\n\t\t\ttween.start = initialInUnit;\r\n\t\t\ttween.end = adjusted;\r\n\t\t}\r\n\t}\r\n\treturn adjusted;\r\n}\r\n\r\n\r\nvar defaultDisplayMap = {};\r\n\r\nfunction getDefaultDisplay( elem ) {\r\n\tvar temp,\r\n\t\tdoc = elem.ownerDocument,\r\n\t\tnodeName = elem.nodeName,\r\n\t\tdisplay = defaultDisplayMap[ nodeName ];\r\n\r\n\tif ( display ) {\r\n\t\treturn display;\r\n\t}\r\n\r\n\ttemp = doc.body.appendChild( doc.createElement( nodeName ) ),\r\n\tdisplay = jQuery.css( temp, \"display\" );\r\n\r\n\ttemp.parentNode.removeChild( temp );\r\n\r\n\tif ( display === \"none\" ) {\r\n\t\tdisplay = \"block\";\r\n\t}\r\n\tdefaultDisplayMap[ nodeName ] = display;\r\n\r\n\treturn display;\r\n}\r\n\r\nfunction showHide( elements, show ) {\r\n\tvar display, elem,\r\n\t\tvalues = [],\r\n\t\tindex = 0,\r\n\t\tlength = elements.length;\r\n\r\n\t// Determine new display value for elements that need to change\r\n\tfor ( ; index < length; index++ ) {\r\n\t\telem = elements[ index ];\r\n\t\tif ( !elem.style ) {\r\n\t\t\tcontinue;\r\n\t\t}\r\n\r\n\t\tdisplay = elem.style.display;\r\n\t\tif ( show ) {\r\n\r\n\t\t\t// Since we force visibility upon cascade-hidden elements, an immediate (and slow)\r\n\t\t\t// check is required in this first loop unless we have a nonempty display value (either\r\n\t\t\t// inline or about-to-be-restored)\r\n\t\t\tif ( display === \"none\" ) {\r\n\t\t\t\tvalues[ index ] = dataPriv.get( elem, \"display\" ) || null;\r\n\t\t\t\tif ( !values[ index ] ) {\r\n\t\t\t\t\telem.style.display = \"\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ( elem.style.display === \"\" && isHiddenWithinTree( elem ) ) {\r\n\t\t\t\tvalues[ index ] = getDefaultDisplay( elem );\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif ( display !== \"none\" ) {\r\n\t\t\t\tvalues[ index ] = \"none\";\r\n\r\n\t\t\t\t// Remember what we're overwriting\r\n\t\t\t\tdataPriv.set( elem, \"display\", display );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// Set the display of the elements in a second loop to avoid constant reflow\r\n\tfor ( index = 0; index < length; index++ ) {\r\n\t\tif ( values[ index ] != null ) {\r\n\t\t\telements[ index ].style.display = values[ index ];\r\n\t\t}\r\n\t}\r\n\r\n\treturn elements;\r\n}\r\n\r\njQuery.fn.extend( {\r\n\tshow: function() {\r\n\t\treturn showHide( this, true );\r\n\t},\r\n\thide: function() {\r\n\t\treturn showHide( this );\r\n\t},\r\n\ttoggle: function( state ) {\r\n\t\tif ( typeof state === \"boolean\" ) {\r\n\t\t\treturn state ? this.show() : this.hide();\r\n\t\t}\r\n\r\n\t\treturn this.each( function() {\r\n\t\t\tif ( isHiddenWithinTree( this ) ) {\r\n\t\t\t\tjQuery( this ).show();\r\n\t\t\t} else {\r\n\t\t\t\tjQuery( this ).hide();\r\n\t\t\t}\r\n\t\t} );\r\n\t}\r\n} );\r\nvar rcheckableType = ( /^(?:checkbox|radio)$/i );\r\n\r\nvar rtagName = ( /<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]+)/i );\r\n\r\nvar rscriptType = ( /^$|\\/(?:java|ecma)script/i );\r\n\r\n\r\n\r\n// We have to close these tags to support XHTML (#13200)\r\nvar wrapMap = {\r\n\r\n\t// Support: IE <=9 only\r\n\toption: [ 1, \"<select multiple='multiple'>\", \"</select>\" ],\r\n\r\n\t// XHTML parsers do not magically insert elements in the\r\n\t// same way that tag soup parsers do. So we cannot shorten\r\n\t// this by omitting <tbody> or other required elements.\r\n\tthead: [ 1, \"<table>\", \"</table>\" ],\r\n\tcol: [ 2, \"<table><colgroup>\", \"</colgroup></table>\" ],\r\n\ttr: [ 2, \"<table><tbody>\", \"</tbody></table>\" ],\r\n\ttd: [ 3, \"<table><tbody><tr>\", \"</tr></tbody></table>\" ],\r\n\r\n\t_default: [ 0, \"\", \"\" ]\r\n};\r\n\r\n// Support: IE <=9 only\r\nwrapMap.optgroup = wrapMap.option;\r\n\r\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\r\nwrapMap.th = wrapMap.td;\r\n\r\n\r\nfunction getAll( context, tag ) {\r\n\r\n\t// Support: IE <=9 - 11 only\r\n\t// Use typeof to avoid zero-argument method invocation on host objects (#15151)\r\n\tvar ret = typeof context.getElementsByTagName !== \"undefined\" ?\r\n\t\t\tcontext.getElementsByTagName( tag || \"*\" ) :\r\n\t\t\ttypeof context.querySelectorAll !== \"undefined\" ?\r\n\t\t\t\tcontext.querySelectorAll( tag || \"*\" ) :\r\n\t\t\t[];\r\n\r\n\treturn tag === undefined || tag && jQuery.nodeName( context, tag ) ?\r\n\t\tjQuery.merge( [ context ], ret ) :\r\n\t\tret;\r\n}\r\n\r\n\r\n// Mark scripts as having already been evaluated\r\nfunction setGlobalEval( elems, refElements ) {\r\n\tvar i = 0,\r\n\t\tl = elems.length;\r\n\r\n\tfor ( ; i < l; i++ ) {\r\n\t\tdataPriv.set(\r\n\t\t\telems[ i ],\r\n\t\t\t\"globalEval\",\r\n\t\t\t!refElements || dataPriv.get( refElements[ i ], \"globalEval\" )\r\n\t\t);\r\n\t}\r\n}\r\n\r\n\r\nvar rhtml = /<|&#?\\w+;/;\r\n\r\nfunction buildFragment( elems, context, scripts, selection, ignored ) {\r\n\tvar elem, tmp, tag, wrap, contains, j,\r\n\t\tfragment = context.createDocumentFragment(),\r\n\t\tnodes = [],\r\n\t\ti = 0,\r\n\t\tl = elems.length;\r\n\r\n\tfor ( ; i < l; i++ ) {\r\n\t\telem = elems[ i ];\r\n\r\n\t\tif ( elem || elem === 0 ) {\r\n\r\n\t\t\t// Add nodes directly\r\n\t\t\tif ( jQuery.type( elem ) === \"object\" ) {\r\n\r\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\r\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\r\n\t\t\t\tjQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );\r\n\r\n\t\t\t// Convert non-html into a text node\r\n\t\t\t} else if ( !rhtml.test( elem ) ) {\r\n\t\t\t\tnodes.push( context.createTextNode( elem ) );\r\n\r\n\t\t\t// Convert html into DOM nodes\r\n\t\t\t} else {\r\n\t\t\t\ttmp = tmp || fragment.appendChild( context.createElement( \"div\" ) );\r\n\r\n\t\t\t\t// Deserialize a standard representation\r\n\t\t\t\ttag = ( rtagName.exec( elem ) || [ \"\", \"\" ] )[ 1 ].toLowerCase();\r\n\t\t\t\twrap = wrapMap[ tag ] || wrapMap._default;\r\n\t\t\t\ttmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];\r\n\r\n\t\t\t\t// Descend through wrappers to the right content\r\n\t\t\t\tj = wrap[ 0 ];\r\n\t\t\t\twhile ( j-- ) {\r\n\t\t\t\t\ttmp = tmp.lastChild;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\r\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\r\n\t\t\t\tjQuery.merge( nodes, tmp.childNodes );\r\n\r\n\t\t\t\t// Remember the top-level container\r\n\t\t\t\ttmp = fragment.firstChild;\r\n\r\n\t\t\t\t// Ensure the created nodes are orphaned (#12392)\r\n\t\t\t\ttmp.textContent = \"\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// Remove wrapper from fragment\r\n\tfragment.textContent = \"\";\r\n\r\n\ti = 0;\r\n\twhile ( ( elem = nodes[ i++ ] ) ) {\r\n\r\n\t\t// Skip elements already in the context collection (trac-4087)\r\n\t\tif ( selection && jQuery.inArray( elem, selection ) > -1 ) {\r\n\t\t\tif ( ignored ) {\r\n\t\t\t\tignored.push( elem );\r\n\t\t\t}\r\n\t\t\tcontinue;\r\n\t\t}\r\n\r\n\t\tcontains = jQuery.contains( elem.ownerDocument, elem );\r\n\r\n\t\t// Append to fragment\r\n\t\ttmp = getAll( fragment.appendChild( elem ), \"script\" );\r\n\r\n\t\t// Preserve script evaluation history\r\n\t\tif ( contains ) {\r\n\t\t\tsetGlobalEval( tmp );\r\n\t\t}\r\n\r\n\t\t// Capture executables\r\n\t\tif ( scripts ) {\r\n\t\t\tj = 0;\r\n\t\t\twhile ( ( elem = tmp[ j++ ] ) ) {\r\n\t\t\t\tif ( rscriptType.test( elem.type || \"\" ) ) {\r\n\t\t\t\t\tscripts.push( elem );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn fragment;\r\n}\r\n\r\n\r\n( function() {\r\n\tvar fragment = document.createDocumentFragment(),\r\n\t\tdiv = fragment.appendChild( document.createElement( \"div\" ) ),\r\n\t\tinput = document.createElement( \"input\" );\r\n\r\n\t// Support: Android 4.0 - 4.3 only\r\n\t// Check state lost if the name is set (#11217)\r\n\t// Support: Windows Web Apps (WWA)\r\n\t// `name` and `type` must use .setAttribute for WWA (#14901)\r\n\tinput.setAttribute( \"type\", \"radio\" );\r\n\tinput.setAttribute( \"checked\", \"checked\" );\r\n\tinput.setAttribute( \"name\", \"t\" );\r\n\r\n\tdiv.appendChild( input );\r\n\r\n\t// Support: Android <=4.1 only\r\n\t// Older WebKit doesn't clone checked state correctly in fragments\r\n\tsupport.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;\r\n\r\n\t// Support: IE <=11 only\r\n\t// Make sure textarea (and checkbox) defaultValue is properly cloned\r\n\tdiv.innerHTML = \"<textarea>x</textarea>\";\r\n\tsupport.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;\r\n} )();\r\nvar documentElement = document.documentElement;\r\n\r\n\r\n\r\nvar\r\n\trkeyEvent = /^key/,\r\n\trmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,\r\n\trtypenamespace = /^([^.]*)(?:\\.(.+)|)/;\r\n\r\nfunction returnTrue() {\r\n\treturn true;\r\n}\r\n\r\nfunction returnFalse() {\r\n\treturn false;\r\n}\r\n\r\n// Support: IE <=9 only\r\n// See #13393 for more info\r\nfunction safeActiveElement() {\r\n\ttry {\r\n\t\treturn document.activeElement;\r\n\t} catch ( err ) { }\r\n}\r\n\r\nfunction on( elem, types, selector, data, fn, one ) {\r\n\tvar origFn, type;\r\n\r\n\t// Types can be a map of types/handlers\r\n\tif ( typeof types === \"object\" ) {\r\n\r\n\t\t// ( types-Object, selector, data )\r\n\t\tif ( typeof selector !== \"string\" ) {\r\n\r\n\t\t\t// ( types-Object, data )\r\n\t\t\tdata = data || selector;\r\n\t\t\tselector = undefined;\r\n\t\t}\r\n\t\tfor ( type in types ) {\r\n\t\t\ton( elem, type, selector, data, types[ type ], one );\r\n\t\t}\r\n\t\treturn elem;\r\n\t}\r\n\r\n\tif ( data == null && fn == null ) {\r\n\r\n\t\t// ( types, fn )\r\n\t\tfn = selector;\r\n\t\tdata = selector = undefined;\r\n\t} else if ( fn == null ) {\r\n\t\tif ( typeof selector === \"string\" ) {\r\n\r\n\t\t\t// ( types, selector, fn )\r\n\t\t\tfn = data;\r\n\t\t\tdata = undefined;\r\n\t\t} else {\r\n\r\n\t\t\t// ( types, data, fn )\r\n\t\t\tfn = data;\r\n\t\t\tdata = selector;\r\n\t\t\tselector = undefined;\r\n\t\t}\r\n\t}\r\n\tif ( fn === false ) {\r\n\t\tfn = returnFalse;\r\n\t} else if ( !fn ) {\r\n\t\treturn elem;\r\n\t}\r\n\r\n\tif ( one === 1 ) {\r\n\t\torigFn = fn;\r\n\t\tfn = function( event ) {\r\n\r\n\t\t\t// Can use an empty set, since event contains the info\r\n\t\t\tjQuery().off( event );\r\n\t\t\treturn origFn.apply( this, arguments );\r\n\t\t};\r\n\r\n\t\t// Use same guid so caller can remove using origFn\r\n\t\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\r\n\t}\r\n\treturn elem.each( function() {\r\n\t\tjQuery.event.add( this, types, fn, data, selector );\r\n\t} );\r\n}\r\n\r\n/*\r\n * Helper functions for managing events -- not part of the public interface.\r\n * Props to Dean Edwards' addEvent library for many of the ideas.\r\n */\r\njQuery.event = {\r\n\r\n\tglobal: {},\r\n\r\n\tadd: function( elem, types, handler, data, selector ) {\r\n\r\n\t\tvar handleObjIn, eventHandle, tmp,\r\n\t\t\tevents, t, handleObj,\r\n\t\t\tspecial, handlers, type, namespaces, origType,\r\n\t\t\telemData = dataPriv.get( elem );\r\n\r\n\t\t// Don't attach events to noData or text/comment nodes (but allow plain objects)\r\n\t\tif ( !elemData ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Caller can pass in an object of custom data in lieu of the handler\r\n\t\tif ( handler.handler ) {\r\n\t\t\thandleObjIn = handler;\r\n\t\t\thandler = handleObjIn.handler;\r\n\t\t\tselector = handleObjIn.selector;\r\n\t\t}\r\n\r\n\t\t// Ensure that invalid selectors throw exceptions at attach time\r\n\t\t// Evaluate against documentElement in case elem is a non-element node (e.g., document)\r\n\t\tif ( selector ) {\r\n\t\t\tjQuery.find.matchesSelector( documentElement, selector );\r\n\t\t}\r\n\r\n\t\t// Make sure that the handler has a unique ID, used to find/remove it later\r\n\t\tif ( !handler.guid ) {\r\n\t\t\thandler.guid = jQuery.guid++;\r\n\t\t}\r\n\r\n\t\t// Init the element's event structure and main handler, if this is the first\r\n\t\tif ( !( events = elemData.events ) ) {\r\n\t\t\tevents = elemData.events = {};\r\n\t\t}\r\n\t\tif ( !( eventHandle = elemData.handle ) ) {\r\n\t\t\teventHandle = elemData.handle = function( e ) {\r\n\r\n\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\r\n\t\t\t\t// when an event is called after a page has unloaded\r\n\t\t\t\treturn typeof jQuery !== \"undefined\" && jQuery.event.triggered !== e.type ?\r\n\t\t\t\t\tjQuery.event.dispatch.apply( elem, arguments ) : undefined;\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\t// Handle multiple events separated by a space\r\n\t\ttypes = ( types || \"\" ).match( rnotwhite ) || [ \"\" ];\r\n\t\tt = types.length;\r\n\t\twhile ( t-- ) {\r\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\r\n\t\t\ttype = origType = tmp[ 1 ];\r\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\r\n\r\n\t\t\t// There *must* be a type, no attaching namespace-only handlers\r\n\t\t\tif ( !type ) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// If event changes its type, use the special event handlers for the changed type\r\n\t\t\tspecial = jQuery.event.special[ type ] || {};\r\n\r\n\t\t\t// If selector defined, determine special event api type, otherwise given type\r\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\r\n\r\n\t\t\t// Update special based on newly reset type\r\n\t\t\tspecial = jQuery.event.special[ type ] || {};\r\n\r\n\t\t\t// handleObj is passed to all event handlers\r\n\t\t\thandleObj = jQuery.extend( {\r\n\t\t\t\ttype: type,\r\n\t\t\t\torigType: origType,\r\n\t\t\t\tdata: data,\r\n\t\t\t\thandler: handler,\r\n\t\t\t\tguid: handler.guid,\r\n\t\t\t\tselector: selector,\r\n\t\t\t\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\r\n\t\t\t\tnamespace: namespaces.join( \".\" )\r\n\t\t\t}, handleObjIn );\r\n\r\n\t\t\t// Init the event handler queue if we're the first\r\n\t\t\tif ( !( handlers = events[ type ] ) ) {\r\n\t\t\t\thandlers = events[ type ] = [];\r\n\t\t\t\thandlers.delegateCount = 0;\r\n\r\n\t\t\t\t// Only use addEventListener if the special events handler returns false\r\n\t\t\t\tif ( !special.setup ||\r\n\t\t\t\t\tspecial.setup.call( elem, data, namespaces, eventHandle ) === false ) {\r\n\r\n\t\t\t\t\tif ( elem.addEventListener ) {\r\n\t\t\t\t\t\telem.addEventListener( type, eventHandle );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( special.add ) {\r\n\t\t\t\tspecial.add.call( elem, handleObj );\r\n\r\n\t\t\t\tif ( !handleObj.handler.guid ) {\r\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Add to the element's handler list, delegates in front\r\n\t\t\tif ( selector ) {\r\n\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\r\n\t\t\t} else {\r\n\t\t\t\thandlers.push( handleObj );\r\n\t\t\t}\r\n\r\n\t\t\t// Keep track of which events have ever been used, for event optimization\r\n\t\t\tjQuery.event.global[ type ] = true;\r\n\t\t}\r\n\r\n\t},\r\n\r\n\t// Detach an event or set of events from an element\r\n\tremove: function( elem, types, handler, selector, mappedTypes ) {\r\n\r\n\t\tvar j, origCount, tmp,\r\n\t\t\tevents, t, handleObj,\r\n\t\t\tspecial, handlers, type, namespaces, origType,\r\n\t\t\telemData = dataPriv.hasData( elem ) && dataPriv.get( elem );\r\n\r\n\t\tif ( !elemData || !( events = elemData.events ) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Once for each type.namespace in types; type may be omitted\r\n\t\ttypes = ( types || \"\" ).match( rnotwhite ) || [ \"\" ];\r\n\t\tt = types.length;\r\n\t\twhile ( t-- ) {\r\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\r\n\t\t\ttype = origType = tmp[ 1 ];\r\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\r\n\r\n\t\t\t// Unbind all events (on this namespace, if provided) for the element\r\n\t\t\tif ( !type ) {\r\n\t\t\t\tfor ( type in events ) {\r\n\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tspecial = jQuery.event.special[ type ] || {};\r\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\r\n\t\t\thandlers = events[ type ] || [];\r\n\t\t\ttmp = tmp[ 2 ] &&\r\n\t\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" );\r\n\r\n\t\t\t// Remove matching events\r\n\t\t\torigCount = j = handlers.length;\r\n\t\t\twhile ( j-- ) {\r\n\t\t\t\thandleObj = handlers[ j ];\r\n\r\n\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\r\n\t\t\t\t\t( !handler || handler.guid === handleObj.guid ) &&\r\n\t\t\t\t\t( !tmp || tmp.test( handleObj.namespace ) ) &&\r\n\t\t\t\t\t( !selector || selector === handleObj.selector ||\r\n\t\t\t\t\t\tselector === \"**\" && handleObj.selector ) ) {\r\n\t\t\t\t\thandlers.splice( j, 1 );\r\n\r\n\t\t\t\t\tif ( handleObj.selector ) {\r\n\t\t\t\t\t\thandlers.delegateCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( special.remove ) {\r\n\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Remove generic event handler if we removed something and no more handlers exist\r\n\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\r\n\t\t\tif ( origCount && !handlers.length ) {\r\n\t\t\t\tif ( !special.teardown ||\r\n\t\t\t\t\tspecial.teardown.call( elem, namespaces, elemData.handle ) === false ) {\r\n\r\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdelete events[ type ];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Remove data and the expando if it's no longer used\r\n\t\tif ( jQuery.isEmptyObject( events ) ) {\r\n\t\t\tdataPriv.remove( elem, \"handle events\" );\r\n\t\t}\r\n\t},\r\n\r\n\tdispatch: function( nativeEvent ) {\r\n\r\n\t\t// Make a writable jQuery.Event from the native event object\r\n\t\tvar event = jQuery.event.fix( nativeEvent );\r\n\r\n\t\tvar i, j, ret, matched, handleObj, handlerQueue,\r\n\t\t\targs = new Array( arguments.length ),\r\n\t\t\thandlers = ( dataPriv.get( this, \"events\" ) || {} )[ event.type ] || [],\r\n\t\t\tspecial = jQuery.event.special[ event.type ] || {};\r\n\r\n\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\r\n\t\targs[ 0 ] = event;\r\n\r\n\t\tfor ( i = 1; i < arguments.length; i++ ) {\r\n\t\t\targs[ i ] = arguments[ i ];\r\n\t\t}\r\n\r\n\t\tevent.delegateTarget = this;\r\n\r\n\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\r\n\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Determine handlers\r\n\t\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\r\n\r\n\t\t// Run delegates first; they may want to stop propagation beneath us\r\n\t\ti = 0;\r\n\t\twhile ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {\r\n\t\t\tevent.currentTarget = matched.elem;\r\n\r\n\t\t\tj = 0;\r\n\t\t\twhile ( ( handleObj = matched.handlers[ j++ ] ) &&\r\n\t\t\t\t!event.isImmediatePropagationStopped() ) {\r\n\r\n\t\t\t\t// Triggered event must either 1) have no namespace, or 2) have namespace(s)\r\n\t\t\t\t// a subset or equal to those in the bound event (both can have no namespace).\r\n\t\t\t\tif ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {\r\n\r\n\t\t\t\t\tevent.handleObj = handleObj;\r\n\t\t\t\t\tevent.data = handleObj.data;\r\n\r\n\t\t\t\t\tret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||\r\n\t\t\t\t\t\thandleObj.handler ).apply( matched.elem, args );\r\n\r\n\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\tif ( ( event.result = ret ) === false ) {\r\n\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\tevent.stopPropagation();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call the postDispatch hook for the mapped type\r\n\t\tif ( special.postDispatch ) {\r\n\t\t\tspecial.postDispatch.call( this, event );\r\n\t\t}\r\n\r\n\t\treturn event.result;\r\n\t},\r\n\r\n\thandlers: function( event, handlers ) {\r\n\t\tvar i, matches, sel, handleObj,\r\n\t\t\thandlerQueue = [],\r\n\t\t\tdelegateCount = handlers.delegateCount,\r\n\t\t\tcur = event.target;\r\n\r\n\t\t// Support: IE <=9\r\n\t\t// Find delegate handlers\r\n\t\t// Black-hole SVG <use> instance trees (#13180)\r\n\t\t//\r\n\t\t// Support: Firefox <=42\r\n\t\t// Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)\r\n\t\tif ( delegateCount && cur.nodeType &&\r\n\t\t\t( event.type !== \"click\" || isNaN( event.button ) || event.button < 1 ) ) {\r\n\r\n\t\t\tfor ( ; cur !== this; cur = cur.parentNode || this ) {\r\n\r\n\t\t\t\t// Don't check non-elements (#13208)\r\n\t\t\t\t// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)\r\n\t\t\t\tif ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== \"click\" ) ) {\r\n\t\t\t\t\tmatches = [];\r\n\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\r\n\t\t\t\t\t\thandleObj = handlers[ i ];\r\n\r\n\t\t\t\t\t\t// Don't conflict with Object.prototype properties (#13203)\r\n\t\t\t\t\t\tsel = handleObj.selector + \" \";\r\n\r\n\t\t\t\t\t\tif ( matches[ sel ] === undefined ) {\r\n\t\t\t\t\t\t\tmatches[ sel ] = handleObj.needsContext ?\r\n\t\t\t\t\t\t\t\tjQuery( sel, this ).index( cur ) > -1 :\r\n\t\t\t\t\t\t\t\tjQuery.find( sel, this, null, [ cur ] ).length;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ( matches[ sel ] ) {\r\n\t\t\t\t\t\t\tmatches.push( handleObj );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( matches.length ) {\r\n\t\t\t\t\t\thandlerQueue.push( { elem: cur, handlers: matches } );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Add the remaining (directly-bound) handlers\r\n\t\tif ( delegateCount < handlers.length ) {\r\n\t\t\thandlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } );\r\n\t\t}\r\n\r\n\t\treturn handlerQueue;\r\n\t},\r\n\r\n\taddProp: function( name, hook ) {\r\n\t\tObject.defineProperty( jQuery.Event.prototype, name, {\r\n\t\t\tenumerable: true,\r\n\t\t\tconfigurable: true,\r\n\r\n\t\t\tget: jQuery.isFunction( hook ) ?\r\n\t\t\t\tfunction() {\r\n\t\t\t\t\tif ( this.originalEvent ) {\r\n\t\t\t\t\t\t\treturn hook( this.originalEvent );\r\n\t\t\t\t\t}\r\n\t\t\t\t} :\r\n\t\t\t\tfunction() {\r\n\t\t\t\t\tif ( this.originalEvent ) {\r\n\t\t\t\t\t\t\treturn this.originalEvent[ name ];\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\r\n\t\t\tset: function( value ) {\r\n\t\t\t\tObject.defineProperty( this, name, {\r\n\t\t\t\t\tenumerable: true,\r\n\t\t\t\t\tconfigurable: true,\r\n\t\t\t\t\twritable: true,\r\n\t\t\t\t\tvalue: value\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t} );\r\n\t},\r\n\r\n\tfix: function( originalEvent ) {\r\n\t\treturn originalEvent[ jQuery.expando ] ?\r\n\t\t\toriginalEvent :\r\n\t\t\tnew jQuery.Event( originalEvent );\r\n\t},\r\n\r\n\tspecial: {\r\n\t\tload: {\r\n\r\n\t\t\t// Prevent triggered image.load events from bubbling to window.load\r\n\t\t\tnoBubble: true\r\n\t\t},\r\n\t\tfocus: {\r\n\r\n\t\t\t// Fire native event if possible so blur/focus sequence is correct\r\n\t\t\ttrigger: function() {\r\n\t\t\t\tif ( this !== safeActiveElement() && this.focus ) {\r\n\t\t\t\t\tthis.focus();\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tdelegateType: \"focusin\"\r\n\t\t},\r\n\t\tblur: {\r\n\t\t\ttrigger: function() {\r\n\t\t\t\tif ( this === safeActiveElement() && this.blur ) {\r\n\t\t\t\t\tthis.blur();\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tdelegateType: \"focusout\"\r\n\t\t},\r\n\t\tclick: {\r\n\r\n\t\t\t// For checkbox, fire native event so checked state will be right\r\n\t\t\ttrigger: function() {\r\n\t\t\t\tif ( this.type === \"checkbox\" && this.click && jQuery.nodeName( this, \"input\" ) ) {\r\n\t\t\t\t\tthis.click();\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\r\n\t\t\t// For cross-browser consistency, don't fire native .click() on links\r\n\t\t\t_default: function( event ) {\r\n\t\t\t\treturn jQuery.nodeName( event.target, \"a\" );\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tbeforeunload: {\r\n\t\t\tpostDispatch: function( event ) {\r\n\r\n\t\t\t\t// Support: Firefox 20+\r\n\t\t\t\t// Firefox doesn't alert if the returnValue field is not set.\r\n\t\t\t\tif ( event.result !== undefined && event.originalEvent ) {\r\n\t\t\t\t\tevent.originalEvent.returnValue = event.result;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\njQuery.removeEvent = function( elem, type, handle ) {\r\n\r\n\t// This \"if\" is needed for plain objects\r\n\tif ( elem.removeEventListener ) {\r\n\t\telem.removeEventListener( type, handle );\r\n\t}\r\n};\r\n\r\njQuery.Event = function( src, props ) {\r\n\r\n\t// Allow instantiation without the 'new' keyword\r\n\tif ( !( this instanceof jQuery.Event ) ) {\r\n\t\treturn new jQuery.Event( src, props );\r\n\t}\r\n\r\n\t// Event object\r\n\tif ( src && src.type ) {\r\n\t\tthis.originalEvent = src;\r\n\t\tthis.type = src.type;\r\n\r\n\t\t// Events bubbling up the document may have been marked as prevented\r\n\t\t// by a handler lower down the tree; reflect the correct value.\r\n\t\tthis.isDefaultPrevented = src.defaultPrevented ||\r\n\t\t\t\tsrc.defaultPrevented === undefined &&\r\n\r\n\t\t\t\t// Support: Android <=2.3 only\r\n\t\t\t\tsrc.returnValue === false ?\r\n\t\t\treturnTrue :\r\n\t\t\treturnFalse;\r\n\r\n\t\t// Create target properties\r\n\t\t// Support: Safari <=6 - 7 only\r\n\t\t// Target should not be a text node (#504, #13143)\r\n\t\tthis.target = ( src.target && src.target.nodeType === 3 ) ?\r\n\t\t\tsrc.target.parentNode :\r\n\t\t\tsrc.target;\r\n\r\n\t\tthis.currentTarget = src.currentTarget;\r\n\t\tthis.relatedTarget = src.relatedTarget;\r\n\r\n\t// Event type\r\n\t} else {\r\n\t\tthis.type = src;\r\n\t}\r\n\r\n\t// Put explicitly provided properties onto the event object\r\n\tif ( props ) {\r\n\t\tjQuery.extend( this, props );\r\n\t}\r\n\r\n\t// Create a timestamp if incoming event doesn't have one\r\n\tthis.timeStamp = src && src.timeStamp || jQuery.now();\r\n\r\n\t// Mark it as fixed\r\n\tthis[ jQuery.expando ] = true;\r\n};\r\n\r\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\r\n// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\r\njQuery.Event.prototype = {\r\n\tconstructor: jQuery.Event,\r\n\tisDefaultPrevented: returnFalse,\r\n\tisPropagationStopped: returnFalse,\r\n\tisImmediatePropagationStopped: returnFalse,\r\n\tisSimulated: false,\r\n\r\n\tpreventDefault: function() {\r\n\t\tvar e = this.originalEvent;\r\n\r\n\t\tthis.isDefaultPrevented = returnTrue;\r\n\r\n\t\tif ( e && !this.isSimulated ) {\r\n\t\t\te.preventDefault();\r\n\t\t}\r\n\t},\r\n\tstopPropagation: function() {\r\n\t\tvar e = this.originalEvent;\r\n\r\n\t\tthis.isPropagationStopped = returnTrue;\r\n\r\n\t\tif ( e && !this.isSimulated ) {\r\n\t\t\te.stopPropagation();\r\n\t\t}\r\n\t},\r\n\tstopImmediatePropagation: function() {\r\n\t\tvar e = this.originalEvent;\r\n\r\n\t\tthis.isImmediatePropagationStopped = returnTrue;\r\n\r\n\t\tif ( e && !this.isSimulated ) {\r\n\t\t\te.stopImmediatePropagation();\r\n\t\t}\r\n\r\n\t\tthis.stopPropagation();\r\n\t}\r\n};\r\n\r\n// Includes all common event props including KeyEvent and MouseEvent specific props\r\njQuery.each( {\r\n\taltKey: true,\r\n\tbubbles: true,\r\n\tcancelable: true,\r\n\tchangedTouches: true,\r\n\tctrlKey: true,\r\n\tdetail: true,\r\n\teventPhase: true,\r\n\tmetaKey: true,\r\n\tpageX: true,\r\n\tpageY: true,\r\n\tshiftKey: true,\r\n\tview: true,\r\n\t\"char\": true,\r\n\tcharCode: true,\r\n\tkey: true,\r\n\tkeyCode: true,\r\n\tbutton: true,\r\n\tbuttons: true,\r\n\tclientX: true,\r\n\tclientY: true,\r\n\toffsetX: true,\r\n\toffsetY: true,\r\n\tpointerId: true,\r\n\tpointerType: true,\r\n\tscreenX: true,\r\n\tscreenY: true,\r\n\ttargetTouches: true,\r\n\ttoElement: true,\r\n\ttouches: true,\r\n\r\n\twhich: function( event ) {\r\n\t\tvar button = event.button;\r\n\r\n\t\t// Add which for key events\r\n\t\tif ( event.which == null && rkeyEvent.test( event.type ) ) {\r\n\t\t\treturn event.charCode != null ? event.charCode : event.keyCode;\r\n\t\t}\r\n\r\n\t\t// Add which for click: 1 === left; 2 === middle; 3 === right\r\n\t\tif ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {\r\n\t\t\treturn ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );\r\n\t\t}\r\n\r\n\t\treturn event.which;\r\n\t}\r\n}, jQuery.event.addProp );\r\n\r\n// Create mouseenter/leave events using mouseover/out and event-time checks\r\n// so that event delegation works in jQuery.\r\n// Do the same for pointerenter/pointerleave and pointerover/pointerout\r\n//\r\n// Support: Safari 7 only\r\n// Safari sends mouseenter too often; see:\r\n// https://bugs.chromium.org/p/chromium/issues/detail?id=470258\r\n// for the description of the bug (it existed in older Chrome versions as well).\r\njQuery.each( {\r\n\tmouseenter: \"mouseover\",\r\n\tmouseleave: \"mouseout\",\r\n\tpointerenter: \"pointerover\",\r\n\tpointerleave: \"pointerout\"\r\n}, function( orig, fix ) {\r\n\tjQuery.event.special[ orig ] = {\r\n\t\tdelegateType: fix,\r\n\t\tbindType: fix,\r\n\r\n\t\thandle: function( event ) {\r\n\t\t\tvar ret,\r\n\t\t\t\ttarget = this,\r\n\t\t\t\trelated = event.relatedTarget,\r\n\t\t\t\thandleObj = event.handleObj;\r\n\r\n\t\t\t// For mouseenter/leave call the handler if related is outside the target.\r\n\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\r\n\t\t\tif ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {\r\n\t\t\t\tevent.type = handleObj.origType;\r\n\t\t\t\tret = handleObj.handler.apply( this, arguments );\r\n\t\t\t\tevent.type = fix;\r\n\t\t\t}\r\n\t\t\treturn ret;\r\n\t\t}\r\n\t};\r\n} );\r\n\r\njQuery.fn.extend( {\r\n\r\n\ton: function( types, selector, data, fn ) {\r\n\t\treturn on( this, types, selector, data, fn );\r\n\t},\r\n\tone: function( types, selector, data, fn ) {\r\n\t\treturn on( this, types, selector, data, fn, 1 );\r\n\t},\r\n\toff: function( types, selector, fn ) {\r\n\t\tvar handleObj, type;\r\n\t\tif ( types && types.preventDefault && types.handleObj ) {\r\n\r\n\t\t\t// ( event )  dispatched jQuery.Event\r\n\t\t\thandleObj = types.handleObj;\r\n\t\t\tjQuery( types.delegateTarget ).off(\r\n\t\t\t\thandleObj.namespace ?\r\n\t\t\t\t\thandleObj.origType + \".\" + handleObj.namespace :\r\n\t\t\t\t\thandleObj.origType,\r\n\t\t\t\thandleObj.selector,\r\n\t\t\t\thandleObj.handler\r\n\t\t\t);\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\tif ( typeof types === \"object\" ) {\r\n\r\n\t\t\t// ( types-object [, selector] )\r\n\t\t\tfor ( type in types ) {\r\n\t\t\t\tthis.off( type, selector, types[ type ] );\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t}\r\n\t\tif ( selector === false || typeof selector === \"function\" ) {\r\n\r\n\t\t\t// ( types [, fn] )\r\n\t\t\tfn = selector;\r\n\t\t\tselector = undefined;\r\n\t\t}\r\n\t\tif ( fn === false ) {\r\n\t\t\tfn = returnFalse;\r\n\t\t}\r\n\t\treturn this.each( function() {\r\n\t\t\tjQuery.event.remove( this, types, fn, selector );\r\n\t\t} );\r\n\t}\r\n} );\r\n\r\n\r\nvar\r\n\r\n\t/* eslint-disable max-len */\r\n\r\n\t// See https://github.com/eslint/eslint/issues/3229\r\n\trxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi,\r\n\r\n\t/* eslint-enable */\r\n\r\n\t// Support: IE <=10 - 11, Edge 12 - 13\r\n\t// In IE/Edge using regex groups here causes severe slowdowns.\r\n\t// See https://connect.microsoft.com/IE/feedback/details/1736512/\r\n\trnoInnerhtml = /<script|<style|<link/i,\r\n\r\n\t// checked=\"checked\" or checked\r\n\trchecked = /checked\\s*(?:[^=]|=\\s*.checked.)/i,\r\n\trscriptTypeMasked = /^true\\/(.*)/,\r\n\trcleanScript = /^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g;\r\n\r\nfunction manipulationTarget( elem, content ) {\r\n\tif ( jQuery.nodeName( elem, \"table\" ) &&\r\n\t\tjQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, \"tr\" ) ) {\r\n\r\n\t\treturn elem.getElementsByTagName( \"tbody\" )[ 0 ] || elem;\r\n\t}\r\n\r\n\treturn elem;\r\n}\r\n\r\n// Replace/restore the type attribute of script elements for safe DOM manipulation\r\nfunction disableScript( elem ) {\r\n\telem.type = ( elem.getAttribute( \"type\" ) !== null ) + \"/\" + elem.type;\r\n\treturn elem;\r\n}\r\nfunction restoreScript( elem ) {\r\n\tvar match = rscriptTypeMasked.exec( elem.type );\r\n\r\n\tif ( match ) {\r\n\t\telem.type = match[ 1 ];\r\n\t} else {\r\n\t\telem.removeAttribute( \"type\" );\r\n\t}\r\n\r\n\treturn elem;\r\n}\r\n\r\nfunction cloneCopyEvent( src, dest ) {\r\n\tvar i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;\r\n\r\n\tif ( dest.nodeType !== 1 ) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t// 1. Copy private data: events, handlers, etc.\r\n\tif ( dataPriv.hasData( src ) ) {\r\n\t\tpdataOld = dataPriv.access( src );\r\n\t\tpdataCur = dataPriv.set( dest, pdataOld );\r\n\t\tevents = pdataOld.events;\r\n\r\n\t\tif ( events ) {\r\n\t\t\tdelete pdataCur.handle;\r\n\t\t\tpdataCur.events = {};\r\n\r\n\t\t\tfor ( type in events ) {\r\n\t\t\t\tfor ( i = 0, l = events[ type ].length; i < l; i++ ) {\r\n\t\t\t\t\tjQuery.event.add( dest, type, events[ type ][ i ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// 2. Copy user data\r\n\tif ( dataUser.hasData( src ) ) {\r\n\t\tudataOld = dataUser.access( src );\r\n\t\tudataCur = jQuery.extend( {}, udataOld );\r\n\r\n\t\tdataUser.set( dest, udataCur );\r\n\t}\r\n}\r\n\r\n// Fix IE bugs, see support tests\r\nfunction fixInput( src, dest ) {\r\n\tvar nodeName = dest.nodeName.toLowerCase();\r\n\r\n\t// Fails to persist the checked state of a cloned checkbox or radio button.\r\n\tif ( nodeName === \"input\" && rcheckableType.test( src.type ) ) {\r\n\t\tdest.checked = src.checked;\r\n\r\n\t// Fails to return the selected option to the default selected state when cloning options\r\n\t} else if ( nodeName === \"input\" || nodeName === \"textarea\" ) {\r\n\t\tdest.defaultValue = src.defaultValue;\r\n\t}\r\n}\r\n\r\nfunction domManip( collection, args, callback, ignored ) {\r\n\r\n\t// Flatten any nested arrays\r\n\targs = concat.apply( [], args );\r\n\r\n\tvar fragment, first, scripts, hasScripts, node, doc,\r\n\t\ti = 0,\r\n\t\tl = collection.length,\r\n\t\tiNoClone = l - 1,\r\n\t\tvalue = args[ 0 ],\r\n\t\tisFunction = jQuery.isFunction( value );\r\n\r\n\t// We can't cloneNode fragments that contain checked, in WebKit\r\n\tif ( isFunction ||\r\n\t\t\t( l > 1 && typeof value === \"string\" &&\r\n\t\t\t\t!support.checkClone && rchecked.test( value ) ) ) {\r\n\t\treturn collection.each( function( index ) {\r\n\t\t\tvar self = collection.eq( index );\r\n\t\t\tif ( isFunction ) {\r\n\t\t\t\targs[ 0 ] = value.call( this, index, self.html() );\r\n\t\t\t}\r\n\t\t\tdomManip( self, args, callback, ignored );\r\n\t\t} );\r\n\t}\r\n\r\n\tif ( l ) {\r\n\t\tfragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );\r\n\t\tfirst = fragment.firstChild;\r\n\r\n\t\tif ( fragment.childNodes.length === 1 ) {\r\n\t\t\tfragment = first;\r\n\t\t}\r\n\r\n\t\t// Require either new content or an interest in ignored elements to invoke the callback\r\n\t\tif ( first || ignored ) {\r\n\t\t\tscripts = jQuery.map( getAll( fragment, \"script\" ), disableScript );\r\n\t\t\thasScripts = scripts.length;\r\n\r\n\t\t\t// Use the original fragment for the last item\r\n\t\t\t// instead of the first because it can end up\r\n\t\t\t// being emptied incorrectly in certain situations (#8070).\r\n\t\t\tfor ( ; i < l; i++ ) {\r\n\t\t\t\tnode = fragment;\r\n\r\n\t\t\t\tif ( i !== iNoClone ) {\r\n\t\t\t\t\tnode = jQuery.clone( node, true, true );\r\n\r\n\t\t\t\t\t// Keep references to cloned scripts for later restoration\r\n\t\t\t\t\tif ( hasScripts ) {\r\n\r\n\t\t\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\r\n\t\t\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\r\n\t\t\t\t\t\tjQuery.merge( scripts, getAll( node, \"script\" ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcallback.call( collection[ i ], node, i );\r\n\t\t\t}\r\n\r\n\t\t\tif ( hasScripts ) {\r\n\t\t\t\tdoc = scripts[ scripts.length - 1 ].ownerDocument;\r\n\r\n\t\t\t\t// Reenable scripts\r\n\t\t\t\tjQuery.map( scripts, restoreScript );\r\n\r\n\t\t\t\t// Evaluate executable scripts on first document insertion\r\n\t\t\t\tfor ( i = 0; i < hasScripts; i++ ) {\r\n\t\t\t\t\tnode = scripts[ i ];\r\n\t\t\t\t\tif ( rscriptType.test( node.type || \"\" ) &&\r\n\t\t\t\t\t\t!dataPriv.access( node, \"globalEval\" ) &&\r\n\t\t\t\t\t\tjQuery.contains( doc, node ) ) {\r\n\r\n\t\t\t\t\t\tif ( node.src ) {\r\n\r\n\t\t\t\t\t\t\t// Optional AJAX dependency, but won't run scripts if not present\r\n\t\t\t\t\t\t\tif ( jQuery._evalUrl ) {\r\n\t\t\t\t\t\t\t\tjQuery._evalUrl( node.src );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tDOMEval( node.textContent.replace( rcleanScript, \"\" ), doc );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn collection;\r\n}\r\n\r\nfunction remove( elem, selector, keepData ) {\r\n\tvar node,\r\n\t\tnodes = selector ? jQuery.filter( selector, elem ) : elem,\r\n\t\ti = 0;\r\n\r\n\tfor ( ; ( node = nodes[ i ] ) != null; i++ ) {\r\n\t\tif ( !keepData && node.nodeType === 1 ) {\r\n\t\t\tjQuery.cleanData( getAll( node ) );\r\n\t\t}\r\n\r\n\t\tif ( node.parentNode ) {\r\n\t\t\tif ( keepData && jQuery.contains( node.ownerDocument, node ) ) {\r\n\t\t\t\tsetGlobalEval( getAll( node, \"script\" ) );\r\n\t\t\t}\r\n\t\t\tnode.parentNode.removeChild( node );\r\n\t\t}\r\n\t}\r\n\r\n\treturn elem;\r\n}\r\n\r\njQuery.extend( {\r\n\thtmlPrefilter: function( html ) {\r\n\t\treturn html.replace( rxhtmlTag, \"<$1></$2>\" );\r\n\t},\r\n\r\n\tclone: function( elem, dataAndEvents, deepDataAndEvents ) {\r\n\t\tvar i, l, srcElements, destElements,\r\n\t\t\tclone = elem.cloneNode( true ),\r\n\t\t\tinPage = jQuery.contains( elem.ownerDocument, elem );\r\n\r\n\t\t// Fix IE cloning issues\r\n\t\tif ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&\r\n\t\t\t\t!jQuery.isXMLDoc( elem ) ) {\r\n\r\n\t\t\t// We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2\r\n\t\t\tdestElements = getAll( clone );\r\n\t\t\tsrcElements = getAll( elem );\r\n\r\n\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\r\n\t\t\t\tfixInput( srcElements[ i ], destElements[ i ] );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Copy the events from the original to the clone\r\n\t\tif ( dataAndEvents ) {\r\n\t\t\tif ( deepDataAndEvents ) {\r\n\t\t\t\tsrcElements = srcElements || getAll( elem );\r\n\t\t\t\tdestElements = destElements || getAll( clone );\r\n\r\n\t\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\r\n\t\t\t\t\tcloneCopyEvent( srcElements[ i ], destElements[ i ] );\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tcloneCopyEvent( elem, clone );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Preserve script evaluation history\r\n\t\tdestElements = getAll( clone, \"script\" );\r\n\t\tif ( destElements.length > 0 ) {\r\n\t\t\tsetGlobalEval( destElements, !inPage && getAll( elem, \"script\" ) );\r\n\t\t}\r\n\r\n\t\t// Return the cloned set\r\n\t\treturn clone;\r\n\t},\r\n\r\n\tcleanData: function( elems ) {\r\n\t\tvar data, elem, type,\r\n\t\t\tspecial = jQuery.event.special,\r\n\t\t\ti = 0;\r\n\r\n\t\tfor ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {\r\n\t\t\tif ( acceptData( elem ) ) {\r\n\t\t\t\tif ( ( data = elem[ dataPriv.expando ] ) ) {\r\n\t\t\t\t\tif ( data.events ) {\r\n\t\t\t\t\t\tfor ( type in data.events ) {\r\n\t\t\t\t\t\t\tif ( special[ type ] ) {\r\n\t\t\t\t\t\t\t\tjQuery.event.remove( elem, type );\r\n\r\n\t\t\t\t\t\t\t// This is a shortcut to avoid jQuery.event.remove's overhead\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tjQuery.removeEvent( elem, type, data.handle );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Support: Chrome <=35 - 45+\r\n\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\r\n\t\t\t\t\telem[ dataPriv.expando ] = undefined;\r\n\t\t\t\t}\r\n\t\t\t\tif ( elem[ dataUser.expando ] ) {\r\n\r\n\t\t\t\t\t// Support: Chrome <=35 - 45+\r\n\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\r\n\t\t\t\t\telem[ dataUser.expando ] = undefined;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n} );\r\n\r\njQuery.fn.extend( {\r\n\tdetach: function( selector ) {\r\n\t\treturn remove( this, selector, true );\r\n\t},\r\n\r\n\tremove: function( selector ) {\r\n\t\treturn remove( this, selector );\r\n\t},\r\n\r\n\ttext: function( value ) {\r\n\t\treturn access( this, function( value ) {\r\n\t\t\treturn value === undefined ?\r\n\t\t\t\tjQuery.text( this ) :\r\n\t\t\t\tthis.empty().each( function() {\r\n\t\t\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\r\n\t\t\t\t\t\tthis.textContent = value;\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t}, null, value, arguments.length );\r\n\t},\r\n\r\n\tappend: function() {\r\n\t\treturn domManip( this, arguments, function( elem ) {\r\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\r\n\t\t\t\tvar target = manipulationTarget( this, elem );\r\n\t\t\t\ttarget.appendChild( elem );\r\n\t\t\t}\r\n\t\t} );\r\n\t},\r\n\r\n\tprepend: function() {\r\n\t\treturn domManip( this, arguments, function( elem ) {\r\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\r\n\t\t\t\tvar target = manipulationTarget( this, elem );\r\n\t\t\t\ttarget.insertBefore( elem, target.firstChild );\r\n\t\t\t}\r\n\t\t} );\r\n\t},\r\n\r\n\tbefore: function() {\r\n\t\treturn domManip( this, arguments, function( elem ) {\r\n\t\t\tif ( this.parentNode ) {\r\n\t\t\t\tthis.parentNode.insertBefore( elem, this );\r\n\t\t\t}\r\n\t\t} );\r\n\t},\r\n\r\n\tafter: function() {\r\n\t\treturn domManip( this, arguments, function( elem ) {\r\n\t\t\tif ( this.parentNode ) {\r\n\t\t\t\tthis.parentNode.insertBefore( elem, this.nextSibling );\r\n\t\t\t}\r\n\t\t} );\r\n\t},\r\n\r\n\tempty: function() {\r\n\t\tvar elem,\r\n\t\t\ti = 0;\r\n\r\n\t\tfor ( ; ( elem = this[ i ] ) != null; i++ ) {\r\n\t\t\tif ( elem.nodeType === 1 ) {\r\n\r\n\t\t\t\t// Prevent memory leaks\r\n\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\r\n\r\n\t\t\t\t// Remove any remaining nodes\r\n\t\t\t\telem.textContent = \"\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\tclone: function( dataAndEvents, deepDataAndEvents ) {\r\n\t\tdataAndEvents = dataAndEvents == null ? false : dataAndEvents;\r\n\t\tdeepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\r\n\r\n\t\treturn this.map( function() {\r\n\t\t\treturn jQuery.clone( this, dataAndEvents, deepDataAndEvents );\r\n\t\t} );\r\n\t},\r\n\r\n\thtml: function( value ) {\r\n\t\treturn access( this, function( value ) {\r\n\t\t\tvar elem = this[ 0 ] || {},\r\n\t\t\t\ti = 0,\r\n\t\t\t\tl = this.length;\r\n\r\n\t\t\tif ( value === undefined && elem.nodeType === 1 ) {\r\n\t\t\t\treturn elem.innerHTML;\r\n\t\t\t}\r\n\r\n\t\t\t// See if we can take a shortcut and just use innerHTML\r\n\t\t\tif ( typeof value === \"string\" && !rnoInnerhtml.test( value ) &&\r\n\t\t\t\t!wrapMap[ ( rtagName.exec( value ) || [ \"\", \"\" ] )[ 1 ].toLowerCase() ] ) {\r\n\r\n\t\t\t\tvalue = jQuery.htmlPrefilter( value );\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfor ( ; i < l; i++ ) {\r\n\t\t\t\t\t\telem = this[ i ] || {};\r\n\r\n\t\t\t\t\t\t// Remove element nodes and prevent memory leaks\r\n\t\t\t\t\t\tif ( elem.nodeType === 1 ) {\r\n\t\t\t\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\r\n\t\t\t\t\t\t\telem.innerHTML = value;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telem = 0;\r\n\r\n\t\t\t\t// If using innerHTML throws an exception, use the fallback method\r\n\t\t\t\t} catch ( e ) {}\r\n\t\t\t}\r\n\r\n\t\t\tif ( elem ) {\r\n\t\t\t\tthis.empty().append( value );\r\n\t\t\t}\r\n\t\t}, null, value, arguments.length );\r\n\t},\r\n\r\n\treplaceWith: function() {\r\n\t\tvar ignored = [];\r\n\r\n\t\t// Make the changes, replacing each non-ignored context element with the new content\r\n\t\treturn domManip( this, arguments, function( elem ) {\r\n\t\t\tvar parent = this.parentNode;\r\n\r\n\t\t\tif ( jQuery.inArray( this, ignored ) < 0 ) {\r\n\t\t\t\tjQuery.cleanData( getAll( this ) );\r\n\t\t\t\tif ( parent ) {\r\n\t\t\t\t\tparent.replaceChild( elem, this );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t// Force callback invocation\r\n\t\t}, ignored );\r\n\t}\r\n} );\r\n\r\njQuery.each( {\r\n\tappendTo: \"append\",\r\n\tprependTo: \"prepend\",\r\n\tinsertBefore: \"before\",\r\n\tinsertAfter: \"after\",\r\n\treplaceAll: \"replaceWith\"\r\n}, function( name, original ) {\r\n\tjQuery.fn[ name ] = function( selector ) {\r\n\t\tvar elems,\r\n\t\t\tret = [],\r\n\t\t\tinsert = jQuery( selector ),\r\n\t\t\tlast = insert.length - 1,\r\n\t\t\ti = 0;\r\n\r\n\t\tfor ( ; i <= last; i++ ) {\r\n\t\t\telems = i === last ? this : this.clone( true );\r\n\t\t\tjQuery( insert[ i ] )[ original ]( elems );\r\n\r\n\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\r\n\t\t\t// .get() because push.apply(_, arraylike) throws on ancient WebKit\r\n\t\t\tpush.apply( ret, elems.get() );\r\n\t\t}\r\n\r\n\t\treturn this.pushStack( ret );\r\n\t};\r\n} );\r\nvar rmargin = ( /^margin/ );\r\n\r\nvar rnumnonpx = new RegExp( \"^(\" + pnum + \")(?!px)[a-z%]+$\", \"i\" );\r\n\r\nvar getStyles = function( elem ) {\r\n\r\n\t\t// Support: IE <=11 only, Firefox <=30 (#15098, #14150)\r\n\t\t// IE throws on elements created in popups\r\n\t\t// FF meanwhile throws on frame elements through \"defaultView.getComputedStyle\"\r\n\t\tvar view = elem.ownerDocument.defaultView;\r\n\r\n\t\tif ( !view || !view.opener ) {\r\n\t\t\tview = window;\r\n\t\t}\r\n\r\n\t\treturn view.getComputedStyle( elem );\r\n\t};\r\n\r\n\r\n\r\n( function() {\r\n\r\n\t// Executing both pixelPosition & boxSizingReliable tests require only one layout\r\n\t// so they're executed at the same time to save the second computation.\r\n\tfunction computeStyleTests() {\r\n\r\n\t\t// This is a singleton, we need to execute it only once\r\n\t\tif ( !div ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tdiv.style.cssText =\r\n\t\t\t\"box-sizing:border-box;\" +\r\n\t\t\t\"position:relative;display:block;\" +\r\n\t\t\t\"margin:auto;border:1px;padding:1px;\" +\r\n\t\t\t\"top:1%;width:50%\";\r\n\t\tdiv.innerHTML = \"\";\r\n\t\tdocumentElement.appendChild( container );\r\n\r\n\t\tvar divStyle = window.getComputedStyle( div );\r\n\t\tpixelPositionVal = divStyle.top !== \"1%\";\r\n\r\n\t\t// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44\r\n\t\treliableMarginLeftVal = divStyle.marginLeft === \"2px\";\r\n\t\tboxSizingReliableVal = divStyle.width === \"4px\";\r\n\r\n\t\t// Support: Android 4.0 - 4.3 only\r\n\t\t// Some styles come back with percentage values, even though they shouldn't\r\n\t\tdiv.style.marginRight = \"50%\";\r\n\t\tpixelMarginRightVal = divStyle.marginRight === \"4px\";\r\n\r\n\t\tdocumentElement.removeChild( container );\r\n\r\n\t\t// Nullify the div so it wouldn't be stored in the memory and\r\n\t\t// it will also be a sign that checks already performed\r\n\t\tdiv = null;\r\n\t}\r\n\r\n\tvar pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,\r\n\t\tcontainer = document.createElement( \"div\" ),\r\n\t\tdiv = document.createElement( \"div\" );\r\n\r\n\t// Finish early in limited (non-browser) environments\r\n\tif ( !div.style ) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t// Support: IE <=9 - 11 only\r\n\t// Style of cloned element affects source element cloned (#8908)\r\n\tdiv.style.backgroundClip = \"content-box\";\r\n\tdiv.cloneNode( true ).style.backgroundClip = \"\";\r\n\tsupport.clearCloneStyle = div.style.backgroundClip === \"content-box\";\r\n\r\n\tcontainer.style.cssText = \"border:0;width:8px;height:0;top:0;left:-9999px;\" +\r\n\t\t\"padding:0;margin-top:1px;position:absolute\";\r\n\tcontainer.appendChild( div );\r\n\r\n\tjQuery.extend( support, {\r\n\t\tpixelPosition: function() {\r\n\t\t\tcomputeStyleTests();\r\n\t\t\treturn pixelPositionVal;\r\n\t\t},\r\n\t\tboxSizingReliable: function() {\r\n\t\t\tcomputeStyleTests();\r\n\t\t\treturn boxSizingReliableVal;\r\n\t\t},\r\n\t\tpixelMarginRight: function() {\r\n\t\t\tcomputeStyleTests();\r\n\t\t\treturn pixelMarginRightVal;\r\n\t\t},\r\n\t\treliableMarginLeft: function() {\r\n\t\t\tcomputeStyleTests();\r\n\t\t\treturn reliableMarginLeftVal;\r\n\t\t}\r\n\t} );\r\n} )();\r\n\r\n\r\nfunction curCSS( elem, name, computed ) {\r\n\tvar width, minWidth, maxWidth, ret,\r\n\t\tstyle = elem.style;\r\n\r\n\tcomputed = computed || getStyles( elem );\r\n\r\n\t// Support: IE <=9 only\r\n\t// getPropertyValue is only needed for .css('filter') (#12537)\r\n\tif ( computed ) {\r\n\t\tret = computed.getPropertyValue( name ) || computed[ name ];\r\n\r\n\t\tif ( ret === \"\" && !jQuery.contains( elem.ownerDocument, elem ) ) {\r\n\t\t\tret = jQuery.style( elem, name );\r\n\t\t}\r\n\r\n\t\t// A tribute to the \"awesome hack by Dean Edwards\"\r\n\t\t// Android Browser returns percentage for some values,\r\n\t\t// but width seems to be reliably pixels.\r\n\t\t// This is against the CSSOM draft spec:\r\n\t\t// https://drafts.csswg.org/cssom/#resolved-values\r\n\t\tif ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {\r\n\r\n\t\t\t// Remember the original values\r\n\t\t\twidth = style.width;\r\n\t\t\tminWidth = style.minWidth;\r\n\t\t\tmaxWidth = style.maxWidth;\r\n\r\n\t\t\t// Put in the new values to get a computed value out\r\n\t\t\tstyle.minWidth = style.maxWidth = style.width = ret;\r\n\t\t\tret = computed.width;\r\n\r\n\t\t\t// Revert the changed values\r\n\t\t\tstyle.width = width;\r\n\t\t\tstyle.minWidth = minWidth;\r\n\t\t\tstyle.maxWidth = maxWidth;\r\n\t\t}\r\n\t}\r\n\r\n\treturn ret !== undefined ?\r\n\r\n\t\t// Support: IE <=9 - 11 only\r\n\t\t// IE returns zIndex value as an integer.\r\n\t\tret + \"\" :\r\n\t\tret;\r\n}\r\n\r\n\r\nfunction addGetHookIf( conditionFn, hookFn ) {\r\n\r\n\t// Define the hook, we'll check on the first run if it's really needed.\r\n\treturn {\r\n\t\tget: function() {\r\n\t\t\tif ( conditionFn() ) {\r\n\r\n\t\t\t\t// Hook not needed (or it's not possible to use it due\r\n\t\t\t\t// to missing dependency), remove it.\r\n\t\t\t\tdelete this.get;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Hook needed; redefine it so that the support test is not executed again.\r\n\t\t\treturn ( this.get = hookFn ).apply( this, arguments );\r\n\t\t}\r\n\t};\r\n}\r\n\r\n\r\nvar\r\n\r\n\t// Swappable if display is none or starts with table\r\n\t// except \"table\", \"table-cell\", or \"table-caption\"\r\n\t// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display\r\n\trdisplayswap = /^(none|table(?!-c[ea]).+)/,\r\n\tcssShow = { position: \"absolute\", visibility: \"hidden\", display: \"block\" },\r\n\tcssNormalTransform = {\r\n\t\tletterSpacing: \"0\",\r\n\t\tfontWeight: \"400\"\r\n\t},\r\n\r\n\tcssPrefixes = [ \"Webkit\", \"Moz\", \"ms\" ],\r\n\temptyStyle = document.createElement( \"div\" ).style;\r\n\r\n// Return a css property mapped to a potentially vendor prefixed property\r\nfunction vendorPropName( name ) {\r\n\r\n\t// Shortcut for names that are not vendor prefixed\r\n\tif ( name in emptyStyle ) {\r\n\t\treturn name;\r\n\t}\r\n\r\n\t// Check for vendor prefixed names\r\n\tvar capName = name[ 0 ].toUpperCase() + name.slice( 1 ),\r\n\t\ti = cssPrefixes.length;\r\n\r\n\twhile ( i-- ) {\r\n\t\tname = cssPrefixes[ i ] + capName;\r\n\t\tif ( name in emptyStyle ) {\r\n\t\t\treturn name;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction setPositiveNumber( elem, value, subtract ) {\r\n\r\n\t// Any relative (+/-) values have already been\r\n\t// normalized at this point\r\n\tvar matches = rcssNum.exec( value );\r\n\treturn matches ?\r\n\r\n\t\t// Guard against undefined \"subtract\", e.g., when used as in cssHooks\r\n\t\tMath.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || \"px\" ) :\r\n\t\tvalue;\r\n}\r\n\r\nfunction augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {\r\n\tvar i = extra === ( isBorderBox ? \"border\" : \"content\" ) ?\r\n\r\n\t\t// If we already have the right measurement, avoid augmentation\r\n\t\t4 :\r\n\r\n\t\t// Otherwise initialize for horizontal or vertical properties\r\n\t\tname === \"width\" ? 1 : 0,\r\n\r\n\t\tval = 0;\r\n\r\n\tfor ( ; i < 4; i += 2 ) {\r\n\r\n\t\t// Both box models exclude margin, so add it if we want it\r\n\t\tif ( extra === \"margin\" ) {\r\n\t\t\tval += jQuery.css( elem, extra + cssExpand[ i ], true, styles );\r\n\t\t}\r\n\r\n\t\tif ( isBorderBox ) {\r\n\r\n\t\t\t// border-box includes padding, so remove it if we want content\r\n\t\t\tif ( extra === \"content\" ) {\r\n\t\t\t\tval -= jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\r\n\t\t\t}\r\n\r\n\t\t\t// At this point, extra isn't border nor margin, so remove border\r\n\t\t\tif ( extra !== \"margin\" ) {\r\n\t\t\t\tval -= jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\r\n\t\t\t}\r\n\t\t} else {\r\n\r\n\t\t\t// At this point, extra isn't content, so add padding\r\n\t\t\tval += jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\r\n\r\n\t\t\t// At this point, extra isn't content nor padding, so add border\r\n\t\t\tif ( extra !== \"padding\" ) {\r\n\t\t\t\tval += jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn val;\r\n}\r\n\r\nfunction getWidthOrHeight( elem, name, extra ) {\r\n\r\n\t// Start with offset property, which is equivalent to the border-box value\r\n\tvar val,\r\n\t\tvalueIsBorderBox = true,\r\n\t\tstyles = getStyles( elem ),\r\n\t\tisBorderBox = jQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\";\r\n\r\n\t// Support: IE <=11 only\r\n\t// Running getBoundingClientRect on a disconnected node\r\n\t// in IE throws an error.\r\n\tif ( elem.getClientRects().length ) {\r\n\t\tval = elem.getBoundingClientRect()[ name ];\r\n\t}\r\n\r\n\t// Some non-html elements return undefined for offsetWidth, so check for null/undefined\r\n\t// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285\r\n\t// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668\r\n\tif ( val <= 0 || val == null ) {\r\n\r\n\t\t// Fall back to computed then uncomputed css if necessary\r\n\t\tval = curCSS( elem, name, styles );\r\n\t\tif ( val < 0 || val == null ) {\r\n\t\t\tval = elem.style[ name ];\r\n\t\t}\r\n\r\n\t\t// Computed unit is not pixels. Stop here and return.\r\n\t\tif ( rnumnonpx.test( val ) ) {\r\n\t\t\treturn val;\r\n\t\t}\r\n\r\n\t\t// Check for style in case a browser which returns unreliable values\r\n\t\t// for getComputedStyle silently falls back to the reliable elem.style\r\n\t\tvalueIsBorderBox = isBorderBox &&\r\n\t\t\t( support.boxSizingReliable() || val === elem.style[ name ] );\r\n\r\n\t\t// Normalize \"\", auto, and prepare for extra\r\n\t\tval = parseFloat( val ) || 0;\r\n\t}\r\n\r\n\t// Use the active box-sizing model to add/subtract irrelevant styles\r\n\treturn ( val +\r\n\t\taugmentWidthOrHeight(\r\n\t\t\telem,\r\n\t\t\tname,\r\n\t\t\textra || ( isBorderBox ? \"border\" : \"content\" ),\r\n\t\t\tvalueIsBorderBox,\r\n\t\t\tstyles\r\n\t\t)\r\n\t) + \"px\";\r\n}\r\n\r\njQuery.extend( {\r\n\r\n\t// Add in style property hooks for overriding the default\r\n\t// behavior of getting and setting a style property\r\n\tcssHooks: {\r\n\t\topacity: {\r\n\t\t\tget: function( elem, computed ) {\r\n\t\t\t\tif ( computed ) {\r\n\r\n\t\t\t\t\t// We should always get a number back from opacity\r\n\t\t\t\t\tvar ret = curCSS( elem, \"opacity\" );\r\n\t\t\t\t\treturn ret === \"\" ? \"1\" : ret;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t// Don't automatically add \"px\" to these possibly-unitless properties\r\n\tcssNumber: {\r\n\t\t\"animationIterationCount\": true,\r\n\t\t\"columnCount\": true,\r\n\t\t\"fillOpacity\": true,\r\n\t\t\"flexGrow\": true,\r\n\t\t\"flexShrink\": true,\r\n\t\t\"fontWeight\": true,\r\n\t\t\"lineHeight\": true,\r\n\t\t\"opacity\": true,\r\n\t\t\"order\": true,\r\n\t\t\"orphans\": true,\r\n\t\t\"widows\": true,\r\n\t\t\"zIndex\": true,\r\n\t\t\"zoom\": true\r\n\t},\r\n\r\n\t// Add in properties whose names you wish to fix before\r\n\t// setting or getting the value\r\n\tcssProps: {\r\n\t\t\"float\": \"cssFloat\"\r\n\t},\r\n\r\n\t// Get and set the style property on a DOM Node\r\n\tstyle: function( elem, name, value, extra ) {\r\n\r\n\t\t// Don't set styles on text and comment nodes\r\n\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Make sure that we're working with the right name\r\n\t\tvar ret, type, hooks,\r\n\t\t\torigName = jQuery.camelCase( name ),\r\n\t\t\tstyle = elem.style;\r\n\r\n\t\tname = jQuery.cssProps[ origName ] ||\r\n\t\t\t( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );\r\n\r\n\t\t// Gets hook for the prefixed version, then unprefixed version\r\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\r\n\r\n\t\t// Check if we're setting a value\r\n\t\tif ( value !== undefined ) {\r\n\t\t\ttype = typeof value;\r\n\r\n\t\t\t// Convert \"+=\" or \"-=\" to relative numbers (#7345)\r\n\t\t\tif ( type === \"string\" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {\r\n\t\t\t\tvalue = adjustCSS( elem, name, ret );\r\n\r\n\t\t\t\t// Fixes bug #9237\r\n\t\t\t\ttype = \"number\";\r\n\t\t\t}\r\n\r\n\t\t\t// Make sure that null and NaN values aren't set (#7116)\r\n\t\t\tif ( value == null || value !== value ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// If a number was passed in, add the unit (except for certain CSS properties)\r\n\t\t\tif ( type === \"number\" ) {\r\n\t\t\t\tvalue += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? \"\" : \"px\" );\r\n\t\t\t}\r\n\r\n\t\t\t// background-* props affect original clone's values\r\n\t\t\tif ( !support.clearCloneStyle && value === \"\" && name.indexOf( \"background\" ) === 0 ) {\r\n\t\t\t\tstyle[ name ] = \"inherit\";\r\n\t\t\t}\r\n\r\n\t\t\t// If a hook was provided, use that value, otherwise just set the specified value\r\n\t\t\tif ( !hooks || !( \"set\" in hooks ) ||\r\n\t\t\t\t( value = hooks.set( elem, value, extra ) ) !== undefined ) {\r\n\r\n\t\t\t\tstyle[ name ] = value;\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\r\n\t\t\t// If a hook was provided get the non-computed value from there\r\n\t\t\tif ( hooks && \"get\" in hooks &&\r\n\t\t\t\t( ret = hooks.get( elem, false, extra ) ) !== undefined ) {\r\n\r\n\t\t\t\treturn ret;\r\n\t\t\t}\r\n\r\n\t\t\t// Otherwise just get the value from the style object\r\n\t\t\treturn style[ name ];\r\n\t\t}\r\n\t},\r\n\r\n\tcss: function( elem, name, extra, styles ) {\r\n\t\tvar val, num, hooks,\r\n\t\t\torigName = jQuery.camelCase( name );\r\n\r\n\t\t// Make sure that we're working with the right name\r\n\t\tname = jQuery.cssProps[ origName ] ||\r\n\t\t\t( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );\r\n\r\n\t\t// Try prefixed name followed by the unprefixed name\r\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\r\n\r\n\t\t// If a hook was provided get the computed value from there\r\n\t\tif ( hooks && \"get\" in hooks ) {\r\n\t\t\tval = hooks.get( elem, true, extra );\r\n\t\t}\r\n\r\n\t\t// Otherwise, if a way to get the computed value exists, use that\r\n\t\tif ( val === undefined ) {\r\n\t\t\tval = curCSS( elem, name, styles );\r\n\t\t}\r\n\r\n\t\t// Convert \"normal\" to computed value\r\n\t\tif ( val === \"normal\" && name in cssNormalTransform ) {\r\n\t\t\tval = cssNormalTransform[ name ];\r\n\t\t}\r\n\r\n\t\t// Make numeric if forced or a qualifier was provided and val looks numeric\r\n\t\tif ( extra === \"\" || extra ) {\r\n\t\t\tnum = parseFloat( val );\r\n\t\t\treturn extra === true || isFinite( num ) ? num || 0 : val;\r\n\t\t}\r\n\t\treturn val;\r\n\t}\r\n} );\r\n\r\njQuery.each( [ \"height\", \"width\" ], function( i, name ) {\r\n\tjQuery.cssHooks[ name ] = {\r\n\t\tget: function( elem, computed, extra ) {\r\n\t\t\tif ( computed ) {\r\n\r\n\t\t\t\t// Certain elements can have dimension info if we invisibly show them\r\n\t\t\t\t// but it must have a current display style that would benefit\r\n\t\t\t\treturn rdisplayswap.test( jQuery.css( elem, \"display\" ) ) &&\r\n\r\n\t\t\t\t\t// Support: Safari 8+\r\n\t\t\t\t\t// Table columns in Safari have non-zero offsetWidth & zero\r\n\t\t\t\t\t// getBoundingClientRect().width unless display is changed.\r\n\t\t\t\t\t// Support: IE <=11 only\r\n\t\t\t\t\t// Running getBoundingClientRect on a disconnected node\r\n\t\t\t\t\t// in IE throws an error.\r\n\t\t\t\t\t( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?\r\n\t\t\t\t\t\tswap( elem, cssShow, function() {\r\n\t\t\t\t\t\t\treturn getWidthOrHeight( elem, name, extra );\r\n\t\t\t\t\t\t} ) :\r\n\t\t\t\t\t\tgetWidthOrHeight( elem, name, extra );\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tset: function( elem, value, extra ) {\r\n\t\t\tvar matches,\r\n\t\t\t\tstyles = extra && getStyles( elem ),\r\n\t\t\t\tsubtract = extra && augmentWidthOrHeight(\r\n\t\t\t\t\telem,\r\n\t\t\t\t\tname,\r\n\t\t\t\t\textra,\r\n\t\t\t\t\tjQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\",\r\n\t\t\t\t\tstyles\r\n\t\t\t\t);\r\n\r\n\t\t\t// Convert to pixels if value adjustment is needed\r\n\t\t\tif ( subtract && ( matches = rcssNum.exec( value ) ) &&\r\n\t\t\t\t( matches[ 3 ] || \"px\" ) !== \"px\" ) {\r\n\r\n\t\t\t\telem.style[ name ] = value;\r\n\t\t\t\tvalue = jQuery.css( elem, name );\r\n\t\t\t}\r\n\r\n\t\t\treturn setPositiveNumber( elem, value, subtract );\r\n\t\t}\r\n\t};\r\n} );\r\n\r\njQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,\r\n\tfunction( elem, computed ) {\r\n\t\tif ( computed ) {\r\n\t\t\treturn ( parseFloat( curCSS( elem, \"marginLeft\" ) ) ||\r\n\t\t\t\telem.getBoundingClientRect().left -\r\n\t\t\t\t\tswap( elem, { marginLeft: 0 }, function() {\r\n\t\t\t\t\t\treturn elem.getBoundingClientRect().left;\r\n\t\t\t\t\t} )\r\n\t\t\t\t) + \"px\";\r\n\t\t}\r\n\t}\r\n);\r\n\r\n// These hooks are used by animate to expand properties\r\njQuery.each( {\r\n\tmargin: \"\",\r\n\tpadding: \"\",\r\n\tborder: \"Width\"\r\n}, function( prefix, suffix ) {\r\n\tjQuery.cssHooks[ prefix + suffix ] = {\r\n\t\texpand: function( value ) {\r\n\t\t\tvar i = 0,\r\n\t\t\t\texpanded = {},\r\n\r\n\t\t\t\t// Assumes a single number if not a string\r\n\t\t\t\tparts = typeof value === \"string\" ? value.split( \" \" ) : [ value ];\r\n\r\n\t\t\tfor ( ; i < 4; i++ ) {\r\n\t\t\t\texpanded[ prefix + cssExpand[ i ] + suffix ] =\r\n\t\t\t\t\tparts[ i ] || parts[ i - 2 ] || parts[ 0 ];\r\n\t\t\t}\r\n\r\n\t\t\treturn expanded;\r\n\t\t}\r\n\t};\r\n\r\n\tif ( !rmargin.test( prefix ) ) {\r\n\t\tjQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;\r\n\t}\r\n} );\r\n\r\njQuery.fn.extend( {\r\n\tcss: function( name, value ) {\r\n\t\treturn access( this, function( elem, name, value ) {\r\n\t\t\tvar styles, len,\r\n\t\t\t\tmap = {},\r\n\t\t\t\ti = 0;\r\n\r\n\t\t\tif ( jQuery.isArray( name ) ) {\r\n\t\t\t\tstyles = getStyles( elem );\r\n\t\t\t\tlen = name.length;\r\n\r\n\t\t\t\tfor ( ; i < len; i++ ) {\r\n\t\t\t\t\tmap[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn map;\r\n\t\t\t}\r\n\r\n\t\t\treturn value !== undefined ?\r\n\t\t\t\tjQuery.style( elem, name, value ) :\r\n\t\t\t\tjQuery.css( elem, name );\r\n\t\t}, name, value, arguments.length > 1 );\r\n\t}\r\n} );\r\n\r\n\r\nfunction Tween( elem, options, prop, end, easing ) {\r\n\treturn new Tween.prototype.init( elem, options, prop, end, easing );\r\n}\r\njQuery.Tween = Tween;\r\n\r\nTween.prototype = {\r\n\tconstructor: Tween,\r\n\tinit: function( elem, options, prop, end, easing, unit ) {\r\n\t\tthis.elem = elem;\r\n\t\tthis.prop = prop;\r\n\t\tthis.easing = easing || jQuery.easing._default;\r\n\t\tthis.options = options;\r\n\t\tthis.start = this.now = this.cur();\r\n\t\tthis.end = end;\r\n\t\tthis.unit = unit || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" );\r\n\t},\r\n\tcur: function() {\r\n\t\tvar hooks = Tween.propHooks[ this.prop ];\r\n\r\n\t\treturn hooks && hooks.get ?\r\n\t\t\thooks.get( this ) :\r\n\t\t\tTween.propHooks._default.get( this );\r\n\t},\r\n\trun: function( percent ) {\r\n\t\tvar eased,\r\n\t\t\thooks = Tween.propHooks[ this.prop ];\r\n\r\n\t\tif ( this.options.duration ) {\r\n\t\t\tthis.pos = eased = jQuery.easing[ this.easing ](\r\n\t\t\t\tpercent, this.options.duration * percent, 0, 1, this.options.duration\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\tthis.pos = eased = percent;\r\n\t\t}\r\n\t\tthis.now = ( this.end - this.start ) * eased + this.start;\r\n\r\n\t\tif ( this.options.step ) {\r\n\t\t\tthis.options.step.call( this.elem, this.now, this );\r\n\t\t}\r\n\r\n\t\tif ( hooks && hooks.set ) {\r\n\t\t\thooks.set( this );\r\n\t\t} else {\r\n\t\t\tTween.propHooks._default.set( this );\r\n\t\t}\r\n\t\treturn this;\r\n\t}\r\n};\r\n\r\nTween.prototype.init.prototype = Tween.prototype;\r\n\r\nTween.propHooks = {\r\n\t_default: {\r\n\t\tget: function( tween ) {\r\n\t\t\tvar result;\r\n\r\n\t\t\t// Use a property on the element directly when it is not a DOM element,\r\n\t\t\t// or when there is no matching style property that exists.\r\n\t\t\tif ( tween.elem.nodeType !== 1 ||\r\n\t\t\t\ttween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {\r\n\t\t\t\treturn tween.elem[ tween.prop ];\r\n\t\t\t}\r\n\r\n\t\t\t// Passing an empty string as a 3rd parameter to .css will automatically\r\n\t\t\t// attempt a parseFloat and fallback to a string if the parse fails.\r\n\t\t\t// Simple values such as \"10px\" are parsed to Float;\r\n\t\t\t// complex values such as \"rotate(1rad)\" are returned as-is.\r\n\t\t\tresult = jQuery.css( tween.elem, tween.prop, \"\" );\r\n\r\n\t\t\t// Empty strings, null, undefined and \"auto\" are converted to 0.\r\n\t\t\treturn !result || result === \"auto\" ? 0 : result;\r\n\t\t},\r\n\t\tset: function( tween ) {\r\n\r\n\t\t\t// Use step hook for back compat.\r\n\t\t\t// Use cssHook if its there.\r\n\t\t\t// Use .style if available and use plain properties where available.\r\n\t\t\tif ( jQuery.fx.step[ tween.prop ] ) {\r\n\t\t\t\tjQuery.fx.step[ tween.prop ]( tween );\r\n\t\t\t} else if ( tween.elem.nodeType === 1 &&\r\n\t\t\t\t( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||\r\n\t\t\t\t\tjQuery.cssHooks[ tween.prop ] ) ) {\r\n\t\t\t\tjQuery.style( tween.elem, tween.prop, tween.now + tween.unit );\r\n\t\t\t} else {\r\n\t\t\t\ttween.elem[ tween.prop ] = tween.now;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\n// Support: IE <=9 only\r\n// Panic based approach to setting things on disconnected nodes\r\nTween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {\r\n\tset: function( tween ) {\r\n\t\tif ( tween.elem.nodeType && tween.elem.parentNode ) {\r\n\t\t\ttween.elem[ tween.prop ] = tween.now;\r\n\t\t}\r\n\t}\r\n};\r\n\r\njQuery.easing = {\r\n\tlinear: function( p ) {\r\n\t\treturn p;\r\n\t},\r\n\tswing: function( p ) {\r\n\t\treturn 0.5 - Math.cos( p * Math.PI ) / 2;\r\n\t},\r\n\t_default: \"swing\"\r\n};\r\n\r\njQuery.fx = Tween.prototype.init;\r\n\r\n// Back compat <1.8 extension point\r\njQuery.fx.step = {};\r\n\r\n\r\n\r\n\r\nvar\r\n\tfxNow, timerId,\r\n\trfxtypes = /^(?:toggle|show|hide)$/,\r\n\trrun = /queueHooks$/;\r\n\r\nfunction raf() {\r\n\tif ( timerId ) {\r\n\t\twindow.requestAnimationFrame( raf );\r\n\t\tjQuery.fx.tick();\r\n\t}\r\n}\r\n\r\n// Animations created synchronously will run synchronously\r\nfunction createFxNow() {\r\n\twindow.setTimeout( function() {\r\n\t\tfxNow = undefined;\r\n\t} );\r\n\treturn ( fxNow = jQuery.now() );\r\n}\r\n\r\n// Generate parameters to create a standard animation\r\nfunction genFx( type, includeWidth ) {\r\n\tvar which,\r\n\t\ti = 0,\r\n\t\tattrs = { height: type };\r\n\r\n\t// If we include width, step value is 1 to do all cssExpand values,\r\n\t// otherwise step value is 2 to skip over Left and Right\r\n\tincludeWidth = includeWidth ? 1 : 0;\r\n\tfor ( ; i < 4; i += 2 - includeWidth ) {\r\n\t\twhich = cssExpand[ i ];\r\n\t\tattrs[ \"margin\" + which ] = attrs[ \"padding\" + which ] = type;\r\n\t}\r\n\r\n\tif ( includeWidth ) {\r\n\t\tattrs.opacity = attrs.width = type;\r\n\t}\r\n\r\n\treturn attrs;\r\n}\r\n\r\nfunction createTween( value, prop, animation ) {\r\n\tvar tween,\r\n\t\tcollection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ \"*\" ] ),\r\n\t\tindex = 0,\r\n\t\tlength = collection.length;\r\n\tfor ( ; index < length; index++ ) {\r\n\t\tif ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {\r\n\r\n\t\t\t// We're done with this property\r\n\t\t\treturn tween;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction defaultPrefilter( elem, props, opts ) {\r\n\tvar prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,\r\n\t\tisBox = \"width\" in props || \"height\" in props,\r\n\t\tanim = this,\r\n\t\torig = {},\r\n\t\tstyle = elem.style,\r\n\t\thidden = elem.nodeType && isHiddenWithinTree( elem ),\r\n\t\tdataShow = dataPriv.get( elem, \"fxshow\" );\r\n\r\n\t// Queue-skipping animations hijack the fx hooks\r\n\tif ( !opts.queue ) {\r\n\t\thooks = jQuery._queueHooks( elem, \"fx\" );\r\n\t\tif ( hooks.unqueued == null ) {\r\n\t\t\thooks.unqueued = 0;\r\n\t\t\toldfire = hooks.empty.fire;\r\n\t\t\thooks.empty.fire = function() {\r\n\t\t\t\tif ( !hooks.unqueued ) {\r\n\t\t\t\t\toldfire();\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t}\r\n\t\thooks.unqueued++;\r\n\r\n\t\tanim.always( function() {\r\n\r\n\t\t\t// Ensure the complete handler is called before this completes\r\n\t\t\tanim.always( function() {\r\n\t\t\t\thooks.unqueued--;\r\n\t\t\t\tif ( !jQuery.queue( elem, \"fx\" ).length ) {\r\n\t\t\t\t\thooks.empty.fire();\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t} );\r\n\t}\r\n\r\n\t// Detect show/hide animations\r\n\tfor ( prop in props ) {\r\n\t\tvalue = props[ prop ];\r\n\t\tif ( rfxtypes.test( value ) ) {\r\n\t\t\tdelete props[ prop ];\r\n\t\t\ttoggle = toggle || value === \"toggle\";\r\n\t\t\tif ( value === ( hidden ? \"hide\" : \"show\" ) ) {\r\n\r\n\t\t\t\t// Pretend to be hidden if this is a \"show\" and\r\n\t\t\t\t// there is still data from a stopped show/hide\r\n\t\t\t\tif ( value === \"show\" && dataShow && dataShow[ prop ] !== undefined ) {\r\n\t\t\t\t\thidden = true;\r\n\r\n\t\t\t\t// Ignore all other no-op show/hide data\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\torig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );\r\n\t\t}\r\n\t}\r\n\r\n\t// Bail out if this is a no-op like .hide().hide()\r\n\tpropTween = !jQuery.isEmptyObject( props );\r\n\tif ( !propTween && jQuery.isEmptyObject( orig ) ) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t// Restrict \"overflow\" and \"display\" styles during box animations\r\n\tif ( isBox && elem.nodeType === 1 ) {\r\n\r\n\t\t// Support: IE <=9 - 11, Edge 12 - 13\r\n\t\t// Record all 3 overflow attributes because IE does not infer the shorthand\r\n\t\t// from identically-valued overflowX and overflowY\r\n\t\topts.overflow = [ style.overflow, style.overflowX, style.overflowY ];\r\n\r\n\t\t// Identify a display type, preferring old show/hide data over the CSS cascade\r\n\t\trestoreDisplay = dataShow && dataShow.display;\r\n\t\tif ( restoreDisplay == null ) {\r\n\t\t\trestoreDisplay = dataPriv.get( elem, \"display\" );\r\n\t\t}\r\n\t\tdisplay = jQuery.css( elem, \"display\" );\r\n\t\tif ( display === \"none\" ) {\r\n\t\t\tif ( restoreDisplay ) {\r\n\t\t\t\tdisplay = restoreDisplay;\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// Get nonempty value(s) by temporarily forcing visibility\r\n\t\t\t\tshowHide( [ elem ], true );\r\n\t\t\t\trestoreDisplay = elem.style.display || restoreDisplay;\r\n\t\t\t\tdisplay = jQuery.css( elem, \"display\" );\r\n\t\t\t\tshowHide( [ elem ] );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Animate inline elements as inline-block\r\n\t\tif ( display === \"inline\" || display === \"inline-block\" && restoreDisplay != null ) {\r\n\t\t\tif ( jQuery.css( elem, \"float\" ) === \"none\" ) {\r\n\r\n\t\t\t\t// Restore the original display value at the end of pure show/hide animations\r\n\t\t\t\tif ( !propTween ) {\r\n\t\t\t\t\tanim.done( function() {\r\n\t\t\t\t\t\tstyle.display = restoreDisplay;\r\n\t\t\t\t\t} );\r\n\t\t\t\t\tif ( restoreDisplay == null ) {\r\n\t\t\t\t\t\tdisplay = style.display;\r\n\t\t\t\t\t\trestoreDisplay = display === \"none\" ? \"\" : display;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tstyle.display = \"inline-block\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tif ( opts.overflow ) {\r\n\t\tstyle.overflow = \"hidden\";\r\n\t\tanim.always( function() {\r\n\t\t\tstyle.overflow = opts.overflow[ 0 ];\r\n\t\t\tstyle.overflowX = opts.overflow[ 1 ];\r\n\t\t\tstyle.overflowY = opts.overflow[ 2 ];\r\n\t\t} );\r\n\t}\r\n\r\n\t// Implement show/hide animations\r\n\tpropTween = false;\r\n\tfor ( prop in orig ) {\r\n\r\n\t\t// General show/hide setup for this element animation\r\n\t\tif ( !propTween ) {\r\n\t\t\tif ( dataShow ) {\r\n\t\t\t\tif ( \"hidden\" in dataShow ) {\r\n\t\t\t\t\thidden = dataShow.hidden;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tdataShow = dataPriv.access( elem, \"fxshow\", { display: restoreDisplay } );\r\n\t\t\t}\r\n\r\n\t\t\t// Store hidden/visible for toggle so `.stop().toggle()` \"reverses\"\r\n\t\t\tif ( toggle ) {\r\n\t\t\t\tdataShow.hidden = !hidden;\r\n\t\t\t}\r\n\r\n\t\t\t// Show elements before animating them\r\n\t\t\tif ( hidden ) {\r\n\t\t\t\tshowHide( [ elem ], true );\r\n\t\t\t}\r\n\r\n\t\t\t/* eslint-disable no-loop-func */\r\n\r\n\t\t\tanim.done( function() {\r\n\r\n\t\t\t/* eslint-enable no-loop-func */\r\n\r\n\t\t\t\t// The final step of a \"hide\" animation is actually hiding the element\r\n\t\t\t\tif ( !hidden ) {\r\n\t\t\t\t\tshowHide( [ elem ] );\r\n\t\t\t\t}\r\n\t\t\t\tdataPriv.remove( elem, \"fxshow\" );\r\n\t\t\t\tfor ( prop in orig ) {\r\n\t\t\t\t\tjQuery.style( elem, prop, orig[ prop ] );\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t}\r\n\r\n\t\t// Per-property setup\r\n\t\tpropTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );\r\n\t\tif ( !( prop in dataShow ) ) {\r\n\t\t\tdataShow[ prop ] = propTween.start;\r\n\t\t\tif ( hidden ) {\r\n\t\t\t\tpropTween.end = propTween.start;\r\n\t\t\t\tpropTween.start = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction propFilter( props, specialEasing ) {\r\n\tvar index, name, easing, value, hooks;\r\n\r\n\t// camelCase, specialEasing and expand cssHook pass\r\n\tfor ( index in props ) {\r\n\t\tname = jQuery.camelCase( index );\r\n\t\teasing = specialEasing[ name ];\r\n\t\tvalue = props[ index ];\r\n\t\tif ( jQuery.isArray( value ) ) {\r\n\t\t\teasing = value[ 1 ];\r\n\t\t\tvalue = props[ index ] = value[ 0 ];\r\n\t\t}\r\n\r\n\t\tif ( index !== name ) {\r\n\t\t\tprops[ name ] = value;\r\n\t\t\tdelete props[ index ];\r\n\t\t}\r\n\r\n\t\thooks = jQuery.cssHooks[ name ];\r\n\t\tif ( hooks && \"expand\" in hooks ) {\r\n\t\t\tvalue = hooks.expand( value );\r\n\t\t\tdelete props[ name ];\r\n\r\n\t\t\t// Not quite $.extend, this won't overwrite existing keys.\r\n\t\t\t// Reusing 'index' because we have the correct \"name\"\r\n\t\t\tfor ( index in value ) {\r\n\t\t\t\tif ( !( index in props ) ) {\r\n\t\t\t\t\tprops[ index ] = value[ index ];\r\n\t\t\t\t\tspecialEasing[ index ] = easing;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tspecialEasing[ name ] = easing;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction Animation( elem, properties, options ) {\r\n\tvar result,\r\n\t\tstopped,\r\n\t\tindex = 0,\r\n\t\tlength = Animation.prefilters.length,\r\n\t\tdeferred = jQuery.Deferred().always( function() {\r\n\r\n\t\t\t// Don't match elem in the :animated selector\r\n\t\t\tdelete tick.elem;\r\n\t\t} ),\r\n\t\ttick = function() {\r\n\t\t\tif ( stopped ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tvar currentTime = fxNow || createFxNow(),\r\n\t\t\t\tremaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),\r\n\r\n\t\t\t\t// Support: Android 2.3 only\r\n\t\t\t\t// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)\r\n\t\t\t\ttemp = remaining / animation.duration || 0,\r\n\t\t\t\tpercent = 1 - temp,\r\n\t\t\t\tindex = 0,\r\n\t\t\t\tlength = animation.tweens.length;\r\n\r\n\t\t\tfor ( ; index < length; index++ ) {\r\n\t\t\t\tanimation.tweens[ index ].run( percent );\r\n\t\t\t}\r\n\r\n\t\t\tdeferred.notifyWith( elem, [ animation, percent, remaining ] );\r\n\r\n\t\t\tif ( percent < 1 && length ) {\r\n\t\t\t\treturn remaining;\r\n\t\t\t} else {\r\n\t\t\t\tdeferred.resolveWith( elem, [ animation ] );\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t},\r\n\t\tanimation = deferred.promise( {\r\n\t\t\telem: elem,\r\n\t\t\tprops: jQuery.extend( {}, properties ),\r\n\t\t\topts: jQuery.extend( true, {\r\n\t\t\t\tspecialEasing: {},\r\n\t\t\t\teasing: jQuery.easing._default\r\n\t\t\t}, options ),\r\n\t\t\toriginalProperties: properties,\r\n\t\t\toriginalOptions: options,\r\n\t\t\tstartTime: fxNow || createFxNow(),\r\n\t\t\tduration: options.duration,\r\n\t\t\ttweens: [],\r\n\t\t\tcreateTween: function( prop, end ) {\r\n\t\t\t\tvar tween = jQuery.Tween( elem, animation.opts, prop, end,\r\n\t\t\t\t\t\tanimation.opts.specialEasing[ prop ] || animation.opts.easing );\r\n\t\t\t\tanimation.tweens.push( tween );\r\n\t\t\t\treturn tween;\r\n\t\t\t},\r\n\t\t\tstop: function( gotoEnd ) {\r\n\t\t\t\tvar index = 0,\r\n\r\n\t\t\t\t\t// If we are going to the end, we want to run all the tweens\r\n\t\t\t\t\t// otherwise we skip this part\r\n\t\t\t\t\tlength = gotoEnd ? animation.tweens.length : 0;\r\n\t\t\t\tif ( stopped ) {\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t}\r\n\t\t\t\tstopped = true;\r\n\t\t\t\tfor ( ; index < length; index++ ) {\r\n\t\t\t\t\tanimation.tweens[ index ].run( 1 );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Resolve when we played the last frame; otherwise, reject\r\n\t\t\t\tif ( gotoEnd ) {\r\n\t\t\t\t\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\r\n\t\t\t\t\tdeferred.resolveWith( elem, [ animation, gotoEnd ] );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdeferred.rejectWith( elem, [ animation, gotoEnd ] );\r\n\t\t\t\t}\r\n\t\t\t\treturn this;\r\n\t\t\t}\r\n\t\t} ),\r\n\t\tprops = animation.props;\r\n\r\n\tpropFilter( props, animation.opts.specialEasing );\r\n\r\n\tfor ( ; index < length; index++ ) {\r\n\t\tresult = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );\r\n\t\tif ( result ) {\r\n\t\t\tif ( jQuery.isFunction( result.stop ) ) {\r\n\t\t\t\tjQuery._queueHooks( animation.elem, animation.opts.queue ).stop =\r\n\t\t\t\t\tjQuery.proxy( result.stop, result );\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t\t}\r\n\t}\r\n\r\n\tjQuery.map( props, createTween, animation );\r\n\r\n\tif ( jQuery.isFunction( animation.opts.start ) ) {\r\n\t\tanimation.opts.start.call( elem, animation );\r\n\t}\r\n\r\n\tjQuery.fx.timer(\r\n\t\tjQuery.extend( tick, {\r\n\t\t\telem: elem,\r\n\t\t\tanim: animation,\r\n\t\t\tqueue: animation.opts.queue\r\n\t\t} )\r\n\t);\r\n\r\n\t// attach callbacks from options\r\n\treturn animation.progress( animation.opts.progress )\r\n\t\t.done( animation.opts.done, animation.opts.complete )\r\n\t\t.fail( animation.opts.fail )\r\n\t\t.always( animation.opts.always );\r\n}\r\n\r\njQuery.Animation = jQuery.extend( Animation, {\r\n\r\n\ttweeners: {\r\n\t\t\"*\": [ function( prop, value ) {\r\n\t\t\tvar tween = this.createTween( prop, value );\r\n\t\t\tadjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );\r\n\t\t\treturn tween;\r\n\t\t} ]\r\n\t},\r\n\r\n\ttweener: function( props, callback ) {\r\n\t\tif ( jQuery.isFunction( props ) ) {\r\n\t\t\tcallback = props;\r\n\t\t\tprops = [ \"*\" ];\r\n\t\t} else {\r\n\t\t\tprops = props.match( rnotwhite );\r\n\t\t}\r\n\r\n\t\tvar prop,\r\n\t\t\tindex = 0,\r\n\t\t\tlength = props.length;\r\n\r\n\t\tfor ( ; index < length; index++ ) {\r\n\t\t\tprop = props[ index ];\r\n\t\t\tAnimation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];\r\n\t\t\tAnimation.tweeners[ prop ].unshift( callback );\r\n\t\t}\r\n\t},\r\n\r\n\tprefilters: [ defaultPrefilter ],\r\n\r\n\tprefilter: function( callback, prepend ) {\r\n\t\tif ( prepend ) {\r\n\t\t\tAnimation.prefilters.unshift( callback );\r\n\t\t} else {\r\n\t\t\tAnimation.prefilters.push( callback );\r\n\t\t}\r\n\t}\r\n} );\r\n\r\njQuery.speed = function( speed, easing, fn ) {\r\n\tvar opt = speed && typeof speed === \"object\" ? jQuery.extend( {}, speed ) : {\r\n\t\tcomplete: fn || !fn && easing ||\r\n\t\t\tjQuery.isFunction( speed ) && speed,\r\n\t\tduration: speed,\r\n\t\teasing: fn && easing || easing && !jQuery.isFunction( easing ) && easing\r\n\t};\r\n\r\n\t// Go to the end state if fx are off or if document is hidden\r\n\tif ( jQuery.fx.off || document.hidden ) {\r\n\t\topt.duration = 0;\r\n\r\n\t} else {\r\n\t\topt.duration = typeof opt.duration === \"number\" ?\r\n\t\t\topt.duration : opt.duration in jQuery.fx.speeds ?\r\n\t\t\t\tjQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;\r\n\t}\r\n\r\n\t// Normalize opt.queue - true/undefined/null -> \"fx\"\r\n\tif ( opt.queue == null || opt.queue === true ) {\r\n\t\topt.queue = \"fx\";\r\n\t}\r\n\r\n\t// Queueing\r\n\topt.old = opt.complete;\r\n\r\n\topt.complete = function() {\r\n\t\tif ( jQuery.isFunction( opt.old ) ) {\r\n\t\t\topt.old.call( this );\r\n\t\t}\r\n\r\n\t\tif ( opt.queue ) {\r\n\t\t\tjQuery.dequeue( this, opt.queue );\r\n\t\t}\r\n\t};\r\n\r\n\treturn opt;\r\n};\r\n\r\njQuery.fn.extend( {\r\n\tfadeTo: function( speed, to, easing, callback ) {\r\n\r\n\t\t// Show any hidden elements after setting opacity to 0\r\n\t\treturn this.filter( isHiddenWithinTree ).css( \"opacity\", 0 ).show()\r\n\r\n\t\t\t// Animate to the value specified\r\n\t\t\t.end().animate( { opacity: to }, speed, easing, callback );\r\n\t},\r\n\tanimate: function( prop, speed, easing, callback ) {\r\n\t\tvar empty = jQuery.isEmptyObject( prop ),\r\n\t\t\toptall = jQuery.speed( speed, easing, callback ),\r\n\t\t\tdoAnimation = function() {\r\n\r\n\t\t\t\t// Operate on a copy of prop so per-property easing won't be lost\r\n\t\t\t\tvar anim = Animation( this, jQuery.extend( {}, prop ), optall );\r\n\r\n\t\t\t\t// Empty animations, or finishing resolves immediately\r\n\t\t\t\tif ( empty || dataPriv.get( this, \"finish\" ) ) {\r\n\t\t\t\t\tanim.stop( true );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tdoAnimation.finish = doAnimation;\r\n\r\n\t\treturn empty || optall.queue === false ?\r\n\t\t\tthis.each( doAnimation ) :\r\n\t\t\tthis.queue( optall.queue, doAnimation );\r\n\t},\r\n\tstop: function( type, clearQueue, gotoEnd ) {\r\n\t\tvar stopQueue = function( hooks ) {\r\n\t\t\tvar stop = hooks.stop;\r\n\t\t\tdelete hooks.stop;\r\n\t\t\tstop( gotoEnd );\r\n\t\t};\r\n\r\n\t\tif ( typeof type !== \"string\" ) {\r\n\t\t\tgotoEnd = clearQueue;\r\n\t\t\tclearQueue = type;\r\n\t\t\ttype = undefined;\r\n\t\t}\r\n\t\tif ( clearQueue && type !== false ) {\r\n\t\t\tthis.queue( type || \"fx\", [] );\r\n\t\t}\r\n\r\n\t\treturn this.each( function() {\r\n\t\t\tvar dequeue = true,\r\n\t\t\t\tindex = type != null && type + \"queueHooks\",\r\n\t\t\t\ttimers = jQuery.timers,\r\n\t\t\t\tdata = dataPriv.get( this );\r\n\r\n\t\t\tif ( index ) {\r\n\t\t\t\tif ( data[ index ] && data[ index ].stop ) {\r\n\t\t\t\t\tstopQueue( data[ index ] );\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor ( index in data ) {\r\n\t\t\t\t\tif ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {\r\n\t\t\t\t\t\tstopQueue( data[ index ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfor ( index = timers.length; index--; ) {\r\n\t\t\t\tif ( timers[ index ].elem === this &&\r\n\t\t\t\t\t( type == null || timers[ index ].queue === type ) ) {\r\n\r\n\t\t\t\t\ttimers[ index ].anim.stop( gotoEnd );\r\n\t\t\t\t\tdequeue = false;\r\n\t\t\t\t\ttimers.splice( index, 1 );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Start the next in the queue if the last step wasn't forced.\r\n\t\t\t// Timers currently will call their complete callbacks, which\r\n\t\t\t// will dequeue but only if they were gotoEnd.\r\n\t\t\tif ( dequeue || !gotoEnd ) {\r\n\t\t\t\tjQuery.dequeue( this, type );\r\n\t\t\t}\r\n\t\t} );\r\n\t},\r\n\tfinish: function( type ) {\r\n\t\tif ( type !== false ) {\r\n\t\t\ttype = type || \"fx\";\r\n\t\t}\r\n\t\treturn this.each( function() {\r\n\t\t\tvar index,\r\n\t\t\t\tdata = dataPriv.get( this ),\r\n\t\t\t\tqueue = data[ type + \"queue\" ],\r\n\t\t\t\thooks = data[ type + \"queueHooks\" ],\r\n\t\t\t\ttimers = jQuery.timers,\r\n\t\t\t\tlength = queue ? queue.length : 0;\r\n\r\n\t\t\t// Enable finishing flag on private data\r\n\t\t\tdata.finish = true;\r\n\r\n\t\t\t// Empty the queue first\r\n\t\t\tjQuery.queue( this, type, [] );\r\n\r\n\t\t\tif ( hooks && hooks.stop ) {\r\n\t\t\t\thooks.stop.call( this, true );\r\n\t\t\t}\r\n\r\n\t\t\t// Look for any active animations, and finish them\r\n\t\t\tfor ( index = timers.length; index--; ) {\r\n\t\t\t\tif ( timers[ index ].elem === this && timers[ index ].queue === type ) {\r\n\t\t\t\t\ttimers[ index ].anim.stop( true );\r\n\t\t\t\t\ttimers.splice( index, 1 );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Look for any animations in the old queue and finish them\r\n\t\t\tfor ( index = 0; index < length; index++ ) {\r\n\t\t\t\tif ( queue[ index ] && queue[ index ].finish ) {\r\n\t\t\t\t\tqueue[ index ].finish.call( this );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Turn off finishing flag\r\n\t\t\tdelete data.finish;\r\n\t\t} );\r\n\t}\r\n} );\r\n\r\njQuery.each( [ \"toggle\", \"show\", \"hide\" ], function( i, name ) {\r\n\tvar cssFn = jQuery.fn[ name ];\r\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\r\n\t\treturn speed == null || typeof speed === \"boolean\" ?\r\n\t\t\tcssFn.apply( this, arguments ) :\r\n\t\t\tthis.animate( genFx( name, true ), speed, easing, callback );\r\n\t};\r\n} );\r\n\r\n// Generate shortcuts for custom animations\r\njQuery.each( {\r\n\tslideDown: genFx( \"show\" ),\r\n\tslideUp: genFx( \"hide\" ),\r\n\tslideToggle: genFx( \"toggle\" ),\r\n\tfadeIn: { opacity: \"show\" },\r\n\tfadeOut: { opacity: \"hide\" },\r\n\tfadeToggle: { opacity: \"toggle\" }\r\n}, function( name, props ) {\r\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\r\n\t\treturn this.animate( props, speed, easing, callback );\r\n\t};\r\n} );\r\n\r\njQuery.timers = [];\r\njQuery.fx.tick = function() {\r\n\tvar timer,\r\n\t\ti = 0,\r\n\t\ttimers = jQuery.timers;\r\n\r\n\tfxNow = jQuery.now();\r\n\r\n\tfor ( ; i < timers.length; i++ ) {\r\n\t\ttimer = timers[ i ];\r\n\r\n\t\t// Checks the timer has not already been removed\r\n\t\tif ( !timer() && timers[ i ] === timer ) {\r\n\t\t\ttimers.splice( i--, 1 );\r\n\t\t}\r\n\t}\r\n\r\n\tif ( !timers.length ) {\r\n\t\tjQuery.fx.stop();\r\n\t}\r\n\tfxNow = undefined;\r\n};\r\n\r\njQuery.fx.timer = function( timer ) {\r\n\tjQuery.timers.push( timer );\r\n\tif ( timer() ) {\r\n\t\tjQuery.fx.start();\r\n\t} else {\r\n\t\tjQuery.timers.pop();\r\n\t}\r\n};\r\n\r\njQuery.fx.interval = 13;\r\njQuery.fx.start = function() {\r\n\tif ( !timerId ) {\r\n\t\ttimerId = window.requestAnimationFrame ?\r\n\t\t\twindow.requestAnimationFrame( raf ) :\r\n\t\t\twindow.setInterval( jQuery.fx.tick, jQuery.fx.interval );\r\n\t}\r\n};\r\n\r\njQuery.fx.stop = function() {\r\n\tif ( window.cancelAnimationFrame ) {\r\n\t\twindow.cancelAnimationFrame( timerId );\r\n\t} else {\r\n\t\twindow.clearInterval( timerId );\r\n\t}\r\n\r\n\ttimerId = null;\r\n};\r\n\r\njQuery.fx.speeds = {\r\n\tslow: 600,\r\n\tfast: 200,\r\n\r\n\t// Default speed\r\n\t_default: 400\r\n};\r\n\r\n\r\n// Based off of the plugin by Clint Helfers, with permission.\r\n// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/\r\njQuery.fn.delay = function( time, type ) {\r\n\ttime = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;\r\n\ttype = type || \"fx\";\r\n\r\n\treturn this.queue( type, function( next, hooks ) {\r\n\t\tvar timeout = window.setTimeout( next, time );\r\n\t\thooks.stop = function() {\r\n\t\t\twindow.clearTimeout( timeout );\r\n\t\t};\r\n\t} );\r\n};\r\n\r\n\r\n( function() {\r\n\tvar input = document.createElement( \"input\" ),\r\n\t\tselect = document.createElement( \"select\" ),\r\n\t\topt = select.appendChild( document.createElement( \"option\" ) );\r\n\r\n\tinput.type = \"checkbox\";\r\n\r\n\t// Support: Android <=4.3 only\r\n\t// Default value for a checkbox should be \"on\"\r\n\tsupport.checkOn = input.value !== \"\";\r\n\r\n\t// Support: IE <=11 only\r\n\t// Must access selectedIndex to make default options select\r\n\tsupport.optSelected = opt.selected;\r\n\r\n\t// Support: IE <=11 only\r\n\t// An input loses its value after becoming a radio\r\n\tinput = document.createElement( \"input\" );\r\n\tinput.value = \"t\";\r\n\tinput.type = \"radio\";\r\n\tsupport.radioValue = input.value === \"t\";\r\n} )();\r\n\r\n\r\nvar boolHook,\r\n\tattrHandle = jQuery.expr.attrHandle;\r\n\r\njQuery.fn.extend( {\r\n\tattr: function( name, value ) {\r\n\t\treturn access( this, jQuery.attr, name, value, arguments.length > 1 );\r\n\t},\r\n\r\n\tremoveAttr: function( name ) {\r\n\t\treturn this.each( function() {\r\n\t\t\tjQuery.removeAttr( this, name );\r\n\t\t} );\r\n\t}\r\n} );\r\n\r\njQuery.extend( {\r\n\tattr: function( elem, name, value ) {\r\n\t\tvar ret, hooks,\r\n\t\t\tnType = elem.nodeType;\r\n\r\n\t\t// Don't get/set attributes on text, comment and attribute nodes\r\n\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Fallback to prop when attributes are not supported\r\n\t\tif ( typeof elem.getAttribute === \"undefined\" ) {\r\n\t\t\treturn jQuery.prop( elem, name, value );\r\n\t\t}\r\n\r\n\t\t// Attribute hooks are determined by the lowercase version\r\n\t\t// Grab necessary hook if one is defined\r\n\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\r\n\t\t\thooks = jQuery.attrHooks[ name.toLowerCase() ] ||\r\n\t\t\t\t( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );\r\n\t\t}\r\n\r\n\t\tif ( value !== undefined ) {\r\n\t\t\tif ( value === null ) {\r\n\t\t\t\tjQuery.removeAttr( elem, name );\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif ( hooks && \"set\" in hooks &&\r\n\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\r\n\t\t\t\treturn ret;\r\n\t\t\t}\r\n\r\n\t\t\telem.setAttribute( name, value + \"\" );\r\n\t\t\treturn value;\r\n\t\t}\r\n\r\n\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\r\n\t\t\treturn ret;\r\n\t\t}\r\n\r\n\t\tret = jQuery.find.attr( elem, name );\r\n\r\n\t\t// Non-existent attributes return null, we normalize to undefined\r\n\t\treturn ret == null ? undefined : ret;\r\n\t},\r\n\r\n\tattrHooks: {\r\n\t\ttype: {\r\n\t\t\tset: function( elem, value ) {\r\n\t\t\t\tif ( !support.radioValue && value === \"radio\" &&\r\n\t\t\t\t\tjQuery.nodeName( elem, \"input\" ) ) {\r\n\t\t\t\t\tvar val = elem.value;\r\n\t\t\t\t\telem.setAttribute( \"type\", value );\r\n\t\t\t\t\tif ( val ) {\r\n\t\t\t\t\t\telem.value = val;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tremoveAttr: function( elem, value ) {\r\n\t\tvar name,\r\n\t\t\ti = 0,\r\n\t\t\tattrNames = value && value.match( rnotwhite );\r\n\r\n\t\tif ( attrNames && elem.nodeType === 1 ) {\r\n\t\t\twhile ( ( name = attrNames[ i++ ] ) ) {\r\n\t\t\t\telem.removeAttribute( name );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n} );\r\n\r\n// Hooks for boolean attributes\r\nboolHook = {\r\n\tset: function( elem, value, name ) {\r\n\t\tif ( value === false ) {\r\n\r\n\t\t\t// Remove boolean attributes when set to false\r\n\t\t\tjQuery.removeAttr( elem, name );\r\n\t\t} else {\r\n\t\t\telem.setAttribute( name, name );\r\n\t\t}\r\n\t\treturn name;\r\n\t}\r\n};\r\n\r\njQuery.each( jQuery.expr.match.bool.source.match( /\\w+/g ), function( i, name ) {\r\n\tvar getter = attrHandle[ name ] || jQuery.find.attr;\r\n\r\n\tattrHandle[ name ] = function( elem, name, isXML ) {\r\n\t\tvar ret, handle,\r\n\t\t\tlowercaseName = name.toLowerCase();\r\n\r\n\t\tif ( !isXML ) {\r\n\r\n\t\t\t// Avoid an infinite loop by temporarily removing this function from the getter\r\n\t\t\thandle = attrHandle[ lowercaseName ];\r\n\t\t\tattrHandle[ lowercaseName ] = ret;\r\n\t\t\tret = getter( elem, name, isXML ) != null ?\r\n\t\t\t\tlowercaseName :\r\n\t\t\t\tnull;\r\n\t\t\tattrHandle[ lowercaseName ] = handle;\r\n\t\t}\r\n\t\treturn ret;\r\n\t};\r\n} );\r\n\r\n\r\n\r\n\r\nvar rfocusable = /^(?:input|select|textarea|button)$/i,\r\n\trclickable = /^(?:a|area)$/i;\r\n\r\njQuery.fn.extend( {\r\n\tprop: function( name, value ) {\r\n\t\treturn access( this, jQuery.prop, name, value, arguments.length > 1 );\r\n\t},\r\n\r\n\tremoveProp: function( name ) {\r\n\t\treturn this.each( function() {\r\n\t\t\tdelete this[ jQuery.propFix[ name ] || name ];\r\n\t\t} );\r\n\t}\r\n} );\r\n\r\njQuery.extend( {\r\n\tprop: function( elem, name, value ) {\r\n\t\tvar ret, hooks,\r\n\t\t\tnType = elem.nodeType;\r\n\r\n\t\t// Don't get/set properties on text, comment and attribute nodes\r\n\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\r\n\r\n\t\t\t// Fix name and attach hooks\r\n\t\t\tname = jQuery.propFix[ name ] || name;\r\n\t\t\thooks = jQuery.propHooks[ name ];\r\n\t\t}\r\n\r\n\t\tif ( value !== undefined ) {\r\n\t\t\tif ( hooks && \"set\" in hooks &&\r\n\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\r\n\t\t\t\treturn ret;\r\n\t\t\t}\r\n\r\n\t\t\treturn ( elem[ name ] = value );\r\n\t\t}\r\n\r\n\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\r\n\t\t\treturn ret;\r\n\t\t}\r\n\r\n\t\treturn elem[ name ];\r\n\t},\r\n\r\n\tpropHooks: {\r\n\t\ttabIndex: {\r\n\t\t\tget: function( elem ) {\r\n\r\n\t\t\t\t// Support: IE <=9 - 11 only\r\n\t\t\t\t// elem.tabIndex doesn't always return the\r\n\t\t\t\t// correct value when it hasn't been explicitly set\r\n\t\t\t\t// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\r\n\t\t\t\t// Use proper attribute retrieval(#12072)\r\n\t\t\t\tvar tabindex = jQuery.find.attr( elem, \"tabindex\" );\r\n\r\n\t\t\t\treturn tabindex ?\r\n\t\t\t\t\tparseInt( tabindex, 10 ) :\r\n\t\t\t\t\trfocusable.test( elem.nodeName ) ||\r\n\t\t\t\t\t\trclickable.test( elem.nodeName ) && elem.href ?\r\n\t\t\t\t\t\t\t0 :\r\n\t\t\t\t\t\t\t-1;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\tpropFix: {\r\n\t\t\"for\": \"htmlFor\",\r\n\t\t\"class\": \"className\"\r\n\t}\r\n} );\r\n\r\n// Support: IE <=11 only\r\n// Accessing the selectedIndex property\r\n// forces the browser to respect setting selected\r\n// on the option\r\n// The getter ensures a default option is selected\r\n// when in an optgroup\r\nif ( !support.optSelected ) {\r\n\tjQuery.propHooks.selected = {\r\n\t\tget: function( elem ) {\r\n\t\t\tvar parent = elem.parentNode;\r\n\t\t\tif ( parent && parent.parentNode ) {\r\n\t\t\t\tparent.parentNode.selectedIndex;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t},\r\n\t\tset: function( elem ) {\r\n\t\t\tvar parent = elem.parentNode;\r\n\t\t\tif ( parent ) {\r\n\t\t\t\tparent.selectedIndex;\r\n\r\n\t\t\t\tif ( parent.parentNode ) {\r\n\t\t\t\t\tparent.parentNode.selectedIndex;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n}\r\n\r\njQuery.each( [\r\n\t\"tabIndex\",\r\n\t\"readOnly\",\r\n\t\"maxLength\",\r\n\t\"cellSpacing\",\r\n\t\"cellPadding\",\r\n\t\"rowSpan\",\r\n\t\"colSpan\",\r\n\t\"useMap\",\r\n\t\"frameBorder\",\r\n\t\"contentEditable\"\r\n], function() {\r\n\tjQuery.propFix[ this.toLowerCase() ] = this;\r\n} );\r\n\r\n\r\n\r\n\r\nvar rclass = /[\\t\\r\\n\\f]/g;\r\n\r\nfunction getClass( elem ) {\r\n\treturn elem.getAttribute && elem.getAttribute( \"class\" ) || \"\";\r\n}\r\n\r\njQuery.fn.extend( {\r\n\taddClass: function( value ) {\r\n\t\tvar classes, elem, cur, curValue, clazz, j, finalValue,\r\n\t\t\ti = 0;\r\n\r\n\t\tif ( jQuery.isFunction( value ) ) {\r\n\t\t\treturn this.each( function( j ) {\r\n\t\t\t\tjQuery( this ).addClass( value.call( this, j, getClass( this ) ) );\r\n\t\t\t} );\r\n\t\t}\r\n\r\n\t\tif ( typeof value === \"string\" && value ) {\r\n\t\t\tclasses = value.match( rnotwhite ) || [];\r\n\r\n\t\t\twhile ( ( elem = this[ i++ ] ) ) {\r\n\t\t\t\tcurValue = getClass( elem );\r\n\t\t\t\tcur = elem.nodeType === 1 &&\r\n\t\t\t\t\t( \" \" + curValue + \" \" ).replace( rclass, \" \" );\r\n\r\n\t\t\t\tif ( cur ) {\r\n\t\t\t\t\tj = 0;\r\n\t\t\t\t\twhile ( ( clazz = classes[ j++ ] ) ) {\r\n\t\t\t\t\t\tif ( cur.indexOf( \" \" + clazz + \" \" ) < 0 ) {\r\n\t\t\t\t\t\t\tcur += clazz + \" \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\r\n\t\t\t\t\tfinalValue = jQuery.trim( cur );\r\n\t\t\t\t\tif ( curValue !== finalValue ) {\r\n\t\t\t\t\t\telem.setAttribute( \"class\", finalValue );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\tremoveClass: function( value ) {\r\n\t\tvar classes, elem, cur, curValue, clazz, j, finalValue,\r\n\t\t\ti = 0;\r\n\r\n\t\tif ( jQuery.isFunction( value ) ) {\r\n\t\t\treturn this.each( function( j ) {\r\n\t\t\t\tjQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );\r\n\t\t\t} );\r\n\t\t}\r\n\r\n\t\tif ( !arguments.length ) {\r\n\t\t\treturn this.attr( \"class\", \"\" );\r\n\t\t}\r\n\r\n\t\tif ( typeof value === \"string\" && value ) {\r\n\t\t\tclasses = value.match( rnotwhite ) || [];\r\n\r\n\t\t\twhile ( ( elem = this[ i++ ] ) ) {\r\n\t\t\t\tcurValue = getClass( elem );\r\n\r\n\t\t\t\t// This expression is here for better compressibility (see addClass)\r\n\t\t\t\tcur = elem.nodeType === 1 &&\r\n\t\t\t\t\t( \" \" + curValue + \" \" ).replace( rclass, \" \" );\r\n\r\n\t\t\t\tif ( cur ) {\r\n\t\t\t\t\tj = 0;\r\n\t\t\t\t\twhile ( ( clazz = classes[ j++ ] ) ) {\r\n\r\n\t\t\t\t\t\t// Remove *all* instances\r\n\t\t\t\t\t\twhile ( cur.indexOf( \" \" + clazz + \" \" ) > -1 ) {\r\n\t\t\t\t\t\t\tcur = cur.replace( \" \" + clazz + \" \", \" \" );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\r\n\t\t\t\t\tfinalValue = jQuery.trim( cur );\r\n\t\t\t\t\tif ( curValue !== finalValue ) {\r\n\t\t\t\t\t\telem.setAttribute( \"class\", finalValue );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\ttoggleClass: function( value, stateVal ) {\r\n\t\tvar type = typeof value;\r\n\r\n\t\tif ( typeof stateVal === \"boolean\" && type === \"string\" ) {\r\n\t\t\treturn stateVal ? this.addClass( value ) : this.removeClass( value );\r\n\t\t}\r\n\r\n\t\tif ( jQuery.isFunction( value ) ) {\r\n\t\t\treturn this.each( function( i ) {\r\n\t\t\t\tjQuery( this ).toggleClass(\r\n\t\t\t\t\tvalue.call( this, i, getClass( this ), stateVal ),\r\n\t\t\t\t\tstateVal\r\n\t\t\t\t);\r\n\t\t\t} );\r\n\t\t}\r\n\r\n\t\treturn this.each( function() {\r\n\t\t\tvar className, i, self, classNames;\r\n\r\n\t\t\tif ( type === \"string\" ) {\r\n\r\n\t\t\t\t// Toggle individual class names\r\n\t\t\t\ti = 0;\r\n\t\t\t\tself = jQuery( this );\r\n\t\t\t\tclassNames = value.match( rnotwhite ) || [];\r\n\r\n\t\t\t\twhile ( ( className = classNames[ i++ ] ) ) {\r\n\r\n\t\t\t\t\t// Check each className given, space separated list\r\n\t\t\t\t\tif ( self.hasClass( className ) ) {\r\n\t\t\t\t\t\tself.removeClass( className );\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tself.addClass( className );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t// Toggle whole class name\r\n\t\t\t} else if ( value === undefined || type === \"boolean\" ) {\r\n\t\t\t\tclassName = getClass( this );\r\n\t\t\t\tif ( className ) {\r\n\r\n\t\t\t\t\t// Store className if set\r\n\t\t\t\t\tdataPriv.set( this, \"__className__\", className );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// If the element has a class name or if we're passed `false`,\r\n\t\t\t\t// then remove the whole classname (if there was one, the above saved it).\r\n\t\t\t\t// Otherwise bring back whatever was previously saved (if anything),\r\n\t\t\t\t// falling back to the empty string if nothing was stored.\r\n\t\t\t\tif ( this.setAttribute ) {\r\n\t\t\t\t\tthis.setAttribute( \"class\",\r\n\t\t\t\t\t\tclassName || value === false ?\r\n\t\t\t\t\t\t\"\" :\r\n\t\t\t\t\t\tdataPriv.get( this, \"__className__\" ) || \"\"\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t},\r\n\r\n\thasClass: function( selector ) {\r\n\t\tvar className, elem,\r\n\t\t\ti = 0;\r\n\r\n\t\tclassName = \" \" + selector + \" \";\r\n\t\twhile ( ( elem = this[ i++ ] ) ) {\r\n\t\t\tif ( elem.nodeType === 1 &&\r\n\t\t\t\t( \" \" + getClass( elem ) + \" \" ).replace( rclass, \" \" )\r\n\t\t\t\t\t.indexOf( className ) > -1\r\n\t\t\t) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n} );\r\n\r\n\r\n\r\n\r\nvar rreturn = /\\r/g,\r\n\trspaces = /[\\x20\\t\\r\\n\\f]+/g;\r\n\r\njQuery.fn.extend( {\r\n\tval: function( value ) {\r\n\t\tvar hooks, ret, isFunction,\r\n\t\t\telem = this[ 0 ];\r\n\r\n\t\tif ( !arguments.length ) {\r\n\t\t\tif ( elem ) {\r\n\t\t\t\thooks = jQuery.valHooks[ elem.type ] ||\r\n\t\t\t\t\tjQuery.valHooks[ elem.nodeName.toLowerCase() ];\r\n\r\n\t\t\t\tif ( hooks &&\r\n\t\t\t\t\t\"get\" in hooks &&\r\n\t\t\t\t\t( ret = hooks.get( elem, \"value\" ) ) !== undefined\r\n\t\t\t\t) {\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tret = elem.value;\r\n\r\n\t\t\t\treturn typeof ret === \"string\" ?\r\n\r\n\t\t\t\t\t// Handle most common string cases\r\n\t\t\t\t\tret.replace( rreturn, \"\" ) :\r\n\r\n\t\t\t\t\t// Handle cases where value is null/undef or number\r\n\t\t\t\t\tret == null ? \"\" : ret;\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tisFunction = jQuery.isFunction( value );\r\n\r\n\t\treturn this.each( function( i ) {\r\n\t\t\tvar val;\r\n\r\n\t\t\tif ( this.nodeType !== 1 ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif ( isFunction ) {\r\n\t\t\t\tval = value.call( this, i, jQuery( this ).val() );\r\n\t\t\t} else {\r\n\t\t\t\tval = value;\r\n\t\t\t}\r\n\r\n\t\t\t// Treat null/undefined as \"\"; convert numbers to string\r\n\t\t\tif ( val == null ) {\r\n\t\t\t\tval = \"\";\r\n\r\n\t\t\t} else if ( typeof val === \"number\" ) {\r\n\t\t\t\tval += \"\";\r\n\r\n\t\t\t} else if ( jQuery.isArray( val ) ) {\r\n\t\t\t\tval = jQuery.map( val, function( value ) {\r\n\t\t\t\t\treturn value == null ? \"\" : value + \"\";\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\r\n\t\t\thooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\r\n\r\n\t\t\t// If set returns undefined, fall back to normal setting\r\n\t\t\tif ( !hooks || !( \"set\" in hooks ) || hooks.set( this, val, \"value\" ) === undefined ) {\r\n\t\t\t\tthis.value = val;\r\n\t\t\t}\r\n\t\t} );\r\n\t}\r\n} );\r\n\r\njQuery.extend( {\r\n\tvalHooks: {\r\n\t\toption: {\r\n\t\t\tget: function( elem ) {\r\n\r\n\t\t\t\tvar val = jQuery.find.attr( elem, \"value\" );\r\n\t\t\t\treturn val != null ?\r\n\t\t\t\t\tval :\r\n\r\n\t\t\t\t\t// Support: IE <=10 - 11 only\r\n\t\t\t\t\t// option.text throws exceptions (#14686, #14858)\r\n\t\t\t\t\t// Strip and collapse whitespace\r\n\t\t\t\t\t// https://html.spec.whatwg.org/#strip-and-collapse-whitespace\r\n\t\t\t\t\tjQuery.trim( jQuery.text( elem ) ).replace( rspaces, \" \" );\r\n\t\t\t}\r\n\t\t},\r\n\t\tselect: {\r\n\t\t\tget: function( elem ) {\r\n\t\t\t\tvar value, option,\r\n\t\t\t\t\toptions = elem.options,\r\n\t\t\t\t\tindex = elem.selectedIndex,\r\n\t\t\t\t\tone = elem.type === \"select-one\",\r\n\t\t\t\t\tvalues = one ? null : [],\r\n\t\t\t\t\tmax = one ? index + 1 : options.length,\r\n\t\t\t\t\ti = index < 0 ?\r\n\t\t\t\t\t\tmax :\r\n\t\t\t\t\t\tone ? index : 0;\r\n\r\n\t\t\t\t// Loop through all the selected options\r\n\t\t\t\tfor ( ; i < max; i++ ) {\r\n\t\t\t\t\toption = options[ i ];\r\n\r\n\t\t\t\t\t// Support: IE <=9 only\r\n\t\t\t\t\t// IE8-9 doesn't update selected after form reset (#2551)\r\n\t\t\t\t\tif ( ( option.selected || i === index ) &&\r\n\r\n\t\t\t\t\t\t\t// Don't return options that are disabled or in a disabled optgroup\r\n\t\t\t\t\t\t\t!option.disabled &&\r\n\t\t\t\t\t\t\t( !option.parentNode.disabled ||\r\n\t\t\t\t\t\t\t\t!jQuery.nodeName( option.parentNode, \"optgroup\" ) ) ) {\r\n\r\n\t\t\t\t\t\t// Get the specific value for the option\r\n\t\t\t\t\t\tvalue = jQuery( option ).val();\r\n\r\n\t\t\t\t\t\t// We don't need an array for one selects\r\n\t\t\t\t\t\tif ( one ) {\r\n\t\t\t\t\t\t\treturn value;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Multi-Selects return an array\r\n\t\t\t\t\t\tvalues.push( value );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn values;\r\n\t\t\t},\r\n\r\n\t\t\tset: function( elem, value ) {\r\n\t\t\t\tvar optionSet, option,\r\n\t\t\t\t\toptions = elem.options,\r\n\t\t\t\t\tvalues = jQuery.makeArray( value ),\r\n\t\t\t\t\ti = options.length;\r\n\r\n\t\t\t\twhile ( i-- ) {\r\n\t\t\t\t\toption = options[ i ];\r\n\r\n\t\t\t\t\t/* eslint-disable no-cond-assign */\r\n\r\n\t\t\t\t\tif ( option.selected =\r\n\t\t\t\t\t\tjQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\toptionSet = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* eslint-enable no-cond-assign */\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Force browsers to behave consistently when non-matching value is set\r\n\t\t\t\tif ( !optionSet ) {\r\n\t\t\t\t\telem.selectedIndex = -1;\r\n\t\t\t\t}\r\n\t\t\t\treturn values;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n} );\r\n\r\n// Radios and checkboxes getter/setter\r\njQuery.each( [ \"radio\", \"checkbox\" ], function() {\r\n\tjQuery.valHooks[ this ] = {\r\n\t\tset: function( elem, value ) {\r\n\t\t\tif ( jQuery.isArray( value ) ) {\r\n\t\t\t\treturn ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\tif ( !support.checkOn ) {\r\n\t\tjQuery.valHooks[ this ].get = function( elem ) {\r\n\t\t\treturn elem.getAttribute( \"value\" ) === null ? \"on\" : elem.value;\r\n\t\t};\r\n\t}\r\n} );\r\n\r\n\r\n\r\n\r\n// Return jQuery for attributes-only inclusion\r\n\r\n\r\nvar rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;\r\n\r\njQuery.extend( jQuery.event, {\r\n\r\n\ttrigger: function( event, data, elem, onlyHandlers ) {\r\n\r\n\t\tvar i, cur, tmp, bubbleType, ontype, handle, special,\r\n\t\t\teventPath = [ elem || document ],\r\n\t\t\ttype = hasOwn.call( event, \"type\" ) ? event.type : event,\r\n\t\t\tnamespaces = hasOwn.call( event, \"namespace\" ) ? event.namespace.split( \".\" ) : [];\r\n\r\n\t\tcur = tmp = elem = elem || document;\r\n\r\n\t\t// Don't do events on text and comment nodes\r\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// focus/blur morphs to focusin/out; ensure we're not firing them right now\r\n\t\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( type.indexOf( \".\" ) > -1 ) {\r\n\r\n\t\t\t// Namespaced trigger; create a regexp to match event type in handle()\r\n\t\t\tnamespaces = type.split( \".\" );\r\n\t\t\ttype = namespaces.shift();\r\n\t\t\tnamespaces.sort();\r\n\t\t}\r\n\t\tontype = type.indexOf( \":\" ) < 0 && \"on\" + type;\r\n\r\n\t\t// Caller can pass in a jQuery.Event object, Object, or just an event type string\r\n\t\tevent = event[ jQuery.expando ] ?\r\n\t\t\tevent :\r\n\t\t\tnew jQuery.Event( type, typeof event === \"object\" && event );\r\n\r\n\t\t// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)\r\n\t\tevent.isTrigger = onlyHandlers ? 2 : 3;\r\n\t\tevent.namespace = namespaces.join( \".\" );\r\n\t\tevent.rnamespace = event.namespace ?\r\n\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" ) :\r\n\t\t\tnull;\r\n\r\n\t\t// Clean up the event in case it is being reused\r\n\t\tevent.result = undefined;\r\n\t\tif ( !event.target ) {\r\n\t\t\tevent.target = elem;\r\n\t\t}\r\n\r\n\t\t// Clone any incoming data and prepend the event, creating the handler arg list\r\n\t\tdata = data == null ?\r\n\t\t\t[ event ] :\r\n\t\t\tjQuery.makeArray( data, [ event ] );\r\n\r\n\t\t// Allow special events to draw outside the lines\r\n\t\tspecial = jQuery.event.special[ type ] || {};\r\n\t\tif ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Determine event propagation path in advance, per W3C events spec (#9951)\r\n\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\r\n\t\tif ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {\r\n\r\n\t\t\tbubbleType = special.delegateType || type;\r\n\t\t\tif ( !rfocusMorph.test( bubbleType + type ) ) {\r\n\t\t\t\tcur = cur.parentNode;\r\n\t\t\t}\r\n\t\t\tfor ( ; cur; cur = cur.parentNode ) {\r\n\t\t\t\teventPath.push( cur );\r\n\t\t\t\ttmp = cur;\r\n\t\t\t}\r\n\r\n\t\t\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\r\n\t\t\tif ( tmp === ( elem.ownerDocument || document ) ) {\r\n\t\t\t\teventPath.push( tmp.defaultView || tmp.parentWindow || window );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Fire handlers on the event path\r\n\t\ti = 0;\r\n\t\twhile ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {\r\n\r\n\t\t\tevent.type = i > 1 ?\r\n\t\t\t\tbubbleType :\r\n\t\t\t\tspecial.bindType || type;\r\n\r\n\t\t\t// jQuery handler\r\n\t\t\thandle = ( dataPriv.get( cur, \"events\" ) || {} )[ event.type ] &&\r\n\t\t\t\tdataPriv.get( cur, \"handle\" );\r\n\t\t\tif ( handle ) {\r\n\t\t\t\thandle.apply( cur, data );\r\n\t\t\t}\r\n\r\n\t\t\t// Native handler\r\n\t\t\thandle = ontype && cur[ ontype ];\r\n\t\t\tif ( handle && handle.apply && acceptData( cur ) ) {\r\n\t\t\t\tevent.result = handle.apply( cur, data );\r\n\t\t\t\tif ( event.result === false ) {\r\n\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tevent.type = type;\r\n\r\n\t\t// If nobody prevented the default action, do it now\r\n\t\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\r\n\r\n\t\t\tif ( ( !special._default ||\r\n\t\t\t\tspecial._default.apply( eventPath.pop(), data ) === false ) &&\r\n\t\t\t\tacceptData( elem ) ) {\r\n\r\n\t\t\t\t// Call a native DOM method on the target with the same name as the event.\r\n\t\t\t\t// Don't do default actions on window, that's where global variables be (#6170)\r\n\t\t\t\tif ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {\r\n\r\n\t\t\t\t\t// Don't re-trigger an onFOO event when we call its FOO() method\r\n\t\t\t\t\ttmp = elem[ ontype ];\r\n\r\n\t\t\t\t\tif ( tmp ) {\r\n\t\t\t\t\t\telem[ ontype ] = null;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// Prevent re-triggering of the same event, since we already bubbled it above\r\n\t\t\t\t\tjQuery.event.triggered = type;\r\n\t\t\t\t\telem[ type ]();\r\n\t\t\t\t\tjQuery.event.triggered = undefined;\r\n\r\n\t\t\t\t\tif ( tmp ) {\r\n\t\t\t\t\t\telem[ ontype ] = tmp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn event.result;\r\n\t},\r\n\r\n\t// Piggyback on a donor event to simulate a different one\r\n\t// Used only for `focus(in | out)` events\r\n\tsimulate: function( type, elem, event ) {\r\n\t\tvar e = jQuery.extend(\r\n\t\t\tnew jQuery.Event(),\r\n\t\t\tevent,\r\n\t\t\t{\r\n\t\t\t\ttype: type,\r\n\t\t\t\tisSimulated: true\r\n\t\t\t}\r\n\t\t);\r\n\r\n\t\tjQuery.event.trigger( e, null, elem );\r\n\t}\r\n\r\n} );\r\n\r\njQuery.fn.extend( {\r\n\r\n\ttrigger: function( type, data ) {\r\n\t\treturn this.each( function() {\r\n\t\t\tjQuery.event.trigger( type, data, this );\r\n\t\t} );\r\n\t},\r\n\ttriggerHandler: function( type, data ) {\r\n\t\tvar elem = this[ 0 ];\r\n\t\tif ( elem ) {\r\n\t\t\treturn jQuery.event.trigger( type, data, elem, true );\r\n\t\t}\r\n\t}\r\n} );\r\n\r\n\r\njQuery.each( ( \"blur focus focusin focusout resize scroll click dblclick \" +\r\n\t\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \" +\r\n\t\"change select submit keydown keypress keyup contextmenu\" ).split( \" \" ),\r\n\tfunction( i, name ) {\r\n\r\n\t// Handle event binding\r\n\tjQuery.fn[ name ] = function( data, fn ) {\r\n\t\treturn arguments.length > 0 ?\r\n\t\t\tthis.on( name, null, data, fn ) :\r\n\t\t\tthis.trigger( name );\r\n\t};\r\n} );\r\n\r\njQuery.fn.extend( {\r\n\thover: function( fnOver, fnOut ) {\r\n\t\treturn this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\r\n\t}\r\n} );\r\n\r\n\r\n\r\n\r\nsupport.focusin = \"onfocusin\" in window;\r\n\r\n\r\n// Support: Firefox <=44\r\n// Firefox doesn't have focus(in | out) events\r\n// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787\r\n//\r\n// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1\r\n// focus(in | out) events fire after focus & blur events,\r\n// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order\r\n// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857\r\nif ( !support.focusin ) {\r\n\tjQuery.each( { focus: \"focusin\", blur: \"focusout\" }, function( orig, fix ) {\r\n\r\n\t\t// Attach a single capturing handler on the document while someone wants focusin/focusout\r\n\t\tvar handler = function( event ) {\r\n\t\t\tjQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );\r\n\t\t};\r\n\r\n\t\tjQuery.event.special[ fix ] = {\r\n\t\t\tsetup: function() {\r\n\t\t\t\tvar doc = this.ownerDocument || this,\r\n\t\t\t\t\tattaches = dataPriv.access( doc, fix );\r\n\r\n\t\t\t\tif ( !attaches ) {\r\n\t\t\t\t\tdoc.addEventListener( orig, handler, true );\r\n\t\t\t\t}\r\n\t\t\t\tdataPriv.access( doc, fix, ( attaches || 0 ) + 1 );\r\n\t\t\t},\r\n\t\t\tteardown: function() {\r\n\t\t\t\tvar doc = this.ownerDocument || this,\r\n\t\t\t\t\tattaches = dataPriv.access( doc, fix ) - 1;\r\n\r\n\t\t\t\tif ( !attaches ) {\r\n\t\t\t\t\tdoc.removeEventListener( orig, handler, true );\r\n\t\t\t\t\tdataPriv.remove( doc, fix );\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdataPriv.access( doc, fix, attaches );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t} );\r\n}\r\nvar location = window.location;\r\n\r\nvar nonce = jQuery.now();\r\n\r\nvar rquery = ( /\\?/ );\r\n\r\n\r\n\r\n// Cross-browser xml parsing\r\njQuery.parseXML = function( data ) {\r\n\tvar xml;\r\n\tif ( !data || typeof data !== \"string\" ) {\r\n\t\treturn null;\r\n\t}\r\n\r\n\t// Support: IE 9 - 11 only\r\n\t// IE throws on parseFromString with invalid input.\r\n\ttry {\r\n\t\txml = ( new window.DOMParser() ).parseFromString( data, \"text/xml\" );\r\n\t} catch ( e ) {\r\n\t\txml = undefined;\r\n\t}\r\n\r\n\tif ( !xml || xml.getElementsByTagName( \"parsererror\" ).length ) {\r\n\t\tjQuery.error( \"Invalid XML: \" + data );\r\n\t}\r\n\treturn xml;\r\n};\r\n\r\n\r\nvar\r\n\trbracket = /\\[\\]$/,\r\n\trCRLF = /\\r?\\n/g,\r\n\trsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,\r\n\trsubmittable = /^(?:input|select|textarea|keygen)/i;\r\n\r\nfunction buildParams( prefix, obj, traditional, add ) {\r\n\tvar name;\r\n\r\n\tif ( jQuery.isArray( obj ) ) {\r\n\r\n\t\t// Serialize array item.\r\n\t\tjQuery.each( obj, function( i, v ) {\r\n\t\t\tif ( traditional || rbracket.test( prefix ) ) {\r\n\r\n\t\t\t\t// Treat each array item as a scalar.\r\n\t\t\t\tadd( prefix, v );\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// Item is non-scalar (array or object), encode its numeric index.\r\n\t\t\t\tbuildParams(\r\n\t\t\t\t\tprefix + \"[\" + ( typeof v === \"object\" && v != null ? i : \"\" ) + \"]\",\r\n\t\t\t\t\tv,\r\n\t\t\t\t\ttraditional,\r\n\t\t\t\t\tadd\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t} );\r\n\r\n\t} else if ( !traditional && jQuery.type( obj ) === \"object\" ) {\r\n\r\n\t\t// Serialize object item.\r\n\t\tfor ( name in obj ) {\r\n\t\t\tbuildParams( prefix + \"[\" + name + \"]\", obj[ name ], traditional, add );\r\n\t\t}\r\n\r\n\t} else {\r\n\r\n\t\t// Serialize scalar item.\r\n\t\tadd( prefix, obj );\r\n\t}\r\n}\r\n\r\n// Serialize an array of form elements or a set of\r\n// key/values into a query string\r\njQuery.param = function( a, traditional ) {\r\n\tvar prefix,\r\n\t\ts = [],\r\n\t\tadd = function( key, valueOrFunction ) {\r\n\r\n\t\t\t// If value is a function, invoke it and use its return value\r\n\t\t\tvar value = jQuery.isFunction( valueOrFunction ) ?\r\n\t\t\t\tvalueOrFunction() :\r\n\t\t\t\tvalueOrFunction;\r\n\r\n\t\t\ts[ s.length ] = encodeURIComponent( key ) + \"=\" +\r\n\t\t\t\tencodeURIComponent( value == null ? \"\" : value );\r\n\t\t};\r\n\r\n\t// If an array was passed in, assume that it is an array of form elements.\r\n\tif ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\r\n\r\n\t\t// Serialize the form elements\r\n\t\tjQuery.each( a, function() {\r\n\t\t\tadd( this.name, this.value );\r\n\t\t} );\r\n\r\n\t} else {\r\n\r\n\t\t// If traditional, encode the \"old\" way (the way 1.3.2 or older\r\n\t\t// did it), otherwise encode params recursively.\r\n\t\tfor ( prefix in a ) {\r\n\t\t\tbuildParams( prefix, a[ prefix ], traditional, add );\r\n\t\t}\r\n\t}\r\n\r\n\t// Return the resulting serialization\r\n\treturn s.join( \"&\" );\r\n};\r\n\r\njQuery.fn.extend( {\r\n\tserialize: function() {\r\n\t\treturn jQuery.param( this.serializeArray() );\r\n\t},\r\n\tserializeArray: function() {\r\n\t\treturn this.map( function() {\r\n\r\n\t\t\t// Can add propHook for \"elements\" to filter or add form elements\r\n\t\t\tvar elements = jQuery.prop( this, \"elements\" );\r\n\t\t\treturn elements ? jQuery.makeArray( elements ) : this;\r\n\t\t} )\r\n\t\t.filter( function() {\r\n\t\t\tvar type = this.type;\r\n\r\n\t\t\t// Use .is( \":disabled\" ) so that fieldset[disabled] works\r\n\t\t\treturn this.name && !jQuery( this ).is( \":disabled\" ) &&\r\n\t\t\t\trsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&\r\n\t\t\t\t( this.checked || !rcheckableType.test( type ) );\r\n\t\t} )\r\n\t\t.map( function( i, elem ) {\r\n\t\t\tvar val = jQuery( this ).val();\r\n\r\n\t\t\treturn val == null ?\r\n\t\t\t\tnull :\r\n\t\t\t\tjQuery.isArray( val ) ?\r\n\t\t\t\t\tjQuery.map( val, function( val ) {\r\n\t\t\t\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\r\n\t\t\t\t\t} ) :\r\n\t\t\t\t\t{ name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\r\n\t\t} ).get();\r\n\t}\r\n} );\r\n\r\n\r\nvar\r\n\tr20 = /%20/g,\r\n\trhash = /#.*$/,\r\n\trts = /([?&])_=[^&]*/,\r\n\trheaders = /^(.*?):[ \\t]*([^\\r\\n]*)$/mg,\r\n\r\n\t// #7653, #8125, #8152: local protocol detection\r\n\trlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,\r\n\trnoContent = /^(?:GET|HEAD)$/,\r\n\trprotocol = /^\\/\\//,\r\n\r\n\t/* Prefilters\r\n\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\r\n\t * 2) These are called:\r\n\t *    - BEFORE asking for a transport\r\n\t *    - AFTER param serialization (s.data is a string if s.processData is true)\r\n\t * 3) key is the dataType\r\n\t * 4) the catchall symbol \"*\" can be used\r\n\t * 5) execution will start with transport dataType and THEN continue down to \"*\" if needed\r\n\t */\r\n\tprefilters = {},\r\n\r\n\t/* Transports bindings\r\n\t * 1) key is the dataType\r\n\t * 2) the catchall symbol \"*\" can be used\r\n\t * 3) selection will start with transport dataType and THEN go to \"*\" if needed\r\n\t */\r\n\ttransports = {},\r\n\r\n\t// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression\r\n\tallTypes = \"*/\".concat( \"*\" ),\r\n\r\n\t// Anchor tag for parsing the document origin\r\n\toriginAnchor = document.createElement( \"a\" );\r\n\toriginAnchor.href = location.href;\r\n\r\n// Base \"constructor\" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\r\nfunction addToPrefiltersOrTransports( structure ) {\r\n\r\n\t// dataTypeExpression is optional and defaults to \"*\"\r\n\treturn function( dataTypeExpression, func ) {\r\n\r\n\t\tif ( typeof dataTypeExpression !== \"string\" ) {\r\n\t\t\tfunc = dataTypeExpression;\r\n\t\t\tdataTypeExpression = \"*\";\r\n\t\t}\r\n\r\n\t\tvar dataType,\r\n\t\t\ti = 0,\r\n\t\t\tdataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];\r\n\r\n\t\tif ( jQuery.isFunction( func ) ) {\r\n\r\n\t\t\t// For each dataType in the dataTypeExpression\r\n\t\t\twhile ( ( dataType = dataTypes[ i++ ] ) ) {\r\n\r\n\t\t\t\t// Prepend if requested\r\n\t\t\t\tif ( dataType[ 0 ] === \"+\" ) {\r\n\t\t\t\t\tdataType = dataType.slice( 1 ) || \"*\";\r\n\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );\r\n\r\n\t\t\t\t// Otherwise append\r\n\t\t\t\t} else {\r\n\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).push( func );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n}\r\n\r\n// Base inspection function for prefilters and transports\r\nfunction inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {\r\n\r\n\tvar inspected = {},\r\n\t\tseekingTransport = ( structure === transports );\r\n\r\n\tfunction inspect( dataType ) {\r\n\t\tvar selected;\r\n\t\tinspected[ dataType ] = true;\r\n\t\tjQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {\r\n\t\t\tvar dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );\r\n\t\t\tif ( typeof dataTypeOrTransport === \"string\" &&\r\n\t\t\t\t!seekingTransport && !inspected[ dataTypeOrTransport ] ) {\r\n\r\n\t\t\t\toptions.dataTypes.unshift( dataTypeOrTransport );\r\n\t\t\t\tinspect( dataTypeOrTransport );\r\n\t\t\t\treturn false;\r\n\t\t\t} else if ( seekingTransport ) {\r\n\t\t\t\treturn !( selected = dataTypeOrTransport );\r\n\t\t\t}\r\n\t\t} );\r\n\t\treturn selected;\r\n\t}\r\n\r\n\treturn inspect( options.dataTypes[ 0 ] ) || !inspected[ \"*\" ] && inspect( \"*\" );\r\n}\r\n\r\n// A special extend for ajax options\r\n// that takes \"flat\" options (not to be deep extended)\r\n// Fixes #9887\r\nfunction ajaxExtend( target, src ) {\r\n\tvar key, deep,\r\n\t\tflatOptions = jQuery.ajaxSettings.flatOptions || {};\r\n\r\n\tfor ( key in src ) {\r\n\t\tif ( src[ key ] !== undefined ) {\r\n\t\t\t( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];\r\n\t\t}\r\n\t}\r\n\tif ( deep ) {\r\n\t\tjQuery.extend( true, target, deep );\r\n\t}\r\n\r\n\treturn target;\r\n}\r\n\r\n/* Handles responses to an ajax request:\r\n * - finds the right dataType (mediates between content-type and expected dataType)\r\n * - returns the corresponding response\r\n */\r\nfunction ajaxHandleResponses( s, jqXHR, responses ) {\r\n\r\n\tvar ct, type, finalDataType, firstDataType,\r\n\t\tcontents = s.contents,\r\n\t\tdataTypes = s.dataTypes;\r\n\r\n\t// Remove auto dataType and get content-type in the process\r\n\twhile ( dataTypes[ 0 ] === \"*\" ) {\r\n\t\tdataTypes.shift();\r\n\t\tif ( ct === undefined ) {\r\n\t\t\tct = s.mimeType || jqXHR.getResponseHeader( \"Content-Type\" );\r\n\t\t}\r\n\t}\r\n\r\n\t// Check if we're dealing with a known content-type\r\n\tif ( ct ) {\r\n\t\tfor ( type in contents ) {\r\n\t\t\tif ( contents[ type ] && contents[ type ].test( ct ) ) {\r\n\t\t\t\tdataTypes.unshift( type );\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// Check to see if we have a response for the expected dataType\r\n\tif ( dataTypes[ 0 ] in responses ) {\r\n\t\tfinalDataType = dataTypes[ 0 ];\r\n\t} else {\r\n\r\n\t\t// Try convertible dataTypes\r\n\t\tfor ( type in responses ) {\r\n\t\t\tif ( !dataTypes[ 0 ] || s.converters[ type + \" \" + dataTypes[ 0 ] ] ) {\r\n\t\t\t\tfinalDataType = type;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif ( !firstDataType ) {\r\n\t\t\t\tfirstDataType = type;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Or just use first one\r\n\t\tfinalDataType = finalDataType || firstDataType;\r\n\t}\r\n\r\n\t// If we found a dataType\r\n\t// We add the dataType to the list if needed\r\n\t// and return the corresponding response\r\n\tif ( finalDataType ) {\r\n\t\tif ( finalDataType !== dataTypes[ 0 ] ) {\r\n\t\t\tdataTypes.unshift( finalDataType );\r\n\t\t}\r\n\t\treturn responses[ finalDataType ];\r\n\t}\r\n}\r\n\r\n/* Chain conversions given the request and the original response\r\n * Also sets the responseXXX fields on the jqXHR instance\r\n */\r\nfunction ajaxConvert( s, response, jqXHR, isSuccess ) {\r\n\tvar conv2, current, conv, tmp, prev,\r\n\t\tconverters = {},\r\n\r\n\t\t// Work with a copy of dataTypes in case we need to modify it for conversion\r\n\t\tdataTypes = s.dataTypes.slice();\r\n\r\n\t// Create converters map with lowercased keys\r\n\tif ( dataTypes[ 1 ] ) {\r\n\t\tfor ( conv in s.converters ) {\r\n\t\t\tconverters[ conv.toLowerCase() ] = s.converters[ conv ];\r\n\t\t}\r\n\t}\r\n\r\n\tcurrent = dataTypes.shift();\r\n\r\n\t// Convert to each sequential dataType\r\n\twhile ( current ) {\r\n\r\n\t\tif ( s.responseFields[ current ] ) {\r\n\t\t\tjqXHR[ s.responseFields[ current ] ] = response;\r\n\t\t}\r\n\r\n\t\t// Apply the dataFilter if provided\r\n\t\tif ( !prev && isSuccess && s.dataFilter ) {\r\n\t\t\tresponse = s.dataFilter( response, s.dataType );\r\n\t\t}\r\n\r\n\t\tprev = current;\r\n\t\tcurrent = dataTypes.shift();\r\n\r\n\t\tif ( current ) {\r\n\r\n\t\t\t// There's only work to do if current dataType is non-auto\r\n\t\t\tif ( current === \"*\" ) {\r\n\r\n\t\t\t\tcurrent = prev;\r\n\r\n\t\t\t// Convert response if prev dataType is non-auto and differs from current\r\n\t\t\t} else if ( prev !== \"*\" && prev !== current ) {\r\n\r\n\t\t\t\t// Seek a direct converter\r\n\t\t\t\tconv = converters[ prev + \" \" + current ] || converters[ \"* \" + current ];\r\n\r\n\t\t\t\t// If none found, seek a pair\r\n\t\t\t\tif ( !conv ) {\r\n\t\t\t\t\tfor ( conv2 in converters ) {\r\n\r\n\t\t\t\t\t\t// If conv2 outputs current\r\n\t\t\t\t\t\ttmp = conv2.split( \" \" );\r\n\t\t\t\t\t\tif ( tmp[ 1 ] === current ) {\r\n\r\n\t\t\t\t\t\t\t// If prev can be converted to accepted input\r\n\t\t\t\t\t\t\tconv = converters[ prev + \" \" + tmp[ 0 ] ] ||\r\n\t\t\t\t\t\t\t\tconverters[ \"* \" + tmp[ 0 ] ];\r\n\t\t\t\t\t\t\tif ( conv ) {\r\n\r\n\t\t\t\t\t\t\t\t// Condense equivalence converters\r\n\t\t\t\t\t\t\t\tif ( conv === true ) {\r\n\t\t\t\t\t\t\t\t\tconv = converters[ conv2 ];\r\n\r\n\t\t\t\t\t\t\t\t// Otherwise, insert the intermediate dataType\r\n\t\t\t\t\t\t\t\t} else if ( converters[ conv2 ] !== true ) {\r\n\t\t\t\t\t\t\t\t\tcurrent = tmp[ 0 ];\r\n\t\t\t\t\t\t\t\t\tdataTypes.unshift( tmp[ 1 ] );\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Apply converter (if not an equivalence)\r\n\t\t\t\tif ( conv !== true ) {\r\n\r\n\t\t\t\t\t// Unless errors are allowed to bubble, catch and return them\r\n\t\t\t\t\tif ( conv && s.throws ) {\r\n\t\t\t\t\t\tresponse = conv( response );\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tresponse = conv( response );\r\n\t\t\t\t\t\t} catch ( e ) {\r\n\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\tstate: \"parsererror\",\r\n\t\t\t\t\t\t\t\terror: conv ? e : \"No conversion from \" + prev + \" to \" + current\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\treturn { state: \"success\", data: response };\r\n}\r\n\r\njQuery.extend( {\r\n\r\n\t// Counter for holding the number of active queries\r\n\tactive: 0,\r\n\r\n\t// Last-Modified header cache for next request\r\n\tlastModified: {},\r\n\tetag: {},\r\n\r\n\tajaxSettings: {\r\n\t\turl: location.href,\r\n\t\ttype: \"GET\",\r\n\t\tisLocal: rlocalProtocol.test( location.protocol ),\r\n\t\tglobal: true,\r\n\t\tprocessData: true,\r\n\t\tasync: true,\r\n\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\r\n\r\n\t\t/*\r\n\t\ttimeout: 0,\r\n\t\tdata: null,\r\n\t\tdataType: null,\r\n\t\tusername: null,\r\n\t\tpassword: null,\r\n\t\tcache: null,\r\n\t\tthrows: false,\r\n\t\ttraditional: false,\r\n\t\theaders: {},\r\n\t\t*/\r\n\r\n\t\taccepts: {\r\n\t\t\t\"*\": allTypes,\r\n\t\t\ttext: \"text/plain\",\r\n\t\t\thtml: \"text/html\",\r\n\t\t\txml: \"application/xml, text/xml\",\r\n\t\t\tjson: \"application/json, text/javascript\"\r\n\t\t},\r\n\r\n\t\tcontents: {\r\n\t\t\txml: /\\bxml\\b/,\r\n\t\t\thtml: /\\bhtml/,\r\n\t\t\tjson: /\\bjson\\b/\r\n\t\t},\r\n\r\n\t\tresponseFields: {\r\n\t\t\txml: \"responseXML\",\r\n\t\t\ttext: \"responseText\",\r\n\t\t\tjson: \"responseJSON\"\r\n\t\t},\r\n\r\n\t\t// Data converters\r\n\t\t// Keys separate source (or catchall \"*\") and destination types with a single space\r\n\t\tconverters: {\r\n\r\n\t\t\t// Convert anything to text\r\n\t\t\t\"* text\": String,\r\n\r\n\t\t\t// Text to html (true = no transformation)\r\n\t\t\t\"text html\": true,\r\n\r\n\t\t\t// Evaluate text as a json expression\r\n\t\t\t\"text json\": JSON.parse,\r\n\r\n\t\t\t// Parse text as xml\r\n\t\t\t\"text xml\": jQuery.parseXML\r\n\t\t},\r\n\r\n\t\t// For options that shouldn't be deep extended:\r\n\t\t// you can add your own custom options here if\r\n\t\t// and when you create one that shouldn't be\r\n\t\t// deep extended (see ajaxExtend)\r\n\t\tflatOptions: {\r\n\t\t\turl: true,\r\n\t\t\tcontext: true\r\n\t\t}\r\n\t},\r\n\r\n\t// Creates a full fledged settings object into target\r\n\t// with both ajaxSettings and settings fields.\r\n\t// If target is omitted, writes into ajaxSettings.\r\n\tajaxSetup: function( target, settings ) {\r\n\t\treturn settings ?\r\n\r\n\t\t\t// Building a settings object\r\n\t\t\tajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :\r\n\r\n\t\t\t// Extending ajaxSettings\r\n\t\t\tajaxExtend( jQuery.ajaxSettings, target );\r\n\t},\r\n\r\n\tajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\r\n\tajaxTransport: addToPrefiltersOrTransports( transports ),\r\n\r\n\t// Main method\r\n\tajax: function( url, options ) {\r\n\r\n\t\t// If url is an object, simulate pre-1.5 signature\r\n\t\tif ( typeof url === \"object\" ) {\r\n\t\t\toptions = url;\r\n\t\t\turl = undefined;\r\n\t\t}\r\n\r\n\t\t// Force options to be an object\r\n\t\toptions = options || {};\r\n\r\n\t\tvar transport,\r\n\r\n\t\t\t// URL without anti-cache param\r\n\t\t\tcacheURL,\r\n\r\n\t\t\t// Response headers\r\n\t\t\tresponseHeadersString,\r\n\t\t\tresponseHeaders,\r\n\r\n\t\t\t// timeout handle\r\n\t\t\ttimeoutTimer,\r\n\r\n\t\t\t// Url cleanup var\r\n\t\t\turlAnchor,\r\n\r\n\t\t\t// Request state (becomes false upon send and true upon completion)\r\n\t\t\tcompleted,\r\n\r\n\t\t\t// To know if global events are to be dispatched\r\n\t\t\tfireGlobals,\r\n\r\n\t\t\t// Loop variable\r\n\t\t\ti,\r\n\r\n\t\t\t// uncached part of the url\r\n\t\t\tuncached,\r\n\r\n\t\t\t// Create the final options object\r\n\t\t\ts = jQuery.ajaxSetup( {}, options ),\r\n\r\n\t\t\t// Callbacks context\r\n\t\t\tcallbackContext = s.context || s,\r\n\r\n\t\t\t// Context for global events is callbackContext if it is a DOM node or jQuery collection\r\n\t\t\tglobalEventContext = s.context &&\r\n\t\t\t\t( callbackContext.nodeType || callbackContext.jquery ) ?\r\n\t\t\t\t\tjQuery( callbackContext ) :\r\n\t\t\t\t\tjQuery.event,\r\n\r\n\t\t\t// Deferreds\r\n\t\t\tdeferred = jQuery.Deferred(),\r\n\t\t\tcompleteDeferred = jQuery.Callbacks( \"once memory\" ),\r\n\r\n\t\t\t// Status-dependent callbacks\r\n\t\t\tstatusCode = s.statusCode || {},\r\n\r\n\t\t\t// Headers (they are sent all at once)\r\n\t\t\trequestHeaders = {},\r\n\t\t\trequestHeadersNames = {},\r\n\r\n\t\t\t// Default abort message\r\n\t\t\tstrAbort = \"canceled\",\r\n\r\n\t\t\t// Fake xhr\r\n\t\t\tjqXHR = {\r\n\t\t\t\treadyState: 0,\r\n\r\n\t\t\t\t// Builds headers hashtable if needed\r\n\t\t\t\tgetResponseHeader: function( key ) {\r\n\t\t\t\t\tvar match;\r\n\t\t\t\t\tif ( completed ) {\r\n\t\t\t\t\t\tif ( !responseHeaders ) {\r\n\t\t\t\t\t\t\tresponseHeaders = {};\r\n\t\t\t\t\t\t\twhile ( ( match = rheaders.exec( responseHeadersString ) ) ) {\r\n\t\t\t\t\t\t\t\tresponseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tmatch = responseHeaders[ key.toLowerCase() ];\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn match == null ? null : match;\r\n\t\t\t\t},\r\n\r\n\t\t\t\t// Raw string\r\n\t\t\t\tgetAllResponseHeaders: function() {\r\n\t\t\t\t\treturn completed ? responseHeadersString : null;\r\n\t\t\t\t},\r\n\r\n\t\t\t\t// Caches the header\r\n\t\t\t\tsetRequestHeader: function( name, value ) {\r\n\t\t\t\t\tif ( completed == null ) {\r\n\t\t\t\t\t\tname = requestHeadersNames[ name.toLowerCase() ] =\r\n\t\t\t\t\t\t\trequestHeadersNames[ name.toLowerCase() ] || name;\r\n\t\t\t\t\t\trequestHeaders[ name ] = value;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t},\r\n\r\n\t\t\t\t// Overrides response content-type header\r\n\t\t\t\toverrideMimeType: function( type ) {\r\n\t\t\t\t\tif ( completed == null ) {\r\n\t\t\t\t\t\ts.mimeType = type;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t},\r\n\r\n\t\t\t\t// Status-dependent callbacks\r\n\t\t\t\tstatusCode: function( map ) {\r\n\t\t\t\t\tvar code;\r\n\t\t\t\t\tif ( map ) {\r\n\t\t\t\t\t\tif ( completed ) {\r\n\r\n\t\t\t\t\t\t\t// Execute the appropriate callbacks\r\n\t\t\t\t\t\t\tjqXHR.always( map[ jqXHR.status ] );\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t// Lazy-add the new callbacks in a way that preserves old ones\r\n\t\t\t\t\t\t\tfor ( code in map ) {\r\n\t\t\t\t\t\t\t\tstatusCode[ code ] = [ statusCode[ code ], map[ code ] ];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t},\r\n\r\n\t\t\t\t// Cancel the request\r\n\t\t\t\tabort: function( statusText ) {\r\n\t\t\t\t\tvar finalText = statusText || strAbort;\r\n\t\t\t\t\tif ( transport ) {\r\n\t\t\t\t\t\ttransport.abort( finalText );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdone( 0, finalText );\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t// Attach deferreds\r\n\t\tdeferred.promise( jqXHR );\r\n\r\n\t\t// Add protocol if not provided (prefilters might expect it)\r\n\t\t// Handle falsy url in the settings object (#10093: consistency with old signature)\r\n\t\t// We also use the url parameter if available\r\n\t\ts.url = ( ( url || s.url || location.href ) + \"\" )\r\n\t\t\t.replace( rprotocol, location.protocol + \"//\" );\r\n\r\n\t\t// Alias method option to type as per ticket #12004\r\n\t\ts.type = options.method || options.type || s.method || s.type;\r\n\r\n\t\t// Extract dataTypes list\r\n\t\ts.dataTypes = ( s.dataType || \"*\" ).toLowerCase().match( rnotwhite ) || [ \"\" ];\r\n\r\n\t\t// A cross-domain request is in order when the origin doesn't match the current origin.\r\n\t\tif ( s.crossDomain == null ) {\r\n\t\t\turlAnchor = document.createElement( \"a\" );\r\n\r\n\t\t\t// Support: IE <=8 - 11, Edge 12 - 13\r\n\t\t\t// IE throws exception on accessing the href property if url is malformed,\r\n\t\t\t// e.g. http://example.com:80x/\r\n\t\t\ttry {\r\n\t\t\t\turlAnchor.href = s.url;\r\n\r\n\t\t\t\t// Support: IE <=8 - 11 only\r\n\t\t\t\t// Anchor's host property isn't correctly set when s.url is relative\r\n\t\t\t\turlAnchor.href = urlAnchor.href;\r\n\t\t\t\ts.crossDomain = originAnchor.protocol + \"//\" + originAnchor.host !==\r\n\t\t\t\t\turlAnchor.protocol + \"//\" + urlAnchor.host;\r\n\t\t\t} catch ( e ) {\r\n\r\n\t\t\t\t// If there is an error parsing the URL, assume it is crossDomain,\r\n\t\t\t\t// it can be rejected by the transport if it is invalid\r\n\t\t\t\ts.crossDomain = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Convert data if not already a string\r\n\t\tif ( s.data && s.processData && typeof s.data !== \"string\" ) {\r\n\t\t\ts.data = jQuery.param( s.data, s.traditional );\r\n\t\t}\r\n\r\n\t\t// Apply prefilters\r\n\t\tinspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\r\n\r\n\t\t// If request was aborted inside a prefilter, stop there\r\n\t\tif ( completed ) {\r\n\t\t\treturn jqXHR;\r\n\t\t}\r\n\r\n\t\t// We can fire global events as of now if asked to\r\n\t\t// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)\r\n\t\tfireGlobals = jQuery.event && s.global;\r\n\r\n\t\t// Watch for a new set of requests\r\n\t\tif ( fireGlobals && jQuery.active++ === 0 ) {\r\n\t\t\tjQuery.event.trigger( \"ajaxStart\" );\r\n\t\t}\r\n\r\n\t\t// Uppercase the type\r\n\t\ts.type = s.type.toUpperCase();\r\n\r\n\t\t// Determine if request has content\r\n\t\ts.hasContent = !rnoContent.test( s.type );\r\n\r\n\t\t// Save the URL in case we're toying with the If-Modified-Since\r\n\t\t// and/or If-None-Match header later on\r\n\t\t// Remove hash to simplify url manipulation\r\n\t\tcacheURL = s.url.replace( rhash, \"\" );\r\n\r\n\t\t// More options handling for requests with no content\r\n\t\tif ( !s.hasContent ) {\r\n\r\n\t\t\t// Remember the hash so we can put it back\r\n\t\t\tuncached = s.url.slice( cacheURL.length );\r\n\r\n\t\t\t// If data is available, append data to url\r\n\t\t\tif ( s.data ) {\r\n\t\t\t\tcacheURL += ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + s.data;\r\n\r\n\t\t\t\t// #9682: remove data so that it's not used in an eventual retry\r\n\t\t\t\tdelete s.data;\r\n\t\t\t}\r\n\r\n\t\t\t// Add anti-cache in uncached url if needed\r\n\t\t\tif ( s.cache === false ) {\r\n\t\t\t\tcacheURL = cacheURL.replace( rts, \"\" );\r\n\t\t\t\tuncached = ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + \"_=\" + ( nonce++ ) + uncached;\r\n\t\t\t}\r\n\r\n\t\t\t// Put hash and anti-cache on the URL that will be requested (gh-1732)\r\n\t\t\ts.url = cacheURL + uncached;\r\n\r\n\t\t// Change '%20' to '+' if this is encoded form body content (gh-2658)\r\n\t\t} else if ( s.data && s.processData &&\r\n\t\t\t( s.contentType || \"\" ).indexOf( \"application/x-www-form-urlencoded\" ) === 0 ) {\r\n\t\t\ts.data = s.data.replace( r20, \"+\" );\r\n\t\t}\r\n\r\n\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\r\n\t\tif ( s.ifModified ) {\r\n\t\t\tif ( jQuery.lastModified[ cacheURL ] ) {\r\n\t\t\t\tjqXHR.setRequestHeader( \"If-Modified-Since\", jQuery.lastModified[ cacheURL ] );\r\n\t\t\t}\r\n\t\t\tif ( jQuery.etag[ cacheURL ] ) {\r\n\t\t\t\tjqXHR.setRequestHeader( \"If-None-Match\", jQuery.etag[ cacheURL ] );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Set the correct header, if data is being sent\r\n\t\tif ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\r\n\t\t\tjqXHR.setRequestHeader( \"Content-Type\", s.contentType );\r\n\t\t}\r\n\r\n\t\t// Set the Accepts header for the server, depending on the dataType\r\n\t\tjqXHR.setRequestHeader(\r\n\t\t\t\"Accept\",\r\n\t\t\ts.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?\r\n\t\t\t\ts.accepts[ s.dataTypes[ 0 ] ] +\r\n\t\t\t\t\t( s.dataTypes[ 0 ] !== \"*\" ? \", \" + allTypes + \"; q=0.01\" : \"\" ) :\r\n\t\t\t\ts.accepts[ \"*\" ]\r\n\t\t);\r\n\r\n\t\t// Check for headers option\r\n\t\tfor ( i in s.headers ) {\r\n\t\t\tjqXHR.setRequestHeader( i, s.headers[ i ] );\r\n\t\t}\r\n\r\n\t\t// Allow custom headers/mimetypes and early abort\r\n\t\tif ( s.beforeSend &&\r\n\t\t\t( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {\r\n\r\n\t\t\t// Abort if not done already and return\r\n\t\t\treturn jqXHR.abort();\r\n\t\t}\r\n\r\n\t\t// Aborting is no longer a cancellation\r\n\t\tstrAbort = \"abort\";\r\n\r\n\t\t// Install callbacks on deferreds\r\n\t\tcompleteDeferred.add( s.complete );\r\n\t\tjqXHR.done( s.success );\r\n\t\tjqXHR.fail( s.error );\r\n\r\n\t\t// Get transport\r\n\t\ttransport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\r\n\r\n\t\t// If no transport, we auto-abort\r\n\t\tif ( !transport ) {\r\n\t\t\tdone( -1, \"No Transport\" );\r\n\t\t} else {\r\n\t\t\tjqXHR.readyState = 1;\r\n\r\n\t\t\t// Send global event\r\n\t\t\tif ( fireGlobals ) {\r\n\t\t\t\tglobalEventContext.trigger( \"ajaxSend\", [ jqXHR, s ] );\r\n\t\t\t}\r\n\r\n\t\t\t// If request was aborted inside ajaxSend, stop there\r\n\t\t\tif ( completed ) {\r\n\t\t\t\treturn jqXHR;\r\n\t\t\t}\r\n\r\n\t\t\t// Timeout\r\n\t\t\tif ( s.async && s.timeout > 0 ) {\r\n\t\t\t\ttimeoutTimer = window.setTimeout( function() {\r\n\t\t\t\t\tjqXHR.abort( \"timeout\" );\r\n\t\t\t\t}, s.timeout );\r\n\t\t\t}\r\n\r\n\t\t\ttry {\r\n\t\t\t\tcompleted = false;\r\n\t\t\t\ttransport.send( requestHeaders, done );\r\n\t\t\t} catch ( e ) {\r\n\r\n\t\t\t\t// Rethrow post-completion exceptions\r\n\t\t\t\tif ( completed ) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Propagate others as results\r\n\t\t\t\tdone( -1, e );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Callback for when everything is done\r\n\t\tfunction done( status, nativeStatusText, responses, headers ) {\r\n\t\t\tvar isSuccess, success, error, response, modified,\r\n\t\t\t\tstatusText = nativeStatusText;\r\n\r\n\t\t\t// Ignore repeat invocations\r\n\t\t\tif ( completed ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tcompleted = true;\r\n\r\n\t\t\t// Clear timeout if it exists\r\n\t\t\tif ( timeoutTimer ) {\r\n\t\t\t\twindow.clearTimeout( timeoutTimer );\r\n\t\t\t}\r\n\r\n\t\t\t// Dereference transport for early garbage collection\r\n\t\t\t// (no matter how long the jqXHR object will be used)\r\n\t\t\ttransport = undefined;\r\n\r\n\t\t\t// Cache response headers\r\n\t\t\tresponseHeadersString = headers || \"\";\r\n\r\n\t\t\t// Set readyState\r\n\t\t\tjqXHR.readyState = status > 0 ? 4 : 0;\r\n\r\n\t\t\t// Determine if successful\r\n\t\t\tisSuccess = status >= 200 && status < 300 || status === 304;\r\n\r\n\t\t\t// Get response data\r\n\t\t\tif ( responses ) {\r\n\t\t\t\tresponse = ajaxHandleResponses( s, jqXHR, responses );\r\n\t\t\t}\r\n\r\n\t\t\t// Convert no matter what (that way responseXXX fields are always set)\r\n\t\t\tresponse = ajaxConvert( s, response, jqXHR, isSuccess );\r\n\r\n\t\t\t// If successful, handle type chaining\r\n\t\t\tif ( isSuccess ) {\r\n\r\n\t\t\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\r\n\t\t\t\tif ( s.ifModified ) {\r\n\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"Last-Modified\" );\r\n\t\t\t\t\tif ( modified ) {\r\n\t\t\t\t\t\tjQuery.lastModified[ cacheURL ] = modified;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"etag\" );\r\n\t\t\t\t\tif ( modified ) {\r\n\t\t\t\t\t\tjQuery.etag[ cacheURL ] = modified;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// if no content\r\n\t\t\t\tif ( status === 204 || s.type === \"HEAD\" ) {\r\n\t\t\t\t\tstatusText = \"nocontent\";\r\n\r\n\t\t\t\t// if not modified\r\n\t\t\t\t} else if ( status === 304 ) {\r\n\t\t\t\t\tstatusText = \"notmodified\";\r\n\r\n\t\t\t\t// If we have data, let's convert it\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstatusText = response.state;\r\n\t\t\t\t\tsuccess = response.data;\r\n\t\t\t\t\terror = response.error;\r\n\t\t\t\t\tisSuccess = !error;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// Extract error from statusText and normalize for non-aborts\r\n\t\t\t\terror = statusText;\r\n\t\t\t\tif ( status || !statusText ) {\r\n\t\t\t\t\tstatusText = \"error\";\r\n\t\t\t\t\tif ( status < 0 ) {\r\n\t\t\t\t\t\tstatus = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Set data for the fake xhr object\r\n\t\t\tjqXHR.status = status;\r\n\t\t\tjqXHR.statusText = ( nativeStatusText || statusText ) + \"\";\r\n\r\n\t\t\t// Success/Error\r\n\t\t\tif ( isSuccess ) {\r\n\t\t\t\tdeferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\r\n\t\t\t} else {\r\n\t\t\t\tdeferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\r\n\t\t\t}\r\n\r\n\t\t\t// Status-dependent callbacks\r\n\t\t\tjqXHR.statusCode( statusCode );\r\n\t\t\tstatusCode = undefined;\r\n\r\n\t\t\tif ( fireGlobals ) {\r\n\t\t\t\tglobalEventContext.trigger( isSuccess ? \"ajaxSuccess\" : \"ajaxError\",\r\n\t\t\t\t\t[ jqXHR, s, isSuccess ? success : error ] );\r\n\t\t\t}\r\n\r\n\t\t\t// Complete\r\n\t\t\tcompleteDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );\r\n\r\n\t\t\tif ( fireGlobals ) {\r\n\t\t\t\tglobalEventContext.trigger( \"ajaxComplete\", [ jqXHR, s ] );\r\n\r\n\t\t\t\t// Handle the global AJAX counter\r\n\t\t\t\tif ( !( --jQuery.active ) ) {\r\n\t\t\t\t\tjQuery.event.trigger( \"ajaxStop\" );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn jqXHR;\r\n\t},\r\n\r\n\tgetJSON: function( url, data, callback ) {\r\n\t\treturn jQuery.get( url, data, callback, \"json\" );\r\n\t},\r\n\r\n\tgetScript: function( url, callback ) {\r\n\t\treturn jQuery.get( url, undefined, callback, \"script\" );\r\n\t}\r\n} );\r\n\r\njQuery.each( [ \"get\", \"post\" ], function( i, method ) {\r\n\tjQuery[ method ] = function( url, data, callback, type ) {\r\n\r\n\t\t// Shift arguments if data argument was omitted\r\n\t\tif ( jQuery.isFunction( data ) ) {\r\n\t\t\ttype = type || callback;\r\n\t\t\tcallback = data;\r\n\t\t\tdata = undefined;\r\n\t\t}\r\n\r\n\t\t// The url can be an options object (which then must have .url)\r\n\t\treturn jQuery.ajax( jQuery.extend( {\r\n\t\t\turl: url,\r\n\t\t\ttype: method,\r\n\t\t\tdataType: type,\r\n\t\t\tdata: data,\r\n\t\t\tsuccess: callback\r\n\t\t}, jQuery.isPlainObject( url ) && url ) );\r\n\t};\r\n} );\r\n\r\n\r\njQuery._evalUrl = function( url ) {\r\n\treturn jQuery.ajax( {\r\n\t\turl: url,\r\n\r\n\t\t// Make this explicit, since user can override this through ajaxSetup (#11264)\r\n\t\ttype: \"GET\",\r\n\t\tdataType: \"script\",\r\n\t\tcache: true,\r\n\t\tasync: false,\r\n\t\tglobal: false,\r\n\t\t\"throws\": true\r\n\t} );\r\n};\r\n\r\n\r\njQuery.fn.extend( {\r\n\twrapAll: function( html ) {\r\n\t\tvar wrap;\r\n\r\n\t\tif ( this[ 0 ] ) {\r\n\t\t\tif ( jQuery.isFunction( html ) ) {\r\n\t\t\t\thtml = html.call( this[ 0 ] );\r\n\t\t\t}\r\n\r\n\t\t\t// The elements to wrap the target around\r\n\t\t\twrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );\r\n\r\n\t\t\tif ( this[ 0 ].parentNode ) {\r\n\t\t\t\twrap.insertBefore( this[ 0 ] );\r\n\t\t\t}\r\n\r\n\t\t\twrap.map( function() {\r\n\t\t\t\tvar elem = this;\r\n\r\n\t\t\t\twhile ( elem.firstElementChild ) {\r\n\t\t\t\t\telem = elem.firstElementChild;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn elem;\r\n\t\t\t} ).append( this );\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\twrapInner: function( html ) {\r\n\t\tif ( jQuery.isFunction( html ) ) {\r\n\t\t\treturn this.each( function( i ) {\r\n\t\t\t\tjQuery( this ).wrapInner( html.call( this, i ) );\r\n\t\t\t} );\r\n\t\t}\r\n\r\n\t\treturn this.each( function() {\r\n\t\t\tvar self = jQuery( this ),\r\n\t\t\t\tcontents = self.contents();\r\n\r\n\t\t\tif ( contents.length ) {\r\n\t\t\t\tcontents.wrapAll( html );\r\n\r\n\t\t\t} else {\r\n\t\t\t\tself.append( html );\r\n\t\t\t}\r\n\t\t} );\r\n\t},\r\n\r\n\twrap: function( html ) {\r\n\t\tvar isFunction = jQuery.isFunction( html );\r\n\r\n\t\treturn this.each( function( i ) {\r\n\t\t\tjQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );\r\n\t\t} );\r\n\t},\r\n\r\n\tunwrap: function( selector ) {\r\n\t\tthis.parent( selector ).not( \"body\" ).each( function() {\r\n\t\t\tjQuery( this ).replaceWith( this.childNodes );\r\n\t\t} );\r\n\t\treturn this;\r\n\t}\r\n} );\r\n\r\n\r\njQuery.expr.pseudos.hidden = function( elem ) {\r\n\treturn !jQuery.expr.pseudos.visible( elem );\r\n};\r\njQuery.expr.pseudos.visible = function( elem ) {\r\n\treturn !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );\r\n};\r\n\r\n\r\n\r\n\r\njQuery.ajaxSettings.xhr = function() {\r\n\ttry {\r\n\t\treturn new window.XMLHttpRequest();\r\n\t} catch ( e ) {}\r\n};\r\n\r\nvar xhrSuccessStatus = {\r\n\r\n\t\t// File protocol always yields status code 0, assume 200\r\n\t\t0: 200,\r\n\r\n\t\t// Support: IE <=9 only\r\n\t\t// #1450: sometimes IE returns 1223 when it should be 204\r\n\t\t1223: 204\r\n\t},\r\n\txhrSupported = jQuery.ajaxSettings.xhr();\r\n\r\nsupport.cors = !!xhrSupported && ( \"withCredentials\" in xhrSupported );\r\nsupport.ajax = xhrSupported = !!xhrSupported;\r\n\r\njQuery.ajaxTransport( function( options ) {\r\n\tvar callback, errorCallback;\r\n\r\n\t// Cross domain only allowed if supported through XMLHttpRequest\r\n\tif ( support.cors || xhrSupported && !options.crossDomain ) {\r\n\t\treturn {\r\n\t\t\tsend: function( headers, complete ) {\r\n\t\t\t\tvar i,\r\n\t\t\t\t\txhr = options.xhr();\r\n\r\n\t\t\t\txhr.open(\r\n\t\t\t\t\toptions.type,\r\n\t\t\t\t\toptions.url,\r\n\t\t\t\t\toptions.async,\r\n\t\t\t\t\toptions.username,\r\n\t\t\t\t\toptions.password\r\n\t\t\t\t);\r\n\r\n\t\t\t\t// Apply custom fields if provided\r\n\t\t\t\tif ( options.xhrFields ) {\r\n\t\t\t\t\tfor ( i in options.xhrFields ) {\r\n\t\t\t\t\t\txhr[ i ] = options.xhrFields[ i ];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Override mime type if needed\r\n\t\t\t\tif ( options.mimeType && xhr.overrideMimeType ) {\r\n\t\t\t\t\txhr.overrideMimeType( options.mimeType );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// X-Requested-With header\r\n\t\t\t\t// For cross-domain requests, seeing as conditions for a preflight are\r\n\t\t\t\t// akin to a jigsaw puzzle, we simply never set it to be sure.\r\n\t\t\t\t// (it can always be set on a per-request basis or even using ajaxSetup)\r\n\t\t\t\t// For same-domain requests, won't change header if already provided.\r\n\t\t\t\tif ( !options.crossDomain && !headers[ \"X-Requested-With\" ] ) {\r\n\t\t\t\t\theaders[ \"X-Requested-With\" ] = \"XMLHttpRequest\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Set headers\r\n\t\t\t\tfor ( i in headers ) {\r\n\t\t\t\t\txhr.setRequestHeader( i, headers[ i ] );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Callback\r\n\t\t\t\tcallback = function( type ) {\r\n\t\t\t\t\treturn function() {\r\n\t\t\t\t\t\tif ( callback ) {\r\n\t\t\t\t\t\t\tcallback = errorCallback = xhr.onload =\r\n\t\t\t\t\t\t\t\txhr.onerror = xhr.onabort = xhr.onreadystatechange = null;\r\n\r\n\t\t\t\t\t\t\tif ( type === \"abort\" ) {\r\n\t\t\t\t\t\t\t\txhr.abort();\r\n\t\t\t\t\t\t\t} else if ( type === \"error\" ) {\r\n\r\n\t\t\t\t\t\t\t\t// Support: IE <=9 only\r\n\t\t\t\t\t\t\t\t// On a manual native abort, IE9 throws\r\n\t\t\t\t\t\t\t\t// errors on any property access that is not readyState\r\n\t\t\t\t\t\t\t\tif ( typeof xhr.status !== \"number\" ) {\r\n\t\t\t\t\t\t\t\t\tcomplete( 0, \"error\" );\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tcomplete(\r\n\r\n\t\t\t\t\t\t\t\t\t\t// File: protocol always yields status 0; see #8605, #14207\r\n\t\t\t\t\t\t\t\t\t\txhr.status,\r\n\t\t\t\t\t\t\t\t\t\txhr.statusText\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcomplete(\r\n\t\t\t\t\t\t\t\t\txhrSuccessStatus[ xhr.status ] || xhr.status,\r\n\t\t\t\t\t\t\t\t\txhr.statusText,\r\n\r\n\t\t\t\t\t\t\t\t\t// Support: IE <=9 only\r\n\t\t\t\t\t\t\t\t\t// IE9 has no XHR2 but throws on binary (trac-11426)\r\n\t\t\t\t\t\t\t\t\t// For XHR2 non-text, let the caller handle it (gh-2498)\r\n\t\t\t\t\t\t\t\t\t( xhr.responseType || \"text\" ) !== \"text\"  ||\r\n\t\t\t\t\t\t\t\t\ttypeof xhr.responseText !== \"string\" ?\r\n\t\t\t\t\t\t\t\t\t\t{ binary: xhr.response } :\r\n\t\t\t\t\t\t\t\t\t\t{ text: xhr.responseText },\r\n\t\t\t\t\t\t\t\t\txhr.getAllResponseHeaders()\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t};\r\n\r\n\t\t\t\t// Listen to events\r\n\t\t\t\txhr.onload = callback();\r\n\t\t\t\terrorCallback = xhr.onerror = callback( \"error\" );\r\n\r\n\t\t\t\t// Support: IE 9 only\r\n\t\t\t\t// Use onreadystatechange to replace onabort\r\n\t\t\t\t// to handle uncaught aborts\r\n\t\t\t\tif ( xhr.onabort !== undefined ) {\r\n\t\t\t\t\txhr.onabort = errorCallback;\r\n\t\t\t\t} else {\r\n\t\t\t\t\txhr.onreadystatechange = function() {\r\n\r\n\t\t\t\t\t\t// Check readyState before timeout as it changes\r\n\t\t\t\t\t\tif ( xhr.readyState === 4 ) {\r\n\r\n\t\t\t\t\t\t\t// Allow onerror to be called first,\r\n\t\t\t\t\t\t\t// but that will not handle a native abort\r\n\t\t\t\t\t\t\t// Also, save errorCallback to a variable\r\n\t\t\t\t\t\t\t// as xhr.onerror cannot be accessed\r\n\t\t\t\t\t\t\twindow.setTimeout( function() {\r\n\t\t\t\t\t\t\t\tif ( callback ) {\r\n\t\t\t\t\t\t\t\t\terrorCallback();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Create the abort callback\r\n\t\t\t\tcallback = callback( \"abort\" );\r\n\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\t// Do send the request (this may raise an exception)\r\n\t\t\t\t\txhr.send( options.hasContent && options.data || null );\r\n\t\t\t\t} catch ( e ) {\r\n\r\n\t\t\t\t\t// #14683: Only rethrow if this hasn't been notified as an error yet\r\n\t\t\t\t\tif ( callback ) {\r\n\t\t\t\t\t\tthrow e;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\r\n\t\t\tabort: function() {\r\n\t\t\t\tif ( callback ) {\r\n\t\t\t\t\tcallback();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n} );\r\n\r\n\r\n\r\n\r\n// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)\r\njQuery.ajaxPrefilter( function( s ) {\r\n\tif ( s.crossDomain ) {\r\n\t\ts.contents.script = false;\r\n\t}\r\n} );\r\n\r\n// Install script dataType\r\njQuery.ajaxSetup( {\r\n\taccepts: {\r\n\t\tscript: \"text/javascript, application/javascript, \" +\r\n\t\t\t\"application/ecmascript, application/x-ecmascript\"\r\n\t},\r\n\tcontents: {\r\n\t\tscript: /\\b(?:java|ecma)script\\b/\r\n\t},\r\n\tconverters: {\r\n\t\t\"text script\": function( text ) {\r\n\t\t\tjQuery.globalEval( text );\r\n\t\t\treturn text;\r\n\t\t}\r\n\t}\r\n} );\r\n\r\n// Handle cache's special case and crossDomain\r\njQuery.ajaxPrefilter( \"script\", function( s ) {\r\n\tif ( s.cache === undefined ) {\r\n\t\ts.cache = false;\r\n\t}\r\n\tif ( s.crossDomain ) {\r\n\t\ts.type = \"GET\";\r\n\t}\r\n} );\r\n\r\n// Bind script tag hack transport\r\njQuery.ajaxTransport( \"script\", function( s ) {\r\n\r\n\t// This transport only deals with cross domain requests\r\n\tif ( s.crossDomain ) {\r\n\t\tvar script, callback;\r\n\t\treturn {\r\n\t\t\tsend: function( _, complete ) {\r\n\t\t\t\tscript = jQuery( \"<script>\" ).prop( {\r\n\t\t\t\t\tcharset: s.scriptCharset,\r\n\t\t\t\t\tsrc: s.url\r\n\t\t\t\t} ).on(\r\n\t\t\t\t\t\"load error\",\r\n\t\t\t\t\tcallback = function( evt ) {\r\n\t\t\t\t\t\tscript.remove();\r\n\t\t\t\t\t\tcallback = null;\r\n\t\t\t\t\t\tif ( evt ) {\r\n\t\t\t\t\t\t\tcomplete( evt.type === \"error\" ? 404 : 200, evt.type );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\r\n\t\t\t\t// Use native DOM manipulation to avoid our domManip AJAX trickery\r\n\t\t\t\tdocument.head.appendChild( script[ 0 ] );\r\n\t\t\t},\r\n\t\t\tabort: function() {\r\n\t\t\t\tif ( callback ) {\r\n\t\t\t\t\tcallback();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n} );\r\n\r\n\r\n\r\n\r\nvar oldCallbacks = [],\r\n\trjsonp = /(=)\\?(?=&|$)|\\?\\?/;\r\n\r\n// Default jsonp settings\r\njQuery.ajaxSetup( {\r\n\tjsonp: \"callback\",\r\n\tjsonpCallback: function() {\r\n\t\tvar callback = oldCallbacks.pop() || ( jQuery.expando + \"_\" + ( nonce++ ) );\r\n\t\tthis[ callback ] = true;\r\n\t\treturn callback;\r\n\t}\r\n} );\r\n\r\n// Detect, normalize options and install callbacks for jsonp requests\r\njQuery.ajaxPrefilter( \"json jsonp\", function( s, originalSettings, jqXHR ) {\r\n\r\n\tvar callbackName, overwritten, responseContainer,\r\n\t\tjsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?\r\n\t\t\t\"url\" :\r\n\t\t\ttypeof s.data === \"string\" &&\r\n\t\t\t\t( s.contentType || \"\" )\r\n\t\t\t\t\t.indexOf( \"application/x-www-form-urlencoded\" ) === 0 &&\r\n\t\t\t\trjsonp.test( s.data ) && \"data\"\r\n\t\t);\r\n\r\n\t// Handle iff the expected data type is \"jsonp\" or we have a parameter to set\r\n\tif ( jsonProp || s.dataTypes[ 0 ] === \"jsonp\" ) {\r\n\r\n\t\t// Get callback name, remembering preexisting value associated with it\r\n\t\tcallbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?\r\n\t\t\ts.jsonpCallback() :\r\n\t\t\ts.jsonpCallback;\r\n\r\n\t\t// Insert callback into url or form data\r\n\t\tif ( jsonProp ) {\r\n\t\t\ts[ jsonProp ] = s[ jsonProp ].replace( rjsonp, \"$1\" + callbackName );\r\n\t\t} else if ( s.jsonp !== false ) {\r\n\t\t\ts.url += ( rquery.test( s.url ) ? \"&\" : \"?\" ) + s.jsonp + \"=\" + callbackName;\r\n\t\t}\r\n\r\n\t\t// Use data converter to retrieve json after script execution\r\n\t\ts.converters[ \"script json\" ] = function() {\r\n\t\t\tif ( !responseContainer ) {\r\n\t\t\t\tjQuery.error( callbackName + \" was not called\" );\r\n\t\t\t}\r\n\t\t\treturn responseContainer[ 0 ];\r\n\t\t};\r\n\r\n\t\t// Force json dataType\r\n\t\ts.dataTypes[ 0 ] = \"json\";\r\n\r\n\t\t// Install callback\r\n\t\toverwritten = window[ callbackName ];\r\n\t\twindow[ callbackName ] = function() {\r\n\t\t\tresponseContainer = arguments;\r\n\t\t};\r\n\r\n\t\t// Clean-up function (fires after converters)\r\n\t\tjqXHR.always( function() {\r\n\r\n\t\t\t// If previous value didn't exist - remove it\r\n\t\t\tif ( overwritten === undefined ) {\r\n\t\t\t\tjQuery( window ).removeProp( callbackName );\r\n\r\n\t\t\t// Otherwise restore preexisting value\r\n\t\t\t} else {\r\n\t\t\t\twindow[ callbackName ] = overwritten;\r\n\t\t\t}\r\n\r\n\t\t\t// Save back as free\r\n\t\t\tif ( s[ callbackName ] ) {\r\n\r\n\t\t\t\t// Make sure that re-using the options doesn't screw things around\r\n\t\t\t\ts.jsonpCallback = originalSettings.jsonpCallback;\r\n\r\n\t\t\t\t// Save the callback name for future use\r\n\t\t\t\toldCallbacks.push( callbackName );\r\n\t\t\t}\r\n\r\n\t\t\t// Call if it was a function and we have a response\r\n\t\t\tif ( responseContainer && jQuery.isFunction( overwritten ) ) {\r\n\t\t\t\toverwritten( responseContainer[ 0 ] );\r\n\t\t\t}\r\n\r\n\t\t\tresponseContainer = overwritten = undefined;\r\n\t\t} );\r\n\r\n\t\t// Delegate to script\r\n\t\treturn \"script\";\r\n\t}\r\n} );\r\n\r\n\r\n\r\n\r\n// Support: Safari 8 only\r\n// In Safari 8 documents created via document.implementation.createHTMLDocument\r\n// collapse sibling forms: the second one becomes a child of the first one.\r\n// Because of that, this security measure has to be disabled in Safari 8.\r\n// https://bugs.webkit.org/show_bug.cgi?id=137337\r\nsupport.createHTMLDocument = ( function() {\r\n\tvar body = document.implementation.createHTMLDocument( \"\" ).body;\r\n\tbody.innerHTML = \"<form></form><form></form>\";\r\n\treturn body.childNodes.length === 2;\r\n} )();\r\n\r\n\r\n// Argument \"data\" should be string of html\r\n// context (optional): If specified, the fragment will be created in this context,\r\n// defaults to document\r\n// keepScripts (optional): If true, will include scripts passed in the html string\r\njQuery.parseHTML = function( data, context, keepScripts ) {\r\n\tif ( typeof data !== \"string\" ) {\r\n\t\treturn [];\r\n\t}\r\n\tif ( typeof context === \"boolean\" ) {\r\n\t\tkeepScripts = context;\r\n\t\tcontext = false;\r\n\t}\r\n\r\n\tvar base, parsed, scripts;\r\n\r\n\tif ( !context ) {\r\n\r\n\t\t// Stop scripts or inline event handlers from being executed immediately\r\n\t\t// by using document.implementation\r\n\t\tif ( support.createHTMLDocument ) {\r\n\t\t\tcontext = document.implementation.createHTMLDocument( \"\" );\r\n\r\n\t\t\t// Set the base href for the created document\r\n\t\t\t// so any parsed elements with URLs\r\n\t\t\t// are based on the document's URL (gh-2965)\r\n\t\t\tbase = context.createElement( \"base\" );\r\n\t\t\tbase.href = document.location.href;\r\n\t\t\tcontext.head.appendChild( base );\r\n\t\t} else {\r\n\t\t\tcontext = document;\r\n\t\t}\r\n\t}\r\n\r\n\tparsed = rsingleTag.exec( data );\r\n\tscripts = !keepScripts && [];\r\n\r\n\t// Single tag\r\n\tif ( parsed ) {\r\n\t\treturn [ context.createElement( parsed[ 1 ] ) ];\r\n\t}\r\n\r\n\tparsed = buildFragment( [ data ], context, scripts );\r\n\r\n\tif ( scripts && scripts.length ) {\r\n\t\tjQuery( scripts ).remove();\r\n\t}\r\n\r\n\treturn jQuery.merge( [], parsed.childNodes );\r\n};\r\n\r\n\r\n/**\r\n * Load a url into a page\r\n */\r\njQuery.fn.load = function( url, params, callback ) {\r\n\tvar selector, type, response,\r\n\t\tself = this,\r\n\t\toff = url.indexOf( \" \" );\r\n\r\n\tif ( off > -1 ) {\r\n\t\tselector = jQuery.trim( url.slice( off ) );\r\n\t\turl = url.slice( 0, off );\r\n\t}\r\n\r\n\t// If it's a function\r\n\tif ( jQuery.isFunction( params ) ) {\r\n\r\n\t\t// We assume that it's the callback\r\n\t\tcallback = params;\r\n\t\tparams = undefined;\r\n\r\n\t// Otherwise, build a param string\r\n\t} else if ( params && typeof params === \"object\" ) {\r\n\t\ttype = \"POST\";\r\n\t}\r\n\r\n\t// If we have elements to modify, make the request\r\n\tif ( self.length > 0 ) {\r\n\t\tjQuery.ajax( {\r\n\t\t\turl: url,\r\n\r\n\t\t\t// If \"type\" variable is undefined, then \"GET\" method will be used.\r\n\t\t\t// Make value of this field explicit since\r\n\t\t\t// user can override it through ajaxSetup method\r\n\t\t\ttype: type || \"GET\",\r\n\t\t\tdataType: \"html\",\r\n\t\t\tdata: params\r\n\t\t} ).done( function( responseText ) {\r\n\r\n\t\t\t// Save response for use in complete callback\r\n\t\t\tresponse = arguments;\r\n\r\n\t\t\tself.html( selector ?\r\n\r\n\t\t\t\t// If a selector was specified, locate the right elements in a dummy div\r\n\t\t\t\t// Exclude scripts to avoid IE 'Permission Denied' errors\r\n\t\t\t\tjQuery( \"<div>\" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :\r\n\r\n\t\t\t\t// Otherwise use the full result\r\n\t\t\t\tresponseText );\r\n\r\n\t\t// If the request succeeds, this function gets \"data\", \"status\", \"jqXHR\"\r\n\t\t// but they are ignored because response was set above.\r\n\t\t// If it fails, this function gets \"jqXHR\", \"status\", \"error\"\r\n\t\t} ).always( callback && function( jqXHR, status ) {\r\n\t\t\tself.each( function() {\r\n\t\t\t\tcallback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );\r\n\t\t\t} );\r\n\t\t} );\r\n\t}\r\n\r\n\treturn this;\r\n};\r\n\r\n\r\n\r\n\r\n// Attach a bunch of functions for handling common AJAX events\r\njQuery.each( [\r\n\t\"ajaxStart\",\r\n\t\"ajaxStop\",\r\n\t\"ajaxComplete\",\r\n\t\"ajaxError\",\r\n\t\"ajaxSuccess\",\r\n\t\"ajaxSend\"\r\n], function( i, type ) {\r\n\tjQuery.fn[ type ] = function( fn ) {\r\n\t\treturn this.on( type, fn );\r\n\t};\r\n} );\r\n\r\n\r\n\r\n\r\njQuery.expr.pseudos.animated = function( elem ) {\r\n\treturn jQuery.grep( jQuery.timers, function( fn ) {\r\n\t\treturn elem === fn.elem;\r\n\t} ).length;\r\n};\r\n\r\n\r\n\r\n\r\n/**\r\n * Gets a window from an element\r\n */\r\nfunction getWindow( elem ) {\r\n\treturn jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;\r\n}\r\n\r\njQuery.offset = {\r\n\tsetOffset: function( elem, options, i ) {\r\n\t\tvar curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,\r\n\t\t\tposition = jQuery.css( elem, \"position\" ),\r\n\t\t\tcurElem = jQuery( elem ),\r\n\t\t\tprops = {};\r\n\r\n\t\t// Set position first, in-case top/left are set even on static elem\r\n\t\tif ( position === \"static\" ) {\r\n\t\t\telem.style.position = \"relative\";\r\n\t\t}\r\n\r\n\t\tcurOffset = curElem.offset();\r\n\t\tcurCSSTop = jQuery.css( elem, \"top\" );\r\n\t\tcurCSSLeft = jQuery.css( elem, \"left\" );\r\n\t\tcalculatePosition = ( position === \"absolute\" || position === \"fixed\" ) &&\r\n\t\t\t( curCSSTop + curCSSLeft ).indexOf( \"auto\" ) > -1;\r\n\r\n\t\t// Need to be able to calculate position if either\r\n\t\t// top or left is auto and position is either absolute or fixed\r\n\t\tif ( calculatePosition ) {\r\n\t\t\tcurPosition = curElem.position();\r\n\t\t\tcurTop = curPosition.top;\r\n\t\t\tcurLeft = curPosition.left;\r\n\r\n\t\t} else {\r\n\t\t\tcurTop = parseFloat( curCSSTop ) || 0;\r\n\t\t\tcurLeft = parseFloat( curCSSLeft ) || 0;\r\n\t\t}\r\n\r\n\t\tif ( jQuery.isFunction( options ) ) {\r\n\r\n\t\t\t// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)\r\n\t\t\toptions = options.call( elem, i, jQuery.extend( {}, curOffset ) );\r\n\t\t}\r\n\r\n\t\tif ( options.top != null ) {\r\n\t\t\tprops.top = ( options.top - curOffset.top ) + curTop;\r\n\t\t}\r\n\t\tif ( options.left != null ) {\r\n\t\t\tprops.left = ( options.left - curOffset.left ) + curLeft;\r\n\t\t}\r\n\r\n\t\tif ( \"using\" in options ) {\r\n\t\t\toptions.using.call( elem, props );\r\n\r\n\t\t} else {\r\n\t\t\tcurElem.css( props );\r\n\t\t}\r\n\t}\r\n};\r\n\r\njQuery.fn.extend( {\r\n\toffset: function( options ) {\r\n\r\n\t\t// Preserve chaining for setter\r\n\t\tif ( arguments.length ) {\r\n\t\t\treturn options === undefined ?\r\n\t\t\t\tthis :\r\n\t\t\t\tthis.each( function( i ) {\r\n\t\t\t\t\tjQuery.offset.setOffset( this, options, i );\r\n\t\t\t\t} );\r\n\t\t}\r\n\r\n\t\tvar docElem, win, rect, doc,\r\n\t\t\telem = this[ 0 ];\r\n\r\n\t\tif ( !elem ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Support: IE <=11 only\r\n\t\t// Running getBoundingClientRect on a\r\n\t\t// disconnected node in IE throws an error\r\n\t\tif ( !elem.getClientRects().length ) {\r\n\t\t\treturn { top: 0, left: 0 };\r\n\t\t}\r\n\r\n\t\trect = elem.getBoundingClientRect();\r\n\r\n\t\t// Make sure element is not hidden (display: none)\r\n\t\tif ( rect.width || rect.height ) {\r\n\t\t\tdoc = elem.ownerDocument;\r\n\t\t\twin = getWindow( doc );\r\n\t\t\tdocElem = doc.documentElement;\r\n\r\n\t\t\treturn {\r\n\t\t\t\ttop: rect.top + win.pageYOffset - docElem.clientTop,\r\n\t\t\t\tleft: rect.left + win.pageXOffset - docElem.clientLeft\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\t// Return zeros for disconnected and hidden elements (gh-2310)\r\n\t\treturn rect;\r\n\t},\r\n\r\n\tposition: function() {\r\n\t\tif ( !this[ 0 ] ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar offsetParent, offset,\r\n\t\t\telem = this[ 0 ],\r\n\t\t\tparentOffset = { top: 0, left: 0 };\r\n\r\n\t\t// Fixed elements are offset from window (parentOffset = {top:0, left: 0},\r\n\t\t// because it is its only offset parent\r\n\t\tif ( jQuery.css( elem, \"position\" ) === \"fixed\" ) {\r\n\r\n\t\t\t// Assume getBoundingClientRect is there when computed position is fixed\r\n\t\t\toffset = elem.getBoundingClientRect();\r\n\r\n\t\t} else {\r\n\r\n\t\t\t// Get *real* offsetParent\r\n\t\t\toffsetParent = this.offsetParent();\r\n\r\n\t\t\t// Get correct offsets\r\n\t\t\toffset = this.offset();\r\n\t\t\tif ( !jQuery.nodeName( offsetParent[ 0 ], \"html\" ) ) {\r\n\t\t\t\tparentOffset = offsetParent.offset();\r\n\t\t\t}\r\n\r\n\t\t\t// Add offsetParent borders\r\n\t\t\tparentOffset = {\r\n\t\t\t\ttop: parentOffset.top + jQuery.css( offsetParent[ 0 ], \"borderTopWidth\", true ),\r\n\t\t\t\tleft: parentOffset.left + jQuery.css( offsetParent[ 0 ], \"borderLeftWidth\", true )\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\t// Subtract parent offsets and element margins\r\n\t\treturn {\r\n\t\t\ttop: offset.top - parentOffset.top - jQuery.css( elem, \"marginTop\", true ),\r\n\t\t\tleft: offset.left - parentOffset.left - jQuery.css( elem, \"marginLeft\", true )\r\n\t\t};\r\n\t},\r\n\r\n\t// This method will return documentElement in the following cases:\r\n\t// 1) For the element inside the iframe without offsetParent, this method will return\r\n\t//    documentElement of the parent window\r\n\t// 2) For the hidden or detached element\r\n\t// 3) For body or html element, i.e. in case of the html node - it will return itself\r\n\t//\r\n\t// but those exceptions were never presented as a real life use-cases\r\n\t// and might be considered as more preferable results.\r\n\t//\r\n\t// This logic, however, is not guaranteed and can change at any point in the future\r\n\toffsetParent: function() {\r\n\t\treturn this.map( function() {\r\n\t\t\tvar offsetParent = this.offsetParent;\r\n\r\n\t\t\twhile ( offsetParent && jQuery.css( offsetParent, \"position\" ) === \"static\" ) {\r\n\t\t\t\toffsetParent = offsetParent.offsetParent;\r\n\t\t\t}\r\n\r\n\t\t\treturn offsetParent || documentElement;\r\n\t\t} );\r\n\t}\r\n} );\r\n\r\n// Create scrollLeft and scrollTop methods\r\njQuery.each( { scrollLeft: \"pageXOffset\", scrollTop: \"pageYOffset\" }, function( method, prop ) {\r\n\tvar top = \"pageYOffset\" === prop;\r\n\r\n\tjQuery.fn[ method ] = function( val ) {\r\n\t\treturn access( this, function( elem, method, val ) {\r\n\t\t\tvar win = getWindow( elem );\r\n\r\n\t\t\tif ( val === undefined ) {\r\n\t\t\t\treturn win ? win[ prop ] : elem[ method ];\r\n\t\t\t}\r\n\r\n\t\t\tif ( win ) {\r\n\t\t\t\twin.scrollTo(\r\n\t\t\t\t\t!top ? val : win.pageXOffset,\r\n\t\t\t\t\ttop ? val : win.pageYOffset\r\n\t\t\t\t);\r\n\r\n\t\t\t} else {\r\n\t\t\t\telem[ method ] = val;\r\n\t\t\t}\r\n\t\t}, method, val, arguments.length );\r\n\t};\r\n} );\r\n\r\n// Support: Safari <=7 - 9.1, Chrome <=37 - 49\r\n// Add the top/left cssHooks using jQuery.fn.position\r\n// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084\r\n// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347\r\n// getComputedStyle returns percent when specified for top/left/bottom/right;\r\n// rather than make the css module depend on the offset module, just check for it here\r\njQuery.each( [ \"top\", \"left\" ], function( i, prop ) {\r\n\tjQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,\r\n\t\tfunction( elem, computed ) {\r\n\t\t\tif ( computed ) {\r\n\t\t\t\tcomputed = curCSS( elem, prop );\r\n\r\n\t\t\t\t// If curCSS returns percentage, fallback to offset\r\n\t\t\t\treturn rnumnonpx.test( computed ) ?\r\n\t\t\t\t\tjQuery( elem ).position()[ prop ] + \"px\" :\r\n\t\t\t\t\tcomputed;\r\n\t\t\t}\r\n\t\t}\r\n\t);\r\n} );\r\n\r\n\r\n// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods\r\njQuery.each( { Height: \"height\", Width: \"width\" }, function( name, type ) {\r\n\tjQuery.each( { padding: \"inner\" + name, content: type, \"\": \"outer\" + name },\r\n\t\tfunction( defaultExtra, funcName ) {\r\n\r\n\t\t// Margin is only for outerHeight, outerWidth\r\n\t\tjQuery.fn[ funcName ] = function( margin, value ) {\r\n\t\t\tvar chainable = arguments.length && ( defaultExtra || typeof margin !== \"boolean\" ),\r\n\t\t\t\textra = defaultExtra || ( margin === true || value === true ? \"margin\" : \"border\" );\r\n\r\n\t\t\treturn access( this, function( elem, type, value ) {\r\n\t\t\t\tvar doc;\r\n\r\n\t\t\t\tif ( jQuery.isWindow( elem ) ) {\r\n\r\n\t\t\t\t\t// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)\r\n\t\t\t\t\treturn funcName.indexOf( \"outer\" ) === 0 ?\r\n\t\t\t\t\t\telem[ \"inner\" + name ] :\r\n\t\t\t\t\t\telem.document.documentElement[ \"client\" + name ];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Get document width or height\r\n\t\t\t\tif ( elem.nodeType === 9 ) {\r\n\t\t\t\t\tdoc = elem.documentElement;\r\n\r\n\t\t\t\t\t// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],\r\n\t\t\t\t\t// whichever is greatest\r\n\t\t\t\t\treturn Math.max(\r\n\t\t\t\t\t\telem.body[ \"scroll\" + name ], doc[ \"scroll\" + name ],\r\n\t\t\t\t\t\telem.body[ \"offset\" + name ], doc[ \"offset\" + name ],\r\n\t\t\t\t\t\tdoc[ \"client\" + name ]\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn value === undefined ?\r\n\r\n\t\t\t\t\t// Get width or height on the element, requesting but not forcing parseFloat\r\n\t\t\t\t\tjQuery.css( elem, type, extra ) :\r\n\r\n\t\t\t\t\t// Set width or height on the element\r\n\t\t\t\t\tjQuery.style( elem, type, value, extra );\r\n\t\t\t}, type, chainable ? margin : undefined, chainable );\r\n\t\t};\r\n\t} );\r\n} );\r\n\r\n\r\njQuery.fn.extend( {\r\n\r\n\tbind: function( types, data, fn ) {\r\n\t\treturn this.on( types, null, data, fn );\r\n\t},\r\n\tunbind: function( types, fn ) {\r\n\t\treturn this.off( types, null, fn );\r\n\t},\r\n\r\n\tdelegate: function( selector, types, data, fn ) {\r\n\t\treturn this.on( types, selector, data, fn );\r\n\t},\r\n\tundelegate: function( selector, types, fn ) {\r\n\r\n\t\t// ( namespace ) or ( selector, types [, fn] )\r\n\t\treturn arguments.length === 1 ?\r\n\t\t\tthis.off( selector, \"**\" ) :\r\n\t\t\tthis.off( types, selector || \"**\", fn );\r\n\t}\r\n} );\r\n\r\njQuery.parseJSON = JSON.parse;\r\n\r\n\r\n\r\n\r\n// Register as a named AMD module, since jQuery can be concatenated with other\r\n// files that may use define, but not via a proper concatenation script that\r\n// understands anonymous AMD modules. A named AMD is safest and most robust\r\n// way to register. Lowercase jquery is used because AMD module names are\r\n// derived from file names, and jQuery is normally delivered in a lowercase\r\n// file name. Do this after creating the global so that if an AMD module wants\r\n// to call noConflict to hide this version of jQuery, it will work.\r\n\r\n// Note that for maximum portability, libraries that are not jQuery should\r\n// declare themselves as anonymous modules, and avoid setting a global if an\r\n// AMD loader is present. jQuery is a special case. For more information, see\r\n// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon\r\n\r\nif ( typeof define === \"function\" && define.amd ) {\r\n\tdefine( \"jquery\", [], function() {\r\n\t\treturn jQuery;\r\n\t} );\r\n}\r\n\r\n\r\n\r\n\r\n\r\nvar\r\n\r\n\t// Map over jQuery in case of overwrite\r\n\t_jQuery = window.jQuery,\r\n\r\n\t// Map over the $ in case of overwrite\r\n\t_$ = window.$;\r\n\r\njQuery.noConflict = function( deep ) {\r\n\tif ( window.$ === jQuery ) {\r\n\t\twindow.$ = _$;\r\n\t}\r\n\r\n\tif ( deep && window.jQuery === jQuery ) {\r\n\t\twindow.jQuery = _jQuery;\r\n\t}\r\n\r\n\treturn jQuery;\r\n};\r\n\r\n// Expose jQuery and $ identifiers, even in AMD\r\n// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)\r\n// and CommonJS for browser emulators (#13566)\r\nif ( !noGlobal ) {\r\n\twindow.jQuery = window.$ = jQuery;\r\n}\r\n\r\n\r\nreturn jQuery;\r\n} );\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jquery/dist/jquery.js\n// module id = 11\n// module chunks = 2","var __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * @license Angular v4.1.3\r\n * (c) 2010-2017 Google, Inc. https://angular.io/\r\n * License: MIT\r\n */\r\nimport { Attribute, ChangeDetectorRef, ComponentFactoryResolver, Directive, ElementRef, EventEmitter, Host, Inject, Injectable, InjectionToken, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, NgModule, NgModuleRef, Optional, Pipe, Renderer, TemplateRef, Version, ViewContainerRef, WrappedValue, isDevMode, ɵisListLikeIterable, ɵisObservable, ɵisPromise, ɵstringify } from '@angular/core';\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * This class should not be used directly by an application developer. Instead, use\r\n * {\\@link Location}.\r\n *\r\n * `PlatformLocation` encapsulates all calls to DOM apis, which allows the Router to be platform\r\n * agnostic.\r\n * This means that we can have different implementation of `PlatformLocation` for the different\r\n * platforms that angular supports. For example, `\\@angular/platform-browser` provides an\r\n * implementation specific to the browser environment, while `\\@angular/platform-webworker` provides\r\n * one suitable for use with web workers.\r\n *\r\n * The `PlatformLocation` class is used directly by all implementations of {\\@link LocationStrategy}\r\n * when they need to interact with the DOM apis like pushState, popState, etc...\r\n *\r\n * {\\@link LocationStrategy} in turn is used by the {\\@link Location} service which is used directly\r\n * by the {\\@link Router} in order to navigate between routes. Since all interactions between {\\@link\r\n * Router} /\r\n * {\\@link Location} / {\\@link LocationStrategy} and DOM apis flow through the `PlatformLocation`\r\n * class they are all platform independent.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar PlatformLocation = (function () {\r\n    function PlatformLocation() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    PlatformLocation.prototype.getBaseHrefFromDOM = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    PlatformLocation.prototype.onPopState = function (fn) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    PlatformLocation.prototype.onHashChange = function (fn) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    PlatformLocation.prototype.pathname = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    PlatformLocation.prototype.search = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    PlatformLocation.prototype.hash = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} state\r\n     * @param {?} title\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    PlatformLocation.prototype.replaceState = function (state, title, url) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} state\r\n     * @param {?} title\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    PlatformLocation.prototype.pushState = function (state, title, url) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    PlatformLocation.prototype.forward = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    PlatformLocation.prototype.back = function () { };\r\n    return PlatformLocation;\r\n}());\r\n/**\r\n * \\@whatItDoes indicates when a location is initialized\r\n * \\@experimental\r\n */\r\nvar LOCATION_INITIALIZED = new InjectionToken('Location Initialized');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * `LocationStrategy` is responsible for representing and reading route state\r\n * from the browser's URL. Angular provides two strategies:\r\n * {\\@link HashLocationStrategy} and {\\@link PathLocationStrategy}.\r\n *\r\n * This is used under the hood of the {\\@link Location} service.\r\n *\r\n * Applications should use the {\\@link Router} or {\\@link Location} services to\r\n * interact with application route state.\r\n *\r\n * For instance, {\\@link HashLocationStrategy} produces URLs like\r\n * `http://example.com#/foo`, and {\\@link PathLocationStrategy} produces\r\n * `http://example.com/foo` as an equivalent URL.\r\n *\r\n * See these two classes for more.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar LocationStrategy = (function () {\r\n    function LocationStrategy() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?=} includeHash\r\n     * @return {?}\r\n     */\r\n    LocationStrategy.prototype.path = function (includeHash) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} internal\r\n     * @return {?}\r\n     */\r\n    LocationStrategy.prototype.prepareExternalUrl = function (internal) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} state\r\n     * @param {?} title\r\n     * @param {?} url\r\n     * @param {?} queryParams\r\n     * @return {?}\r\n     */\r\n    LocationStrategy.prototype.pushState = function (state, title, url, queryParams) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} state\r\n     * @param {?} title\r\n     * @param {?} url\r\n     * @param {?} queryParams\r\n     * @return {?}\r\n     */\r\n    LocationStrategy.prototype.replaceState = function (state, title, url, queryParams) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    LocationStrategy.prototype.forward = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    LocationStrategy.prototype.back = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    LocationStrategy.prototype.onPopState = function (fn) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    LocationStrategy.prototype.getBaseHref = function () { };\r\n    return LocationStrategy;\r\n}());\r\n/**\r\n * The `APP_BASE_HREF` token represents the base href to be used with the\r\n * {\\@link PathLocationStrategy}.\r\n *\r\n * If you're using {\\@link PathLocationStrategy}, you must provide a provider to a string\r\n * representing the URL prefix that should be preserved when generating and recognizing\r\n * URLs.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * import {Component, NgModule} from '\\@angular/core';\r\n * import {APP_BASE_HREF} from '\\@angular/common';\r\n *\r\n * \\@NgModule({\r\n *   providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]\r\n * })\r\n * class AppModule {}\r\n * ```\r\n *\r\n * \\@stable\r\n */\r\nvar APP_BASE_HREF = new InjectionToken('appBaseHref');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes `Location` is a service that applications can use to interact with a browser's URL.\r\n * \\@description\r\n * Depending on which {\\@link LocationStrategy} is used, `Location` will either persist\r\n * to the URL's path or the URL's hash segment.\r\n *\r\n * Note: it's better to use {\\@link Router#navigate} service to trigger route changes. Use\r\n * `Location` only if you need to interact with or create normalized URLs outside of\r\n * routing.\r\n *\r\n * `Location` is responsible for normalizing the URL against the application's base href.\r\n * A normalized URL is absolute from the URL host, includes the application's base href, and has no\r\n * trailing slash:\r\n * - `/my/app/user/123` is normalized\r\n * - `my/app/user/123` **is not** normalized\r\n * - `/my/app/user/123/` **is not** normalized\r\n *\r\n * ### Example\r\n * {\\@example common/location/ts/path_location_component.ts region='LocationComponent'}\r\n * \\@stable\r\n */\r\nvar Location = (function () {\r\n    /**\r\n     * @param {?} platformStrategy\r\n     */\r\n    function Location(platformStrategy) {\r\n        var _this = this;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._subject = new EventEmitter();\r\n        this._platformStrategy = platformStrategy;\r\n        var browserBaseHref = this._platformStrategy.getBaseHref();\r\n        this._baseHref = Location.stripTrailingSlash(_stripIndexHtml(browserBaseHref));\r\n        this._platformStrategy.onPopState(function (ev) {\r\n            _this._subject.emit({\r\n                'url': _this.path(true),\r\n                'pop': true,\r\n                'type': ev.type,\r\n            });\r\n        });\r\n    }\r\n    /**\r\n     * @param {?=} includeHash\r\n     * @return {?}\r\n     */\r\n    Location.prototype.path = function (includeHash) {\r\n        if (includeHash === void 0) { includeHash = false; }\r\n        return this.normalize(this._platformStrategy.path(includeHash));\r\n    };\r\n    /**\r\n     * Normalizes the given path and compares to the current normalized path.\r\n     * @param {?} path\r\n     * @param {?=} query\r\n     * @return {?}\r\n     */\r\n    Location.prototype.isCurrentPathEqualTo = function (path, query) {\r\n        if (query === void 0) { query = ''; }\r\n        return this.path() == this.normalize(path + Location.normalizeQueryParams(query));\r\n    };\r\n    /**\r\n     * Given a string representing a URL, returns the normalized URL path without leading or\r\n     * trailing slashes.\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Location.prototype.normalize = function (url) {\r\n        return Location.stripTrailingSlash(_stripBaseHref(this._baseHref, _stripIndexHtml(url)));\r\n    };\r\n    /**\r\n     * Given a string representing a URL, returns the platform-specific external URL path.\r\n     * If the given URL doesn't begin with a leading slash (`'/'`), this method adds one\r\n     * before normalizing. This method will also add a hash if `HashLocationStrategy` is\r\n     * used, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Location.prototype.prepareExternalUrl = function (url) {\r\n        if (url && url[0] !== '/') {\r\n            url = '/' + url;\r\n        }\r\n        return this._platformStrategy.prepareExternalUrl(url);\r\n    };\r\n    /**\r\n     * Changes the browsers URL to the normalized version of the given URL, and pushes a\r\n     * new item onto the platform's history.\r\n     * @param {?} path\r\n     * @param {?=} query\r\n     * @return {?}\r\n     */\r\n    Location.prototype.go = function (path, query) {\r\n        if (query === void 0) { query = ''; }\r\n        this._platformStrategy.pushState(null, '', path, query);\r\n    };\r\n    /**\r\n     * Changes the browsers URL to the normalized version of the given URL, and replaces\r\n     * the top item on the platform's history stack.\r\n     * @param {?} path\r\n     * @param {?=} query\r\n     * @return {?}\r\n     */\r\n    Location.prototype.replaceState = function (path, query) {\r\n        if (query === void 0) { query = ''; }\r\n        this._platformStrategy.replaceState(null, '', path, query);\r\n    };\r\n    /**\r\n     * Navigates forward in the platform's history.\r\n     * @return {?}\r\n     */\r\n    Location.prototype.forward = function () { this._platformStrategy.forward(); };\r\n    /**\r\n     * Navigates back in the platform's history.\r\n     * @return {?}\r\n     */\r\n    Location.prototype.back = function () { this._platformStrategy.back(); };\r\n    /**\r\n     * Subscribe to the platform's `popState` events.\r\n     * @param {?} onNext\r\n     * @param {?=} onThrow\r\n     * @param {?=} onReturn\r\n     * @return {?}\r\n     */\r\n    Location.prototype.subscribe = function (onNext, onThrow, onReturn) {\r\n        return this._subject.subscribe({ next: onNext, error: onThrow, complete: onReturn });\r\n    };\r\n    /**\r\n     * Given a string of url parameters, prepend with '?' if needed, otherwise return parameters as\r\n     * is.\r\n     * @param {?} params\r\n     * @return {?}\r\n     */\r\n    Location.normalizeQueryParams = function (params) {\r\n        return params && params[0] !== '?' ? '?' + params : params;\r\n    };\r\n    /**\r\n     * Given 2 parts of a url, join them with a slash if needed.\r\n     * @param {?} start\r\n     * @param {?} end\r\n     * @return {?}\r\n     */\r\n    Location.joinWithSlash = function (start, end) {\r\n        if (start.length == 0) {\r\n            return end;\r\n        }\r\n        if (end.length == 0) {\r\n            return start;\r\n        }\r\n        var /** @type {?} */ slashes = 0;\r\n        if (start.endsWith('/')) {\r\n            slashes++;\r\n        }\r\n        if (end.startsWith('/')) {\r\n            slashes++;\r\n        }\r\n        if (slashes == 2) {\r\n            return start + end.substring(1);\r\n        }\r\n        if (slashes == 1) {\r\n            return start + end;\r\n        }\r\n        return start + '/' + end;\r\n    };\r\n    /**\r\n     * If url has a trailing slash, remove it, otherwise return url as is.\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Location.stripTrailingSlash = function (url) { return url.replace(/\\/$/, ''); };\r\n    return Location;\r\n}());\r\nLocation.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nLocation.ctorParameters = function () { return [\r\n    { type: LocationStrategy, },\r\n]; };\r\n/**\r\n * @param {?} baseHref\r\n * @param {?} url\r\n * @return {?}\r\n */\r\nfunction _stripBaseHref(baseHref, url) {\r\n    return baseHref && url.startsWith(baseHref) ? url.substring(baseHref.length) : url;\r\n}\r\n/**\r\n * @param {?} url\r\n * @return {?}\r\n */\r\nfunction _stripIndexHtml(url) {\r\n    return url.replace(/\\/index.html$/, '');\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Use URL hash for storing application location data.\r\n * \\@description\r\n * `HashLocationStrategy` is a {\\@link LocationStrategy} used to configure the\r\n * {\\@link Location} service to represent its state in the\r\n * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)\r\n * of the browser's URL.\r\n *\r\n * For instance, if you call `location.go('/foo')`, the browser's URL will become\r\n * `example.com#/foo`.\r\n *\r\n * ### Example\r\n *\r\n * {\\@example common/location/ts/hash_location_component.ts region='LocationComponent'}\r\n *\r\n * \\@stable\r\n */\r\nvar HashLocationStrategy = (function (_super) {\r\n    __extends(HashLocationStrategy, _super);\r\n    /**\r\n     * @param {?} _platformLocation\r\n     * @param {?=} _baseHref\r\n     */\r\n    function HashLocationStrategy(_platformLocation, _baseHref) {\r\n        var _this = _super.call(this) || this;\r\n        _this._platformLocation = _platformLocation;\r\n        _this._baseHref = '';\r\n        if (_baseHref != null) {\r\n            _this._baseHref = _baseHref;\r\n        }\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    HashLocationStrategy.prototype.onPopState = function (fn) {\r\n        this._platformLocation.onPopState(fn);\r\n        this._platformLocation.onHashChange(fn);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    HashLocationStrategy.prototype.getBaseHref = function () { return this._baseHref; };\r\n    /**\r\n     * @param {?=} includeHash\r\n     * @return {?}\r\n     */\r\n    HashLocationStrategy.prototype.path = function (includeHash) {\r\n        if (includeHash === void 0) { includeHash = false; }\r\n        // the hash value is always prefixed with a `#`\r\n        // and if it is empty then it will stay empty\r\n        var /** @type {?} */ path = this._platformLocation.hash;\r\n        if (path == null)\r\n            path = '#';\r\n        return path.length > 0 ? path.substring(1) : path;\r\n    };\r\n    /**\r\n     * @param {?} internal\r\n     * @return {?}\r\n     */\r\n    HashLocationStrategy.prototype.prepareExternalUrl = function (internal) {\r\n        var /** @type {?} */ url = Location.joinWithSlash(this._baseHref, internal);\r\n        return url.length > 0 ? ('#' + url) : url;\r\n    };\r\n    /**\r\n     * @param {?} state\r\n     * @param {?} title\r\n     * @param {?} path\r\n     * @param {?} queryParams\r\n     * @return {?}\r\n     */\r\n    HashLocationStrategy.prototype.pushState = function (state, title, path, queryParams) {\r\n        var /** @type {?} */ url = this.prepareExternalUrl(path + Location.normalizeQueryParams(queryParams));\r\n        if (url.length == 0) {\r\n            url = this._platformLocation.pathname;\r\n        }\r\n        this._platformLocation.pushState(state, title, url);\r\n    };\r\n    /**\r\n     * @param {?} state\r\n     * @param {?} title\r\n     * @param {?} path\r\n     * @param {?} queryParams\r\n     * @return {?}\r\n     */\r\n    HashLocationStrategy.prototype.replaceState = function (state, title, path, queryParams) {\r\n        var /** @type {?} */ url = this.prepareExternalUrl(path + Location.normalizeQueryParams(queryParams));\r\n        if (url.length == 0) {\r\n            url = this._platformLocation.pathname;\r\n        }\r\n        this._platformLocation.replaceState(state, title, url);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    HashLocationStrategy.prototype.forward = function () { this._platformLocation.forward(); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    HashLocationStrategy.prototype.back = function () { this._platformLocation.back(); };\r\n    return HashLocationStrategy;\r\n}(LocationStrategy));\r\nHashLocationStrategy.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nHashLocationStrategy.ctorParameters = function () { return [\r\n    { type: PlatformLocation, },\r\n    { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [APP_BASE_HREF,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Use URL for storing application location data.\r\n * \\@description\r\n * `PathLocationStrategy` is a {\\@link LocationStrategy} used to configure the\r\n * {\\@link Location} service to represent its state in the\r\n * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the\r\n * browser's URL.\r\n *\r\n * If you're using `PathLocationStrategy`, you must provide a {\\@link APP_BASE_HREF}\r\n * or add a base element to the document. This URL prefix that will be preserved\r\n * when generating and recognizing URLs.\r\n *\r\n * For instance, if you provide an `APP_BASE_HREF` of `'/my/app'` and call\r\n * `location.go('/foo')`, the browser's URL will become\r\n * `example.com/my/app/foo`.\r\n *\r\n * Similarly, if you add `<base href='/my/app'/>` to the document and call\r\n * `location.go('/foo')`, the browser's URL will become\r\n * `example.com/my/app/foo`.\r\n *\r\n * ### Example\r\n *\r\n * {\\@example common/location/ts/path_location_component.ts region='LocationComponent'}\r\n *\r\n * \\@stable\r\n */\r\nvar PathLocationStrategy = (function (_super) {\r\n    __extends(PathLocationStrategy, _super);\r\n    /**\r\n     * @param {?} _platformLocation\r\n     * @param {?=} href\r\n     */\r\n    function PathLocationStrategy(_platformLocation, href) {\r\n        var _this = _super.call(this) || this;\r\n        _this._platformLocation = _platformLocation;\r\n        if (href == null) {\r\n            href = _this._platformLocation.getBaseHrefFromDOM();\r\n        }\r\n        if (href == null) {\r\n            throw new Error(\"No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.\");\r\n        }\r\n        _this._baseHref = href;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    PathLocationStrategy.prototype.onPopState = function (fn) {\r\n        this._platformLocation.onPopState(fn);\r\n        this._platformLocation.onHashChange(fn);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    PathLocationStrategy.prototype.getBaseHref = function () { return this._baseHref; };\r\n    /**\r\n     * @param {?} internal\r\n     * @return {?}\r\n     */\r\n    PathLocationStrategy.prototype.prepareExternalUrl = function (internal) {\r\n        return Location.joinWithSlash(this._baseHref, internal);\r\n    };\r\n    /**\r\n     * @param {?=} includeHash\r\n     * @return {?}\r\n     */\r\n    PathLocationStrategy.prototype.path = function (includeHash) {\r\n        if (includeHash === void 0) { includeHash = false; }\r\n        var /** @type {?} */ pathname = this._platformLocation.pathname +\r\n            Location.normalizeQueryParams(this._platformLocation.search);\r\n        var /** @type {?} */ hash = this._platformLocation.hash;\r\n        return hash && includeHash ? \"\" + pathname + hash : pathname;\r\n    };\r\n    /**\r\n     * @param {?} state\r\n     * @param {?} title\r\n     * @param {?} url\r\n     * @param {?} queryParams\r\n     * @return {?}\r\n     */\r\n    PathLocationStrategy.prototype.pushState = function (state, title, url, queryParams) {\r\n        var /** @type {?} */ externalUrl = this.prepareExternalUrl(url + Location.normalizeQueryParams(queryParams));\r\n        this._platformLocation.pushState(state, title, externalUrl);\r\n    };\r\n    /**\r\n     * @param {?} state\r\n     * @param {?} title\r\n     * @param {?} url\r\n     * @param {?} queryParams\r\n     * @return {?}\r\n     */\r\n    PathLocationStrategy.prototype.replaceState = function (state, title, url, queryParams) {\r\n        var /** @type {?} */ externalUrl = this.prepareExternalUrl(url + Location.normalizeQueryParams(queryParams));\r\n        this._platformLocation.replaceState(state, title, externalUrl);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    PathLocationStrategy.prototype.forward = function () { this._platformLocation.forward(); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    PathLocationStrategy.prototype.back = function () { this._platformLocation.back(); };\r\n    return PathLocationStrategy;\r\n}(LocationStrategy));\r\nPathLocationStrategy.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nPathLocationStrategy.ctorParameters = function () { return [\r\n    { type: PlatformLocation, },\r\n    { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [APP_BASE_HREF,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar NgLocalization = (function () {\r\n    function NgLocalization() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    NgLocalization.prototype.getPluralCategory = function (value) { };\r\n    return NgLocalization;\r\n}());\r\n/**\r\n * Returns the plural category for a given value.\r\n * - \"=value\" when the case exists,\r\n * - the plural category otherwise\r\n *\r\n * \\@internal\r\n * @param {?} value\r\n * @param {?} cases\r\n * @param {?} ngLocalization\r\n * @return {?}\r\n */\r\nfunction getPluralCategory(value, cases, ngLocalization) {\r\n    var /** @type {?} */ key = \"=\" + value;\r\n    if (cases.indexOf(key) > -1) {\r\n        return key;\r\n    }\r\n    key = ngLocalization.getPluralCategory(value);\r\n    if (cases.indexOf(key) > -1) {\r\n        return key;\r\n    }\r\n    if (cases.indexOf('other') > -1) {\r\n        return 'other';\r\n    }\r\n    throw new Error(\"No plural message found for value \\\"\" + value + \"\\\"\");\r\n}\r\n/**\r\n * Returns the plural case based on the locale\r\n *\r\n * \\@experimental\r\n */\r\nvar NgLocaleLocalization = (function (_super) {\r\n    __extends(NgLocaleLocalization, _super);\r\n    /**\r\n     * @param {?} locale\r\n     */\r\n    function NgLocaleLocalization(locale) {\r\n        var _this = _super.call(this) || this;\r\n        _this.locale = locale;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    NgLocaleLocalization.prototype.getPluralCategory = function (value) {\r\n        var /** @type {?} */ plural = getPluralCase(this.locale, value);\r\n        switch (plural) {\r\n            case Plural.Zero:\r\n                return 'zero';\r\n            case Plural.One:\r\n                return 'one';\r\n            case Plural.Two:\r\n                return 'two';\r\n            case Plural.Few:\r\n                return 'few';\r\n            case Plural.Many:\r\n                return 'many';\r\n            default:\r\n                return 'other';\r\n        }\r\n    };\r\n    return NgLocaleLocalization;\r\n}(NgLocalization));\r\nNgLocaleLocalization.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgLocaleLocalization.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [LOCALE_ID,] },] },\r\n]; };\r\nvar Plural = {};\r\nPlural.Zero = 0;\r\nPlural.One = 1;\r\nPlural.Two = 2;\r\nPlural.Few = 3;\r\nPlural.Many = 4;\r\nPlural.Other = 5;\r\nPlural[Plural.Zero] = \"Zero\";\r\nPlural[Plural.One] = \"One\";\r\nPlural[Plural.Two] = \"Two\";\r\nPlural[Plural.Few] = \"Few\";\r\nPlural[Plural.Many] = \"Many\";\r\nPlural[Plural.Other] = \"Other\";\r\n/**\r\n * Returns the plural case based on the locale\r\n *\r\n * \\@experimental\r\n * @param {?} locale\r\n * @param {?} nLike\r\n * @return {?}\r\n */\r\nfunction getPluralCase(locale, nLike) {\r\n    // TODO(vicb): lazy compute\r\n    if (typeof nLike === 'string') {\r\n        nLike = parseInt(/** @type {?} */ (nLike), 10);\r\n    }\r\n    var /** @type {?} */ n = (nLike);\r\n    var /** @type {?} */ nDecimal = n.toString().replace(/^[^.]*\\.?/, '');\r\n    var /** @type {?} */ i = Math.floor(Math.abs(n));\r\n    var /** @type {?} */ v = nDecimal.length;\r\n    var /** @type {?} */ f = parseInt(nDecimal, 10);\r\n    var /** @type {?} */ t = parseInt(n.toString().replace(/^[^.]*\\.?|0+$/g, ''), 10) || 0;\r\n    var /** @type {?} */ lang = locale.split('-')[0].toLowerCase();\r\n    switch (lang) {\r\n        case 'af':\r\n        case 'asa':\r\n        case 'az':\r\n        case 'bem':\r\n        case 'bez':\r\n        case 'bg':\r\n        case 'brx':\r\n        case 'ce':\r\n        case 'cgg':\r\n        case 'chr':\r\n        case 'ckb':\r\n        case 'ee':\r\n        case 'el':\r\n        case 'eo':\r\n        case 'es':\r\n        case 'eu':\r\n        case 'fo':\r\n        case 'fur':\r\n        case 'gsw':\r\n        case 'ha':\r\n        case 'haw':\r\n        case 'hu':\r\n        case 'jgo':\r\n        case 'jmc':\r\n        case 'ka':\r\n        case 'kk':\r\n        case 'kkj':\r\n        case 'kl':\r\n        case 'ks':\r\n        case 'ksb':\r\n        case 'ky':\r\n        case 'lb':\r\n        case 'lg':\r\n        case 'mas':\r\n        case 'mgo':\r\n        case 'ml':\r\n        case 'mn':\r\n        case 'nb':\r\n        case 'nd':\r\n        case 'ne':\r\n        case 'nn':\r\n        case 'nnh':\r\n        case 'nyn':\r\n        case 'om':\r\n        case 'or':\r\n        case 'os':\r\n        case 'ps':\r\n        case 'rm':\r\n        case 'rof':\r\n        case 'rwk':\r\n        case 'saq':\r\n        case 'seh':\r\n        case 'sn':\r\n        case 'so':\r\n        case 'sq':\r\n        case 'ta':\r\n        case 'te':\r\n        case 'teo':\r\n        case 'tk':\r\n        case 'tr':\r\n        case 'ug':\r\n        case 'uz':\r\n        case 'vo':\r\n        case 'vun':\r\n        case 'wae':\r\n        case 'xog':\r\n            if (n === 1)\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'agq':\r\n        case 'bas':\r\n        case 'cu':\r\n        case 'dav':\r\n        case 'dje':\r\n        case 'dua':\r\n        case 'dyo':\r\n        case 'ebu':\r\n        case 'ewo':\r\n        case 'guz':\r\n        case 'kam':\r\n        case 'khq':\r\n        case 'ki':\r\n        case 'kln':\r\n        case 'kok':\r\n        case 'ksf':\r\n        case 'lrc':\r\n        case 'lu':\r\n        case 'luo':\r\n        case 'luy':\r\n        case 'mer':\r\n        case 'mfe':\r\n        case 'mgh':\r\n        case 'mua':\r\n        case 'mzn':\r\n        case 'nmg':\r\n        case 'nus':\r\n        case 'qu':\r\n        case 'rn':\r\n        case 'rw':\r\n        case 'sbp':\r\n        case 'twq':\r\n        case 'vai':\r\n        case 'yav':\r\n        case 'yue':\r\n        case 'zgh':\r\n        case 'ak':\r\n        case 'ln':\r\n        case 'mg':\r\n        case 'pa':\r\n        case 'ti':\r\n            if (n === Math.floor(n) && n >= 0 && n <= 1)\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'am':\r\n        case 'as':\r\n        case 'bn':\r\n        case 'fa':\r\n        case 'gu':\r\n        case 'hi':\r\n        case 'kn':\r\n        case 'mr':\r\n        case 'zu':\r\n            if (i === 0 || n === 1)\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'ar':\r\n            if (n === 0)\r\n                return Plural.Zero;\r\n            if (n === 1)\r\n                return Plural.One;\r\n            if (n === 2)\r\n                return Plural.Two;\r\n            if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10)\r\n                return Plural.Few;\r\n            if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99)\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'ast':\r\n        case 'ca':\r\n        case 'de':\r\n        case 'en':\r\n        case 'et':\r\n        case 'fi':\r\n        case 'fy':\r\n        case 'gl':\r\n        case 'it':\r\n        case 'nl':\r\n        case 'sv':\r\n        case 'sw':\r\n        case 'ur':\r\n        case 'yi':\r\n            if (i === 1 && v === 0)\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'be':\r\n            if (n % 10 === 1 && !(n % 100 === 11))\r\n                return Plural.One;\r\n            if (n % 10 === Math.floor(n % 10) && n % 10 >= 2 && n % 10 <= 4 &&\r\n                !(n % 100 >= 12 && n % 100 <= 14))\r\n                return Plural.Few;\r\n            if (n % 10 === 0 || n % 10 === Math.floor(n % 10) && n % 10 >= 5 && n % 10 <= 9 ||\r\n                n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 14)\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'br':\r\n            if (n % 10 === 1 && !(n % 100 === 11 || n % 100 === 71 || n % 100 === 91))\r\n                return Plural.One;\r\n            if (n % 10 === 2 && !(n % 100 === 12 || n % 100 === 72 || n % 100 === 92))\r\n                return Plural.Two;\r\n            if (n % 10 === Math.floor(n % 10) && (n % 10 >= 3 && n % 10 <= 4 || n % 10 === 9) &&\r\n                !(n % 100 >= 10 && n % 100 <= 19 || n % 100 >= 70 && n % 100 <= 79 ||\r\n                    n % 100 >= 90 && n % 100 <= 99))\r\n                return Plural.Few;\r\n            if (!(n === 0) && n % 1e6 === 0)\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'bs':\r\n        case 'hr':\r\n        case 'sr':\r\n            if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11))\r\n                return Plural.One;\r\n            if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 &&\r\n                !(i % 100 >= 12 && i % 100 <= 14) ||\r\n                f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 &&\r\n                    !(f % 100 >= 12 && f % 100 <= 14))\r\n                return Plural.Few;\r\n            return Plural.Other;\r\n        case 'cs':\r\n        case 'sk':\r\n            if (i === 1 && v === 0)\r\n                return Plural.One;\r\n            if (i === Math.floor(i) && i >= 2 && i <= 4 && v === 0)\r\n                return Plural.Few;\r\n            if (!(v === 0))\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'cy':\r\n            if (n === 0)\r\n                return Plural.Zero;\r\n            if (n === 1)\r\n                return Plural.One;\r\n            if (n === 2)\r\n                return Plural.Two;\r\n            if (n === 3)\r\n                return Plural.Few;\r\n            if (n === 6)\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'da':\r\n            if (n === 1 || !(t === 0) && (i === 0 || i === 1))\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'dsb':\r\n        case 'hsb':\r\n            if (v === 0 && i % 100 === 1 || f % 100 === 1)\r\n                return Plural.One;\r\n            if (v === 0 && i % 100 === 2 || f % 100 === 2)\r\n                return Plural.Two;\r\n            if (v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 3 && i % 100 <= 4 ||\r\n                f % 100 === Math.floor(f % 100) && f % 100 >= 3 && f % 100 <= 4)\r\n                return Plural.Few;\r\n            return Plural.Other;\r\n        case 'ff':\r\n        case 'fr':\r\n        case 'hy':\r\n        case 'kab':\r\n            if (i === 0 || i === 1)\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'fil':\r\n            if (v === 0 && (i === 1 || i === 2 || i === 3) ||\r\n                v === 0 && !(i % 10 === 4 || i % 10 === 6 || i % 10 === 9) ||\r\n                !(v === 0) && !(f % 10 === 4 || f % 10 === 6 || f % 10 === 9))\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'ga':\r\n            if (n === 1)\r\n                return Plural.One;\r\n            if (n === 2)\r\n                return Plural.Two;\r\n            if (n === Math.floor(n) && n >= 3 && n <= 6)\r\n                return Plural.Few;\r\n            if (n === Math.floor(n) && n >= 7 && n <= 10)\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'gd':\r\n            if (n === 1 || n === 11)\r\n                return Plural.One;\r\n            if (n === 2 || n === 12)\r\n                return Plural.Two;\r\n            if (n === Math.floor(n) && (n >= 3 && n <= 10 || n >= 13 && n <= 19))\r\n                return Plural.Few;\r\n            return Plural.Other;\r\n        case 'gv':\r\n            if (v === 0 && i % 10 === 1)\r\n                return Plural.One;\r\n            if (v === 0 && i % 10 === 2)\r\n                return Plural.Two;\r\n            if (v === 0 &&\r\n                (i % 100 === 0 || i % 100 === 20 || i % 100 === 40 || i % 100 === 60 || i % 100 === 80))\r\n                return Plural.Few;\r\n            if (!(v === 0))\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'he':\r\n            if (i === 1 && v === 0)\r\n                return Plural.One;\r\n            if (i === 2 && v === 0)\r\n                return Plural.Two;\r\n            if (v === 0 && !(n >= 0 && n <= 10) && n % 10 === 0)\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'is':\r\n            if (t === 0 && i % 10 === 1 && !(i % 100 === 11) || !(t === 0))\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'ksh':\r\n            if (n === 0)\r\n                return Plural.Zero;\r\n            if (n === 1)\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'kw':\r\n        case 'naq':\r\n        case 'se':\r\n        case 'smn':\r\n            if (n === 1)\r\n                return Plural.One;\r\n            if (n === 2)\r\n                return Plural.Two;\r\n            return Plural.Other;\r\n        case 'lag':\r\n            if (n === 0)\r\n                return Plural.Zero;\r\n            if ((i === 0 || i === 1) && !(n === 0))\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'lt':\r\n            if (n % 10 === 1 && !(n % 100 >= 11 && n % 100 <= 19))\r\n                return Plural.One;\r\n            if (n % 10 === Math.floor(n % 10) && n % 10 >= 2 && n % 10 <= 9 &&\r\n                !(n % 100 >= 11 && n % 100 <= 19))\r\n                return Plural.Few;\r\n            if (!(f === 0))\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'lv':\r\n        case 'prg':\r\n            if (n % 10 === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19 ||\r\n                v === 2 && f % 100 === Math.floor(f % 100) && f % 100 >= 11 && f % 100 <= 19)\r\n                return Plural.Zero;\r\n            if (n % 10 === 1 && !(n % 100 === 11) || v === 2 && f % 10 === 1 && !(f % 100 === 11) ||\r\n                !(v === 2) && f % 10 === 1)\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'mk':\r\n            if (v === 0 && i % 10 === 1 || f % 10 === 1)\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'mt':\r\n            if (n === 1)\r\n                return Plural.One;\r\n            if (n === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 2 && n % 100 <= 10)\r\n                return Plural.Few;\r\n            if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19)\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'pl':\r\n            if (i === 1 && v === 0)\r\n                return Plural.One;\r\n            if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 &&\r\n                !(i % 100 >= 12 && i % 100 <= 14))\r\n                return Plural.Few;\r\n            if (v === 0 && !(i === 1) && i % 10 === Math.floor(i % 10) && i % 10 >= 0 && i % 10 <= 1 ||\r\n                v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 ||\r\n                v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 12 && i % 100 <= 14)\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'pt':\r\n            if (n === Math.floor(n) && n >= 0 && n <= 2 && !(n === 2))\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'ro':\r\n            if (i === 1 && v === 0)\r\n                return Plural.One;\r\n            if (!(v === 0) || n === 0 ||\r\n                !(n === 1) && n % 100 === Math.floor(n % 100) && n % 100 >= 1 && n % 100 <= 19)\r\n                return Plural.Few;\r\n            return Plural.Other;\r\n        case 'ru':\r\n        case 'uk':\r\n            if (v === 0 && i % 10 === 1 && !(i % 100 === 11))\r\n                return Plural.One;\r\n            if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 &&\r\n                !(i % 100 >= 12 && i % 100 <= 14))\r\n                return Plural.Few;\r\n            if (v === 0 && i % 10 === 0 ||\r\n                v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 ||\r\n                v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14)\r\n                return Plural.Many;\r\n            return Plural.Other;\r\n        case 'shi':\r\n            if (i === 0 || n === 1)\r\n                return Plural.One;\r\n            if (n === Math.floor(n) && n >= 2 && n <= 10)\r\n                return Plural.Few;\r\n            return Plural.Other;\r\n        case 'si':\r\n            if (n === 0 || n === 1 || i === 0 && f === 1)\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        case 'sl':\r\n            if (v === 0 && i % 100 === 1)\r\n                return Plural.One;\r\n            if (v === 0 && i % 100 === 2)\r\n                return Plural.Two;\r\n            if (v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 3 && i % 100 <= 4 || !(v === 0))\r\n                return Plural.Few;\r\n            return Plural.Other;\r\n        case 'tzm':\r\n            if (n === Math.floor(n) && n >= 0 && n <= 1 || n === Math.floor(n) && n >= 11 && n <= 99)\r\n                return Plural.One;\r\n            return Plural.Other;\r\n        default:\r\n            return Plural.Other;\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@ngModule CommonModule\r\n *\r\n * \\@whatItDoes Adds and removes CSS classes on an HTML element.\r\n *\r\n * \\@howToUse\r\n * ```\r\n *     <some-element [ngClass]=\"'first second'\">...</some-element>\r\n *\r\n *     <some-element [ngClass]=\"['first', 'second']\">...</some-element>\r\n *\r\n *     <some-element [ngClass]=\"{'first': true, 'second': true, 'third': false}\">...</some-element>\r\n *\r\n *     <some-element [ngClass]=\"stringExp|arrayExp|objExp\">...</some-element>\r\n *\r\n *     <some-element [ngClass]=\"{'class1 class2 class3' : true}\">...</some-element>\r\n * ```\r\n *\r\n * \\@description\r\n *\r\n * The CSS classes are updated as follows, depending on the type of the expression evaluation:\r\n * - `string` - the CSS classes listed in the string (space delimited) are added,\r\n * - `Array` - the CSS classes declared as Array elements are added,\r\n * - `Object` - keys are CSS classes that get added when the expression given in the value\r\n *              evaluates to a truthy value, otherwise they are removed.\r\n *\r\n * \\@stable\r\n */\r\nvar NgClass = (function () {\r\n    /**\r\n     * @param {?} _iterableDiffers\r\n     * @param {?} _keyValueDiffers\r\n     * @param {?} _ngEl\r\n     * @param {?} _renderer\r\n     */\r\n    function NgClass(_iterableDiffers, _keyValueDiffers, _ngEl, _renderer) {\r\n        this._iterableDiffers = _iterableDiffers;\r\n        this._keyValueDiffers = _keyValueDiffers;\r\n        this._ngEl = _ngEl;\r\n        this._renderer = _renderer;\r\n        this._initialClasses = [];\r\n    }\r\n    Object.defineProperty(NgClass.prototype, \"klass\", {\r\n        /**\r\n         * @param {?} v\r\n         * @return {?}\r\n         */\r\n        set: function (v) {\r\n            this._applyInitialClasses(true);\r\n            this._initialClasses = typeof v === 'string' ? v.split(/\\s+/) : [];\r\n            this._applyInitialClasses(false);\r\n            this._applyClasses(this._rawClass, false);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgClass.prototype, \"ngClass\", {\r\n        /**\r\n         * @param {?} v\r\n         * @return {?}\r\n         */\r\n        set: function (v) {\r\n            this._cleanupClasses(this._rawClass);\r\n            this._iterableDiffer = null;\r\n            this._keyValueDiffer = null;\r\n            this._rawClass = typeof v === 'string' ? v.split(/\\s+/) : v;\r\n            if (this._rawClass) {\r\n                if (ɵisListLikeIterable(this._rawClass)) {\r\n                    this._iterableDiffer = this._iterableDiffers.find(this._rawClass).create();\r\n                }\r\n                else {\r\n                    this._keyValueDiffer = this._keyValueDiffers.find(this._rawClass).create();\r\n                }\r\n            }\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgClass.prototype.ngDoCheck = function () {\r\n        if (this._iterableDiffer) {\r\n            var /** @type {?} */ iterableChanges = this._iterableDiffer.diff(/** @type {?} */ (this._rawClass));\r\n            if (iterableChanges) {\r\n                this._applyIterableChanges(iterableChanges);\r\n            }\r\n        }\r\n        else if (this._keyValueDiffer) {\r\n            var /** @type {?} */ keyValueChanges = this._keyValueDiffer.diff(/** @type {?} */ (this._rawClass));\r\n            if (keyValueChanges) {\r\n                this._applyKeyValueChanges(keyValueChanges);\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} rawClassVal\r\n     * @return {?}\r\n     */\r\n    NgClass.prototype._cleanupClasses = function (rawClassVal) {\r\n        this._applyClasses(rawClassVal, true);\r\n        this._applyInitialClasses(false);\r\n    };\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    NgClass.prototype._applyKeyValueChanges = function (changes) {\r\n        var _this = this;\r\n        changes.forEachAddedItem(function (record) { return _this._toggleClass(record.key, record.currentValue); });\r\n        changes.forEachChangedItem(function (record) { return _this._toggleClass(record.key, record.currentValue); });\r\n        changes.forEachRemovedItem(function (record) {\r\n            if (record.previousValue) {\r\n                _this._toggleClass(record.key, false);\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    NgClass.prototype._applyIterableChanges = function (changes) {\r\n        var _this = this;\r\n        changes.forEachAddedItem(function (record) {\r\n            if (typeof record.item === 'string') {\r\n                _this._toggleClass(record.item, true);\r\n            }\r\n            else {\r\n                throw new Error(\"NgClass can only toggle CSS classes expressed as strings, got \" + ɵstringify(record.item));\r\n            }\r\n        });\r\n        changes.forEachRemovedItem(function (record) { return _this._toggleClass(record.item, false); });\r\n    };\r\n    /**\r\n     * @param {?} isCleanup\r\n     * @return {?}\r\n     */\r\n    NgClass.prototype._applyInitialClasses = function (isCleanup) {\r\n        var _this = this;\r\n        this._initialClasses.forEach(function (klass) { return _this._toggleClass(klass, !isCleanup); });\r\n    };\r\n    /**\r\n     * @param {?} rawClassVal\r\n     * @param {?} isCleanup\r\n     * @return {?}\r\n     */\r\n    NgClass.prototype._applyClasses = function (rawClassVal, isCleanup) {\r\n        var _this = this;\r\n        if (rawClassVal) {\r\n            if (Array.isArray(rawClassVal) || rawClassVal instanceof Set) {\r\n                ((rawClassVal)).forEach(function (klass) { return _this._toggleClass(klass, !isCleanup); });\r\n            }\r\n            else {\r\n                Object.keys(rawClassVal).forEach(function (klass) {\r\n                    if (rawClassVal[klass] != null)\r\n                        _this._toggleClass(klass, !isCleanup);\r\n                });\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} klass\r\n     * @param {?} enabled\r\n     * @return {?}\r\n     */\r\n    NgClass.prototype._toggleClass = function (klass, enabled) {\r\n        var _this = this;\r\n        klass = klass.trim();\r\n        if (klass) {\r\n            klass.split(/\\s+/g).forEach(function (klass) { _this._renderer.setElementClass(_this._ngEl.nativeElement, klass, !!enabled); });\r\n        }\r\n    };\r\n    return NgClass;\r\n}());\r\nNgClass.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngClass]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgClass.ctorParameters = function () { return [\r\n    { type: IterableDiffers, },\r\n    { type: KeyValueDiffers, },\r\n    { type: ElementRef, },\r\n    { type: Renderer, },\r\n]; };\r\nNgClass.propDecorators = {\r\n    'klass': [{ type: Input, args: ['class',] },],\r\n    'ngClass': [{ type: Input },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Instantiates a single {\\@link Component} type and inserts its Host View into current View.\r\n * `NgComponentOutlet` provides a declarative approach for dynamic component creation.\r\n *\r\n * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and\r\n * any existing component will get destroyed.\r\n *\r\n * ### Fine tune control\r\n *\r\n * You can control the component creation process by using the following optional attributes:\r\n *\r\n * * `ngComponentOutletInjector`: Optional custom {\\@link Injector} that will be used as parent for\r\n * the Component. Defaults to the injector of the current view container.\r\n *\r\n * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content\r\n * section of the component, if exists.\r\n *\r\n * * `ngComponentOutletNgModuleFactory`: Optional module factory to allow dynamically loading other\r\n * module, then load a component from that module.\r\n *\r\n * ### Syntax\r\n *\r\n * Simple\r\n * ```\r\n * <ng-container *ngComponentOutlet=\"componentTypeExpression\"></ng-container>\r\n * ```\r\n *\r\n * Customized injector/content\r\n * ```\r\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\r\n *                                   injector: injectorExpression;\r\n *                                   content: contentNodesExpression;\">\r\n * </ng-container>\r\n * ```\r\n *\r\n * Customized ngModuleFactory\r\n * ```\r\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\r\n *                                   ngModuleFactory: moduleFactory;\">\r\n * </ng-container>\r\n * ```\r\n * ## Example\r\n *\r\n * {\\@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}\r\n *\r\n * A more complete example with additional options:\r\n *\r\n * {\\@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}\r\n * A more complete example with ngModuleFactory:\r\n *\r\n * {\\@example common/ngComponentOutlet/ts/module.ts region='NgModuleFactoryExample'}\r\n *\r\n * \\@experimental\r\n */\r\nvar NgComponentOutlet = (function () {\r\n    /**\r\n     * @param {?} _viewContainerRef\r\n     */\r\n    function NgComponentOutlet(_viewContainerRef) {\r\n        this._viewContainerRef = _viewContainerRef;\r\n        this._componentRef = null;\r\n        this._moduleRef = null;\r\n    }\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    NgComponentOutlet.prototype.ngOnChanges = function (changes) {\r\n        this._viewContainerRef.clear();\r\n        this._componentRef = null;\r\n        if (this.ngComponentOutlet) {\r\n            var /** @type {?} */ elInjector = this.ngComponentOutletInjector || this._viewContainerRef.parentInjector;\r\n            if (changes['ngComponentOutletNgModuleFactory']) {\r\n                if (this._moduleRef)\r\n                    this._moduleRef.destroy();\r\n                if (this.ngComponentOutletNgModuleFactory) {\r\n                    var /** @type {?} */ parentModule = elInjector.get(NgModuleRef);\r\n                    this._moduleRef = this.ngComponentOutletNgModuleFactory.create(parentModule.injector);\r\n                }\r\n                else {\r\n                    this._moduleRef = null;\r\n                }\r\n            }\r\n            var /** @type {?} */ componentFactoryResolver = this._moduleRef ? this._moduleRef.componentFactoryResolver :\r\n                elInjector.get(ComponentFactoryResolver);\r\n            var /** @type {?} */ componentFactory = componentFactoryResolver.resolveComponentFactory(this.ngComponentOutlet);\r\n            this._componentRef = this._viewContainerRef.createComponent(componentFactory, this._viewContainerRef.length, elInjector, this.ngComponentOutletContent);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgComponentOutlet.prototype.ngOnDestroy = function () {\r\n        if (this._moduleRef)\r\n            this._moduleRef.destroy();\r\n    };\r\n    return NgComponentOutlet;\r\n}());\r\nNgComponentOutlet.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngComponentOutlet]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgComponentOutlet.ctorParameters = function () { return [\r\n    { type: ViewContainerRef, },\r\n]; };\r\nNgComponentOutlet.propDecorators = {\r\n    'ngComponentOutlet': [{ type: Input },],\r\n    'ngComponentOutletInjector': [{ type: Input },],\r\n    'ngComponentOutletContent': [{ type: Input },],\r\n    'ngComponentOutletNgModuleFactory': [{ type: Input },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@stable\r\n */\r\nvar NgForOfContext = (function () {\r\n    /**\r\n     * @param {?} $implicit\r\n     * @param {?} ngForOf\r\n     * @param {?} index\r\n     * @param {?} count\r\n     */\r\n    function NgForOfContext($implicit, ngForOf, index, count) {\r\n        this.$implicit = $implicit;\r\n        this.ngForOf = ngForOf;\r\n        this.index = index;\r\n        this.count = count;\r\n    }\r\n    Object.defineProperty(NgForOfContext.prototype, \"first\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.index === 0; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgForOfContext.prototype, \"last\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.index === this.count - 1; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgForOfContext.prototype, \"even\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.index % 2 === 0; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgForOfContext.prototype, \"odd\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return !this.even; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return NgForOfContext;\r\n}());\r\n/**\r\n * The `NgForOf` directive instantiates a template once per item from an iterable. The context\r\n * for each instantiated template inherits from the outer context with the given loop variable\r\n * set to the current item from the iterable.\r\n *\r\n * ### Local Variables\r\n *\r\n * `NgForOf` provides several exported values that can be aliased to local variables:\r\n *\r\n * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).\r\n * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is\r\n * more complex then a property access, for example when using the async pipe (`userStreams |\r\n * async`).\r\n * - `index: number`: The index of the current item in the iterable.\r\n * - `first: boolean`: True when the item is the first item in the iterable.\r\n * - `last: boolean`: True when the item is the last item in the iterable.\r\n * - `even: boolean`: True when the item has an even index in the iterable.\r\n * - `odd: boolean`: True when the item has an odd index in the iterable.\r\n *\r\n * ```\r\n * <li *ngFor=\"let user of userObservable | async as users; index as i; first as isFirst\">\r\n *    {{i}}/{{users.length}}. {{user}} <span *ngIf=\"isFirst\">default</span>\r\n * </li>\r\n * ```\r\n *\r\n * ### Change Propagation\r\n *\r\n * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:\r\n *\r\n * * When an item is added, a new instance of the template is added to the DOM.\r\n * * When an item is removed, its template instance is removed from the DOM.\r\n * * When items are reordered, their respective templates are reordered in the DOM.\r\n * * Otherwise, the DOM element for that item will remain the same.\r\n *\r\n * Angular uses object identity to track insertions and deletions within the iterator and reproduce\r\n * those changes in the DOM. This has important implications for animations and any stateful\r\n * controls (such as `<input>` elements which accept user input) that are present. Inserted rows can\r\n * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state\r\n * such as user input.\r\n *\r\n * It is possible for the identities of elements in the iterator to change while the data does not.\r\n * This can happen, for example, if the iterator produced from an RPC to the server, and that\r\n * RPC is re-run. Even if the data hasn't changed, the second response will produce objects with\r\n * different identities, and Angular will tear down the entire DOM and rebuild it (as if all old\r\n * elements were deleted and all new elements inserted). This is an expensive operation and should\r\n * be avoided if possible.\r\n *\r\n * To customize the default tracking algorithm, `NgForOf` supports `trackBy` option.\r\n * `trackBy` takes a function which has two arguments: `index` and `item`.\r\n * If `trackBy` is given, Angular tracks changes by the return value of the function.\r\n *\r\n * ### Syntax\r\n *\r\n * - `<li *ngFor=\"let item of items; index as i; trackBy: trackByFn\">...</li>`\r\n * - `<li template=\"ngFor let item of items; index as i; trackBy: trackByFn\">...</li>`\r\n *\r\n * With `<ng-template>` element:\r\n *\r\n * ```\r\n * <ng-template ngFor let-item [ngForOf]=\"items\" let-i=\"index\" [ngForTrackBy]=\"trackByFn\">\r\n *   <li>...</li>\r\n * </ng-template>\r\n * ```\r\n *\r\n * ### Example\r\n *\r\n * See a [live demo](http://plnkr.co/edit/KVuXxDp0qinGDyo307QW?p=preview) for a more detailed\r\n * example.\r\n *\r\n * \\@stable\r\n */\r\nvar NgForOf = (function () {\r\n    /**\r\n     * @param {?} _viewContainer\r\n     * @param {?} _template\r\n     * @param {?} _differs\r\n     */\r\n    function NgForOf(_viewContainer, _template, _differs) {\r\n        this._viewContainer = _viewContainer;\r\n        this._template = _template;\r\n        this._differs = _differs;\r\n        this._differ = null;\r\n    }\r\n    Object.defineProperty(NgForOf.prototype, \"ngForTrackBy\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._trackByFn; },\r\n        /**\r\n         * @param {?} fn\r\n         * @return {?}\r\n         */\r\n        set: function (fn) {\r\n            if (isDevMode() && fn != null && typeof fn !== 'function') {\r\n                // TODO(vicb): use a log service once there is a public one available\r\n                if ((console) && (console.warn)) {\r\n                    console.warn(\"trackBy must be a function, but received \" + JSON.stringify(fn) + \". \" +\r\n                        \"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information.\");\r\n                }\r\n            }\r\n            this._trackByFn = fn;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgForOf.prototype, \"ngForTemplate\", {\r\n        /**\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) {\r\n            // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1\r\n            // The current type is too restrictive; a template that just uses index, for example,\r\n            // should be acceptable.\r\n            if (value) {\r\n                this._template = value;\r\n            }\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    NgForOf.prototype.ngOnChanges = function (changes) {\r\n        if ('ngForOf' in changes) {\r\n            // React on ngForOf changes only once all inputs have been initialized\r\n            var /** @type {?} */ value = changes['ngForOf'].currentValue;\r\n            if (!this._differ && value) {\r\n                try {\r\n                    this._differ = this._differs.find(value).create(this.ngForTrackBy);\r\n                }\r\n                catch (e) {\r\n                    throw new Error(\"Cannot find a differ supporting object '\" + value + \"' of type '\" + getTypeNameForDebugging(value) + \"'. NgFor only supports binding to Iterables such as Arrays.\");\r\n                }\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgForOf.prototype.ngDoCheck = function () {\r\n        if (this._differ) {\r\n            var /** @type {?} */ changes = this._differ.diff(this.ngForOf);\r\n            if (changes)\r\n                this._applyChanges(changes);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    NgForOf.prototype._applyChanges = function (changes) {\r\n        var _this = this;\r\n        var /** @type {?} */ insertTuples = [];\r\n        changes.forEachOperation(function (item, adjustedPreviousIndex, currentIndex) {\r\n            if (item.previousIndex == null) {\r\n                var /** @type {?} */ view = _this._viewContainer.createEmbeddedView(_this._template, new NgForOfContext(/** @type {?} */ ((null)), _this.ngForOf, -1, -1), currentIndex);\r\n                var /** @type {?} */ tuple = new RecordViewTuple(item, view);\r\n                insertTuples.push(tuple);\r\n            }\r\n            else if (currentIndex == null) {\r\n                _this._viewContainer.remove(adjustedPreviousIndex);\r\n            }\r\n            else {\r\n                var /** @type {?} */ view = ((_this._viewContainer.get(adjustedPreviousIndex)));\r\n                _this._viewContainer.move(view, currentIndex);\r\n                var /** @type {?} */ tuple = new RecordViewTuple(item, /** @type {?} */ (view));\r\n                insertTuples.push(tuple);\r\n            }\r\n        });\r\n        for (var /** @type {?} */ i = 0; i < insertTuples.length; i++) {\r\n            this._perViewChange(insertTuples[i].view, insertTuples[i].record);\r\n        }\r\n        for (var /** @type {?} */ i = 0, /** @type {?} */ ilen = this._viewContainer.length; i < ilen; i++) {\r\n            var /** @type {?} */ viewRef = (this._viewContainer.get(i));\r\n            viewRef.context.index = i;\r\n            viewRef.context.count = ilen;\r\n        }\r\n        changes.forEachIdentityChange(function (record) {\r\n            var /** @type {?} */ viewRef = (_this._viewContainer.get(record.currentIndex));\r\n            viewRef.context.$implicit = record.item;\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} view\r\n     * @param {?} record\r\n     * @return {?}\r\n     */\r\n    NgForOf.prototype._perViewChange = function (view, record) {\r\n        view.context.$implicit = record.item;\r\n    };\r\n    return NgForOf;\r\n}());\r\nNgForOf.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngFor][ngForOf]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgForOf.ctorParameters = function () { return [\r\n    { type: ViewContainerRef, },\r\n    { type: TemplateRef, },\r\n    { type: IterableDiffers, },\r\n]; };\r\nNgForOf.propDecorators = {\r\n    'ngForOf': [{ type: Input },],\r\n    'ngForTrackBy': [{ type: Input },],\r\n    'ngForTemplate': [{ type: Input },],\r\n};\r\nvar RecordViewTuple = (function () {\r\n    /**\r\n     * @param {?} record\r\n     * @param {?} view\r\n     */\r\n    function RecordViewTuple(record, view) {\r\n        this.record = record;\r\n        this.view = view;\r\n    }\r\n    return RecordViewTuple;\r\n}());\r\n/**\r\n * @deprecated from v4.0.0 - Use NgForOf instead.\r\n */\r\nvar NgFor = NgForOf;\r\n/**\r\n * @param {?} type\r\n * @return {?}\r\n */\r\nfunction getTypeNameForDebugging(type) {\r\n    return type['name'] || typeof type;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Conditionally includes a template based on the value of an `expression`.\r\n *\r\n * `ngIf` evaluates the `expression` and then renders the `then` or `else` template in its place\r\n * when expression is truthy or falsy respectively. Typically the:\r\n *  - `then` template is the inline template of `ngIf` unless bound to a different value.\r\n *  - `else` template is blank unless it is bound.\r\n *\r\n * ## Most common usage\r\n *\r\n * The most common usage of the `ngIf` directive is to conditionally show the inline template as\r\n * seen in this example:\r\n * {\\@example common/ngIf/ts/module.ts region='NgIfSimple'}\r\n *\r\n * ## Showing an alternative template using `else`\r\n *\r\n * If it is necessary to display a template when the `expression` is falsy use the `else` template\r\n * binding as shown. Note that the `else` binding points to a `<ng-template>` labeled `#elseBlock`.\r\n * The template can be defined anywhere in the component view but is typically placed right after\r\n * `ngIf` for readability.\r\n *\r\n * {\\@example common/ngIf/ts/module.ts region='NgIfElse'}\r\n *\r\n * ## Using non-inlined `then` template\r\n *\r\n * Usually the `then` template is the inlined template of the `ngIf`, but it can be changed using\r\n * a binding (just like `else`). Because `then` and `else` are bindings, the template references can\r\n * change at runtime as shown in this example.\r\n *\r\n * {\\@example common/ngIf/ts/module.ts region='NgIfThenElse'}\r\n *\r\n * ## Storing conditional result in a variable\r\n *\r\n * A common pattern is that we need to show a set of properties from the same object. If the\r\n * object is undefined, then we have to use the safe-traversal-operator `?.` to guard against\r\n * dereferencing a `null` value. This is especially the case when waiting on async data such as\r\n * when using the `async` pipe as shown in folowing example:\r\n *\r\n * ```\r\n * Hello {{ (userStream|async)?.last }}, {{ (userStream|async)?.first }}!\r\n * ```\r\n *\r\n * There are several inefficiencies in the above example:\r\n *  - We create multiple subscriptions on `userStream`. One for each `async` pipe, or two in the\r\n *    example above.\r\n *  - We cannot display an alternative screen while waiting for the data to arrive asynchronously.\r\n *  - We have to use the safe-traversal-operator `?.` to access properties, which is cumbersome.\r\n *  - We have to place the `async` pipe in parenthesis.\r\n *\r\n * A better way to do this is to use `ngIf` and store the result of the condition in a local\r\n * variable as shown in the the example below:\r\n *\r\n * {\\@example common/ngIf/ts/module.ts region='NgIfAs'}\r\n *\r\n * Notice that:\r\n *  - We use only one `async` pipe and hence only one subscription gets created.\r\n *  - `ngIf` stores the result of the `userStream|async` in the local variable `user`.\r\n *  - The local `user` can then be bound repeatedly in a more efficient way.\r\n *  - No need to use the safe-traversal-operator `?.` to access properties as `ngIf` will only\r\n *    display the data if `userStream` returns a value.\r\n *  - We can display an alternative template while waiting for the data.\r\n *\r\n * ### Syntax\r\n *\r\n * Simple form:\r\n * - `<div *ngIf=\"condition\">...</div>`\r\n * - `<div template=\"ngIf condition\">...</div>`\r\n * - `<ng-template [ngIf]=\"condition\"><div>...</div></ng-template>`\r\n *\r\n * Form with an else block:\r\n * ```\r\n * <div *ngIf=\"condition; else elseBlock\">...</div>\r\n * <ng-template #elseBlock>...</ng-template>\r\n * ```\r\n *\r\n * Form with a `then` and `else` block:\r\n * ```\r\n * <div *ngIf=\"condition; then thenBlock else elseBlock\"></div>\r\n * <ng-template #thenBlock>...</ng-template>\r\n * <ng-template #elseBlock>...</ng-template>\r\n * ```\r\n *\r\n * Form with storing the value locally:\r\n * ```\r\n * <div *ngIf=\"condition as value; else elseBlock\">{{value}}</div>\r\n * <ng-template #elseBlock>...</ng-template>\r\n * ```\r\n *\r\n * \\@stable\r\n */\r\nvar NgIf = (function () {\r\n    /**\r\n     * @param {?} _viewContainer\r\n     * @param {?} templateRef\r\n     */\r\n    function NgIf(_viewContainer, templateRef) {\r\n        this._viewContainer = _viewContainer;\r\n        this._context = new NgIfContext();\r\n        this._thenTemplateRef = null;\r\n        this._elseTemplateRef = null;\r\n        this._thenViewRef = null;\r\n        this._elseViewRef = null;\r\n        this._thenTemplateRef = templateRef;\r\n    }\r\n    Object.defineProperty(NgIf.prototype, \"ngIf\", {\r\n        /**\r\n         * @param {?} condition\r\n         * @return {?}\r\n         */\r\n        set: function (condition) {\r\n            this._context.$implicit = this._context.ngIf = condition;\r\n            this._updateView();\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgIf.prototype, \"ngIfThen\", {\r\n        /**\r\n         * @param {?} templateRef\r\n         * @return {?}\r\n         */\r\n        set: function (templateRef) {\r\n            this._thenTemplateRef = templateRef;\r\n            this._thenViewRef = null; // clear previous view if any.\r\n            this._updateView();\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgIf.prototype, \"ngIfElse\", {\r\n        /**\r\n         * @param {?} templateRef\r\n         * @return {?}\r\n         */\r\n        set: function (templateRef) {\r\n            this._elseTemplateRef = templateRef;\r\n            this._elseViewRef = null; // clear previous view if any.\r\n            this._updateView();\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgIf.prototype._updateView = function () {\r\n        if (this._context.$implicit) {\r\n            if (!this._thenViewRef) {\r\n                this._viewContainer.clear();\r\n                this._elseViewRef = null;\r\n                if (this._thenTemplateRef) {\r\n                    this._thenViewRef =\r\n                        this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);\r\n                }\r\n            }\r\n        }\r\n        else {\r\n            if (!this._elseViewRef) {\r\n                this._viewContainer.clear();\r\n                this._thenViewRef = null;\r\n                if (this._elseTemplateRef) {\r\n                    this._elseViewRef =\r\n                        this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);\r\n                }\r\n            }\r\n        }\r\n    };\r\n    return NgIf;\r\n}());\r\nNgIf.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngIf]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgIf.ctorParameters = function () { return [\r\n    { type: ViewContainerRef, },\r\n    { type: TemplateRef, },\r\n]; };\r\nNgIf.propDecorators = {\r\n    'ngIf': [{ type: Input },],\r\n    'ngIfThen': [{ type: Input },],\r\n    'ngIfElse': [{ type: Input },],\r\n};\r\n/**\r\n * \\@stable\r\n */\r\nvar NgIfContext = (function () {\r\n    function NgIfContext() {\r\n        this.$implicit = null;\r\n        this.ngIf = null;\r\n    }\r\n    return NgIfContext;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar SwitchView = (function () {\r\n    /**\r\n     * @param {?} _viewContainerRef\r\n     * @param {?} _templateRef\r\n     */\r\n    function SwitchView(_viewContainerRef, _templateRef) {\r\n        this._viewContainerRef = _viewContainerRef;\r\n        this._templateRef = _templateRef;\r\n        this._created = false;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SwitchView.prototype.create = function () {\r\n        this._created = true;\r\n        this._viewContainerRef.createEmbeddedView(this._templateRef);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SwitchView.prototype.destroy = function () {\r\n        this._created = false;\r\n        this._viewContainerRef.clear();\r\n    };\r\n    /**\r\n     * @param {?} created\r\n     * @return {?}\r\n     */\r\n    SwitchView.prototype.enforceState = function (created) {\r\n        if (created && !this._created) {\r\n            this.create();\r\n        }\r\n        else if (!created && this._created) {\r\n            this.destroy();\r\n        }\r\n    };\r\n    return SwitchView;\r\n}());\r\n/**\r\n * \\@ngModule CommonModule\r\n *\r\n * \\@whatItDoes Adds / removes DOM sub-trees when the nest match expressions matches the switch\r\n *             expression.\r\n *\r\n * \\@howToUse\r\n * ```\r\n *     <container-element [ngSwitch]=\"switch_expression\">\r\n *       <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\r\n *       <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>\r\n *       <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>\r\n *       <ng-container *ngSwitchCase=\"match_expression_3\">\r\n *         <!-- use a ng-container to group multiple root nodes -->\r\n *         <inner-element></inner-element>\r\n *         <inner-other-element></inner-other-element>\r\n *       </ng-container>\r\n *       <some-element *ngSwitchDefault>...</some-element>\r\n *     </container-element>\r\n * ```\r\n * \\@description\r\n *\r\n * `NgSwitch` stamps out nested views when their match expression value matches the value of the\r\n * switch expression.\r\n *\r\n * In other words:\r\n * - you define a container element (where you place the directive with a switch expression on the\r\n * `[ngSwitch]=\"...\"` attribute)\r\n * - you define inner views inside the `NgSwitch` and place a `*ngSwitchCase` attribute on the view\r\n * root elements.\r\n *\r\n * Elements within `NgSwitch` but outside of a `NgSwitchCase` or `NgSwitchDefault` directives will\r\n * be preserved at the location.\r\n *\r\n * The `ngSwitchCase` directive informs the parent `NgSwitch` of which view to display when the\r\n * expression is evaluated.\r\n * When no matching expression is found on a `ngSwitchCase` view, the `ngSwitchDefault` view is\r\n * stamped out.\r\n *\r\n * \\@stable\r\n */\r\nvar NgSwitch = (function () {\r\n    function NgSwitch() {\r\n        this._defaultUsed = false;\r\n        this._caseCount = 0;\r\n        this._lastCaseCheckIndex = 0;\r\n        this._lastCasesMatched = false;\r\n    }\r\n    Object.defineProperty(NgSwitch.prototype, \"ngSwitch\", {\r\n        /**\r\n         * @param {?} newValue\r\n         * @return {?}\r\n         */\r\n        set: function (newValue) {\r\n            this._ngSwitch = newValue;\r\n            if (this._caseCount === 0) {\r\n                this._updateDefaultCases(true);\r\n            }\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    NgSwitch.prototype._addCase = function () { return this._caseCount++; };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} view\r\n     * @return {?}\r\n     */\r\n    NgSwitch.prototype._addDefault = function (view) {\r\n        if (!this._defaultViews) {\r\n            this._defaultViews = [];\r\n        }\r\n        this._defaultViews.push(view);\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    NgSwitch.prototype._matchCase = function (value) {\r\n        var /** @type {?} */ matched = value == this._ngSwitch;\r\n        this._lastCasesMatched = this._lastCasesMatched || matched;\r\n        this._lastCaseCheckIndex++;\r\n        if (this._lastCaseCheckIndex === this._caseCount) {\r\n            this._updateDefaultCases(!this._lastCasesMatched);\r\n            this._lastCaseCheckIndex = 0;\r\n            this._lastCasesMatched = false;\r\n        }\r\n        return matched;\r\n    };\r\n    /**\r\n     * @param {?} useDefault\r\n     * @return {?}\r\n     */\r\n    NgSwitch.prototype._updateDefaultCases = function (useDefault) {\r\n        if (this._defaultViews && useDefault !== this._defaultUsed) {\r\n            this._defaultUsed = useDefault;\r\n            for (var /** @type {?} */ i = 0; i < this._defaultViews.length; i++) {\r\n                var /** @type {?} */ defaultView = this._defaultViews[i];\r\n                defaultView.enforceState(useDefault);\r\n            }\r\n        }\r\n    };\r\n    return NgSwitch;\r\n}());\r\nNgSwitch.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngSwitch]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgSwitch.ctorParameters = function () { return []; };\r\nNgSwitch.propDecorators = {\r\n    'ngSwitch': [{ type: Input },],\r\n};\r\n/**\r\n * \\@ngModule CommonModule\r\n *\r\n * \\@whatItDoes Creates a view that will be added/removed from the parent {\\@link NgSwitch} when the\r\n *             given expression evaluate to respectively the same/different value as the switch\r\n *             expression.\r\n *\r\n * \\@howToUse\r\n * ```\r\n * <container-element [ngSwitch]=\"switch_expression\">\r\n *   <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\r\n * </container-element>\r\n * ```\r\n * \\@description\r\n *\r\n * Insert the sub-tree when the expression evaluates to the same value as the enclosing switch\r\n * expression.\r\n *\r\n * If multiple match expressions match the switch expression value, all of them are displayed.\r\n *\r\n * See {\\@link NgSwitch} for more details and example.\r\n *\r\n * \\@stable\r\n */\r\nvar NgSwitchCase = (function () {\r\n    /**\r\n     * @param {?} viewContainer\r\n     * @param {?} templateRef\r\n     * @param {?} ngSwitch\r\n     */\r\n    function NgSwitchCase(viewContainer, templateRef, ngSwitch) {\r\n        this.ngSwitch = ngSwitch;\r\n        ngSwitch._addCase();\r\n        this._view = new SwitchView(viewContainer, templateRef);\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgSwitchCase.prototype.ngDoCheck = function () { this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase)); };\r\n    return NgSwitchCase;\r\n}());\r\nNgSwitchCase.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngSwitchCase]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgSwitchCase.ctorParameters = function () { return [\r\n    { type: ViewContainerRef, },\r\n    { type: TemplateRef, },\r\n    { type: NgSwitch, decorators: [{ type: Host },] },\r\n]; };\r\nNgSwitchCase.propDecorators = {\r\n    'ngSwitchCase': [{ type: Input },],\r\n};\r\n/**\r\n * \\@ngModule CommonModule\r\n * \\@whatItDoes Creates a view that is added to the parent {\\@link NgSwitch} when no case expressions\r\n * match the\r\n *             switch expression.\r\n *\r\n * \\@howToUse\r\n * ```\r\n * <container-element [ngSwitch]=\"switch_expression\">\r\n *   <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\r\n *   <some-other-element *ngSwitchDefault>...</some-other-element>\r\n * </container-element>\r\n * ```\r\n *\r\n * \\@description\r\n *\r\n * Insert the sub-tree when no case expressions evaluate to the same value as the enclosing switch\r\n * expression.\r\n *\r\n * See {\\@link NgSwitch} for more details and example.\r\n *\r\n * \\@stable\r\n */\r\nvar NgSwitchDefault = (function () {\r\n    /**\r\n     * @param {?} viewContainer\r\n     * @param {?} templateRef\r\n     * @param {?} ngSwitch\r\n     */\r\n    function NgSwitchDefault(viewContainer, templateRef, ngSwitch) {\r\n        ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));\r\n    }\r\n    return NgSwitchDefault;\r\n}());\r\nNgSwitchDefault.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngSwitchDefault]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgSwitchDefault.ctorParameters = function () { return [\r\n    { type: ViewContainerRef, },\r\n    { type: TemplateRef, },\r\n    { type: NgSwitch, decorators: [{ type: Host },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@ngModule CommonModule\r\n *\r\n * \\@whatItDoes Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.\r\n *\r\n * \\@howToUse\r\n * ```\r\n * <some-element [ngPlural]=\"value\">\r\n *   <ng-template ngPluralCase=\"=0\">there is nothing</ng-template>\r\n *   <ng-template ngPluralCase=\"=1\">there is one</ng-template>\r\n *   <ng-template ngPluralCase=\"few\">there are a few</ng-template>\r\n * </some-element>\r\n * ```\r\n *\r\n * \\@description\r\n *\r\n * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees\r\n * that match the switch expression's pluralization category.\r\n *\r\n * To use this directive you must provide a container element that sets the `[ngPlural]` attribute\r\n * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their\r\n * expression:\r\n * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value\r\n *   matches the switch expression exactly,\r\n * - otherwise, the view will be treated as a \"category match\", and will only display if exact\r\n *   value matches aren't found and the value maps to its category for the defined locale.\r\n *\r\n * See http://cldr.unicode.org/index/cldr-spec/plural-rules\r\n *\r\n * \\@experimental\r\n */\r\nvar NgPlural = (function () {\r\n    /**\r\n     * @param {?} _localization\r\n     */\r\n    function NgPlural(_localization) {\r\n        this._localization = _localization;\r\n        this._caseViews = {};\r\n    }\r\n    Object.defineProperty(NgPlural.prototype, \"ngPlural\", {\r\n        /**\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) {\r\n            this._switchValue = value;\r\n            this._updateView();\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} switchView\r\n     * @return {?}\r\n     */\r\n    NgPlural.prototype.addCase = function (value, switchView) { this._caseViews[value] = switchView; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgPlural.prototype._updateView = function () {\r\n        this._clearViews();\r\n        var /** @type {?} */ cases = Object.keys(this._caseViews);\r\n        var /** @type {?} */ key = getPluralCategory(this._switchValue, cases, this._localization);\r\n        this._activateView(this._caseViews[key]);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgPlural.prototype._clearViews = function () {\r\n        if (this._activeView)\r\n            this._activeView.destroy();\r\n    };\r\n    /**\r\n     * @param {?} view\r\n     * @return {?}\r\n     */\r\n    NgPlural.prototype._activateView = function (view) {\r\n        if (view) {\r\n            this._activeView = view;\r\n            this._activeView.create();\r\n        }\r\n    };\r\n    return NgPlural;\r\n}());\r\nNgPlural.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngPlural]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgPlural.ctorParameters = function () { return [\r\n    { type: NgLocalization, },\r\n]; };\r\nNgPlural.propDecorators = {\r\n    'ngPlural': [{ type: Input },],\r\n};\r\n/**\r\n * \\@ngModule CommonModule\r\n *\r\n * \\@whatItDoes Creates a view that will be added/removed from the parent {\\@link NgPlural} when the\r\n *             given expression matches the plural expression according to CLDR rules.\r\n *\r\n * \\@howToUse\r\n * ```\r\n * <some-element [ngPlural]=\"value\">\r\n *   <ng-template ngPluralCase=\"=0\">...</ng-template>\r\n *   <ng-template ngPluralCase=\"other\">...</ng-template>\r\n * </some-element>\r\n * ```\r\n *\r\n * See {\\@link NgPlural} for more details and example.\r\n *\r\n * \\@experimental\r\n */\r\nvar NgPluralCase = (function () {\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} template\r\n     * @param {?} viewContainer\r\n     * @param {?} ngPlural\r\n     */\r\n    function NgPluralCase(value, template, viewContainer, ngPlural) {\r\n        this.value = value;\r\n        var isANumber = !isNaN(Number(value));\r\n        ngPlural.addCase(isANumber ? \"=\" + value : value, new SwitchView(viewContainer, template));\r\n    }\r\n    return NgPluralCase;\r\n}());\r\nNgPluralCase.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngPluralCase]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgPluralCase.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Attribute, args: ['ngPluralCase',] },] },\r\n    { type: TemplateRef, },\r\n    { type: ViewContainerRef, },\r\n    { type: NgPlural, decorators: [{ type: Host },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@ngModule CommonModule\r\n *\r\n * \\@whatItDoes Update an HTML element styles.\r\n *\r\n * \\@howToUse\r\n * ```\r\n * <some-element [ngStyle]=\"{'font-style': styleExp}\">...</some-element>\r\n *\r\n * <some-element [ngStyle]=\"{'max-width.px': widthExp}\">...</some-element>\r\n *\r\n * <some-element [ngStyle]=\"objExp\">...</some-element>\r\n * ```\r\n *\r\n * \\@description\r\n *\r\n * The styles are updated according to the value of the expression evaluation:\r\n * - keys are style names with an optional `.<unit>` suffix (ie 'top.px', 'font-style.em'),\r\n * - values are the values assigned to those properties (expressed in the given unit).\r\n *\r\n * \\@stable\r\n */\r\nvar NgStyle = (function () {\r\n    /**\r\n     * @param {?} _differs\r\n     * @param {?} _ngEl\r\n     * @param {?} _renderer\r\n     */\r\n    function NgStyle(_differs, _ngEl, _renderer) {\r\n        this._differs = _differs;\r\n        this._ngEl = _ngEl;\r\n        this._renderer = _renderer;\r\n    }\r\n    Object.defineProperty(NgStyle.prototype, \"ngStyle\", {\r\n        /**\r\n         * @param {?} v\r\n         * @return {?}\r\n         */\r\n        set: function (v) {\r\n            this._ngStyle = v;\r\n            if (!this._differ && v) {\r\n                this._differ = this._differs.find(v).create();\r\n            }\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgStyle.prototype.ngDoCheck = function () {\r\n        if (this._differ) {\r\n            var /** @type {?} */ changes = this._differ.diff(this._ngStyle);\r\n            if (changes) {\r\n                this._applyChanges(changes);\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    NgStyle.prototype._applyChanges = function (changes) {\r\n        var _this = this;\r\n        changes.forEachRemovedItem(function (record) { return _this._setStyle(record.key, null); });\r\n        changes.forEachAddedItem(function (record) { return _this._setStyle(record.key, record.currentValue); });\r\n        changes.forEachChangedItem(function (record) { return _this._setStyle(record.key, record.currentValue); });\r\n    };\r\n    /**\r\n     * @param {?} nameAndUnit\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    NgStyle.prototype._setStyle = function (nameAndUnit, value) {\r\n        var _a = nameAndUnit.split('.'), name = _a[0], unit = _a[1];\r\n        value = value != null && unit ? \"\" + value + unit : value;\r\n        this._renderer.setElementStyle(this._ngEl.nativeElement, name, /** @type {?} */ (value));\r\n    };\r\n    return NgStyle;\r\n}());\r\nNgStyle.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngStyle]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgStyle.ctorParameters = function () { return [\r\n    { type: KeyValueDiffers, },\r\n    { type: ElementRef, },\r\n    { type: Renderer, },\r\n]; };\r\nNgStyle.propDecorators = {\r\n    'ngStyle': [{ type: Input },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@ngModule CommonModule\r\n *\r\n * \\@whatItDoes Inserts an embedded view from a prepared `TemplateRef`\r\n *\r\n * \\@howToUse\r\n * ```\r\n * <ng-container *ngTemplateOutlet=\"templateRefExp; context: contextExp\"></ng-container>\r\n * ```\r\n *\r\n * \\@description\r\n *\r\n * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.\r\n * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding\r\n * by the local template `let` declarations.\r\n *\r\n * Note: using the key `$implicit` in the context object will set it's value as default.\r\n *\r\n * ## Example\r\n *\r\n * {\\@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}\r\n *\r\n * \\@experimental\r\n */\r\nvar NgTemplateOutlet = (function () {\r\n    /**\r\n     * @param {?} _viewContainerRef\r\n     */\r\n    function NgTemplateOutlet(_viewContainerRef) {\r\n        this._viewContainerRef = _viewContainerRef;\r\n    }\r\n    Object.defineProperty(NgTemplateOutlet.prototype, \"ngOutletContext\", {\r\n        /**\r\n         * @deprecated v4.0.0 - Renamed to ngTemplateOutletContext.\r\n         * @param {?} context\r\n         * @return {?}\r\n         */\r\n        set: function (context) { this.ngTemplateOutletContext = context; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    NgTemplateOutlet.prototype.ngOnChanges = function (changes) {\r\n        if (this._viewRef) {\r\n            this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef));\r\n        }\r\n        if (this.ngTemplateOutlet) {\r\n            this._viewRef = this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet, this.ngTemplateOutletContext);\r\n        }\r\n    };\r\n    return NgTemplateOutlet;\r\n}());\r\nNgTemplateOutlet.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngTemplateOutlet]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgTemplateOutlet.ctorParameters = function () { return [\r\n    { type: ViewContainerRef, },\r\n]; };\r\nNgTemplateOutlet.propDecorators = {\r\n    'ngTemplateOutletContext': [{ type: Input },],\r\n    'ngTemplateOutlet': [{ type: Input },],\r\n    'ngOutletContext': [{ type: Input },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A collection of Angular directives that are likely to be used in each and every Angular\r\n * application.\r\n */\r\nvar COMMON_DIRECTIVES = [\r\n    NgClass,\r\n    NgComponentOutlet,\r\n    NgForOf,\r\n    NgIf,\r\n    NgTemplateOutlet,\r\n    NgStyle,\r\n    NgSwitch,\r\n    NgSwitchCase,\r\n    NgSwitchDefault,\r\n    NgPlural,\r\n    NgPluralCase,\r\n];\r\n/**\r\n * A collection of deprecated directives that are no longer part of the core module.\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} type\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction invalidPipeArgumentError(type, value) {\r\n    return Error(\"InvalidPipeArgument: '\" + value + \"' for pipe '\" + ɵstringify(type) + \"'\");\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ObservableStrategy = (function () {\r\n    function ObservableStrategy() {\r\n    }\r\n    /**\r\n     * @param {?} async\r\n     * @param {?} updateLatestValue\r\n     * @return {?}\r\n     */\r\n    ObservableStrategy.prototype.createSubscription = function (async, updateLatestValue) {\r\n        return async.subscribe({ next: updateLatestValue, error: function (e) { throw e; } });\r\n    };\r\n    /**\r\n     * @param {?} subscription\r\n     * @return {?}\r\n     */\r\n    ObservableStrategy.prototype.dispose = function (subscription) { subscription.unsubscribe(); };\r\n    /**\r\n     * @param {?} subscription\r\n     * @return {?}\r\n     */\r\n    ObservableStrategy.prototype.onDestroy = function (subscription) { subscription.unsubscribe(); };\r\n    return ObservableStrategy;\r\n}());\r\nvar PromiseStrategy = (function () {\r\n    function PromiseStrategy() {\r\n    }\r\n    /**\r\n     * @param {?} async\r\n     * @param {?} updateLatestValue\r\n     * @return {?}\r\n     */\r\n    PromiseStrategy.prototype.createSubscription = function (async, updateLatestValue) {\r\n        return async.then(updateLatestValue, function (e) { throw e; });\r\n    };\r\n    /**\r\n     * @param {?} subscription\r\n     * @return {?}\r\n     */\r\n    PromiseStrategy.prototype.dispose = function (subscription) { };\r\n    /**\r\n     * @param {?} subscription\r\n     * @return {?}\r\n     */\r\n    PromiseStrategy.prototype.onDestroy = function (subscription) { };\r\n    return PromiseStrategy;\r\n}());\r\nvar _promiseStrategy = new PromiseStrategy();\r\nvar _observableStrategy = new ObservableStrategy();\r\n/**\r\n * \\@ngModule CommonModule\r\n * \\@whatItDoes Unwraps a value from an asynchronous primitive.\r\n * \\@howToUse `observable_or_promise_expression | async`\r\n * \\@description\r\n * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has\r\n * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for\r\n * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid\r\n * potential memory leaks.\r\n *\r\n *\r\n * ## Examples\r\n *\r\n * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the\r\n * promise.\r\n *\r\n * {\\@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}\r\n *\r\n * It's also possible to use `async` with Observables. The example below binds the `time` Observable\r\n * to the view. The Observable continuously updates the view with the current time.\r\n *\r\n * {\\@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}\r\n *\r\n * \\@stable\r\n */\r\nvar AsyncPipe = (function () {\r\n    /**\r\n     * @param {?} _ref\r\n     */\r\n    function AsyncPipe(_ref) {\r\n        this._ref = _ref;\r\n        this._latestValue = null;\r\n        this._latestReturnedValue = null;\r\n        this._subscription = null;\r\n        this._obj = null;\r\n        this._strategy = ((null));\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    AsyncPipe.prototype.ngOnDestroy = function () {\r\n        if (this._subscription) {\r\n            this._dispose();\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} obj\r\n     * @return {?}\r\n     */\r\n    AsyncPipe.prototype.transform = function (obj) {\r\n        if (!this._obj) {\r\n            if (obj) {\r\n                this._subscribe(obj);\r\n            }\r\n            this._latestReturnedValue = this._latestValue;\r\n            return this._latestValue;\r\n        }\r\n        if (obj !== this._obj) {\r\n            this._dispose();\r\n            return this.transform(/** @type {?} */ (obj));\r\n        }\r\n        if (this._latestValue === this._latestReturnedValue) {\r\n            return this._latestReturnedValue;\r\n        }\r\n        this._latestReturnedValue = this._latestValue;\r\n        return WrappedValue.wrap(this._latestValue);\r\n    };\r\n    /**\r\n     * @param {?} obj\r\n     * @return {?}\r\n     */\r\n    AsyncPipe.prototype._subscribe = function (obj) {\r\n        var _this = this;\r\n        this._obj = obj;\r\n        this._strategy = this._selectStrategy(obj);\r\n        this._subscription = this._strategy.createSubscription(obj, function (value) { return _this._updateLatestValue(obj, value); });\r\n    };\r\n    /**\r\n     * @param {?} obj\r\n     * @return {?}\r\n     */\r\n    AsyncPipe.prototype._selectStrategy = function (obj) {\r\n        if (ɵisPromise(obj)) {\r\n            return _promiseStrategy;\r\n        }\r\n        if (ɵisObservable(obj)) {\r\n            return _observableStrategy;\r\n        }\r\n        throw invalidPipeArgumentError(AsyncPipe, obj);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    AsyncPipe.prototype._dispose = function () {\r\n        this._strategy.dispose(/** @type {?} */ ((this._subscription)));\r\n        this._latestValue = null;\r\n        this._latestReturnedValue = null;\r\n        this._subscription = null;\r\n        this._obj = null;\r\n    };\r\n    /**\r\n     * @param {?} async\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    AsyncPipe.prototype._updateLatestValue = function (async, value) {\r\n        if (async === this._obj) {\r\n            this._latestValue = value;\r\n            this._ref.markForCheck();\r\n        }\r\n    };\r\n    return AsyncPipe;\r\n}());\r\nAsyncPipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'async', pure: false },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nAsyncPipe.ctorParameters = function () { return [\r\n    { type: ChangeDetectorRef, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Transforms text to lowercase.\r\n *\r\n * {\\@example  common/pipes/ts/lowerupper_pipe.ts region='LowerUpperPipe' }\r\n *\r\n * \\@stable\r\n */\r\nvar LowerCasePipe = (function () {\r\n    function LowerCasePipe() {\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    LowerCasePipe.prototype.transform = function (value) {\r\n        if (!value)\r\n            return value;\r\n        if (typeof value !== 'string') {\r\n            throw invalidPipeArgumentError(LowerCasePipe, value);\r\n        }\r\n        return value.toLowerCase();\r\n    };\r\n    return LowerCasePipe;\r\n}());\r\nLowerCasePipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'lowercase' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nLowerCasePipe.ctorParameters = function () { return []; };\r\n/**\r\n * Helper method to transform a single word to titlecase.\r\n *\r\n * \\@stable\r\n * @param {?} word\r\n * @return {?}\r\n */\r\nfunction titleCaseWord(word) {\r\n    if (!word)\r\n        return word;\r\n    return word[0].toUpperCase() + word.substr(1).toLowerCase();\r\n}\r\n/**\r\n * Transforms text to titlecase.\r\n *\r\n * \\@stable\r\n */\r\nvar TitleCasePipe = (function () {\r\n    function TitleCasePipe() {\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    TitleCasePipe.prototype.transform = function (value) {\r\n        if (!value)\r\n            return value;\r\n        if (typeof value !== 'string') {\r\n            throw invalidPipeArgumentError(TitleCasePipe, value);\r\n        }\r\n        return value.split(/\\b/g).map(function (word) { return titleCaseWord(word); }).join('');\r\n    };\r\n    return TitleCasePipe;\r\n}());\r\nTitleCasePipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'titlecase' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nTitleCasePipe.ctorParameters = function () { return []; };\r\n/**\r\n * Transforms text to uppercase.\r\n *\r\n * \\@stable\r\n */\r\nvar UpperCasePipe = (function () {\r\n    function UpperCasePipe() {\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    UpperCasePipe.prototype.transform = function (value) {\r\n        if (!value)\r\n            return value;\r\n        if (typeof value !== 'string') {\r\n            throw invalidPipeArgumentError(UpperCasePipe, value);\r\n        }\r\n        return value.toUpperCase();\r\n    };\r\n    return UpperCasePipe;\r\n}());\r\nUpperCasePipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'uppercase' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nUpperCasePipe.ctorParameters = function () { return []; };\r\nvar NumberFormatStyle = {};\r\nNumberFormatStyle.Decimal = 0;\r\nNumberFormatStyle.Percent = 1;\r\nNumberFormatStyle.Currency = 2;\r\nNumberFormatStyle[NumberFormatStyle.Decimal] = \"Decimal\";\r\nNumberFormatStyle[NumberFormatStyle.Percent] = \"Percent\";\r\nNumberFormatStyle[NumberFormatStyle.Currency] = \"Currency\";\r\nvar NumberFormatter = (function () {\r\n    function NumberFormatter() {\r\n    }\r\n    /**\r\n     * @param {?} num\r\n     * @param {?} locale\r\n     * @param {?} style\r\n     * @param {?=} __3\r\n     * @return {?}\r\n     */\r\n    NumberFormatter.format = function (num, locale, style, _a) {\r\n        var _b = _a === void 0 ? {} : _a, minimumIntegerDigits = _b.minimumIntegerDigits, minimumFractionDigits = _b.minimumFractionDigits, maximumFractionDigits = _b.maximumFractionDigits, currency = _b.currency, _c = _b.currencyAsSymbol, currencyAsSymbol = _c === void 0 ? false : _c;\r\n        var /** @type {?} */ options = {\r\n            minimumIntegerDigits: minimumIntegerDigits,\r\n            minimumFractionDigits: minimumFractionDigits,\r\n            maximumFractionDigits: maximumFractionDigits,\r\n            style: NumberFormatStyle[style].toLowerCase()\r\n        };\r\n        if (style == NumberFormatStyle.Currency) {\r\n            options.currency = typeof currency == 'string' ? currency : undefined;\r\n            options.currencyDisplay = currencyAsSymbol ? 'symbol' : 'code';\r\n        }\r\n        return new Intl.NumberFormat(locale, options).format(num);\r\n    };\r\n    return NumberFormatter;\r\n}());\r\nvar DATE_FORMATS_SPLIT = /((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/;\r\nvar PATTERN_ALIASES = {\r\n    // Keys are quoted so they do not get renamed during closure compilation.\r\n    'yMMMdjms': datePartGetterFactory(combine([\r\n        digitCondition('year', 1),\r\n        nameCondition('month', 3),\r\n        digitCondition('day', 1),\r\n        digitCondition('hour', 1),\r\n        digitCondition('minute', 1),\r\n        digitCondition('second', 1),\r\n    ])),\r\n    'yMdjm': datePartGetterFactory(combine([\r\n        digitCondition('year', 1), digitCondition('month', 1), digitCondition('day', 1),\r\n        digitCondition('hour', 1), digitCondition('minute', 1)\r\n    ])),\r\n    'yMMMMEEEEd': datePartGetterFactory(combine([\r\n        digitCondition('year', 1), nameCondition('month', 4), nameCondition('weekday', 4),\r\n        digitCondition('day', 1)\r\n    ])),\r\n    'yMMMMd': datePartGetterFactory(combine([digitCondition('year', 1), nameCondition('month', 4), digitCondition('day', 1)])),\r\n    'yMMMd': datePartGetterFactory(combine([digitCondition('year', 1), nameCondition('month', 3), digitCondition('day', 1)])),\r\n    'yMd': datePartGetterFactory(combine([digitCondition('year', 1), digitCondition('month', 1), digitCondition('day', 1)])),\r\n    'jms': datePartGetterFactory(combine([digitCondition('hour', 1), digitCondition('second', 1), digitCondition('minute', 1)])),\r\n    'jm': datePartGetterFactory(combine([digitCondition('hour', 1), digitCondition('minute', 1)]))\r\n};\r\nvar DATE_FORMATS = {\r\n    // Keys are quoted so they do not get renamed.\r\n    'yyyy': datePartGetterFactory(digitCondition('year', 4)),\r\n    'yy': datePartGetterFactory(digitCondition('year', 2)),\r\n    'y': datePartGetterFactory(digitCondition('year', 1)),\r\n    'MMMM': datePartGetterFactory(nameCondition('month', 4)),\r\n    'MMM': datePartGetterFactory(nameCondition('month', 3)),\r\n    'MM': datePartGetterFactory(digitCondition('month', 2)),\r\n    'M': datePartGetterFactory(digitCondition('month', 1)),\r\n    'LLLL': datePartGetterFactory(nameCondition('month', 4)),\r\n    'L': datePartGetterFactory(nameCondition('month', 1)),\r\n    'dd': datePartGetterFactory(digitCondition('day', 2)),\r\n    'd': datePartGetterFactory(digitCondition('day', 1)),\r\n    'HH': digitModifier(hourExtractor(datePartGetterFactory(hour12Modify(digitCondition('hour', 2), false)))),\r\n    'H': hourExtractor(datePartGetterFactory(hour12Modify(digitCondition('hour', 1), false))),\r\n    'hh': digitModifier(hourExtractor(datePartGetterFactory(hour12Modify(digitCondition('hour', 2), true)))),\r\n    'h': hourExtractor(datePartGetterFactory(hour12Modify(digitCondition('hour', 1), true))),\r\n    'jj': datePartGetterFactory(digitCondition('hour', 2)),\r\n    'j': datePartGetterFactory(digitCondition('hour', 1)),\r\n    'mm': digitModifier(datePartGetterFactory(digitCondition('minute', 2))),\r\n    'm': datePartGetterFactory(digitCondition('minute', 1)),\r\n    'ss': digitModifier(datePartGetterFactory(digitCondition('second', 2))),\r\n    's': datePartGetterFactory(digitCondition('second', 1)),\r\n    // while ISO 8601 requires fractions to be prefixed with `.` or `,`\r\n    // we can be just safely rely on using `sss` since we currently don't support single or two digit\r\n    // fractions\r\n    'sss': datePartGetterFactory(digitCondition('second', 3)),\r\n    'EEEE': datePartGetterFactory(nameCondition('weekday', 4)),\r\n    'EEE': datePartGetterFactory(nameCondition('weekday', 3)),\r\n    'EE': datePartGetterFactory(nameCondition('weekday', 2)),\r\n    'E': datePartGetterFactory(nameCondition('weekday', 1)),\r\n    'a': hourClockExtractor(datePartGetterFactory(hour12Modify(digitCondition('hour', 1), true))),\r\n    'Z': timeZoneGetter('short'),\r\n    'z': timeZoneGetter('long'),\r\n    'ww': datePartGetterFactory({}),\r\n    // first Thursday of the year. not support ?\r\n    'w': datePartGetterFactory({}),\r\n    // of the year not support ?\r\n    'G': datePartGetterFactory(nameCondition('era', 1)),\r\n    'GG': datePartGetterFactory(nameCondition('era', 2)),\r\n    'GGG': datePartGetterFactory(nameCondition('era', 3)),\r\n    'GGGG': datePartGetterFactory(nameCondition('era', 4))\r\n};\r\n/**\r\n * @param {?} inner\r\n * @return {?}\r\n */\r\nfunction digitModifier(inner) {\r\n    return function (date, locale) {\r\n        var /** @type {?} */ result = inner(date, locale);\r\n        return result.length == 1 ? '0' + result : result;\r\n    };\r\n}\r\n/**\r\n * @param {?} inner\r\n * @return {?}\r\n */\r\nfunction hourClockExtractor(inner) {\r\n    return function (date, locale) { return inner(date, locale).split(' ')[1]; };\r\n}\r\n/**\r\n * @param {?} inner\r\n * @return {?}\r\n */\r\nfunction hourExtractor(inner) {\r\n    return function (date, locale) { return inner(date, locale).split(' ')[0]; };\r\n}\r\n/**\r\n * @param {?} date\r\n * @param {?} locale\r\n * @param {?} options\r\n * @return {?}\r\n */\r\nfunction intlDateFormat(date, locale, options) {\r\n    return new Intl.DateTimeFormat(locale, options).format(date).replace(/[\\u200e\\u200f]/g, '');\r\n}\r\n/**\r\n * @param {?} timezone\r\n * @return {?}\r\n */\r\nfunction timeZoneGetter(timezone) {\r\n    // To workaround `Intl` API restriction for single timezone let format with 24 hours\r\n    var /** @type {?} */ options = { hour: '2-digit', hour12: false, timeZoneName: timezone };\r\n    return function (date, locale) {\r\n        var /** @type {?} */ result = intlDateFormat(date, locale, options);\r\n        // Then extract first 3 letters that related to hours\r\n        return result ? result.substring(3) : '';\r\n    };\r\n}\r\n/**\r\n * @param {?} options\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction hour12Modify(options, value) {\r\n    options.hour12 = value;\r\n    return options;\r\n}\r\n/**\r\n * @param {?} prop\r\n * @param {?} len\r\n * @return {?}\r\n */\r\nfunction digitCondition(prop, len) {\r\n    var /** @type {?} */ result = {};\r\n    result[prop] = len === 2 ? '2-digit' : 'numeric';\r\n    return result;\r\n}\r\n/**\r\n * @param {?} prop\r\n * @param {?} len\r\n * @return {?}\r\n */\r\nfunction nameCondition(prop, len) {\r\n    var /** @type {?} */ result = {};\r\n    if (len < 4) {\r\n        result[prop] = len > 1 ? 'short' : 'narrow';\r\n    }\r\n    else {\r\n        result[prop] = 'long';\r\n    }\r\n    return result;\r\n}\r\n/**\r\n * @param {?} options\r\n * @return {?}\r\n */\r\nfunction combine(options) {\r\n    return ((Object)).assign.apply(((Object)), [{}].concat(options));\r\n}\r\n/**\r\n * @param {?} ret\r\n * @return {?}\r\n */\r\nfunction datePartGetterFactory(ret) {\r\n    return function (date, locale) { return intlDateFormat(date, locale, ret); };\r\n}\r\nvar DATE_FORMATTER_CACHE = new Map();\r\n/**\r\n * @param {?} format\r\n * @param {?} date\r\n * @param {?} locale\r\n * @return {?}\r\n */\r\nfunction dateFormatter(format, date, locale) {\r\n    var /** @type {?} */ fn = PATTERN_ALIASES[format];\r\n    if (fn)\r\n        return fn(date, locale);\r\n    var /** @type {?} */ cacheKey = format;\r\n    var /** @type {?} */ parts = DATE_FORMATTER_CACHE.get(cacheKey);\r\n    if (!parts) {\r\n        parts = [];\r\n        var /** @type {?} */ match = void 0;\r\n        DATE_FORMATS_SPLIT.exec(format);\r\n        var /** @type {?} */ _format = format;\r\n        while (_format) {\r\n            match = DATE_FORMATS_SPLIT.exec(_format);\r\n            if (match) {\r\n                parts = parts.concat(match.slice(1));\r\n                _format = ((parts.pop()));\r\n            }\r\n            else {\r\n                parts.push(_format);\r\n                _format = null;\r\n            }\r\n        }\r\n        DATE_FORMATTER_CACHE.set(cacheKey, parts);\r\n    }\r\n    return parts.reduce(function (text, part) {\r\n        var /** @type {?} */ fn = DATE_FORMATS[part];\r\n        return text + (fn ? fn(date, locale) : partToTime(part));\r\n    }, '');\r\n}\r\n/**\r\n * @param {?} part\r\n * @return {?}\r\n */\r\nfunction partToTime(part) {\r\n    return part === '\\'\\'' ? '\\'' : part.replace(/(^'|'$)/g, '').replace(/''/g, '\\'');\r\n}\r\nvar DateFormatter = (function () {\r\n    function DateFormatter() {\r\n    }\r\n    /**\r\n     * @param {?} date\r\n     * @param {?} locale\r\n     * @param {?} pattern\r\n     * @return {?}\r\n     */\r\n    DateFormatter.format = function (date, locale, pattern) {\r\n        return dateFormatter(pattern, date, locale);\r\n    };\r\n    return DateFormatter;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _NUMBER_FORMAT_REGEXP = /^(\\d+)?\\.((\\d+)(-(\\d+))?)?$/;\r\n/**\r\n * @param {?} pipe\r\n * @param {?} locale\r\n * @param {?} value\r\n * @param {?} style\r\n * @param {?=} digits\r\n * @param {?=} currency\r\n * @param {?=} currencyAsSymbol\r\n * @return {?}\r\n */\r\nfunction formatNumber(pipe, locale, value, style, digits, currency, currencyAsSymbol) {\r\n    if (currency === void 0) { currency = null; }\r\n    if (currencyAsSymbol === void 0) { currencyAsSymbol = false; }\r\n    if (value == null)\r\n        return null;\r\n    // Convert strings to numbers\r\n    value = typeof value === 'string' && isNumeric(value) ? +value : value;\r\n    if (typeof value !== 'number') {\r\n        throw invalidPipeArgumentError(pipe, value);\r\n    }\r\n    var /** @type {?} */ minInt = undefined;\r\n    var /** @type {?} */ minFraction = undefined;\r\n    var /** @type {?} */ maxFraction = undefined;\r\n    if (style !== NumberFormatStyle.Currency) {\r\n        // rely on Intl default for currency\r\n        minInt = 1;\r\n        minFraction = 0;\r\n        maxFraction = 3;\r\n    }\r\n    if (digits) {\r\n        var /** @type {?} */ parts = digits.match(_NUMBER_FORMAT_REGEXP);\r\n        if (parts === null) {\r\n            throw new Error(digits + \" is not a valid digit info for number pipes\");\r\n        }\r\n        if (parts[1] != null) {\r\n            minInt = parseIntAutoRadix(parts[1]);\r\n        }\r\n        if (parts[3] != null) {\r\n            minFraction = parseIntAutoRadix(parts[3]);\r\n        }\r\n        if (parts[5] != null) {\r\n            maxFraction = parseIntAutoRadix(parts[5]);\r\n        }\r\n    }\r\n    return NumberFormatter.format(/** @type {?} */ (value), locale, style, {\r\n        minimumIntegerDigits: minInt,\r\n        minimumFractionDigits: minFraction,\r\n        maximumFractionDigits: maxFraction,\r\n        currency: currency,\r\n        currencyAsSymbol: currencyAsSymbol,\r\n    });\r\n}\r\n/**\r\n * \\@ngModule CommonModule\r\n * \\@whatItDoes Formats a number according to locale rules.\r\n * \\@howToUse `number_expression | number[:digitInfo]`\r\n *\r\n * Formats a number as text. Group sizing and separator and other locale-specific\r\n * configurations are based on the active locale.\r\n *\r\n * where `expression` is a number:\r\n *  - `digitInfo` is a `string` which has a following format: <br>\r\n *     <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>\r\n *   - `minIntegerDigits` is the minimum number of integer digits to use. Defaults to `1`.\r\n *   - `minFractionDigits` is the minimum number of digits after fraction. Defaults to `0`.\r\n *   - `maxFractionDigits` is the maximum number of digits after fraction. Defaults to `3`.\r\n *\r\n * For more information on the acceptable range for each of these numbers and other\r\n * details see your native internationalization library.\r\n *\r\n * WARNING: this pipe uses the Internationalization API which is not yet available in all browsers\r\n * and may require a polyfill. See {\\@linkDocs guide/browser-support} for details.\r\n *\r\n * ### Example\r\n *\r\n * {\\@example common/pipes/ts/number_pipe.ts region='NumberPipe'}\r\n *\r\n * \\@stable\r\n */\r\nvar DecimalPipe = (function () {\r\n    /**\r\n     * @param {?} _locale\r\n     */\r\n    function DecimalPipe(_locale) {\r\n        this._locale = _locale;\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @param {?=} digits\r\n     * @return {?}\r\n     */\r\n    DecimalPipe.prototype.transform = function (value, digits) {\r\n        return formatNumber(DecimalPipe, this._locale, value, NumberFormatStyle.Decimal, digits);\r\n    };\r\n    return DecimalPipe;\r\n}());\r\nDecimalPipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'number' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nDecimalPipe.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [LOCALE_ID,] },] },\r\n]; };\r\n/**\r\n * \\@ngModule CommonModule\r\n * \\@whatItDoes Formats a number as a percentage according to locale rules.\r\n * \\@howToUse `number_expression | percent[:digitInfo]`\r\n *\r\n * \\@description\r\n *\r\n * Formats a number as percentage.\r\n *\r\n * - `digitInfo` See {\\@link DecimalPipe} for detailed description.\r\n *\r\n * WARNING: this pipe uses the Internationalization API which is not yet available in all browsers\r\n * and may require a polyfill. See {\\@linkDocs guide/browser-support} for details.\r\n *\r\n * ### Example\r\n *\r\n * {\\@example common/pipes/ts/number_pipe.ts region='PercentPipe'}\r\n *\r\n * \\@stable\r\n */\r\nvar PercentPipe = (function () {\r\n    /**\r\n     * @param {?} _locale\r\n     */\r\n    function PercentPipe(_locale) {\r\n        this._locale = _locale;\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @param {?=} digits\r\n     * @return {?}\r\n     */\r\n    PercentPipe.prototype.transform = function (value, digits) {\r\n        return formatNumber(PercentPipe, this._locale, value, NumberFormatStyle.Percent, digits);\r\n    };\r\n    return PercentPipe;\r\n}());\r\nPercentPipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'percent' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nPercentPipe.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [LOCALE_ID,] },] },\r\n]; };\r\n/**\r\n * \\@ngModule CommonModule\r\n * \\@whatItDoes Formats a number as currency using locale rules.\r\n * \\@howToUse `number_expression | currency[:currencyCode[:symbolDisplay[:digitInfo]]]`\r\n * \\@description\r\n *\r\n * Use `currency` to format a number as currency.\r\n *\r\n * - `currencyCode` is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, such\r\n *    as `USD` for the US dollar and `EUR` for the euro.\r\n * - `symbolDisplay` is a boolean indicating whether to use the currency symbol or code.\r\n *   - `true`: use symbol (e.g. `$`).\r\n *   - `false`(default): use code (e.g. `USD`).\r\n * - `digitInfo` See {\\@link DecimalPipe} for detailed description.\r\n *\r\n * WARNING: this pipe uses the Internationalization API which is not yet available in all browsers\r\n * and may require a polyfill. See {\\@linkDocs guide/browser-support} for details.\r\n *\r\n * ### Example\r\n *\r\n * {\\@example common/pipes/ts/number_pipe.ts region='CurrencyPipe'}\r\n *\r\n * \\@stable\r\n */\r\nvar CurrencyPipe = (function () {\r\n    /**\r\n     * @param {?} _locale\r\n     */\r\n    function CurrencyPipe(_locale) {\r\n        this._locale = _locale;\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @param {?=} currencyCode\r\n     * @param {?=} symbolDisplay\r\n     * @param {?=} digits\r\n     * @return {?}\r\n     */\r\n    CurrencyPipe.prototype.transform = function (value, currencyCode, symbolDisplay, digits) {\r\n        if (currencyCode === void 0) { currencyCode = 'USD'; }\r\n        if (symbolDisplay === void 0) { symbolDisplay = false; }\r\n        return formatNumber(CurrencyPipe, this._locale, value, NumberFormatStyle.Currency, digits, currencyCode, symbolDisplay);\r\n    };\r\n    return CurrencyPipe;\r\n}());\r\nCurrencyPipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'currency' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nCurrencyPipe.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [LOCALE_ID,] },] },\r\n]; };\r\n/**\r\n * @param {?} text\r\n * @return {?}\r\n */\r\nfunction parseIntAutoRadix(text) {\r\n    var /** @type {?} */ result = parseInt(text);\r\n    if (isNaN(result)) {\r\n        throw new Error('Invalid integer literal when parsing ' + text);\r\n    }\r\n    return result;\r\n}\r\n/**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction isNumeric(value) {\r\n    return !isNaN(value - parseFloat(value));\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ISO8601_DATE_REGEX = /^(\\d{4})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/;\r\n/**\r\n * \\@ngModule CommonModule\r\n * \\@whatItDoes Formats a date according to locale rules.\r\n * \\@howToUse `date_expression | date[:format]`\r\n * \\@description\r\n *\r\n * Where:\r\n * - `expression` is a date object or a number (milliseconds since UTC epoch) or an ISO string\r\n * (https://www.w3.org/TR/NOTE-datetime).\r\n * - `format` indicates which date/time components to include. The format can be predefined as\r\n *   shown below or custom as shown in the table.\r\n *   - `'medium'`: equivalent to `'yMMMdjms'` (e.g. `Sep 3, 2010, 12:05:08 PM` for `en-US`)\r\n *   - `'short'`: equivalent to `'yMdjm'` (e.g. `9/3/2010, 12:05 PM` for `en-US`)\r\n *   - `'fullDate'`: equivalent to `'yMMMMEEEEd'` (e.g. `Friday, September 3, 2010` for `en-US`)\r\n *   - `'longDate'`: equivalent to `'yMMMMd'` (e.g. `September 3, 2010` for `en-US`)\r\n *   - `'mediumDate'`: equivalent to `'yMMMd'` (e.g. `Sep 3, 2010` for `en-US`)\r\n *   - `'shortDate'`: equivalent to `'yMd'` (e.g. `9/3/2010` for `en-US`)\r\n *   - `'mediumTime'`: equivalent to `'jms'` (e.g. `12:05:08 PM` for `en-US`)\r\n *   - `'shortTime'`: equivalent to `'jm'` (e.g. `12:05 PM` for `en-US`)\r\n *\r\n *\r\n *  | Component | Symbol | Narrow | Short Form   | Long Form         | Numeric   | 2-digit   |\r\n *  |-----------|:------:|--------|--------------|-------------------|-----------|-----------|\r\n *  | era       |   G    | G (A)  | GGG (AD)     | GGGG (Anno Domini)| -         | -         |\r\n *  | year      |   y    | -      | -            | -                 | y (2015)  | yy (15)   |\r\n *  | month     |   M    | L (S)  | MMM (Sep)    | MMMM (September)  | M (9)     | MM (09)   |\r\n *  | day       |   d    | -      | -            | -                 | d (3)     | dd (03)   |\r\n *  | weekday   |   E    | E (S)  | EEE (Sun)    | EEEE (Sunday)     | -         | -         |\r\n *  | hour      |   j    | -      | -            | -                 | j (13)    | jj (13)   |\r\n *  | hour12    |   h    | -      | -            | -                 | h (1 PM)  | hh (01 PM)|\r\n *  | hour24    |   H    | -      | -            | -                 | H (13)    | HH (13)   |\r\n *  | minute    |   m    | -      | -            | -                 | m (5)     | mm (05)   |\r\n *  | second    |   s    | -      | -            | -                 | s (9)     | ss (09)   |\r\n *  | timezone  |   z    | -      | -            | z (Pacific Standard Time)| -  | -         |\r\n *  | timezone  |   Z    | -      | Z (GMT-8:00) | -                 | -         | -         |\r\n *  | timezone  |   a    | -      | a (PM)       | -                 | -         | -         |\r\n *\r\n * In javascript, only the components specified will be respected (not the ordering,\r\n * punctuations, ...) and details of the formatting will be dependent on the locale.\r\n *\r\n * Timezone of the formatted text will be the local system timezone of the end-user's machine.\r\n *\r\n * When the expression is a ISO string without time (e.g. 2016-09-19) the time zone offset is not\r\n * applied and the formatted text will have the same day, month and year of the expression.\r\n *\r\n * WARNINGS:\r\n * - this pipe is marked as pure hence it will not be re-evaluated when the input is mutated.\r\n *   Instead users should treat the date as an immutable object and change the reference when the\r\n *   pipe needs to re-run (this is to avoid reformatting the date on every change detection run\r\n *   which would be an expensive operation).\r\n * - this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera\r\n *   browsers.\r\n *\r\n * ### Examples\r\n *\r\n * Assuming `dateObj` is (year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11)\r\n * in the _local_ time and locale is 'en-US':\r\n *\r\n * ```\r\n *     {{ dateObj | date }}               // output is 'Jun 15, 2015'\r\n *     {{ dateObj | date:'medium' }}      // output is 'Jun 15, 2015, 9:43:11 PM'\r\n *     {{ dateObj | date:'shortTime' }}   // output is '9:43 PM'\r\n *     {{ dateObj | date:'mmss' }}        // output is '43:11'\r\n * ```\r\n *\r\n * {\\@example common/pipes/ts/date_pipe.ts region='DatePipe'}\r\n *\r\n * \\@stable\r\n */\r\nvar DatePipe = (function () {\r\n    /**\r\n     * @param {?} _locale\r\n     */\r\n    function DatePipe(_locale) {\r\n        this._locale = _locale;\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @param {?=} pattern\r\n     * @return {?}\r\n     */\r\n    DatePipe.prototype.transform = function (value, pattern) {\r\n        if (pattern === void 0) { pattern = 'mediumDate'; }\r\n        var /** @type {?} */ date;\r\n        if (isBlank(value) || value !== value)\r\n            return null;\r\n        if (typeof value === 'string') {\r\n            value = value.trim();\r\n        }\r\n        if (isDate(value)) {\r\n            date = value;\r\n        }\r\n        else if (isNumeric(value)) {\r\n            date = new Date(parseFloat(value));\r\n        }\r\n        else if (typeof value === 'string' && /^(\\d{4}-\\d{1,2}-\\d{1,2})$/.test(value)) {\r\n            /**\r\n            * For ISO Strings without time the day, month and year must be extracted from the ISO String\r\n            * before Date creation to avoid time offset and errors in the new Date.\r\n            * If we only replace '-' with ',' in the ISO String (\"2015,01,01\"), and try to create a new\r\n            * date, some browsers (e.g. IE 9) will throw an invalid Date error\r\n            * If we leave the '-' (\"2015-01-01\") and try to create a new Date(\"2015-01-01\") the timeoffset\r\n            * is applied\r\n            * Note: ISO months are 0 for January, 1 for February, ...\r\n            */\r\n            var _a = value.split('-').map(function (val) { return parseInt(val, 10); }), y = _a[0], m = _a[1], d = _a[2];\r\n            date = new Date(y, m - 1, d);\r\n        }\r\n        else {\r\n            date = new Date(value);\r\n        }\r\n        if (!isDate(date)) {\r\n            var /** @type {?} */ match = void 0;\r\n            if ((typeof value === 'string') && (match = value.match(ISO8601_DATE_REGEX))) {\r\n                date = isoStringToDate(match);\r\n            }\r\n            else {\r\n                throw invalidPipeArgumentError(DatePipe, value);\r\n            }\r\n        }\r\n        return DateFormatter.format(date, this._locale, DatePipe._ALIASES[pattern] || pattern);\r\n    };\r\n    return DatePipe;\r\n}());\r\n/**\r\n * \\@internal\r\n */\r\nDatePipe._ALIASES = {\r\n    'medium': 'yMMMdjms',\r\n    'short': 'yMdjm',\r\n    'fullDate': 'yMMMMEEEEd',\r\n    'longDate': 'yMMMMd',\r\n    'mediumDate': 'yMMMd',\r\n    'shortDate': 'yMd',\r\n    'mediumTime': 'jms',\r\n    'shortTime': 'jm'\r\n};\r\nDatePipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'date', pure: true },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nDatePipe.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [LOCALE_ID,] },] },\r\n]; };\r\n/**\r\n * @param {?} obj\r\n * @return {?}\r\n */\r\nfunction isBlank(obj) {\r\n    return obj == null || obj === '';\r\n}\r\n/**\r\n * @param {?} obj\r\n * @return {?}\r\n */\r\nfunction isDate(obj) {\r\n    return obj instanceof Date && !isNaN(obj.valueOf());\r\n}\r\n/**\r\n * @param {?} match\r\n * @return {?}\r\n */\r\nfunction isoStringToDate(match) {\r\n    var /** @type {?} */ date = new Date(0);\r\n    var /** @type {?} */ tzHour = 0;\r\n    var /** @type {?} */ tzMin = 0;\r\n    var /** @type {?} */ dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\r\n    var /** @type {?} */ timeSetter = match[8] ? date.setUTCHours : date.setHours;\r\n    if (match[9]) {\r\n        tzHour = toInt(match[9] + match[10]);\r\n        tzMin = toInt(match[9] + match[11]);\r\n    }\r\n    dateSetter.call(date, toInt(match[1]), toInt(match[2]) - 1, toInt(match[3]));\r\n    var /** @type {?} */ h = toInt(match[4] || '0') - tzHour;\r\n    var /** @type {?} */ m = toInt(match[5] || '0') - tzMin;\r\n    var /** @type {?} */ s = toInt(match[6] || '0');\r\n    var /** @type {?} */ ms = Math.round(parseFloat('0.' + (match[7] || 0)) * 1000);\r\n    timeSetter.call(date, h, m, s, ms);\r\n    return date;\r\n}\r\n/**\r\n * @param {?} str\r\n * @return {?}\r\n */\r\nfunction toInt(str) {\r\n    return parseInt(str, 10);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _INTERPOLATION_REGEXP = /#/g;\r\n/**\r\n * \\@ngModule CommonModule\r\n * \\@whatItDoes Maps a value to a string that pluralizes the value according to locale rules.\r\n * \\@howToUse `expression | i18nPlural:mapping`\r\n * \\@description\r\n *\r\n *  Where:\r\n *  - `expression` is a number.\r\n *  - `mapping` is an object that mimics the ICU format, see\r\n *    http://userguide.icu-project.org/formatparse/messages\r\n *\r\n *  ## Example\r\n *\r\n * {\\@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}\r\n *\r\n * \\@experimental\r\n */\r\nvar I18nPluralPipe = (function () {\r\n    /**\r\n     * @param {?} _localization\r\n     */\r\n    function I18nPluralPipe(_localization) {\r\n        this._localization = _localization;\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} pluralMap\r\n     * @return {?}\r\n     */\r\n    I18nPluralPipe.prototype.transform = function (value, pluralMap) {\r\n        if (value == null)\r\n            return '';\r\n        if (typeof pluralMap !== 'object' || pluralMap === null) {\r\n            throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);\r\n        }\r\n        var /** @type {?} */ key = getPluralCategory(value, Object.keys(pluralMap), this._localization);\r\n        return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());\r\n    };\r\n    return I18nPluralPipe;\r\n}());\r\nI18nPluralPipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'i18nPlural', pure: true },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nI18nPluralPipe.ctorParameters = function () { return [\r\n    { type: NgLocalization, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@ngModule CommonModule\r\n * \\@whatItDoes Generic selector that displays the string that matches the current value.\r\n * \\@howToUse `expression | i18nSelect:mapping`\r\n * \\@description\r\n *\r\n *  Where `mapping` is an object that indicates the text that should be displayed\r\n *  for different values of the provided `expression`.\r\n *  If none of the keys of the mapping match the value of the `expression`, then the content\r\n *  of the `other` key is returned when present, otherwise an empty string is returned.\r\n *\r\n *  ## Example\r\n *\r\n * {\\@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}\r\n *\r\n *  \\@experimental\r\n */\r\nvar I18nSelectPipe = (function () {\r\n    function I18nSelectPipe() {\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} mapping\r\n     * @return {?}\r\n     */\r\n    I18nSelectPipe.prototype.transform = function (value, mapping) {\r\n        if (value == null)\r\n            return '';\r\n        if (typeof mapping !== 'object' || typeof value !== 'string') {\r\n            throw invalidPipeArgumentError(I18nSelectPipe, mapping);\r\n        }\r\n        if (mapping.hasOwnProperty(value)) {\r\n            return mapping[value];\r\n        }\r\n        if (mapping.hasOwnProperty('other')) {\r\n            return mapping['other'];\r\n        }\r\n        return '';\r\n    };\r\n    return I18nSelectPipe;\r\n}());\r\nI18nSelectPipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'i18nSelect', pure: true },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nI18nSelectPipe.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@ngModule CommonModule\r\n * \\@whatItDoes Converts value into JSON string.\r\n * \\@howToUse `expression | json`\r\n * \\@description\r\n *\r\n * Converts value into string using `JSON.stringify`. Useful for debugging.\r\n *\r\n * ### Example\r\n * {\\@example common/pipes/ts/json_pipe.ts region='JsonPipe'}\r\n *\r\n * \\@stable\r\n */\r\nvar JsonPipe = (function () {\r\n    function JsonPipe() {\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    JsonPipe.prototype.transform = function (value) { return JSON.stringify(value, null, 2); };\r\n    return JsonPipe;\r\n}());\r\nJsonPipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'json', pure: false },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nJsonPipe.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@ngModule CommonModule\r\n * \\@whatItDoes Creates a new List or String containing a subset (slice) of the elements.\r\n * \\@howToUse `array_or_string_expression | slice:start[:end]`\r\n * \\@description\r\n *\r\n * Where the input expression is a `List` or `String`, and:\r\n * - `start`: The starting index of the subset to return.\r\n *   - **a positive integer**: return the item at `start` index and all items after\r\n *     in the list or string expression.\r\n *   - **a negative integer**: return the item at `start` index from the end and all items after\r\n *     in the list or string expression.\r\n *   - **if positive and greater than the size of the expression**: return an empty list or string.\r\n *   - **if negative and greater than the size of the expression**: return entire list or string.\r\n * - `end`: The ending index of the subset to return.\r\n *   - **omitted**: return all items until the end.\r\n *   - **if positive**: return all items before `end` index of the list or string.\r\n *   - **if negative**: return all items before `end` index from the end of the list or string.\r\n *\r\n * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`\r\n * and `String.prototype.slice()`.\r\n *\r\n * When operating on a [List], the returned list is always a copy even when all\r\n * the elements are being returned.\r\n *\r\n * When operating on a blank value, the pipe returns the blank value.\r\n *\r\n * ## List Example\r\n *\r\n * This `ngFor` example:\r\n *\r\n * {\\@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}\r\n *\r\n * produces the following:\r\n *\r\n *     <li>b</li>\r\n *     <li>c</li>\r\n *\r\n * ## String Examples\r\n *\r\n * {\\@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}\r\n *\r\n * \\@stable\r\n */\r\nvar SlicePipe = (function () {\r\n    function SlicePipe() {\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} start\r\n     * @param {?=} end\r\n     * @return {?}\r\n     */\r\n    SlicePipe.prototype.transform = function (value, start, end) {\r\n        if (value == null)\r\n            return value;\r\n        if (!this.supports(value)) {\r\n            throw invalidPipeArgumentError(SlicePipe, value);\r\n        }\r\n        return value.slice(start, end);\r\n    };\r\n    /**\r\n     * @param {?} obj\r\n     * @return {?}\r\n     */\r\n    SlicePipe.prototype.supports = function (obj) { return typeof obj === 'string' || Array.isArray(obj); };\r\n    return SlicePipe;\r\n}());\r\nSlicePipe.decorators = [\r\n    { type: Pipe, args: [{ name: 'slice', pure: false },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nSlicePipe.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * This module provides a set of common Pipes.\r\n */\r\n/**\r\n * A collection of Angular pipes that are likely to be used in each and every application.\r\n */\r\nvar COMMON_PIPES = [\r\n    AsyncPipe,\r\n    UpperCasePipe,\r\n    LowerCasePipe,\r\n    JsonPipe,\r\n    SlicePipe,\r\n    DecimalPipe,\r\n    PercentPipe,\r\n    TitleCasePipe,\r\n    CurrencyPipe,\r\n    DatePipe,\r\n    I18nPluralPipe,\r\n    I18nSelectPipe,\r\n];\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * The module that includes all the basic Angular directives like {\\@link NgIf}, {\\@link NgForOf}, ...\r\n *\r\n * \\@stable\r\n */\r\nvar CommonModule = (function () {\r\n    function CommonModule() {\r\n    }\r\n    return CommonModule;\r\n}());\r\nCommonModule.decorators = [\r\n    { type: NgModule, args: [{\r\n                declarations: [COMMON_DIRECTIVES, COMMON_PIPES],\r\n                exports: [COMMON_DIRECTIVES, COMMON_PIPES],\r\n                providers: [\r\n                    { provide: NgLocalization, useClass: NgLocaleLocalization },\r\n                ],\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nCommonModule.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar PLATFORM_BROWSER_ID = 'browser';\r\nvar PLATFORM_SERVER_ID = 'server';\r\nvar PLATFORM_WORKER_APP_ID = 'browserWorkerApp';\r\nvar PLATFORM_WORKER_UI_ID = 'browserWorkerUi';\r\n/**\r\n * Returns whether a platform id represents a browser platform.\r\n * \\@experimental\r\n * @param {?} platformId\r\n * @return {?}\r\n */\r\nfunction isPlatformBrowser(platformId) {\r\n    return platformId === PLATFORM_BROWSER_ID;\r\n}\r\n/**\r\n * Returns whether a platform id represents a server platform.\r\n * \\@experimental\r\n * @param {?} platformId\r\n * @return {?}\r\n */\r\nfunction isPlatformServer(platformId) {\r\n    return platformId === PLATFORM_SERVER_ID;\r\n}\r\n/**\r\n * Returns whether a platform id represents a web worker app platform.\r\n * \\@experimental\r\n * @param {?} platformId\r\n * @return {?}\r\n */\r\nfunction isPlatformWorkerApp(platformId) {\r\n    return platformId === PLATFORM_WORKER_APP_ID;\r\n}\r\n/**\r\n * Returns whether a platform id represents a web worker UI platform.\r\n * \\@experimental\r\n * @param {?} platformId\r\n * @return {?}\r\n */\r\nfunction isPlatformWorkerUi(platformId) {\r\n    return platformId === PLATFORM_WORKER_UI_ID;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the common package.\r\n */\r\n/**\r\n * \\@stable\r\n */\r\nvar VERSION = new Version('4.1.3');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the common package.\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the common package.\r\n */\r\n// This file only reexports content of the `src` folder. Keep it that way.\r\n/**\r\n * Generated bundle index. Do not edit.\r\n */\r\nexport { NgLocaleLocalization, NgLocalization, CommonModule, NgClass, NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NgComponentOutlet, AsyncPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, LowerCasePipe, CurrencyPipe, DecimalPipe, PercentPipe, SlicePipe, UpperCasePipe, TitleCasePipe, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PLATFORM_WORKER_APP_ID as ɵPLATFORM_WORKER_APP_ID, PLATFORM_WORKER_UI_ID as ɵPLATFORM_WORKER_UI_ID, isPlatformBrowser, isPlatformServer, isPlatformWorkerApp, isPlatformWorkerUi, VERSION, PlatformLocation, LOCATION_INITIALIZED, LocationStrategy, APP_BASE_HREF, HashLocationStrategy, PathLocationStrategy, Location, COMMON_DIRECTIVES as ɵa, COMMON_PIPES as ɵb };\r\n//# sourceMappingURL=common.es5.js.map\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angular/common/@angular/common.es5.js\n// module id = 12\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar isFunction_1 = require('./util/isFunction');\r\nvar Subscription_1 = require('./Subscription');\r\nvar Observer_1 = require('./Observer');\r\nvar rxSubscriber_1 = require('./symbol/rxSubscriber');\r\n/**\r\n * Implements the {@link Observer} interface and extends the\r\n * {@link Subscription} class. While the {@link Observer} is the public API for\r\n * consuming the values of an {@link Observable}, all Observers get converted to\r\n * a Subscriber, in order to provide Subscription-like capabilities such as\r\n * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for\r\n * implementing operators, but it is rarely used as a public API.\r\n *\r\n * @class Subscriber<T>\r\n */\r\nvar Subscriber = (function (_super) {\r\n    __extends(Subscriber, _super);\r\n    /**\r\n     * @param {Observer|function(value: T): void} [destinationOrNext] A partially\r\n     * defined Observer or a `next` callback function.\r\n     * @param {function(e: ?any): void} [error] The `error` callback of an\r\n     * Observer.\r\n     * @param {function(): void} [complete] The `complete` callback of an\r\n     * Observer.\r\n     */\r\n    function Subscriber(destinationOrNext, error, complete) {\r\n        _super.call(this);\r\n        this.syncErrorValue = null;\r\n        this.syncErrorThrown = false;\r\n        this.syncErrorThrowable = false;\r\n        this.isStopped = false;\r\n        switch (arguments.length) {\r\n            case 0:\r\n                this.destination = Observer_1.empty;\r\n                break;\r\n            case 1:\r\n                if (!destinationOrNext) {\r\n                    this.destination = Observer_1.empty;\r\n                    break;\r\n                }\r\n                if (typeof destinationOrNext === 'object') {\r\n                    if (destinationOrNext instanceof Subscriber) {\r\n                        this.destination = destinationOrNext;\r\n                        this.destination.add(this);\r\n                    }\r\n                    else {\r\n                        this.syncErrorThrowable = true;\r\n                        this.destination = new SafeSubscriber(this, destinationOrNext);\r\n                    }\r\n                    break;\r\n                }\r\n            default:\r\n                this.syncErrorThrowable = true;\r\n                this.destination = new SafeSubscriber(this, destinationOrNext, error, complete);\r\n                break;\r\n        }\r\n    }\r\n    Subscriber.prototype[rxSubscriber_1.$$rxSubscriber] = function () { return this; };\r\n    /**\r\n     * A static factory for a Subscriber, given a (potentially partial) definition\r\n     * of an Observer.\r\n     * @param {function(x: ?T): void} [next] The `next` callback of an Observer.\r\n     * @param {function(e: ?any): void} [error] The `error` callback of an\r\n     * Observer.\r\n     * @param {function(): void} [complete] The `complete` callback of an\r\n     * Observer.\r\n     * @return {Subscriber<T>} A Subscriber wrapping the (partially defined)\r\n     * Observer represented by the given arguments.\r\n     */\r\n    Subscriber.create = function (next, error, complete) {\r\n        var subscriber = new Subscriber(next, error, complete);\r\n        subscriber.syncErrorThrowable = false;\r\n        return subscriber;\r\n    };\r\n    /**\r\n     * The {@link Observer} callback to receive notifications of type `next` from\r\n     * the Observable, with a value. The Observable may call this method 0 or more\r\n     * times.\r\n     * @param {T} [value] The `next` value.\r\n     * @return {void}\r\n     */\r\n    Subscriber.prototype.next = function (value) {\r\n        if (!this.isStopped) {\r\n            this._next(value);\r\n        }\r\n    };\r\n    /**\r\n     * The {@link Observer} callback to receive notifications of type `error` from\r\n     * the Observable, with an attached {@link Error}. Notifies the Observer that\r\n     * the Observable has experienced an error condition.\r\n     * @param {any} [err] The `error` exception.\r\n     * @return {void}\r\n     */\r\n    Subscriber.prototype.error = function (err) {\r\n        if (!this.isStopped) {\r\n            this.isStopped = true;\r\n            this._error(err);\r\n        }\r\n    };\r\n    /**\r\n     * The {@link Observer} callback to receive a valueless notification of type\r\n     * `complete` from the Observable. Notifies the Observer that the Observable\r\n     * has finished sending push-based notifications.\r\n     * @return {void}\r\n     */\r\n    Subscriber.prototype.complete = function () {\r\n        if (!this.isStopped) {\r\n            this.isStopped = true;\r\n            this._complete();\r\n        }\r\n    };\r\n    Subscriber.prototype.unsubscribe = function () {\r\n        if (this.closed) {\r\n            return;\r\n        }\r\n        this.isStopped = true;\r\n        _super.prototype.unsubscribe.call(this);\r\n    };\r\n    Subscriber.prototype._next = function (value) {\r\n        this.destination.next(value);\r\n    };\r\n    Subscriber.prototype._error = function (err) {\r\n        this.destination.error(err);\r\n        this.unsubscribe();\r\n    };\r\n    Subscriber.prototype._complete = function () {\r\n        this.destination.complete();\r\n        this.unsubscribe();\r\n    };\r\n    return Subscriber;\r\n}(Subscription_1.Subscription));\r\nexports.Subscriber = Subscriber;\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar SafeSubscriber = (function (_super) {\r\n    __extends(SafeSubscriber, _super);\r\n    function SafeSubscriber(_parent, observerOrNext, error, complete) {\r\n        _super.call(this);\r\n        this._parent = _parent;\r\n        var next;\r\n        var context = this;\r\n        if (isFunction_1.isFunction(observerOrNext)) {\r\n            next = observerOrNext;\r\n        }\r\n        else if (observerOrNext) {\r\n            context = observerOrNext;\r\n            next = observerOrNext.next;\r\n            error = observerOrNext.error;\r\n            complete = observerOrNext.complete;\r\n            if (isFunction_1.isFunction(context.unsubscribe)) {\r\n                this.add(context.unsubscribe.bind(context));\r\n            }\r\n            context.unsubscribe = this.unsubscribe.bind(this);\r\n        }\r\n        this._context = context;\r\n        this._next = next;\r\n        this._error = error;\r\n        this._complete = complete;\r\n    }\r\n    SafeSubscriber.prototype.next = function (value) {\r\n        if (!this.isStopped && this._next) {\r\n            var _parent = this._parent;\r\n            if (!_parent.syncErrorThrowable) {\r\n                this.__tryOrUnsub(this._next, value);\r\n            }\r\n            else if (this.__tryOrSetError(_parent, this._next, value)) {\r\n                this.unsubscribe();\r\n            }\r\n        }\r\n    };\r\n    SafeSubscriber.prototype.error = function (err) {\r\n        if (!this.isStopped) {\r\n            var _parent = this._parent;\r\n            if (this._error) {\r\n                if (!_parent.syncErrorThrowable) {\r\n                    this.__tryOrUnsub(this._error, err);\r\n                    this.unsubscribe();\r\n                }\r\n                else {\r\n                    this.__tryOrSetError(_parent, this._error, err);\r\n                    this.unsubscribe();\r\n                }\r\n            }\r\n            else if (!_parent.syncErrorThrowable) {\r\n                this.unsubscribe();\r\n                throw err;\r\n            }\r\n            else {\r\n                _parent.syncErrorValue = err;\r\n                _parent.syncErrorThrown = true;\r\n                this.unsubscribe();\r\n            }\r\n        }\r\n    };\r\n    SafeSubscriber.prototype.complete = function () {\r\n        if (!this.isStopped) {\r\n            var _parent = this._parent;\r\n            if (this._complete) {\r\n                if (!_parent.syncErrorThrowable) {\r\n                    this.__tryOrUnsub(this._complete);\r\n                    this.unsubscribe();\r\n                }\r\n                else {\r\n                    this.__tryOrSetError(_parent, this._complete);\r\n                    this.unsubscribe();\r\n                }\r\n            }\r\n            else {\r\n                this.unsubscribe();\r\n            }\r\n        }\r\n    };\r\n    SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) {\r\n        try {\r\n            fn.call(this._context, value);\r\n        }\r\n        catch (err) {\r\n            this.unsubscribe();\r\n            throw err;\r\n        }\r\n    };\r\n    SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) {\r\n        try {\r\n            fn.call(this._context, value);\r\n        }\r\n        catch (err) {\r\n            parent.syncErrorValue = err;\r\n            parent.syncErrorThrown = true;\r\n            return true;\r\n        }\r\n        return false;\r\n    };\r\n    SafeSubscriber.prototype._unsubscribe = function () {\r\n        var _parent = this._parent;\r\n        this._context = null;\r\n        this._parent = null;\r\n        _parent.unsubscribe();\r\n    };\r\n    return SafeSubscriber;\r\n}(Subscriber));\r\n//# sourceMappingURL=Subscriber.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/Subscriber.js\n// module id = 15\n// module chunks = 2","var __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * @license Angular v4.1.3\r\n * (c) 2010-2017 Google, Inc. https://angular.io/\r\n * License: MIT\r\n */\r\nimport { Directive, ElementRef, EventEmitter, Host, Inject, Injectable, InjectionToken, Injector, Input, NgModule, Optional, Output, Renderer, Self, SkipSelf, Version, forwardRef, ɵisObservable, ɵisPromise, ɵlooseIdentical } from '@angular/core';\r\nimport { forkJoin } from 'rxjs/observable/forkJoin';\r\nimport { fromPromise } from 'rxjs/observable/fromPromise';\r\nimport { map } from 'rxjs/operator/map';\r\nimport { ɵgetDOM } from '@angular/platform-browser';\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Base class for control directives.\r\n *\r\n * Only used internally in the forms module.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar AbstractControlDirective = (function () {\r\n    function AbstractControlDirective() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    AbstractControlDirective.prototype.control = function () { };\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"value\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.value : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"valid\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.valid : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"invalid\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.invalid : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"pending\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.pending : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"errors\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.errors : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"pristine\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.pristine : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"dirty\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.dirty : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"touched\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.touched : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"untouched\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.untouched : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"disabled\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.disabled : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"enabled\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.control ? this.control.enabled : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"statusChanges\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this.control ? this.control.statusChanges : null;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"valueChanges\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this.control ? this.control.valueChanges : null;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlDirective.prototype, \"path\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?=} value\r\n     * @return {?}\r\n     */\r\n    AbstractControlDirective.prototype.reset = function (value) {\r\n        if (value === void 0) { value = undefined; }\r\n        if (this.control)\r\n            this.control.reset(value);\r\n    };\r\n    /**\r\n     * @param {?} errorCode\r\n     * @param {?=} path\r\n     * @return {?}\r\n     */\r\n    AbstractControlDirective.prototype.hasError = function (errorCode, path) {\r\n        return this.control ? this.control.hasError(errorCode, path) : false;\r\n    };\r\n    /**\r\n     * @param {?} errorCode\r\n     * @param {?=} path\r\n     * @return {?}\r\n     */\r\n    AbstractControlDirective.prototype.getError = function (errorCode, path) {\r\n        return this.control ? this.control.getError(errorCode, path) : null;\r\n    };\r\n    return AbstractControlDirective;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A directive that contains multiple {\\@link NgControl}s.\r\n *\r\n * Only used by the forms module.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar ControlContainer = (function (_super) {\r\n    __extends(ControlContainer, _super);\r\n    function ControlContainer() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    Object.defineProperty(ControlContainer.prototype, \"formDirective\", {\r\n        /**\r\n         * Get the form to which this container belongs.\r\n         * @return {?}\r\n         */\r\n        get: function () { return null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ControlContainer.prototype, \"path\", {\r\n        /**\r\n         * Get the path to this container.\r\n         * @return {?}\r\n         */\r\n        get: function () { return null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return ControlContainer;\r\n}(AbstractControlDirective));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar __assign = (undefined && undefined.__assign) || Object.assign || function (t) {\r\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n        s = arguments[i];\r\n        for (var p in s)\r\n            if (Object.prototype.hasOwnProperty.call(s, p))\r\n                t[p] = s[p];\r\n    }\r\n    return t;\r\n};\r\n/**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction isEmptyInputValue(value) {\r\n    // we don't check for string here so it also works with arrays\r\n    return value == null || value.length === 0;\r\n}\r\n/**\r\n * Providers for validators to be used for {\\@link FormControl}s in a form.\r\n *\r\n * Provide this using `multi: true` to add validators.\r\n *\r\n * \\@stable\r\n */\r\nvar NG_VALIDATORS = new InjectionToken('NgValidators');\r\n/**\r\n * Providers for asynchronous validators to be used for {\\@link FormControl}s\r\n * in a form.\r\n *\r\n * Provide this using `multi: true` to add validators.\r\n *\r\n * See {\\@link NG_VALIDATORS} for more details.\r\n *\r\n * \\@stable\r\n */\r\nvar NG_ASYNC_VALIDATORS = new InjectionToken('NgAsyncValidators');\r\nvar EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;\r\n/**\r\n * Provides a set of validators used by form controls.\r\n *\r\n * A validator is a function that processes a {\\@link FormControl} or collection of\r\n * controls and returns a map of errors. A null map means that validation has passed.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * var loginControl = new FormControl(\"\", Validators.required)\r\n * ```\r\n *\r\n * \\@stable\r\n */\r\nvar Validators = (function () {\r\n    function Validators() {\r\n    }\r\n    /**\r\n     * Validator that requires controls to have a non-empty value.\r\n     * @param {?} control\r\n     * @return {?}\r\n     */\r\n    Validators.required = function (control) {\r\n        return isEmptyInputValue(control.value) ? { 'required': true } : null;\r\n    };\r\n    /**\r\n     * Validator that requires control value to be true.\r\n     * @param {?} control\r\n     * @return {?}\r\n     */\r\n    Validators.requiredTrue = function (control) {\r\n        return control.value === true ? null : { 'required': true };\r\n    };\r\n    /**\r\n     * Validator that performs email validation.\r\n     * @param {?} control\r\n     * @return {?}\r\n     */\r\n    Validators.email = function (control) {\r\n        return EMAIL_REGEXP.test(control.value) ? null : { 'email': true };\r\n    };\r\n    /**\r\n     * Validator that requires controls to have a value of a minimum length.\r\n     * @param {?} minLength\r\n     * @return {?}\r\n     */\r\n    Validators.minLength = function (minLength) {\r\n        return function (control) {\r\n            if (isEmptyInputValue(control.value)) {\r\n                return null; // don't validate empty values to allow optional controls\r\n            }\r\n            var /** @type {?} */ length = control.value ? control.value.length : 0;\r\n            return length < minLength ?\r\n                { 'minlength': { 'requiredLength': minLength, 'actualLength': length } } :\r\n                null;\r\n        };\r\n    };\r\n    /**\r\n     * Validator that requires controls to have a value of a maximum length.\r\n     * @param {?} maxLength\r\n     * @return {?}\r\n     */\r\n    Validators.maxLength = function (maxLength) {\r\n        return function (control) {\r\n            var /** @type {?} */ length = control.value ? control.value.length : 0;\r\n            return length > maxLength ?\r\n                { 'maxlength': { 'requiredLength': maxLength, 'actualLength': length } } :\r\n                null;\r\n        };\r\n    };\r\n    /**\r\n     * Validator that requires a control to match a regex to its value.\r\n     * @param {?} pattern\r\n     * @return {?}\r\n     */\r\n    Validators.pattern = function (pattern) {\r\n        if (!pattern)\r\n            return Validators.nullValidator;\r\n        var /** @type {?} */ regex;\r\n        var /** @type {?} */ regexStr;\r\n        if (typeof pattern === 'string') {\r\n            regexStr = \"^\" + pattern + \"$\";\r\n            regex = new RegExp(regexStr);\r\n        }\r\n        else {\r\n            regexStr = pattern.toString();\r\n            regex = pattern;\r\n        }\r\n        return function (control) {\r\n            if (isEmptyInputValue(control.value)) {\r\n                return null; // don't validate empty values to allow optional controls\r\n            }\r\n            var /** @type {?} */ value = control.value;\r\n            return regex.test(value) ? null :\r\n                { 'pattern': { 'requiredPattern': regexStr, 'actualValue': value } };\r\n        };\r\n    };\r\n    /**\r\n     * No-op validator.\r\n     * @param {?} c\r\n     * @return {?}\r\n     */\r\n    Validators.nullValidator = function (c) { return null; };\r\n    /**\r\n     * @param {?} validators\r\n     * @return {?}\r\n     */\r\n    Validators.compose = function (validators) {\r\n        if (!validators)\r\n            return null;\r\n        var /** @type {?} */ presentValidators = (validators.filter(isPresent));\r\n        if (presentValidators.length == 0)\r\n            return null;\r\n        return function (control) {\r\n            return _mergeErrors(_executeValidators(control, presentValidators));\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} validators\r\n     * @return {?}\r\n     */\r\n    Validators.composeAsync = function (validators) {\r\n        if (!validators)\r\n            return null;\r\n        var /** @type {?} */ presentValidators = (validators.filter(isPresent));\r\n        if (presentValidators.length == 0)\r\n            return null;\r\n        return function (control) {\r\n            var /** @type {?} */ observables = _executeAsyncValidators(control, presentValidators).map(toObservable);\r\n            return map.call(forkJoin(observables), _mergeErrors);\r\n        };\r\n    };\r\n    return Validators;\r\n}());\r\n/**\r\n * @param {?} o\r\n * @return {?}\r\n */\r\nfunction isPresent(o) {\r\n    return o != null;\r\n}\r\n/**\r\n * @param {?} r\r\n * @return {?}\r\n */\r\nfunction toObservable(r) {\r\n    var /** @type {?} */ obs = ɵisPromise(r) ? fromPromise(r) : r;\r\n    if (!(ɵisObservable(obs))) {\r\n        throw new Error(\"Expected validator to return Promise or Observable.\");\r\n    }\r\n    return obs;\r\n}\r\n/**\r\n * @param {?} control\r\n * @param {?} validators\r\n * @return {?}\r\n */\r\nfunction _executeValidators(control, validators) {\r\n    return validators.map(function (v) { return v(control); });\r\n}\r\n/**\r\n * @param {?} control\r\n * @param {?} validators\r\n * @return {?}\r\n */\r\nfunction _executeAsyncValidators(control, validators) {\r\n    return validators.map(function (v) { return v(control); });\r\n}\r\n/**\r\n * @param {?} arrayOfErrors\r\n * @return {?}\r\n */\r\nfunction _mergeErrors(arrayOfErrors) {\r\n    var /** @type {?} */ res = arrayOfErrors.reduce(function (res, errors) {\r\n        return errors != null ? __assign({}, /** @type {?} */ ((res)), errors) : ((res));\r\n    }, {});\r\n    return Object.keys(res).length === 0 ? null : res;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Used to provide a {\\@link ControlValueAccessor} for form controls.\r\n *\r\n * See {\\@link DefaultValueAccessor} for how to implement one.\r\n * \\@stable\r\n */\r\nvar NG_VALUE_ACCESSOR = new InjectionToken('NgValueAccessor');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar CHECKBOX_VALUE_ACCESSOR = {\r\n    provide: NG_VALUE_ACCESSOR,\r\n    useExisting: forwardRef(function () { return CheckboxControlValueAccessor; }),\r\n    multi: true,\r\n};\r\n/**\r\n * The accessor for writing a value and listening to changes on a checkbox input element.\r\n *\r\n *  ### Example\r\n *  ```\r\n *  <input type=\"checkbox\" name=\"rememberLogin\" ngModel>\r\n *  ```\r\n *\r\n *  \\@stable\r\n */\r\nvar CheckboxControlValueAccessor = (function () {\r\n    /**\r\n     * @param {?} _renderer\r\n     * @param {?} _elementRef\r\n     */\r\n    function CheckboxControlValueAccessor(_renderer, _elementRef) {\r\n        this._renderer = _renderer;\r\n        this._elementRef = _elementRef;\r\n        this.onChange = function (_) { };\r\n        this.onTouched = function () { };\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    CheckboxControlValueAccessor.prototype.writeValue = function (value) {\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', value);\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    CheckboxControlValueAccessor.prototype.registerOnChange = function (fn) { this.onChange = fn; };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    CheckboxControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n    /**\r\n     * @param {?} isDisabled\r\n     * @return {?}\r\n     */\r\n    CheckboxControlValueAccessor.prototype.setDisabledState = function (isDisabled) {\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\r\n    };\r\n    return CheckboxControlValueAccessor;\r\n}());\r\nCheckboxControlValueAccessor.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',\r\n                host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },\r\n                providers: [CHECKBOX_VALUE_ACCESSOR]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nCheckboxControlValueAccessor.ctorParameters = function () { return [\r\n    { type: Renderer, },\r\n    { type: ElementRef, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar DEFAULT_VALUE_ACCESSOR = {\r\n    provide: NG_VALUE_ACCESSOR,\r\n    useExisting: forwardRef(function () { return DefaultValueAccessor; }),\r\n    multi: true\r\n};\r\n/**\r\n * We must check whether the agent is Android because composition events\r\n * behave differently between iOS and Android.\r\n * @return {?}\r\n */\r\nfunction _isAndroid() {\r\n    var /** @type {?} */ userAgent = ɵgetDOM() ? ɵgetDOM().getUserAgent() : '';\r\n    return /android (\\d+)/.test(userAgent.toLowerCase());\r\n}\r\n/**\r\n * Turn this mode on if you want form directives to buffer IME input until compositionend\r\n * \\@experimental\r\n */\r\nvar COMPOSITION_BUFFER_MODE = new InjectionToken('CompositionEventMode');\r\n/**\r\n * The default accessor for writing a value and listening to changes that is used by the\r\n * {\\@link NgModel}, {\\@link FormControlDirective}, and {\\@link FormControlName} directives.\r\n *\r\n *  ### Example\r\n *  ```\r\n *  <input type=\"text\" name=\"searchQuery\" ngModel>\r\n *  ```\r\n *\r\n *  \\@stable\r\n */\r\nvar DefaultValueAccessor = (function () {\r\n    /**\r\n     * @param {?} _renderer\r\n     * @param {?} _elementRef\r\n     * @param {?} _compositionMode\r\n     */\r\n    function DefaultValueAccessor(_renderer, _elementRef, _compositionMode) {\r\n        this._renderer = _renderer;\r\n        this._elementRef = _elementRef;\r\n        this._compositionMode = _compositionMode;\r\n        this.onChange = function (_) { };\r\n        this.onTouched = function () { };\r\n        this._composing = false;\r\n        if (this._compositionMode == null) {\r\n            this._compositionMode = !_isAndroid();\r\n        }\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DefaultValueAccessor.prototype.writeValue = function (value) {\r\n        var /** @type {?} */ normalizedValue = value == null ? '' : value;\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', normalizedValue);\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultValueAccessor.prototype.registerOnChange = function (fn) { this.onChange = fn; };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    DefaultValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n    /**\r\n     * @param {?} isDisabled\r\n     * @return {?}\r\n     */\r\n    DefaultValueAccessor.prototype.setDisabledState = function (isDisabled) {\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DefaultValueAccessor.prototype._handleInput = function (value) {\r\n        if (!this._compositionMode || (this._compositionMode && !this._composing)) {\r\n            this.onChange(value);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DefaultValueAccessor.prototype._compositionStart = function () { this._composing = true; };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DefaultValueAccessor.prototype._compositionEnd = function (value) {\r\n        this._composing = false;\r\n        this._compositionMode && this.onChange(value);\r\n    };\r\n    return DefaultValueAccessor;\r\n}());\r\nDefaultValueAccessor.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',\r\n                // TODO: vsavkin replace the above selector with the one below it once\r\n                // https://github.com/angular/angular/issues/3011 is implemented\r\n                // selector: '[ngModel],[formControl],[formControlName]',\r\n                host: {\r\n                    '(input)': '_handleInput($event.target.value)',\r\n                    '(blur)': 'onTouched()',\r\n                    '(compositionstart)': '_compositionStart()',\r\n                    '(compositionend)': '_compositionEnd($event.target.value)'\r\n                },\r\n                providers: [DEFAULT_VALUE_ACCESSOR]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nDefaultValueAccessor.ctorParameters = function () { return [\r\n    { type: Renderer, },\r\n    { type: ElementRef, },\r\n    { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [COMPOSITION_BUFFER_MODE,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} validator\r\n * @return {?}\r\n */\r\nfunction normalizeValidator(validator) {\r\n    if (((validator)).validate) {\r\n        return function (c) { return ((validator)).validate(c); };\r\n    }\r\n    else {\r\n        return (validator);\r\n    }\r\n}\r\n/**\r\n * @param {?} validator\r\n * @return {?}\r\n */\r\nfunction normalizeAsyncValidator(validator) {\r\n    if (((validator)).validate) {\r\n        return function (c) { return ((validator)).validate(c); };\r\n    }\r\n    else {\r\n        return (validator);\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar NUMBER_VALUE_ACCESSOR = {\r\n    provide: NG_VALUE_ACCESSOR,\r\n    useExisting: forwardRef(function () { return NumberValueAccessor; }),\r\n    multi: true\r\n};\r\n/**\r\n * The accessor for writing a number value and listening to changes that is used by the\r\n * {\\@link NgModel}, {\\@link FormControlDirective}, and {\\@link FormControlName} directives.\r\n *\r\n *  ### Example\r\n *  ```\r\n *  <input type=\"number\" [(ngModel)]=\"age\">\r\n *  ```\r\n */\r\nvar NumberValueAccessor = (function () {\r\n    /**\r\n     * @param {?} _renderer\r\n     * @param {?} _elementRef\r\n     */\r\n    function NumberValueAccessor(_renderer, _elementRef) {\r\n        this._renderer = _renderer;\r\n        this._elementRef = _elementRef;\r\n        this.onChange = function (_) { };\r\n        this.onTouched = function () { };\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    NumberValueAccessor.prototype.writeValue = function (value) {\r\n        // The value needs to be normalized for IE9, otherwise it is set to 'null' when null\r\n        var /** @type {?} */ normalizedValue = value == null ? '' : value;\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', normalizedValue);\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    NumberValueAccessor.prototype.registerOnChange = function (fn) {\r\n        this.onChange = function (value) { fn(value == '' ? null : parseFloat(value)); };\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    NumberValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n    /**\r\n     * @param {?} isDisabled\r\n     * @return {?}\r\n     */\r\n    NumberValueAccessor.prototype.setDisabledState = function (isDisabled) {\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\r\n    };\r\n    return NumberValueAccessor;\r\n}());\r\nNumberValueAccessor.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',\r\n                host: {\r\n                    '(change)': 'onChange($event.target.value)',\r\n                    '(input)': 'onChange($event.target.value)',\r\n                    '(blur)': 'onTouched()'\r\n                },\r\n                providers: [NUMBER_VALUE_ACCESSOR]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNumberValueAccessor.ctorParameters = function () { return [\r\n    { type: Renderer, },\r\n    { type: ElementRef, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @return {?}\r\n */\r\nfunction unimplemented() {\r\n    throw new Error('unimplemented');\r\n}\r\n/**\r\n * A base class that all control directive extend.\r\n * It binds a {\\@link FormControl} object to a DOM element.\r\n *\r\n * Used internally by Angular forms.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar NgControl = (function (_super) {\r\n    __extends(NgControl, _super);\r\n    function NgControl() {\r\n        var _this = _super.apply(this, arguments) || this;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        _this._parent = null;\r\n        _this.name = null;\r\n        _this.valueAccessor = null;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        _this._rawValidators = [];\r\n        /**\r\n         * \\@internal\r\n         */\r\n        _this._rawAsyncValidators = [];\r\n        return _this;\r\n    }\r\n    Object.defineProperty(NgControl.prototype, \"validator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return (unimplemented()); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgControl.prototype, \"asyncValidator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return (unimplemented()); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @abstract\r\n     * @param {?} newValue\r\n     * @return {?}\r\n     */\r\n    NgControl.prototype.viewToModelUpdate = function (newValue) { };\r\n    return NgControl;\r\n}(AbstractControlDirective));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar RADIO_VALUE_ACCESSOR = {\r\n    provide: NG_VALUE_ACCESSOR,\r\n    useExisting: forwardRef(function () { return RadioControlValueAccessor; }),\r\n    multi: true\r\n};\r\n/**\r\n * Internal class used by Angular to uncheck radio buttons with the matching name.\r\n */\r\nvar RadioControlRegistry = (function () {\r\n    function RadioControlRegistry() {\r\n        this._accessors = [];\r\n    }\r\n    /**\r\n     * @param {?} control\r\n     * @param {?} accessor\r\n     * @return {?}\r\n     */\r\n    RadioControlRegistry.prototype.add = function (control, accessor) {\r\n        this._accessors.push([control, accessor]);\r\n    };\r\n    /**\r\n     * @param {?} accessor\r\n     * @return {?}\r\n     */\r\n    RadioControlRegistry.prototype.remove = function (accessor) {\r\n        for (var /** @type {?} */ i = this._accessors.length - 1; i >= 0; --i) {\r\n            if (this._accessors[i][1] === accessor) {\r\n                this._accessors.splice(i, 1);\r\n                return;\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} accessor\r\n     * @return {?}\r\n     */\r\n    RadioControlRegistry.prototype.select = function (accessor) {\r\n        var _this = this;\r\n        this._accessors.forEach(function (c) {\r\n            if (_this._isSameGroup(c, accessor) && c[1] !== accessor) {\r\n                c[1].fireUncheck(accessor.value);\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} controlPair\r\n     * @param {?} accessor\r\n     * @return {?}\r\n     */\r\n    RadioControlRegistry.prototype._isSameGroup = function (controlPair, accessor) {\r\n        if (!controlPair[0].control)\r\n            return false;\r\n        return controlPair[0]._parent === accessor._control._parent &&\r\n            controlPair[1].name === accessor.name;\r\n    };\r\n    return RadioControlRegistry;\r\n}());\r\nRadioControlRegistry.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRadioControlRegistry.ctorParameters = function () { return []; };\r\n/**\r\n * \\@whatItDoes Writes radio control values and listens to radio control changes.\r\n *\r\n * Used by {\\@link NgModel}, {\\@link FormControlDirective}, and {\\@link FormControlName}\r\n * to keep the view synced with the {\\@link FormControl} model.\r\n *\r\n * \\@howToUse\r\n *\r\n * If you have imported the {\\@link FormsModule} or the {\\@link ReactiveFormsModule}, this\r\n * value accessor will be active on any radio control that has a form directive. You do\r\n * **not** need to add a special selector to activate it.\r\n *\r\n * ### How to use radio buttons with form directives\r\n *\r\n * To use radio buttons in a template-driven form, you'll want to ensure that radio buttons\r\n * in the same group have the same `name` attribute.  Radio buttons with different `name`\r\n * attributes do not affect each other.\r\n *\r\n * {\\@example forms/ts/radioButtons/radio_button_example.ts region='TemplateDriven'}\r\n *\r\n * When using radio buttons in a reactive form, radio buttons in the same group should have the\r\n * same `formControlName`. You can also add a `name` attribute, but it's optional.\r\n *\r\n * {\\@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}\r\n *\r\n *  * **npm package**: `\\@angular/forms`\r\n *\r\n *  \\@stable\r\n */\r\nvar RadioControlValueAccessor = (function () {\r\n    /**\r\n     * @param {?} _renderer\r\n     * @param {?} _elementRef\r\n     * @param {?} _registry\r\n     * @param {?} _injector\r\n     */\r\n    function RadioControlValueAccessor(_renderer, _elementRef, _registry, _injector) {\r\n        this._renderer = _renderer;\r\n        this._elementRef = _elementRef;\r\n        this._registry = _registry;\r\n        this._injector = _injector;\r\n        this.onChange = function () { };\r\n        this.onTouched = function () { };\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RadioControlValueAccessor.prototype.ngOnInit = function () {\r\n        this._control = this._injector.get(NgControl);\r\n        this._checkName();\r\n        this._registry.add(this._control, this);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RadioControlValueAccessor.prototype.ngOnDestroy = function () { this._registry.remove(this); };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    RadioControlValueAccessor.prototype.writeValue = function (value) {\r\n        this._state = value === this.value;\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', this._state);\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    RadioControlValueAccessor.prototype.registerOnChange = function (fn) {\r\n        var _this = this;\r\n        this._fn = fn;\r\n        this.onChange = function () {\r\n            fn(_this.value);\r\n            _this._registry.select(_this);\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    RadioControlValueAccessor.prototype.fireUncheck = function (value) { this.writeValue(value); };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    RadioControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n    /**\r\n     * @param {?} isDisabled\r\n     * @return {?}\r\n     */\r\n    RadioControlValueAccessor.prototype.setDisabledState = function (isDisabled) {\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RadioControlValueAccessor.prototype._checkName = function () {\r\n        if (this.name && this.formControlName && this.name !== this.formControlName) {\r\n            this._throwNameError();\r\n        }\r\n        if (!this.name && this.formControlName)\r\n            this.name = this.formControlName;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RadioControlValueAccessor.prototype._throwNameError = function () {\r\n        throw new Error(\"\\n      If you define both a name and a formControlName attribute on your radio button, their values\\n      must match. Ex: <input type=\\\"radio\\\" formControlName=\\\"food\\\" name=\\\"food\\\">\\n    \");\r\n    };\r\n    return RadioControlValueAccessor;\r\n}());\r\nRadioControlValueAccessor.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',\r\n                host: { '(change)': 'onChange()', '(blur)': 'onTouched()' },\r\n                providers: [RADIO_VALUE_ACCESSOR]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRadioControlValueAccessor.ctorParameters = function () { return [\r\n    { type: Renderer, },\r\n    { type: ElementRef, },\r\n    { type: RadioControlRegistry, },\r\n    { type: Injector, },\r\n]; };\r\nRadioControlValueAccessor.propDecorators = {\r\n    'name': [{ type: Input },],\r\n    'formControlName': [{ type: Input },],\r\n    'value': [{ type: Input },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar RANGE_VALUE_ACCESSOR = {\r\n    provide: NG_VALUE_ACCESSOR,\r\n    useExisting: forwardRef(function () { return RangeValueAccessor; }),\r\n    multi: true\r\n};\r\n/**\r\n * The accessor for writing a range value and listening to changes that is used by the\r\n * {\\@link NgModel}, {\\@link FormControlDirective}, and {\\@link FormControlName} directives.\r\n *\r\n *  ### Example\r\n *  ```\r\n *  <input type=\"range\" [(ngModel)]=\"age\" >\r\n *  ```\r\n */\r\nvar RangeValueAccessor = (function () {\r\n    /**\r\n     * @param {?} _renderer\r\n     * @param {?} _elementRef\r\n     */\r\n    function RangeValueAccessor(_renderer, _elementRef) {\r\n        this._renderer = _renderer;\r\n        this._elementRef = _elementRef;\r\n        this.onChange = function (_) { };\r\n        this.onTouched = function () { };\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    RangeValueAccessor.prototype.writeValue = function (value) {\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', parseFloat(value));\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    RangeValueAccessor.prototype.registerOnChange = function (fn) {\r\n        this.onChange = function (value) { fn(value == '' ? null : parseFloat(value)); };\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    RangeValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n    /**\r\n     * @param {?} isDisabled\r\n     * @return {?}\r\n     */\r\n    RangeValueAccessor.prototype.setDisabledState = function (isDisabled) {\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\r\n    };\r\n    return RangeValueAccessor;\r\n}());\r\nRangeValueAccessor.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',\r\n                host: {\r\n                    '(change)': 'onChange($event.target.value)',\r\n                    '(input)': 'onChange($event.target.value)',\r\n                    '(blur)': 'onTouched()'\r\n                },\r\n                providers: [RANGE_VALUE_ACCESSOR]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRangeValueAccessor.ctorParameters = function () { return [\r\n    { type: Renderer, },\r\n    { type: ElementRef, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar SELECT_VALUE_ACCESSOR = {\r\n    provide: NG_VALUE_ACCESSOR,\r\n    useExisting: forwardRef(function () { return SelectControlValueAccessor; }),\r\n    multi: true\r\n};\r\n/**\r\n * @param {?} id\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction _buildValueString(id, value) {\r\n    if (id == null)\r\n        return \"\" + value;\r\n    if (value && typeof value === 'object')\r\n        value = 'Object';\r\n    return (id + \": \" + value).slice(0, 50);\r\n}\r\n/**\r\n * @param {?} valueString\r\n * @return {?}\r\n */\r\nfunction _extractId(valueString) {\r\n    return valueString.split(':')[0];\r\n}\r\n/**\r\n * \\@whatItDoes Writes values and listens to changes on a select element.\r\n *\r\n * Used by {\\@link NgModel}, {\\@link FormControlDirective}, and {\\@link FormControlName}\r\n * to keep the view synced with the {\\@link FormControl} model.\r\n *\r\n * \\@howToUse\r\n *\r\n * If you have imported the {\\@link FormsModule} or the {\\@link ReactiveFormsModule}, this\r\n * value accessor will be active on any select control that has a form directive. You do\r\n * **not** need to add a special selector to activate it.\r\n *\r\n * ### How to use select controls with form directives\r\n *\r\n * To use a select in a template-driven form, simply add an `ngModel` and a `name`\r\n * attribute to the main `<select>` tag.\r\n *\r\n * If your option values are simple strings, you can bind to the normal `value` property\r\n * on the option.  If your option values happen to be objects (and you'd like to save the\r\n * selection in your form as an object), use `ngValue` instead:\r\n *\r\n * {\\@example forms/ts/selectControl/select_control_example.ts region='Component'}\r\n *\r\n * In reactive forms, you'll also want to add your form directive (`formControlName` or\r\n * `formControl`) on the main `<select>` tag. Like in the former example, you have the\r\n * choice of binding to the  `value` or `ngValue` property on the select's options.\r\n *\r\n * {\\@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}\r\n *\r\n * ### Caveat: Option selection\r\n *\r\n * Angular uses object identity to select option. It's possible for the identities of items\r\n * to change while the data does not. This can happen, for example, if the items are produced\r\n * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the\r\n * second response will produce objects with different identities.\r\n *\r\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\r\n * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.\r\n * If `compareWith` is given, Angular selects option by the return value of the function.\r\n *\r\n * #### Syntax\r\n *\r\n * ```\r\n * <select [compareWith]=\"compareFn\"  [(ngModel)]=\"selectedCountries\">\r\n *     <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\r\n *         {{country.name}}\r\n *     </option>\r\n * </select>\r\n *\r\n * compareFn(c1: Country, c2: Country): boolean {\r\n *     return c1 && c2 ? c1.id === c2.id : c1 === c2;\r\n * }\r\n * ```\r\n *\r\n * Note: We listen to the 'change' event because 'input' events aren't fired\r\n * for selects in Firefox and IE:\r\n * https://bugzilla.mozilla.org/show_bug.cgi?id=1024350\r\n * https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4660045/\r\n *\r\n * * **npm package**: `\\@angular/forms`\r\n *\r\n * \\@stable\r\n */\r\nvar SelectControlValueAccessor = (function () {\r\n    /**\r\n     * @param {?} _renderer\r\n     * @param {?} _elementRef\r\n     */\r\n    function SelectControlValueAccessor(_renderer, _elementRef) {\r\n        this._renderer = _renderer;\r\n        this._elementRef = _elementRef;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._optionMap = new Map();\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._idCounter = 0;\r\n        this.onChange = function (_) { };\r\n        this.onTouched = function () { };\r\n        this._compareWith = ɵlooseIdentical;\r\n    }\r\n    Object.defineProperty(SelectControlValueAccessor.prototype, \"compareWith\", {\r\n        /**\r\n         * @param {?} fn\r\n         * @return {?}\r\n         */\r\n        set: function (fn) {\r\n            if (typeof fn !== 'function') {\r\n                throw new Error(\"compareWith must be a function, but received \" + JSON.stringify(fn));\r\n            }\r\n            this._compareWith = fn;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    SelectControlValueAccessor.prototype.writeValue = function (value) {\r\n        this.value = value;\r\n        var /** @type {?} */ id = this._getOptionId(value);\r\n        if (id == null) {\r\n            this._renderer.setElementProperty(this._elementRef.nativeElement, 'selectedIndex', -1);\r\n        }\r\n        var /** @type {?} */ valueString = _buildValueString(id, value);\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', valueString);\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    SelectControlValueAccessor.prototype.registerOnChange = function (fn) {\r\n        var _this = this;\r\n        this.onChange = function (valueString) {\r\n            _this.value = valueString;\r\n            fn(_this._getOptionValue(valueString));\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    SelectControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n    /**\r\n     * @param {?} isDisabled\r\n     * @return {?}\r\n     */\r\n    SelectControlValueAccessor.prototype.setDisabledState = function (isDisabled) {\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    SelectControlValueAccessor.prototype._registerOption = function () { return (this._idCounter++).toString(); };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    SelectControlValueAccessor.prototype._getOptionId = function (value) {\r\n        for (var _i = 0, _a = Array.from(this._optionMap.keys()); _i < _a.length; _i++) {\r\n            var id = _a[_i];\r\n            if (this._compareWith(this._optionMap.get(id), value))\r\n                return id;\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} valueString\r\n     * @return {?}\r\n     */\r\n    SelectControlValueAccessor.prototype._getOptionValue = function (valueString) {\r\n        var /** @type {?} */ id = _extractId(valueString);\r\n        return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;\r\n    };\r\n    return SelectControlValueAccessor;\r\n}());\r\nSelectControlValueAccessor.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',\r\n                host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\r\n                providers: [SELECT_VALUE_ACCESSOR]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nSelectControlValueAccessor.ctorParameters = function () { return [\r\n    { type: Renderer, },\r\n    { type: ElementRef, },\r\n]; };\r\nSelectControlValueAccessor.propDecorators = {\r\n    'compareWith': [{ type: Input },],\r\n};\r\n/**\r\n * \\@whatItDoes Marks `<option>` as dynamic, so Angular can be notified when options change.\r\n *\r\n * \\@howToUse\r\n *\r\n * See docs for {\\@link SelectControlValueAccessor} for usage examples.\r\n *\r\n * \\@stable\r\n */\r\nvar NgSelectOption = (function () {\r\n    /**\r\n     * @param {?} _element\r\n     * @param {?} _renderer\r\n     * @param {?} _select\r\n     */\r\n    function NgSelectOption(_element, _renderer, _select) {\r\n        this._element = _element;\r\n        this._renderer = _renderer;\r\n        this._select = _select;\r\n        if (this._select)\r\n            this.id = this._select._registerOption();\r\n    }\r\n    Object.defineProperty(NgSelectOption.prototype, \"ngValue\", {\r\n        /**\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) {\r\n            if (this._select == null)\r\n                return;\r\n            this._select._optionMap.set(this.id, value);\r\n            this._setElementValue(_buildValueString(this.id, value));\r\n            this._select.writeValue(this._select.value);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgSelectOption.prototype, \"value\", {\r\n        /**\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) {\r\n            this._setElementValue(value);\r\n            if (this._select)\r\n                this._select.writeValue(this._select.value);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * \\@internal\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    NgSelectOption.prototype._setElementValue = function (value) {\r\n        this._renderer.setElementProperty(this._element.nativeElement, 'value', value);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgSelectOption.prototype.ngOnDestroy = function () {\r\n        if (this._select) {\r\n            this._select._optionMap.delete(this.id);\r\n            this._select.writeValue(this._select.value);\r\n        }\r\n    };\r\n    return NgSelectOption;\r\n}());\r\nNgSelectOption.decorators = [\r\n    { type: Directive, args: [{ selector: 'option' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgSelectOption.ctorParameters = function () { return [\r\n    { type: ElementRef, },\r\n    { type: Renderer, },\r\n    { type: SelectControlValueAccessor, decorators: [{ type: Optional }, { type: Host },] },\r\n]; };\r\nNgSelectOption.propDecorators = {\r\n    'ngValue': [{ type: Input, args: ['ngValue',] },],\r\n    'value': [{ type: Input, args: ['value',] },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar SELECT_MULTIPLE_VALUE_ACCESSOR = {\r\n    provide: NG_VALUE_ACCESSOR,\r\n    useExisting: forwardRef(function () { return SelectMultipleControlValueAccessor; }),\r\n    multi: true\r\n};\r\n/**\r\n * @param {?} id\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction _buildValueString$1(id, value) {\r\n    if (id == null)\r\n        return \"\" + value;\r\n    if (typeof value === 'string')\r\n        value = \"'\" + value + \"'\";\r\n    if (value && typeof value === 'object')\r\n        value = 'Object';\r\n    return (id + \": \" + value).slice(0, 50);\r\n}\r\n/**\r\n * @param {?} valueString\r\n * @return {?}\r\n */\r\nfunction _extractId$1(valueString) {\r\n    return valueString.split(':')[0];\r\n}\r\n/**\r\n * The accessor for writing a value and listening to changes on a select element.\r\n *\r\n *  ### Caveat: Options selection\r\n *\r\n * Angular uses object identity to select options. It's possible for the identities of items\r\n * to change while the data does not. This can happen, for example, if the items are produced\r\n * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the\r\n * second response will produce objects with different identities.\r\n *\r\n * To customize the default option comparison algorithm, `<select multiple>` supports `compareWith`\r\n * input. `compareWith` takes a **function** which has two arguments: `option1` and `option2`.\r\n * If `compareWith` is given, Angular selects options by the return value of the function.\r\n *\r\n * #### Syntax\r\n *\r\n * ```\r\n * <select multiple [compareWith]=\"compareFn\"  [(ngModel)]=\"selectedCountries\">\r\n *     <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\r\n *         {{country.name}}\r\n *     </option>\r\n * </select>\r\n *\r\n * compareFn(c1: Country, c2: Country): boolean {\r\n *     return c1 && c2 ? c1.id === c2.id : c1 === c2;\r\n * }\r\n * ```\r\n *\r\n * \\@stable\r\n */\r\nvar SelectMultipleControlValueAccessor = (function () {\r\n    /**\r\n     * @param {?} _renderer\r\n     * @param {?} _elementRef\r\n     */\r\n    function SelectMultipleControlValueAccessor(_renderer, _elementRef) {\r\n        this._renderer = _renderer;\r\n        this._elementRef = _elementRef;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._optionMap = new Map();\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._idCounter = 0;\r\n        this.onChange = function (_) { };\r\n        this.onTouched = function () { };\r\n        this._compareWith = ɵlooseIdentical;\r\n    }\r\n    Object.defineProperty(SelectMultipleControlValueAccessor.prototype, \"compareWith\", {\r\n        /**\r\n         * @param {?} fn\r\n         * @return {?}\r\n         */\r\n        set: function (fn) {\r\n            if (typeof fn !== 'function') {\r\n                throw new Error(\"compareWith must be a function, but received \" + JSON.stringify(fn));\r\n            }\r\n            this._compareWith = fn;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    SelectMultipleControlValueAccessor.prototype.writeValue = function (value) {\r\n        var _this = this;\r\n        this.value = value;\r\n        var /** @type {?} */ optionSelectedStateSetter;\r\n        if (Array.isArray(value)) {\r\n            // convert values to ids\r\n            var /** @type {?} */ ids_1 = value.map(function (v) { return _this._getOptionId(v); });\r\n            optionSelectedStateSetter = function (opt, o) { opt._setSelected(ids_1.indexOf(o.toString()) > -1); };\r\n        }\r\n        else {\r\n            optionSelectedStateSetter = function (opt, o) { opt._setSelected(false); };\r\n        }\r\n        this._optionMap.forEach(optionSelectedStateSetter);\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    SelectMultipleControlValueAccessor.prototype.registerOnChange = function (fn) {\r\n        var _this = this;\r\n        this.onChange = function (_) {\r\n            var /** @type {?} */ selected = [];\r\n            if (_.hasOwnProperty('selectedOptions')) {\r\n                var /** @type {?} */ options = _.selectedOptions;\r\n                for (var /** @type {?} */ i = 0; i < options.length; i++) {\r\n                    var /** @type {?} */ opt = options.item(i);\r\n                    var /** @type {?} */ val = _this._getOptionValue(opt.value);\r\n                    selected.push(val);\r\n                }\r\n            }\r\n            else {\r\n                var /** @type {?} */ options = (_.options);\r\n                for (var /** @type {?} */ i = 0; i < options.length; i++) {\r\n                    var /** @type {?} */ opt = options.item(i);\r\n                    if (opt.selected) {\r\n                        var /** @type {?} */ val = _this._getOptionValue(opt.value);\r\n                        selected.push(val);\r\n                    }\r\n                }\r\n            }\r\n            _this.value = selected;\r\n            fn(selected);\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    SelectMultipleControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n    /**\r\n     * @param {?} isDisabled\r\n     * @return {?}\r\n     */\r\n    SelectMultipleControlValueAccessor.prototype.setDisabledState = function (isDisabled) {\r\n        this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    SelectMultipleControlValueAccessor.prototype._registerOption = function (value) {\r\n        var /** @type {?} */ id = (this._idCounter++).toString();\r\n        this._optionMap.set(id, value);\r\n        return id;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    SelectMultipleControlValueAccessor.prototype._getOptionId = function (value) {\r\n        for (var _i = 0, _a = Array.from(this._optionMap.keys()); _i < _a.length; _i++) {\r\n            var id = _a[_i];\r\n            if (this._compareWith(/** @type {?} */ ((this._optionMap.get(id)))._value, value))\r\n                return id;\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} valueString\r\n     * @return {?}\r\n     */\r\n    SelectMultipleControlValueAccessor.prototype._getOptionValue = function (valueString) {\r\n        var /** @type {?} */ id = _extractId$1(valueString);\r\n        return this._optionMap.has(id) ? ((this._optionMap.get(id)))._value : valueString;\r\n    };\r\n    return SelectMultipleControlValueAccessor;\r\n}());\r\nSelectMultipleControlValueAccessor.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',\r\n                host: { '(change)': 'onChange($event.target)', '(blur)': 'onTouched()' },\r\n                providers: [SELECT_MULTIPLE_VALUE_ACCESSOR]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nSelectMultipleControlValueAccessor.ctorParameters = function () { return [\r\n    { type: Renderer, },\r\n    { type: ElementRef, },\r\n]; };\r\nSelectMultipleControlValueAccessor.propDecorators = {\r\n    'compareWith': [{ type: Input },],\r\n};\r\n/**\r\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * <select multiple name=\"city\" ngModel>\r\n *   <option *ngFor=\"let c of cities\" [value]=\"c\"></option>\r\n * </select>\r\n * ```\r\n */\r\nvar NgSelectMultipleOption = (function () {\r\n    /**\r\n     * @param {?} _element\r\n     * @param {?} _renderer\r\n     * @param {?} _select\r\n     */\r\n    function NgSelectMultipleOption(_element, _renderer, _select) {\r\n        this._element = _element;\r\n        this._renderer = _renderer;\r\n        this._select = _select;\r\n        if (this._select) {\r\n            this.id = this._select._registerOption(this);\r\n        }\r\n    }\r\n    Object.defineProperty(NgSelectMultipleOption.prototype, \"ngValue\", {\r\n        /**\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) {\r\n            if (this._select == null)\r\n                return;\r\n            this._value = value;\r\n            this._setElementValue(_buildValueString$1(this.id, value));\r\n            this._select.writeValue(this._select.value);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgSelectMultipleOption.prototype, \"value\", {\r\n        /**\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) {\r\n            if (this._select) {\r\n                this._value = value;\r\n                this._setElementValue(_buildValueString$1(this.id, value));\r\n                this._select.writeValue(this._select.value);\r\n            }\r\n            else {\r\n                this._setElementValue(value);\r\n            }\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * \\@internal\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    NgSelectMultipleOption.prototype._setElementValue = function (value) {\r\n        this._renderer.setElementProperty(this._element.nativeElement, 'value', value);\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} selected\r\n     * @return {?}\r\n     */\r\n    NgSelectMultipleOption.prototype._setSelected = function (selected) {\r\n        this._renderer.setElementProperty(this._element.nativeElement, 'selected', selected);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgSelectMultipleOption.prototype.ngOnDestroy = function () {\r\n        if (this._select) {\r\n            this._select._optionMap.delete(this.id);\r\n            this._select.writeValue(this._select.value);\r\n        }\r\n    };\r\n    return NgSelectMultipleOption;\r\n}());\r\nNgSelectMultipleOption.decorators = [\r\n    { type: Directive, args: [{ selector: 'option' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgSelectMultipleOption.ctorParameters = function () { return [\r\n    { type: ElementRef, },\r\n    { type: Renderer, },\r\n    { type: SelectMultipleControlValueAccessor, decorators: [{ type: Optional }, { type: Host },] },\r\n]; };\r\nNgSelectMultipleOption.propDecorators = {\r\n    'ngValue': [{ type: Input, args: ['ngValue',] },],\r\n    'value': [{ type: Input, args: ['value',] },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} name\r\n * @param {?} parent\r\n * @return {?}\r\n */\r\nfunction controlPath(name, parent) {\r\n    return ((parent.path)).concat([name]);\r\n}\r\n/**\r\n * @param {?} control\r\n * @param {?} dir\r\n * @return {?}\r\n */\r\nfunction setUpControl(control, dir) {\r\n    if (!control)\r\n        _throwError(dir, 'Cannot find control with');\r\n    if (!dir.valueAccessor)\r\n        _throwError(dir, 'No value accessor for form control with');\r\n    control.validator = Validators.compose([/** @type {?} */ ((control.validator)), dir.validator]);\r\n    control.asyncValidator = Validators.composeAsync([/** @type {?} */ ((control.asyncValidator)), dir.asyncValidator]); /** @type {?} */\r\n    ((dir.valueAccessor)).writeValue(control.value); /** @type {?} */\r\n    ((\r\n    // view -> model\r\n    dir.valueAccessor)).registerOnChange(function (newValue) {\r\n        dir.viewToModelUpdate(newValue);\r\n        control.markAsDirty();\r\n        control.setValue(newValue, { emitModelToViewChange: false });\r\n    }); /** @type {?} */\r\n    ((\r\n    // touched\r\n    dir.valueAccessor)).registerOnTouched(function () { return control.markAsTouched(); });\r\n    control.registerOnChange(function (newValue, emitModelEvent) {\r\n        ((\r\n        // control -> view\r\n        dir.valueAccessor)).writeValue(newValue);\r\n        // control -> ngModel\r\n        if (emitModelEvent)\r\n            dir.viewToModelUpdate(newValue);\r\n    });\r\n    if (((dir.valueAccessor)).setDisabledState) {\r\n        control.registerOnDisabledChange(function (isDisabled) { /** @type {?} */ ((((dir.valueAccessor)).setDisabledState))(isDisabled); });\r\n    }\r\n    // re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4\r\n    dir._rawValidators.forEach(function (validator) {\r\n        if (((validator)).registerOnValidatorChange)\r\n            ((((validator)).registerOnValidatorChange))(function () { return control.updateValueAndValidity(); });\r\n    });\r\n    dir._rawAsyncValidators.forEach(function (validator) {\r\n        if (((validator)).registerOnValidatorChange)\r\n            ((((validator)).registerOnValidatorChange))(function () { return control.updateValueAndValidity(); });\r\n    });\r\n}\r\n/**\r\n * @param {?} control\r\n * @param {?} dir\r\n * @return {?}\r\n */\r\nfunction cleanUpControl(control, dir) {\r\n    ((dir.valueAccessor)).registerOnChange(function () { return _noControlError(dir); }); /** @type {?} */\r\n    ((dir.valueAccessor)).registerOnTouched(function () { return _noControlError(dir); });\r\n    dir._rawValidators.forEach(function (validator) {\r\n        if (validator.registerOnValidatorChange) {\r\n            validator.registerOnValidatorChange(null);\r\n        }\r\n    });\r\n    dir._rawAsyncValidators.forEach(function (validator) {\r\n        if (validator.registerOnValidatorChange) {\r\n            validator.registerOnValidatorChange(null);\r\n        }\r\n    });\r\n    if (control)\r\n        control._clearChangeFns();\r\n}\r\n/**\r\n * @param {?} control\r\n * @param {?} dir\r\n * @return {?}\r\n */\r\nfunction setUpFormContainer(control, dir) {\r\n    if (control == null)\r\n        _throwError(dir, 'Cannot find control with');\r\n    control.validator = Validators.compose([control.validator, dir.validator]);\r\n    control.asyncValidator = Validators.composeAsync([control.asyncValidator, dir.asyncValidator]);\r\n}\r\n/**\r\n * @param {?} dir\r\n * @return {?}\r\n */\r\nfunction _noControlError(dir) {\r\n    return _throwError(dir, 'There is no FormControl instance attached to form control element with');\r\n}\r\n/**\r\n * @param {?} dir\r\n * @param {?} message\r\n * @return {?}\r\n */\r\nfunction _throwError(dir, message) {\r\n    var /** @type {?} */ messageEnd;\r\n    if (((dir.path)).length > 1) {\r\n        messageEnd = \"path: '\" + ((dir.path)).join(' -> ') + \"'\";\r\n    }\r\n    else if (((dir.path))[0]) {\r\n        messageEnd = \"name: '\" + dir.path + \"'\";\r\n    }\r\n    else {\r\n        messageEnd = 'unspecified name attribute';\r\n    }\r\n    throw new Error(message + \" \" + messageEnd);\r\n}\r\n/**\r\n * @param {?} validators\r\n * @return {?}\r\n */\r\nfunction composeValidators(validators) {\r\n    return validators != null ? Validators.compose(validators.map(normalizeValidator)) : null;\r\n}\r\n/**\r\n * @param {?} validators\r\n * @return {?}\r\n */\r\nfunction composeAsyncValidators(validators) {\r\n    return validators != null ? Validators.composeAsync(validators.map(normalizeAsyncValidator)) :\r\n        null;\r\n}\r\n/**\r\n * @param {?} changes\r\n * @param {?} viewModel\r\n * @return {?}\r\n */\r\nfunction isPropertyUpdated(changes, viewModel) {\r\n    if (!changes.hasOwnProperty('model'))\r\n        return false;\r\n    var /** @type {?} */ change = changes['model'];\r\n    if (change.isFirstChange())\r\n        return true;\r\n    return !ɵlooseIdentical(viewModel, change.currentValue);\r\n}\r\nvar BUILTIN_ACCESSORS = [\r\n    CheckboxControlValueAccessor,\r\n    RangeValueAccessor,\r\n    NumberValueAccessor,\r\n    SelectControlValueAccessor,\r\n    SelectMultipleControlValueAccessor,\r\n    RadioControlValueAccessor,\r\n];\r\n/**\r\n * @param {?} valueAccessor\r\n * @return {?}\r\n */\r\nfunction isBuiltInAccessor(valueAccessor) {\r\n    return BUILTIN_ACCESSORS.some(function (a) { return valueAccessor.constructor === a; });\r\n}\r\n/**\r\n * @param {?} dir\r\n * @param {?} valueAccessors\r\n * @return {?}\r\n */\r\nfunction selectValueAccessor(dir, valueAccessors) {\r\n    if (!valueAccessors)\r\n        return null;\r\n    var /** @type {?} */ defaultAccessor = undefined;\r\n    var /** @type {?} */ builtinAccessor = undefined;\r\n    var /** @type {?} */ customAccessor = undefined;\r\n    valueAccessors.forEach(function (v) {\r\n        if (v.constructor === DefaultValueAccessor) {\r\n            defaultAccessor = v;\r\n        }\r\n        else if (isBuiltInAccessor(v)) {\r\n            if (builtinAccessor)\r\n                _throwError(dir, 'More than one built-in value accessor matches form control with');\r\n            builtinAccessor = v;\r\n        }\r\n        else {\r\n            if (customAccessor)\r\n                _throwError(dir, 'More than one custom value accessor matches form control with');\r\n            customAccessor = v;\r\n        }\r\n    });\r\n    if (customAccessor)\r\n        return customAccessor;\r\n    if (builtinAccessor)\r\n        return builtinAccessor;\r\n    if (defaultAccessor)\r\n        return defaultAccessor;\r\n    _throwError(dir, 'No valid value accessor for form control with');\r\n    return null;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * This is a base class for code shared between {\\@link NgModelGroup} and {\\@link FormGroupName}.\r\n *\r\n * \\@stable\r\n */\r\nvar AbstractFormGroupDirective = (function (_super) {\r\n    __extends(AbstractFormGroupDirective, _super);\r\n    function AbstractFormGroupDirective() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    AbstractFormGroupDirective.prototype.ngOnInit = function () {\r\n        this._checkParentType(); /** @type {?} */\r\n        ((this.formDirective)).addFormGroup(this);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    AbstractFormGroupDirective.prototype.ngOnDestroy = function () {\r\n        if (this.formDirective) {\r\n            this.formDirective.removeFormGroup(this);\r\n        }\r\n    };\r\n    Object.defineProperty(AbstractFormGroupDirective.prototype, \"control\", {\r\n        /**\r\n         * Get the {\\@link FormGroup} backing this binding.\r\n         * @return {?}\r\n         */\r\n        get: function () { return ((this.formDirective)).getFormGroup(this); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractFormGroupDirective.prototype, \"path\", {\r\n        /**\r\n         * Get the path to this control group.\r\n         * @return {?}\r\n         */\r\n        get: function () { return controlPath(this.name, this._parent); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractFormGroupDirective.prototype, \"formDirective\", {\r\n        /**\r\n         * Get the {\\@link Form} to which this group belongs.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._parent ? this._parent.formDirective : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractFormGroupDirective.prototype, \"validator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return composeValidators(this._validators); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractFormGroupDirective.prototype, \"asyncValidator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return composeAsyncValidators(this._asyncValidators);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    AbstractFormGroupDirective.prototype._checkParentType = function () { };\r\n    return AbstractFormGroupDirective;\r\n}(ControlContainer));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar AbstractControlStatus = (function () {\r\n    /**\r\n     * @param {?} cd\r\n     */\r\n    function AbstractControlStatus(cd) {\r\n        this._cd = cd;\r\n    }\r\n    Object.defineProperty(AbstractControlStatus.prototype, \"ngClassUntouched\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._cd.control ? this._cd.control.untouched : false; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlStatus.prototype, \"ngClassTouched\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._cd.control ? this._cd.control.touched : false; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlStatus.prototype, \"ngClassPristine\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._cd.control ? this._cd.control.pristine : false; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlStatus.prototype, \"ngClassDirty\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._cd.control ? this._cd.control.dirty : false; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlStatus.prototype, \"ngClassValid\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._cd.control ? this._cd.control.valid : false; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlStatus.prototype, \"ngClassInvalid\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._cd.control ? this._cd.control.invalid : false; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControlStatus.prototype, \"ngClassPending\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._cd.control ? this._cd.control.pending : false; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return AbstractControlStatus;\r\n}());\r\nvar ngControlStatusHost = {\r\n    '[class.ng-untouched]': 'ngClassUntouched',\r\n    '[class.ng-touched]': 'ngClassTouched',\r\n    '[class.ng-pristine]': 'ngClassPristine',\r\n    '[class.ng-dirty]': 'ngClassDirty',\r\n    '[class.ng-valid]': 'ngClassValid',\r\n    '[class.ng-invalid]': 'ngClassInvalid',\r\n    '[class.ng-pending]': 'ngClassPending',\r\n};\r\n/**\r\n * Directive automatically applied to Angular form controls that sets CSS classes\r\n * based on control status (valid/invalid/dirty/etc).\r\n *\r\n * \\@stable\r\n */\r\nvar NgControlStatus = (function (_super) {\r\n    __extends(NgControlStatus, _super);\r\n    /**\r\n     * @param {?} cd\r\n     */\r\n    function NgControlStatus(cd) {\r\n        return _super.call(this, cd) || this;\r\n    }\r\n    return NgControlStatus;\r\n}(AbstractControlStatus));\r\nNgControlStatus.decorators = [\r\n    { type: Directive, args: [{ selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgControlStatus.ctorParameters = function () { return [\r\n    { type: NgControl, decorators: [{ type: Self },] },\r\n]; };\r\n/**\r\n * Directive automatically applied to Angular form groups that sets CSS classes\r\n * based on control status (valid/invalid/dirty/etc).\r\n *\r\n * \\@stable\r\n */\r\nvar NgControlStatusGroup = (function (_super) {\r\n    __extends(NgControlStatusGroup, _super);\r\n    /**\r\n     * @param {?} cd\r\n     */\r\n    function NgControlStatusGroup(cd) {\r\n        return _super.call(this, cd) || this;\r\n    }\r\n    return NgControlStatusGroup;\r\n}(AbstractControlStatus));\r\nNgControlStatusGroup.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',\r\n                host: ngControlStatusHost\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgControlStatusGroup.ctorParameters = function () { return [\r\n    { type: ControlContainer, decorators: [{ type: Self },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Indicates that a FormControl is valid, i.e. that no errors exist in the input value.\r\n */\r\nvar VALID = 'VALID';\r\n/**\r\n * Indicates that a FormControl is invalid, i.e. that an error exists in the input value.\r\n */\r\nvar INVALID = 'INVALID';\r\n/**\r\n * Indicates that a FormControl is pending, i.e. that async validation is occurring and\r\n * errors are not yet available for the input value.\r\n */\r\nvar PENDING = 'PENDING';\r\n/**\r\n * Indicates that a FormControl is disabled, i.e. that the control is exempt from ancestor\r\n * calculations of validity or value.\r\n */\r\nvar DISABLED = 'DISABLED';\r\n/**\r\n * @param {?} control\r\n * @param {?} path\r\n * @param {?} delimiter\r\n * @return {?}\r\n */\r\nfunction _find(control, path, delimiter) {\r\n    if (path == null)\r\n        return null;\r\n    if (!(path instanceof Array)) {\r\n        path = ((path)).split(delimiter);\r\n    }\r\n    if (path instanceof Array && (path.length === 0))\r\n        return null;\r\n    return ((path)).reduce(function (v, name) {\r\n        if (v instanceof FormGroup) {\r\n            return v.controls[name] || null;\r\n        }\r\n        if (v instanceof FormArray) {\r\n            return v.at(/** @type {?} */ (name)) || null;\r\n        }\r\n        return null;\r\n    }, control);\r\n}\r\n/**\r\n * @param {?=} validator\r\n * @return {?}\r\n */\r\nfunction coerceToValidator(validator) {\r\n    return Array.isArray(validator) ? composeValidators(validator) : validator || null;\r\n}\r\n/**\r\n * @param {?=} asyncValidator\r\n * @return {?}\r\n */\r\nfunction coerceToAsyncValidator(asyncValidator) {\r\n    return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) :\r\n        asyncValidator || null;\r\n}\r\n/**\r\n * \\@whatItDoes This is the base class for {\\@link FormControl}, {\\@link FormGroup}, and\r\n * {\\@link FormArray}.\r\n *\r\n * It provides some of the shared behavior that all controls and groups of controls have, like\r\n * running validators, calculating status, and resetting state. It also defines the properties\r\n * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be\r\n * instantiated directly.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar AbstractControl = (function () {\r\n    /**\r\n     * @param {?} validator\r\n     * @param {?} asyncValidator\r\n     */\r\n    function AbstractControl(validator, asyncValidator) {\r\n        this.validator = validator;\r\n        this.asyncValidator = asyncValidator;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._onCollectionChange = function () { };\r\n        this._pristine = true;\r\n        this._touched = false;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._onDisabledChange = [];\r\n    }\r\n    Object.defineProperty(AbstractControl.prototype, \"value\", {\r\n        /**\r\n         * The value of the control.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._value; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"parent\", {\r\n        /**\r\n         * The parent control.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._parent; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"status\", {\r\n        /**\r\n         * The validation status of the control. There are four possible\r\n         * validation statuses:\r\n         *\r\n         * * **VALID**:  control has passed all validation checks\r\n         * * **INVALID**: control has failed at least one validation check\r\n         * * **PENDING**: control is in the midst of conducting a validation check\r\n         * * **DISABLED**: control is exempt from validation checks\r\n         *\r\n         * These statuses are mutually exclusive, so a control cannot be\r\n         * both valid AND invalid or invalid AND disabled.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._status; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"valid\", {\r\n        /**\r\n         * A control is `valid` when its `status === VALID`.\r\n         *\r\n         * In order to have this status, the control must have passed all its\r\n         * validation checks.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._status === VALID; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"invalid\", {\r\n        /**\r\n         * A control is `invalid` when its `status === INVALID`.\r\n         *\r\n         * In order to have this status, the control must have failed\r\n         * at least one of its validation checks.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._status === INVALID; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"pending\", {\r\n        /**\r\n         * A control is `pending` when its `status === PENDING`.\r\n         *\r\n         * In order to have this status, the control must be in the\r\n         * middle of conducting a validation check.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._status == PENDING; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"disabled\", {\r\n        /**\r\n         * A control is `disabled` when its `status === DISABLED`.\r\n         *\r\n         * Disabled controls are exempt from validation checks and\r\n         * are not included in the aggregate value of their ancestor\r\n         * controls.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._status === DISABLED; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"enabled\", {\r\n        /**\r\n         * A control is `enabled` as long as its `status !== DISABLED`.\r\n         *\r\n         * In other words, it has a status of `VALID`, `INVALID`, or\r\n         * `PENDING`.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._status !== DISABLED; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"errors\", {\r\n        /**\r\n         * Returns any errors generated by failing validation. If there\r\n         * are no errors, it will return null.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._errors; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"pristine\", {\r\n        /**\r\n         * A control is `pristine` if the user has not yet changed\r\n         * the value in the UI.\r\n         *\r\n         * Note that programmatic changes to a control's value will\r\n         * *not* mark it dirty.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._pristine; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"dirty\", {\r\n        /**\r\n         * A control is `dirty` if the user has changed the value\r\n         * in the UI.\r\n         *\r\n         * Note that programmatic changes to a control's value will\r\n         * *not* mark it dirty.\r\n         * @return {?}\r\n         */\r\n        get: function () { return !this.pristine; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"touched\", {\r\n        /**\r\n         * A control is marked `touched` once the user has triggered\r\n         * a `blur` event on it.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._touched; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"untouched\", {\r\n        /**\r\n         * A control is `untouched` if the user has not yet triggered\r\n         * a `blur` event on it.\r\n         * @return {?}\r\n         */\r\n        get: function () { return !this._touched; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"valueChanges\", {\r\n        /**\r\n         * Emits an event every time the value of the control changes, in\r\n         * the UI or programmatically.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._valueChanges; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(AbstractControl.prototype, \"statusChanges\", {\r\n        /**\r\n         * Emits an event every time the validation status of the control\r\n         * is re-calculated.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._statusChanges; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * Sets the synchronous validators that are active on this control.  Calling\r\n     * this will overwrite any existing sync validators.\r\n     * @param {?} newValidator\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.setValidators = function (newValidator) {\r\n        this.validator = coerceToValidator(newValidator);\r\n    };\r\n    /**\r\n     * Sets the async validators that are active on this control. Calling this\r\n     * will overwrite any existing async validators.\r\n     * @param {?} newValidator\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.setAsyncValidators = function (newValidator) {\r\n        this.asyncValidator = coerceToAsyncValidator(newValidator);\r\n    };\r\n    /**\r\n     * Empties out the sync validator list.\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.clearValidators = function () { this.validator = null; };\r\n    /**\r\n     * Empties out the async validator list.\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.clearAsyncValidators = function () { this.asyncValidator = null; };\r\n    /**\r\n     * Marks the control as `touched`.\r\n     *\r\n     * This will also mark all direct ancestors as `touched` to maintain\r\n     * the model.\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.markAsTouched = function (_a) {\r\n        var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\r\n        this._touched = true;\r\n        if (this._parent && !onlySelf) {\r\n            this._parent.markAsTouched({ onlySelf: onlySelf });\r\n        }\r\n    };\r\n    /**\r\n     * Marks the control as `untouched`.\r\n     *\r\n     * If the control has any children, it will also mark all children as `untouched`\r\n     * to maintain the model, and re-calculate the `touched` status of all parent\r\n     * controls.\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.markAsUntouched = function (_a) {\r\n        var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\r\n        this._touched = false;\r\n        this._forEachChild(function (control) { control.markAsUntouched({ onlySelf: true }); });\r\n        if (this._parent && !onlySelf) {\r\n            this._parent._updateTouched({ onlySelf: onlySelf });\r\n        }\r\n    };\r\n    /**\r\n     * Marks the control as `dirty`.\r\n     *\r\n     * This will also mark all direct ancestors as `dirty` to maintain\r\n     * the model.\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.markAsDirty = function (_a) {\r\n        var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\r\n        this._pristine = false;\r\n        if (this._parent && !onlySelf) {\r\n            this._parent.markAsDirty({ onlySelf: onlySelf });\r\n        }\r\n    };\r\n    /**\r\n     * Marks the control as `pristine`.\r\n     *\r\n     * If the control has any children, it will also mark all children as `pristine`\r\n     * to maintain the model, and re-calculate the `pristine` status of all parent\r\n     * controls.\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.markAsPristine = function (_a) {\r\n        var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\r\n        this._pristine = true;\r\n        this._forEachChild(function (control) { control.markAsPristine({ onlySelf: true }); });\r\n        if (this._parent && !onlySelf) {\r\n            this._parent._updatePristine({ onlySelf: onlySelf });\r\n        }\r\n    };\r\n    /**\r\n     * Marks the control as `pending`.\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.markAsPending = function (_a) {\r\n        var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\r\n        this._status = PENDING;\r\n        if (this._parent && !onlySelf) {\r\n            this._parent.markAsPending({ onlySelf: onlySelf });\r\n        }\r\n    };\r\n    /**\r\n     * Disables the control. This means the control will be exempt from validation checks and\r\n     * excluded from the aggregate value of any parent. Its status is `DISABLED`.\r\n     *\r\n     * If the control has children, all children will be disabled to maintain the model.\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.disable = function (_a) {\r\n        var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent;\r\n        this._status = DISABLED;\r\n        this._errors = null;\r\n        this._forEachChild(function (control) { control.disable({ onlySelf: true }); });\r\n        this._updateValue();\r\n        if (emitEvent !== false) {\r\n            this._valueChanges.emit(this._value);\r\n            this._statusChanges.emit(this._status);\r\n        }\r\n        this._updateAncestors(!!onlySelf);\r\n        this._onDisabledChange.forEach(function (changeFn) { return changeFn(true); });\r\n    };\r\n    /**\r\n     * Enables the control. This means the control will be included in validation checks and\r\n     * the aggregate value of its parent. Its status is re-calculated based on its value and\r\n     * its validators.\r\n     *\r\n     * If the control has children, all children will be enabled.\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.enable = function (_a) {\r\n        var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent;\r\n        this._status = VALID;\r\n        this._forEachChild(function (control) { control.enable({ onlySelf: true }); });\r\n        this.updateValueAndValidity({ onlySelf: true, emitEvent: emitEvent });\r\n        this._updateAncestors(!!onlySelf);\r\n        this._onDisabledChange.forEach(function (changeFn) { return changeFn(false); });\r\n    };\r\n    /**\r\n     * @param {?} onlySelf\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._updateAncestors = function (onlySelf) {\r\n        if (this._parent && !onlySelf) {\r\n            this._parent.updateValueAndValidity();\r\n            this._parent._updatePristine();\r\n            this._parent._updateTouched();\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} parent\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.setParent = function (parent) { this._parent = parent; };\r\n    /**\r\n     * Sets the value of the control. Abstract method (implemented in sub-classes).\r\n     * @abstract\r\n     * @param {?} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.setValue = function (value, options) { };\r\n    /**\r\n     * Patches the value of the control. Abstract method (implemented in sub-classes).\r\n     * @abstract\r\n     * @param {?} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.patchValue = function (value, options) { };\r\n    /**\r\n     * Resets the control. Abstract method (implemented in sub-classes).\r\n     * @abstract\r\n     * @param {?=} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.reset = function (value, options) { };\r\n    /**\r\n     * Re-calculates the value and validation status of the control.\r\n     *\r\n     * By default, it will also update the value and validity of its ancestors.\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.updateValueAndValidity = function (_a) {\r\n        var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent;\r\n        this._setInitialStatus();\r\n        this._updateValue();\r\n        if (this.enabled) {\r\n            this._cancelExistingSubscription();\r\n            this._errors = this._runValidator();\r\n            this._status = this._calculateStatus();\r\n            if (this._status === VALID || this._status === PENDING) {\r\n                this._runAsyncValidator(emitEvent);\r\n            }\r\n        }\r\n        if (emitEvent !== false) {\r\n            this._valueChanges.emit(this._value);\r\n            this._statusChanges.emit(this._status);\r\n        }\r\n        if (this._parent && !onlySelf) {\r\n            this._parent.updateValueAndValidity({ onlySelf: onlySelf, emitEvent: emitEvent });\r\n        }\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._updateTreeValidity = function (_a) {\r\n        var emitEvent = (_a === void 0 ? { emitEvent: true } : _a).emitEvent;\r\n        this._forEachChild(function (ctrl) { return ctrl._updateTreeValidity({ emitEvent: emitEvent }); });\r\n        this.updateValueAndValidity({ onlySelf: true, emitEvent: emitEvent });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._setInitialStatus = function () { this._status = this._allControlsDisabled() ? DISABLED : VALID; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._runValidator = function () {\r\n        return this.validator ? this.validator(this) : null;\r\n    };\r\n    /**\r\n     * @param {?=} emitEvent\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._runAsyncValidator = function (emitEvent) {\r\n        var _this = this;\r\n        if (this.asyncValidator) {\r\n            this._status = PENDING;\r\n            var /** @type {?} */ obs = toObservable(this.asyncValidator(this));\r\n            this._asyncValidationSubscription =\r\n                obs.subscribe(function (errors) { return _this.setErrors(errors, { emitEvent: emitEvent }); });\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._cancelExistingSubscription = function () {\r\n        if (this._asyncValidationSubscription) {\r\n            this._asyncValidationSubscription.unsubscribe();\r\n        }\r\n    };\r\n    /**\r\n     * Sets errors on a form control.\r\n     *\r\n     * This is used when validations are run manually by the user, rather than automatically.\r\n     *\r\n     * Calling `setErrors` will also update the validity of the parent control.\r\n     *\r\n     * ### Example\r\n     *\r\n     * ```\r\n     * const login = new FormControl(\"someLogin\");\r\n     * login.setErrors({\r\n     *   \"notUnique\": true\r\n     * });\r\n     *\r\n     * expect(login.valid).toEqual(false);\r\n     * expect(login.errors).toEqual({\"notUnique\": true});\r\n     *\r\n     * login.setValue(\"someOtherLogin\");\r\n     *\r\n     * expect(login.valid).toEqual(true);\r\n     * ```\r\n     * @param {?} errors\r\n     * @param {?=} __1\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.setErrors = function (errors, _a) {\r\n        var emitEvent = (_a === void 0 ? {} : _a).emitEvent;\r\n        this._errors = errors;\r\n        this._updateControlsErrors(emitEvent !== false);\r\n    };\r\n    /**\r\n     * Retrieves a child control given the control's name or path.\r\n     *\r\n     * Paths can be passed in as an array or a string delimited by a dot.\r\n     *\r\n     * To get a control nested within a `person` sub-group:\r\n     *\r\n     * * `this.form.get('person.name');`\r\n     *\r\n     * -OR-\r\n     *\r\n     * * `this.form.get(['person', 'name']);`\r\n     * @param {?} path\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.get = function (path) { return _find(this, path, '.'); };\r\n    /**\r\n     * Returns true if the control with the given path has the error specified. Otherwise\r\n     * returns null or undefined.\r\n     *\r\n     * If no path is given, it checks for the error on the present control.\r\n     * @param {?} errorCode\r\n     * @param {?=} path\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.getError = function (errorCode, path) {\r\n        var /** @type {?} */ control = path ? this.get(path) : this;\r\n        return control && control._errors ? control._errors[errorCode] : null;\r\n    };\r\n    /**\r\n     * Returns true if the control with the given path has the error specified. Otherwise\r\n     * returns false.\r\n     *\r\n     * If no path is given, it checks for the error on the present control.\r\n     * @param {?} errorCode\r\n     * @param {?=} path\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype.hasError = function (errorCode, path) { return !!this.getError(errorCode, path); };\r\n    Object.defineProperty(AbstractControl.prototype, \"root\", {\r\n        /**\r\n         * Retrieves the top-level ancestor of this control.\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            var /** @type {?} */ x = this;\r\n            while (x._parent) {\r\n                x = x._parent;\r\n            }\r\n            return x;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * \\@internal\r\n     * @param {?} emitEvent\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._updateControlsErrors = function (emitEvent) {\r\n        this._status = this._calculateStatus();\r\n        if (emitEvent) {\r\n            this._statusChanges.emit(this._status);\r\n        }\r\n        if (this._parent) {\r\n            this._parent._updateControlsErrors(emitEvent);\r\n        }\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._initObservables = function () {\r\n        this._valueChanges = new EventEmitter();\r\n        this._statusChanges = new EventEmitter();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._calculateStatus = function () {\r\n        if (this._allControlsDisabled())\r\n            return DISABLED;\r\n        if (this._errors)\r\n            return INVALID;\r\n        if (this._anyControlsHaveStatus(PENDING))\r\n            return PENDING;\r\n        if (this._anyControlsHaveStatus(INVALID))\r\n            return INVALID;\r\n        return VALID;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._updateValue = function () { };\r\n    /**\r\n     * \\@internal\r\n     * @abstract\r\n     * @param {?} cb\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._forEachChild = function (cb) { };\r\n    /**\r\n     * \\@internal\r\n     * @abstract\r\n     * @param {?} condition\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._anyControls = function (condition) { };\r\n    /**\r\n     * \\@internal\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._allControlsDisabled = function () { };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} status\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._anyControlsHaveStatus = function (status) {\r\n        return this._anyControls(function (control) { return control.status === status; });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._anyControlsDirty = function () {\r\n        return this._anyControls(function (control) { return control.dirty; });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._anyControlsTouched = function () {\r\n        return this._anyControls(function (control) { return control.touched; });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._updatePristine = function (_a) {\r\n        var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\r\n        this._pristine = !this._anyControlsDirty();\r\n        if (this._parent && !onlySelf) {\r\n            this._parent._updatePristine({ onlySelf: onlySelf });\r\n        }\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?=} __0\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._updateTouched = function (_a) {\r\n        var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\r\n        this._touched = this._anyControlsTouched();\r\n        if (this._parent && !onlySelf) {\r\n            this._parent._updateTouched({ onlySelf: onlySelf });\r\n        }\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} formState\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._isBoxedValue = function (formState) {\r\n        return typeof formState === 'object' && formState !== null &&\r\n            Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    AbstractControl.prototype._registerOnCollectionChange = function (fn) { this._onCollectionChange = fn; };\r\n    return AbstractControl;\r\n}());\r\n/**\r\n * \\@whatItDoes Tracks the value and validation status of an individual form control.\r\n *\r\n * It is one of the three fundamental building blocks of Angular forms, along with\r\n * {\\@link FormGroup} and {\\@link FormArray}.\r\n *\r\n * \\@howToUse\r\n *\r\n * When instantiating a {\\@link FormControl}, you can pass in an initial value as the\r\n * first argument. Example:\r\n *\r\n * ```ts\r\n * const ctrl = new FormControl('some value');\r\n * console.log(ctrl.value);     // 'some value'\r\n * ```\r\n *\r\n * You can also initialize the control with a form state object on instantiation,\r\n * which includes both the value and whether or not the control is disabled.\r\n * You can't use the value key without the disabled key; both are required\r\n * to use this way of initialization.\r\n *\r\n * ```ts\r\n * const ctrl = new FormControl({value: 'n/a', disabled: true});\r\n * console.log(ctrl.value);     // 'n/a'\r\n * console.log(ctrl.status);   // 'DISABLED'\r\n * ```\r\n *\r\n * To include a sync validator (or an array of sync validators) with the control,\r\n * pass it in as the second argument. Async validators are also supported, but\r\n * have to be passed in separately as the third arg.\r\n *\r\n * ```ts\r\n * const ctrl = new FormControl('', Validators.required);\r\n * console.log(ctrl.value);     // ''\r\n * console.log(ctrl.status);   // 'INVALID'\r\n * ```\r\n *\r\n * See its superclass, {\\@link AbstractControl}, for more properties and methods.\r\n *\r\n * * **npm package**: `\\@angular/forms`\r\n *\r\n * \\@stable\r\n */\r\nvar FormControl = (function (_super) {\r\n    __extends(FormControl, _super);\r\n    /**\r\n     * @param {?=} formState\r\n     * @param {?=} validator\r\n     * @param {?=} asyncValidator\r\n     */\r\n    function FormControl(formState, validator, asyncValidator) {\r\n        if (formState === void 0) { formState = null; }\r\n        var _this = _super.call(this, coerceToValidator(validator), coerceToAsyncValidator(asyncValidator)) || this;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        _this._onChange = [];\r\n        _this._applyFormState(formState);\r\n        _this.updateValueAndValidity({ onlySelf: true, emitEvent: false });\r\n        _this._initObservables();\r\n        return _this;\r\n    }\r\n    /**\r\n     * Set the value of the form control to `value`.\r\n     *\r\n     * If `onlySelf` is `true`, this change will only affect the validation of this `FormControl`\r\n     * and not its parent component. This defaults to false.\r\n     *\r\n     * If `emitEvent` is `true`, this\r\n     * change will cause a `valueChanges` event on the `FormControl` to be emitted. This defaults\r\n     * to true (as it falls through to `updateValueAndValidity`).\r\n     *\r\n     * If `emitModelToViewChange` is `true`, the view will be notified about the new value\r\n     * via an `onChange` event. This is the default behavior if `emitModelToViewChange` is not\r\n     * specified.\r\n     *\r\n     * If `emitViewToModelChange` is `true`, an ngModelChange event will be fired to update the\r\n     * model.  This is the default behavior if `emitViewToModelChange` is not specified.\r\n     * @param {?} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype.setValue = function (value, options) {\r\n        var _this = this;\r\n        if (options === void 0) { options = {}; }\r\n        this._value = value;\r\n        if (this._onChange.length && options.emitModelToViewChange !== false) {\r\n            this._onChange.forEach(function (changeFn) { return changeFn(_this._value, options.emitViewToModelChange !== false); });\r\n        }\r\n        this.updateValueAndValidity(options);\r\n    };\r\n    /**\r\n     * Patches the value of a control.\r\n     *\r\n     * This function is functionally the same as {\\@link FormControl#setValue} at this level.\r\n     * It exists for symmetry with {\\@link FormGroup#patchValue} on `FormGroups` and `FormArrays`,\r\n     * where it does behave differently.\r\n     * @param {?} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype.patchValue = function (value, options) {\r\n        if (options === void 0) { options = {}; }\r\n        this.setValue(value, options);\r\n    };\r\n    /**\r\n     * Resets the form control. This means by default:\r\n     *\r\n     * * it is marked as `pristine`\r\n     * * it is marked as `untouched`\r\n     * * value is set to null\r\n     *\r\n     * You can also reset to a specific form state by passing through a standalone\r\n     * value or a form state object that contains both a value and a disabled state\r\n     * (these are the only two properties that cannot be calculated).\r\n     *\r\n     * Ex:\r\n     *\r\n     * ```ts\r\n     * this.control.reset('Nancy');\r\n     *\r\n     * console.log(this.control.value);  // 'Nancy'\r\n     * ```\r\n     *\r\n     * OR\r\n     *\r\n     * ```\r\n     * this.control.reset({value: 'Nancy', disabled: true});\r\n     *\r\n     * console.log(this.control.value);  // 'Nancy'\r\n     * console.log(this.control.status);  // 'DISABLED'\r\n     * ```\r\n     * @param {?=} formState\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype.reset = function (formState, options) {\r\n        if (formState === void 0) { formState = null; }\r\n        if (options === void 0) { options = {}; }\r\n        this._applyFormState(formState);\r\n        this.markAsPristine(options);\r\n        this.markAsUntouched(options);\r\n        this.setValue(this._value, options);\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype._updateValue = function () { };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} condition\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype._anyControls = function (condition) { return false; };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype._allControlsDisabled = function () { return this.disabled; };\r\n    /**\r\n     * Register a listener for change events.\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype.registerOnChange = function (fn) { this._onChange.push(fn); };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype._clearChangeFns = function () {\r\n        this._onChange = [];\r\n        this._onDisabledChange = [];\r\n        this._onCollectionChange = function () { };\r\n    };\r\n    /**\r\n     * Register a listener for disabled events.\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype.registerOnDisabledChange = function (fn) {\r\n        this._onDisabledChange.push(fn);\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} cb\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype._forEachChild = function (cb) { };\r\n    /**\r\n     * @param {?} formState\r\n     * @return {?}\r\n     */\r\n    FormControl.prototype._applyFormState = function (formState) {\r\n        if (this._isBoxedValue(formState)) {\r\n            this._value = formState.value;\r\n            formState.disabled ? this.disable({ onlySelf: true, emitEvent: false }) :\r\n                this.enable({ onlySelf: true, emitEvent: false });\r\n        }\r\n        else {\r\n            this._value = formState;\r\n        }\r\n    };\r\n    return FormControl;\r\n}(AbstractControl));\r\n/**\r\n * \\@whatItDoes Tracks the value and validity state of a group of {\\@link FormControl}\r\n * instances.\r\n *\r\n * A `FormGroup` aggregates the values of each child {\\@link FormControl} into one object,\r\n * with each control name as the key.  It calculates its status by reducing the statuses\r\n * of its children. For example, if one of the controls in a group is invalid, the entire\r\n * group becomes invalid.\r\n *\r\n * `FormGroup` is one of the three fundamental building blocks used to define forms in Angular,\r\n * along with {\\@link FormControl} and {\\@link FormArray}.\r\n *\r\n * \\@howToUse\r\n *\r\n * When instantiating a {\\@link FormGroup}, pass in a collection of child controls as the first\r\n * argument. The key for each child will be the name under which it is registered.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * const form = new FormGroup({\r\n *   first: new FormControl('Nancy', Validators.minLength(2)),\r\n *   last: new FormControl('Drew'),\r\n * });\r\n *\r\n * console.log(form.value);   // {first: 'Nancy', last; 'Drew'}\r\n * console.log(form.status);  // 'VALID'\r\n * ```\r\n *\r\n * You can also include group-level validators as the second arg, or group-level async\r\n * validators as the third arg. These come in handy when you want to perform validation\r\n * that considers the value of more than one child control.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * const form = new FormGroup({\r\n *   password: new FormControl('', Validators.minLength(2)),\r\n *   passwordConfirm: new FormControl('', Validators.minLength(2)),\r\n * }, passwordMatchValidator);\r\n *\r\n *\r\n * function passwordMatchValidator(g: FormGroup) {\r\n *    return g.get('password').value === g.get('passwordConfirm').value\r\n *       ? null : {'mismatch': true};\r\n * }\r\n * ```\r\n *\r\n * * **npm package**: `\\@angular/forms`\r\n *\r\n * \\@stable\r\n */\r\nvar FormGroup = (function (_super) {\r\n    __extends(FormGroup, _super);\r\n    /**\r\n     * @param {?} controls\r\n     * @param {?=} validator\r\n     * @param {?=} asyncValidator\r\n     */\r\n    function FormGroup(controls, validator, asyncValidator) {\r\n        var _this = _super.call(this, validator || null, asyncValidator || null) || this;\r\n        _this.controls = controls;\r\n        _this._initObservables();\r\n        _this._setUpControls();\r\n        _this.updateValueAndValidity({ onlySelf: true, emitEvent: false });\r\n        return _this;\r\n    }\r\n    /**\r\n     * Registers a control with the group's list of controls.\r\n     *\r\n     * This method does not update value or validity of the control, so for\r\n     * most cases you'll want to use {\\@link FormGroup#addControl} instead.\r\n     * @param {?} name\r\n     * @param {?} control\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype.registerControl = function (name, control) {\r\n        if (this.controls[name])\r\n            return this.controls[name];\r\n        this.controls[name] = control;\r\n        control.setParent(this);\r\n        control._registerOnCollectionChange(this._onCollectionChange);\r\n        return control;\r\n    };\r\n    /**\r\n     * Add a control to this group.\r\n     * @param {?} name\r\n     * @param {?} control\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype.addControl = function (name, control) {\r\n        this.registerControl(name, control);\r\n        this.updateValueAndValidity();\r\n        this._onCollectionChange();\r\n    };\r\n    /**\r\n     * Remove a control from this group.\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype.removeControl = function (name) {\r\n        if (this.controls[name])\r\n            this.controls[name]._registerOnCollectionChange(function () { });\r\n        delete (this.controls[name]);\r\n        this.updateValueAndValidity();\r\n        this._onCollectionChange();\r\n    };\r\n    /**\r\n     * Replace an existing control.\r\n     * @param {?} name\r\n     * @param {?} control\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype.setControl = function (name, control) {\r\n        if (this.controls[name])\r\n            this.controls[name]._registerOnCollectionChange(function () { });\r\n        delete (this.controls[name]);\r\n        if (control)\r\n            this.registerControl(name, control);\r\n        this.updateValueAndValidity();\r\n        this._onCollectionChange();\r\n    };\r\n    /**\r\n     * Check whether there is an enabled control with the given name in the group.\r\n     *\r\n     * It will return false for disabled controls. If you'd like to check for\r\n     * existence in the group only, use {\\@link AbstractControl#get} instead.\r\n     * @param {?} controlName\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype.contains = function (controlName) {\r\n        return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;\r\n    };\r\n    /**\r\n     *  Sets the value of the {\\@link FormGroup}. It accepts an object that matches\r\n     *  the structure of the group, with control names as keys.\r\n     *\r\n     * This method performs strict checks, so it will throw an error if you try\r\n     * to set the value of a control that doesn't exist or if you exclude the\r\n     * value of a control.\r\n     *\r\n     *  ### Example\r\n     *\r\n     *  ```\r\n     *  const form = new FormGroup({\r\n     *     first: new FormControl(),\r\n     *     last: new FormControl()\r\n     *  });\r\n     *  console.log(form.value);   // {first: null, last: null}\r\n     *\r\n     *  form.setValue({first: 'Nancy', last: 'Drew'});\r\n     *  console.log(form.value);   // {first: 'Nancy', last: 'Drew'}\r\n     *\r\n     *  ```\r\n     * @param {?} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype.setValue = function (value, options) {\r\n        var _this = this;\r\n        if (options === void 0) { options = {}; }\r\n        this._checkAllValuesPresent(value);\r\n        Object.keys(value).forEach(function (name) {\r\n            _this._throwIfControlMissing(name);\r\n            _this.controls[name].setValue(value[name], { onlySelf: true, emitEvent: options.emitEvent });\r\n        });\r\n        this.updateValueAndValidity(options);\r\n    };\r\n    /**\r\n     *  Patches the value of the {\\@link FormGroup}. It accepts an object with control\r\n     *  names as keys, and will do its best to match the values to the correct controls\r\n     *  in the group.\r\n     *\r\n     *  It accepts both super-sets and sub-sets of the group without throwing an error.\r\n     *\r\n     *  ### Example\r\n     *\r\n     *  ```\r\n     *  const form = new FormGroup({\r\n     *     first: new FormControl(),\r\n     *     last: new FormControl()\r\n     *  });\r\n     *  console.log(form.value);   // {first: null, last: null}\r\n     *\r\n     *  form.patchValue({first: 'Nancy'});\r\n     *  console.log(form.value);   // {first: 'Nancy', last: null}\r\n     *\r\n     *  ```\r\n     * @param {?} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype.patchValue = function (value, options) {\r\n        var _this = this;\r\n        if (options === void 0) { options = {}; }\r\n        Object.keys(value).forEach(function (name) {\r\n            if (_this.controls[name]) {\r\n                _this.controls[name].patchValue(value[name], { onlySelf: true, emitEvent: options.emitEvent });\r\n            }\r\n        });\r\n        this.updateValueAndValidity(options);\r\n    };\r\n    /**\r\n     * Resets the {\\@link FormGroup}. This means by default:\r\n     *\r\n     * * The group and all descendants are marked `pristine`\r\n     * * The group and all descendants are marked `untouched`\r\n     * * The value of all descendants will be null or null maps\r\n     *\r\n     * You can also reset to a specific form state by passing in a map of states\r\n     * that matches the structure of your form, with control names as keys. The state\r\n     * can be a standalone value or a form state object with both a value and a disabled\r\n     * status.\r\n     *\r\n     * ### Example\r\n     *\r\n     * ```ts\r\n     * this.form.reset({first: 'name', last: 'last name'});\r\n     *\r\n     * console.log(this.form.value);  // {first: 'name', last: 'last name'}\r\n     * ```\r\n     *\r\n     * - OR -\r\n     *\r\n     * ```\r\n     * this.form.reset({\r\n     *   first: {value: 'name', disabled: true},\r\n     *   last: 'last'\r\n     * });\r\n     *\r\n     * console.log(this.form.value);  // {first: 'name', last: 'last name'}\r\n     * console.log(this.form.get('first').status);  // 'DISABLED'\r\n     * ```\r\n     * @param {?=} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype.reset = function (value, options) {\r\n        if (value === void 0) { value = {}; }\r\n        if (options === void 0) { options = {}; }\r\n        this._forEachChild(function (control, name) {\r\n            control.reset(value[name], { onlySelf: true, emitEvent: options.emitEvent });\r\n        });\r\n        this.updateValueAndValidity(options);\r\n        this._updatePristine(options);\r\n        this._updateTouched(options);\r\n    };\r\n    /**\r\n     * The aggregate value of the {\\@link FormGroup}, including any disabled controls.\r\n     *\r\n     * If you'd like to include all values regardless of disabled status, use this method.\r\n     * Otherwise, the `value` property is the best way to get the value of the group.\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype.getRawValue = function () {\r\n        return this._reduceChildren({}, function (acc, control, name) {\r\n            acc[name] = control instanceof FormControl ? control.value : ((control)).getRawValue();\r\n            return acc;\r\n        });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype._throwIfControlMissing = function (name) {\r\n        if (!Object.keys(this.controls).length) {\r\n            throw new Error(\"\\n        There are no form controls registered with this group yet.  If you're using ngModel,\\n        you may want to check next tick (e.g. use setTimeout).\\n      \");\r\n        }\r\n        if (!this.controls[name]) {\r\n            throw new Error(\"Cannot find form control with name: \" + name + \".\");\r\n        }\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} cb\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype._forEachChild = function (cb) {\r\n        var _this = this;\r\n        Object.keys(this.controls).forEach(function (k) { return cb(_this.controls[k], k); });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype._setUpControls = function () {\r\n        var _this = this;\r\n        this._forEachChild(function (control) {\r\n            control.setParent(_this);\r\n            control._registerOnCollectionChange(_this._onCollectionChange);\r\n        });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype._updateValue = function () { this._value = this._reduceValue(); };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} condition\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype._anyControls = function (condition) {\r\n        var _this = this;\r\n        var /** @type {?} */ res = false;\r\n        this._forEachChild(function (control, name) {\r\n            res = res || (_this.contains(name) && condition(control));\r\n        });\r\n        return res;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype._reduceValue = function () {\r\n        var _this = this;\r\n        return this._reduceChildren({}, function (acc, control, name) {\r\n            if (control.enabled || _this.disabled) {\r\n                acc[name] = control.value;\r\n            }\r\n            return acc;\r\n        });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} initValue\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype._reduceChildren = function (initValue, fn) {\r\n        var /** @type {?} */ res = initValue;\r\n        this._forEachChild(function (control, name) { res = fn(res, control, name); });\r\n        return res;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype._allControlsDisabled = function () {\r\n        for (var _i = 0, _a = Object.keys(this.controls); _i < _a.length; _i++) {\r\n            var controlName = _a[_i];\r\n            if (this.controls[controlName].enabled) {\r\n                return false;\r\n            }\r\n        }\r\n        return Object.keys(this.controls).length > 0 || this.disabled;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    FormGroup.prototype._checkAllValuesPresent = function (value) {\r\n        this._forEachChild(function (control, name) {\r\n            if (value[name] === undefined) {\r\n                throw new Error(\"Must supply a value for form control with name: '\" + name + \"'.\");\r\n            }\r\n        });\r\n    };\r\n    return FormGroup;\r\n}(AbstractControl));\r\n/**\r\n * \\@whatItDoes Tracks the value and validity state of an array of {\\@link FormControl},\r\n * {\\@link FormGroup} or {\\@link FormArray} instances.\r\n *\r\n * A `FormArray` aggregates the values of each child {\\@link FormControl} into an array.\r\n * It calculates its status by reducing the statuses of its children. For example, if one of\r\n * the controls in a `FormArray` is invalid, the entire array becomes invalid.\r\n *\r\n * `FormArray` is one of the three fundamental building blocks used to define forms in Angular,\r\n * along with {\\@link FormControl} and {\\@link FormGroup}.\r\n *\r\n * \\@howToUse\r\n *\r\n * When instantiating a {\\@link FormArray}, pass in an array of child controls as the first\r\n * argument.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * const arr = new FormArray([\r\n *   new FormControl('Nancy', Validators.minLength(2)),\r\n *   new FormControl('Drew'),\r\n * ]);\r\n *\r\n * console.log(arr.value);   // ['Nancy', 'Drew']\r\n * console.log(arr.status);  // 'VALID'\r\n * ```\r\n *\r\n * You can also include array-level validators as the second arg, or array-level async\r\n * validators as the third arg. These come in handy when you want to perform validation\r\n * that considers the value of more than one child control.\r\n *\r\n * ### Adding or removing controls\r\n *\r\n * To change the controls in the array, use the `push`, `insert`, or `removeAt` methods\r\n * in `FormArray` itself. These methods ensure the controls are properly tracked in the\r\n * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate\r\n * the `FormArray` directly, as that will result in strange and unexpected behavior such\r\n * as broken change detection.\r\n *\r\n * * **npm package**: `\\@angular/forms`\r\n *\r\n * \\@stable\r\n */\r\nvar FormArray = (function (_super) {\r\n    __extends(FormArray, _super);\r\n    /**\r\n     * @param {?} controls\r\n     * @param {?=} validator\r\n     * @param {?=} asyncValidator\r\n     */\r\n    function FormArray(controls, validator, asyncValidator) {\r\n        var _this = _super.call(this, validator || null, asyncValidator || null) || this;\r\n        _this.controls = controls;\r\n        _this._initObservables();\r\n        _this._setUpControls();\r\n        _this.updateValueAndValidity({ onlySelf: true, emitEvent: false });\r\n        return _this;\r\n    }\r\n    /**\r\n     * Get the {\\@link AbstractControl} at the given `index` in the array.\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype.at = function (index) { return this.controls[index]; };\r\n    /**\r\n     * Insert a new {\\@link AbstractControl} at the end of the array.\r\n     * @param {?} control\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype.push = function (control) {\r\n        this.controls.push(control);\r\n        this._registerControl(control);\r\n        this.updateValueAndValidity();\r\n        this._onCollectionChange();\r\n    };\r\n    /**\r\n     * Insert a new {\\@link AbstractControl} at the given `index` in the array.\r\n     * @param {?} index\r\n     * @param {?} control\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype.insert = function (index, control) {\r\n        this.controls.splice(index, 0, control);\r\n        this._registerControl(control);\r\n        this.updateValueAndValidity();\r\n        this._onCollectionChange();\r\n    };\r\n    /**\r\n     * Remove the control at the given `index` in the array.\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype.removeAt = function (index) {\r\n        if (this.controls[index])\r\n            this.controls[index]._registerOnCollectionChange(function () { });\r\n        this.controls.splice(index, 1);\r\n        this.updateValueAndValidity();\r\n        this._onCollectionChange();\r\n    };\r\n    /**\r\n     * Replace an existing control.\r\n     * @param {?} index\r\n     * @param {?} control\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype.setControl = function (index, control) {\r\n        if (this.controls[index])\r\n            this.controls[index]._registerOnCollectionChange(function () { });\r\n        this.controls.splice(index, 1);\r\n        if (control) {\r\n            this.controls.splice(index, 0, control);\r\n            this._registerControl(control);\r\n        }\r\n        this.updateValueAndValidity();\r\n        this._onCollectionChange();\r\n    };\r\n    Object.defineProperty(FormArray.prototype, \"length\", {\r\n        /**\r\n         * Length of the control array.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.controls.length; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     *  Sets the value of the {\\@link FormArray}. It accepts an array that matches\r\n     *  the structure of the control.\r\n     *\r\n     * This method performs strict checks, so it will throw an error if you try\r\n     * to set the value of a control that doesn't exist or if you exclude the\r\n     * value of a control.\r\n     *\r\n     *  ### Example\r\n     *\r\n     *  ```\r\n     *  const arr = new FormArray([\r\n     *     new FormControl(),\r\n     *     new FormControl()\r\n     *  ]);\r\n     *  console.log(arr.value);   // [null, null]\r\n     *\r\n     *  arr.setValue(['Nancy', 'Drew']);\r\n     *  console.log(arr.value);   // ['Nancy', 'Drew']\r\n     *  ```\r\n     * @param {?} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype.setValue = function (value, options) {\r\n        var _this = this;\r\n        if (options === void 0) { options = {}; }\r\n        this._checkAllValuesPresent(value);\r\n        value.forEach(function (newValue, index) {\r\n            _this._throwIfControlMissing(index);\r\n            _this.at(index).setValue(newValue, { onlySelf: true, emitEvent: options.emitEvent });\r\n        });\r\n        this.updateValueAndValidity(options);\r\n    };\r\n    /**\r\n     *  Patches the value of the {\\@link FormArray}. It accepts an array that matches the\r\n     *  structure of the control, and will do its best to match the values to the correct\r\n     *  controls in the group.\r\n     *\r\n     *  It accepts both super-sets and sub-sets of the array without throwing an error.\r\n     *\r\n     *  ### Example\r\n     *\r\n     *  ```\r\n     *  const arr = new FormArray([\r\n     *     new FormControl(),\r\n     *     new FormControl()\r\n     *  ]);\r\n     *  console.log(arr.value);   // [null, null]\r\n     *\r\n     *  arr.patchValue(['Nancy']);\r\n     *  console.log(arr.value);   // ['Nancy', null]\r\n     *  ```\r\n     * @param {?} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype.patchValue = function (value, options) {\r\n        var _this = this;\r\n        if (options === void 0) { options = {}; }\r\n        value.forEach(function (newValue, index) {\r\n            if (_this.at(index)) {\r\n                _this.at(index).patchValue(newValue, { onlySelf: true, emitEvent: options.emitEvent });\r\n            }\r\n        });\r\n        this.updateValueAndValidity(options);\r\n    };\r\n    /**\r\n     * Resets the {\\@link FormArray}. This means by default:\r\n     *\r\n     * * The array and all descendants are marked `pristine`\r\n     * * The array and all descendants are marked `untouched`\r\n     * * The value of all descendants will be null or null maps\r\n     *\r\n     * You can also reset to a specific form state by passing in an array of states\r\n     * that matches the structure of the control. The state can be a standalone value\r\n     * or a form state object with both a value and a disabled status.\r\n     *\r\n     * ### Example\r\n     *\r\n     * ```ts\r\n     * this.arr.reset(['name', 'last name']);\r\n     *\r\n     * console.log(this.arr.value);  // ['name', 'last name']\r\n     * ```\r\n     *\r\n     * - OR -\r\n     *\r\n     * ```\r\n     * this.arr.reset([\r\n     *   {value: 'name', disabled: true},\r\n     *   'last'\r\n     * ]);\r\n     *\r\n     * console.log(this.arr.value);  // ['name', 'last name']\r\n     * console.log(this.arr.get(0).status);  // 'DISABLED'\r\n     * ```\r\n     * @param {?=} value\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype.reset = function (value, options) {\r\n        if (value === void 0) { value = []; }\r\n        if (options === void 0) { options = {}; }\r\n        this._forEachChild(function (control, index) {\r\n            control.reset(value[index], { onlySelf: true, emitEvent: options.emitEvent });\r\n        });\r\n        this.updateValueAndValidity(options);\r\n        this._updatePristine(options);\r\n        this._updateTouched(options);\r\n    };\r\n    /**\r\n     * The aggregate value of the array, including any disabled controls.\r\n     *\r\n     * If you'd like to include all values regardless of disabled status, use this method.\r\n     * Otherwise, the `value` property is the best way to get the value of the array.\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype.getRawValue = function () {\r\n        return this.controls.map(function (control) {\r\n            return control instanceof FormControl ? control.value : ((control)).getRawValue();\r\n        });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} index\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype._throwIfControlMissing = function (index) {\r\n        if (!this.controls.length) {\r\n            throw new Error(\"\\n        There are no form controls registered with this array yet.  If you're using ngModel,\\n        you may want to check next tick (e.g. use setTimeout).\\n      \");\r\n        }\r\n        if (!this.at(index)) {\r\n            throw new Error(\"Cannot find form control at index \" + index);\r\n        }\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} cb\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype._forEachChild = function (cb) {\r\n        this.controls.forEach(function (control, index) { cb(control, index); });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype._updateValue = function () {\r\n        var _this = this;\r\n        this._value = this.controls.filter(function (control) { return control.enabled || _this.disabled; })\r\n            .map(function (control) { return control.value; });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} condition\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype._anyControls = function (condition) {\r\n        return this.controls.some(function (control) { return control.enabled && condition(control); });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype._setUpControls = function () {\r\n        var _this = this;\r\n        this._forEachChild(function (control) { return _this._registerControl(control); });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype._checkAllValuesPresent = function (value) {\r\n        this._forEachChild(function (control, i) {\r\n            if (value[i] === undefined) {\r\n                throw new Error(\"Must supply a value for form control at index: \" + i + \".\");\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype._allControlsDisabled = function () {\r\n        for (var _i = 0, _a = this.controls; _i < _a.length; _i++) {\r\n            var control = _a[_i];\r\n            if (control.enabled)\r\n                return false;\r\n        }\r\n        return this.controls.length > 0 || this.disabled;\r\n    };\r\n    /**\r\n     * @param {?} control\r\n     * @return {?}\r\n     */\r\n    FormArray.prototype._registerControl = function (control) {\r\n        control.setParent(this);\r\n        control._registerOnCollectionChange(this._onCollectionChange);\r\n    };\r\n    return FormArray;\r\n}(AbstractControl));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar formDirectiveProvider = {\r\n    provide: ControlContainer,\r\n    useExisting: forwardRef(function () { return NgForm; })\r\n};\r\nvar resolvedPromise = Promise.resolve(null);\r\n/**\r\n * \\@whatItDoes Creates a top-level {\\@link FormGroup} instance and binds it to a form\r\n * to track aggregate form value and validation status.\r\n *\r\n * \\@howToUse\r\n *\r\n * As soon as you import the `FormsModule`, this directive becomes active by default on\r\n * all `<form>` tags.  You don't need to add a special selector.\r\n *\r\n * You can export the directive into a local template variable using `ngForm` as the key\r\n * (ex: `#myForm=\"ngForm\"`). This is optional, but useful.  Many properties from the underlying\r\n * {\\@link FormGroup} instance are duplicated on the directive itself, so a reference to it\r\n * will give you access to the aggregate value and validity status of the form, as well as\r\n * user interaction properties like `dirty` and `touched`.\r\n *\r\n * To register child controls with the form, you'll want to use {\\@link NgModel} with a\r\n * `name` attribute.  You can also use {\\@link NgModelGroup} if you'd like to create\r\n * sub-groups within the form.\r\n *\r\n * You can listen to the directive's `ngSubmit` event to be notified when the user has\r\n * triggered a form submission. The `ngSubmit` event will be emitted with the original form\r\n * submission event.\r\n *\r\n * {\\@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\r\n *\r\n * * **npm package**: `\\@angular/forms`\r\n *\r\n * * **NgModule**: `FormsModule`\r\n *\r\n *  \\@stable\r\n */\r\nvar NgForm = (function (_super) {\r\n    __extends(NgForm, _super);\r\n    /**\r\n     * @param {?} validators\r\n     * @param {?} asyncValidators\r\n     */\r\n    function NgForm(validators, asyncValidators) {\r\n        var _this = _super.call(this) || this;\r\n        _this._submitted = false;\r\n        _this.ngSubmit = new EventEmitter();\r\n        _this.form =\r\n            new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));\r\n        return _this;\r\n    }\r\n    Object.defineProperty(NgForm.prototype, \"submitted\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._submitted; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgForm.prototype, \"formDirective\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgForm.prototype, \"control\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.form; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgForm.prototype, \"path\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return []; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgForm.prototype, \"controls\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.form.controls; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.addControl = function (dir) {\r\n        var _this = this;\r\n        resolvedPromise.then(function () {\r\n            var /** @type {?} */ container = _this._findContainer(dir.path);\r\n            dir._control = (container.registerControl(dir.name, dir.control));\r\n            setUpControl(dir.control, dir);\r\n            dir.control.updateValueAndValidity({ emitEvent: false });\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.getControl = function (dir) { return (this.form.get(dir.path)); };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.removeControl = function (dir) {\r\n        var _this = this;\r\n        resolvedPromise.then(function () {\r\n            var /** @type {?} */ container = _this._findContainer(dir.path);\r\n            if (container) {\r\n                container.removeControl(dir.name);\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.addFormGroup = function (dir) {\r\n        var _this = this;\r\n        resolvedPromise.then(function () {\r\n            var /** @type {?} */ container = _this._findContainer(dir.path);\r\n            var /** @type {?} */ group = new FormGroup({});\r\n            setUpFormContainer(group, dir);\r\n            container.registerControl(dir.name, group);\r\n            group.updateValueAndValidity({ emitEvent: false });\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.removeFormGroup = function (dir) {\r\n        var _this = this;\r\n        resolvedPromise.then(function () {\r\n            var /** @type {?} */ container = _this._findContainer(dir.path);\r\n            if (container) {\r\n                container.removeControl(dir.name);\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.getFormGroup = function (dir) { return (this.form.get(dir.path)); };\r\n    /**\r\n     * @param {?} dir\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.updateModel = function (dir, value) {\r\n        var _this = this;\r\n        resolvedPromise.then(function () {\r\n            var /** @type {?} */ ctrl = (_this.form.get(/** @type {?} */ ((dir.path))));\r\n            ctrl.setValue(value);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.setValue = function (value) { this.control.setValue(value); };\r\n    /**\r\n     * @param {?} $event\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.onSubmit = function ($event) {\r\n        this._submitted = true;\r\n        this.ngSubmit.emit($event);\r\n        return false;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.onReset = function () { this.resetForm(); };\r\n    /**\r\n     * @param {?=} value\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype.resetForm = function (value) {\r\n        if (value === void 0) { value = undefined; }\r\n        this.form.reset(value);\r\n        this._submitted = false;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} path\r\n     * @return {?}\r\n     */\r\n    NgForm.prototype._findContainer = function (path) {\r\n        path.pop();\r\n        return path.length ? (this.form.get(path)) : this.form;\r\n    };\r\n    return NgForm;\r\n}(ControlContainer));\r\nNgForm.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: 'form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]',\r\n                providers: [formDirectiveProvider],\r\n                host: { '(submit)': 'onSubmit($event)', '(reset)': 'onReset()' },\r\n                outputs: ['ngSubmit'],\r\n                exportAs: 'ngForm'\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgForm.ctorParameters = function () { return [\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_ASYNC_VALIDATORS,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar FormErrorExamples = {\r\n    formControlName: \"\\n    <div [formGroup]=\\\"myGroup\\\">\\n      <input formControlName=\\\"firstName\\\">\\n    </div>\\n\\n    In your class:\\n\\n    this.myGroup = new FormGroup({\\n       firstName: new FormControl()\\n    });\",\r\n    formGroupName: \"\\n    <div [formGroup]=\\\"myGroup\\\">\\n       <div formGroupName=\\\"person\\\">\\n          <input formControlName=\\\"firstName\\\">\\n       </div>\\n    </div>\\n\\n    In your class:\\n\\n    this.myGroup = new FormGroup({\\n       person: new FormGroup({ firstName: new FormControl() })\\n    });\",\r\n    formArrayName: \"\\n    <div [formGroup]=\\\"myGroup\\\">\\n      <div formArrayName=\\\"cities\\\">\\n        <div *ngFor=\\\"let city of cityArray.controls; index as i\\\">\\n          <input [formControlName]=\\\"i\\\">\\n        </div>\\n      </div>\\n    </div>\\n\\n    In your class:\\n\\n    this.cityArray = new FormArray([new FormControl('SF')]);\\n    this.myGroup = new FormGroup({\\n      cities: this.cityArray\\n    });\",\r\n    ngModelGroup: \"\\n    <form>\\n       <div ngModelGroup=\\\"person\\\">\\n          <input [(ngModel)]=\\\"person.name\\\" name=\\\"firstName\\\">\\n       </div>\\n    </form>\",\r\n    ngModelWithFormGroup: \"\\n    <div [formGroup]=\\\"myGroup\\\">\\n       <input formControlName=\\\"firstName\\\">\\n       <input [(ngModel)]=\\\"showMoreControls\\\" [ngModelOptions]=\\\"{standalone: true}\\\">\\n    </div>\\n  \"\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar TemplateDrivenErrors = (function () {\r\n    function TemplateDrivenErrors() {\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    TemplateDrivenErrors.modelParentException = function () {\r\n        throw new Error(\"\\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\\n      formGroup's partner directive \\\"formControlName\\\" instead.  Example:\\n\\n      \" + FormErrorExamples.formControlName + \"\\n\\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\\n\\n      Example:\\n\\n      \" + FormErrorExamples.ngModelWithFormGroup);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    TemplateDrivenErrors.formGroupNameException = function () {\r\n        throw new Error(\"\\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\\n\\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\\n\\n      \" + FormErrorExamples.formGroupName + \"\\n\\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\\n\\n      \" + FormErrorExamples.ngModelGroup);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    TemplateDrivenErrors.missingNameException = function () {\r\n        throw new Error(\"If ngModel is used within a form tag, either the name attribute must be set or the form\\n      control must be defined as 'standalone' in ngModelOptions.\\n\\n      Example 1: <input [(ngModel)]=\\\"person.firstName\\\" name=\\\"first\\\">\\n      Example 2: <input [(ngModel)]=\\\"person.firstName\\\" [ngModelOptions]=\\\"{standalone: true}\\\">\");\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    TemplateDrivenErrors.modelGroupParentException = function () {\r\n        throw new Error(\"\\n      ngModelGroup cannot be used with a parent formGroup directive.\\n\\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\\n\\n      \" + FormErrorExamples.formGroupName + \"\\n\\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\\n\\n      \" + FormErrorExamples.ngModelGroup);\r\n    };\r\n    return TemplateDrivenErrors;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar modelGroupProvider = {\r\n    provide: ControlContainer,\r\n    useExisting: forwardRef(function () { return NgModelGroup; })\r\n};\r\n/**\r\n * \\@whatItDoes Creates and binds a {\\@link FormGroup} instance to a DOM element.\r\n *\r\n * \\@howToUse\r\n *\r\n * This directive can only be used as a child of {\\@link NgForm} (or in other words,\r\n * within `<form>` tags).\r\n *\r\n * Use this directive if you'd like to create a sub-group within a form. This can\r\n * come in handy if you want to validate a sub-group of your form separately from\r\n * the rest of your form, or if some values in your domain model make more sense to\r\n * consume together in a nested object.\r\n *\r\n * Pass in the name you'd like this sub-group to have and it will become the key\r\n * for the sub-group in the form's full value. You can also export the directive into\r\n * a local template variable using `ngModelGroup` (ex: `#myGroup=\"ngModelGroup\"`).\r\n *\r\n * {\\@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}\r\n *\r\n * * **npm package**: `\\@angular/forms`\r\n *\r\n * * **NgModule**: `FormsModule`\r\n *\r\n * \\@stable\r\n */\r\nvar NgModelGroup = (function (_super) {\r\n    __extends(NgModelGroup, _super);\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} validators\r\n     * @param {?} asyncValidators\r\n     */\r\n    function NgModelGroup(parent, validators, asyncValidators) {\r\n        var _this = _super.call(this) || this;\r\n        _this._parent = parent;\r\n        _this._validators = validators;\r\n        _this._asyncValidators = asyncValidators;\r\n        return _this;\r\n    }\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    NgModelGroup.prototype._checkParentType = function () {\r\n        if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {\r\n            TemplateDrivenErrors.modelGroupParentException();\r\n        }\r\n    };\r\n    return NgModelGroup;\r\n}(AbstractFormGroupDirective));\r\nNgModelGroup.decorators = [\r\n    { type: Directive, args: [{ selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgModelGroup.ctorParameters = function () { return [\r\n    { type: ControlContainer, decorators: [{ type: Host }, { type: SkipSelf },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_ASYNC_VALIDATORS,] },] },\r\n]; };\r\nNgModelGroup.propDecorators = {\r\n    'name': [{ type: Input, args: ['ngModelGroup',] },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar formControlBinding = {\r\n    provide: NgControl,\r\n    useExisting: forwardRef(function () { return NgModel; })\r\n};\r\n/**\r\n * `ngModel` forces an additional change detection run when its inputs change:\r\n * E.g.:\r\n * ```\r\n * <div>{{myModel.valid}}</div>\r\n * <input [(ngModel)]=\"myValue\" #myModel=\"ngModel\">\r\n * ```\r\n * I.e. `ngModel` can export itself on the element and then be used in the template.\r\n * Normally, this would result in expressions before the `input` that use the exported directive\r\n * to have and old value as they have been\r\n * dirty checked before. As this is a very common case for `ngModel`, we added this second change\r\n * detection run.\r\n *\r\n * Notes:\r\n * - this is just one extra run no matter how many `ngModel` have been changed.\r\n * - this is a general problem when using `exportAs` for directives!\r\n */\r\nvar resolvedPromise$1 = Promise.resolve(null);\r\n/**\r\n * \\@whatItDoes Creates a {\\@link FormControl} instance from a domain model and binds it\r\n * to a form control element.\r\n *\r\n * The {\\@link FormControl} instance will track the value, user interaction, and\r\n * validation status of the control and keep the view synced with the model. If used\r\n * within a parent form, the directive will also register itself with the form as a child\r\n * control.\r\n *\r\n * \\@howToUse\r\n *\r\n * This directive can be used by itself or as part of a larger form. All you need is the\r\n * `ngModel` selector to activate it.\r\n *\r\n * It accepts a domain model as an optional {\\@link Input}. If you have a one-way binding\r\n * to `ngModel` with `[]` syntax, changing the value of the domain model in the component\r\n * class will set the value in the view. If you have a two-way binding with `[()]` syntax\r\n * (also known as 'banana-box syntax'), the value in the UI will always be synced back to\r\n * the domain model in your class as well.\r\n *\r\n * If you wish to inspect the properties of the associated {\\@link FormControl} (like\r\n * validity state), you can also export the directive into a local template variable using\r\n * `ngModel` as the key (ex: `#myVar=\"ngModel\"`). You can then access the control using the\r\n * directive's `control` property, but most properties you'll need (like `valid` and `dirty`)\r\n * will fall through to the control anyway, so you can access them directly. You can see a\r\n * full list of properties directly available in {\\@link AbstractControlDirective}.\r\n *\r\n * The following is an example of a simple standalone control using `ngModel`:\r\n *\r\n * {\\@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}\r\n *\r\n * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute\r\n * so that the control can be registered with the parent form under that name.\r\n *\r\n * It's worth noting that in the context of a parent form, you often can skip one-way or\r\n * two-way binding because the parent form will sync the value for you. You can access\r\n * its properties by exporting it into a local template variable using `ngForm` (ex:\r\n * `#f=\"ngForm\"`). Then you can pass it where it needs to go on submit.\r\n *\r\n * If you do need to populate initial values into your form, using a one-way binding for\r\n * `ngModel` tends to be sufficient as long as you use the exported form's value rather\r\n * than the domain model's value on submit.\r\n *\r\n * Take a look at an example of using `ngModel` within a form:\r\n *\r\n * {\\@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\r\n *\r\n * To see `ngModel` examples with different form control types, see:\r\n *\r\n * * Radio buttons: {\\@link RadioControlValueAccessor}\r\n * * Selects: {\\@link SelectControlValueAccessor}\r\n *\r\n * **npm package**: `\\@angular/forms`\r\n *\r\n * **NgModule**: `FormsModule`\r\n *\r\n *  \\@stable\r\n */\r\nvar NgModel = (function (_super) {\r\n    __extends(NgModel, _super);\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} validators\r\n     * @param {?} asyncValidators\r\n     * @param {?} valueAccessors\r\n     */\r\n    function NgModel(parent, validators, asyncValidators, valueAccessors) {\r\n        var _this = _super.call(this) || this;\r\n        /**\r\n         * \\@internal\r\n         */\r\n        _this._control = new FormControl();\r\n        /**\r\n         * \\@internal\r\n         */\r\n        _this._registered = false;\r\n        _this.update = new EventEmitter();\r\n        _this._parent = parent;\r\n        _this._rawValidators = validators || [];\r\n        _this._rawAsyncValidators = asyncValidators || [];\r\n        _this.valueAccessor = selectValueAccessor(_this, valueAccessors);\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype.ngOnChanges = function (changes) {\r\n        this._checkForErrors();\r\n        if (!this._registered)\r\n            this._setUpControl();\r\n        if ('isDisabled' in changes) {\r\n            this._updateDisabled(changes);\r\n        }\r\n        if (isPropertyUpdated(changes, this.viewModel)) {\r\n            this._updateValue(this.model);\r\n            this.viewModel = this.model;\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype.ngOnDestroy = function () { this.formDirective && this.formDirective.removeControl(this); };\r\n    Object.defineProperty(NgModel.prototype, \"control\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._control; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgModel.prototype, \"path\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this._parent ? controlPath(this.name, this._parent) : [this.name];\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgModel.prototype, \"formDirective\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._parent ? this._parent.formDirective : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgModel.prototype, \"validator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return composeValidators(this._rawValidators); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(NgModel.prototype, \"asyncValidator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return composeAsyncValidators(this._rawAsyncValidators);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} newValue\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype.viewToModelUpdate = function (newValue) {\r\n        this.viewModel = newValue;\r\n        this.update.emit(newValue);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype._setUpControl = function () {\r\n        this._isStandalone() ? this._setUpStandalone() :\r\n            this.formDirective.addControl(this);\r\n        this._registered = true;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype._isStandalone = function () {\r\n        return !this._parent || !!(this.options && this.options.standalone);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype._setUpStandalone = function () {\r\n        setUpControl(this._control, this);\r\n        this._control.updateValueAndValidity({ emitEvent: false });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype._checkForErrors = function () {\r\n        if (!this._isStandalone()) {\r\n            this._checkParentType();\r\n        }\r\n        this._checkName();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype._checkParentType = function () {\r\n        if (!(this._parent instanceof NgModelGroup) &&\r\n            this._parent instanceof AbstractFormGroupDirective) {\r\n            TemplateDrivenErrors.formGroupNameException();\r\n        }\r\n        else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {\r\n            TemplateDrivenErrors.modelParentException();\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype._checkName = function () {\r\n        if (this.options && this.options.name)\r\n            this.name = this.options.name;\r\n        if (!this._isStandalone() && !this.name) {\r\n            TemplateDrivenErrors.missingNameException();\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype._updateValue = function (value) {\r\n        var _this = this;\r\n        resolvedPromise$1.then(function () { _this.control.setValue(value, { emitViewToModelChange: false }); });\r\n    };\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    NgModel.prototype._updateDisabled = function (changes) {\r\n        var _this = this;\r\n        var /** @type {?} */ disabledValue = changes['isDisabled'].currentValue;\r\n        var /** @type {?} */ isDisabled = disabledValue === '' || (disabledValue && disabledValue !== 'false');\r\n        resolvedPromise$1.then(function () {\r\n            if (isDisabled && !_this.control.disabled) {\r\n                _this.control.disable();\r\n            }\r\n            else if (!isDisabled && _this.control.disabled) {\r\n                _this.control.enable();\r\n            }\r\n        });\r\n    };\r\n    return NgModel;\r\n}(NgControl));\r\nNgModel.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: '[ngModel]:not([formControlName]):not([formControl])',\r\n                providers: [formControlBinding],\r\n                exportAs: 'ngModel'\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgModel.ctorParameters = function () { return [\r\n    { type: ControlContainer, decorators: [{ type: Optional }, { type: Host },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_ASYNC_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALUE_ACCESSOR,] },] },\r\n]; };\r\nNgModel.propDecorators = {\r\n    'name': [{ type: Input },],\r\n    'isDisabled': [{ type: Input, args: ['disabled',] },],\r\n    'model': [{ type: Input, args: ['ngModel',] },],\r\n    'options': [{ type: Input, args: ['ngModelOptions',] },],\r\n    'update': [{ type: Output, args: ['ngModelChange',] },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ReactiveErrors = (function () {\r\n    function ReactiveErrors() {\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ReactiveErrors.controlParentException = function () {\r\n        throw new Error(\"formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\\n       directive and pass it an existing FormGroup instance (you can create one in your class).\\n\\n      Example:\\n\\n      \" + FormErrorExamples.formControlName);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ReactiveErrors.ngModelGroupException = function () {\r\n        throw new Error(\"formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\\n       that also have a \\\"form\\\" prefix: formGroupName, formArrayName, or formGroup.\\n\\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\\n\\n        \" + FormErrorExamples.formGroupName + \"\\n\\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\\n\\n        \" + FormErrorExamples.ngModelGroup);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ReactiveErrors.missingFormException = function () {\r\n        throw new Error(\"formGroup expects a FormGroup instance. Please pass one in.\\n\\n       Example:\\n\\n       \" + FormErrorExamples.formControlName);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ReactiveErrors.groupParentException = function () {\r\n        throw new Error(\"formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\\n      directive and pass it an existing FormGroup instance (you can create one in your class).\\n\\n      Example:\\n\\n      \" + FormErrorExamples.formGroupName);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ReactiveErrors.arrayParentException = function () {\r\n        throw new Error(\"formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\\n       directive and pass it an existing FormGroup instance (you can create one in your class).\\n\\n        Example:\\n\\n        \" + FormErrorExamples.formArrayName);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ReactiveErrors.disabledAttrWarning = function () {\r\n        console.warn(\"\\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\\n      you. We recommend using this approach to avoid 'changed after checked' errors.\\n       \\n      Example: \\n      form = new FormGroup({\\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\\n        last: new FormControl('Drew', Validators.required)\\n      });\\n    \");\r\n    };\r\n    return ReactiveErrors;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar formControlBinding$1 = {\r\n    provide: NgControl,\r\n    useExisting: forwardRef(function () { return FormControlDirective; })\r\n};\r\n/**\r\n * \\@whatItDoes Syncs a standalone {\\@link FormControl} instance to a form control element.\r\n *\r\n * In other words, this directive ensures that any values written to the {\\@link FormControl}\r\n * instance programmatically will be written to the DOM element (model -> view). Conversely,\r\n * any values written to the DOM element through user input will be reflected in the\r\n * {\\@link FormControl} instance (view -> model).\r\n *\r\n * \\@howToUse\r\n *\r\n * Use this directive if you'd like to create and manage a {\\@link FormControl} instance directly.\r\n * Simply create a {\\@link FormControl}, save it to your component class, and pass it into the\r\n * {\\@link FormControlDirective}.\r\n *\r\n * This directive is designed to be used as a standalone control.  Unlike {\\@link FormControlName},\r\n * it does not require that your {\\@link FormControl} instance be part of any parent\r\n * {\\@link FormGroup}, and it won't be registered to any {\\@link FormGroupDirective} that\r\n * exists above it.\r\n *\r\n * **Get the value**: the `value` property is always synced and available on the\r\n * {\\@link FormControl} instance. See a full list of available properties in\r\n * {\\@link AbstractControl}.\r\n *\r\n * **Set the value**: You can pass in an initial value when instantiating the {\\@link FormControl},\r\n * or you can set it programmatically later using {\\@link AbstractControl#setValue} or\r\n * {\\@link AbstractControl#patchValue}.\r\n *\r\n * **Listen to value**: If you want to listen to changes in the value of the control, you can\r\n * subscribe to the {\\@link AbstractControl#valueChanges} event.  You can also listen to\r\n * {\\@link AbstractControl#statusChanges} to be notified when the validation status is\r\n * re-calculated.\r\n *\r\n * ### Example\r\n *\r\n * {\\@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}\r\n *\r\n * * **npm package**: `\\@angular/forms`\r\n *\r\n * * **NgModule**: `ReactiveFormsModule`\r\n *\r\n *  \\@stable\r\n */\r\nvar FormControlDirective = (function (_super) {\r\n    __extends(FormControlDirective, _super);\r\n    /**\r\n     * @param {?} validators\r\n     * @param {?} asyncValidators\r\n     * @param {?} valueAccessors\r\n     */\r\n    function FormControlDirective(validators, asyncValidators, valueAccessors) {\r\n        var _this = _super.call(this) || this;\r\n        _this.update = new EventEmitter();\r\n        _this._rawValidators = validators || [];\r\n        _this._rawAsyncValidators = asyncValidators || [];\r\n        _this.valueAccessor = selectValueAccessor(_this, valueAccessors);\r\n        return _this;\r\n    }\r\n    Object.defineProperty(FormControlDirective.prototype, \"isDisabled\", {\r\n        /**\r\n         * @param {?} isDisabled\r\n         * @return {?}\r\n         */\r\n        set: function (isDisabled) { ReactiveErrors.disabledAttrWarning(); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    FormControlDirective.prototype.ngOnChanges = function (changes) {\r\n        if (this._isControlChanged(changes)) {\r\n            setUpControl(this.form, this);\r\n            if (this.control.disabled && ((this.valueAccessor)).setDisabledState) {\r\n                ((((this.valueAccessor)).setDisabledState))(true);\r\n            }\r\n            this.form.updateValueAndValidity({ emitEvent: false });\r\n        }\r\n        if (isPropertyUpdated(changes, this.viewModel)) {\r\n            this.form.setValue(this.model);\r\n            this.viewModel = this.model;\r\n        }\r\n    };\r\n    Object.defineProperty(FormControlDirective.prototype, \"path\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return []; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormControlDirective.prototype, \"validator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return composeValidators(this._rawValidators); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormControlDirective.prototype, \"asyncValidator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return composeAsyncValidators(this._rawAsyncValidators);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormControlDirective.prototype, \"control\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.form; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} newValue\r\n     * @return {?}\r\n     */\r\n    FormControlDirective.prototype.viewToModelUpdate = function (newValue) {\r\n        this.viewModel = newValue;\r\n        this.update.emit(newValue);\r\n    };\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    FormControlDirective.prototype._isControlChanged = function (changes) {\r\n        return changes.hasOwnProperty('form');\r\n    };\r\n    return FormControlDirective;\r\n}(NgControl));\r\nFormControlDirective.decorators = [\r\n    { type: Directive, args: [{ selector: '[formControl]', providers: [formControlBinding$1], exportAs: 'ngForm' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nFormControlDirective.ctorParameters = function () { return [\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_ASYNC_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALUE_ACCESSOR,] },] },\r\n]; };\r\nFormControlDirective.propDecorators = {\r\n    'form': [{ type: Input, args: ['formControl',] },],\r\n    'model': [{ type: Input, args: ['ngModel',] },],\r\n    'update': [{ type: Output, args: ['ngModelChange',] },],\r\n    'isDisabled': [{ type: Input, args: ['disabled',] },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar formDirectiveProvider$1 = {\r\n    provide: ControlContainer,\r\n    useExisting: forwardRef(function () { return FormGroupDirective; })\r\n};\r\n/**\r\n * \\@whatItDoes Binds an existing {\\@link FormGroup} to a DOM element.\r\n *\r\n * \\@howToUse\r\n *\r\n * This directive accepts an existing {\\@link FormGroup} instance. It will then use this\r\n * {\\@link FormGroup} instance to match any child {\\@link FormControl}, {\\@link FormGroup},\r\n * and {\\@link FormArray} instances to child {\\@link FormControlName}, {\\@link FormGroupName},\r\n * and {\\@link FormArrayName} directives.\r\n *\r\n * **Set value**: You can set the form's initial value when instantiating the\r\n * {\\@link FormGroup}, or you can set it programmatically later using the {\\@link FormGroup}'s\r\n * {\\@link AbstractControl#setValue} or {\\@link AbstractControl#patchValue} methods.\r\n *\r\n * **Listen to value**: If you want to listen to changes in the value of the form, you can subscribe\r\n * to the {\\@link FormGroup}'s {\\@link AbstractControl#valueChanges} event.  You can also listen to\r\n * its {\\@link AbstractControl#statusChanges} event to be notified when the validation status is\r\n * re-calculated.\r\n *\r\n * Furthermore, you can listen to the directive's `ngSubmit` event to be notified when the user has\r\n * triggered a form submission. The `ngSubmit` event will be emitted with the original form\r\n * submission event.\r\n *\r\n * ### Example\r\n *\r\n * In this example, we create form controls for first name and last name.\r\n *\r\n * {\\@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\r\n *\r\n * **npm package**: `\\@angular/forms`\r\n *\r\n * **NgModule**: {\\@link ReactiveFormsModule}\r\n *\r\n *  \\@stable\r\n */\r\nvar FormGroupDirective = (function (_super) {\r\n    __extends(FormGroupDirective, _super);\r\n    /**\r\n     * @param {?} _validators\r\n     * @param {?} _asyncValidators\r\n     */\r\n    function FormGroupDirective(_validators, _asyncValidators) {\r\n        var _this = _super.call(this) || this;\r\n        _this._validators = _validators;\r\n        _this._asyncValidators = _asyncValidators;\r\n        _this._submitted = false;\r\n        _this.directives = [];\r\n        _this.form = ((null));\r\n        _this.ngSubmit = new EventEmitter();\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.ngOnChanges = function (changes) {\r\n        this._checkFormPresent();\r\n        if (changes.hasOwnProperty('form')) {\r\n            this._updateValidators();\r\n            this._updateDomValue();\r\n            this._updateRegistrations();\r\n        }\r\n    };\r\n    Object.defineProperty(FormGroupDirective.prototype, \"submitted\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._submitted; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormGroupDirective.prototype, \"formDirective\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormGroupDirective.prototype, \"control\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.form; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormGroupDirective.prototype, \"path\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return []; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.addControl = function (dir) {\r\n        var /** @type {?} */ ctrl = this.form.get(dir.path);\r\n        setUpControl(ctrl, dir);\r\n        ctrl.updateValueAndValidity({ emitEvent: false });\r\n        this.directives.push(dir);\r\n        return ctrl;\r\n    };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.getControl = function (dir) { return (this.form.get(dir.path)); };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.removeControl = function (dir) { remove(this.directives, dir); };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.addFormGroup = function (dir) {\r\n        var /** @type {?} */ ctrl = this.form.get(dir.path);\r\n        setUpFormContainer(ctrl, dir);\r\n        ctrl.updateValueAndValidity({ emitEvent: false });\r\n    };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.removeFormGroup = function (dir) { };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.getFormGroup = function (dir) { return (this.form.get(dir.path)); };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.addFormArray = function (dir) {\r\n        var /** @type {?} */ ctrl = this.form.get(dir.path);\r\n        setUpFormContainer(ctrl, dir);\r\n        ctrl.updateValueAndValidity({ emitEvent: false });\r\n    };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.removeFormArray = function (dir) { };\r\n    /**\r\n     * @param {?} dir\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.getFormArray = function (dir) { return (this.form.get(dir.path)); };\r\n    /**\r\n     * @param {?} dir\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.updateModel = function (dir, value) {\r\n        var /** @type {?} */ ctrl = (this.form.get(dir.path));\r\n        ctrl.setValue(value);\r\n    };\r\n    /**\r\n     * @param {?} $event\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.onSubmit = function ($event) {\r\n        this._submitted = true;\r\n        this.ngSubmit.emit($event);\r\n        return false;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.onReset = function () { this.resetForm(); };\r\n    /**\r\n     * @param {?=} value\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype.resetForm = function (value) {\r\n        if (value === void 0) { value = undefined; }\r\n        this.form.reset(value);\r\n        this._submitted = false;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype._updateDomValue = function () {\r\n        var _this = this;\r\n        this.directives.forEach(function (dir) {\r\n            var /** @type {?} */ newCtrl = _this.form.get(dir.path);\r\n            if (dir._control !== newCtrl) {\r\n                cleanUpControl(dir._control, dir);\r\n                if (newCtrl)\r\n                    setUpControl(newCtrl, dir);\r\n                dir._control = newCtrl;\r\n            }\r\n        });\r\n        this.form._updateTreeValidity({ emitEvent: false });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype._updateRegistrations = function () {\r\n        var _this = this;\r\n        this.form._registerOnCollectionChange(function () { return _this._updateDomValue(); });\r\n        if (this._oldForm)\r\n            this._oldForm._registerOnCollectionChange(function () { });\r\n        this._oldForm = this.form;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype._updateValidators = function () {\r\n        var /** @type {?} */ sync = composeValidators(this._validators);\r\n        this.form.validator = Validators.compose([/** @type {?} */ ((this.form.validator)), /** @type {?} */ ((sync))]);\r\n        var /** @type {?} */ async = composeAsyncValidators(this._asyncValidators);\r\n        this.form.asyncValidator = Validators.composeAsync([/** @type {?} */ ((this.form.asyncValidator)), /** @type {?} */ ((async))]);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    FormGroupDirective.prototype._checkFormPresent = function () {\r\n        if (!this.form) {\r\n            ReactiveErrors.missingFormException();\r\n        }\r\n    };\r\n    return FormGroupDirective;\r\n}(ControlContainer));\r\nFormGroupDirective.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: '[formGroup]',\r\n                providers: [formDirectiveProvider$1],\r\n                host: { '(submit)': 'onSubmit($event)', '(reset)': 'onReset()' },\r\n                exportAs: 'ngForm'\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nFormGroupDirective.ctorParameters = function () { return [\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_ASYNC_VALIDATORS,] },] },\r\n]; };\r\nFormGroupDirective.propDecorators = {\r\n    'form': [{ type: Input, args: ['formGroup',] },],\r\n    'ngSubmit': [{ type: Output },],\r\n};\r\n/**\r\n * @template T\r\n * @param {?} list\r\n * @param {?} el\r\n * @return {?}\r\n */\r\nfunction remove(list, el) {\r\n    var /** @type {?} */ index = list.indexOf(el);\r\n    if (index > -1) {\r\n        list.splice(index, 1);\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar formGroupNameProvider = {\r\n    provide: ControlContainer,\r\n    useExisting: forwardRef(function () { return FormGroupName; })\r\n};\r\n/**\r\n * \\@whatItDoes Syncs a nested {\\@link FormGroup} to a DOM element.\r\n *\r\n * \\@howToUse\r\n *\r\n * This directive can only be used with a parent {\\@link FormGroupDirective} (selector:\r\n * `[formGroup]`).\r\n *\r\n * It accepts the string name of the nested {\\@link FormGroup} you want to link, and\r\n * will look for a {\\@link FormGroup} registered with that name in the parent\r\n * {\\@link FormGroup} instance you passed into {\\@link FormGroupDirective}.\r\n *\r\n * Nested form groups can come in handy when you want to validate a sub-group of a\r\n * form separately from the rest or when you'd like to group the values of certain\r\n * controls into their own nested object.\r\n *\r\n * **Access the group**: You can access the associated {\\@link FormGroup} using the\r\n * {\\@link AbstractControl#get} method. Ex: `this.form.get('name')`.\r\n *\r\n * You can also access individual controls within the group using dot syntax.\r\n * Ex: `this.form.get('name.first')`\r\n *\r\n * **Get the value**: the `value` property is always synced and available on the\r\n * {\\@link FormGroup}. See a full list of available properties in {\\@link AbstractControl}.\r\n *\r\n * **Set the value**: You can set an initial value for each child control when instantiating\r\n * the {\\@link FormGroup}, or you can set it programmatically later using\r\n * {\\@link AbstractControl#setValue} or {\\@link AbstractControl#patchValue}.\r\n *\r\n * **Listen to value**: If you want to listen to changes in the value of the group, you can\r\n * subscribe to the {\\@link AbstractControl#valueChanges} event.  You can also listen to\r\n * {\\@link AbstractControl#statusChanges} to be notified when the validation status is\r\n * re-calculated.\r\n *\r\n * ### Example\r\n *\r\n * {\\@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}\r\n *\r\n * * **npm package**: `\\@angular/forms`\r\n *\r\n * * **NgModule**: `ReactiveFormsModule`\r\n *\r\n * \\@stable\r\n */\r\nvar FormGroupName = (function (_super) {\r\n    __extends(FormGroupName, _super);\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} validators\r\n     * @param {?} asyncValidators\r\n     */\r\n    function FormGroupName(parent, validators, asyncValidators) {\r\n        var _this = _super.call(this) || this;\r\n        _this._parent = parent;\r\n        _this._validators = validators;\r\n        _this._asyncValidators = asyncValidators;\r\n        return _this;\r\n    }\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    FormGroupName.prototype._checkParentType = function () {\r\n        if (_hasInvalidParent(this._parent)) {\r\n            ReactiveErrors.groupParentException();\r\n        }\r\n    };\r\n    return FormGroupName;\r\n}(AbstractFormGroupDirective));\r\nFormGroupName.decorators = [\r\n    { type: Directive, args: [{ selector: '[formGroupName]', providers: [formGroupNameProvider] },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nFormGroupName.ctorParameters = function () { return [\r\n    { type: ControlContainer, decorators: [{ type: Optional }, { type: Host }, { type: SkipSelf },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_ASYNC_VALIDATORS,] },] },\r\n]; };\r\nFormGroupName.propDecorators = {\r\n    'name': [{ type: Input, args: ['formGroupName',] },],\r\n};\r\nvar formArrayNameProvider = {\r\n    provide: ControlContainer,\r\n    useExisting: forwardRef(function () { return FormArrayName; })\r\n};\r\n/**\r\n * \\@whatItDoes Syncs a nested {\\@link FormArray} to a DOM element.\r\n *\r\n * \\@howToUse\r\n *\r\n * This directive is designed to be used with a parent {\\@link FormGroupDirective} (selector:\r\n * `[formGroup]`).\r\n *\r\n * It accepts the string name of the nested {\\@link FormArray} you want to link, and\r\n * will look for a {\\@link FormArray} registered with that name in the parent\r\n * {\\@link FormGroup} instance you passed into {\\@link FormGroupDirective}.\r\n *\r\n * Nested form arrays can come in handy when you have a group of form controls but\r\n * you're not sure how many there will be. Form arrays allow you to create new\r\n * form controls dynamically.\r\n *\r\n * **Access the array**: You can access the associated {\\@link FormArray} using the\r\n * {\\@link AbstractControl#get} method on the parent {\\@link FormGroup}.\r\n * Ex: `this.form.get('cities')`.\r\n *\r\n * **Get the value**: the `value` property is always synced and available on the\r\n * {\\@link FormArray}. See a full list of available properties in {\\@link AbstractControl}.\r\n *\r\n * **Set the value**: You can set an initial value for each child control when instantiating\r\n * the {\\@link FormArray}, or you can set the value programmatically later using the\r\n * {\\@link FormArray}'s {\\@link AbstractControl#setValue} or {\\@link AbstractControl#patchValue}\r\n * methods.\r\n *\r\n * **Listen to value**: If you want to listen to changes in the value of the array, you can\r\n * subscribe to the {\\@link FormArray}'s {\\@link AbstractControl#valueChanges} event.  You can also\r\n * listen to its {\\@link AbstractControl#statusChanges} event to be notified when the validation\r\n * status is re-calculated.\r\n *\r\n * **Add new controls**: You can add new controls to the {\\@link FormArray} dynamically by\r\n * calling its {\\@link FormArray#push} method.\r\n *  Ex: `this.form.get('cities').push(new FormControl());`\r\n *\r\n * ### Example\r\n *\r\n * {\\@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}\r\n *\r\n * * **npm package**: `\\@angular/forms`\r\n *\r\n * * **NgModule**: `ReactiveFormsModule`\r\n *\r\n * \\@stable\r\n */\r\nvar FormArrayName = (function (_super) {\r\n    __extends(FormArrayName, _super);\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} validators\r\n     * @param {?} asyncValidators\r\n     */\r\n    function FormArrayName(parent, validators, asyncValidators) {\r\n        var _this = _super.call(this) || this;\r\n        _this._parent = parent;\r\n        _this._validators = validators;\r\n        _this._asyncValidators = asyncValidators;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    FormArrayName.prototype.ngOnInit = function () {\r\n        this._checkParentType(); /** @type {?} */\r\n        ((this.formDirective)).addFormArray(this);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    FormArrayName.prototype.ngOnDestroy = function () {\r\n        if (this.formDirective) {\r\n            this.formDirective.removeFormArray(this);\r\n        }\r\n    };\r\n    Object.defineProperty(FormArrayName.prototype, \"control\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return ((this.formDirective)).getFormArray(this); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormArrayName.prototype, \"formDirective\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this._parent ? (this._parent.formDirective) : null;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormArrayName.prototype, \"path\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return controlPath(this.name, this._parent); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormArrayName.prototype, \"validator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return composeValidators(this._validators); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormArrayName.prototype, \"asyncValidator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return composeAsyncValidators(this._asyncValidators);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    FormArrayName.prototype._checkParentType = function () {\r\n        if (_hasInvalidParent(this._parent)) {\r\n            ReactiveErrors.arrayParentException();\r\n        }\r\n    };\r\n    return FormArrayName;\r\n}(ControlContainer));\r\nFormArrayName.decorators = [\r\n    { type: Directive, args: [{ selector: '[formArrayName]', providers: [formArrayNameProvider] },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nFormArrayName.ctorParameters = function () { return [\r\n    { type: ControlContainer, decorators: [{ type: Optional }, { type: Host }, { type: SkipSelf },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_ASYNC_VALIDATORS,] },] },\r\n]; };\r\nFormArrayName.propDecorators = {\r\n    'name': [{ type: Input, args: ['formArrayName',] },],\r\n};\r\n/**\r\n * @param {?} parent\r\n * @return {?}\r\n */\r\nfunction _hasInvalidParent(parent) {\r\n    return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) &&\r\n        !(parent instanceof FormArrayName);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar controlNameBinding = {\r\n    provide: NgControl,\r\n    useExisting: forwardRef(function () { return FormControlName; })\r\n};\r\n/**\r\n * \\@whatItDoes Syncs a {\\@link FormControl} in an existing {\\@link FormGroup} to a form control\r\n * element by name.\r\n *\r\n * In other words, this directive ensures that any values written to the {\\@link FormControl}\r\n * instance programmatically will be written to the DOM element (model -> view). Conversely,\r\n * any values written to the DOM element through user input will be reflected in the\r\n * {\\@link FormControl} instance (view -> model).\r\n *\r\n * \\@howToUse\r\n *\r\n * This directive is designed to be used with a parent {\\@link FormGroupDirective} (selector:\r\n * `[formGroup]`).\r\n *\r\n * It accepts the string name of the {\\@link FormControl} instance you want to\r\n * link, and will look for a {\\@link FormControl} registered with that name in the\r\n * closest {\\@link FormGroup} or {\\@link FormArray} above it.\r\n *\r\n * **Access the control**: You can access the {\\@link FormControl} associated with\r\n * this directive by using the {\\@link AbstractControl#get} method.\r\n * Ex: `this.form.get('first');`\r\n *\r\n * **Get value**: the `value` property is always synced and available on the {\\@link FormControl}.\r\n * See a full list of available properties in {\\@link AbstractControl}.\r\n *\r\n *  **Set value**: You can set an initial value for the control when instantiating the\r\n *  {\\@link FormControl}, or you can set it programmatically later using\r\n *  {\\@link AbstractControl#setValue} or {\\@link AbstractControl#patchValue}.\r\n *\r\n * **Listen to value**: If you want to listen to changes in the value of the control, you can\r\n * subscribe to the {\\@link AbstractControl#valueChanges} event.  You can also listen to\r\n * {\\@link AbstractControl#statusChanges} to be notified when the validation status is\r\n * re-calculated.\r\n *\r\n * ### Example\r\n *\r\n * In this example, we create form controls for first name and last name.\r\n *\r\n * {\\@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\r\n *\r\n * To see `formControlName` examples with different form control types, see:\r\n *\r\n * * Radio buttons: {\\@link RadioControlValueAccessor}\r\n * * Selects: {\\@link SelectControlValueAccessor}\r\n *\r\n * **npm package**: `\\@angular/forms`\r\n *\r\n * **NgModule**: {\\@link ReactiveFormsModule}\r\n *\r\n *  \\@stable\r\n */\r\nvar FormControlName = (function (_super) {\r\n    __extends(FormControlName, _super);\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} validators\r\n     * @param {?} asyncValidators\r\n     * @param {?} valueAccessors\r\n     */\r\n    function FormControlName(parent, validators, asyncValidators, valueAccessors) {\r\n        var _this = _super.call(this) || this;\r\n        _this._added = false;\r\n        _this.update = new EventEmitter();\r\n        _this._parent = parent;\r\n        _this._rawValidators = validators || [];\r\n        _this._rawAsyncValidators = asyncValidators || [];\r\n        _this.valueAccessor = selectValueAccessor(_this, valueAccessors);\r\n        return _this;\r\n    }\r\n    Object.defineProperty(FormControlName.prototype, \"isDisabled\", {\r\n        /**\r\n         * @param {?} isDisabled\r\n         * @return {?}\r\n         */\r\n        set: function (isDisabled) { ReactiveErrors.disabledAttrWarning(); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    FormControlName.prototype.ngOnChanges = function (changes) {\r\n        if (!this._added)\r\n            this._setUpControl();\r\n        if (isPropertyUpdated(changes, this.viewModel)) {\r\n            this.viewModel = this.model;\r\n            this.formDirective.updateModel(this, this.model);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    FormControlName.prototype.ngOnDestroy = function () {\r\n        if (this.formDirective) {\r\n            this.formDirective.removeControl(this);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} newValue\r\n     * @return {?}\r\n     */\r\n    FormControlName.prototype.viewToModelUpdate = function (newValue) {\r\n        this.viewModel = newValue;\r\n        this.update.emit(newValue);\r\n    };\r\n    Object.defineProperty(FormControlName.prototype, \"path\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return controlPath(this.name, /** @type {?} */ ((this._parent))); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormControlName.prototype, \"formDirective\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._parent ? this._parent.formDirective : null; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormControlName.prototype, \"validator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return composeValidators(this._rawValidators); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormControlName.prototype, \"asyncValidator\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return ((composeAsyncValidators(this._rawAsyncValidators)));\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(FormControlName.prototype, \"control\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._control; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    FormControlName.prototype._checkParentType = function () {\r\n        if (!(this._parent instanceof FormGroupName) &&\r\n            this._parent instanceof AbstractFormGroupDirective) {\r\n            ReactiveErrors.ngModelGroupException();\r\n        }\r\n        else if (!(this._parent instanceof FormGroupName) && !(this._parent instanceof FormGroupDirective) &&\r\n            !(this._parent instanceof FormArrayName)) {\r\n            ReactiveErrors.controlParentException();\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    FormControlName.prototype._setUpControl = function () {\r\n        this._checkParentType();\r\n        this._control = this.formDirective.addControl(this);\r\n        if (this.control.disabled && ((this.valueAccessor)).setDisabledState) {\r\n            ((((this.valueAccessor)).setDisabledState))(true);\r\n        }\r\n        this._added = true;\r\n    };\r\n    return FormControlName;\r\n}(NgControl));\r\nFormControlName.decorators = [\r\n    { type: Directive, args: [{ selector: '[formControlName]', providers: [controlNameBinding] },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nFormControlName.ctorParameters = function () { return [\r\n    { type: ControlContainer, decorators: [{ type: Optional }, { type: Host }, { type: SkipSelf },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_ASYNC_VALIDATORS,] },] },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NG_VALUE_ACCESSOR,] },] },\r\n]; };\r\nFormControlName.propDecorators = {\r\n    'name': [{ type: Input, args: ['formControlName',] },],\r\n    'model': [{ type: Input, args: ['ngModel',] },],\r\n    'update': [{ type: Output, args: ['ngModelChange',] },],\r\n    'isDisabled': [{ type: Input, args: ['disabled',] },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar REQUIRED_VALIDATOR = {\r\n    provide: NG_VALIDATORS,\r\n    useExisting: forwardRef(function () { return RequiredValidator; }),\r\n    multi: true\r\n};\r\nvar CHECKBOX_REQUIRED_VALIDATOR = {\r\n    provide: NG_VALIDATORS,\r\n    useExisting: forwardRef(function () { return CheckboxRequiredValidator; }),\r\n    multi: true\r\n};\r\n/**\r\n * A Directive that adds the `required` validator to any controls marked with the\r\n * `required` attribute, via the {\\@link NG_VALIDATORS} binding.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * <input name=\"fullName\" ngModel required>\r\n * ```\r\n *\r\n * \\@stable\r\n */\r\nvar RequiredValidator = (function () {\r\n    function RequiredValidator() {\r\n    }\r\n    Object.defineProperty(RequiredValidator.prototype, \"required\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._required; },\r\n        /**\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) {\r\n            this._required = value != null && value !== false && \"\" + value !== 'false';\r\n            if (this._onChange)\r\n                this._onChange();\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} c\r\n     * @return {?}\r\n     */\r\n    RequiredValidator.prototype.validate = function (c) {\r\n        return this.required ? Validators.required(c) : null;\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    RequiredValidator.prototype.registerOnValidatorChange = function (fn) { this._onChange = fn; };\r\n    return RequiredValidator;\r\n}());\r\nRequiredValidator.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',\r\n                providers: [REQUIRED_VALIDATOR],\r\n                host: { '[attr.required]': 'required ? \"\" : null' }\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRequiredValidator.ctorParameters = function () { return []; };\r\nRequiredValidator.propDecorators = {\r\n    'required': [{ type: Input },],\r\n};\r\n/**\r\n * A Directive that adds the `required` validator to checkbox controls marked with the\r\n * `required` attribute, via the {\\@link NG_VALIDATORS} binding.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * <input type=\"checkbox\" name=\"active\" ngModel required>\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar CheckboxRequiredValidator = (function (_super) {\r\n    __extends(CheckboxRequiredValidator, _super);\r\n    function CheckboxRequiredValidator() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} c\r\n     * @return {?}\r\n     */\r\n    CheckboxRequiredValidator.prototype.validate = function (c) {\r\n        return this.required ? Validators.requiredTrue(c) : null;\r\n    };\r\n    return CheckboxRequiredValidator;\r\n}(RequiredValidator));\r\nCheckboxRequiredValidator.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',\r\n                providers: [CHECKBOX_REQUIRED_VALIDATOR],\r\n                host: { '[attr.required]': 'required ? \"\" : null' }\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nCheckboxRequiredValidator.ctorParameters = function () { return []; };\r\n/**\r\n * Provider which adds {@link EmailValidator} to {@link NG_VALIDATORS}.\r\n */\r\nvar EMAIL_VALIDATOR = {\r\n    provide: NG_VALIDATORS,\r\n    useExisting: forwardRef(function () { return EmailValidator; }),\r\n    multi: true\r\n};\r\n/**\r\n * A Directive that adds the `email` validator to controls marked with the\r\n * `email` attribute, via the {\\@link NG_VALIDATORS} binding.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * <input type=\"email\" name=\"email\" ngModel email>\r\n * <input type=\"email\" name=\"email\" ngModel email=\"true\">\r\n * <input type=\"email\" name=\"email\" ngModel [email]=\"true\">\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar EmailValidator = (function () {\r\n    function EmailValidator() {\r\n    }\r\n    Object.defineProperty(EmailValidator.prototype, \"email\", {\r\n        /**\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) {\r\n            this._enabled = value === '' || value === true || value === 'true';\r\n            if (this._onChange)\r\n                this._onChange();\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} c\r\n     * @return {?}\r\n     */\r\n    EmailValidator.prototype.validate = function (c) {\r\n        return this._enabled ? Validators.email(c) : null;\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    EmailValidator.prototype.registerOnValidatorChange = function (fn) { this._onChange = fn; };\r\n    return EmailValidator;\r\n}());\r\nEmailValidator.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: '[email][formControlName],[email][formControl],[email][ngModel]',\r\n                providers: [EMAIL_VALIDATOR]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nEmailValidator.ctorParameters = function () { return []; };\r\nEmailValidator.propDecorators = {\r\n    'email': [{ type: Input },],\r\n};\r\n/**\r\n * Provider which adds {@link MinLengthValidator} to {@link NG_VALIDATORS}.\r\n *\r\n * ## Example:\r\n *\r\n * {@example common/forms/ts/validators/validators.ts region='min'}\r\n */\r\nvar MIN_LENGTH_VALIDATOR = {\r\n    provide: NG_VALIDATORS,\r\n    useExisting: forwardRef(function () { return MinLengthValidator; }),\r\n    multi: true\r\n};\r\n/**\r\n * A directive which installs the {\\@link MinLengthValidator} for any `formControlName`,\r\n * `formControl`, or control with `ngModel` that also has a `minlength` attribute.\r\n *\r\n * \\@stable\r\n */\r\nvar MinLengthValidator = (function () {\r\n    function MinLengthValidator() {\r\n    }\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    MinLengthValidator.prototype.ngOnChanges = function (changes) {\r\n        if ('minlength' in changes) {\r\n            this._createValidator();\r\n            if (this._onChange)\r\n                this._onChange();\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} c\r\n     * @return {?}\r\n     */\r\n    MinLengthValidator.prototype.validate = function (c) {\r\n        return this.minlength == null ? null : this._validator(c);\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    MinLengthValidator.prototype.registerOnValidatorChange = function (fn) { this._onChange = fn; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    MinLengthValidator.prototype._createValidator = function () {\r\n        this._validator = Validators.minLength(parseInt(this.minlength, 10));\r\n    };\r\n    return MinLengthValidator;\r\n}());\r\nMinLengthValidator.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',\r\n                providers: [MIN_LENGTH_VALIDATOR],\r\n                host: { '[attr.minlength]': 'minlength ? minlength : null' }\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nMinLengthValidator.ctorParameters = function () { return []; };\r\nMinLengthValidator.propDecorators = {\r\n    'minlength': [{ type: Input },],\r\n};\r\n/**\r\n * Provider which adds {@link MaxLengthValidator} to {@link NG_VALIDATORS}.\r\n *\r\n * ## Example:\r\n *\r\n * {@example common/forms/ts/validators/validators.ts region='max'}\r\n */\r\nvar MAX_LENGTH_VALIDATOR = {\r\n    provide: NG_VALIDATORS,\r\n    useExisting: forwardRef(function () { return MaxLengthValidator; }),\r\n    multi: true\r\n};\r\n/**\r\n * A directive which installs the {\\@link MaxLengthValidator} for any `formControlName,\r\n * `formControl`,\r\n * or control with `ngModel` that also has a `maxlength` attribute.\r\n *\r\n * \\@stable\r\n */\r\nvar MaxLengthValidator = (function () {\r\n    function MaxLengthValidator() {\r\n    }\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    MaxLengthValidator.prototype.ngOnChanges = function (changes) {\r\n        if ('maxlength' in changes) {\r\n            this._createValidator();\r\n            if (this._onChange)\r\n                this._onChange();\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} c\r\n     * @return {?}\r\n     */\r\n    MaxLengthValidator.prototype.validate = function (c) {\r\n        return this.maxlength != null ? this._validator(c) : null;\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    MaxLengthValidator.prototype.registerOnValidatorChange = function (fn) { this._onChange = fn; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    MaxLengthValidator.prototype._createValidator = function () {\r\n        this._validator = Validators.maxLength(parseInt(this.maxlength, 10));\r\n    };\r\n    return MaxLengthValidator;\r\n}());\r\nMaxLengthValidator.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',\r\n                providers: [MAX_LENGTH_VALIDATOR],\r\n                host: { '[attr.maxlength]': 'maxlength ? maxlength : null' }\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nMaxLengthValidator.ctorParameters = function () { return []; };\r\nMaxLengthValidator.propDecorators = {\r\n    'maxlength': [{ type: Input },],\r\n};\r\nvar PATTERN_VALIDATOR = {\r\n    provide: NG_VALIDATORS,\r\n    useExisting: forwardRef(function () { return PatternValidator; }),\r\n    multi: true\r\n};\r\n/**\r\n * A Directive that adds the `pattern` validator to any controls marked with the\r\n * `pattern` attribute, via the {\\@link NG_VALIDATORS} binding. Uses attribute value\r\n * as the regex to validate Control value against.  Follows pattern attribute\r\n * semantics; i.e. regex must match entire Control value.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * <input [name]=\"fullName\" pattern=\"[a-zA-Z ]*\" ngModel>\r\n * ```\r\n * \\@stable\r\n */\r\nvar PatternValidator = (function () {\r\n    function PatternValidator() {\r\n    }\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    PatternValidator.prototype.ngOnChanges = function (changes) {\r\n        if ('pattern' in changes) {\r\n            this._createValidator();\r\n            if (this._onChange)\r\n                this._onChange();\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} c\r\n     * @return {?}\r\n     */\r\n    PatternValidator.prototype.validate = function (c) { return this._validator(c); };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    PatternValidator.prototype.registerOnValidatorChange = function (fn) { this._onChange = fn; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    PatternValidator.prototype._createValidator = function () { this._validator = Validators.pattern(this.pattern); };\r\n    return PatternValidator;\r\n}());\r\nPatternValidator.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',\r\n                providers: [PATTERN_VALIDATOR],\r\n                host: { '[attr.pattern]': 'pattern ? pattern : null' }\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nPatternValidator.ctorParameters = function () { return []; };\r\nPatternValidator.propDecorators = {\r\n    'pattern': [{ type: Input },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Creates an {\\@link AbstractControl} from a user-specified configuration.\r\n *\r\n * It is essentially syntactic sugar that shortens the `new FormGroup()`,\r\n * `new FormControl()`, and `new FormArray()` boilerplate that can build up in larger\r\n * forms.\r\n *\r\n * \\@howToUse\r\n *\r\n * To use, inject `FormBuilder` into your component class. You can then call its methods\r\n * directly.\r\n *\r\n * {\\@example forms/ts/formBuilder/form_builder_example.ts region='Component'}\r\n *\r\n *  * **npm package**: `\\@angular/forms`\r\n *\r\n *  * **NgModule**: {\\@link ReactiveFormsModule}\r\n *\r\n * \\@stable\r\n */\r\nvar FormBuilder = (function () {\r\n    function FormBuilder() {\r\n    }\r\n    /**\r\n     * Construct a new {\\@link FormGroup} with the given map of configuration.\r\n     * Valid keys for the `extra` parameter map are `validator` and `asyncValidator`.\r\n     *\r\n     * See the {\\@link FormGroup} constructor for more details.\r\n     * @param {?} controlsConfig\r\n     * @param {?=} extra\r\n     * @return {?}\r\n     */\r\n    FormBuilder.prototype.group = function (controlsConfig, extra) {\r\n        if (extra === void 0) { extra = null; }\r\n        var /** @type {?} */ controls = this._reduceControls(controlsConfig);\r\n        var /** @type {?} */ validator = extra != null ? extra['validator'] : null;\r\n        var /** @type {?} */ asyncValidator = extra != null ? extra['asyncValidator'] : null;\r\n        return new FormGroup(controls, validator, asyncValidator);\r\n    };\r\n    /**\r\n     * Construct a new {\\@link FormControl} with the given `formState`,`validator`, and\r\n     * `asyncValidator`.\r\n     *\r\n     * `formState` can either be a standalone value for the form control or an object\r\n     * that contains both a value and a disabled status.\r\n     *\r\n     * @param {?} formState\r\n     * @param {?=} validator\r\n     * @param {?=} asyncValidator\r\n     * @return {?}\r\n     */\r\n    FormBuilder.prototype.control = function (formState, validator, asyncValidator) {\r\n        return new FormControl(formState, validator, asyncValidator);\r\n    };\r\n    /**\r\n     * Construct a {\\@link FormArray} from the given `controlsConfig` array of\r\n     * configuration, with the given optional `validator` and `asyncValidator`.\r\n     * @param {?} controlsConfig\r\n     * @param {?=} validator\r\n     * @param {?=} asyncValidator\r\n     * @return {?}\r\n     */\r\n    FormBuilder.prototype.array = function (controlsConfig, validator, asyncValidator) {\r\n        var _this = this;\r\n        var /** @type {?} */ controls = controlsConfig.map(function (c) { return _this._createControl(c); });\r\n        return new FormArray(controls, validator, asyncValidator);\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} controlsConfig\r\n     * @return {?}\r\n     */\r\n    FormBuilder.prototype._reduceControls = function (controlsConfig) {\r\n        var _this = this;\r\n        var /** @type {?} */ controls = {};\r\n        Object.keys(controlsConfig).forEach(function (controlName) {\r\n            controls[controlName] = _this._createControl(controlsConfig[controlName]);\r\n        });\r\n        return controls;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} controlConfig\r\n     * @return {?}\r\n     */\r\n    FormBuilder.prototype._createControl = function (controlConfig) {\r\n        if (controlConfig instanceof FormControl || controlConfig instanceof FormGroup ||\r\n            controlConfig instanceof FormArray) {\r\n            return controlConfig;\r\n        }\r\n        else if (Array.isArray(controlConfig)) {\r\n            var /** @type {?} */ value = controlConfig[0];\r\n            var /** @type {?} */ validator = controlConfig.length > 1 ? controlConfig[1] : null;\r\n            var /** @type {?} */ asyncValidator = controlConfig.length > 2 ? controlConfig[2] : null;\r\n            return this.control(value, validator, asyncValidator);\r\n        }\r\n        else {\r\n            return this.control(controlConfig);\r\n        }\r\n    };\r\n    return FormBuilder;\r\n}());\r\nFormBuilder.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nFormBuilder.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the common package.\r\n */\r\n/**\r\n * \\@stable\r\n */\r\nvar VERSION = new Version('4.1.3');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Adds `novalidate` attribute to all forms by default.\r\n *\r\n * `novalidate` is used to disable browser's native form validation.\r\n *\r\n * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:\r\n *\r\n * ```\r\n * <form ngNativeValidate></form>\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar NgNoValidate = (function () {\r\n    function NgNoValidate() {\r\n    }\r\n    return NgNoValidate;\r\n}());\r\nNgNoValidate.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: 'form:not([ngNoForm]):not([ngNativeValidate])',\r\n                host: { 'novalidate': '' },\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgNoValidate.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar SHARED_FORM_DIRECTIVES = [\r\n    NgNoValidate,\r\n    NgSelectOption,\r\n    NgSelectMultipleOption,\r\n    DefaultValueAccessor,\r\n    NumberValueAccessor,\r\n    RangeValueAccessor,\r\n    CheckboxControlValueAccessor,\r\n    SelectControlValueAccessor,\r\n    SelectMultipleControlValueAccessor,\r\n    RadioControlValueAccessor,\r\n    NgControlStatus,\r\n    NgControlStatusGroup,\r\n    RequiredValidator,\r\n    MinLengthValidator,\r\n    MaxLengthValidator,\r\n    PatternValidator,\r\n    CheckboxRequiredValidator,\r\n    EmailValidator,\r\n];\r\nvar TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];\r\nvar REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];\r\n/**\r\n * Internal module used for sharing directives between FormsModule and ReactiveFormsModule\r\n */\r\nvar InternalFormsSharedModule = (function () {\r\n    function InternalFormsSharedModule() {\r\n    }\r\n    return InternalFormsSharedModule;\r\n}());\r\nInternalFormsSharedModule.decorators = [\r\n    { type: NgModule, args: [{\r\n                declarations: SHARED_FORM_DIRECTIVES,\r\n                exports: SHARED_FORM_DIRECTIVES,\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nInternalFormsSharedModule.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * The ng module for forms.\r\n * \\@stable\r\n */\r\nvar FormsModule = (function () {\r\n    function FormsModule() {\r\n    }\r\n    return FormsModule;\r\n}());\r\nFormsModule.decorators = [\r\n    { type: NgModule, args: [{\r\n                declarations: TEMPLATE_DRIVEN_DIRECTIVES,\r\n                providers: [RadioControlRegistry],\r\n                exports: [InternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nFormsModule.ctorParameters = function () { return []; };\r\n/**\r\n * The ng module for reactive forms.\r\n * \\@stable\r\n */\r\nvar ReactiveFormsModule = (function () {\r\n    function ReactiveFormsModule() {\r\n    }\r\n    return ReactiveFormsModule;\r\n}());\r\nReactiveFormsModule.decorators = [\r\n    { type: NgModule, args: [{\r\n                declarations: [REACTIVE_DRIVEN_DIRECTIVES],\r\n                providers: [FormBuilder, RadioControlRegistry],\r\n                exports: [InternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nReactiveFormsModule.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * This module is used for handling user input, by defining and building a {@link FormGroup} that\r\n * consists of {@link FormControl} objects, and mapping them onto the DOM. {@link FormControl}\r\n * objects can then be used to read information from the form DOM elements.\r\n *\r\n * Forms providers are not included in default providers; you must import these providers\r\n * explicitly.\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the forms package.\r\n */\r\n// This file only reexports content of the `src` folder. Keep it that way.\r\n/**\r\n * Generated bundle index. Do not edit.\r\n */\r\nexport { AbstractControlDirective, AbstractFormGroupDirective, CheckboxControlValueAccessor, ControlContainer, NG_VALUE_ACCESSOR, COMPOSITION_BUFFER_MODE, DefaultValueAccessor, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, RadioControlValueAccessor, FormControlDirective, FormControlName, FormGroupDirective, FormArrayName, FormGroupName, NgSelectOption, SelectControlValueAccessor, SelectMultipleControlValueAccessor, CheckboxRequiredValidator, EmailValidator, MaxLengthValidator, MinLengthValidator, PatternValidator, RequiredValidator, FormBuilder, AbstractControl, FormArray, FormControl, FormGroup, NG_ASYNC_VALIDATORS, NG_VALIDATORS, Validators, VERSION, FormsModule, ReactiveFormsModule, InternalFormsSharedModule as ɵba, REACTIVE_DRIVEN_DIRECTIVES as ɵz, SHARED_FORM_DIRECTIVES as ɵx, TEMPLATE_DRIVEN_DIRECTIVES as ɵy, CHECKBOX_VALUE_ACCESSOR as ɵa, DEFAULT_VALUE_ACCESSOR as ɵb, AbstractControlStatus as ɵc, ngControlStatusHost as ɵd, formDirectiveProvider as ɵe, formControlBinding as ɵf, modelGroupProvider as ɵg, NgNoValidate as ɵbf, NUMBER_VALUE_ACCESSOR as ɵbb, NumberValueAccessor as ɵbc, RADIO_VALUE_ACCESSOR as ɵh, RadioControlRegistry as ɵi, RANGE_VALUE_ACCESSOR as ɵbd, RangeValueAccessor as ɵbe, formControlBinding$1 as ɵj, controlNameBinding as ɵk, formDirectiveProvider$1 as ɵl, formArrayNameProvider as ɵn, formGroupNameProvider as ɵm, SELECT_VALUE_ACCESSOR as ɵo, NgSelectMultipleOption as ɵq, SELECT_MULTIPLE_VALUE_ACCESSOR as ɵp, CHECKBOX_REQUIRED_VALIDATOR as ɵs, EMAIL_VALIDATOR as ɵt, MAX_LENGTH_VALIDATOR as ɵv, MIN_LENGTH_VALIDATOR as ɵu, PATTERN_VALIDATOR as ɵw, REQUIRED_VALIDATOR as ɵr };\r\n//# sourceMappingURL=forms.es5.js.map\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angular/forms/@angular/forms.es5.js\n// module id = 16\n// module chunks = 2","'use strict';\r\n\r\n/**\r\n * A worker that does nothing but passing chunks to the next one. This is like\r\n * a nodejs stream but with some differences. On the good side :\r\n * - it works on IE 6-9 without any issue / polyfill\r\n * - it weights less than the full dependencies bundled with browserify\r\n * - it forwards errors (no need to declare an error handler EVERYWHERE)\r\n *\r\n * A chunk is an object with 2 attributes : `meta` and `data`. The former is an\r\n * object containing anything (`percent` for example), see each worker for more\r\n * details. The latter is the real data (String, Uint8Array, etc).\r\n *\r\n * @constructor\r\n * @param {String} name the name of the stream (mainly used for debugging purposes)\r\n */\r\nfunction GenericWorker(name) {\r\n    // the name of the worker\r\n    this.name = name || \"default\";\r\n    // an object containing metadata about the workers chain\r\n    this.streamInfo = {};\r\n    // an error which happened when the worker was paused\r\n    this.generatedError = null;\r\n    // an object containing metadata to be merged by this worker into the general metadata\r\n    this.extraStreamInfo = {};\r\n    // true if the stream is paused (and should not do anything), false otherwise\r\n    this.isPaused = true;\r\n    // true if the stream is finished (and should not do anything), false otherwise\r\n    this.isFinished = false;\r\n    // true if the stream is locked to prevent further structure updates (pipe), false otherwise\r\n    this.isLocked = false;\r\n    // the event listeners\r\n    this._listeners = {\r\n        'data':[],\r\n        'end':[],\r\n        'error':[]\r\n    };\r\n    // the previous worker, if any\r\n    this.previous = null;\r\n}\r\n\r\nGenericWorker.prototype = {\r\n    /**\r\n     * Push a chunk to the next workers.\r\n     * @param {Object} chunk the chunk to push\r\n     */\r\n    push : function (chunk) {\r\n        this.emit(\"data\", chunk);\r\n    },\r\n    /**\r\n     * End the stream.\r\n     * @return {Boolean} true if this call ended the worker, false otherwise.\r\n     */\r\n    end : function () {\r\n        if (this.isFinished) {\r\n            return false;\r\n        }\r\n\r\n        this.flush();\r\n        try {\r\n            this.emit(\"end\");\r\n            this.cleanUp();\r\n            this.isFinished = true;\r\n        } catch (e) {\r\n            this.emit(\"error\", e);\r\n        }\r\n        return true;\r\n    },\r\n    /**\r\n     * End the stream with an error.\r\n     * @param {Error} e the error which caused the premature end.\r\n     * @return {Boolean} true if this call ended the worker with an error, false otherwise.\r\n     */\r\n    error : function (e) {\r\n        if (this.isFinished) {\r\n            return false;\r\n        }\r\n\r\n        if(this.isPaused) {\r\n            this.generatedError = e;\r\n        } else {\r\n            this.isFinished = true;\r\n\r\n            this.emit(\"error\", e);\r\n\r\n            // in the workers chain exploded in the middle of the chain,\r\n            // the error event will go downward but we also need to notify\r\n            // workers upward that there has been an error.\r\n            if(this.previous) {\r\n                this.previous.error(e);\r\n            }\r\n\r\n            this.cleanUp();\r\n        }\r\n        return true;\r\n    },\r\n    /**\r\n     * Add a callback on an event.\r\n     * @param {String} name the name of the event (data, end, error)\r\n     * @param {Function} listener the function to call when the event is triggered\r\n     * @return {GenericWorker} the current object for chainability\r\n     */\r\n    on : function (name, listener) {\r\n        this._listeners[name].push(listener);\r\n        return this;\r\n    },\r\n    /**\r\n     * Clean any references when a worker is ending.\r\n     */\r\n    cleanUp : function () {\r\n        this.streamInfo = this.generatedError = this.extraStreamInfo = null;\r\n        this._listeners = [];\r\n    },\r\n    /**\r\n     * Trigger an event. This will call registered callback with the provided arg.\r\n     * @param {String} name the name of the event (data, end, error)\r\n     * @param {Object} arg the argument to call the callback with.\r\n     */\r\n    emit : function (name, arg) {\r\n        if (this._listeners[name]) {\r\n            for(var i = 0; i < this._listeners[name].length; i++) {\r\n                this._listeners[name][i].call(this, arg);\r\n            }\r\n        }\r\n    },\r\n    /**\r\n     * Chain a worker with an other.\r\n     * @param {Worker} next the worker receiving events from the current one.\r\n     * @return {worker} the next worker for chainability\r\n     */\r\n    pipe : function (next) {\r\n        return next.registerPrevious(this);\r\n    },\r\n    /**\r\n     * Same as `pipe` in the other direction.\r\n     * Using an API with `pipe(next)` is very easy.\r\n     * Implementing the API with the point of view of the next one registering\r\n     * a source is easier, see the ZipFileWorker.\r\n     * @param {Worker} previous the previous worker, sending events to this one\r\n     * @return {Worker} the current worker for chainability\r\n     */\r\n    registerPrevious : function (previous) {\r\n        if (this.isLocked) {\r\n            throw new Error(\"The stream '\" + this + \"' has already been used.\");\r\n        }\r\n\r\n        // sharing the streamInfo...\r\n        this.streamInfo = previous.streamInfo;\r\n        // ... and adding our own bits\r\n        this.mergeStreamInfo();\r\n        this.previous =  previous;\r\n        var self = this;\r\n        previous.on('data', function (chunk) {\r\n            self.processChunk(chunk);\r\n        });\r\n        previous.on('end', function () {\r\n            self.end();\r\n        });\r\n        previous.on('error', function (e) {\r\n            self.error(e);\r\n        });\r\n        return this;\r\n    },\r\n    /**\r\n     * Pause the stream so it doesn't send events anymore.\r\n     * @return {Boolean} true if this call paused the worker, false otherwise.\r\n     */\r\n    pause : function () {\r\n        if(this.isPaused || this.isFinished) {\r\n            return false;\r\n        }\r\n        this.isPaused = true;\r\n\r\n        if(this.previous) {\r\n            this.previous.pause();\r\n        }\r\n        return true;\r\n    },\r\n    /**\r\n     * Resume a paused stream.\r\n     * @return {Boolean} true if this call resumed the worker, false otherwise.\r\n     */\r\n    resume : function () {\r\n        if(!this.isPaused || this.isFinished) {\r\n            return false;\r\n        }\r\n        this.isPaused = false;\r\n\r\n        // if true, the worker tried to resume but failed\r\n        var withError = false;\r\n        if(this.generatedError) {\r\n            this.error(this.generatedError);\r\n            withError = true;\r\n        }\r\n        if(this.previous) {\r\n            this.previous.resume();\r\n        }\r\n\r\n        return !withError;\r\n    },\r\n    /**\r\n     * Flush any remaining bytes as the stream is ending.\r\n     */\r\n    flush : function () {},\r\n    /**\r\n     * Process a chunk. This is usually the method overridden.\r\n     * @param {Object} chunk the chunk to process.\r\n     */\r\n    processChunk : function(chunk) {\r\n        this.push(chunk);\r\n    },\r\n    /**\r\n     * Add a key/value to be added in the workers chain streamInfo once activated.\r\n     * @param {String} key the key to use\r\n     * @param {Object} value the associated value\r\n     * @return {Worker} the current worker for chainability\r\n     */\r\n    withStreamInfo : function (key, value) {\r\n        this.extraStreamInfo[key] = value;\r\n        this.mergeStreamInfo();\r\n        return this;\r\n    },\r\n    /**\r\n     * Merge this worker's streamInfo into the chain's streamInfo.\r\n     */\r\n    mergeStreamInfo : function () {\r\n        for(var key in this.extraStreamInfo) {\r\n            if (!this.extraStreamInfo.hasOwnProperty(key)) {\r\n                continue;\r\n            }\r\n            this.streamInfo[key] = this.extraStreamInfo[key];\r\n        }\r\n    },\r\n\r\n    /**\r\n     * Lock the stream to prevent further updates on the workers chain.\r\n     * After calling this method, all calls to pipe will fail.\r\n     */\r\n    lock: function () {\r\n        if (this.isLocked) {\r\n            throw new Error(\"The stream '\" + this + \"' has already been used.\");\r\n        }\r\n        this.isLocked = true;\r\n        if (this.previous) {\r\n            this.previous.lock();\r\n        }\r\n    },\r\n\r\n    /**\r\n     *\r\n     * Pretty print the workers chain.\r\n     */\r\n    toString : function () {\r\n        var me = \"Worker \" + this.name;\r\n        if (this.previous) {\r\n            return this.previous + \" -> \" + me;\r\n        } else {\r\n            return me;\r\n        }\r\n    }\r\n};\r\n\r\nmodule.exports = GenericWorker;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/stream/GenericWorker.js\n// module id = 23\n// module chunks = 2","\"use strict\";\r\n/**\r\n * window: browser in DOM main thread\r\n * self: browser in WebWorker\r\n * global: Node.js/other\r\n */\r\nexports.root = (typeof window == 'object' && window.window === window && window\r\n    || typeof self == 'object' && self.self === self && self\r\n    || typeof global == 'object' && global.global === global && global);\r\nif (!exports.root) {\r\n    throw new Error('RxJS could not find any global context (window, self, global)');\r\n}\r\n//# sourceMappingURL=root.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/root.js\n// module id = 35\n// module chunks = 2","var __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * @license Angular v4.1.3\r\n * (c) 2010-2017 Google, Inc. https://angular.io/\r\n * License: MIT\r\n */\r\nimport { CommonModule, PlatformLocation, ɵPLATFORM_BROWSER_ID } from '@angular/common';\r\nimport { APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, ErrorHandler, Inject, Injectable, InjectionToken, Injector, NgModule, NgProbeToken, NgZone, Optional, PLATFORM_ID, PLATFORM_INITIALIZER, RendererFactory2, RendererStyleFlags2, Sanitizer, SecurityContext, SkipSelf, Testability, Version, ViewEncapsulation, createPlatformFactory, getDebugNode, isDevMode, platformCore, setTestabilityGetter, ɵglobal } from '@angular/core';\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _DOM = ((null));\r\n/**\r\n * @return {?}\r\n */\r\nfunction getDOM() {\r\n    return _DOM;\r\n}\r\n/**\r\n * @param {?} adapter\r\n * @return {?}\r\n */\r\n/**\r\n * @param {?} adapter\r\n * @return {?}\r\n */\r\nfunction setRootDomAdapter(adapter) {\r\n    if (!_DOM) {\r\n        _DOM = adapter;\r\n    }\r\n}\r\n/**\r\n * Provides DOM operations in an environment-agnostic way.\r\n *\r\n * \\@security Tread carefully! Interacting with the DOM directly is dangerous and\r\n * can introduce XSS risks.\r\n * @abstract\r\n */\r\nvar DomAdapter = (function () {\r\n    function DomAdapter() {\r\n        this.resourceLoaderType = ((null));\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.hasProperty = function (element, name) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setProperty = function (el, name, value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getProperty = function (el, name) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} methodName\r\n     * @param {?} args\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.invoke = function (el, methodName, args) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} error\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.logError = function (error) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} error\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.log = function (error) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} error\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.logGroup = function (error) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.logGroupEnd = function () { };\r\n    Object.defineProperty(DomAdapter.prototype, \"attrToPropMap\", {\r\n        /**\r\n         * Maps attribute names to their corresponding property names for cases\r\n         * where attribute name doesn't match property name.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._attrToPropMap; },\r\n        /**\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) { this._attrToPropMap = value; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    ;\r\n    ;\r\n    /**\r\n     * @abstract\r\n     * @param {?} nodeA\r\n     * @param {?} nodeB\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.contains = function (nodeA, nodeB) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} templateHtml\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.parse = function (templateHtml) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.querySelector = function (el, selector) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.querySelectorAll = function (el, selector) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} evt\r\n     * @param {?} listener\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.on = function (el, evt, listener) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} evt\r\n     * @param {?} listener\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.onAndCancel = function (el, evt, listener) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} evt\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.dispatchEvent = function (el, evt) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} eventType\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createMouseEvent = function (eventType) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} eventType\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createEvent = function (eventType) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} evt\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.preventDefault = function (evt) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} evt\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.isPrevented = function (evt) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getInnerHTML = function (el) { };\r\n    /**\r\n     * Returns content if el is a <template> element, null otherwise.\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getTemplateContent = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getOuterHTML = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.nodeName = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.nodeValue = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.type = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.content = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.firstChild = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.nextSibling = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.parentElement = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.childNodes = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.childNodesAsList = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.clearNodes = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.appendChild = function (el, node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.removeChild = function (el, node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} newNode\r\n     * @param {?} oldNode\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.replaceChild = function (el, newNode, oldNode) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.remove = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} parent\r\n     * @param {?} ref\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.insertBefore = function (parent, ref, node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} parent\r\n     * @param {?} ref\r\n     * @param {?} nodes\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.insertAllBefore = function (parent, ref, nodes) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} parent\r\n     * @param {?} el\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.insertAfter = function (parent, el, node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setInnerHTML = function (el, value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getText = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setText = function (el, value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getValue = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setValue = function (el, value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getChecked = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setChecked = function (el, value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} text\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createComment = function (text) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} html\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createTemplate = function (html) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} tagName\r\n     * @param {?=} doc\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createElement = function (tagName, doc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} ns\r\n     * @param {?} tagName\r\n     * @param {?=} doc\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createElementNS = function (ns, tagName, doc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} text\r\n     * @param {?=} doc\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createTextNode = function (text, doc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} attrName\r\n     * @param {?} attrValue\r\n     * @param {?=} doc\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createScriptTag = function (attrName, attrValue, doc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} css\r\n     * @param {?=} doc\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createStyleElement = function (css, doc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createShadowRoot = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getShadowRoot = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getHost = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getDistributedNodes = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.clone /*<T extends Node>*/ = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getElementsByClassName = function (element, name) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getElementsByTagName = function (element, name) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.classList = function (element) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} className\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.addClass = function (element, className) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} className\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.removeClass = function (element, className) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} className\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.hasClass = function (element, className) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} styleName\r\n     * @param {?} styleValue\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setStyle = function (element, styleName, styleValue) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} styleName\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.removeStyle = function (element, styleName) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} styleName\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getStyle = function (element, styleName) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} styleName\r\n     * @param {?=} styleValue\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.hasStyle = function (element, styleName, styleValue) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.tagName = function (element) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.attributeMap = function (element) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} attribute\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.hasAttribute = function (element, attribute) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} ns\r\n     * @param {?} attribute\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.hasAttributeNS = function (element, ns, attribute) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} attribute\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getAttribute = function (element, attribute) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} ns\r\n     * @param {?} attribute\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getAttributeNS = function (element, ns, attribute) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setAttribute = function (element, name, value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} ns\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setAttributeNS = function (element, ns, name, value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} attribute\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.removeAttribute = function (element, attribute) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} ns\r\n     * @param {?} attribute\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.removeAttributeNS = function (element, ns, attribute) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.templateAwareRoot = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.createHtmlDocument = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getBoundingClientRect = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} doc\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getTitle = function (doc) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} doc\r\n     * @param {?} newTitle\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setTitle = function (doc, newTitle) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} n\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.elementMatches = function (n, selector) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.isTemplateElement = function (el) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.isTextNode = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.isCommentNode = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.isElementNode = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.hasShadowRoot = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.isShadowRoot = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.importIntoDoc /*<T extends Node>*/ = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.adoptNode /*<T extends Node>*/ = function (node) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getHref = function (element) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} event\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getEventKey = function (event) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} baseUrl\r\n     * @param {?} href\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.resolveAndSetHref = function (element, baseUrl, href) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.supportsDOMEvents = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.supportsNativeShadowDOM = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} doc\r\n     * @param {?} target\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getGlobalEventTarget = function (doc, target) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getHistory = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getLocation = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} doc\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getBaseHref = function (doc) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.resetBaseElement = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getUserAgent = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setData = function (element, name, value) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getComputedStyle = function (element) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getData = function (element, name) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setGlobalVar = function (name, value) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.supportsWebAnimation = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.performanceNow = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getAnimationPrefix = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getTransitionEnd = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.supportsAnimation = function () { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.supportsCookies = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.getCookie = function (name) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomAdapter.prototype.setCookie = function (name, value) { };\r\n    return DomAdapter;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Provides DOM operations in any browser environment.\r\n *\r\n * \\@security Tread carefully! Interacting with the DOM directly is dangerous and\r\n * can introduce XSS risks.\r\n * @abstract\r\n */\r\nvar GenericBrowserDomAdapter = (function (_super) {\r\n    __extends(GenericBrowserDomAdapter, _super);\r\n    function GenericBrowserDomAdapter() {\r\n        var _this = _super.call(this) || this;\r\n        _this._animationPrefix = null;\r\n        _this._transitionEnd = null;\r\n        try {\r\n            var element_1 = _this.createElement('div', document);\r\n            if (_this.getStyle(element_1, 'animationName') != null) {\r\n                _this._animationPrefix = '';\r\n            }\r\n            else {\r\n                var domPrefixes = ['Webkit', 'Moz', 'O', 'ms'];\r\n                for (var i = 0; i < domPrefixes.length; i++) {\r\n                    if (_this.getStyle(element_1, domPrefixes[i] + 'AnimationName') != null) {\r\n                        _this._animationPrefix = '-' + domPrefixes[i].toLowerCase() + '-';\r\n                        break;\r\n                    }\r\n                }\r\n            }\r\n            var transEndEventNames_1 = {\r\n                WebkitTransition: 'webkitTransitionEnd',\r\n                MozTransition: 'transitionend',\r\n                OTransition: 'oTransitionEnd otransitionend',\r\n                transition: 'transitionend'\r\n            };\r\n            Object.keys(transEndEventNames_1).forEach(function (key) {\r\n                if (_this.getStyle(element_1, key) != null) {\r\n                    _this._transitionEnd = transEndEventNames_1[key];\r\n                }\r\n            });\r\n        }\r\n        catch (e) {\r\n            _this._animationPrefix = null;\r\n            _this._transitionEnd = null;\r\n        }\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    GenericBrowserDomAdapter.prototype.getDistributedNodes = function (el) { return ((el)).getDistributedNodes(); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} baseUrl\r\n     * @param {?} href\r\n     * @return {?}\r\n     */\r\n    GenericBrowserDomAdapter.prototype.resolveAndSetHref = function (el, baseUrl, href) {\r\n        el.href = href == null ? baseUrl : baseUrl + '/../' + href;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    GenericBrowserDomAdapter.prototype.supportsDOMEvents = function () { return true; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    GenericBrowserDomAdapter.prototype.supportsNativeShadowDOM = function () {\r\n        return typeof ((document.body)).createShadowRoot === 'function';\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    GenericBrowserDomAdapter.prototype.getAnimationPrefix = function () { return this._animationPrefix ? this._animationPrefix : ''; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    GenericBrowserDomAdapter.prototype.getTransitionEnd = function () { return this._transitionEnd ? this._transitionEnd : ''; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    GenericBrowserDomAdapter.prototype.supportsAnimation = function () {\r\n        return this._animationPrefix != null && this._transitionEnd != null;\r\n    };\r\n    return GenericBrowserDomAdapter;\r\n}(DomAdapter));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _attrToPropMap = {\r\n    'class': 'className',\r\n    'innerHtml': 'innerHTML',\r\n    'readonly': 'readOnly',\r\n    'tabindex': 'tabIndex',\r\n};\r\nvar DOM_KEY_LOCATION_NUMPAD = 3;\r\n// Map to convert some key or keyIdentifier values to what will be returned by getEventKey\r\nvar _keyMap = {\r\n    // The following values are here for cross-browser compatibility and to match the W3C standard\r\n    // cf http://www.w3.org/TR/DOM-Level-3-Events-key/\r\n    '\\b': 'Backspace',\r\n    '\\t': 'Tab',\r\n    '\\x7F': 'Delete',\r\n    '\\x1B': 'Escape',\r\n    'Del': 'Delete',\r\n    'Esc': 'Escape',\r\n    'Left': 'ArrowLeft',\r\n    'Right': 'ArrowRight',\r\n    'Up': 'ArrowUp',\r\n    'Down': 'ArrowDown',\r\n    'Menu': 'ContextMenu',\r\n    'Scroll': 'ScrollLock',\r\n    'Win': 'OS'\r\n};\r\n// There is a bug in Chrome for numeric keypad keys:\r\n// https://code.google.com/p/chromium/issues/detail?id=155654\r\n// 1, 2, 3 ... are reported as A, B, C ...\r\nvar _chromeNumKeyPadMap = {\r\n    'A': '1',\r\n    'B': '2',\r\n    'C': '3',\r\n    'D': '4',\r\n    'E': '5',\r\n    'F': '6',\r\n    'G': '7',\r\n    'H': '8',\r\n    'I': '9',\r\n    'J': '*',\r\n    'K': '+',\r\n    'M': '-',\r\n    'N': '.',\r\n    'O': '/',\r\n    '\\x60': '0',\r\n    '\\x90': 'NumLock'\r\n};\r\nvar nodeContains;\r\nif (ɵglobal['Node']) {\r\n    nodeContains = ɵglobal['Node'].prototype.contains || function (node) {\r\n        return !!(this.compareDocumentPosition(node) & 16);\r\n    };\r\n}\r\nvar BrowserDomAdapter = (function (_super) {\r\n    __extends(BrowserDomAdapter, _super);\r\n    function BrowserDomAdapter() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} templateHtml\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.parse = function (templateHtml) { throw new Error('parse not implemented'); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.makeCurrent = function () { setRootDomAdapter(new BrowserDomAdapter()); };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.hasProperty = function (element, name) { return name in element; };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setProperty = function (el, name, value) { ((el))[name] = value; };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getProperty = function (el, name) { return ((el))[name]; };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} methodName\r\n     * @param {?} args\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.invoke = function (el, methodName, args) { ((el))[methodName].apply(((el)), args); };\r\n    /**\r\n     * @param {?} error\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.logError = function (error) {\r\n        if (window.console) {\r\n            if (console.error) {\r\n                console.error(error);\r\n            }\r\n            else {\r\n                console.log(error);\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} error\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.log = function (error) {\r\n        if (window.console) {\r\n            window.console.log && window.console.log(error);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} error\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.logGroup = function (error) {\r\n        if (window.console) {\r\n            window.console.group && window.console.group(error);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.logGroupEnd = function () {\r\n        if (window.console) {\r\n            window.console.groupEnd && window.console.groupEnd();\r\n        }\r\n    };\r\n    Object.defineProperty(BrowserDomAdapter.prototype, \"attrToPropMap\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return _attrToPropMap; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} nodeA\r\n     * @param {?} nodeB\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.contains = function (nodeA, nodeB) { return nodeContains.call(nodeA, nodeB); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.querySelector = function (el, selector) { return el.querySelector(selector); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.querySelectorAll = function (el, selector) { return el.querySelectorAll(selector); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} evt\r\n     * @param {?} listener\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.on = function (el, evt, listener) { el.addEventListener(evt, listener, false); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} evt\r\n     * @param {?} listener\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.onAndCancel = function (el, evt, listener) {\r\n        el.addEventListener(evt, listener, false);\r\n        // Needed to follow Dart's subscription semantic, until fix of\r\n        // https://code.google.com/p/dart/issues/detail?id=17406\r\n        return function () { el.removeEventListener(evt, listener, false); };\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} evt\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.dispatchEvent = function (el, evt) { el.dispatchEvent(evt); };\r\n    /**\r\n     * @param {?} eventType\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createMouseEvent = function (eventType) {\r\n        var /** @type {?} */ evt = document.createEvent('MouseEvent');\r\n        evt.initEvent(eventType, true, true);\r\n        return evt;\r\n    };\r\n    /**\r\n     * @param {?} eventType\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createEvent = function (eventType) {\r\n        var /** @type {?} */ evt = document.createEvent('Event');\r\n        evt.initEvent(eventType, true, true);\r\n        return evt;\r\n    };\r\n    /**\r\n     * @param {?} evt\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.preventDefault = function (evt) {\r\n        evt.preventDefault();\r\n        evt.returnValue = false;\r\n    };\r\n    /**\r\n     * @param {?} evt\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.isPrevented = function (evt) {\r\n        return evt.defaultPrevented || evt.returnValue != null && !evt.returnValue;\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getInnerHTML = function (el) { return el.innerHTML; };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getTemplateContent = function (el) {\r\n        return 'content' in el && el instanceof HTMLTemplateElement ? el.content : null;\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getOuterHTML = function (el) { return el.outerHTML; };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.nodeName = function (node) { return node.nodeName; };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.nodeValue = function (node) { return node.nodeValue; };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.type = function (node) { return node.type; };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.content = function (node) {\r\n        if (this.hasProperty(node, 'content')) {\r\n            return ((node)).content;\r\n        }\r\n        else {\r\n            return node;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.firstChild = function (el) { return el.firstChild; };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.nextSibling = function (el) { return el.nextSibling; };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.parentElement = function (el) { return el.parentNode; };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.childNodes = function (el) { return el.childNodes; };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.childNodesAsList = function (el) {\r\n        var /** @type {?} */ childNodes = el.childNodes;\r\n        var /** @type {?} */ res = new Array(childNodes.length);\r\n        for (var /** @type {?} */ i = 0; i < childNodes.length; i++) {\r\n            res[i] = childNodes[i];\r\n        }\r\n        return res;\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.clearNodes = function (el) {\r\n        while (el.firstChild) {\r\n            el.removeChild(el.firstChild);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.appendChild = function (el, node) { el.appendChild(node); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.removeChild = function (el, node) { el.removeChild(node); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} newChild\r\n     * @param {?} oldChild\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.replaceChild = function (el, newChild, oldChild) { el.replaceChild(newChild, oldChild); };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.remove = function (node) {\r\n        if (node.parentNode) {\r\n            node.parentNode.removeChild(node);\r\n        }\r\n        return node;\r\n    };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} ref\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.insertBefore = function (parent, ref, node) { parent.insertBefore(node, ref); };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} ref\r\n     * @param {?} nodes\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.insertAllBefore = function (parent, ref, nodes) {\r\n        nodes.forEach(function (n) { return parent.insertBefore(n, ref); });\r\n    };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} ref\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.insertAfter = function (parent, ref, node) { parent.insertBefore(node, ref.nextSibling); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setInnerHTML = function (el, value) { el.innerHTML = value; };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getText = function (el) { return el.textContent; };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setText = function (el, value) { el.textContent = value; };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getValue = function (el) { return el.value; };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setValue = function (el, value) { el.value = value; };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getChecked = function (el) { return el.checked; };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setChecked = function (el, value) { el.checked = value; };\r\n    /**\r\n     * @param {?} text\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createComment = function (text) { return document.createComment(text); };\r\n    /**\r\n     * @param {?} html\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createTemplate = function (html) {\r\n        var /** @type {?} */ t = document.createElement('template');\r\n        t.innerHTML = html;\r\n        return t;\r\n    };\r\n    /**\r\n     * @param {?} tagName\r\n     * @param {?=} doc\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createElement = function (tagName, doc) {\r\n        if (doc === void 0) { doc = document; }\r\n        return doc.createElement(tagName);\r\n    };\r\n    /**\r\n     * @param {?} ns\r\n     * @param {?} tagName\r\n     * @param {?=} doc\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createElementNS = function (ns, tagName, doc) {\r\n        if (doc === void 0) { doc = document; }\r\n        return doc.createElementNS(ns, tagName);\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?=} doc\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createTextNode = function (text, doc) {\r\n        if (doc === void 0) { doc = document; }\r\n        return doc.createTextNode(text);\r\n    };\r\n    /**\r\n     * @param {?} attrName\r\n     * @param {?} attrValue\r\n     * @param {?=} doc\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createScriptTag = function (attrName, attrValue, doc) {\r\n        if (doc === void 0) { doc = document; }\r\n        var /** @type {?} */ el = (doc.createElement('SCRIPT'));\r\n        el.setAttribute(attrName, attrValue);\r\n        return el;\r\n    };\r\n    /**\r\n     * @param {?} css\r\n     * @param {?=} doc\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createStyleElement = function (css, doc) {\r\n        if (doc === void 0) { doc = document; }\r\n        var /** @type {?} */ style = (doc.createElement('style'));\r\n        this.appendChild(style, this.createTextNode(css));\r\n        return style;\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createShadowRoot = function (el) { return ((el)).createShadowRoot(); };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getShadowRoot = function (el) { return ((el)).shadowRoot; };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getHost = function (el) { return ((el)).host; };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.clone = function (node) { return node.cloneNode(true); };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getElementsByClassName = function (element, name) {\r\n        return element.getElementsByClassName(name);\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getElementsByTagName = function (element, name) {\r\n        return element.getElementsByTagName(name);\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.classList = function (element) { return Array.prototype.slice.call(element.classList, 0); };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} className\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.addClass = function (element, className) { element.classList.add(className); };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} className\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.removeClass = function (element, className) { element.classList.remove(className); };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} className\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.hasClass = function (element, className) {\r\n        return element.classList.contains(className);\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} styleName\r\n     * @param {?} styleValue\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setStyle = function (element, styleName, styleValue) {\r\n        element.style[styleName] = styleValue;\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} stylename\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.removeStyle = function (element, stylename) {\r\n        // IE requires '' instead of null\r\n        // see https://github.com/angular/angular/issues/7916\r\n        element.style[stylename] = '';\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} stylename\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getStyle = function (element, stylename) { return element.style[stylename]; };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} styleName\r\n     * @param {?=} styleValue\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.hasStyle = function (element, styleName, styleValue) {\r\n        var /** @type {?} */ value = this.getStyle(element, styleName) || '';\r\n        return styleValue ? value == styleValue : value.length > 0;\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.tagName = function (element) { return element.tagName; };\r\n    /**\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.attributeMap = function (element) {\r\n        var /** @type {?} */ res = new Map();\r\n        var /** @type {?} */ elAttrs = element.attributes;\r\n        for (var /** @type {?} */ i = 0; i < elAttrs.length; i++) {\r\n            var /** @type {?} */ attrib = elAttrs[i];\r\n            res.set(attrib.name, attrib.value);\r\n        }\r\n        return res;\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} attribute\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.hasAttribute = function (element, attribute) {\r\n        return element.hasAttribute(attribute);\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} ns\r\n     * @param {?} attribute\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.hasAttributeNS = function (element, ns, attribute) {\r\n        return element.hasAttributeNS(ns, attribute);\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} attribute\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getAttribute = function (element, attribute) {\r\n        return element.getAttribute(attribute);\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} ns\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getAttributeNS = function (element, ns, name) {\r\n        return element.getAttributeNS(ns, name);\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setAttribute = function (element, name, value) { element.setAttribute(name, value); };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} ns\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setAttributeNS = function (element, ns, name, value) {\r\n        element.setAttributeNS(ns, name, value);\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} attribute\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.removeAttribute = function (element, attribute) { element.removeAttribute(attribute); };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} ns\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.removeAttributeNS = function (element, ns, name) {\r\n        element.removeAttributeNS(ns, name);\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.templateAwareRoot = function (el) { return this.isTemplateElement(el) ? this.content(el) : el; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.createHtmlDocument = function () {\r\n        return document.implementation.createHTMLDocument('fakeTitle');\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getBoundingClientRect = function (el) {\r\n        try {\r\n            return el.getBoundingClientRect();\r\n        }\r\n        catch (e) {\r\n            return { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0 };\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} doc\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getTitle = function (doc) { return document.title; };\r\n    /**\r\n     * @param {?} doc\r\n     * @param {?} newTitle\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setTitle = function (doc, newTitle) { document.title = newTitle || ''; };\r\n    /**\r\n     * @param {?} n\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.elementMatches = function (n, selector) {\r\n        if (n instanceof HTMLElement) {\r\n            return n.matches && n.matches(selector) ||\r\n                n.msMatchesSelector && n.msMatchesSelector(selector) ||\r\n                n.webkitMatchesSelector && n.webkitMatchesSelector(selector);\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.isTemplateElement = function (el) {\r\n        return el instanceof HTMLElement && el.nodeName == 'TEMPLATE';\r\n    };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.isTextNode = function (node) { return node.nodeType === Node.TEXT_NODE; };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.isCommentNode = function (node) { return node.nodeType === Node.COMMENT_NODE; };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.isElementNode = function (node) { return node.nodeType === Node.ELEMENT_NODE; };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.hasShadowRoot = function (node) {\r\n        return node.shadowRoot != null && node instanceof HTMLElement;\r\n    };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.isShadowRoot = function (node) { return node instanceof DocumentFragment; };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.importIntoDoc = function (node) { return document.importNode(this.templateAwareRoot(node), true); };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.adoptNode = function (node) { return document.adoptNode(node); };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getHref = function (el) { return ((el)).href; };\r\n    /**\r\n     * @param {?} event\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getEventKey = function (event) {\r\n        var /** @type {?} */ key = event.key;\r\n        if (key == null) {\r\n            key = event.keyIdentifier;\r\n            // keyIdentifier is defined in the old draft of DOM Level 3 Events implemented by Chrome and\r\n            // Safari cf\r\n            // http://www.w3.org/TR/2007/WD-DOM-Level-3-Events-20071221/events.html#Events-KeyboardEvents-Interfaces\r\n            if (key == null) {\r\n                return 'Unidentified';\r\n            }\r\n            if (key.startsWith('U+')) {\r\n                key = String.fromCharCode(parseInt(key.substring(2), 16));\r\n                if (event.location === DOM_KEY_LOCATION_NUMPAD && _chromeNumKeyPadMap.hasOwnProperty(key)) {\r\n                    // There is a bug in Chrome for numeric keypad keys:\r\n                    // https://code.google.com/p/chromium/issues/detail?id=155654\r\n                    // 1, 2, 3 ... are reported as A, B, C ...\r\n                    key = ((_chromeNumKeyPadMap))[key];\r\n                }\r\n            }\r\n        }\r\n        return _keyMap[key] || key;\r\n    };\r\n    /**\r\n     * @param {?} doc\r\n     * @param {?} target\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getGlobalEventTarget = function (doc, target) {\r\n        if (target === 'window') {\r\n            return window;\r\n        }\r\n        if (target === 'document') {\r\n            return document;\r\n        }\r\n        if (target === 'body') {\r\n            return document.body;\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getHistory = function () { return window.history; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getLocation = function () { return window.location; };\r\n    /**\r\n     * @param {?} doc\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getBaseHref = function (doc) {\r\n        var /** @type {?} */ href = getBaseElementHref();\r\n        return href == null ? null : relativePath(href);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.resetBaseElement = function () { baseElement = null; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getUserAgent = function () { return window.navigator.userAgent; };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setData = function (element, name, value) {\r\n        this.setAttribute(element, 'data-' + name, value);\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getData = function (element, name) {\r\n        return this.getAttribute(element, 'data-' + name);\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getComputedStyle = function (element) { return getComputedStyle(element); };\r\n    /**\r\n     * @param {?} path\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setGlobalVar = function (path, value) { setValueOnPath(ɵglobal, path, value); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.supportsWebAnimation = function () {\r\n        return typeof ((Element)).prototype['animate'] === 'function';\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.performanceNow = function () {\r\n        // performance.now() is not available in all browsers, see\r\n        // http://caniuse.com/#search=performance.now\r\n        return window.performance && window.performance.now ? window.performance.now() :\r\n            new Date().getTime();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.supportsCookies = function () { return true; };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.getCookie = function (name) { return parseCookieValue(document.cookie, name); };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    BrowserDomAdapter.prototype.setCookie = function (name, value) {\r\n        // document.cookie is magical, assigning into it assigns/overrides one cookie value, but does\r\n        // not clear other cookies.\r\n        document.cookie = encodeURIComponent(name) + '=' + encodeURIComponent(value);\r\n    };\r\n    return BrowserDomAdapter;\r\n}(GenericBrowserDomAdapter));\r\nvar baseElement = null;\r\n/**\r\n * @return {?}\r\n */\r\nfunction getBaseElementHref() {\r\n    if (!baseElement) {\r\n        baseElement = ((document.querySelector('base')));\r\n        if (!baseElement) {\r\n            return null;\r\n        }\r\n    }\r\n    return baseElement.getAttribute('href');\r\n}\r\n// based on urlUtils.js in AngularJS 1\r\nvar urlParsingNode;\r\n/**\r\n * @param {?} url\r\n * @return {?}\r\n */\r\nfunction relativePath(url) {\r\n    if (!urlParsingNode) {\r\n        urlParsingNode = document.createElement('a');\r\n    }\r\n    urlParsingNode.setAttribute('href', url);\r\n    return (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname :\r\n        '/' + urlParsingNode.pathname;\r\n}\r\n/**\r\n * @param {?} cookieStr\r\n * @param {?} name\r\n * @return {?}\r\n */\r\nfunction parseCookieValue(cookieStr, name) {\r\n    name = encodeURIComponent(name);\r\n    for (var _i = 0, _a = cookieStr.split(';'); _i < _a.length; _i++) {\r\n        var cookie = _a[_i];\r\n        var /** @type {?} */ eqIndex = cookie.indexOf('=');\r\n        var _b = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)], cookieName = _b[0], cookieValue = _b[1];\r\n        if (cookieName.trim() === name) {\r\n            return decodeURIComponent(cookieValue);\r\n        }\r\n    }\r\n    return null;\r\n}\r\n/**\r\n * @param {?} global\r\n * @param {?} path\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction setValueOnPath(global, path, value) {\r\n    var /** @type {?} */ parts = path.split('.');\r\n    var /** @type {?} */ obj = global;\r\n    while (parts.length > 1) {\r\n        var /** @type {?} */ name = ((parts.shift()));\r\n        if (obj.hasOwnProperty(name) && obj[name] != null) {\r\n            obj = obj[name];\r\n        }\r\n        else {\r\n            obj = obj[name] = {};\r\n        }\r\n    }\r\n    if (obj === undefined || obj === null) {\r\n        obj = {};\r\n    }\r\n    obj[((parts.shift()))] = value;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A DI Token representing the main rendering context. In a browser this is the DOM Document.\r\n *\r\n * Note: Document might not be available in the Application Context when Application and Rendering\r\n * Contexts are not the same (e.g. when running the application into a Web Worker).\r\n *\r\n * \\@stable\r\n */\r\nvar DOCUMENT = new InjectionToken('DocumentToken');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n * @return {?}\r\n */\r\nfunction supportsState() {\r\n    return !!window.history.pushState;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * `PlatformLocation` encapsulates all of the direct calls to platform APIs.\r\n * This class should not be used directly by an application developer. Instead, use\r\n * {\\@link Location}.\r\n */\r\nvar BrowserPlatformLocation = (function (_super) {\r\n    __extends(BrowserPlatformLocation, _super);\r\n    /**\r\n     * @param {?} _doc\r\n     */\r\n    function BrowserPlatformLocation(_doc) {\r\n        var _this = _super.call(this) || this;\r\n        _this._doc = _doc;\r\n        _this._init();\r\n        return _this;\r\n    }\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    BrowserPlatformLocation.prototype._init = function () {\r\n        this._location = getDOM().getLocation();\r\n        this._history = getDOM().getHistory();\r\n    };\r\n    Object.defineProperty(BrowserPlatformLocation.prototype, \"location\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._location; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserPlatformLocation.prototype.getBaseHrefFromDOM = function () { return ((getDOM().getBaseHref(this._doc))); };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    BrowserPlatformLocation.prototype.onPopState = function (fn) {\r\n        getDOM().getGlobalEventTarget(this._doc, 'window').addEventListener('popstate', fn, false);\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    BrowserPlatformLocation.prototype.onHashChange = function (fn) {\r\n        getDOM().getGlobalEventTarget(this._doc, 'window').addEventListener('hashchange', fn, false);\r\n    };\r\n    Object.defineProperty(BrowserPlatformLocation.prototype, \"pathname\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._location.pathname; },\r\n        /**\r\n         * @param {?} newPath\r\n         * @return {?}\r\n         */\r\n        set: function (newPath) { this._location.pathname = newPath; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(BrowserPlatformLocation.prototype, \"search\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._location.search; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(BrowserPlatformLocation.prototype, \"hash\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._location.hash; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} state\r\n     * @param {?} title\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    BrowserPlatformLocation.prototype.pushState = function (state, title, url) {\r\n        if (supportsState()) {\r\n            this._history.pushState(state, title, url);\r\n        }\r\n        else {\r\n            this._location.hash = url;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} state\r\n     * @param {?} title\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    BrowserPlatformLocation.prototype.replaceState = function (state, title, url) {\r\n        if (supportsState()) {\r\n            this._history.replaceState(state, title, url);\r\n        }\r\n        else {\r\n            this._location.hash = url;\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserPlatformLocation.prototype.forward = function () { this._history.forward(); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserPlatformLocation.prototype.back = function () { this._history.back(); };\r\n    return BrowserPlatformLocation;\r\n}(PlatformLocation));\r\nBrowserPlatformLocation.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nBrowserPlatformLocation.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A service that can be used to get and add meta tags.\r\n *\r\n * \\@experimental\r\n */\r\nvar Meta = (function () {\r\n    /**\r\n     * @param {?} _doc\r\n     */\r\n    function Meta(_doc) {\r\n        this._doc = _doc;\r\n        this._dom = getDOM();\r\n    }\r\n    /**\r\n     * @param {?} tag\r\n     * @param {?=} forceCreation\r\n     * @return {?}\r\n     */\r\n    Meta.prototype.addTag = function (tag, forceCreation) {\r\n        if (forceCreation === void 0) { forceCreation = false; }\r\n        if (!tag)\r\n            return null;\r\n        return this._getOrCreateElement(tag, forceCreation);\r\n    };\r\n    /**\r\n     * @param {?} tags\r\n     * @param {?=} forceCreation\r\n     * @return {?}\r\n     */\r\n    Meta.prototype.addTags = function (tags, forceCreation) {\r\n        var _this = this;\r\n        if (forceCreation === void 0) { forceCreation = false; }\r\n        if (!tags)\r\n            return [];\r\n        return tags.reduce(function (result, tag) {\r\n            if (tag) {\r\n                result.push(_this._getOrCreateElement(tag, forceCreation));\r\n            }\r\n            return result;\r\n        }, []);\r\n    };\r\n    /**\r\n     * @param {?} attrSelector\r\n     * @return {?}\r\n     */\r\n    Meta.prototype.getTag = function (attrSelector) {\r\n        if (!attrSelector)\r\n            return null;\r\n        return this._dom.querySelector(this._doc, \"meta[\" + attrSelector + \"]\");\r\n    };\r\n    /**\r\n     * @param {?} attrSelector\r\n     * @return {?}\r\n     */\r\n    Meta.prototype.getTags = function (attrSelector) {\r\n        if (!attrSelector)\r\n            return [];\r\n        var /** @type {?} */ list /*NodeList*/ = this._dom.querySelectorAll(this._doc, \"meta[\" + attrSelector + \"]\");\r\n        return list ? [].slice.call(list) : [];\r\n    };\r\n    /**\r\n     * @param {?} tag\r\n     * @param {?=} selector\r\n     * @return {?}\r\n     */\r\n    Meta.prototype.updateTag = function (tag, selector) {\r\n        if (!tag)\r\n            return null;\r\n        selector = selector || this._parseSelector(tag);\r\n        var /** @type {?} */ meta = ((this.getTag(selector)));\r\n        if (meta) {\r\n            return this._setMetaElementAttributes(tag, meta);\r\n        }\r\n        return this._getOrCreateElement(tag, true);\r\n    };\r\n    /**\r\n     * @param {?} attrSelector\r\n     * @return {?}\r\n     */\r\n    Meta.prototype.removeTag = function (attrSelector) { this.removeTagElement(/** @type {?} */ ((this.getTag(attrSelector)))); };\r\n    /**\r\n     * @param {?} meta\r\n     * @return {?}\r\n     */\r\n    Meta.prototype.removeTagElement = function (meta) {\r\n        if (meta) {\r\n            this._dom.remove(meta);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} meta\r\n     * @param {?=} forceCreation\r\n     * @return {?}\r\n     */\r\n    Meta.prototype._getOrCreateElement = function (meta, forceCreation) {\r\n        if (forceCreation === void 0) { forceCreation = false; }\r\n        if (!forceCreation) {\r\n            var /** @type {?} */ selector = this._parseSelector(meta);\r\n            var /** @type {?} */ elem = ((this.getTag(selector)));\r\n            // It's allowed to have multiple elements with the same name so it's not enough to\r\n            // just check that element with the same name already present on the page. We also need to\r\n            // check if element has tag attributes\r\n            if (elem && this._containsAttributes(meta, elem))\r\n                return elem;\r\n        }\r\n        var /** @type {?} */ element = (this._dom.createElement('meta'));\r\n        this._setMetaElementAttributes(meta, element);\r\n        var /** @type {?} */ head = this._dom.getElementsByTagName(this._doc, 'head')[0];\r\n        this._dom.appendChild(head, element);\r\n        return element;\r\n    };\r\n    /**\r\n     * @param {?} tag\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    Meta.prototype._setMetaElementAttributes = function (tag, el) {\r\n        var _this = this;\r\n        Object.keys(tag).forEach(function (prop) { return _this._dom.setAttribute(el, prop, tag[prop]); });\r\n        return el;\r\n    };\r\n    /**\r\n     * @param {?} tag\r\n     * @return {?}\r\n     */\r\n    Meta.prototype._parseSelector = function (tag) {\r\n        var /** @type {?} */ attr = tag.name ? 'name' : 'property';\r\n        return attr + \"=\\\"\" + tag[attr] + \"\\\"\";\r\n    };\r\n    /**\r\n     * @param {?} tag\r\n     * @param {?} elem\r\n     * @return {?}\r\n     */\r\n    Meta.prototype._containsAttributes = function (tag, elem) {\r\n        var _this = this;\r\n        return Object.keys(tag).every(function (key) { return _this._dom.getAttribute(elem, key) === tag[key]; });\r\n    };\r\n    return Meta;\r\n}());\r\nMeta.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nMeta.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * An id that identifies a particular application being bootstrapped, that should\r\n * match across the client/server boundary.\r\n */\r\nvar TRANSITION_ID = new InjectionToken('TRANSITION_ID');\r\n/**\r\n * @param {?} transitionId\r\n * @param {?} document\r\n * @param {?} injector\r\n * @return {?}\r\n */\r\nfunction appInitializerFactory(transitionId, document, injector) {\r\n    return function () {\r\n        // Wait for all application initializers to be completed before removing the styles set by\r\n        // the server.\r\n        injector.get(ApplicationInitStatus).donePromise.then(function () {\r\n            var /** @type {?} */ dom = getDOM();\r\n            var /** @type {?} */ styles = Array.prototype.slice.apply(dom.querySelectorAll(document, \"style[ng-transition]\"));\r\n            styles.filter(function (el) { return dom.getAttribute(el, 'ng-transition') === transitionId; })\r\n                .forEach(function (el) { return dom.remove(el); });\r\n        });\r\n    };\r\n}\r\nvar SERVER_TRANSITION_PROVIDERS = [\r\n    {\r\n        provide: APP_INITIALIZER,\r\n        useFactory: appInitializerFactory,\r\n        deps: [TRANSITION_ID, DOCUMENT, Injector],\r\n        multi: true\r\n    },\r\n];\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar BrowserGetTestability = (function () {\r\n    function BrowserGetTestability() {\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserGetTestability.init = function () { setTestabilityGetter(new BrowserGetTestability()); };\r\n    /**\r\n     * @param {?} registry\r\n     * @return {?}\r\n     */\r\n    BrowserGetTestability.prototype.addToWindow = function (registry) {\r\n        ɵglobal['getAngularTestability'] = function (elem, findInAncestors) {\r\n            if (findInAncestors === void 0) { findInAncestors = true; }\r\n            var /** @type {?} */ testability = registry.findTestabilityInTree(elem, findInAncestors);\r\n            if (testability == null) {\r\n                throw new Error('Could not find testability for element.');\r\n            }\r\n            return testability;\r\n        };\r\n        ɵglobal['getAllAngularTestabilities'] = function () { return registry.getAllTestabilities(); };\r\n        ɵglobal['getAllAngularRootElements'] = function () { return registry.getAllRootElements(); };\r\n        var /** @type {?} */ whenAllStable = function (callback /** TODO #9100 */) {\r\n            var /** @type {?} */ testabilities = ɵglobal['getAllAngularTestabilities']();\r\n            var /** @type {?} */ count = testabilities.length;\r\n            var /** @type {?} */ didWork = false;\r\n            var /** @type {?} */ decrement = function (didWork_ /** TODO #9100 */) {\r\n                didWork = didWork || didWork_;\r\n                count--;\r\n                if (count == 0) {\r\n                    callback(didWork);\r\n                }\r\n            };\r\n            testabilities.forEach(function (testability /** TODO #9100 */) {\r\n                testability.whenStable(decrement);\r\n            });\r\n        };\r\n        if (!ɵglobal['frameworkStabilizers']) {\r\n            ɵglobal['frameworkStabilizers'] = [];\r\n        }\r\n        ɵglobal['frameworkStabilizers'].push(whenAllStable);\r\n    };\r\n    /**\r\n     * @param {?} registry\r\n     * @param {?} elem\r\n     * @param {?} findInAncestors\r\n     * @return {?}\r\n     */\r\n    BrowserGetTestability.prototype.findTestabilityInTree = function (registry, elem, findInAncestors) {\r\n        if (elem == null) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ t = registry.getTestability(elem);\r\n        if (t != null) {\r\n            return t;\r\n        }\r\n        else if (!findInAncestors) {\r\n            return null;\r\n        }\r\n        if (getDOM().isShadowRoot(elem)) {\r\n            return this.findTestabilityInTree(registry, getDOM().getHost(elem), true);\r\n        }\r\n        return this.findTestabilityInTree(registry, getDOM().parentElement(elem), true);\r\n    };\r\n    return BrowserGetTestability;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A service that can be used to get and set the title of a current HTML document.\r\n *\r\n * Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)\r\n * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements\r\n * (representing the `<title>` tag). Instead, this service can be used to set and get the current\r\n * title value.\r\n *\r\n * \\@experimental\r\n */\r\nvar Title = (function () {\r\n    /**\r\n     * @param {?} _doc\r\n     */\r\n    function Title(_doc) {\r\n        this._doc = _doc;\r\n    }\r\n    /**\r\n     * Get the title of the current HTML document.\r\n     * @return {?}\r\n     */\r\n    Title.prototype.getTitle = function () { return getDOM().getTitle(this._doc); };\r\n    /**\r\n     * Set the title of the current HTML document.\r\n     * @param {?} newTitle\r\n     * @return {?}\r\n     */\r\n    Title.prototype.setTitle = function (newTitle) { getDOM().setTitle(this._doc, newTitle); };\r\n    return Title;\r\n}());\r\nTitle.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nTitle.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar __assign = (undefined && undefined.__assign) || Object.assign || function (t) {\r\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n        s = arguments[i];\r\n        for (var p in s)\r\n            if (Object.prototype.hasOwnProperty.call(s, p))\r\n                t[p] = s[p];\r\n    }\r\n    return t;\r\n};\r\nvar CORE_TOKENS = {\r\n    'ApplicationRef': ApplicationRef,\r\n    'NgZone': NgZone,\r\n};\r\nvar INSPECT_GLOBAL_NAME = 'ng.probe';\r\nvar CORE_TOKENS_GLOBAL_NAME = 'ng.coreTokens';\r\n/**\r\n * Returns a {\\@link DebugElement} for the given native DOM element, or\r\n * null if the given native element does not have an Angular view associated\r\n * with it.\r\n * @param {?} element\r\n * @return {?}\r\n */\r\nfunction inspectNativeElement(element) {\r\n    return getDebugNode(element);\r\n}\r\n/**\r\n * Deprecated. Use the one from '\\@angular/core'.\r\n * @deprecated\r\n */\r\nvar NgProbeToken$1 = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} token\r\n     */\r\n    function NgProbeToken$1(name, token) {\r\n        this.name = name;\r\n        this.token = token;\r\n    }\r\n    return NgProbeToken$1;\r\n}());\r\n/**\r\n * @param {?} extraTokens\r\n * @param {?} coreTokens\r\n * @return {?}\r\n */\r\nfunction _createNgProbe(extraTokens, coreTokens) {\r\n    var /** @type {?} */ tokens = (extraTokens || []).concat(coreTokens || []);\r\n    getDOM().setGlobalVar(INSPECT_GLOBAL_NAME, inspectNativeElement);\r\n    getDOM().setGlobalVar(CORE_TOKENS_GLOBAL_NAME, __assign({}, CORE_TOKENS, _ngProbeTokensToMap(tokens || [])));\r\n    return function () { return inspectNativeElement; };\r\n}\r\n/**\r\n * @param {?} tokens\r\n * @return {?}\r\n */\r\nfunction _ngProbeTokensToMap(tokens) {\r\n    return tokens.reduce(function (prev, t) { return (prev[t.name] = t.token, prev); }, {});\r\n}\r\n/**\r\n * Providers which support debugging Angular applications (e.g. via `ng.probe`).\r\n */\r\nvar ELEMENT_PROBE_PROVIDERS = [\r\n    {\r\n        provide: APP_INITIALIZER,\r\n        useFactory: _createNgProbe,\r\n        deps: [\r\n            [NgProbeToken$1, new Optional()],\r\n            [NgProbeToken, new Optional()],\r\n        ],\r\n        multi: true,\r\n    },\r\n];\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@stable\r\n */\r\nvar EVENT_MANAGER_PLUGINS = new InjectionToken('EventManagerPlugins');\r\n/**\r\n * \\@stable\r\n */\r\nvar EventManager = (function () {\r\n    /**\r\n     * @param {?} plugins\r\n     * @param {?} _zone\r\n     */\r\n    function EventManager(plugins, _zone) {\r\n        var _this = this;\r\n        this._zone = _zone;\r\n        this._eventNameToPlugin = new Map();\r\n        plugins.forEach(function (p) { return p.manager = _this; });\r\n        this._plugins = plugins.slice().reverse();\r\n    }\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} eventName\r\n     * @param {?} handler\r\n     * @return {?}\r\n     */\r\n    EventManager.prototype.addEventListener = function (element, eventName, handler) {\r\n        var /** @type {?} */ plugin = this._findPluginFor(eventName);\r\n        return plugin.addEventListener(element, eventName, handler);\r\n    };\r\n    /**\r\n     * @param {?} target\r\n     * @param {?} eventName\r\n     * @param {?} handler\r\n     * @return {?}\r\n     */\r\n    EventManager.prototype.addGlobalEventListener = function (target, eventName, handler) {\r\n        var /** @type {?} */ plugin = this._findPluginFor(eventName);\r\n        return plugin.addGlobalEventListener(target, eventName, handler);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    EventManager.prototype.getZone = function () { return this._zone; };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} eventName\r\n     * @return {?}\r\n     */\r\n    EventManager.prototype._findPluginFor = function (eventName) {\r\n        var /** @type {?} */ plugin = this._eventNameToPlugin.get(eventName);\r\n        if (plugin) {\r\n            return plugin;\r\n        }\r\n        var /** @type {?} */ plugins = this._plugins;\r\n        for (var /** @type {?} */ i = 0; i < plugins.length; i++) {\r\n            var /** @type {?} */ plugin_1 = plugins[i];\r\n            if (plugin_1.supports(eventName)) {\r\n                this._eventNameToPlugin.set(eventName, plugin_1);\r\n                return plugin_1;\r\n            }\r\n        }\r\n        throw new Error(\"No event manager plugin found for event \" + eventName);\r\n    };\r\n    return EventManager;\r\n}());\r\nEventManager.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nEventManager.ctorParameters = function () { return [\r\n    { type: Array, decorators: [{ type: Inject, args: [EVENT_MANAGER_PLUGINS,] },] },\r\n    { type: NgZone, },\r\n]; };\r\n/**\r\n * @abstract\r\n */\r\nvar EventManagerPlugin = (function () {\r\n    /**\r\n     * @param {?} _doc\r\n     */\r\n    function EventManagerPlugin(_doc) {\r\n        this._doc = _doc;\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} eventName\r\n     * @return {?}\r\n     */\r\n    EventManagerPlugin.prototype.supports = function (eventName) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} element\r\n     * @param {?} eventName\r\n     * @param {?} handler\r\n     * @return {?}\r\n     */\r\n    EventManagerPlugin.prototype.addEventListener = function (element, eventName, handler) { };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} eventName\r\n     * @param {?} handler\r\n     * @return {?}\r\n     */\r\n    EventManagerPlugin.prototype.addGlobalEventListener = function (element, eventName, handler) {\r\n        var /** @type {?} */ target = getDOM().getGlobalEventTarget(this._doc, element);\r\n        if (!target) {\r\n            throw new Error(\"Unsupported event target \" + target + \" for event \" + eventName);\r\n        }\r\n        return this.addEventListener(target, eventName, handler);\r\n    };\r\n    ;\r\n    return EventManagerPlugin;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar SharedStylesHost = (function () {\r\n    function SharedStylesHost() {\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._stylesSet = new Set();\r\n    }\r\n    /**\r\n     * @param {?} styles\r\n     * @return {?}\r\n     */\r\n    SharedStylesHost.prototype.addStyles = function (styles) {\r\n        var _this = this;\r\n        var /** @type {?} */ additions = new Set();\r\n        styles.forEach(function (style) {\r\n            if (!_this._stylesSet.has(style)) {\r\n                _this._stylesSet.add(style);\r\n                additions.add(style);\r\n            }\r\n        });\r\n        this.onStylesAdded(additions);\r\n    };\r\n    /**\r\n     * @param {?} additions\r\n     * @return {?}\r\n     */\r\n    SharedStylesHost.prototype.onStylesAdded = function (additions) { };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SharedStylesHost.prototype.getAllStyles = function () { return Array.from(this._stylesSet); };\r\n    return SharedStylesHost;\r\n}());\r\nSharedStylesHost.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nSharedStylesHost.ctorParameters = function () { return []; };\r\nvar DomSharedStylesHost = (function (_super) {\r\n    __extends(DomSharedStylesHost, _super);\r\n    /**\r\n     * @param {?} _doc\r\n     */\r\n    function DomSharedStylesHost(_doc) {\r\n        var _this = _super.call(this) || this;\r\n        _this._doc = _doc;\r\n        _this._hostNodes = new Set();\r\n        _this._styleNodes = new Set();\r\n        _this._hostNodes.add(_doc.head);\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} styles\r\n     * @param {?} host\r\n     * @return {?}\r\n     */\r\n    DomSharedStylesHost.prototype._addStylesToHost = function (styles, host) {\r\n        var _this = this;\r\n        styles.forEach(function (style) {\r\n            var /** @type {?} */ styleEl = _this._doc.createElement('style');\r\n            styleEl.textContent = style;\r\n            _this._styleNodes.add(host.appendChild(styleEl));\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} hostNode\r\n     * @return {?}\r\n     */\r\n    DomSharedStylesHost.prototype.addHost = function (hostNode) {\r\n        this._addStylesToHost(this._stylesSet, hostNode);\r\n        this._hostNodes.add(hostNode);\r\n    };\r\n    /**\r\n     * @param {?} hostNode\r\n     * @return {?}\r\n     */\r\n    DomSharedStylesHost.prototype.removeHost = function (hostNode) { this._hostNodes.delete(hostNode); };\r\n    /**\r\n     * @param {?} additions\r\n     * @return {?}\r\n     */\r\n    DomSharedStylesHost.prototype.onStylesAdded = function (additions) {\r\n        var _this = this;\r\n        this._hostNodes.forEach(function (hostNode) { return _this._addStylesToHost(additions, hostNode); });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DomSharedStylesHost.prototype.ngOnDestroy = function () { this._styleNodes.forEach(function (styleNode) { return getDOM().remove(styleNode); }); };\r\n    return DomSharedStylesHost;\r\n}(SharedStylesHost));\r\nDomSharedStylesHost.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nDomSharedStylesHost.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar NAMESPACE_URIS = {\r\n    'svg': 'http://www.w3.org/2000/svg',\r\n    'xhtml': 'http://www.w3.org/1999/xhtml',\r\n    'xlink': 'http://www.w3.org/1999/xlink',\r\n    'xml': 'http://www.w3.org/XML/1998/namespace',\r\n    'xmlns': 'http://www.w3.org/2000/xmlns/',\r\n};\r\nvar COMPONENT_REGEX = /%COMP%/g;\r\nvar COMPONENT_VARIABLE = '%COMP%';\r\nvar HOST_ATTR = \"_nghost-\" + COMPONENT_VARIABLE;\r\nvar CONTENT_ATTR = \"_ngcontent-\" + COMPONENT_VARIABLE;\r\n/**\r\n * @param {?} componentShortId\r\n * @return {?}\r\n */\r\nfunction shimContentAttribute(componentShortId) {\r\n    return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId);\r\n}\r\n/**\r\n * @param {?} componentShortId\r\n * @return {?}\r\n */\r\nfunction shimHostAttribute(componentShortId) {\r\n    return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);\r\n}\r\n/**\r\n * @param {?} compId\r\n * @param {?} styles\r\n * @param {?} target\r\n * @return {?}\r\n */\r\nfunction flattenStyles(compId, styles, target) {\r\n    for (var /** @type {?} */ i = 0; i < styles.length; i++) {\r\n        var /** @type {?} */ style = styles[i];\r\n        if (Array.isArray(style)) {\r\n            flattenStyles(compId, style, target);\r\n        }\r\n        else {\r\n            style = style.replace(COMPONENT_REGEX, compId);\r\n            target.push(style);\r\n        }\r\n    }\r\n    return target;\r\n}\r\n/**\r\n * @param {?} eventHandler\r\n * @return {?}\r\n */\r\nfunction decoratePreventDefault(eventHandler) {\r\n    return function (event) {\r\n        var /** @type {?} */ allowDefaultBehavior = eventHandler(event);\r\n        if (allowDefaultBehavior === false) {\r\n            // TODO(tbosch): move preventDefault into event plugins...\r\n            event.preventDefault();\r\n            event.returnValue = false;\r\n        }\r\n    };\r\n}\r\nvar DomRendererFactory2 = (function () {\r\n    /**\r\n     * @param {?} eventManager\r\n     * @param {?} sharedStylesHost\r\n     */\r\n    function DomRendererFactory2(eventManager, sharedStylesHost) {\r\n        this.eventManager = eventManager;\r\n        this.sharedStylesHost = sharedStylesHost;\r\n        this.rendererByCompId = new Map();\r\n        this.defaultRenderer = new DefaultDomRenderer2(eventManager);\r\n    }\r\n    ;\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    DomRendererFactory2.prototype.createRenderer = function (element, type) {\r\n        if (!element || !type) {\r\n            return this.defaultRenderer;\r\n        }\r\n        switch (type.encapsulation) {\r\n            case ViewEncapsulation.Emulated: {\r\n                var /** @type {?} */ renderer = this.rendererByCompId.get(type.id);\r\n                if (!renderer) {\r\n                    renderer =\r\n                        new EmulatedEncapsulationDomRenderer2(this.eventManager, this.sharedStylesHost, type);\r\n                    this.rendererByCompId.set(type.id, renderer);\r\n                }\r\n                ((renderer)).applyToHost(element);\r\n                return renderer;\r\n            }\r\n            case ViewEncapsulation.Native:\r\n                return new ShadowDomRenderer(this.eventManager, this.sharedStylesHost, element, type);\r\n            default: {\r\n                if (!this.rendererByCompId.has(type.id)) {\r\n                    var /** @type {?} */ styles = flattenStyles(type.id, type.styles, []);\r\n                    this.sharedStylesHost.addStyles(styles);\r\n                    this.rendererByCompId.set(type.id, this.defaultRenderer);\r\n                }\r\n                return this.defaultRenderer;\r\n            }\r\n        }\r\n    };\r\n    return DomRendererFactory2;\r\n}());\r\nDomRendererFactory2.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nDomRendererFactory2.ctorParameters = function () { return [\r\n    { type: EventManager, },\r\n    { type: DomSharedStylesHost, },\r\n]; };\r\nvar DefaultDomRenderer2 = (function () {\r\n    /**\r\n     * @param {?} eventManager\r\n     */\r\n    function DefaultDomRenderer2(eventManager) {\r\n        this.eventManager = eventManager;\r\n        this.data = Object.create(null);\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.destroy = function () { };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?=} namespace\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.createElement = function (name, namespace) {\r\n        if (namespace) {\r\n            return document.createElementNS(NAMESPACE_URIS[namespace], name);\r\n        }\r\n        return document.createElement(name);\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.createComment = function (value) { return document.createComment(value); };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.createText = function (value) { return document.createTextNode(value); };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} newChild\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.appendChild = function (parent, newChild) { parent.appendChild(newChild); };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} newChild\r\n     * @param {?} refChild\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.insertBefore = function (parent, newChild, refChild) {\r\n        if (parent) {\r\n            parent.insertBefore(newChild, refChild);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} oldChild\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.removeChild = function (parent, oldChild) {\r\n        if (parent) {\r\n            parent.removeChild(oldChild);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} selectorOrNode\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.selectRootElement = function (selectorOrNode) {\r\n        var /** @type {?} */ el = typeof selectorOrNode === 'string' ? document.querySelector(selectorOrNode) :\r\n            selectorOrNode;\r\n        if (!el) {\r\n            throw new Error(\"The selector \\\"\" + selectorOrNode + \"\\\" did not match any elements\");\r\n        }\r\n        el.textContent = '';\r\n        return el;\r\n    };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.parentNode = function (node) { return node.parentNode; };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.nextSibling = function (node) { return node.nextSibling; };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?=} namespace\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.setAttribute = function (el, name, value, namespace) {\r\n        if (namespace) {\r\n            name = namespace + \":\" + name;\r\n            var /** @type {?} */ namespaceUri = NAMESPACE_URIS[namespace];\r\n            if (namespaceUri) {\r\n                el.setAttributeNS(namespaceUri, name, value);\r\n            }\r\n            else {\r\n                el.setAttribute(name, value);\r\n            }\r\n        }\r\n        else {\r\n            el.setAttribute(name, value);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?=} namespace\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.removeAttribute = function (el, name, namespace) {\r\n        if (namespace) {\r\n            var /** @type {?} */ namespaceUri = NAMESPACE_URIS[namespace];\r\n            if (namespaceUri) {\r\n                el.removeAttributeNS(namespaceUri, name);\r\n            }\r\n            else {\r\n                el.removeAttribute(namespace + \":\" + name);\r\n            }\r\n        }\r\n        else {\r\n            el.removeAttribute(name);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.addClass = function (el, name) { el.classList.add(name); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.removeClass = function (el, name) { el.classList.remove(name); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} style\r\n     * @param {?} value\r\n     * @param {?} flags\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.setStyle = function (el, style, value, flags) {\r\n        if (flags & RendererStyleFlags2.DashCase) {\r\n            el.style.setProperty(style, value, !!(flags & RendererStyleFlags2.Important) ? 'important' : '');\r\n        }\r\n        else {\r\n            el.style[style] = value;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} style\r\n     * @param {?} flags\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.removeStyle = function (el, style, flags) {\r\n        if (flags & RendererStyleFlags2.DashCase) {\r\n            el.style.removeProperty(style);\r\n        }\r\n        else {\r\n            // IE requires '' instead of null\r\n            // see https://github.com/angular/angular/issues/7916\r\n            el.style[style] = '';\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.setProperty = function (el, name, value) {\r\n        checkNoSyntheticProp(name, 'property');\r\n        el[name] = value;\r\n    };\r\n    /**\r\n     * @param {?} node\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.setValue = function (node, value) { node.nodeValue = value; };\r\n    /**\r\n     * @param {?} target\r\n     * @param {?} event\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    DefaultDomRenderer2.prototype.listen = function (target, event, callback) {\r\n        checkNoSyntheticProp(event, 'listener');\r\n        if (typeof target === 'string') {\r\n            return (this.eventManager.addGlobalEventListener(target, event, decoratePreventDefault(callback)));\r\n        }\r\n        return ((this.eventManager.addEventListener(target, event, decoratePreventDefault(callback))));\r\n    };\r\n    return DefaultDomRenderer2;\r\n}());\r\nvar AT_CHARCODE = '@'.charCodeAt(0);\r\n/**\r\n * @param {?} name\r\n * @param {?} nameKind\r\n * @return {?}\r\n */\r\nfunction checkNoSyntheticProp(name, nameKind) {\r\n    if (name.charCodeAt(0) === AT_CHARCODE) {\r\n        throw new Error(\"Found the synthetic \" + nameKind + \" \" + name + \". Please include either \\\"BrowserAnimationsModule\\\" or \\\"NoopAnimationsModule\\\" in your application.\");\r\n    }\r\n}\r\nvar EmulatedEncapsulationDomRenderer2 = (function (_super) {\r\n    __extends(EmulatedEncapsulationDomRenderer2, _super);\r\n    /**\r\n     * @param {?} eventManager\r\n     * @param {?} sharedStylesHost\r\n     * @param {?} component\r\n     */\r\n    function EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, component) {\r\n        var _this = _super.call(this, eventManager) || this;\r\n        _this.component = component;\r\n        var styles = flattenStyles(component.id, component.styles, []);\r\n        sharedStylesHost.addStyles(styles);\r\n        _this.contentAttr = shimContentAttribute(component.id);\r\n        _this.hostAttr = shimHostAttribute(component.id);\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    EmulatedEncapsulationDomRenderer2.prototype.applyToHost = function (element) { _super.prototype.setAttribute.call(this, element, this.hostAttr, ''); };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    EmulatedEncapsulationDomRenderer2.prototype.createElement = function (parent, name) {\r\n        var /** @type {?} */ el = _super.prototype.createElement.call(this, parent, name);\r\n        _super.prototype.setAttribute.call(this, el, this.contentAttr, '');\r\n        return el;\r\n    };\r\n    return EmulatedEncapsulationDomRenderer2;\r\n}(DefaultDomRenderer2));\r\nvar ShadowDomRenderer = (function (_super) {\r\n    __extends(ShadowDomRenderer, _super);\r\n    /**\r\n     * @param {?} eventManager\r\n     * @param {?} sharedStylesHost\r\n     * @param {?} hostEl\r\n     * @param {?} component\r\n     */\r\n    function ShadowDomRenderer(eventManager, sharedStylesHost, hostEl, component) {\r\n        var _this = _super.call(this, eventManager) || this;\r\n        _this.sharedStylesHost = sharedStylesHost;\r\n        _this.hostEl = hostEl;\r\n        _this.component = component;\r\n        _this.shadowRoot = hostEl.createShadowRoot();\r\n        _this.sharedStylesHost.addHost(_this.shadowRoot);\r\n        var styles = flattenStyles(component.id, component.styles, []);\r\n        for (var i = 0; i < styles.length; i++) {\r\n            var styleEl = document.createElement('style');\r\n            styleEl.textContent = styles[i];\r\n            _this.shadowRoot.appendChild(styleEl);\r\n        }\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    ShadowDomRenderer.prototype.nodeOrShadowRoot = function (node) { return node === this.hostEl ? this.shadowRoot : node; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ShadowDomRenderer.prototype.destroy = function () { this.sharedStylesHost.removeHost(this.shadowRoot); };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} newChild\r\n     * @return {?}\r\n     */\r\n    ShadowDomRenderer.prototype.appendChild = function (parent, newChild) {\r\n        return _super.prototype.appendChild.call(this, this.nodeOrShadowRoot(parent), newChild);\r\n    };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} newChild\r\n     * @param {?} refChild\r\n     * @return {?}\r\n     */\r\n    ShadowDomRenderer.prototype.insertBefore = function (parent, newChild, refChild) {\r\n        return _super.prototype.insertBefore.call(this, this.nodeOrShadowRoot(parent), newChild, refChild);\r\n    };\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} oldChild\r\n     * @return {?}\r\n     */\r\n    ShadowDomRenderer.prototype.removeChild = function (parent, oldChild) {\r\n        return _super.prototype.removeChild.call(this, this.nodeOrShadowRoot(parent), oldChild);\r\n    };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    ShadowDomRenderer.prototype.parentNode = function (node) {\r\n        return this.nodeOrShadowRoot(_super.prototype.parentNode.call(this, this.nodeOrShadowRoot(node)));\r\n    };\r\n    return ShadowDomRenderer;\r\n}(DefaultDomRenderer2));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar DomEventsPlugin = (function (_super) {\r\n    __extends(DomEventsPlugin, _super);\r\n    /**\r\n     * @param {?} doc\r\n     */\r\n    function DomEventsPlugin(doc) {\r\n        return _super.call(this, doc) || this;\r\n    }\r\n    /**\r\n     * @param {?} eventName\r\n     * @return {?}\r\n     */\r\n    DomEventsPlugin.prototype.supports = function (eventName) { return true; };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} eventName\r\n     * @param {?} handler\r\n     * @return {?}\r\n     */\r\n    DomEventsPlugin.prototype.addEventListener = function (element, eventName, handler) {\r\n        element.addEventListener(eventName, /** @type {?} */ (handler), false);\r\n        return function () { return element.removeEventListener(eventName, /** @type {?} */ (handler), false); };\r\n    };\r\n    return DomEventsPlugin;\r\n}(EventManagerPlugin));\r\nDomEventsPlugin.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nDomEventsPlugin.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar EVENT_NAMES = {\r\n    // pan\r\n    'pan': true,\r\n    'panstart': true,\r\n    'panmove': true,\r\n    'panend': true,\r\n    'pancancel': true,\r\n    'panleft': true,\r\n    'panright': true,\r\n    'panup': true,\r\n    'pandown': true,\r\n    // pinch\r\n    'pinch': true,\r\n    'pinchstart': true,\r\n    'pinchmove': true,\r\n    'pinchend': true,\r\n    'pinchcancel': true,\r\n    'pinchin': true,\r\n    'pinchout': true,\r\n    // press\r\n    'press': true,\r\n    'pressup': true,\r\n    // rotate\r\n    'rotate': true,\r\n    'rotatestart': true,\r\n    'rotatemove': true,\r\n    'rotateend': true,\r\n    'rotatecancel': true,\r\n    // swipe\r\n    'swipe': true,\r\n    'swipeleft': true,\r\n    'swiperight': true,\r\n    'swipeup': true,\r\n    'swipedown': true,\r\n    // tap\r\n    'tap': true,\r\n};\r\n/**\r\n * A DI token that you can use to provide{\\@link HammerGestureConfig} to Angular. Use it to configure\r\n * Hammer gestures.\r\n *\r\n * \\@experimental\r\n */\r\nvar HAMMER_GESTURE_CONFIG = new InjectionToken('HammerGestureConfig');\r\n/**\r\n * \\@experimental\r\n */\r\nvar HammerGestureConfig = (function () {\r\n    function HammerGestureConfig() {\r\n        this.events = [];\r\n        this.overrides = {};\r\n    }\r\n    /**\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    HammerGestureConfig.prototype.buildHammer = function (element) {\r\n        var /** @type {?} */ mc = new Hammer(element);\r\n        mc.get('pinch').set({ enable: true });\r\n        mc.get('rotate').set({ enable: true });\r\n        for (var /** @type {?} */ eventName in this.overrides) {\r\n            mc.get(eventName).set(this.overrides[eventName]);\r\n        }\r\n        return mc;\r\n    };\r\n    return HammerGestureConfig;\r\n}());\r\nHammerGestureConfig.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nHammerGestureConfig.ctorParameters = function () { return []; };\r\nvar HammerGesturesPlugin = (function (_super) {\r\n    __extends(HammerGesturesPlugin, _super);\r\n    /**\r\n     * @param {?} doc\r\n     * @param {?} _config\r\n     */\r\n    function HammerGesturesPlugin(doc, _config) {\r\n        var _this = _super.call(this, doc) || this;\r\n        _this._config = _config;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} eventName\r\n     * @return {?}\r\n     */\r\n    HammerGesturesPlugin.prototype.supports = function (eventName) {\r\n        if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {\r\n            return false;\r\n        }\r\n        if (!((window)).Hammer) {\r\n            throw new Error(\"Hammer.js is not loaded, can not bind \" + eventName + \" event\");\r\n        }\r\n        return true;\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} eventName\r\n     * @param {?} handler\r\n     * @return {?}\r\n     */\r\n    HammerGesturesPlugin.prototype.addEventListener = function (element, eventName, handler) {\r\n        var _this = this;\r\n        var /** @type {?} */ zone = this.manager.getZone();\r\n        eventName = eventName.toLowerCase();\r\n        return zone.runOutsideAngular(function () {\r\n            // Creating the manager bind events, must be done outside of angular\r\n            var /** @type {?} */ mc = _this._config.buildHammer(element);\r\n            var /** @type {?} */ callback = function (eventObj) {\r\n                zone.runGuarded(function () { handler(eventObj); });\r\n            };\r\n            mc.on(eventName, callback);\r\n            return function () { return mc.off(eventName, callback); };\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} eventName\r\n     * @return {?}\r\n     */\r\n    HammerGesturesPlugin.prototype.isCustomEvent = function (eventName) { return this._config.events.indexOf(eventName) > -1; };\r\n    return HammerGesturesPlugin;\r\n}(EventManagerPlugin));\r\nHammerGesturesPlugin.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nHammerGesturesPlugin.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] },] },\r\n    { type: HammerGestureConfig, decorators: [{ type: Inject, args: [HAMMER_GESTURE_CONFIG,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];\r\nvar MODIFIER_KEY_GETTERS = {\r\n    'alt': function (event) { return event.altKey; },\r\n    'control': function (event) { return event.ctrlKey; },\r\n    'meta': function (event) { return event.metaKey; },\r\n    'shift': function (event) { return event.shiftKey; }\r\n};\r\n/**\r\n * \\@experimental\r\n */\r\nvar KeyEventsPlugin = (function (_super) {\r\n    __extends(KeyEventsPlugin, _super);\r\n    /**\r\n     * @param {?} doc\r\n     */\r\n    function KeyEventsPlugin(doc) {\r\n        return _super.call(this, doc) || this;\r\n    }\r\n    /**\r\n     * @param {?} eventName\r\n     * @return {?}\r\n     */\r\n    KeyEventsPlugin.prototype.supports = function (eventName) { return KeyEventsPlugin.parseEventName(eventName) != null; };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} eventName\r\n     * @param {?} handler\r\n     * @return {?}\r\n     */\r\n    KeyEventsPlugin.prototype.addEventListener = function (element, eventName, handler) {\r\n        var /** @type {?} */ parsedEvent = ((KeyEventsPlugin.parseEventName(eventName)));\r\n        var /** @type {?} */ outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());\r\n        return this.manager.getZone().runOutsideAngular(function () {\r\n            return getDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} eventName\r\n     * @return {?}\r\n     */\r\n    KeyEventsPlugin.parseEventName = function (eventName) {\r\n        var /** @type {?} */ parts = eventName.toLowerCase().split('.');\r\n        var /** @type {?} */ domEventName = parts.shift();\r\n        if ((parts.length === 0) || !(domEventName === 'keydown' || domEventName === 'keyup')) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ key = KeyEventsPlugin._normalizeKey(/** @type {?} */ ((parts.pop())));\r\n        var /** @type {?} */ fullKey = '';\r\n        MODIFIER_KEYS.forEach(function (modifierName) {\r\n            var /** @type {?} */ index = parts.indexOf(modifierName);\r\n            if (index > -1) {\r\n                parts.splice(index, 1);\r\n                fullKey += modifierName + '.';\r\n            }\r\n        });\r\n        fullKey += key;\r\n        if (parts.length != 0 || key.length === 0) {\r\n            // returning null instead of throwing to let another plugin process the event\r\n            return null;\r\n        }\r\n        var /** @type {?} */ result = {};\r\n        result['domEventName'] = domEventName;\r\n        result['fullKey'] = fullKey;\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} event\r\n     * @return {?}\r\n     */\r\n    KeyEventsPlugin.getEventFullKey = function (event) {\r\n        var /** @type {?} */ fullKey = '';\r\n        var /** @type {?} */ key = getDOM().getEventKey(event);\r\n        key = key.toLowerCase();\r\n        if (key === ' ') {\r\n            key = 'space'; // for readability\r\n        }\r\n        else if (key === '.') {\r\n            key = 'dot'; // because '.' is used as a separator in event names\r\n        }\r\n        MODIFIER_KEYS.forEach(function (modifierName) {\r\n            if (modifierName != key) {\r\n                var /** @type {?} */ modifierGetter = MODIFIER_KEY_GETTERS[modifierName];\r\n                if (modifierGetter(event)) {\r\n                    fullKey += modifierName + '.';\r\n                }\r\n            }\r\n        });\r\n        fullKey += key;\r\n        return fullKey;\r\n    };\r\n    /**\r\n     * @param {?} fullKey\r\n     * @param {?} handler\r\n     * @param {?} zone\r\n     * @return {?}\r\n     */\r\n    KeyEventsPlugin.eventCallback = function (fullKey, handler, zone) {\r\n        return function (event /** TODO #9100 */) {\r\n            if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {\r\n                zone.runGuarded(function () { return handler(event); });\r\n            }\r\n        };\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} keyName\r\n     * @return {?}\r\n     */\r\n    KeyEventsPlugin._normalizeKey = function (keyName) {\r\n        // TODO: switch to a Map if the mapping grows too much\r\n        switch (keyName) {\r\n            case 'esc':\r\n                return 'escape';\r\n            default:\r\n                return keyName;\r\n        }\r\n    };\r\n    return KeyEventsPlugin;\r\n}(EventManagerPlugin));\r\nKeyEventsPlugin.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nKeyEventsPlugin.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A pattern that recognizes a commonly useful subset of URLs that are safe.\r\n *\r\n * This regular expression matches a subset of URLs that will not cause script\r\n * execution if used in URL context within a HTML document. Specifically, this\r\n * regular expression matches if (comment from here on and regex copied from\r\n * Soy's EscapingConventions):\r\n * (1) Either a protocol in a whitelist (http, https, mailto or ftp).\r\n * (2) or no protocol.  A protocol must be followed by a colon. The below\r\n *     allows that by allowing colons only after one of the characters [/?#].\r\n *     A colon after a hash (#) must be in the fragment.\r\n *     Otherwise, a colon after a (?) must be in a query.\r\n *     Otherwise, a colon after a single solidus (/) must be in a path.\r\n *     Otherwise, a colon after a double solidus (//) must be in the authority\r\n *     (before port).\r\n *\r\n * The pattern disallows &, used in HTML entity declarations before\r\n * one of the characters in [/?#]. This disallows HTML entities used in the\r\n * protocol name, which should never happen, e.g. \"h&#116;tp\" for \"http\".\r\n * It also disallows HTML entities in the first path part of a relative path,\r\n * e.g. \"foo&lt;bar/baz\".  Our existing escaping functions should not produce\r\n * that. More importantly, it disallows masking of a colon,\r\n * e.g. \"javascript&#58;...\".\r\n *\r\n * This regular expression was taken from the Closure sanitization library.\r\n */\r\nvar SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi;\r\n/** A pattern that matches safe data URLs. Only matches image, video and audio types. */\r\nvar DATA_URL_PATTERN = /^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\\/]+=*$/i;\r\n/**\r\n * @param {?} url\r\n * @return {?}\r\n */\r\nfunction sanitizeUrl(url) {\r\n    url = String(url);\r\n    if (url.match(SAFE_URL_PATTERN) || url.match(DATA_URL_PATTERN))\r\n        return url;\r\n    if (isDevMode()) {\r\n        getDOM().log(\"WARNING: sanitizing unsafe URL value \" + url + \" (see http://g.co/ng/security#xss)\");\r\n    }\r\n    return 'unsafe:' + url;\r\n}\r\n/**\r\n * @param {?} srcset\r\n * @return {?}\r\n */\r\nfunction sanitizeSrcset(srcset) {\r\n    srcset = String(srcset);\r\n    return srcset.split(',').map(function (srcset) { return sanitizeUrl(srcset.trim()); }).join(', ');\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/** A <body> element that can be safely used to parse untrusted HTML. Lazily initialized below. */\r\nvar inertElement = null;\r\n/** Lazily initialized to make sure the DOM adapter gets set before use. */\r\nvar DOM = ((null));\r\n/**\r\n * Returns an HTML element that is guaranteed to not execute code when creating elements in it.\r\n * @return {?}\r\n */\r\nfunction getInertElement() {\r\n    if (inertElement)\r\n        return inertElement;\r\n    DOM = getDOM();\r\n    // Prefer using <template> element if supported.\r\n    var /** @type {?} */ templateEl = DOM.createElement('template');\r\n    if ('content' in templateEl)\r\n        return templateEl;\r\n    var /** @type {?} */ doc = DOM.createHtmlDocument();\r\n    inertElement = DOM.querySelector(doc, 'body');\r\n    if (inertElement == null) {\r\n        // usually there should be only one body element in the document, but IE doesn't have any, so we\r\n        // need to create one.\r\n        var /** @type {?} */ html = DOM.createElement('html', doc);\r\n        inertElement = DOM.createElement('body', doc);\r\n        DOM.appendChild(html, inertElement);\r\n        DOM.appendChild(doc, html);\r\n    }\r\n    return inertElement;\r\n}\r\n/**\r\n * @param {?} tags\r\n * @return {?}\r\n */\r\nfunction tagSet(tags) {\r\n    var /** @type {?} */ res = {};\r\n    for (var _i = 0, _a = tags.split(','); _i < _a.length; _i++) {\r\n        var t = _a[_i];\r\n        res[t] = true;\r\n    }\r\n    return res;\r\n}\r\n/**\r\n * @param {...?} sets\r\n * @return {?}\r\n */\r\nfunction merge() {\r\n    var sets = [];\r\n    for (var _i = 0; _i < arguments.length; _i++) {\r\n        sets[_i] = arguments[_i];\r\n    }\r\n    var /** @type {?} */ res = {};\r\n    for (var _a = 0, sets_1 = sets; _a < sets_1.length; _a++) {\r\n        var s = sets_1[_a];\r\n        for (var /** @type {?} */ v in s) {\r\n            if (s.hasOwnProperty(v))\r\n                res[v] = true;\r\n        }\r\n    }\r\n    return res;\r\n}\r\n// Good source of info about elements and attributes\r\n// http://dev.w3.org/html5/spec/Overview.html#semantics\r\n// http://simon.html5.org/html-elements\r\n// Safe Void Elements - HTML5\r\n// http://dev.w3.org/html5/spec/Overview.html#void-elements\r\nvar VOID_ELEMENTS = tagSet('area,br,col,hr,img,wbr');\r\n// Elements that you can, intentionally, leave open (and which close themselves)\r\n// http://dev.w3.org/html5/spec/Overview.html#optional-tags\r\nvar OPTIONAL_END_TAG_BLOCK_ELEMENTS = tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');\r\nvar OPTIONAL_END_TAG_INLINE_ELEMENTS = tagSet('rp,rt');\r\nvar OPTIONAL_END_TAG_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS);\r\n// Safe Block Elements - HTML5\r\nvar BLOCK_ELEMENTS = merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS, tagSet('address,article,' +\r\n    'aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' +\r\n    'h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul'));\r\n// Inline Elements - HTML5\r\nvar INLINE_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, tagSet('a,abbr,acronym,audio,b,' +\r\n    'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,' +\r\n    'samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video'));\r\nvar VALID_ELEMENTS = merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS);\r\n// Attributes that have href and hence need to be sanitized\r\nvar URI_ATTRS = tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href');\r\n// Attributes that have special href set hence need to be sanitized\r\nvar SRCSET_ATTRS = tagSet('srcset');\r\nvar HTML_ATTRS = tagSet('abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,' +\r\n    'compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,' +\r\n    'ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,' +\r\n    'scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,' +\r\n    'valign,value,vspace,width');\r\n// NB: This currently conciously doesn't support SVG. SVG sanitization has had several security\r\n// issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via\r\n// innerHTML is required, SVG attributes should be added here.\r\n// NB: Sanitization does not allow <form> elements or other active elements (<button> etc). Those\r\n// can be sanitized, but they increase security surface area without a legitimate use case, so they\r\n// are left out here.\r\nvar VALID_ATTRS = merge(URI_ATTRS, SRCSET_ATTRS, HTML_ATTRS);\r\n/**\r\n * SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe\r\n * attributes.\r\n */\r\nvar SanitizingHtmlSerializer = (function () {\r\n    function SanitizingHtmlSerializer() {\r\n        this.sanitizedSomething = false;\r\n        this.buf = [];\r\n    }\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    SanitizingHtmlSerializer.prototype.sanitizeChildren = function (el) {\r\n        // This cannot use a TreeWalker, as it has to run on Angular's various DOM adapters.\r\n        // However this code never accesses properties off of `document` before deleting its contents\r\n        // again, so it shouldn't be vulnerable to DOM clobbering.\r\n        var /** @type {?} */ current = ((el.firstChild));\r\n        while (current) {\r\n            if (DOM.isElementNode(current)) {\r\n                this.startElement(/** @type {?} */ (current));\r\n            }\r\n            else if (DOM.isTextNode(current)) {\r\n                this.chars(/** @type {?} */ ((DOM.nodeValue(current))));\r\n            }\r\n            else {\r\n                // Strip non-element, non-text nodes.\r\n                this.sanitizedSomething = true;\r\n            }\r\n            if (DOM.firstChild(current)) {\r\n                current = ((DOM.firstChild(current)));\r\n                continue;\r\n            }\r\n            while (current) {\r\n                // Leaving the element. Walk up and to the right, closing tags as we go.\r\n                if (DOM.isElementNode(current)) {\r\n                    this.endElement(/** @type {?} */ (current));\r\n                }\r\n                var /** @type {?} */ next = checkClobberedElement(current, /** @type {?} */ ((DOM.nextSibling(current))));\r\n                if (next) {\r\n                    current = next;\r\n                    break;\r\n                }\r\n                current = checkClobberedElement(current, /** @type {?} */ ((DOM.parentElement(current))));\r\n            }\r\n        }\r\n        return this.buf.join('');\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @return {?}\r\n     */\r\n    SanitizingHtmlSerializer.prototype.startElement = function (element) {\r\n        var _this = this;\r\n        var /** @type {?} */ tagName = DOM.nodeName(element).toLowerCase();\r\n        if (!VALID_ELEMENTS.hasOwnProperty(tagName)) {\r\n            this.sanitizedSomething = true;\r\n            return;\r\n        }\r\n        this.buf.push('<');\r\n        this.buf.push(tagName);\r\n        DOM.attributeMap(element).forEach(function (value, attrName) {\r\n            var /** @type {?} */ lower = attrName.toLowerCase();\r\n            if (!VALID_ATTRS.hasOwnProperty(lower)) {\r\n                _this.sanitizedSomething = true;\r\n                return;\r\n            }\r\n            // TODO(martinprobst): Special case image URIs for data:image/...\r\n            if (URI_ATTRS[lower])\r\n                value = sanitizeUrl(value);\r\n            if (SRCSET_ATTRS[lower])\r\n                value = sanitizeSrcset(value);\r\n            _this.buf.push(' ');\r\n            _this.buf.push(attrName);\r\n            _this.buf.push('=\"');\r\n            _this.buf.push(encodeEntities(value));\r\n            _this.buf.push('\"');\r\n        });\r\n        this.buf.push('>');\r\n    };\r\n    /**\r\n     * @param {?} current\r\n     * @return {?}\r\n     */\r\n    SanitizingHtmlSerializer.prototype.endElement = function (current) {\r\n        var /** @type {?} */ tagName = DOM.nodeName(current).toLowerCase();\r\n        if (VALID_ELEMENTS.hasOwnProperty(tagName) && !VOID_ELEMENTS.hasOwnProperty(tagName)) {\r\n            this.buf.push('</');\r\n            this.buf.push(tagName);\r\n            this.buf.push('>');\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} chars\r\n     * @return {?}\r\n     */\r\n    SanitizingHtmlSerializer.prototype.chars = function (chars) { this.buf.push(encodeEntities(chars)); };\r\n    return SanitizingHtmlSerializer;\r\n}());\r\n/**\r\n * @param {?} node\r\n * @param {?} nextNode\r\n * @return {?}\r\n */\r\nfunction checkClobberedElement(node, nextNode) {\r\n    if (nextNode && DOM.contains(node, nextNode)) {\r\n        throw new Error(\"Failed to sanitize html because the element is clobbered: \" + DOM.getOuterHTML(node));\r\n    }\r\n    return nextNode;\r\n}\r\n// Regular Expressions for parsing tags and attributes\r\nvar SURROGATE_PAIR_REGEXP = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\r\n// ! to ~ is the ASCII range.\r\nvar NON_ALPHANUMERIC_REGEXP = /([^\\#-~ |!])/g;\r\n/**\r\n * Escapes all potentially dangerous characters, so that the\r\n * resulting string can be safely inserted into attribute or\r\n * element text.\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction encodeEntities(value) {\r\n    return value.replace(/&/g, '&amp;')\r\n        .replace(SURROGATE_PAIR_REGEXP, function (match) {\r\n        var /** @type {?} */ hi = match.charCodeAt(0);\r\n        var /** @type {?} */ low = match.charCodeAt(1);\r\n        return '&#' + (((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000) + ';';\r\n    })\r\n        .replace(NON_ALPHANUMERIC_REGEXP, function (match) { return '&#' + match.charCodeAt(0) + ';'; })\r\n        .replace(/</g, '&lt;')\r\n        .replace(/>/g, '&gt;');\r\n}\r\n/**\r\n * When IE9-11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'\r\n * attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g. 'ns1:xlink:foo').\r\n *\r\n * This is undesirable since we don't want to allow any of these custom attributes. This method\r\n * strips them all.\r\n * @param {?} el\r\n * @return {?}\r\n */\r\nfunction stripCustomNsAttrs(el) {\r\n    DOM.attributeMap(el).forEach(function (_, attrName) {\r\n        if (attrName === 'xmlns:ns1' || attrName.indexOf('ns1:') === 0) {\r\n            DOM.removeAttribute(el, attrName);\r\n        }\r\n    });\r\n    for (var _i = 0, _a = DOM.childNodesAsList(el); _i < _a.length; _i++) {\r\n        var n = _a[_i];\r\n        if (DOM.isElementNode(n))\r\n            stripCustomNsAttrs(/** @type {?} */ (n));\r\n    }\r\n}\r\n/**\r\n * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to\r\n * the DOM in a browser environment.\r\n * @param {?} defaultDoc\r\n * @param {?} unsafeHtmlInput\r\n * @return {?}\r\n */\r\nfunction sanitizeHtml(defaultDoc, unsafeHtmlInput) {\r\n    try {\r\n        var /** @type {?} */ containerEl = getInertElement();\r\n        // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).\r\n        var /** @type {?} */ unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';\r\n        // mXSS protection. Repeatedly parse the document to make sure it stabilizes, so that a browser\r\n        // trying to auto-correct incorrect HTML cannot cause formerly inert HTML to become dangerous.\r\n        var /** @type {?} */ mXSSAttempts = 5;\r\n        var /** @type {?} */ parsedHtml = unsafeHtml;\r\n        do {\r\n            if (mXSSAttempts === 0) {\r\n                throw new Error('Failed to sanitize html because the input is unstable');\r\n            }\r\n            mXSSAttempts--;\r\n            unsafeHtml = parsedHtml;\r\n            DOM.setInnerHTML(containerEl, unsafeHtml);\r\n            if (defaultDoc.documentMode) {\r\n                // strip custom-namespaced attributes on IE<=11\r\n                stripCustomNsAttrs(containerEl);\r\n            }\r\n            parsedHtml = DOM.getInnerHTML(containerEl);\r\n        } while (unsafeHtml !== parsedHtml);\r\n        var /** @type {?} */ sanitizer = new SanitizingHtmlSerializer();\r\n        var /** @type {?} */ safeHtml = sanitizer.sanitizeChildren(DOM.getTemplateContent(containerEl) || containerEl);\r\n        // Clear out the body element.\r\n        var /** @type {?} */ parent = DOM.getTemplateContent(containerEl) || containerEl;\r\n        for (var _i = 0, _a = DOM.childNodesAsList(parent); _i < _a.length; _i++) {\r\n            var child = _a[_i];\r\n            DOM.removeChild(parent, child);\r\n        }\r\n        if (isDevMode() && sanitizer.sanitizedSomething) {\r\n            DOM.log('WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss).');\r\n        }\r\n        return safeHtml;\r\n    }\r\n    catch (e) {\r\n        // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.\r\n        inertElement = null;\r\n        throw e;\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Regular expression for safe style values.\r\n *\r\n * Quotes (\" and ') are allowed, but a check must be done elsewhere to ensure they're balanced.\r\n *\r\n * ',' allows multiple values to be assigned to the same property (e.g. background-attachment or\r\n * font-family) and hence could allow multiple values to get injected, but that should pose no risk\r\n * of XSS.\r\n *\r\n * The function expression checks only for XSS safety, not for CSS validity.\r\n *\r\n * This regular expression was taken from the Closure sanitization library, and augmented for\r\n * transformation values.\r\n */\r\nvar VALUES = '[-,.\"\\'%_!# a-zA-Z0-9]+';\r\nvar TRANSFORMATION_FNS = '(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?';\r\nvar COLOR_FNS = '(?:rgb|hsl)a?';\r\nvar GRADIENTS = '(?:repeating-)?(?:linear|radial)-gradient';\r\nvar CSS3_FNS = '(?:calc|attr)';\r\nvar FN_ARGS = '\\\\([-0-9.%, #a-zA-Z]+\\\\)';\r\nvar SAFE_STYLE_VALUE = new RegExp(\"^(\" + VALUES + \"|\" +\r\n    (\"(?:\" + TRANSFORMATION_FNS + \"|\" + COLOR_FNS + \"|\" + GRADIENTS + \"|\" + CSS3_FNS + \")\") +\r\n    (FN_ARGS + \")$\"), 'g');\r\n/**\r\n * Matches a `url(...)` value with an arbitrary argument as long as it does\r\n * not contain parentheses.\r\n *\r\n * The URL value still needs to be sanitized separately.\r\n *\r\n * `url(...)` values are a very common use case, e.g. for `background-image`. With carefully crafted\r\n * CSS style rules, it is possible to construct an information leak with `url` values in CSS, e.g.\r\n * by observing whether scroll bars are displayed, or character ranges used by a font face\r\n * definition.\r\n *\r\n * Angular only allows binding CSS values (as opposed to entire CSS rules), so it is unlikely that\r\n * binding a URL value without further cooperation from the page will cause an information leak, and\r\n * if so, it is just a leak, not a full blown XSS vulnerability.\r\n *\r\n * Given the common use case, low likelihood of attack vector, and low impact of an attack, this\r\n * code is permissive and allows URLs that sanitize otherwise.\r\n */\r\nvar URL_RE = /^url\\(([^)]+)\\)$/;\r\n/**\r\n * Checks that quotes (\" and ') are properly balanced inside a string. Assumes\r\n * that neither escape (\\) nor any other character that could result in\r\n * breaking out of a string parsing context are allowed;\r\n * see http://www.w3.org/TR/css3-syntax/#string-token-diagram.\r\n *\r\n * This code was taken from the Closure sanitization library.\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction hasBalancedQuotes(value) {\r\n    var /** @type {?} */ outsideSingle = true;\r\n    var /** @type {?} */ outsideDouble = true;\r\n    for (var /** @type {?} */ i = 0; i < value.length; i++) {\r\n        var /** @type {?} */ c = value.charAt(i);\r\n        if (c === '\\'' && outsideDouble) {\r\n            outsideSingle = !outsideSingle;\r\n        }\r\n        else if (c === '\"' && outsideSingle) {\r\n            outsideDouble = !outsideDouble;\r\n        }\r\n    }\r\n    return outsideSingle && outsideDouble;\r\n}\r\n/**\r\n * Sanitizes the given untrusted CSS style property value (i.e. not an entire object, just a single\r\n * value) and returns a value that is safe to use in a browser environment.\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction sanitizeStyle(value) {\r\n    value = String(value).trim(); // Make sure it's actually a string.\r\n    if (!value)\r\n        return '';\r\n    // Single url(...) values are supported, but only for URLs that sanitize cleanly. See above for\r\n    // reasoning behind this.\r\n    var /** @type {?} */ urlMatch = value.match(URL_RE);\r\n    if ((urlMatch && sanitizeUrl(urlMatch[1]) === urlMatch[1]) ||\r\n        value.match(SAFE_STYLE_VALUE) && hasBalancedQuotes(value)) {\r\n        return value; // Safe style values.\r\n    }\r\n    if (isDevMode()) {\r\n        getDOM().log(\"WARNING: sanitizing unsafe style value \" + value + \" (see http://g.co/ng/security#xss).\");\r\n    }\r\n    return 'unsafe';\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing\r\n * values to be safe to use in the different DOM contexts.\r\n *\r\n * For example, when binding a URL in an `<a [href]=\"someValue\">` hyperlink, `someValue` will be\r\n * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on\r\n * the website.\r\n *\r\n * In specific situations, it might be necessary to disable sanitization, for example if the\r\n * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.\r\n * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`\r\n * methods, and then binding to that value from the template.\r\n *\r\n * These situations should be very rare, and extraordinary care must be taken to avoid creating a\r\n * Cross Site Scripting (XSS) security bug!\r\n *\r\n * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as\r\n * close as possible to the source of the value, to make it easy to verify no security bug is\r\n * created by its use.\r\n *\r\n * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that\r\n * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous\r\n * code. The sanitizer leaves safe values intact.\r\n *\r\n * \\@security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in\r\n * sanitization for the value passed in. Carefully check and audit all values and code paths going\r\n * into this call. Make sure any user data is appropriately escaped for this security context.\r\n * For more detail, see the [Security Guide](http://g.co/ng/security).\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar DomSanitizer = (function () {\r\n    function DomSanitizer() {\r\n    }\r\n    /**\r\n     * Sanitizes a value for use in the given SecurityContext.\r\n     *\r\n     * If value is trusted for the context, this method will unwrap the contained safe value and use\r\n     * it directly. Otherwise, value will be sanitized to be safe in the given context, for example\r\n     * by replacing URLs that have an unsafe protocol part (such as `javascript:`). The implementation\r\n     * is responsible to make sure that the value can definitely be safely used in the given context.\r\n     * @abstract\r\n     * @param {?} context\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizer.prototype.sanitize = function (context, value) { };\r\n    /**\r\n     * Bypass security and trust the given value to be safe HTML. Only use this when the bound HTML\r\n     * is unsafe (e.g. contains `<script>` tags) and the code should be executed. The sanitizer will\r\n     * leave safe HTML intact, so in most situations this method should not be used.\r\n     *\r\n     * **WARNING:** calling this method with untrusted user data exposes your application to XSS\r\n     * security risks!\r\n     * @abstract\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizer.prototype.bypassSecurityTrustHtml = function (value) { };\r\n    /**\r\n     * Bypass security and trust the given value to be safe style value (CSS).\r\n     *\r\n     * **WARNING:** calling this method with untrusted user data exposes your application to XSS\r\n     * security risks!\r\n     * @abstract\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizer.prototype.bypassSecurityTrustStyle = function (value) { };\r\n    /**\r\n     * Bypass security and trust the given value to be safe JavaScript.\r\n     *\r\n     * **WARNING:** calling this method with untrusted user data exposes your application to XSS\r\n     * security risks!\r\n     * @abstract\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizer.prototype.bypassSecurityTrustScript = function (value) { };\r\n    /**\r\n     * Bypass security and trust the given value to be a safe style URL, i.e. a value that can be used\r\n     * in hyperlinks or `<img src>`.\r\n     *\r\n     * **WARNING:** calling this method with untrusted user data exposes your application to XSS\r\n     * security risks!\r\n     * @abstract\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizer.prototype.bypassSecurityTrustUrl = function (value) { };\r\n    /**\r\n     * Bypass security and trust the given value to be a safe resource URL, i.e. a location that may\r\n     * be used to load executable code from, like `<script src>`, or `<iframe src>`.\r\n     *\r\n     * **WARNING:** calling this method with untrusted user data exposes your application to XSS\r\n     * security risks!\r\n     * @abstract\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizer.prototype.bypassSecurityTrustResourceUrl = function (value) { };\r\n    return DomSanitizer;\r\n}());\r\nvar DomSanitizerImpl = (function (_super) {\r\n    __extends(DomSanitizerImpl, _super);\r\n    /**\r\n     * @param {?} _doc\r\n     */\r\n    function DomSanitizerImpl(_doc) {\r\n        var _this = _super.call(this) || this;\r\n        _this._doc = _doc;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} ctx\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizerImpl.prototype.sanitize = function (ctx, value) {\r\n        if (value == null)\r\n            return null;\r\n        switch (ctx) {\r\n            case SecurityContext.NONE:\r\n                return (value);\r\n            case SecurityContext.HTML:\r\n                if (value instanceof SafeHtmlImpl)\r\n                    return value.changingThisBreaksApplicationSecurity;\r\n                this.checkNotSafeValue(value, 'HTML');\r\n                return sanitizeHtml(this._doc, String(value));\r\n            case SecurityContext.STYLE:\r\n                if (value instanceof SafeStyleImpl)\r\n                    return value.changingThisBreaksApplicationSecurity;\r\n                this.checkNotSafeValue(value, 'Style');\r\n                return sanitizeStyle(/** @type {?} */ (value));\r\n            case SecurityContext.SCRIPT:\r\n                if (value instanceof SafeScriptImpl)\r\n                    return value.changingThisBreaksApplicationSecurity;\r\n                this.checkNotSafeValue(value, 'Script');\r\n                throw new Error('unsafe value used in a script context');\r\n            case SecurityContext.URL:\r\n                if (value instanceof SafeResourceUrlImpl || value instanceof SafeUrlImpl) {\r\n                    // Allow resource URLs in URL contexts, they are strictly more trusted.\r\n                    return value.changingThisBreaksApplicationSecurity;\r\n                }\r\n                this.checkNotSafeValue(value, 'URL');\r\n                return sanitizeUrl(String(value));\r\n            case SecurityContext.RESOURCE_URL:\r\n                if (value instanceof SafeResourceUrlImpl) {\r\n                    return value.changingThisBreaksApplicationSecurity;\r\n                }\r\n                this.checkNotSafeValue(value, 'ResourceURL');\r\n                throw new Error('unsafe value used in a resource URL context (see http://g.co/ng/security#xss)');\r\n            default:\r\n                throw new Error(\"Unexpected SecurityContext \" + ctx + \" (see http://g.co/ng/security#xss)\");\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} expectedType\r\n     * @return {?}\r\n     */\r\n    DomSanitizerImpl.prototype.checkNotSafeValue = function (value, expectedType) {\r\n        if (value instanceof SafeValueImpl) {\r\n            throw new Error(\"Required a safe \" + expectedType + \", got a \" + value.getTypeName() + \" \" +\r\n                \"(see http://g.co/ng/security#xss)\");\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizerImpl.prototype.bypassSecurityTrustHtml = function (value) { return new SafeHtmlImpl(value); };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizerImpl.prototype.bypassSecurityTrustStyle = function (value) { return new SafeStyleImpl(value); };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizerImpl.prototype.bypassSecurityTrustScript = function (value) { return new SafeScriptImpl(value); };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizerImpl.prototype.bypassSecurityTrustUrl = function (value) { return new SafeUrlImpl(value); };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    DomSanitizerImpl.prototype.bypassSecurityTrustResourceUrl = function (value) {\r\n        return new SafeResourceUrlImpl(value);\r\n    };\r\n    return DomSanitizerImpl;\r\n}(DomSanitizer));\r\nDomSanitizerImpl.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nDomSanitizerImpl.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] },] },\r\n]; };\r\n/**\r\n * @abstract\r\n */\r\nvar SafeValueImpl = (function () {\r\n    /**\r\n     * @param {?} changingThisBreaksApplicationSecurity\r\n     */\r\n    function SafeValueImpl(changingThisBreaksApplicationSecurity) {\r\n        this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;\r\n        // empty\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    SafeValueImpl.prototype.getTypeName = function () { };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SafeValueImpl.prototype.toString = function () {\r\n        return \"SafeValue must use [property]=binding: \" + this.changingThisBreaksApplicationSecurity +\r\n            \" (see http://g.co/ng/security#xss)\";\r\n    };\r\n    return SafeValueImpl;\r\n}());\r\nvar SafeHtmlImpl = (function (_super) {\r\n    __extends(SafeHtmlImpl, _super);\r\n    function SafeHtmlImpl() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SafeHtmlImpl.prototype.getTypeName = function () { return 'HTML'; };\r\n    return SafeHtmlImpl;\r\n}(SafeValueImpl));\r\nvar SafeStyleImpl = (function (_super) {\r\n    __extends(SafeStyleImpl, _super);\r\n    function SafeStyleImpl() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SafeStyleImpl.prototype.getTypeName = function () { return 'Style'; };\r\n    return SafeStyleImpl;\r\n}(SafeValueImpl));\r\nvar SafeScriptImpl = (function (_super) {\r\n    __extends(SafeScriptImpl, _super);\r\n    function SafeScriptImpl() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SafeScriptImpl.prototype.getTypeName = function () { return 'Script'; };\r\n    return SafeScriptImpl;\r\n}(SafeValueImpl));\r\nvar SafeUrlImpl = (function (_super) {\r\n    __extends(SafeUrlImpl, _super);\r\n    function SafeUrlImpl() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SafeUrlImpl.prototype.getTypeName = function () { return 'URL'; };\r\n    return SafeUrlImpl;\r\n}(SafeValueImpl));\r\nvar SafeResourceUrlImpl = (function (_super) {\r\n    __extends(SafeResourceUrlImpl, _super);\r\n    function SafeResourceUrlImpl() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SafeResourceUrlImpl.prototype.getTypeName = function () { return 'ResourceURL'; };\r\n    return SafeResourceUrlImpl;\r\n}(SafeValueImpl));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar INTERNAL_BROWSER_PLATFORM_PROVIDERS = [\r\n    { provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },\r\n    { provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true },\r\n    { provide: PlatformLocation, useClass: BrowserPlatformLocation },\r\n    { provide: DOCUMENT, useFactory: _document, deps: [] },\r\n];\r\n/**\r\n * \\@security Replacing built-in sanitization providers exposes the application to XSS risks.\r\n * Attacker-controlled data introduced by an unsanitized provider could expose your\r\n * application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).\r\n * \\@experimental\r\n */\r\nvar BROWSER_SANITIZATION_PROVIDERS = [\r\n    { provide: Sanitizer, useExisting: DomSanitizer },\r\n    { provide: DomSanitizer, useClass: DomSanitizerImpl },\r\n];\r\n/**\r\n * \\@stable\r\n */\r\nvar platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);\r\n/**\r\n * @return {?}\r\n */\r\nfunction initDomAdapter() {\r\n    BrowserDomAdapter.makeCurrent();\r\n    BrowserGetTestability.init();\r\n}\r\n/**\r\n * @return {?}\r\n */\r\nfunction errorHandler() {\r\n    return new ErrorHandler();\r\n}\r\n/**\r\n * @return {?}\r\n */\r\nfunction _document() {\r\n    return document;\r\n}\r\n/**\r\n * The ng module for the browser.\r\n *\r\n * \\@stable\r\n */\r\nvar BrowserModule = (function () {\r\n    /**\r\n     * @param {?} parentModule\r\n     */\r\n    function BrowserModule(parentModule) {\r\n        if (parentModule) {\r\n            throw new Error(\"BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.\");\r\n        }\r\n    }\r\n    /**\r\n     * Configures a browser-based application to transition from a server-rendered app, if\r\n     * one is present on the page. The specified parameters must include an application id,\r\n     * which must match between the client and server applications.\r\n     *\r\n     * \\@experimental\r\n     * @param {?} params\r\n     * @return {?}\r\n     */\r\n    BrowserModule.withServerTransition = function (params) {\r\n        return {\r\n            ngModule: BrowserModule,\r\n            providers: [\r\n                { provide: APP_ID, useValue: params.appId },\r\n                { provide: TRANSITION_ID, useExisting: APP_ID },\r\n                SERVER_TRANSITION_PROVIDERS,\r\n            ],\r\n        };\r\n    };\r\n    return BrowserModule;\r\n}());\r\nBrowserModule.decorators = [\r\n    { type: NgModule, args: [{\r\n                providers: [\r\n                    BROWSER_SANITIZATION_PROVIDERS,\r\n                    { provide: ErrorHandler, useFactory: errorHandler, deps: [] },\r\n                    { provide: EVENT_MANAGER_PLUGINS, useClass: DomEventsPlugin, multi: true },\r\n                    { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true },\r\n                    { provide: EVENT_MANAGER_PLUGINS, useClass: HammerGesturesPlugin, multi: true },\r\n                    { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig },\r\n                    DomRendererFactory2,\r\n                    { provide: RendererFactory2, useExisting: DomRendererFactory2 },\r\n                    { provide: SharedStylesHost, useExisting: DomSharedStylesHost },\r\n                    DomSharedStylesHost,\r\n                    Testability,\r\n                    EventManager,\r\n                    ELEMENT_PROBE_PROVIDERS,\r\n                    Meta,\r\n                    Title,\r\n                ],\r\n                exports: [CommonModule, ApplicationModule]\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nBrowserModule.ctorParameters = function () { return [\r\n    { type: BrowserModule, decorators: [{ type: Optional }, { type: SkipSelf },] },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar win = typeof window !== 'undefined' && window || {};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ChangeDetectionPerfRecord = (function () {\r\n    /**\r\n     * @param {?} msPerTick\r\n     * @param {?} numTicks\r\n     */\r\n    function ChangeDetectionPerfRecord(msPerTick, numTicks) {\r\n        this.msPerTick = msPerTick;\r\n        this.numTicks = numTicks;\r\n    }\r\n    return ChangeDetectionPerfRecord;\r\n}());\r\n/**\r\n * Entry point for all Angular profiling-related debug tools. This object\r\n * corresponds to the `ng.profiler` in the dev console.\r\n */\r\nvar AngularProfiler = (function () {\r\n    /**\r\n     * @param {?} ref\r\n     */\r\n    function AngularProfiler(ref) {\r\n        this.appRef = ref.injector.get(ApplicationRef);\r\n    }\r\n    /**\r\n     * Exercises change detection in a loop and then prints the average amount of\r\n     * time in milliseconds how long a single round of change detection takes for\r\n     * the current state of the UI. It runs a minimum of 5 rounds for a minimum\r\n     * of 500 milliseconds.\r\n     *\r\n     * Optionally, a user may pass a `config` parameter containing a map of\r\n     * options. Supported options are:\r\n     *\r\n     * `record` (boolean) - causes the profiler to record a CPU profile while\r\n     * it exercises the change detector. Example:\r\n     *\r\n     * ```\r\n     * ng.profiler.timeChangeDetection({record: true})\r\n     * ```\r\n     * @param {?} config\r\n     * @return {?}\r\n     */\r\n    AngularProfiler.prototype.timeChangeDetection = function (config) {\r\n        var /** @type {?} */ record = config && config['record'];\r\n        var /** @type {?} */ profileName = 'Change Detection';\r\n        // Profiler is not available in Android browsers, nor in IE 9 without dev tools opened\r\n        var /** @type {?} */ isProfilerAvailable = win.console.profile != null;\r\n        if (record && isProfilerAvailable) {\r\n            win.console.profile(profileName);\r\n        }\r\n        var /** @type {?} */ start = getDOM().performanceNow();\r\n        var /** @type {?} */ numTicks = 0;\r\n        while (numTicks < 5 || (getDOM().performanceNow() - start) < 500) {\r\n            this.appRef.tick();\r\n            numTicks++;\r\n        }\r\n        var /** @type {?} */ end = getDOM().performanceNow();\r\n        if (record && isProfilerAvailable) {\r\n            // need to cast to <any> because type checker thinks there's no argument\r\n            // while in fact there is:\r\n            //\r\n            // https://developer.mozilla.org/en-US/docs/Web/API/Console/profileEnd\r\n            ((win.console.profileEnd))(profileName);\r\n        }\r\n        var /** @type {?} */ msPerTick = (end - start) / numTicks;\r\n        win.console.log(\"ran \" + numTicks + \" change detection cycles\");\r\n        win.console.log(msPerTick.toFixed(2) + \" ms per check\");\r\n        return new ChangeDetectionPerfRecord(msPerTick, numTicks);\r\n    };\r\n    return AngularProfiler;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar PROFILER_GLOBAL_NAME = 'ng.profiler';\r\n/**\r\n * Enabled Angular debug tools that are accessible via your browser's\r\n * developer console.\r\n *\r\n * Usage:\r\n *\r\n * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)\r\n * 1. Type `ng.` (usually the console will show auto-complete suggestion)\r\n * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`\r\n *    then hit Enter.\r\n *\r\n * \\@experimental All debugging apis are currently experimental.\r\n * @template T\r\n * @param {?} ref\r\n * @return {?}\r\n */\r\nfunction enableDebugTools(ref) {\r\n    getDOM().setGlobalVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\r\n    return ref;\r\n}\r\n/**\r\n * Disables Angular tools.\r\n *\r\n * \\@experimental All debugging apis are currently experimental.\r\n * @return {?}\r\n */\r\nfunction disableDebugTools() {\r\n    getDOM().setGlobalVar(PROFILER_GLOBAL_NAME, null);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Predicates for use with {\\@link DebugElement}'s query functions.\r\n *\r\n * \\@experimental All debugging apis are currently experimental.\r\n */\r\nvar By = (function () {\r\n    function By() {\r\n    }\r\n    /**\r\n     * Match all elements.\r\n     *\r\n     * ## Example\r\n     *\r\n     * {\\@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}\r\n     * @return {?}\r\n     */\r\n    By.all = function () { return function (debugElement) { return true; }; };\r\n    /**\r\n     * Match elements by the given CSS selector.\r\n     *\r\n     * ## Example\r\n     *\r\n     * {\\@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    By.css = function (selector) {\r\n        return function (debugElement) {\r\n            return debugElement.nativeElement != null ?\r\n                getDOM().elementMatches(debugElement.nativeElement, selector) :\r\n                false;\r\n        };\r\n    };\r\n    /**\r\n     * Match elements that have the given directive present.\r\n     *\r\n     * ## Example\r\n     *\r\n     * {\\@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    By.directive = function (type) {\r\n        return function (debugElement) { return ((debugElement.providerTokens)).indexOf(type) !== -1; };\r\n    };\r\n    return By;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the common package.\r\n */\r\n/**\r\n * \\@stable\r\n */\r\nvar VERSION = new Version('4.1.3');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the platform-browser package.\r\n */\r\n// This file only reexports content of the `src` folder. Keep it that way.\r\n/**\r\n * Generated bundle index. Do not edit.\r\n */\r\nexport { BrowserModule, platformBrowser, Meta, Title, disableDebugTools, enableDebugTools, By, NgProbeToken$1 as NgProbeToken, DOCUMENT, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HammerGestureConfig, DomSanitizer, VERSION, BROWSER_SANITIZATION_PROVIDERS as ɵBROWSER_SANITIZATION_PROVIDERS, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, initDomAdapter as ɵinitDomAdapter, BrowserDomAdapter as ɵBrowserDomAdapter, setValueOnPath as ɵsetValueOnPath, BrowserPlatformLocation as ɵBrowserPlatformLocation, TRANSITION_ID as ɵTRANSITION_ID, BrowserGetTestability as ɵBrowserGetTestability, ELEMENT_PROBE_PROVIDERS as ɵELEMENT_PROBE_PROVIDERS, DomAdapter as ɵDomAdapter, getDOM as ɵgetDOM, setRootDomAdapter as ɵsetRootDomAdapter, DomRendererFactory2 as ɵDomRendererFactory2, NAMESPACE_URIS as ɵNAMESPACE_URIS, flattenStyles as ɵflattenStyles, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute, DomEventsPlugin as ɵDomEventsPlugin, HammerGesturesPlugin as ɵHammerGesturesPlugin, KeyEventsPlugin as ɵKeyEventsPlugin, DomSharedStylesHost as ɵDomSharedStylesHost, SharedStylesHost as ɵSharedStylesHost, _document as ɵb, errorHandler as ɵa, GenericBrowserDomAdapter as ɵh, SERVER_TRANSITION_PROVIDERS as ɵg, appInitializerFactory as ɵf, _createNgProbe as ɵc, EventManagerPlugin as ɵd, DomSanitizerImpl as ɵe };\r\n//# sourceMappingURL=platform-browser.es5.js.map\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angular/platform-browser/@angular/platform-browser.es5.js\n// module id = 36\n// module chunks = 2","'use strict';\r\n\r\nexports.base64 = true;\r\nexports.array = true;\r\nexports.string = true;\r\nexports.arraybuffer = typeof ArrayBuffer !== \"undefined\" && typeof Uint8Array !== \"undefined\";\r\nexports.nodebuffer = typeof Buffer !== \"undefined\";\r\n// contains true if JSZip can read/generate Uint8Array, false otherwise.\r\nexports.uint8array = typeof Uint8Array !== \"undefined\";\r\n\r\nif (typeof ArrayBuffer === \"undefined\") {\r\n    exports.blob = false;\r\n}\r\nelse {\r\n    var buffer = new ArrayBuffer(0);\r\n    try {\r\n        exports.blob = new Blob([buffer], {\r\n            type: \"application/zip\"\r\n        }).size === 0;\r\n    }\r\n    catch (e) {\r\n        try {\r\n            var Builder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder;\r\n            var builder = new Builder();\r\n            builder.append(buffer);\r\n            exports.blob = builder.getBlob('application/zip').size === 0;\r\n        }\r\n        catch (e) {\r\n            exports.blob = false;\r\n        }\r\n    }\r\n}\r\n\r\ntry {\r\n    exports.nodestream = !!require('readable-stream').Readable;\r\n} catch(e) {\r\n    exports.nodestream = false;\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/support.js\n// module id = 43\n// module chunks = 2","'use strict';\r\n\r\n\r\nvar TYPED_OK =  (typeof Uint8Array !== 'undefined') &&\r\n                (typeof Uint16Array !== 'undefined') &&\r\n                (typeof Int32Array !== 'undefined');\r\n\r\n\r\nexports.assign = function (obj /*from1, from2, from3, ...*/) {\r\n  var sources = Array.prototype.slice.call(arguments, 1);\r\n  while (sources.length) {\r\n    var source = sources.shift();\r\n    if (!source) { continue; }\r\n\r\n    if (typeof source !== 'object') {\r\n      throw new TypeError(source + 'must be non-object');\r\n    }\r\n\r\n    for (var p in source) {\r\n      if (source.hasOwnProperty(p)) {\r\n        obj[p] = source[p];\r\n      }\r\n    }\r\n  }\r\n\r\n  return obj;\r\n};\r\n\r\n\r\n// reduce buffer size, avoiding mem copy\r\nexports.shrinkBuf = function (buf, size) {\r\n  if (buf.length === size) { return buf; }\r\n  if (buf.subarray) { return buf.subarray(0, size); }\r\n  buf.length = size;\r\n  return buf;\r\n};\r\n\r\n\r\nvar fnTyped = {\r\n  arraySet: function (dest, src, src_offs, len, dest_offs) {\r\n    if (src.subarray && dest.subarray) {\r\n      dest.set(src.subarray(src_offs, src_offs + len), dest_offs);\r\n      return;\r\n    }\r\n    // Fallback to ordinary array\r\n    for (var i = 0; i < len; i++) {\r\n      dest[dest_offs + i] = src[src_offs + i];\r\n    }\r\n  },\r\n  // Join array of chunks to single array.\r\n  flattenChunks: function (chunks) {\r\n    var i, l, len, pos, chunk, result;\r\n\r\n    // calculate data length\r\n    len = 0;\r\n    for (i = 0, l = chunks.length; i < l; i++) {\r\n      len += chunks[i].length;\r\n    }\r\n\r\n    // join chunks\r\n    result = new Uint8Array(len);\r\n    pos = 0;\r\n    for (i = 0, l = chunks.length; i < l; i++) {\r\n      chunk = chunks[i];\r\n      result.set(chunk, pos);\r\n      pos += chunk.length;\r\n    }\r\n\r\n    return result;\r\n  }\r\n};\r\n\r\nvar fnUntyped = {\r\n  arraySet: function (dest, src, src_offs, len, dest_offs) {\r\n    for (var i = 0; i < len; i++) {\r\n      dest[dest_offs + i] = src[src_offs + i];\r\n    }\r\n  },\r\n  // Join array of chunks to single array.\r\n  flattenChunks: function (chunks) {\r\n    return [].concat.apply([], chunks);\r\n  }\r\n};\r\n\r\n\r\n// Enable/Disable typed arrays use, for testing\r\n//\r\nexports.setTyped = function (on) {\r\n  if (on) {\r\n    exports.Buf8  = Uint8Array;\r\n    exports.Buf16 = Uint16Array;\r\n    exports.Buf32 = Int32Array;\r\n    exports.assign(exports, fnTyped);\r\n  } else {\r\n    exports.Buf8  = Array;\r\n    exports.Buf16 = Array;\r\n    exports.Buf32 = Array;\r\n    exports.assign(exports, fnUntyped);\r\n  }\r\n};\r\n\r\nexports.setTyped(TYPED_OK);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/utils/common.js\n// module id = 45\n// module chunks = 2","if (typeof Object.create === 'function') {\r\n  // implementation from standard node.js 'util' module\r\n  module.exports = function inherits(ctor, superCtor) {\r\n    ctor.super_ = superCtor\r\n    ctor.prototype = Object.create(superCtor.prototype, {\r\n      constructor: {\r\n        value: ctor,\r\n        enumerable: false,\r\n        writable: true,\r\n        configurable: true\r\n      }\r\n    });\r\n  };\r\n} else {\r\n  // old school shim for old browsers\r\n  module.exports = function inherits(ctor, superCtor) {\r\n    ctor.super_ = superCtor\r\n    var TempCtor = function () {}\r\n    TempCtor.prototype = superCtor.prototype\r\n    ctor.prototype = new TempCtor()\r\n    ctor.prototype.constructor = ctor\r\n  }\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/inherits/inherits_browser.js\n// module id = 53\n// module chunks = 2","// a duplex stream is just a stream that is both readable and writable.\r\n// Since JS doesn't have multiple prototypal inheritance, this class\r\n// prototypally inherits from Readable, and then parasitically from\r\n// Writable.\r\n\r\n'use strict';\r\n\r\n/*<replacement>*/\r\n\r\nvar objectKeys = Object.keys || function (obj) {\r\n  var keys = [];\r\n  for (var key in obj) {\r\n    keys.push(key);\r\n  }return keys;\r\n};\r\n/*</replacement>*/\r\n\r\nmodule.exports = Duplex;\r\n\r\n/*<replacement>*/\r\nvar processNextTick = require('process-nextick-args');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar util = require('core-util-is');\r\nutil.inherits = require('inherits');\r\n/*</replacement>*/\r\n\r\nvar Readable = require('./_stream_readable');\r\nvar Writable = require('./_stream_writable');\r\n\r\nutil.inherits(Duplex, Readable);\r\n\r\nvar keys = objectKeys(Writable.prototype);\r\nfor (var v = 0; v < keys.length; v++) {\r\n  var method = keys[v];\r\n  if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\r\n}\r\n\r\nfunction Duplex(options) {\r\n  if (!(this instanceof Duplex)) return new Duplex(options);\r\n\r\n  Readable.call(this, options);\r\n  Writable.call(this, options);\r\n\r\n  if (options && options.readable === false) this.readable = false;\r\n\r\n  if (options && options.writable === false) this.writable = false;\r\n\r\n  this.allowHalfOpen = true;\r\n  if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\r\n\r\n  this.once('end', onend);\r\n}\r\n\r\n// the no-half-open enforcer\r\nfunction onend() {\r\n  // if we allow half-open state, or if the writable side ended,\r\n  // then we're ok.\r\n  if (this.allowHalfOpen || this._writableState.ended) return;\r\n\r\n  // no more data can be written.\r\n  // But allow more writes to happen in this tick.\r\n  processNextTick(onEndNT, this);\r\n}\r\n\r\nfunction onEndNT(self) {\r\n  self.end();\r\n}\r\n\r\nfunction forEach(xs, f) {\r\n  for (var i = 0, l = xs.length; i < l; i++) {\r\n    f(xs[i], i);\r\n  }\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/lib/_stream_duplex.js\n// module id = 54\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Observable_1 = require('./Observable');\r\nvar Subscriber_1 = require('./Subscriber');\r\nvar Subscription_1 = require('./Subscription');\r\nvar ObjectUnsubscribedError_1 = require('./util/ObjectUnsubscribedError');\r\nvar SubjectSubscription_1 = require('./SubjectSubscription');\r\nvar rxSubscriber_1 = require('./symbol/rxSubscriber');\r\n/**\r\n * @class SubjectSubscriber<T>\r\n */\r\nvar SubjectSubscriber = (function (_super) {\r\n    __extends(SubjectSubscriber, _super);\r\n    function SubjectSubscriber(destination) {\r\n        _super.call(this, destination);\r\n        this.destination = destination;\r\n    }\r\n    return SubjectSubscriber;\r\n}(Subscriber_1.Subscriber));\r\nexports.SubjectSubscriber = SubjectSubscriber;\r\n/**\r\n * @class Subject<T>\r\n */\r\nvar Subject = (function (_super) {\r\n    __extends(Subject, _super);\r\n    function Subject() {\r\n        _super.call(this);\r\n        this.observers = [];\r\n        this.closed = false;\r\n        this.isStopped = false;\r\n        this.hasError = false;\r\n        this.thrownError = null;\r\n    }\r\n    Subject.prototype[rxSubscriber_1.$$rxSubscriber] = function () {\r\n        return new SubjectSubscriber(this);\r\n    };\r\n    Subject.prototype.lift = function (operator) {\r\n        var subject = new AnonymousSubject(this, this);\r\n        subject.operator = operator;\r\n        return subject;\r\n    };\r\n    Subject.prototype.next = function (value) {\r\n        if (this.closed) {\r\n            throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\r\n        }\r\n        if (!this.isStopped) {\r\n            var observers = this.observers;\r\n            var len = observers.length;\r\n            var copy = observers.slice();\r\n            for (var i = 0; i < len; i++) {\r\n                copy[i].next(value);\r\n            }\r\n        }\r\n    };\r\n    Subject.prototype.error = function (err) {\r\n        if (this.closed) {\r\n            throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\r\n        }\r\n        this.hasError = true;\r\n        this.thrownError = err;\r\n        this.isStopped = true;\r\n        var observers = this.observers;\r\n        var len = observers.length;\r\n        var copy = observers.slice();\r\n        for (var i = 0; i < len; i++) {\r\n            copy[i].error(err);\r\n        }\r\n        this.observers.length = 0;\r\n    };\r\n    Subject.prototype.complete = function () {\r\n        if (this.closed) {\r\n            throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\r\n        }\r\n        this.isStopped = true;\r\n        var observers = this.observers;\r\n        var len = observers.length;\r\n        var copy = observers.slice();\r\n        for (var i = 0; i < len; i++) {\r\n            copy[i].complete();\r\n        }\r\n        this.observers.length = 0;\r\n    };\r\n    Subject.prototype.unsubscribe = function () {\r\n        this.isStopped = true;\r\n        this.closed = true;\r\n        this.observers = null;\r\n    };\r\n    Subject.prototype._subscribe = function (subscriber) {\r\n        if (this.closed) {\r\n            throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\r\n        }\r\n        else if (this.hasError) {\r\n            subscriber.error(this.thrownError);\r\n            return Subscription_1.Subscription.EMPTY;\r\n        }\r\n        else if (this.isStopped) {\r\n            subscriber.complete();\r\n            return Subscription_1.Subscription.EMPTY;\r\n        }\r\n        else {\r\n            this.observers.push(subscriber);\r\n            return new SubjectSubscription_1.SubjectSubscription(this, subscriber);\r\n        }\r\n    };\r\n    Subject.prototype.asObservable = function () {\r\n        var observable = new Observable_1.Observable();\r\n        observable.source = this;\r\n        return observable;\r\n    };\r\n    Subject.create = function (destination, source) {\r\n        return new AnonymousSubject(destination, source);\r\n    };\r\n    return Subject;\r\n}(Observable_1.Observable));\r\nexports.Subject = Subject;\r\n/**\r\n * @class AnonymousSubject<T>\r\n */\r\nvar AnonymousSubject = (function (_super) {\r\n    __extends(AnonymousSubject, _super);\r\n    function AnonymousSubject(destination, source) {\r\n        _super.call(this);\r\n        this.destination = destination;\r\n        this.source = source;\r\n    }\r\n    AnonymousSubject.prototype.next = function (value) {\r\n        var destination = this.destination;\r\n        if (destination && destination.next) {\r\n            destination.next(value);\r\n        }\r\n    };\r\n    AnonymousSubject.prototype.error = function (err) {\r\n        var destination = this.destination;\r\n        if (destination && destination.error) {\r\n            this.destination.error(err);\r\n        }\r\n    };\r\n    AnonymousSubject.prototype.complete = function () {\r\n        var destination = this.destination;\r\n        if (destination && destination.complete) {\r\n            this.destination.complete();\r\n        }\r\n    };\r\n    AnonymousSubject.prototype._subscribe = function (subscriber) {\r\n        var source = this.source;\r\n        if (source) {\r\n            return this.source.subscribe(subscriber);\r\n        }\r\n        else {\r\n            return Subscription_1.Subscription.EMPTY;\r\n        }\r\n    };\r\n    return AnonymousSubject;\r\n}(Subject));\r\nexports.AnonymousSubject = AnonymousSubject;\r\n//# sourceMappingURL=Subject.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/Subject.js\n// module id = 55\n// module chunks = 2","\"use strict\";\r\nvar isArray_1 = require('./util/isArray');\r\nvar isObject_1 = require('./util/isObject');\r\nvar isFunction_1 = require('./util/isFunction');\r\nvar tryCatch_1 = require('./util/tryCatch');\r\nvar errorObject_1 = require('./util/errorObject');\r\nvar UnsubscriptionError_1 = require('./util/UnsubscriptionError');\r\n/**\r\n * Represents a disposable resource, such as the execution of an Observable. A\r\n * Subscription has one important method, `unsubscribe`, that takes no argument\r\n * and just disposes the resource held by the subscription.\r\n *\r\n * Additionally, subscriptions may be grouped together through the `add()`\r\n * method, which will attach a child Subscription to the current Subscription.\r\n * When a Subscription is unsubscribed, all its children (and its grandchildren)\r\n * will be unsubscribed as well.\r\n *\r\n * @class Subscription\r\n */\r\nvar Subscription = (function () {\r\n    /**\r\n     * @param {function(): void} [unsubscribe] A function describing how to\r\n     * perform the disposal of resources when the `unsubscribe` method is called.\r\n     */\r\n    function Subscription(unsubscribe) {\r\n        /**\r\n         * A flag to indicate whether this Subscription has already been unsubscribed.\r\n         * @type {boolean}\r\n         */\r\n        this.closed = false;\r\n        if (unsubscribe) {\r\n            this._unsubscribe = unsubscribe;\r\n        }\r\n    }\r\n    /**\r\n     * Disposes the resources held by the subscription. May, for instance, cancel\r\n     * an ongoing Observable execution or cancel any other type of work that\r\n     * started when the Subscription was created.\r\n     * @return {void}\r\n     */\r\n    Subscription.prototype.unsubscribe = function () {\r\n        var hasErrors = false;\r\n        var errors;\r\n        if (this.closed) {\r\n            return;\r\n        }\r\n        this.closed = true;\r\n        var _a = this, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions;\r\n        this._subscriptions = null;\r\n        if (isFunction_1.isFunction(_unsubscribe)) {\r\n            var trial = tryCatch_1.tryCatch(_unsubscribe).call(this);\r\n            if (trial === errorObject_1.errorObject) {\r\n                hasErrors = true;\r\n                (errors = errors || []).push(errorObject_1.errorObject.e);\r\n            }\r\n        }\r\n        if (isArray_1.isArray(_subscriptions)) {\r\n            var index = -1;\r\n            var len = _subscriptions.length;\r\n            while (++index < len) {\r\n                var sub = _subscriptions[index];\r\n                if (isObject_1.isObject(sub)) {\r\n                    var trial = tryCatch_1.tryCatch(sub.unsubscribe).call(sub);\r\n                    if (trial === errorObject_1.errorObject) {\r\n                        hasErrors = true;\r\n                        errors = errors || [];\r\n                        var err = errorObject_1.errorObject.e;\r\n                        if (err instanceof UnsubscriptionError_1.UnsubscriptionError) {\r\n                            errors = errors.concat(err.errors);\r\n                        }\r\n                        else {\r\n                            errors.push(err);\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n        if (hasErrors) {\r\n            throw new UnsubscriptionError_1.UnsubscriptionError(errors);\r\n        }\r\n    };\r\n    /**\r\n     * Adds a tear down to be called during the unsubscribe() of this\r\n     * Subscription.\r\n     *\r\n     * If the tear down being added is a subscription that is already\r\n     * unsubscribed, is the same reference `add` is being called on, or is\r\n     * `Subscription.EMPTY`, it will not be added.\r\n     *\r\n     * If this subscription is already in an `closed` state, the passed\r\n     * tear down logic will be executed immediately.\r\n     *\r\n     * @param {TeardownLogic} teardown The additional logic to execute on\r\n     * teardown.\r\n     * @return {Subscription} Returns the Subscription used or created to be\r\n     * added to the inner subscriptions list. This Subscription can be used with\r\n     * `remove()` to remove the passed teardown logic from the inner subscriptions\r\n     * list.\r\n     */\r\n    Subscription.prototype.add = function (teardown) {\r\n        if (!teardown || (teardown === Subscription.EMPTY)) {\r\n            return Subscription.EMPTY;\r\n        }\r\n        if (teardown === this) {\r\n            return this;\r\n        }\r\n        var sub = teardown;\r\n        switch (typeof teardown) {\r\n            case 'function':\r\n                sub = new Subscription(teardown);\r\n            case 'object':\r\n                if (sub.closed || typeof sub.unsubscribe !== 'function') {\r\n                    break;\r\n                }\r\n                else if (this.closed) {\r\n                    sub.unsubscribe();\r\n                }\r\n                else {\r\n                    (this._subscriptions || (this._subscriptions = [])).push(sub);\r\n                }\r\n                break;\r\n            default:\r\n                throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');\r\n        }\r\n        return sub;\r\n    };\r\n    /**\r\n     * Removes a Subscription from the internal list of subscriptions that will\r\n     * unsubscribe during the unsubscribe process of this Subscription.\r\n     * @param {Subscription} subscription The subscription to remove.\r\n     * @return {void}\r\n     */\r\n    Subscription.prototype.remove = function (subscription) {\r\n        // HACK: This might be redundant because of the logic in `add()`\r\n        if (subscription == null || (subscription === this) || (subscription === Subscription.EMPTY)) {\r\n            return;\r\n        }\r\n        var subscriptions = this._subscriptions;\r\n        if (subscriptions) {\r\n            var subscriptionIndex = subscriptions.indexOf(subscription);\r\n            if (subscriptionIndex !== -1) {\r\n                subscriptions.splice(subscriptionIndex, 1);\r\n            }\r\n        }\r\n    };\r\n    Subscription.EMPTY = (function (empty) {\r\n        empty.closed = true;\r\n        return empty;\r\n    }(new Subscription()));\r\n    return Subscription;\r\n}());\r\nexports.Subscription = Subscription;\r\n//# sourceMappingURL=Subscription.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/Subscription.js\n// module id = 56\n// module chunks = 2","/*!\r\n * The buffer module from node.js, for the browser.\r\n *\r\n * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\r\n * @license  MIT\r\n */\r\n/* eslint-disable no-proto */\r\n\r\n'use strict'\r\n\r\nvar base64 = require('base64-js')\r\nvar ieee754 = require('ieee754')\r\nvar isArray = require('isarray')\r\n\r\nexports.Buffer = Buffer\r\nexports.SlowBuffer = SlowBuffer\r\nexports.INSPECT_MAX_BYTES = 50\r\n\r\n/**\r\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\r\n *   === true    Use Uint8Array implementation (fastest)\r\n *   === false   Use Object implementation (most compatible, even IE6)\r\n *\r\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\r\n * Opera 11.6+, iOS 4.2+.\r\n *\r\n * Due to various browser bugs, sometimes the Object implementation will be used even\r\n * when the browser supports typed arrays.\r\n *\r\n * Note:\r\n *\r\n *   - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\r\n *     See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\r\n *\r\n *   - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\r\n *\r\n *   - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\r\n *     incorrect length in some situations.\r\n\r\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\r\n * get the Object implementation, which is slower but behaves correctly.\r\n */\r\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\r\n  ? global.TYPED_ARRAY_SUPPORT\r\n  : typedArraySupport()\r\n\r\n/*\r\n * Export kMaxLength after typed array support is determined.\r\n */\r\nexports.kMaxLength = kMaxLength()\r\n\r\nfunction typedArraySupport () {\r\n  try {\r\n    var arr = new Uint8Array(1)\r\n    arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\r\n    return arr.foo() === 42 && // typed array instances can be augmented\r\n        typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\r\n        arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\r\n  } catch (e) {\r\n    return false\r\n  }\r\n}\r\n\r\nfunction kMaxLength () {\r\n  return Buffer.TYPED_ARRAY_SUPPORT\r\n    ? 0x7fffffff\r\n    : 0x3fffffff\r\n}\r\n\r\nfunction createBuffer (that, length) {\r\n  if (kMaxLength() < length) {\r\n    throw new RangeError('Invalid typed array length')\r\n  }\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    // Return an augmented `Uint8Array` instance, for best performance\r\n    that = new Uint8Array(length)\r\n    that.__proto__ = Buffer.prototype\r\n  } else {\r\n    // Fallback: Return an object instance of the Buffer class\r\n    if (that === null) {\r\n      that = new Buffer(length)\r\n    }\r\n    that.length = length\r\n  }\r\n\r\n  return that\r\n}\r\n\r\n/**\r\n * The Buffer constructor returns instances of `Uint8Array` that have their\r\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\r\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\r\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\r\n * returns a single octet.\r\n *\r\n * The `Uint8Array` prototype remains unmodified.\r\n */\r\n\r\nfunction Buffer (arg, encodingOrOffset, length) {\r\n  if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\r\n    return new Buffer(arg, encodingOrOffset, length)\r\n  }\r\n\r\n  // Common case.\r\n  if (typeof arg === 'number') {\r\n    if (typeof encodingOrOffset === 'string') {\r\n      throw new Error(\r\n        'If encoding is specified then the first argument must be a string'\r\n      )\r\n    }\r\n    return allocUnsafe(this, arg)\r\n  }\r\n  return from(this, arg, encodingOrOffset, length)\r\n}\r\n\r\nBuffer.poolSize = 8192 // not used by this implementation\r\n\r\n// TODO: Legacy, not needed anymore. Remove in next major version.\r\nBuffer._augment = function (arr) {\r\n  arr.__proto__ = Buffer.prototype\r\n  return arr\r\n}\r\n\r\nfunction from (that, value, encodingOrOffset, length) {\r\n  if (typeof value === 'number') {\r\n    throw new TypeError('\"value\" argument must not be a number')\r\n  }\r\n\r\n  if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\r\n    return fromArrayBuffer(that, value, encodingOrOffset, length)\r\n  }\r\n\r\n  if (typeof value === 'string') {\r\n    return fromString(that, value, encodingOrOffset)\r\n  }\r\n\r\n  return fromObject(that, value)\r\n}\r\n\r\n/**\r\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\r\n * if value is a number.\r\n * Buffer.from(str[, encoding])\r\n * Buffer.from(array)\r\n * Buffer.from(buffer)\r\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\r\n **/\r\nBuffer.from = function (value, encodingOrOffset, length) {\r\n  return from(null, value, encodingOrOffset, length)\r\n}\r\n\r\nif (Buffer.TYPED_ARRAY_SUPPORT) {\r\n  Buffer.prototype.__proto__ = Uint8Array.prototype\r\n  Buffer.__proto__ = Uint8Array\r\n  if (typeof Symbol !== 'undefined' && Symbol.species &&\r\n      Buffer[Symbol.species] === Buffer) {\r\n    // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\r\n    Object.defineProperty(Buffer, Symbol.species, {\r\n      value: null,\r\n      configurable: true\r\n    })\r\n  }\r\n}\r\n\r\nfunction assertSize (size) {\r\n  if (typeof size !== 'number') {\r\n    throw new TypeError('\"size\" argument must be a number')\r\n  } else if (size < 0) {\r\n    throw new RangeError('\"size\" argument must not be negative')\r\n  }\r\n}\r\n\r\nfunction alloc (that, size, fill, encoding) {\r\n  assertSize(size)\r\n  if (size <= 0) {\r\n    return createBuffer(that, size)\r\n  }\r\n  if (fill !== undefined) {\r\n    // Only pay attention to encoding if it's a string. This\r\n    // prevents accidentally sending in a number that would\r\n    // be interpretted as a start offset.\r\n    return typeof encoding === 'string'\r\n      ? createBuffer(that, size).fill(fill, encoding)\r\n      : createBuffer(that, size).fill(fill)\r\n  }\r\n  return createBuffer(that, size)\r\n}\r\n\r\n/**\r\n * Creates a new filled Buffer instance.\r\n * alloc(size[, fill[, encoding]])\r\n **/\r\nBuffer.alloc = function (size, fill, encoding) {\r\n  return alloc(null, size, fill, encoding)\r\n}\r\n\r\nfunction allocUnsafe (that, size) {\r\n  assertSize(size)\r\n  that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\r\n  if (!Buffer.TYPED_ARRAY_SUPPORT) {\r\n    for (var i = 0; i < size; ++i) {\r\n      that[i] = 0\r\n    }\r\n  }\r\n  return that\r\n}\r\n\r\n/**\r\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\r\n * */\r\nBuffer.allocUnsafe = function (size) {\r\n  return allocUnsafe(null, size)\r\n}\r\n/**\r\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\r\n */\r\nBuffer.allocUnsafeSlow = function (size) {\r\n  return allocUnsafe(null, size)\r\n}\r\n\r\nfunction fromString (that, string, encoding) {\r\n  if (typeof encoding !== 'string' || encoding === '') {\r\n    encoding = 'utf8'\r\n  }\r\n\r\n  if (!Buffer.isEncoding(encoding)) {\r\n    throw new TypeError('\"encoding\" must be a valid string encoding')\r\n  }\r\n\r\n  var length = byteLength(string, encoding) | 0\r\n  that = createBuffer(that, length)\r\n\r\n  var actual = that.write(string, encoding)\r\n\r\n  if (actual !== length) {\r\n    // Writing a hex string, for example, that contains invalid characters will\r\n    // cause everything after the first invalid character to be ignored. (e.g.\r\n    // 'abxxcd' will be treated as 'ab')\r\n    that = that.slice(0, actual)\r\n  }\r\n\r\n  return that\r\n}\r\n\r\nfunction fromArrayLike (that, array) {\r\n  var length = array.length < 0 ? 0 : checked(array.length) | 0\r\n  that = createBuffer(that, length)\r\n  for (var i = 0; i < length; i += 1) {\r\n    that[i] = array[i] & 255\r\n  }\r\n  return that\r\n}\r\n\r\nfunction fromArrayBuffer (that, array, byteOffset, length) {\r\n  array.byteLength // this throws if `array` is not a valid ArrayBuffer\r\n\r\n  if (byteOffset < 0 || array.byteLength < byteOffset) {\r\n    throw new RangeError('\\'offset\\' is out of bounds')\r\n  }\r\n\r\n  if (array.byteLength < byteOffset + (length || 0)) {\r\n    throw new RangeError('\\'length\\' is out of bounds')\r\n  }\r\n\r\n  if (byteOffset === undefined && length === undefined) {\r\n    array = new Uint8Array(array)\r\n  } else if (length === undefined) {\r\n    array = new Uint8Array(array, byteOffset)\r\n  } else {\r\n    array = new Uint8Array(array, byteOffset, length)\r\n  }\r\n\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    // Return an augmented `Uint8Array` instance, for best performance\r\n    that = array\r\n    that.__proto__ = Buffer.prototype\r\n  } else {\r\n    // Fallback: Return an object instance of the Buffer class\r\n    that = fromArrayLike(that, array)\r\n  }\r\n  return that\r\n}\r\n\r\nfunction fromObject (that, obj) {\r\n  if (Buffer.isBuffer(obj)) {\r\n    var len = checked(obj.length) | 0\r\n    that = createBuffer(that, len)\r\n\r\n    if (that.length === 0) {\r\n      return that\r\n    }\r\n\r\n    obj.copy(that, 0, 0, len)\r\n    return that\r\n  }\r\n\r\n  if (obj) {\r\n    if ((typeof ArrayBuffer !== 'undefined' &&\r\n        obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\r\n      if (typeof obj.length !== 'number' || isnan(obj.length)) {\r\n        return createBuffer(that, 0)\r\n      }\r\n      return fromArrayLike(that, obj)\r\n    }\r\n\r\n    if (obj.type === 'Buffer' && isArray(obj.data)) {\r\n      return fromArrayLike(that, obj.data)\r\n    }\r\n  }\r\n\r\n  throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\r\n}\r\n\r\nfunction checked (length) {\r\n  // Note: cannot use `length < kMaxLength()` here because that fails when\r\n  // length is NaN (which is otherwise coerced to zero.)\r\n  if (length >= kMaxLength()) {\r\n    throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\r\n                         'size: 0x' + kMaxLength().toString(16) + ' bytes')\r\n  }\r\n  return length | 0\r\n}\r\n\r\nfunction SlowBuffer (length) {\r\n  if (+length != length) { // eslint-disable-line eqeqeq\r\n    length = 0\r\n  }\r\n  return Buffer.alloc(+length)\r\n}\r\n\r\nBuffer.isBuffer = function isBuffer (b) {\r\n  return !!(b != null && b._isBuffer)\r\n}\r\n\r\nBuffer.compare = function compare (a, b) {\r\n  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\r\n    throw new TypeError('Arguments must be Buffers')\r\n  }\r\n\r\n  if (a === b) return 0\r\n\r\n  var x = a.length\r\n  var y = b.length\r\n\r\n  for (var i = 0, len = Math.min(x, y); i < len; ++i) {\r\n    if (a[i] !== b[i]) {\r\n      x = a[i]\r\n      y = b[i]\r\n      break\r\n    }\r\n  }\r\n\r\n  if (x < y) return -1\r\n  if (y < x) return 1\r\n  return 0\r\n}\r\n\r\nBuffer.isEncoding = function isEncoding (encoding) {\r\n  switch (String(encoding).toLowerCase()) {\r\n    case 'hex':\r\n    case 'utf8':\r\n    case 'utf-8':\r\n    case 'ascii':\r\n    case 'latin1':\r\n    case 'binary':\r\n    case 'base64':\r\n    case 'ucs2':\r\n    case 'ucs-2':\r\n    case 'utf16le':\r\n    case 'utf-16le':\r\n      return true\r\n    default:\r\n      return false\r\n  }\r\n}\r\n\r\nBuffer.concat = function concat (list, length) {\r\n  if (!isArray(list)) {\r\n    throw new TypeError('\"list\" argument must be an Array of Buffers')\r\n  }\r\n\r\n  if (list.length === 0) {\r\n    return Buffer.alloc(0)\r\n  }\r\n\r\n  var i\r\n  if (length === undefined) {\r\n    length = 0\r\n    for (i = 0; i < list.length; ++i) {\r\n      length += list[i].length\r\n    }\r\n  }\r\n\r\n  var buffer = Buffer.allocUnsafe(length)\r\n  var pos = 0\r\n  for (i = 0; i < list.length; ++i) {\r\n    var buf = list[i]\r\n    if (!Buffer.isBuffer(buf)) {\r\n      throw new TypeError('\"list\" argument must be an Array of Buffers')\r\n    }\r\n    buf.copy(buffer, pos)\r\n    pos += buf.length\r\n  }\r\n  return buffer\r\n}\r\n\r\nfunction byteLength (string, encoding) {\r\n  if (Buffer.isBuffer(string)) {\r\n    return string.length\r\n  }\r\n  if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\r\n      (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\r\n    return string.byteLength\r\n  }\r\n  if (typeof string !== 'string') {\r\n    string = '' + string\r\n  }\r\n\r\n  var len = string.length\r\n  if (len === 0) return 0\r\n\r\n  // Use a for loop to avoid recursion\r\n  var loweredCase = false\r\n  for (;;) {\r\n    switch (encoding) {\r\n      case 'ascii':\r\n      case 'latin1':\r\n      case 'binary':\r\n        return len\r\n      case 'utf8':\r\n      case 'utf-8':\r\n      case undefined:\r\n        return utf8ToBytes(string).length\r\n      case 'ucs2':\r\n      case 'ucs-2':\r\n      case 'utf16le':\r\n      case 'utf-16le':\r\n        return len * 2\r\n      case 'hex':\r\n        return len >>> 1\r\n      case 'base64':\r\n        return base64ToBytes(string).length\r\n      default:\r\n        if (loweredCase) return utf8ToBytes(string).length // assume utf8\r\n        encoding = ('' + encoding).toLowerCase()\r\n        loweredCase = true\r\n    }\r\n  }\r\n}\r\nBuffer.byteLength = byteLength\r\n\r\nfunction slowToString (encoding, start, end) {\r\n  var loweredCase = false\r\n\r\n  // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\r\n  // property of a typed array.\r\n\r\n  // This behaves neither like String nor Uint8Array in that we set start/end\r\n  // to their upper/lower bounds if the value passed is out of range.\r\n  // undefined is handled specially as per ECMA-262 6th Edition,\r\n  // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\r\n  if (start === undefined || start < 0) {\r\n    start = 0\r\n  }\r\n  // Return early if start > this.length. Done here to prevent potential uint32\r\n  // coercion fail below.\r\n  if (start > this.length) {\r\n    return ''\r\n  }\r\n\r\n  if (end === undefined || end > this.length) {\r\n    end = this.length\r\n  }\r\n\r\n  if (end <= 0) {\r\n    return ''\r\n  }\r\n\r\n  // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\r\n  end >>>= 0\r\n  start >>>= 0\r\n\r\n  if (end <= start) {\r\n    return ''\r\n  }\r\n\r\n  if (!encoding) encoding = 'utf8'\r\n\r\n  while (true) {\r\n    switch (encoding) {\r\n      case 'hex':\r\n        return hexSlice(this, start, end)\r\n\r\n      case 'utf8':\r\n      case 'utf-8':\r\n        return utf8Slice(this, start, end)\r\n\r\n      case 'ascii':\r\n        return asciiSlice(this, start, end)\r\n\r\n      case 'latin1':\r\n      case 'binary':\r\n        return latin1Slice(this, start, end)\r\n\r\n      case 'base64':\r\n        return base64Slice(this, start, end)\r\n\r\n      case 'ucs2':\r\n      case 'ucs-2':\r\n      case 'utf16le':\r\n      case 'utf-16le':\r\n        return utf16leSlice(this, start, end)\r\n\r\n      default:\r\n        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\r\n        encoding = (encoding + '').toLowerCase()\r\n        loweredCase = true\r\n    }\r\n  }\r\n}\r\n\r\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\r\n// Buffer instances.\r\nBuffer.prototype._isBuffer = true\r\n\r\nfunction swap (b, n, m) {\r\n  var i = b[n]\r\n  b[n] = b[m]\r\n  b[m] = i\r\n}\r\n\r\nBuffer.prototype.swap16 = function swap16 () {\r\n  var len = this.length\r\n  if (len % 2 !== 0) {\r\n    throw new RangeError('Buffer size must be a multiple of 16-bits')\r\n  }\r\n  for (var i = 0; i < len; i += 2) {\r\n    swap(this, i, i + 1)\r\n  }\r\n  return this\r\n}\r\n\r\nBuffer.prototype.swap32 = function swap32 () {\r\n  var len = this.length\r\n  if (len % 4 !== 0) {\r\n    throw new RangeError('Buffer size must be a multiple of 32-bits')\r\n  }\r\n  for (var i = 0; i < len; i += 4) {\r\n    swap(this, i, i + 3)\r\n    swap(this, i + 1, i + 2)\r\n  }\r\n  return this\r\n}\r\n\r\nBuffer.prototype.swap64 = function swap64 () {\r\n  var len = this.length\r\n  if (len % 8 !== 0) {\r\n    throw new RangeError('Buffer size must be a multiple of 64-bits')\r\n  }\r\n  for (var i = 0; i < len; i += 8) {\r\n    swap(this, i, i + 7)\r\n    swap(this, i + 1, i + 6)\r\n    swap(this, i + 2, i + 5)\r\n    swap(this, i + 3, i + 4)\r\n  }\r\n  return this\r\n}\r\n\r\nBuffer.prototype.toString = function toString () {\r\n  var length = this.length | 0\r\n  if (length === 0) return ''\r\n  if (arguments.length === 0) return utf8Slice(this, 0, length)\r\n  return slowToString.apply(this, arguments)\r\n}\r\n\r\nBuffer.prototype.equals = function equals (b) {\r\n  if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\r\n  if (this === b) return true\r\n  return Buffer.compare(this, b) === 0\r\n}\r\n\r\nBuffer.prototype.inspect = function inspect () {\r\n  var str = ''\r\n  var max = exports.INSPECT_MAX_BYTES\r\n  if (this.length > 0) {\r\n    str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\r\n    if (this.length > max) str += ' ... '\r\n  }\r\n  return '<Buffer ' + str + '>'\r\n}\r\n\r\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\r\n  if (!Buffer.isBuffer(target)) {\r\n    throw new TypeError('Argument must be a Buffer')\r\n  }\r\n\r\n  if (start === undefined) {\r\n    start = 0\r\n  }\r\n  if (end === undefined) {\r\n    end = target ? target.length : 0\r\n  }\r\n  if (thisStart === undefined) {\r\n    thisStart = 0\r\n  }\r\n  if (thisEnd === undefined) {\r\n    thisEnd = this.length\r\n  }\r\n\r\n  if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\r\n    throw new RangeError('out of range index')\r\n  }\r\n\r\n  if (thisStart >= thisEnd && start >= end) {\r\n    return 0\r\n  }\r\n  if (thisStart >= thisEnd) {\r\n    return -1\r\n  }\r\n  if (start >= end) {\r\n    return 1\r\n  }\r\n\r\n  start >>>= 0\r\n  end >>>= 0\r\n  thisStart >>>= 0\r\n  thisEnd >>>= 0\r\n\r\n  if (this === target) return 0\r\n\r\n  var x = thisEnd - thisStart\r\n  var y = end - start\r\n  var len = Math.min(x, y)\r\n\r\n  var thisCopy = this.slice(thisStart, thisEnd)\r\n  var targetCopy = target.slice(start, end)\r\n\r\n  for (var i = 0; i < len; ++i) {\r\n    if (thisCopy[i] !== targetCopy[i]) {\r\n      x = thisCopy[i]\r\n      y = targetCopy[i]\r\n      break\r\n    }\r\n  }\r\n\r\n  if (x < y) return -1\r\n  if (y < x) return 1\r\n  return 0\r\n}\r\n\r\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\r\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\r\n//\r\n// Arguments:\r\n// - buffer - a Buffer to search\r\n// - val - a string, Buffer, or number\r\n// - byteOffset - an index into `buffer`; will be clamped to an int32\r\n// - encoding - an optional encoding, relevant is val is a string\r\n// - dir - true for indexOf, false for lastIndexOf\r\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\r\n  // Empty buffer means no match\r\n  if (buffer.length === 0) return -1\r\n\r\n  // Normalize byteOffset\r\n  if (typeof byteOffset === 'string') {\r\n    encoding = byteOffset\r\n    byteOffset = 0\r\n  } else if (byteOffset > 0x7fffffff) {\r\n    byteOffset = 0x7fffffff\r\n  } else if (byteOffset < -0x80000000) {\r\n    byteOffset = -0x80000000\r\n  }\r\n  byteOffset = +byteOffset  // Coerce to Number.\r\n  if (isNaN(byteOffset)) {\r\n    // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\r\n    byteOffset = dir ? 0 : (buffer.length - 1)\r\n  }\r\n\r\n  // Normalize byteOffset: negative offsets start from the end of the buffer\r\n  if (byteOffset < 0) byteOffset = buffer.length + byteOffset\r\n  if (byteOffset >= buffer.length) {\r\n    if (dir) return -1\r\n    else byteOffset = buffer.length - 1\r\n  } else if (byteOffset < 0) {\r\n    if (dir) byteOffset = 0\r\n    else return -1\r\n  }\r\n\r\n  // Normalize val\r\n  if (typeof val === 'string') {\r\n    val = Buffer.from(val, encoding)\r\n  }\r\n\r\n  // Finally, search either indexOf (if dir is true) or lastIndexOf\r\n  if (Buffer.isBuffer(val)) {\r\n    // Special case: looking for empty string/buffer always fails\r\n    if (val.length === 0) {\r\n      return -1\r\n    }\r\n    return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\r\n  } else if (typeof val === 'number') {\r\n    val = val & 0xFF // Search for a byte value [0-255]\r\n    if (Buffer.TYPED_ARRAY_SUPPORT &&\r\n        typeof Uint8Array.prototype.indexOf === 'function') {\r\n      if (dir) {\r\n        return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\r\n      } else {\r\n        return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\r\n      }\r\n    }\r\n    return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\r\n  }\r\n\r\n  throw new TypeError('val must be string, number or Buffer')\r\n}\r\n\r\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\r\n  var indexSize = 1\r\n  var arrLength = arr.length\r\n  var valLength = val.length\r\n\r\n  if (encoding !== undefined) {\r\n    encoding = String(encoding).toLowerCase()\r\n    if (encoding === 'ucs2' || encoding === 'ucs-2' ||\r\n        encoding === 'utf16le' || encoding === 'utf-16le') {\r\n      if (arr.length < 2 || val.length < 2) {\r\n        return -1\r\n      }\r\n      indexSize = 2\r\n      arrLength /= 2\r\n      valLength /= 2\r\n      byteOffset /= 2\r\n    }\r\n  }\r\n\r\n  function read (buf, i) {\r\n    if (indexSize === 1) {\r\n      return buf[i]\r\n    } else {\r\n      return buf.readUInt16BE(i * indexSize)\r\n    }\r\n  }\r\n\r\n  var i\r\n  if (dir) {\r\n    var foundIndex = -1\r\n    for (i = byteOffset; i < arrLength; i++) {\r\n      if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\r\n        if (foundIndex === -1) foundIndex = i\r\n        if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\r\n      } else {\r\n        if (foundIndex !== -1) i -= i - foundIndex\r\n        foundIndex = -1\r\n      }\r\n    }\r\n  } else {\r\n    if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\r\n    for (i = byteOffset; i >= 0; i--) {\r\n      var found = true\r\n      for (var j = 0; j < valLength; j++) {\r\n        if (read(arr, i + j) !== read(val, j)) {\r\n          found = false\r\n          break\r\n        }\r\n      }\r\n      if (found) return i\r\n    }\r\n  }\r\n\r\n  return -1\r\n}\r\n\r\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\r\n  return this.indexOf(val, byteOffset, encoding) !== -1\r\n}\r\n\r\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\r\n  return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\r\n}\r\n\r\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\r\n  return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\r\n}\r\n\r\nfunction hexWrite (buf, string, offset, length) {\r\n  offset = Number(offset) || 0\r\n  var remaining = buf.length - offset\r\n  if (!length) {\r\n    length = remaining\r\n  } else {\r\n    length = Number(length)\r\n    if (length > remaining) {\r\n      length = remaining\r\n    }\r\n  }\r\n\r\n  // must be an even number of digits\r\n  var strLen = string.length\r\n  if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\r\n\r\n  if (length > strLen / 2) {\r\n    length = strLen / 2\r\n  }\r\n  for (var i = 0; i < length; ++i) {\r\n    var parsed = parseInt(string.substr(i * 2, 2), 16)\r\n    if (isNaN(parsed)) return i\r\n    buf[offset + i] = parsed\r\n  }\r\n  return i\r\n}\r\n\r\nfunction utf8Write (buf, string, offset, length) {\r\n  return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\r\n}\r\n\r\nfunction asciiWrite (buf, string, offset, length) {\r\n  return blitBuffer(asciiToBytes(string), buf, offset, length)\r\n}\r\n\r\nfunction latin1Write (buf, string, offset, length) {\r\n  return asciiWrite(buf, string, offset, length)\r\n}\r\n\r\nfunction base64Write (buf, string, offset, length) {\r\n  return blitBuffer(base64ToBytes(string), buf, offset, length)\r\n}\r\n\r\nfunction ucs2Write (buf, string, offset, length) {\r\n  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\r\n}\r\n\r\nBuffer.prototype.write = function write (string, offset, length, encoding) {\r\n  // Buffer#write(string)\r\n  if (offset === undefined) {\r\n    encoding = 'utf8'\r\n    length = this.length\r\n    offset = 0\r\n  // Buffer#write(string, encoding)\r\n  } else if (length === undefined && typeof offset === 'string') {\r\n    encoding = offset\r\n    length = this.length\r\n    offset = 0\r\n  // Buffer#write(string, offset[, length][, encoding])\r\n  } else if (isFinite(offset)) {\r\n    offset = offset | 0\r\n    if (isFinite(length)) {\r\n      length = length | 0\r\n      if (encoding === undefined) encoding = 'utf8'\r\n    } else {\r\n      encoding = length\r\n      length = undefined\r\n    }\r\n  // legacy write(string, encoding, offset, length) - remove in v0.13\r\n  } else {\r\n    throw new Error(\r\n      'Buffer.write(string, encoding, offset[, length]) is no longer supported'\r\n    )\r\n  }\r\n\r\n  var remaining = this.length - offset\r\n  if (length === undefined || length > remaining) length = remaining\r\n\r\n  if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\r\n    throw new RangeError('Attempt to write outside buffer bounds')\r\n  }\r\n\r\n  if (!encoding) encoding = 'utf8'\r\n\r\n  var loweredCase = false\r\n  for (;;) {\r\n    switch (encoding) {\r\n      case 'hex':\r\n        return hexWrite(this, string, offset, length)\r\n\r\n      case 'utf8':\r\n      case 'utf-8':\r\n        return utf8Write(this, string, offset, length)\r\n\r\n      case 'ascii':\r\n        return asciiWrite(this, string, offset, length)\r\n\r\n      case 'latin1':\r\n      case 'binary':\r\n        return latin1Write(this, string, offset, length)\r\n\r\n      case 'base64':\r\n        // Warning: maxLength not taken into account in base64Write\r\n        return base64Write(this, string, offset, length)\r\n\r\n      case 'ucs2':\r\n      case 'ucs-2':\r\n      case 'utf16le':\r\n      case 'utf-16le':\r\n        return ucs2Write(this, string, offset, length)\r\n\r\n      default:\r\n        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\r\n        encoding = ('' + encoding).toLowerCase()\r\n        loweredCase = true\r\n    }\r\n  }\r\n}\r\n\r\nBuffer.prototype.toJSON = function toJSON () {\r\n  return {\r\n    type: 'Buffer',\r\n    data: Array.prototype.slice.call(this._arr || this, 0)\r\n  }\r\n}\r\n\r\nfunction base64Slice (buf, start, end) {\r\n  if (start === 0 && end === buf.length) {\r\n    return base64.fromByteArray(buf)\r\n  } else {\r\n    return base64.fromByteArray(buf.slice(start, end))\r\n  }\r\n}\r\n\r\nfunction utf8Slice (buf, start, end) {\r\n  end = Math.min(buf.length, end)\r\n  var res = []\r\n\r\n  var i = start\r\n  while (i < end) {\r\n    var firstByte = buf[i]\r\n    var codePoint = null\r\n    var bytesPerSequence = (firstByte > 0xEF) ? 4\r\n      : (firstByte > 0xDF) ? 3\r\n      : (firstByte > 0xBF) ? 2\r\n      : 1\r\n\r\n    if (i + bytesPerSequence <= end) {\r\n      var secondByte, thirdByte, fourthByte, tempCodePoint\r\n\r\n      switch (bytesPerSequence) {\r\n        case 1:\r\n          if (firstByte < 0x80) {\r\n            codePoint = firstByte\r\n          }\r\n          break\r\n        case 2:\r\n          secondByte = buf[i + 1]\r\n          if ((secondByte & 0xC0) === 0x80) {\r\n            tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\r\n            if (tempCodePoint > 0x7F) {\r\n              codePoint = tempCodePoint\r\n            }\r\n          }\r\n          break\r\n        case 3:\r\n          secondByte = buf[i + 1]\r\n          thirdByte = buf[i + 2]\r\n          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\r\n            tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\r\n            if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\r\n              codePoint = tempCodePoint\r\n            }\r\n          }\r\n          break\r\n        case 4:\r\n          secondByte = buf[i + 1]\r\n          thirdByte = buf[i + 2]\r\n          fourthByte = buf[i + 3]\r\n          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\r\n            tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\r\n            if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\r\n              codePoint = tempCodePoint\r\n            }\r\n          }\r\n      }\r\n    }\r\n\r\n    if (codePoint === null) {\r\n      // we did not generate a valid codePoint so insert a\r\n      // replacement char (U+FFFD) and advance only 1 byte\r\n      codePoint = 0xFFFD\r\n      bytesPerSequence = 1\r\n    } else if (codePoint > 0xFFFF) {\r\n      // encode to utf16 (surrogate pair dance)\r\n      codePoint -= 0x10000\r\n      res.push(codePoint >>> 10 & 0x3FF | 0xD800)\r\n      codePoint = 0xDC00 | codePoint & 0x3FF\r\n    }\r\n\r\n    res.push(codePoint)\r\n    i += bytesPerSequence\r\n  }\r\n\r\n  return decodeCodePointsArray(res)\r\n}\r\n\r\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\r\n// the lowest limit is Chrome, with 0x10000 args.\r\n// We go 1 magnitude less, for safety\r\nvar MAX_ARGUMENTS_LENGTH = 0x1000\r\n\r\nfunction decodeCodePointsArray (codePoints) {\r\n  var len = codePoints.length\r\n  if (len <= MAX_ARGUMENTS_LENGTH) {\r\n    return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\r\n  }\r\n\r\n  // Decode in chunks to avoid \"call stack size exceeded\".\r\n  var res = ''\r\n  var i = 0\r\n  while (i < len) {\r\n    res += String.fromCharCode.apply(\r\n      String,\r\n      codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\r\n    )\r\n  }\r\n  return res\r\n}\r\n\r\nfunction asciiSlice (buf, start, end) {\r\n  var ret = ''\r\n  end = Math.min(buf.length, end)\r\n\r\n  for (var i = start; i < end; ++i) {\r\n    ret += String.fromCharCode(buf[i] & 0x7F)\r\n  }\r\n  return ret\r\n}\r\n\r\nfunction latin1Slice (buf, start, end) {\r\n  var ret = ''\r\n  end = Math.min(buf.length, end)\r\n\r\n  for (var i = start; i < end; ++i) {\r\n    ret += String.fromCharCode(buf[i])\r\n  }\r\n  return ret\r\n}\r\n\r\nfunction hexSlice (buf, start, end) {\r\n  var len = buf.length\r\n\r\n  if (!start || start < 0) start = 0\r\n  if (!end || end < 0 || end > len) end = len\r\n\r\n  var out = ''\r\n  for (var i = start; i < end; ++i) {\r\n    out += toHex(buf[i])\r\n  }\r\n  return out\r\n}\r\n\r\nfunction utf16leSlice (buf, start, end) {\r\n  var bytes = buf.slice(start, end)\r\n  var res = ''\r\n  for (var i = 0; i < bytes.length; i += 2) {\r\n    res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\r\n  }\r\n  return res\r\n}\r\n\r\nBuffer.prototype.slice = function slice (start, end) {\r\n  var len = this.length\r\n  start = ~~start\r\n  end = end === undefined ? len : ~~end\r\n\r\n  if (start < 0) {\r\n    start += len\r\n    if (start < 0) start = 0\r\n  } else if (start > len) {\r\n    start = len\r\n  }\r\n\r\n  if (end < 0) {\r\n    end += len\r\n    if (end < 0) end = 0\r\n  } else if (end > len) {\r\n    end = len\r\n  }\r\n\r\n  if (end < start) end = start\r\n\r\n  var newBuf\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    newBuf = this.subarray(start, end)\r\n    newBuf.__proto__ = Buffer.prototype\r\n  } else {\r\n    var sliceLen = end - start\r\n    newBuf = new Buffer(sliceLen, undefined)\r\n    for (var i = 0; i < sliceLen; ++i) {\r\n      newBuf[i] = this[i + start]\r\n    }\r\n  }\r\n\r\n  return newBuf\r\n}\r\n\r\n/*\r\n * Need to make sure that buffer isn't trying to write out of bounds.\r\n */\r\nfunction checkOffset (offset, ext, length) {\r\n  if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\r\n  if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\r\n}\r\n\r\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\r\n  offset = offset | 0\r\n  byteLength = byteLength | 0\r\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\r\n\r\n  var val = this[offset]\r\n  var mul = 1\r\n  var i = 0\r\n  while (++i < byteLength && (mul *= 0x100)) {\r\n    val += this[offset + i] * mul\r\n  }\r\n\r\n  return val\r\n}\r\n\r\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\r\n  offset = offset | 0\r\n  byteLength = byteLength | 0\r\n  if (!noAssert) {\r\n    checkOffset(offset, byteLength, this.length)\r\n  }\r\n\r\n  var val = this[offset + --byteLength]\r\n  var mul = 1\r\n  while (byteLength > 0 && (mul *= 0x100)) {\r\n    val += this[offset + --byteLength] * mul\r\n  }\r\n\r\n  return val\r\n}\r\n\r\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 1, this.length)\r\n  return this[offset]\r\n}\r\n\r\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 2, this.length)\r\n  return this[offset] | (this[offset + 1] << 8)\r\n}\r\n\r\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 2, this.length)\r\n  return (this[offset] << 8) | this[offset + 1]\r\n}\r\n\r\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n\r\n  return ((this[offset]) |\r\n      (this[offset + 1] << 8) |\r\n      (this[offset + 2] << 16)) +\r\n      (this[offset + 3] * 0x1000000)\r\n}\r\n\r\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n\r\n  return (this[offset] * 0x1000000) +\r\n    ((this[offset + 1] << 16) |\r\n    (this[offset + 2] << 8) |\r\n    this[offset + 3])\r\n}\r\n\r\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\r\n  offset = offset | 0\r\n  byteLength = byteLength | 0\r\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\r\n\r\n  var val = this[offset]\r\n  var mul = 1\r\n  var i = 0\r\n  while (++i < byteLength && (mul *= 0x100)) {\r\n    val += this[offset + i] * mul\r\n  }\r\n  mul *= 0x80\r\n\r\n  if (val >= mul) val -= Math.pow(2, 8 * byteLength)\r\n\r\n  return val\r\n}\r\n\r\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\r\n  offset = offset | 0\r\n  byteLength = byteLength | 0\r\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\r\n\r\n  var i = byteLength\r\n  var mul = 1\r\n  var val = this[offset + --i]\r\n  while (i > 0 && (mul *= 0x100)) {\r\n    val += this[offset + --i] * mul\r\n  }\r\n  mul *= 0x80\r\n\r\n  if (val >= mul) val -= Math.pow(2, 8 * byteLength)\r\n\r\n  return val\r\n}\r\n\r\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 1, this.length)\r\n  if (!(this[offset] & 0x80)) return (this[offset])\r\n  return ((0xff - this[offset] + 1) * -1)\r\n}\r\n\r\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 2, this.length)\r\n  var val = this[offset] | (this[offset + 1] << 8)\r\n  return (val & 0x8000) ? val | 0xFFFF0000 : val\r\n}\r\n\r\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 2, this.length)\r\n  var val = this[offset + 1] | (this[offset] << 8)\r\n  return (val & 0x8000) ? val | 0xFFFF0000 : val\r\n}\r\n\r\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n\r\n  return (this[offset]) |\r\n    (this[offset + 1] << 8) |\r\n    (this[offset + 2] << 16) |\r\n    (this[offset + 3] << 24)\r\n}\r\n\r\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n\r\n  return (this[offset] << 24) |\r\n    (this[offset + 1] << 16) |\r\n    (this[offset + 2] << 8) |\r\n    (this[offset + 3])\r\n}\r\n\r\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n  return ieee754.read(this, offset, true, 23, 4)\r\n}\r\n\r\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n  return ieee754.read(this, offset, false, 23, 4)\r\n}\r\n\r\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 8, this.length)\r\n  return ieee754.read(this, offset, true, 52, 8)\r\n}\r\n\r\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\r\n  if (!noAssert) checkOffset(offset, 8, this.length)\r\n  return ieee754.read(this, offset, false, 52, 8)\r\n}\r\n\r\nfunction checkInt (buf, value, offset, ext, max, min) {\r\n  if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\r\n  if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\r\n  if (offset + ext > buf.length) throw new RangeError('Index out of range')\r\n}\r\n\r\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  byteLength = byteLength | 0\r\n  if (!noAssert) {\r\n    var maxBytes = Math.pow(2, 8 * byteLength) - 1\r\n    checkInt(this, value, offset, byteLength, maxBytes, 0)\r\n  }\r\n\r\n  var mul = 1\r\n  var i = 0\r\n  this[offset] = value & 0xFF\r\n  while (++i < byteLength && (mul *= 0x100)) {\r\n    this[offset + i] = (value / mul) & 0xFF\r\n  }\r\n\r\n  return offset + byteLength\r\n}\r\n\r\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  byteLength = byteLength | 0\r\n  if (!noAssert) {\r\n    var maxBytes = Math.pow(2, 8 * byteLength) - 1\r\n    checkInt(this, value, offset, byteLength, maxBytes, 0)\r\n  }\r\n\r\n  var i = byteLength - 1\r\n  var mul = 1\r\n  this[offset + i] = value & 0xFF\r\n  while (--i >= 0 && (mul *= 0x100)) {\r\n    this[offset + i] = (value / mul) & 0xFF\r\n  }\r\n\r\n  return offset + byteLength\r\n}\r\n\r\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\r\n  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\r\n  this[offset] = (value & 0xff)\r\n  return offset + 1\r\n}\r\n\r\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\r\n  if (value < 0) value = 0xffff + value + 1\r\n  for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\r\n    buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\r\n      (littleEndian ? i : 1 - i) * 8\r\n  }\r\n}\r\n\r\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    this[offset] = (value & 0xff)\r\n    this[offset + 1] = (value >>> 8)\r\n  } else {\r\n    objectWriteUInt16(this, value, offset, true)\r\n  }\r\n  return offset + 2\r\n}\r\n\r\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    this[offset] = (value >>> 8)\r\n    this[offset + 1] = (value & 0xff)\r\n  } else {\r\n    objectWriteUInt16(this, value, offset, false)\r\n  }\r\n  return offset + 2\r\n}\r\n\r\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\r\n  if (value < 0) value = 0xffffffff + value + 1\r\n  for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\r\n    buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\r\n  }\r\n}\r\n\r\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    this[offset + 3] = (value >>> 24)\r\n    this[offset + 2] = (value >>> 16)\r\n    this[offset + 1] = (value >>> 8)\r\n    this[offset] = (value & 0xff)\r\n  } else {\r\n    objectWriteUInt32(this, value, offset, true)\r\n  }\r\n  return offset + 4\r\n}\r\n\r\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    this[offset] = (value >>> 24)\r\n    this[offset + 1] = (value >>> 16)\r\n    this[offset + 2] = (value >>> 8)\r\n    this[offset + 3] = (value & 0xff)\r\n  } else {\r\n    objectWriteUInt32(this, value, offset, false)\r\n  }\r\n  return offset + 4\r\n}\r\n\r\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) {\r\n    var limit = Math.pow(2, 8 * byteLength - 1)\r\n\r\n    checkInt(this, value, offset, byteLength, limit - 1, -limit)\r\n  }\r\n\r\n  var i = 0\r\n  var mul = 1\r\n  var sub = 0\r\n  this[offset] = value & 0xFF\r\n  while (++i < byteLength && (mul *= 0x100)) {\r\n    if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\r\n      sub = 1\r\n    }\r\n    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\r\n  }\r\n\r\n  return offset + byteLength\r\n}\r\n\r\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) {\r\n    var limit = Math.pow(2, 8 * byteLength - 1)\r\n\r\n    checkInt(this, value, offset, byteLength, limit - 1, -limit)\r\n  }\r\n\r\n  var i = byteLength - 1\r\n  var mul = 1\r\n  var sub = 0\r\n  this[offset + i] = value & 0xFF\r\n  while (--i >= 0 && (mul *= 0x100)) {\r\n    if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\r\n      sub = 1\r\n    }\r\n    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\r\n  }\r\n\r\n  return offset + byteLength\r\n}\r\n\r\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\r\n  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\r\n  if (value < 0) value = 0xff + value + 1\r\n  this[offset] = (value & 0xff)\r\n  return offset + 1\r\n}\r\n\r\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    this[offset] = (value & 0xff)\r\n    this[offset + 1] = (value >>> 8)\r\n  } else {\r\n    objectWriteUInt16(this, value, offset, true)\r\n  }\r\n  return offset + 2\r\n}\r\n\r\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    this[offset] = (value >>> 8)\r\n    this[offset + 1] = (value & 0xff)\r\n  } else {\r\n    objectWriteUInt16(this, value, offset, false)\r\n  }\r\n  return offset + 2\r\n}\r\n\r\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    this[offset] = (value & 0xff)\r\n    this[offset + 1] = (value >>> 8)\r\n    this[offset + 2] = (value >>> 16)\r\n    this[offset + 3] = (value >>> 24)\r\n  } else {\r\n    objectWriteUInt32(this, value, offset, true)\r\n  }\r\n  return offset + 4\r\n}\r\n\r\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset | 0\r\n  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\r\n  if (value < 0) value = 0xffffffff + value + 1\r\n  if (Buffer.TYPED_ARRAY_SUPPORT) {\r\n    this[offset] = (value >>> 24)\r\n    this[offset + 1] = (value >>> 16)\r\n    this[offset + 2] = (value >>> 8)\r\n    this[offset + 3] = (value & 0xff)\r\n  } else {\r\n    objectWriteUInt32(this, value, offset, false)\r\n  }\r\n  return offset + 4\r\n}\r\n\r\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\r\n  if (offset + ext > buf.length) throw new RangeError('Index out of range')\r\n  if (offset < 0) throw new RangeError('Index out of range')\r\n}\r\n\r\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\r\n  if (!noAssert) {\r\n    checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\r\n  }\r\n  ieee754.write(buf, value, offset, littleEndian, 23, 4)\r\n  return offset + 4\r\n}\r\n\r\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\r\n  return writeFloat(this, value, offset, true, noAssert)\r\n}\r\n\r\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\r\n  return writeFloat(this, value, offset, false, noAssert)\r\n}\r\n\r\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\r\n  if (!noAssert) {\r\n    checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\r\n  }\r\n  ieee754.write(buf, value, offset, littleEndian, 52, 8)\r\n  return offset + 8\r\n}\r\n\r\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\r\n  return writeDouble(this, value, offset, true, noAssert)\r\n}\r\n\r\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\r\n  return writeDouble(this, value, offset, false, noAssert)\r\n}\r\n\r\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\r\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\r\n  if (!start) start = 0\r\n  if (!end && end !== 0) end = this.length\r\n  if (targetStart >= target.length) targetStart = target.length\r\n  if (!targetStart) targetStart = 0\r\n  if (end > 0 && end < start) end = start\r\n\r\n  // Copy 0 bytes; we're done\r\n  if (end === start) return 0\r\n  if (target.length === 0 || this.length === 0) return 0\r\n\r\n  // Fatal error conditions\r\n  if (targetStart < 0) {\r\n    throw new RangeError('targetStart out of bounds')\r\n  }\r\n  if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\r\n  if (end < 0) throw new RangeError('sourceEnd out of bounds')\r\n\r\n  // Are we oob?\r\n  if (end > this.length) end = this.length\r\n  if (target.length - targetStart < end - start) {\r\n    end = target.length - targetStart + start\r\n  }\r\n\r\n  var len = end - start\r\n  var i\r\n\r\n  if (this === target && start < targetStart && targetStart < end) {\r\n    // descending copy from end\r\n    for (i = len - 1; i >= 0; --i) {\r\n      target[i + targetStart] = this[i + start]\r\n    }\r\n  } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\r\n    // ascending copy from start\r\n    for (i = 0; i < len; ++i) {\r\n      target[i + targetStart] = this[i + start]\r\n    }\r\n  } else {\r\n    Uint8Array.prototype.set.call(\r\n      target,\r\n      this.subarray(start, start + len),\r\n      targetStart\r\n    )\r\n  }\r\n\r\n  return len\r\n}\r\n\r\n// Usage:\r\n//    buffer.fill(number[, offset[, end]])\r\n//    buffer.fill(buffer[, offset[, end]])\r\n//    buffer.fill(string[, offset[, end]][, encoding])\r\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\r\n  // Handle string cases:\r\n  if (typeof val === 'string') {\r\n    if (typeof start === 'string') {\r\n      encoding = start\r\n      start = 0\r\n      end = this.length\r\n    } else if (typeof end === 'string') {\r\n      encoding = end\r\n      end = this.length\r\n    }\r\n    if (val.length === 1) {\r\n      var code = val.charCodeAt(0)\r\n      if (code < 256) {\r\n        val = code\r\n      }\r\n    }\r\n    if (encoding !== undefined && typeof encoding !== 'string') {\r\n      throw new TypeError('encoding must be a string')\r\n    }\r\n    if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\r\n      throw new TypeError('Unknown encoding: ' + encoding)\r\n    }\r\n  } else if (typeof val === 'number') {\r\n    val = val & 255\r\n  }\r\n\r\n  // Invalid ranges are not set to a default, so can range check early.\r\n  if (start < 0 || this.length < start || this.length < end) {\r\n    throw new RangeError('Out of range index')\r\n  }\r\n\r\n  if (end <= start) {\r\n    return this\r\n  }\r\n\r\n  start = start >>> 0\r\n  end = end === undefined ? this.length : end >>> 0\r\n\r\n  if (!val) val = 0\r\n\r\n  var i\r\n  if (typeof val === 'number') {\r\n    for (i = start; i < end; ++i) {\r\n      this[i] = val\r\n    }\r\n  } else {\r\n    var bytes = Buffer.isBuffer(val)\r\n      ? val\r\n      : utf8ToBytes(new Buffer(val, encoding).toString())\r\n    var len = bytes.length\r\n    for (i = 0; i < end - start; ++i) {\r\n      this[i + start] = bytes[i % len]\r\n    }\r\n  }\r\n\r\n  return this\r\n}\r\n\r\n// HELPER FUNCTIONS\r\n// ================\r\n\r\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\r\n\r\nfunction base64clean (str) {\r\n  // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\r\n  str = stringtrim(str).replace(INVALID_BASE64_RE, '')\r\n  // Node converts strings with length < 2 to ''\r\n  if (str.length < 2) return ''\r\n  // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\r\n  while (str.length % 4 !== 0) {\r\n    str = str + '='\r\n  }\r\n  return str\r\n}\r\n\r\nfunction stringtrim (str) {\r\n  if (str.trim) return str.trim()\r\n  return str.replace(/^\\s+|\\s+$/g, '')\r\n}\r\n\r\nfunction toHex (n) {\r\n  if (n < 16) return '0' + n.toString(16)\r\n  return n.toString(16)\r\n}\r\n\r\nfunction utf8ToBytes (string, units) {\r\n  units = units || Infinity\r\n  var codePoint\r\n  var length = string.length\r\n  var leadSurrogate = null\r\n  var bytes = []\r\n\r\n  for (var i = 0; i < length; ++i) {\r\n    codePoint = string.charCodeAt(i)\r\n\r\n    // is surrogate component\r\n    if (codePoint > 0xD7FF && codePoint < 0xE000) {\r\n      // last char was a lead\r\n      if (!leadSurrogate) {\r\n        // no lead yet\r\n        if (codePoint > 0xDBFF) {\r\n          // unexpected trail\r\n          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\r\n          continue\r\n        } else if (i + 1 === length) {\r\n          // unpaired lead\r\n          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\r\n          continue\r\n        }\r\n\r\n        // valid lead\r\n        leadSurrogate = codePoint\r\n\r\n        continue\r\n      }\r\n\r\n      // 2 leads in a row\r\n      if (codePoint < 0xDC00) {\r\n        if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\r\n        leadSurrogate = codePoint\r\n        continue\r\n      }\r\n\r\n      // valid surrogate pair\r\n      codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\r\n    } else if (leadSurrogate) {\r\n      // valid bmp char, but last char was a lead\r\n      if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\r\n    }\r\n\r\n    leadSurrogate = null\r\n\r\n    // encode utf8\r\n    if (codePoint < 0x80) {\r\n      if ((units -= 1) < 0) break\r\n      bytes.push(codePoint)\r\n    } else if (codePoint < 0x800) {\r\n      if ((units -= 2) < 0) break\r\n      bytes.push(\r\n        codePoint >> 0x6 | 0xC0,\r\n        codePoint & 0x3F | 0x80\r\n      )\r\n    } else if (codePoint < 0x10000) {\r\n      if ((units -= 3) < 0) break\r\n      bytes.push(\r\n        codePoint >> 0xC | 0xE0,\r\n        codePoint >> 0x6 & 0x3F | 0x80,\r\n        codePoint & 0x3F | 0x80\r\n      )\r\n    } else if (codePoint < 0x110000) {\r\n      if ((units -= 4) < 0) break\r\n      bytes.push(\r\n        codePoint >> 0x12 | 0xF0,\r\n        codePoint >> 0xC & 0x3F | 0x80,\r\n        codePoint >> 0x6 & 0x3F | 0x80,\r\n        codePoint & 0x3F | 0x80\r\n      )\r\n    } else {\r\n      throw new Error('Invalid code point')\r\n    }\r\n  }\r\n\r\n  return bytes\r\n}\r\n\r\nfunction asciiToBytes (str) {\r\n  var byteArray = []\r\n  for (var i = 0; i < str.length; ++i) {\r\n    // Node's code seems to be doing this and not & 0x7F..\r\n    byteArray.push(str.charCodeAt(i) & 0xFF)\r\n  }\r\n  return byteArray\r\n}\r\n\r\nfunction utf16leToBytes (str, units) {\r\n  var c, hi, lo\r\n  var byteArray = []\r\n  for (var i = 0; i < str.length; ++i) {\r\n    if ((units -= 2) < 0) break\r\n\r\n    c = str.charCodeAt(i)\r\n    hi = c >> 8\r\n    lo = c % 256\r\n    byteArray.push(lo)\r\n    byteArray.push(hi)\r\n  }\r\n\r\n  return byteArray\r\n}\r\n\r\nfunction base64ToBytes (str) {\r\n  return base64.toByteArray(base64clean(str))\r\n}\r\n\r\nfunction blitBuffer (src, dst, offset, length) {\r\n  for (var i = 0; i < length; ++i) {\r\n    if ((i + offset >= dst.length) || (i >= src.length)) break\r\n    dst[i + offset] = src[i]\r\n  }\r\n  return i\r\n}\r\n\r\nfunction isnan (val) {\r\n  return val !== val // eslint-disable-line no-self-compare\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/buffer/index.js\n// module id = 57\n// module chunks = 2","'use strict';\r\n\r\nvar utils = require('./utils');\r\nvar support = require('./support');\r\nvar nodejsUtils = require('./nodejsUtils');\r\nvar GenericWorker = require('./stream/GenericWorker');\r\n\r\n/**\r\n * The following functions come from pako, from pako/lib/utils/strings\r\n * released under the MIT license, see pako https://github.com/nodeca/pako/\r\n */\r\n\r\n// Table with utf8 lengths (calculated by first byte of sequence)\r\n// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,\r\n// because max possible codepoint is 0x10ffff\r\nvar _utf8len = new Array(256);\r\nfor (var i=0; i<256; i++) {\r\n  _utf8len[i] = (i >= 252 ? 6 : i >= 248 ? 5 : i >= 240 ? 4 : i >= 224 ? 3 : i >= 192 ? 2 : 1);\r\n}\r\n_utf8len[254]=_utf8len[254]=1; // Invalid sequence start\r\n\r\n// convert string to array (typed, when possible)\r\nvar string2buf = function (str) {\r\n    var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;\r\n\r\n    // count binary size\r\n    for (m_pos = 0; m_pos < str_len; m_pos++) {\r\n        c = str.charCodeAt(m_pos);\r\n        if ((c & 0xfc00) === 0xd800 && (m_pos+1 < str_len)) {\r\n            c2 = str.charCodeAt(m_pos+1);\r\n            if ((c2 & 0xfc00) === 0xdc00) {\r\n                c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\r\n                m_pos++;\r\n            }\r\n        }\r\n        buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;\r\n    }\r\n\r\n    // allocate buffer\r\n    if (support.uint8array) {\r\n        buf = new Uint8Array(buf_len);\r\n    } else {\r\n        buf = new Array(buf_len);\r\n    }\r\n\r\n    // convert\r\n    for (i=0, m_pos = 0; i < buf_len; m_pos++) {\r\n        c = str.charCodeAt(m_pos);\r\n        if ((c & 0xfc00) === 0xd800 && (m_pos+1 < str_len)) {\r\n            c2 = str.charCodeAt(m_pos+1);\r\n            if ((c2 & 0xfc00) === 0xdc00) {\r\n                c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\r\n                m_pos++;\r\n            }\r\n        }\r\n        if (c < 0x80) {\r\n            /* one byte */\r\n            buf[i++] = c;\r\n        } else if (c < 0x800) {\r\n            /* two bytes */\r\n            buf[i++] = 0xC0 | (c >>> 6);\r\n            buf[i++] = 0x80 | (c & 0x3f);\r\n        } else if (c < 0x10000) {\r\n            /* three bytes */\r\n            buf[i++] = 0xE0 | (c >>> 12);\r\n            buf[i++] = 0x80 | (c >>> 6 & 0x3f);\r\n            buf[i++] = 0x80 | (c & 0x3f);\r\n        } else {\r\n            /* four bytes */\r\n            buf[i++] = 0xf0 | (c >>> 18);\r\n            buf[i++] = 0x80 | (c >>> 12 & 0x3f);\r\n            buf[i++] = 0x80 | (c >>> 6 & 0x3f);\r\n            buf[i++] = 0x80 | (c & 0x3f);\r\n        }\r\n    }\r\n\r\n    return buf;\r\n};\r\n\r\n// Calculate max possible position in utf8 buffer,\r\n// that will not break sequence. If that's not possible\r\n// - (very small limits) return max size as is.\r\n//\r\n// buf[] - utf8 bytes array\r\n// max   - length limit (mandatory);\r\nvar utf8border = function(buf, max) {\r\n    var pos;\r\n\r\n    max = max || buf.length;\r\n    if (max > buf.length) { max = buf.length; }\r\n\r\n    // go back from last position, until start of sequence found\r\n    pos = max-1;\r\n    while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }\r\n\r\n    // Fuckup - very small and broken sequence,\r\n    // return max, because we should return something anyway.\r\n    if (pos < 0) { return max; }\r\n\r\n    // If we came to start of buffer - that means vuffer is too small,\r\n    // return max too.\r\n    if (pos === 0) { return max; }\r\n\r\n    return (pos + _utf8len[buf[pos]] > max) ? pos : max;\r\n};\r\n\r\n// convert array to string\r\nvar buf2string = function (buf) {\r\n    var str, i, out, c, c_len;\r\n    var len = buf.length;\r\n\r\n    // Reserve max possible length (2 words per char)\r\n    // NB: by unknown reasons, Array is significantly faster for\r\n    //     String.fromCharCode.apply than Uint16Array.\r\n    var utf16buf = new Array(len*2);\r\n\r\n    for (out=0, i=0; i<len;) {\r\n        c = buf[i++];\r\n        // quick process ascii\r\n        if (c < 0x80) { utf16buf[out++] = c; continue; }\r\n\r\n        c_len = _utf8len[c];\r\n        // skip 5 & 6 byte codes\r\n        if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len-1; continue; }\r\n\r\n        // apply mask on first byte\r\n        c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;\r\n        // join the rest\r\n        while (c_len > 1 && i < len) {\r\n            c = (c << 6) | (buf[i++] & 0x3f);\r\n            c_len--;\r\n        }\r\n\r\n        // terminated by end of string?\r\n        if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }\r\n\r\n        if (c < 0x10000) {\r\n            utf16buf[out++] = c;\r\n        } else {\r\n            c -= 0x10000;\r\n            utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);\r\n            utf16buf[out++] = 0xdc00 | (c & 0x3ff);\r\n        }\r\n    }\r\n\r\n    // shrinkBuf(utf16buf, out)\r\n    if (utf16buf.length !== out) {\r\n        if(utf16buf.subarray) {\r\n            utf16buf = utf16buf.subarray(0, out);\r\n        } else {\r\n            utf16buf.length = out;\r\n        }\r\n    }\r\n\r\n    // return String.fromCharCode.apply(null, utf16buf);\r\n    return utils.applyFromCharCode(utf16buf);\r\n};\r\n\r\n\r\n// That's all for the pako functions.\r\n\r\n\r\n/**\r\n * Transform a javascript string into an array (typed if possible) of bytes,\r\n * UTF-8 encoded.\r\n * @param {String} str the string to encode\r\n * @return {Array|Uint8Array|Buffer} the UTF-8 encoded string.\r\n */\r\nexports.utf8encode = function utf8encode(str) {\r\n    if (support.nodebuffer) {\r\n        return nodejsUtils.newBuffer(str, \"utf-8\");\r\n    }\r\n\r\n    return string2buf(str);\r\n};\r\n\r\n\r\n/**\r\n * Transform a bytes array (or a representation) representing an UTF-8 encoded\r\n * string into a javascript string.\r\n * @param {Array|Uint8Array|Buffer} buf the data de decode\r\n * @return {String} the decoded string.\r\n */\r\nexports.utf8decode = function utf8decode(buf) {\r\n    if (support.nodebuffer) {\r\n        return utils.transformTo(\"nodebuffer\", buf).toString(\"utf-8\");\r\n    }\r\n\r\n    buf = utils.transformTo(support.uint8array ? \"uint8array\" : \"array\", buf);\r\n\r\n    return buf2string(buf);\r\n};\r\n\r\n/**\r\n * A worker to decode utf8 encoded binary chunks into string chunks.\r\n * @constructor\r\n */\r\nfunction Utf8DecodeWorker() {\r\n    GenericWorker.call(this, \"utf-8 decode\");\r\n    // the last bytes if a chunk didn't end with a complete codepoint.\r\n    this.leftOver = null;\r\n}\r\nutils.inherits(Utf8DecodeWorker, GenericWorker);\r\n\r\n/**\r\n * @see GenericWorker.processChunk\r\n */\r\nUtf8DecodeWorker.prototype.processChunk = function (chunk) {\r\n\r\n    var data = utils.transformTo(support.uint8array ? \"uint8array\" : \"array\", chunk.data);\r\n\r\n    // 1st step, re-use what's left of the previous chunk\r\n    if (this.leftOver && this.leftOver.length) {\r\n        if(support.uint8array) {\r\n            var previousData = data;\r\n            data = new Uint8Array(previousData.length + this.leftOver.length);\r\n            data.set(this.leftOver, 0);\r\n            data.set(previousData, this.leftOver.length);\r\n        } else {\r\n            data = this.leftOver.concat(data);\r\n        }\r\n        this.leftOver = null;\r\n    }\r\n\r\n    var nextBoundary = utf8border(data);\r\n    var usableData = data;\r\n    if (nextBoundary !== data.length) {\r\n        if (support.uint8array) {\r\n            usableData = data.subarray(0, nextBoundary);\r\n            this.leftOver = data.subarray(nextBoundary, data.length);\r\n        } else {\r\n            usableData = data.slice(0, nextBoundary);\r\n            this.leftOver = data.slice(nextBoundary, data.length);\r\n        }\r\n    }\r\n\r\n    this.push({\r\n        data : exports.utf8decode(usableData),\r\n        meta : chunk.meta\r\n    });\r\n};\r\n\r\n/**\r\n * @see GenericWorker.flush\r\n */\r\nUtf8DecodeWorker.prototype.flush = function () {\r\n    if(this.leftOver && this.leftOver.length) {\r\n        this.push({\r\n            data : exports.utf8decode(this.leftOver),\r\n            meta : {}\r\n        });\r\n        this.leftOver = null;\r\n    }\r\n};\r\nexports.Utf8DecodeWorker = Utf8DecodeWorker;\r\n\r\n/**\r\n * A worker to endcode string chunks into utf8 encoded binary chunks.\r\n * @constructor\r\n */\r\nfunction Utf8EncodeWorker() {\r\n    GenericWorker.call(this, \"utf-8 encode\");\r\n}\r\nutils.inherits(Utf8EncodeWorker, GenericWorker);\r\n\r\n/**\r\n * @see GenericWorker.processChunk\r\n */\r\nUtf8EncodeWorker.prototype.processChunk = function (chunk) {\r\n    this.push({\r\n        data : exports.utf8encode(chunk.data),\r\n        meta : chunk.meta\r\n    });\r\n};\r\nexports.Utf8EncodeWorker = Utf8EncodeWorker;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/utf8.js\n// module id = 60\n// module chunks = 2","/*! DataTables 1.10.15\r\n * ©2008-2017 SpryMedia Ltd - datatables.net/license\r\n */\r\n\r\n/**\r\n * @summary     DataTables\r\n * @description Paginate, search and order HTML tables\r\n * @version     1.10.15\r\n * @file        jquery.dataTables.js\r\n * @author      SpryMedia Ltd\r\n * @contact     www.datatables.net\r\n * @copyright   Copyright 2008-2017 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n *   MIT license - http://datatables.net/license\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */\r\n\r\n/*jslint evil: true, undef: true, browser: true */\r\n/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/\r\n\r\n(function( factory ) {\r\n\t\"use strict\";\r\n\r\n\tif ( typeof define === 'function' && define.amd ) {\r\n\t\t// AMD\r\n\t\tdefine( ['jquery'], function ( $ ) {\r\n\t\t\treturn factory( $, window, document );\r\n\t\t} );\r\n\t}\r\n\telse if ( typeof exports === 'object' ) {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = function (root, $) {\r\n\t\t\tif ( ! root ) {\r\n\t\t\t\t// CommonJS environments without a window global must pass a\r\n\t\t\t\t// root. This will give an error otherwise\r\n\t\t\t\troot = window;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $ ) {\r\n\t\t\t\t$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window\r\n\t\t\t\t\trequire('jquery') :\r\n\t\t\t\t\trequire('jquery')( root );\r\n\t\t\t}\r\n\r\n\t\t\treturn factory( $, root, root.document );\r\n\t\t};\r\n\t}\r\n\telse {\r\n\t\t// Browser\r\n\t\tfactory( jQuery, window, document );\r\n\t}\r\n}\r\n(function( $, window, document, undefined ) {\r\n\t\"use strict\";\r\n\r\n\t/**\r\n\t * DataTables is a plug-in for the jQuery Javascript library. It is a highly\r\n\t * flexible tool, based upon the foundations of progressive enhancement,\r\n\t * which will add advanced interaction controls to any HTML table. For a\r\n\t * full list of features please refer to\r\n\t * [DataTables.net](href=\"http://datatables.net).\r\n\t *\r\n\t * Note that the `DataTable` object is not a global variable but is aliased\r\n\t * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may\r\n\t * be  accessed.\r\n\t *\r\n\t *  @class\r\n\t *  @param {object} [init={}] Configuration object for DataTables. Options\r\n\t *    are defined by {@link DataTable.defaults}\r\n\t *  @requires jQuery 1.7+\r\n\t *\r\n\t *  @example\r\n\t *    // Basic initialisation\r\n\t *    $(document).ready( function {\r\n\t *      $('#example').dataTable();\r\n\t *    } );\r\n\t *\r\n\t *  @example\r\n\t *    // Initialisation with configuration options - in this case, disable\r\n\t *    // pagination and sorting.\r\n\t *    $(document).ready( function {\r\n\t *      $('#example').dataTable( {\r\n\t *        \"paginate\": false,\r\n\t *        \"sort\": false\r\n\t *      } );\r\n\t *    } );\r\n\t */\r\n\tvar DataTable = function ( options )\r\n\t{\r\n\t\t/**\r\n\t\t * Perform a jQuery selector action on the table's TR elements (from the tbody) and\r\n\t\t * return the resulting jQuery object.\r\n\t\t *  @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\r\n\t\t *  @param {object} [oOpts] Optional parameters for modifying the rows to be included\r\n\t\t *  @param {string} [oOpts.filter=none] Select TR elements that meet the current filter\r\n\t\t *    criterion (\"applied\") or all TR elements (i.e. no filter).\r\n\t\t *  @param {string} [oOpts.order=current] Order of the TR elements in the processed array.\r\n\t\t *    Can be either 'current', whereby the current sorting of the table is used, or\r\n\t\t *    'original' whereby the original order the data was read into the table is used.\r\n\t\t *  @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\r\n\t\t *    (\"current\") or not (\"all\"). If 'current' is given, then order is assumed to be\r\n\t\t *    'current' and filter is 'applied', regardless of what they might be given as.\r\n\t\t *  @returns {object} jQuery object, filtered by the given selector.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Highlight every second row\r\n\t\t *      oTable.$('tr:odd').css('backgroundColor', 'blue');\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Filter to rows with 'Webkit' in them, add a background colour and then\r\n\t\t *      // remove the filter, thus highlighting the 'Webkit' rows only.\r\n\t\t *      oTable.fnFilter('Webkit');\r\n\t\t *      oTable.$('tr', {\"search\": \"applied\"}).css('backgroundColor', 'blue');\r\n\t\t *      oTable.fnFilter('');\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.$ = function ( sSelector, oOpts )\r\n\t\t{\r\n\t\t\treturn this.api(true).$( sSelector, oOpts );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Almost identical to $ in operation, but in this case returns the data for the matched\r\n\t\t * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes\r\n\t\t * rather than any descendants, so the data can be obtained for the row/cell. If matching\r\n\t\t * rows are found, the data returned is the original data array/object that was used to\r\n\t\t * create the row (or a generated array if from a DOM source).\r\n\t\t *\r\n\t\t * This method is often useful in-combination with $ where both functions are given the\r\n\t\t * same parameters and the array indexes will match identically.\r\n\t\t *  @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\r\n\t\t *  @param {object} [oOpts] Optional parameters for modifying the rows to be included\r\n\t\t *  @param {string} [oOpts.filter=none] Select elements that meet the current filter\r\n\t\t *    criterion (\"applied\") or all elements (i.e. no filter).\r\n\t\t *  @param {string} [oOpts.order=current] Order of the data in the processed array.\r\n\t\t *    Can be either 'current', whereby the current sorting of the table is used, or\r\n\t\t *    'original' whereby the original order the data was read into the table is used.\r\n\t\t *  @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\r\n\t\t *    (\"current\") or not (\"all\"). If 'current' is given, then order is assumed to be\r\n\t\t *    'current' and filter is 'applied', regardless of what they might be given as.\r\n\t\t *  @returns {array} Data for the matched elements. If any elements, as a result of the\r\n\t\t *    selector, were not TR, TD or TH elements in the DataTable, they will have a null\r\n\t\t *    entry in the array.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Get the data from the first row in the table\r\n\t\t *      var data = oTable._('tr:first');\r\n\t\t *\r\n\t\t *      // Do something useful with the data\r\n\t\t *      alert( \"First cell is: \"+data[0] );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Filter to 'Webkit' and get all data for\r\n\t\t *      oTable.fnFilter('Webkit');\r\n\t\t *      var data = oTable._('tr', {\"search\": \"applied\"});\r\n\t\t *\r\n\t\t *      // Do something with the data\r\n\t\t *      alert( data.length+\" rows matched the search\" );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis._ = function ( sSelector, oOpts )\r\n\t\t{\r\n\t\t\treturn this.api(true).rows( sSelector, oOpts ).data();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Create a DataTables Api instance, with the currently selected tables for\r\n\t\t * the Api's context.\r\n\t\t * @param {boolean} [traditional=false] Set the API instance's context to be\r\n\t\t *   only the table referred to by the `DataTable.ext.iApiIndex` option, as was\r\n\t\t *   used in the API presented by DataTables 1.9- (i.e. the traditional mode),\r\n\t\t *   or if all tables captured in the jQuery object should be used.\r\n\t\t * @return {DataTables.Api}\r\n\t\t */\r\n\t\tthis.api = function ( traditional )\r\n\t\t{\r\n\t\t\treturn traditional ?\r\n\t\t\t\tnew _Api(\r\n\t\t\t\t\t_fnSettingsFromNode( this[ _ext.iApiIndex ] )\r\n\t\t\t\t) :\r\n\t\t\t\tnew _Api( this );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Add a single new row or multiple rows of data to the table. Please note\r\n\t\t * that this is suitable for client-side processing only - if you are using\r\n\t\t * server-side processing (i.e. \"bServerSide\": true), then to add data, you\r\n\t\t * must add it to the data source, i.e. the server-side, through an Ajax call.\r\n\t\t *  @param {array|object} data The data to be added to the table. This can be:\r\n\t\t *    <ul>\r\n\t\t *      <li>1D array of data - add a single row with the data provided</li>\r\n\t\t *      <li>2D array of arrays - add multiple rows in a single call</li>\r\n\t\t *      <li>object - data object when using <i>mData</i></li>\r\n\t\t *      <li>array of objects - multiple data objects when using <i>mData</i></li>\r\n\t\t *    </ul>\r\n\t\t *  @param {bool} [redraw=true] redraw the table or not\r\n\t\t *  @returns {array} An array of integers, representing the list of indexes in\r\n\t\t *    <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to\r\n\t\t *    the table.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Global var for counter\r\n\t\t *    var giCount = 2;\r\n\t\t *\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      $('#example').dataTable();\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *    function fnClickAddRow() {\r\n\t\t *      $('#example').dataTable().fnAddData( [\r\n\t\t *        giCount+\".1\",\r\n\t\t *        giCount+\".2\",\r\n\t\t *        giCount+\".3\",\r\n\t\t *        giCount+\".4\" ]\r\n\t\t *      );\r\n\t\t *\r\n\t\t *      giCount++;\r\n\t\t *    }\r\n\t\t */\r\n\t\tthis.fnAddData = function( data, redraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\t/* Check if we want to add multiple rows or not */\r\n\t\t\tvar rows = $.isArray(data) && ( $.isArray(data[0]) || $.isPlainObject(data[0]) ) ?\r\n\t\t\t\tapi.rows.add( data ) :\r\n\t\t\t\tapi.row.add( data );\r\n\t\t\r\n\t\t\tif ( redraw === undefined || redraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn rows.flatten().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * This function will make DataTables recalculate the column sizes, based on the data\r\n\t\t * contained in the table and the sizes applied to the columns (in the DOM, CSS or\r\n\t\t * through the sWidth parameter). This can be useful when the width of the table's\r\n\t\t * parent element changes (for example a window resize).\r\n\t\t *  @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable( {\r\n\t\t *        \"sScrollY\": \"200px\",\r\n\t\t *        \"bPaginate\": false\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      $(window).on('resize', function () {\r\n\t\t *        oTable.fnAdjustColumnSizing();\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnAdjustColumnSizing = function ( bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).columns.adjust();\r\n\t\t\tvar settings = api.settings()[0];\r\n\t\t\tvar scroll = settings.oScroll;\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw( false );\r\n\t\t\t}\r\n\t\t\telse if ( scroll.sX !== \"\" || scroll.sY !== \"\" ) {\r\n\t\t\t\t/* If not redrawing, but scrolling, we want to apply the new column sizes anyway */\r\n\t\t\t\t_fnScrollDraw( settings );\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Quickly and simply clear a table\r\n\t\t *  @param {bool} [bRedraw=true] redraw the table or not\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)\r\n\t\t *      oTable.fnClearTable();\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnClearTable = function( bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).clear();\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * The exact opposite of 'opening' a row, this function will close any rows which\r\n\t\t * are currently 'open'.\r\n\t\t *  @param {node} nTr the table row to 'close'\r\n\t\t *  @returns {int} 0 on success, or 1 if failed (can't find the row)\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable;\r\n\t\t *\r\n\t\t *      // 'open' an information row when a row is clicked on\r\n\t\t *      $('#example tbody tr').click( function () {\r\n\t\t *        if ( oTable.fnIsOpen(this) ) {\r\n\t\t *          oTable.fnClose( this );\r\n\t\t *        } else {\r\n\t\t *          oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnClose = function( nTr )\r\n\t\t{\r\n\t\t\tthis.api( true ).row( nTr ).child.hide();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Remove a row for the table\r\n\t\t *  @param {mixed} target The index of the row from aoData to be deleted, or\r\n\t\t *    the TR element you want to delete\r\n\t\t *  @param {function|null} [callBack] Callback function\r\n\t\t *  @param {bool} [redraw=true] Redraw the table or not\r\n\t\t *  @returns {array} The row that was deleted\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Immediately remove the first row\r\n\t\t *      oTable.fnDeleteRow( 0 );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnDeleteRow = function( target, callback, redraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\tvar rows = api.rows( target );\r\n\t\t\tvar settings = rows.settings()[0];\r\n\t\t\tvar data = settings.aoData[ rows[0][0] ];\r\n\t\t\r\n\t\t\trows.remove();\r\n\t\t\r\n\t\t\tif ( callback ) {\r\n\t\t\t\tcallback.call( this, settings, data );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( redraw === undefined || redraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn data;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Restore the table to it's original state in the DOM by removing all of DataTables\r\n\t\t * enhancements, alterations to the DOM structure of the table and event listeners.\r\n\t\t *  @param {boolean} [remove=false] Completely remove the table from the DOM\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      // This example is fairly pointless in reality, but shows how fnDestroy can be used\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *      oTable.fnDestroy();\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnDestroy = function ( remove )\r\n\t\t{\r\n\t\t\tthis.api( true ).destroy( remove );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Redraw the table\r\n\t\t *  @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Re-draw the table - you wouldn't want to do it here, but it's an example :-)\r\n\t\t *      oTable.fnDraw();\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnDraw = function( complete )\r\n\t\t{\r\n\t\t\t// Note that this isn't an exact match to the old call to _fnDraw - it takes\r\n\t\t\t// into account the new data, but can hold position.\r\n\t\t\tthis.api( true ).draw( complete );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Filter the input based on data\r\n\t\t *  @param {string} sInput String to filter the table on\r\n\t\t *  @param {int|null} [iColumn] Column to limit filtering to\r\n\t\t *  @param {bool} [bRegex=false] Treat as regular expression or not\r\n\t\t *  @param {bool} [bSmart=true] Perform smart filtering or not\r\n\t\t *  @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)\r\n\t\t *  @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Sometime later - filter...\r\n\t\t *      oTable.fnFilter( 'test string' );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( iColumn === null || iColumn === undefined ) {\r\n\t\t\t\tapi.search( sInput, bRegex, bSmart, bCaseInsensitive );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tapi.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tapi.draw();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the data for the whole table, an individual row or an individual cell based on the\r\n\t\t * provided parameters.\r\n\t\t *  @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as\r\n\t\t *    a TR node then the data source for the whole row will be returned. If given as a\r\n\t\t *    TD/TH cell node then iCol will be automatically calculated and the data for the\r\n\t\t *    cell returned. If given as an integer, then this is treated as the aoData internal\r\n\t\t *    data index for the row (see fnGetPosition) and the data for that row used.\r\n\t\t *  @param {int} [col] Optional column index that you want the data of.\r\n\t\t *  @returns {array|object|string} If mRow is undefined, then the data for all rows is\r\n\t\t *    returned. If mRow is defined, just data for that row, and is iCol is\r\n\t\t *    defined, only data for the designated cell is returned.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Row data\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      oTable.$('tr').click( function () {\r\n\t\t *        var data = oTable.fnGetData( this );\r\n\t\t *        // ... do something with the array / object of data for the row\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Individual cell data\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      oTable.$('td').click( function () {\r\n\t\t *        var sData = oTable.fnGetData( this );\r\n\t\t *        alert( 'The cell clicked on had the value of '+sData );\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnGetData = function( src, col )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( src !== undefined ) {\r\n\t\t\t\tvar type = src.nodeName ? src.nodeName.toLowerCase() : '';\r\n\t\t\r\n\t\t\t\treturn col !== undefined || type == 'td' || type == 'th' ?\r\n\t\t\t\t\tapi.cell( src, col ).data() :\r\n\t\t\t\t\tapi.row( src ).data() || null;\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn api.data().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get an array of the TR nodes that are used in the table's body. Note that you will\r\n\t\t * typically want to use the '$' API method in preference to this as it is more\r\n\t\t * flexible.\r\n\t\t *  @param {int} [iRow] Optional row index for the TR element you want\r\n\t\t *  @returns {array|node} If iRow is undefined, returns an array of all TR elements\r\n\t\t *    in the table's body, or iRow is defined, just the TR element requested.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Get the nodes from the table\r\n\t\t *      var nNodes = oTable.fnGetNodes( );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnGetNodes = function( iRow )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\treturn iRow !== undefined ?\r\n\t\t\t\tapi.row( iRow ).node() :\r\n\t\t\t\tapi.rows().nodes().flatten().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the array indexes of a particular cell from it's DOM element\r\n\t\t * and column index including hidden columns\r\n\t\t *  @param {node} node this can either be a TR, TD or TH in the table's body\r\n\t\t *  @returns {int} If nNode is given as a TR, then a single index is returned, or\r\n\t\t *    if given as a cell, an array of [row index, column index (visible),\r\n\t\t *    column index (all)] is given.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      $('#example tbody td').click( function () {\r\n\t\t *        // Get the position of the current data from the node\r\n\t\t *        var aPos = oTable.fnGetPosition( this );\r\n\t\t *\r\n\t\t *        // Get the data array for this row\r\n\t\t *        var aData = oTable.fnGetData( aPos[0] );\r\n\t\t *\r\n\t\t *        // Update the data array and return the value\r\n\t\t *        aData[ aPos[1] ] = 'clicked';\r\n\t\t *        this.innerHTML = 'clicked';\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      // Init DataTables\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnGetPosition = function( node )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\tvar nodeName = node.nodeName.toUpperCase();\r\n\t\t\r\n\t\t\tif ( nodeName == 'TR' ) {\r\n\t\t\t\treturn api.row( node ).index();\r\n\t\t\t}\r\n\t\t\telse if ( nodeName == 'TD' || nodeName == 'TH' ) {\r\n\t\t\t\tvar cell = api.cell( node ).index();\r\n\t\t\r\n\t\t\t\treturn [\r\n\t\t\t\t\tcell.row,\r\n\t\t\t\t\tcell.columnVisible,\r\n\t\t\t\t\tcell.column\r\n\t\t\t\t];\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Check to see if a row is 'open' or not.\r\n\t\t *  @param {node} nTr the table row to check\r\n\t\t *  @returns {boolean} true if the row is currently open, false otherwise\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable;\r\n\t\t *\r\n\t\t *      // 'open' an information row when a row is clicked on\r\n\t\t *      $('#example tbody tr').click( function () {\r\n\t\t *        if ( oTable.fnIsOpen(this) ) {\r\n\t\t *          oTable.fnClose( this );\r\n\t\t *        } else {\r\n\t\t *          oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnIsOpen = function( nTr )\r\n\t\t{\r\n\t\t\treturn this.api( true ).row( nTr ).child.isShown();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * This function will place a new row directly after a row which is currently\r\n\t\t * on display on the page, with the HTML contents that is passed into the\r\n\t\t * function. This can be used, for example, to ask for confirmation that a\r\n\t\t * particular record should be deleted.\r\n\t\t *  @param {node} nTr The table row to 'open'\r\n\t\t *  @param {string|node|jQuery} mHtml The HTML to put into the row\r\n\t\t *  @param {string} sClass Class to give the new TD cell\r\n\t\t *  @returns {node} The row opened. Note that if the table row passed in as the\r\n\t\t *    first parameter, is not found in the table, this method will silently\r\n\t\t *    return.\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable;\r\n\t\t *\r\n\t\t *      // 'open' an information row when a row is clicked on\r\n\t\t *      $('#example tbody tr').click( function () {\r\n\t\t *        if ( oTable.fnIsOpen(this) ) {\r\n\t\t *          oTable.fnClose( this );\r\n\t\t *        } else {\r\n\t\t *          oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      oTable = $('#example').dataTable();\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnOpen = function( nTr, mHtml, sClass )\r\n\t\t{\r\n\t\t\treturn this.api( true )\r\n\t\t\t\t.row( nTr )\r\n\t\t\t\t.child( mHtml, sClass )\r\n\t\t\t\t.show()\r\n\t\t\t\t.child()[0];\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Change the pagination - provides the internal logic for pagination in a simple API\r\n\t\t * function. With this function you can have a DataTables table go to the next,\r\n\t\t * previous, first or last pages.\r\n\t\t *  @param {string|int} mAction Paging action to take: \"first\", \"previous\", \"next\" or \"last\"\r\n\t\t *    or page number to jump to (integer), note that page 0 is the first page.\r\n\t\t *  @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *      oTable.fnPageChange( 'next' );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnPageChange = function ( mAction, bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).page( mAction );\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw(false);\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Show a particular column\r\n\t\t *  @param {int} iCol The column whose display should be changed\r\n\t\t *  @param {bool} bShow Show (true) or hide (false) the column\r\n\t\t *  @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Hide the second column after initialisation\r\n\t\t *      oTable.fnSetColumnVis( 1, false );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnSetColumnVis = function ( iCol, bShow, bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).column( iCol ).visible( bShow );\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.columns.adjust().draw();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the settings for a particular table for external manipulation\r\n\t\t *  @returns {object} DataTables settings object. See\r\n\t\t *    {@link DataTable.models.oSettings}\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *      var oSettings = oTable.fnSettings();\r\n\t\t *\r\n\t\t *      // Show an example parameter from the settings\r\n\t\t *      alert( oSettings._iDisplayStart );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnSettings = function()\r\n\t\t{\r\n\t\t\treturn _fnSettingsFromNode( this[_ext.iApiIndex] );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Sort the table by a particular column\r\n\t\t *  @param {int} iCol the data index to sort on. Note that this will not match the\r\n\t\t *    'display index' if you have hidden data entries\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Sort immediately with columns 0 and 1\r\n\t\t *      oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnSort = function( aaSort )\r\n\t\t{\r\n\t\t\tthis.api( true ).order( aaSort ).draw();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Attach a sort listener to an element for a given column\r\n\t\t *  @param {node} nNode the element to attach the sort listener to\r\n\t\t *  @param {int} iColumn the column that a click on this node will sort on\r\n\t\t *  @param {function} [fnCallback] callback function when sort is run\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t *      // Sort on column 1, when 'sorter' is clicked on\r\n\t\t *      oTable.fnSortListener( document.getElementById('sorter'), 1 );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnSortListener = function( nNode, iColumn, fnCallback )\r\n\t\t{\r\n\t\t\tthis.api( true ).order.listener( nNode, iColumn, fnCallback );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Update a table cell or row - this method will accept either a single value to\r\n\t\t * update the cell with, an array of values with one element for each column or\r\n\t\t * an object in the same format as the original data source. The function is\r\n\t\t * self-referencing in order to make the multi column updates easier.\r\n\t\t *  @param {object|array|string} mData Data to update the cell/row with\r\n\t\t *  @param {node|int} mRow TR element you want to update or the aoData index\r\n\t\t *  @param {int} [iColumn] The column to update, give as null or undefined to\r\n\t\t *    update a whole row.\r\n\t\t *  @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t *  @param {bool} [bAction=true] Perform pre-draw actions or not\r\n\t\t *  @returns {int} 0 on success, 1 on error\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *      oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell\r\n\t\t *      oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( iColumn === undefined || iColumn === null ) {\r\n\t\t\t\tapi.row( mRow ).data( mData );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tapi.cell( mRow, iColumn ).data( mData );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( bAction === undefined || bAction ) {\r\n\t\t\t\tapi.columns.adjust();\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Provide a common method for plug-ins to check the version of DataTables being used, in order\r\n\t\t * to ensure compatibility.\r\n\t\t *  @param {string} sVersion Version string to check for, in the format \"X.Y.Z\". Note that the\r\n\t\t *    formats \"X\" and \"X.Y\" are also acceptable.\r\n\t\t *  @returns {boolean} true if this version of DataTables is greater or equal to the required\r\n\t\t *    version, or false if this version of DataTales is not suitable\r\n\t\t *  @method\r\n\t\t *  @dtopt API\r\n\t\t *  @deprecated Since v1.10\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready(function() {\r\n\t\t *      var oTable = $('#example').dataTable();\r\n\t\t *      alert( oTable.fnVersionCheck( '1.9.0' ) );\r\n\t\t *    } );\r\n\t\t */\r\n\t\tthis.fnVersionCheck = _ext.fnVersionCheck;\r\n\t\t\r\n\r\n\t\tvar _that = this;\r\n\t\tvar emptyInit = options === undefined;\r\n\t\tvar len = this.length;\r\n\r\n\t\tif ( emptyInit ) {\r\n\t\t\toptions = {};\r\n\t\t}\r\n\r\n\t\tthis.oApi = this.internal = _ext.internal;\r\n\r\n\t\t// Extend with old style plug-in API methods\r\n\t\tfor ( var fn in DataTable.ext.internal ) {\r\n\t\t\tif ( fn ) {\r\n\t\t\t\tthis[fn] = _fnExternApiFunc(fn);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.each(function() {\r\n\t\t\t// For each initialisation we want to give it a clean initialisation\r\n\t\t\t// object that can be bashed around\r\n\t\t\tvar o = {};\r\n\t\t\tvar oInit = len > 1 ? // optimisation for single table case\r\n\t\t\t\t_fnExtend( o, options, true ) :\r\n\t\t\t\toptions;\r\n\r\n\t\t\t/*global oInit,_that,emptyInit*/\r\n\t\t\tvar i=0, iLen, j, jLen, k, kLen;\r\n\t\t\tvar sId = this.getAttribute( 'id' );\r\n\t\t\tvar bInitHandedOff = false;\r\n\t\t\tvar defaults = DataTable.defaults;\r\n\t\t\tvar $this = $(this);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/* Sanity check */\r\n\t\t\tif ( this.nodeName.toLowerCase() != 'table' )\r\n\t\t\t{\r\n\t\t\t\t_fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 );\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Backwards compatibility for the defaults */\r\n\t\t\t_fnCompatOpts( defaults );\r\n\t\t\t_fnCompatCols( defaults.column );\r\n\t\t\t\r\n\t\t\t/* Convert the camel-case defaults to Hungarian */\r\n\t\t\t_fnCamelToHungarian( defaults, defaults, true );\r\n\t\t\t_fnCamelToHungarian( defaults.column, defaults.column, true );\r\n\t\t\t\r\n\t\t\t/* Setting up the initialisation object */\r\n\t\t\t_fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ) );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/* Check to see if we are re-initialising a table */\r\n\t\t\tvar allSettings = DataTable.settings;\r\n\t\t\tfor ( i=0, iLen=allSettings.length ; i<iLen ; i++ )\r\n\t\t\t{\r\n\t\t\t\tvar s = allSettings[i];\r\n\t\t\t\r\n\t\t\t\t/* Base check on table node */\r\n\t\t\t\tif ( s.nTable == this || s.nTHead.parentNode == this || (s.nTFoot && s.nTFoot.parentNode == this) )\r\n\t\t\t\t{\r\n\t\t\t\t\tvar bRetrieve = oInit.bRetrieve !== undefined ? oInit.bRetrieve : defaults.bRetrieve;\r\n\t\t\t\t\tvar bDestroy = oInit.bDestroy !== undefined ? oInit.bDestroy : defaults.bDestroy;\r\n\t\t\t\r\n\t\t\t\t\tif ( emptyInit || bRetrieve )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn s.oInstance;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( bDestroy )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ts.oInstance.fnDestroy();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_fnLog( s, 0, 'Cannot reinitialise DataTable', 3 );\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* If the element we are initialising has the same ID as a table which was previously\r\n\t\t\t\t * initialised, but the table nodes don't match (from before) then we destroy the old\r\n\t\t\t\t * instance by simply deleting it. This is under the assumption that the table has been\r\n\t\t\t\t * destroyed by other methods. Anyone using non-id selectors will need to do this manually\r\n\t\t\t\t */\r\n\t\t\t\tif ( s.sTableId == this.id )\r\n\t\t\t\t{\r\n\t\t\t\t\tallSettings.splice( i, 1 );\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Ensure the table has an ID - required for accessibility */\r\n\t\t\tif ( sId === null || sId === \"\" )\r\n\t\t\t{\r\n\t\t\t\tsId = \"DataTables_Table_\"+(DataTable.ext._unique++);\r\n\t\t\t\tthis.id = sId;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Create the settings object for this table and set some of the default parameters */\r\n\t\t\tvar oSettings = $.extend( true, {}, DataTable.models.oSettings, {\r\n\t\t\t\t\"sDestroyWidth\": $this[0].style.width,\r\n\t\t\t\t\"sInstance\":     sId,\r\n\t\t\t\t\"sTableId\":      sId\r\n\t\t\t} );\r\n\t\t\toSettings.nTable = this;\r\n\t\t\toSettings.oApi   = _that.internal;\r\n\t\t\toSettings.oInit  = oInit;\r\n\t\t\t\r\n\t\t\tallSettings.push( oSettings );\r\n\t\t\t\r\n\t\t\t// Need to add the instance after the instance after the settings object has been added\r\n\t\t\t// to the settings array, so we can self reference the table instance if more than one\r\n\t\t\toSettings.oInstance = (_that.length===1) ? _that : $this.dataTable();\r\n\t\t\t\r\n\t\t\t// Backwards compatibility, before we apply all the defaults\r\n\t\t\t_fnCompatOpts( oInit );\r\n\t\t\t\r\n\t\t\tif ( oInit.oLanguage )\r\n\t\t\t{\r\n\t\t\t\t_fnLanguageCompat( oInit.oLanguage );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If the length menu is given, but the init display length is not, use the length menu\r\n\t\t\tif ( oInit.aLengthMenu && ! oInit.iDisplayLength )\r\n\t\t\t{\r\n\t\t\t\toInit.iDisplayLength = $.isArray( oInit.aLengthMenu[0] ) ?\r\n\t\t\t\t\toInit.aLengthMenu[0][0] : oInit.aLengthMenu[0];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Apply the defaults and init options to make a single init object will all\r\n\t\t\t// options defined from defaults and instance options.\r\n\t\t\toInit = _fnExtend( $.extend( true, {}, defaults ), oInit );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// Map the initialisation options onto the settings object\r\n\t\t\t_fnMap( oSettings.oFeatures, oInit, [\r\n\t\t\t\t\"bPaginate\",\r\n\t\t\t\t\"bLengthChange\",\r\n\t\t\t\t\"bFilter\",\r\n\t\t\t\t\"bSort\",\r\n\t\t\t\t\"bSortMulti\",\r\n\t\t\t\t\"bInfo\",\r\n\t\t\t\t\"bProcessing\",\r\n\t\t\t\t\"bAutoWidth\",\r\n\t\t\t\t\"bSortClasses\",\r\n\t\t\t\t\"bServerSide\",\r\n\t\t\t\t\"bDeferRender\"\r\n\t\t\t] );\r\n\t\t\t_fnMap( oSettings, oInit, [\r\n\t\t\t\t\"asStripeClasses\",\r\n\t\t\t\t\"ajax\",\r\n\t\t\t\t\"fnServerData\",\r\n\t\t\t\t\"fnFormatNumber\",\r\n\t\t\t\t\"sServerMethod\",\r\n\t\t\t\t\"aaSorting\",\r\n\t\t\t\t\"aaSortingFixed\",\r\n\t\t\t\t\"aLengthMenu\",\r\n\t\t\t\t\"sPaginationType\",\r\n\t\t\t\t\"sAjaxSource\",\r\n\t\t\t\t\"sAjaxDataProp\",\r\n\t\t\t\t\"iStateDuration\",\r\n\t\t\t\t\"sDom\",\r\n\t\t\t\t\"bSortCellsTop\",\r\n\t\t\t\t\"iTabIndex\",\r\n\t\t\t\t\"fnStateLoadCallback\",\r\n\t\t\t\t\"fnStateSaveCallback\",\r\n\t\t\t\t\"renderer\",\r\n\t\t\t\t\"searchDelay\",\r\n\t\t\t\t\"rowId\",\r\n\t\t\t\t[ \"iCookieDuration\", \"iStateDuration\" ], // backwards compat\r\n\t\t\t\t[ \"oSearch\", \"oPreviousSearch\" ],\r\n\t\t\t\t[ \"aoSearchCols\", \"aoPreSearchCols\" ],\r\n\t\t\t\t[ \"iDisplayLength\", \"_iDisplayLength\" ],\r\n\t\t\t\t[ \"bJQueryUI\", \"bJUI\" ]\r\n\t\t\t] );\r\n\t\t\t_fnMap( oSettings.oScroll, oInit, [\r\n\t\t\t\t[ \"sScrollX\", \"sX\" ],\r\n\t\t\t\t[ \"sScrollXInner\", \"sXInner\" ],\r\n\t\t\t\t[ \"sScrollY\", \"sY\" ],\r\n\t\t\t\t[ \"bScrollCollapse\", \"bCollapse\" ]\r\n\t\t\t] );\r\n\t\t\t_fnMap( oSettings.oLanguage, oInit, \"fnInfoCallback\" );\r\n\t\t\t\r\n\t\t\t/* Callback functions which are array driven */\r\n\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback',       oInit.fnDrawCallback,      'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoServerParams',       oInit.fnServerParams,      'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoStateSaveParams',    oInit.fnStateSaveParams,   'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoStateLoadParams',    oInit.fnStateLoadParams,   'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoStateLoaded',        oInit.fnStateLoaded,       'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoRowCallback',        oInit.fnRowCallback,       'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoRowCreatedCallback', oInit.fnCreatedRow,        'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoHeaderCallback',     oInit.fnHeaderCallback,    'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoFooterCallback',     oInit.fnFooterCallback,    'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoInitComplete',       oInit.fnInitComplete,      'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoPreDrawCallback',    oInit.fnPreDrawCallback,   'user' );\r\n\t\t\t\r\n\t\t\toSettings.rowIdFn = _fnGetObjectDataFn( oInit.rowId );\r\n\t\t\t\r\n\t\t\t/* Browser support detection */\r\n\t\t\t_fnBrowserDetect( oSettings );\r\n\t\t\t\r\n\t\t\tvar oClasses = oSettings.oClasses;\r\n\t\t\t\r\n\t\t\t// @todo Remove in 1.11\r\n\t\t\tif ( oInit.bJQueryUI )\r\n\t\t\t{\r\n\t\t\t\t/* Use the JUI classes object for display. You could clone the oStdClasses object if\r\n\t\t\t\t * you want to have multiple tables with multiple independent classes\r\n\t\t\t\t */\r\n\t\t\t\t$.extend( oClasses, DataTable.ext.oJUIClasses, oInit.oClasses );\r\n\t\t\t\r\n\t\t\t\tif ( oInit.sDom === defaults.sDom && defaults.sDom === \"lfrtip\" )\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Set the DOM to use a layout suitable for jQuery UI's theming */\r\n\t\t\t\t\toSettings.sDom = '<\"H\"lfr>t<\"F\"ip>';\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tif ( ! oSettings.renderer ) {\r\n\t\t\t\t\toSettings.renderer = 'jqueryui';\r\n\t\t\t\t}\r\n\t\t\t\telse if ( $.isPlainObject( oSettings.renderer ) && ! oSettings.renderer.header ) {\r\n\t\t\t\t\toSettings.renderer.header = 'jqueryui';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$.extend( oClasses, DataTable.ext.classes, oInit.oClasses );\r\n\t\t\t}\r\n\t\t\t$this.addClass( oClasses.sTable );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif ( oSettings.iInitDisplayStart === undefined )\r\n\t\t\t{\r\n\t\t\t\t/* Display start point, taking into account the save saving */\r\n\t\t\t\toSettings.iInitDisplayStart = oInit.iDisplayStart;\r\n\t\t\t\toSettings._iDisplayStart = oInit.iDisplayStart;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( oInit.iDeferLoading !== null )\r\n\t\t\t{\r\n\t\t\t\toSettings.bDeferLoading = true;\r\n\t\t\t\tvar tmp = $.isArray( oInit.iDeferLoading );\r\n\t\t\t\toSettings._iRecordsDisplay = tmp ? oInit.iDeferLoading[0] : oInit.iDeferLoading;\r\n\t\t\t\toSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Language definitions */\r\n\t\t\tvar oLanguage = oSettings.oLanguage;\r\n\t\t\t$.extend( true, oLanguage, oInit.oLanguage );\r\n\t\t\t\r\n\t\t\tif ( oLanguage.sUrl )\r\n\t\t\t{\r\n\t\t\t\t/* Get the language definitions from a file - because this Ajax call makes the language\r\n\t\t\t\t * get async to the remainder of this function we use bInitHandedOff to indicate that\r\n\t\t\t\t * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor\r\n\t\t\t\t */\r\n\t\t\t\t$.ajax( {\r\n\t\t\t\t\tdataType: 'json',\r\n\t\t\t\t\turl: oLanguage.sUrl,\r\n\t\t\t\t\tsuccess: function ( json ) {\r\n\t\t\t\t\t\t_fnLanguageCompat( json );\r\n\t\t\t\t\t\t_fnCamelToHungarian( defaults.oLanguage, json );\r\n\t\t\t\t\t\t$.extend( true, oLanguage, json );\r\n\t\t\t\t\t\t_fnInitialise( oSettings );\r\n\t\t\t\t\t},\r\n\t\t\t\t\terror: function () {\r\n\t\t\t\t\t\t// Error occurred loading language file, continue on as best we can\r\n\t\t\t\t\t\t_fnInitialise( oSettings );\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t\tbInitHandedOff = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Stripes\r\n\t\t\t */\r\n\t\t\tif ( oInit.asStripeClasses === null )\r\n\t\t\t{\r\n\t\t\t\toSettings.asStripeClasses =[\r\n\t\t\t\t\toClasses.sStripeOdd,\r\n\t\t\t\t\toClasses.sStripeEven\r\n\t\t\t\t];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Remove row stripe classes if they are already on the table row */\r\n\t\t\tvar stripeClasses = oSettings.asStripeClasses;\r\n\t\t\tvar rowOne = $this.children('tbody').find('tr').eq(0);\r\n\t\t\tif ( $.inArray( true, $.map( stripeClasses, function(el, i) {\r\n\t\t\t\treturn rowOne.hasClass(el);\r\n\t\t\t} ) ) !== -1 ) {\r\n\t\t\t\t$('tbody tr', this).removeClass( stripeClasses.join(' ') );\r\n\t\t\t\toSettings.asDestroyStripes = stripeClasses.slice();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Columns\r\n\t\t\t * See if we should load columns automatically or use defined ones\r\n\t\t\t */\r\n\t\t\tvar anThs = [];\r\n\t\t\tvar aoColumnsInit;\r\n\t\t\tvar nThead = this.getElementsByTagName('thead');\r\n\t\t\tif ( nThead.length !== 0 )\r\n\t\t\t{\r\n\t\t\t\t_fnDetectHeader( oSettings.aoHeader, nThead[0] );\r\n\t\t\t\tanThs = _fnGetUniqueThs( oSettings );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* If not given a column array, generate one with nulls */\r\n\t\t\tif ( oInit.aoColumns === null )\r\n\t\t\t{\r\n\t\t\t\taoColumnsInit = [];\r\n\t\t\t\tfor ( i=0, iLen=anThs.length ; i<iLen ; i++ )\r\n\t\t\t\t{\r\n\t\t\t\t\taoColumnsInit.push( null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\taoColumnsInit = oInit.aoColumns;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Add the columns */\r\n\t\t\tfor ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ )\r\n\t\t\t{\r\n\t\t\t\t_fnAddColumn( oSettings, anThs ? anThs[i] : null );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Apply the column definitions */\r\n\t\t\t_fnApplyColumnDefs( oSettings, oInit.aoColumnDefs, aoColumnsInit, function (iCol, oDef) {\r\n\t\t\t\t_fnColumnOptions( oSettings, iCol, oDef );\r\n\t\t\t} );\r\n\t\t\t\r\n\t\t\t/* HTML5 attribute detection - build an mData object automatically if the\r\n\t\t\t * attributes are found\r\n\t\t\t */\r\n\t\t\tif ( rowOne.length ) {\r\n\t\t\t\tvar a = function ( cell, name ) {\r\n\t\t\t\t\treturn cell.getAttribute( 'data-'+name ) !== null ? name : null;\r\n\t\t\t\t};\r\n\t\t\t\r\n\t\t\t\t$( rowOne[0] ).children('th, td').each( function (i, cell) {\r\n\t\t\t\t\tvar col = oSettings.aoColumns[i];\r\n\t\t\t\r\n\t\t\t\t\tif ( col.mData === i ) {\r\n\t\t\t\t\t\tvar sort = a( cell, 'sort' ) || a( cell, 'order' );\r\n\t\t\t\t\t\tvar filter = a( cell, 'filter' ) || a( cell, 'search' );\r\n\t\t\t\r\n\t\t\t\t\t\tif ( sort !== null || filter !== null ) {\r\n\t\t\t\t\t\t\tcol.mData = {\r\n\t\t\t\t\t\t\t\t_:      i+'.display',\r\n\t\t\t\t\t\t\t\tsort:   sort !== null   ? i+'.@data-'+sort   : undefined,\r\n\t\t\t\t\t\t\t\ttype:   sort !== null   ? i+'.@data-'+sort   : undefined,\r\n\t\t\t\t\t\t\t\tfilter: filter !== null ? i+'.@data-'+filter : undefined\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\r\n\t\t\t\t\t\t\t_fnColumnOptions( oSettings, i );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvar features = oSettings.oFeatures;\r\n\t\t\tvar loadedInit = function () {\r\n\t\t\t\t/*\r\n\t\t\t\t * Sorting\r\n\t\t\t\t * @todo For modularisation (1.11) this needs to do into a sort start up handler\r\n\t\t\t\t */\r\n\t\t\t\r\n\t\t\t\t// If aaSorting is not defined, then we use the first indicator in asSorting\r\n\t\t\t\t// in case that has been altered, so the default sort reflects that option\r\n\t\t\t\tif ( oInit.aaSorting === undefined ) {\r\n\t\t\t\t\tvar sorting = oSettings.aaSorting;\r\n\t\t\t\t\tfor ( i=0, iLen=sorting.length ; i<iLen ; i++ ) {\r\n\t\t\t\t\t\tsorting[i][1] = oSettings.aoColumns[ i ].asSorting[0];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* Do a first pass on the sorting classes (allows any size changes to be taken into\r\n\t\t\t\t * account, and also will apply sorting disabled classes if disabled\r\n\t\t\t\t */\r\n\t\t\t\t_fnSortingClasses( oSettings );\r\n\t\t\t\r\n\t\t\t\tif ( features.bSort ) {\r\n\t\t\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback', function () {\r\n\t\t\t\t\t\tif ( oSettings.bSorted ) {\r\n\t\t\t\t\t\t\tvar aSort = _fnSortFlatten( oSettings );\r\n\t\t\t\t\t\t\tvar sortedColumns = {};\r\n\t\t\t\r\n\t\t\t\t\t\t\t$.each( aSort, function (i, val) {\r\n\t\t\t\t\t\t\t\tsortedColumns[ val.src ] = val.dir;\r\n\t\t\t\t\t\t\t} );\r\n\t\t\t\r\n\t\t\t\t\t\t\t_fnCallbackFire( oSettings, null, 'order', [oSettings, aSort, sortedColumns] );\r\n\t\t\t\t\t\t\t_fnSortAria( oSettings );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback', function () {\r\n\t\t\t\t\tif ( oSettings.bSorted || _fnDataSource( oSettings ) === 'ssp' || features.bDeferRender ) {\r\n\t\t\t\t\t\t_fnSortingClasses( oSettings );\r\n\t\t\t\t\t}\r\n\t\t\t\t}, 'sc' );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * Final init\r\n\t\t\t\t * Cache the header, body and footer as required, creating them if needed\r\n\t\t\t\t */\r\n\t\t\t\r\n\t\t\t\t// Work around for Webkit bug 83867 - store the caption-side before removing from doc\r\n\t\t\t\tvar captions = $this.children('caption').each( function () {\r\n\t\t\t\t\tthis._captionSide = $(this).css('caption-side');\r\n\t\t\t\t} );\r\n\t\t\t\r\n\t\t\t\tvar thead = $this.children('thead');\r\n\t\t\t\tif ( thead.length === 0 ) {\r\n\t\t\t\t\tthead = $('<thead/>').appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\toSettings.nTHead = thead[0];\r\n\t\t\t\r\n\t\t\t\tvar tbody = $this.children('tbody');\r\n\t\t\t\tif ( tbody.length === 0 ) {\r\n\t\t\t\t\ttbody = $('<tbody/>').appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\toSettings.nTBody = tbody[0];\r\n\t\t\t\r\n\t\t\t\tvar tfoot = $this.children('tfoot');\r\n\t\t\t\tif ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== \"\" || oSettings.oScroll.sY !== \"\") ) {\r\n\t\t\t\t\t// If we are a scrolling table, and no footer has been given, then we need to create\r\n\t\t\t\t\t// a tfoot element for the caption element to be appended to\r\n\t\t\t\t\ttfoot = $('<tfoot/>').appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tif ( tfoot.length === 0 || tfoot.children().length === 0 ) {\r\n\t\t\t\t\t$this.addClass( oClasses.sNoFooter );\r\n\t\t\t\t}\r\n\t\t\t\telse if ( tfoot.length > 0 ) {\r\n\t\t\t\t\toSettings.nTFoot = tfoot[0];\r\n\t\t\t\t\t_fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* Check if there is data passing into the constructor */\r\n\t\t\t\tif ( oInit.aaData ) {\r\n\t\t\t\t\tfor ( i=0 ; i<oInit.aaData.length ; i++ ) {\r\n\t\t\t\t\t\t_fnAddData( oSettings, oInit.aaData[ i ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ( oSettings.bDeferLoading || _fnDataSource( oSettings ) == 'dom' ) {\r\n\t\t\t\t\t/* Grab the data from the page - only do this when deferred loading or no Ajax\r\n\t\t\t\t\t * source since there is no point in reading the DOM data if we are then going\r\n\t\t\t\t\t * to replace it with Ajax data\r\n\t\t\t\t\t */\r\n\t\t\t\t\t_fnAddTr( oSettings, $(oSettings.nTBody).children('tr') );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* Copy the data index array */\r\n\t\t\t\toSettings.aiDisplay = oSettings.aiDisplayMaster.slice();\r\n\t\t\t\r\n\t\t\t\t/* Initialisation complete - table can be drawn */\r\n\t\t\t\toSettings.bInitialised = true;\r\n\t\t\t\r\n\t\t\t\t/* Check if we need to initialise the table (it might not have been handed off to the\r\n\t\t\t\t * language processor)\r\n\t\t\t\t */\r\n\t\t\t\tif ( bInitHandedOff === false ) {\r\n\t\t\t\t\t_fnInitialise( oSettings );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\t/* Must be done after everything which can be overridden by the state saving! */\r\n\t\t\tif ( oInit.bStateSave )\r\n\t\t\t{\r\n\t\t\t\tfeatures.bStateSave = true;\r\n\t\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' );\r\n\t\t\t\t_fnLoadState( oSettings, oInit, loadedInit );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tloadedInit();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} );\r\n\t\t_that = null;\r\n\t\treturn this;\r\n\t};\r\n\r\n\t\r\n\t/*\r\n\t * It is useful to have variables which are scoped locally so only the\r\n\t * DataTables functions can access them and they don't leak into global space.\r\n\t * At the same time these functions are often useful over multiple files in the\r\n\t * core and API, so we list, or at least document, all variables which are used\r\n\t * by DataTables as private variables here. This also ensures that there is no\r\n\t * clashing of variable names and that they can easily referenced for reuse.\r\n\t */\r\n\t\r\n\t\r\n\t// Defined else where\r\n\t//  _selector_run\r\n\t//  _selector_opts\r\n\t//  _selector_first\r\n\t//  _selector_row_indexes\r\n\t\r\n\tvar _ext; // DataTable.ext\r\n\tvar _Api; // DataTable.Api\r\n\tvar _api_register; // DataTable.Api.register\r\n\tvar _api_registerPlural; // DataTable.Api.registerPlural\r\n\t\r\n\tvar _re_dic = {};\r\n\tvar _re_new_lines = /[\\r\\n]/g;\r\n\tvar _re_html = /<.*?>/g;\r\n\t\r\n\t// This is not strict ISO8601 - Date.parse() is quite lax, although\r\n\t// implementations differ between browsers.\r\n\tvar _re_date = /^\\d{2,4}[\\.\\/\\-]\\d{1,2}[\\.\\/\\-]\\d{1,2}([T ]{1}\\d{1,2}[:\\.]\\d{2}([\\.:]\\d{2})?)?$/;\r\n\t\r\n\t// Escape regular expression special characters\r\n\tvar _re_escape_regex = new RegExp( '(\\\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\\\', '$', '^', '-' ].join('|\\\\') + ')', 'g' );\r\n\t\r\n\t// http://en.wikipedia.org/wiki/Foreign_exchange_market\r\n\t// - \\u20BD - Russian ruble.\r\n\t// - \\u20a9 - South Korean Won\r\n\t// - \\u20BA - Turkish Lira\r\n\t// - \\u20B9 - Indian Rupee\r\n\t// - R - Brazil (R$) and South Africa\r\n\t// - fr - Swiss Franc\r\n\t// - kr - Swedish krona, Norwegian krone and Danish krone\r\n\t// - \\u2009 is thin space and \\u202F is narrow no-break space, both used in many\r\n\t//   standards as thousands separators.\r\n\tvar _re_formatted_numeric = /[',$£€¥%\\u2009\\u202F\\u20BD\\u20a9\\u20BArfk]/gi;\r\n\t\r\n\t\r\n\tvar _empty = function ( d ) {\r\n\t\treturn !d || d === true || d === '-' ? true : false;\r\n\t};\r\n\t\r\n\t\r\n\tvar _intVal = function ( s ) {\r\n\t\tvar integer = parseInt( s, 10 );\r\n\t\treturn !isNaN(integer) && isFinite(s) ? integer : null;\r\n\t};\r\n\t\r\n\t// Convert from a formatted number with characters other than `.` as the\r\n\t// decimal place, to a Javascript number\r\n\tvar _numToDecimal = function ( num, decimalPoint ) {\r\n\t\t// Cache created regular expressions for speed as this function is called often\r\n\t\tif ( ! _re_dic[ decimalPoint ] ) {\r\n\t\t\t_re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' );\r\n\t\t}\r\n\t\treturn typeof num === 'string' && decimalPoint !== '.' ?\r\n\t\t\tnum.replace( /\\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) :\r\n\t\t\tnum;\r\n\t};\r\n\t\r\n\t\r\n\tvar _isNumber = function ( d, decimalPoint, formatted ) {\r\n\t\tvar strType = typeof d === 'string';\r\n\t\r\n\t\t// If empty return immediately so there must be a number if it is a\r\n\t\t// formatted string (this stops the string \"k\", or \"kr\", etc being detected\r\n\t\t// as a formatted number for currency\r\n\t\tif ( _empty( d ) ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tif ( decimalPoint && strType ) {\r\n\t\t\td = _numToDecimal( d, decimalPoint );\r\n\t\t}\r\n\t\r\n\t\tif ( formatted && strType ) {\r\n\t\t\td = d.replace( _re_formatted_numeric, '' );\r\n\t\t}\r\n\t\r\n\t\treturn !isNaN( parseFloat(d) ) && isFinite( d );\r\n\t};\r\n\t\r\n\t\r\n\t// A string without HTML in it can be considered to be HTML still\r\n\tvar _isHtml = function ( d ) {\r\n\t\treturn _empty( d ) || typeof d === 'string';\r\n\t};\r\n\t\r\n\t\r\n\tvar _htmlNumeric = function ( d, decimalPoint, formatted ) {\r\n\t\tif ( _empty( d ) ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tvar html = _isHtml( d );\r\n\t\treturn ! html ?\r\n\t\t\tnull :\r\n\t\t\t_isNumber( _stripHtml( d ), decimalPoint, formatted ) ?\r\n\t\t\t\ttrue :\r\n\t\t\t\tnull;\r\n\t};\r\n\t\r\n\t\r\n\tvar _pluck = function ( a, prop, prop2 ) {\r\n\t\tvar out = [];\r\n\t\tvar i=0, ien=a.length;\r\n\t\r\n\t\t// Could have the test in the loop for slightly smaller code, but speed\r\n\t\t// is essential here\r\n\t\tif ( prop2 !== undefined ) {\r\n\t\t\tfor ( ; i<ien ; i++ ) {\r\n\t\t\t\tif ( a[i] && a[i][ prop ] ) {\r\n\t\t\t\t\tout.push( a[i][ prop ][ prop2 ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor ( ; i<ien ; i++ ) {\r\n\t\t\t\tif ( a[i] ) {\r\n\t\t\t\t\tout.push( a[i][ prop ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\t// Basically the same as _pluck, but rather than looping over `a` we use `order`\r\n\t// as the indexes to pick from `a`\r\n\tvar _pluck_order = function ( a, order, prop, prop2 )\r\n\t{\r\n\t\tvar out = [];\r\n\t\tvar i=0, ien=order.length;\r\n\t\r\n\t\t// Could have the test in the loop for slightly smaller code, but speed\r\n\t\t// is essential here\r\n\t\tif ( prop2 !== undefined ) {\r\n\t\t\tfor ( ; i<ien ; i++ ) {\r\n\t\t\t\tif ( a[ order[i] ][ prop ] ) {\r\n\t\t\t\t\tout.push( a[ order[i] ][ prop ][ prop2 ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor ( ; i<ien ; i++ ) {\r\n\t\t\t\tout.push( a[ order[i] ][ prop ] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\tvar _range = function ( len, start )\r\n\t{\r\n\t\tvar out = [];\r\n\t\tvar end;\r\n\t\r\n\t\tif ( start === undefined ) {\r\n\t\t\tstart = 0;\r\n\t\t\tend = len;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tend = start;\r\n\t\t\tstart = len;\r\n\t\t}\r\n\t\r\n\t\tfor ( var i=start ; i<end ; i++ ) {\r\n\t\t\tout.push( i );\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\tvar _removeEmpty = function ( a )\r\n\t{\r\n\t\tvar out = [];\r\n\t\r\n\t\tfor ( var i=0, ien=a.length ; i<ien ; i++ ) {\r\n\t\t\tif ( a[i] ) { // careful - will remove all falsy values!\r\n\t\t\t\tout.push( a[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\tvar _stripHtml = function ( d ) {\r\n\t\treturn d.replace( _re_html, '' );\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Determine if all values in the array are unique. This means we can short\r\n\t * cut the _unique method at the cost of a single loop. A sorted array is used\r\n\t * to easily check the values.\r\n\t *\r\n\t * @param  {array} src Source array\r\n\t * @return {boolean} true if all unique, false otherwise\r\n\t * @ignore\r\n\t */\r\n\tvar _areAllUnique = function ( src ) {\r\n\t\tif ( src.length < 2 ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tvar sorted = src.slice().sort();\r\n\t\tvar last = sorted[0];\r\n\t\r\n\t\tfor ( var i=1, ien=sorted.length ; i<ien ; i++ ) {\r\n\t\t\tif ( sorted[i] === last ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\r\n\t\t\tlast = sorted[i];\r\n\t\t}\r\n\t\r\n\t\treturn true;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Find the unique elements in a source array.\r\n\t *\r\n\t * @param  {array} src Source array\r\n\t * @return {array} Array of unique items\r\n\t * @ignore\r\n\t */\r\n\tvar _unique = function ( src )\r\n\t{\r\n\t\tif ( _areAllUnique( src ) ) {\r\n\t\t\treturn src.slice();\r\n\t\t}\r\n\t\r\n\t\t// A faster unique method is to use object keys to identify used values,\r\n\t\t// but this doesn't work with arrays or objects, which we must also\r\n\t\t// consider. See jsperf.com/compare-array-unique-versions/4 for more\r\n\t\t// information.\r\n\t\tvar\r\n\t\t\tout = [],\r\n\t\t\tval,\r\n\t\t\ti, ien=src.length,\r\n\t\t\tj, k=0;\r\n\t\r\n\t\tagain: for ( i=0 ; i<ien ; i++ ) {\r\n\t\t\tval = src[i];\r\n\t\r\n\t\t\tfor ( j=0 ; j<k ; j++ ) {\r\n\t\t\t\tif ( out[j] === val ) {\r\n\t\t\t\t\tcontinue again;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tout.push( val );\r\n\t\t\tk++;\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables utility methods\r\n\t * \r\n\t * This namespace provides helper methods that DataTables uses internally to\r\n\t * create a DataTable, but which are not exclusively used only for DataTables.\r\n\t * These methods can be used by extension authors to save the duplication of\r\n\t * code.\r\n\t *\r\n\t *  @namespace\r\n\t */\r\n\tDataTable.util = {\r\n\t\t/**\r\n\t\t * Throttle the calls to a function. Arguments and context are maintained\r\n\t\t * for the throttled function.\r\n\t\t *\r\n\t\t * @param {function} fn Function to be called\r\n\t\t * @param {integer} freq Call frequency in mS\r\n\t\t * @return {function} Wrapped function\r\n\t\t */\r\n\t\tthrottle: function ( fn, freq ) {\r\n\t\t\tvar\r\n\t\t\t\tfrequency = freq !== undefined ? freq : 200,\r\n\t\t\t\tlast,\r\n\t\t\t\ttimer;\r\n\t\r\n\t\t\treturn function () {\r\n\t\t\t\tvar\r\n\t\t\t\t\tthat = this,\r\n\t\t\t\t\tnow  = +new Date(),\r\n\t\t\t\t\targs = arguments;\r\n\t\r\n\t\t\t\tif ( last && now < last + frequency ) {\r\n\t\t\t\t\tclearTimeout( timer );\r\n\t\r\n\t\t\t\t\ttimer = setTimeout( function () {\r\n\t\t\t\t\t\tlast = undefined;\r\n\t\t\t\t\t\tfn.apply( that, args );\r\n\t\t\t\t\t}, frequency );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tlast = now;\r\n\t\t\t\t\tfn.apply( that, args );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Escape a string such that it can be used in a regular expression\r\n\t\t *\r\n\t\t *  @param {string} val string to escape\r\n\t\t *  @returns {string} escaped string\r\n\t\t */\r\n\t\tescapeRegex: function ( val ) {\r\n\t\t\treturn val.replace( _re_escape_regex, '\\\\$1' );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Create a mapping object that allows camel case parameters to be looked up\r\n\t * for their Hungarian counterparts. The mapping is stored in a private\r\n\t * parameter called `_hungarianMap` which can be accessed on the source object.\r\n\t *  @param {object} o\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnHungarianMap ( o )\r\n\t{\r\n\t\tvar\r\n\t\t\thungarian = 'a aa ai ao as b fn i m o s ',\r\n\t\t\tmatch,\r\n\t\t\tnewKey,\r\n\t\t\tmap = {};\r\n\t\r\n\t\t$.each( o, function (key, val) {\r\n\t\t\tmatch = key.match(/^([^A-Z]+?)([A-Z])/);\r\n\t\r\n\t\t\tif ( match && hungarian.indexOf(match[1]+' ') !== -1 )\r\n\t\t\t{\r\n\t\t\t\tnewKey = key.replace( match[0], match[2].toLowerCase() );\r\n\t\t\t\tmap[ newKey ] = key;\r\n\t\r\n\t\t\t\tif ( match[1] === 'o' )\r\n\t\t\t\t{\r\n\t\t\t\t\t_fnHungarianMap( o[key] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\to._hungarianMap = map;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from camel case parameters to Hungarian, based on a Hungarian map\r\n\t * created by _fnHungarianMap.\r\n\t *  @param {object} src The model object which holds all parameters that can be\r\n\t *    mapped.\r\n\t *  @param {object} user The object to convert from camel case to Hungarian.\r\n\t *  @param {boolean} force When set to `true`, properties which already have a\r\n\t *    Hungarian value in the `user` object will be overwritten. Otherwise they\r\n\t *    won't be.\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCamelToHungarian ( src, user, force )\r\n\t{\r\n\t\tif ( ! src._hungarianMap ) {\r\n\t\t\t_fnHungarianMap( src );\r\n\t\t}\r\n\t\r\n\t\tvar hungarianKey;\r\n\t\r\n\t\t$.each( user, function (key, val) {\r\n\t\t\thungarianKey = src._hungarianMap[ key ];\r\n\t\r\n\t\t\tif ( hungarianKey !== undefined && (force || user[hungarianKey] === undefined) )\r\n\t\t\t{\r\n\t\t\t\t// For objects, we need to buzz down into the object to copy parameters\r\n\t\t\t\tif ( hungarianKey.charAt(0) === 'o' )\r\n\t\t\t\t{\r\n\t\t\t\t\t// Copy the camelCase options over to the hungarian\r\n\t\t\t\t\tif ( ! user[ hungarianKey ] ) {\r\n\t\t\t\t\t\tuser[ hungarianKey ] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$.extend( true, user[hungarianKey], user[key] );\r\n\t\r\n\t\t\t\t\t_fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tuser[hungarianKey] = user[ key ];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Language compatibility - when certain options are given, and others aren't, we\r\n\t * need to duplicate the values over, in order to provide backwards compatibility\r\n\t * with older language files.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnLanguageCompat( lang )\r\n\t{\r\n\t\tvar defaults = DataTable.defaults.oLanguage;\r\n\t\tvar zeroRecords = lang.sZeroRecords;\r\n\t\r\n\t\t/* Backwards compatibility - if there is no sEmptyTable given, then use the same as\r\n\t\t * sZeroRecords - assuming that is given.\r\n\t\t */\r\n\t\tif ( ! lang.sEmptyTable && zeroRecords &&\r\n\t\t\tdefaults.sEmptyTable === \"No data available in table\" )\r\n\t\t{\r\n\t\t\t_fnMap( lang, lang, 'sZeroRecords', 'sEmptyTable' );\r\n\t\t}\r\n\t\r\n\t\t/* Likewise with loading records */\r\n\t\tif ( ! lang.sLoadingRecords && zeroRecords &&\r\n\t\t\tdefaults.sLoadingRecords === \"Loading...\" )\r\n\t\t{\r\n\t\t\t_fnMap( lang, lang, 'sZeroRecords', 'sLoadingRecords' );\r\n\t\t}\r\n\t\r\n\t\t// Old parameter name of the thousands separator mapped onto the new\r\n\t\tif ( lang.sInfoThousands ) {\r\n\t\t\tlang.sThousands = lang.sInfoThousands;\r\n\t\t}\r\n\t\r\n\t\tvar decimal = lang.sDecimal;\r\n\t\tif ( decimal ) {\r\n\t\t\t_addNumericSort( decimal );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Map one parameter onto another\r\n\t *  @param {object} o Object to map\r\n\t *  @param {*} knew The new parameter name\r\n\t *  @param {*} old The old parameter name\r\n\t */\r\n\tvar _fnCompatMap = function ( o, knew, old ) {\r\n\t\tif ( o[ knew ] !== undefined ) {\r\n\t\t\to[ old ] = o[ knew ];\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Provide backwards compatibility for the main DT options. Note that the new\r\n\t * options are mapped onto the old parameters, so this is an external interface\r\n\t * change only.\r\n\t *  @param {object} init Object to map\r\n\t */\r\n\tfunction _fnCompatOpts ( init )\r\n\t{\r\n\t\t_fnCompatMap( init, 'ordering',      'bSort' );\r\n\t\t_fnCompatMap( init, 'orderMulti',    'bSortMulti' );\r\n\t\t_fnCompatMap( init, 'orderClasses',  'bSortClasses' );\r\n\t\t_fnCompatMap( init, 'orderCellsTop', 'bSortCellsTop' );\r\n\t\t_fnCompatMap( init, 'order',         'aaSorting' );\r\n\t\t_fnCompatMap( init, 'orderFixed',    'aaSortingFixed' );\r\n\t\t_fnCompatMap( init, 'paging',        'bPaginate' );\r\n\t\t_fnCompatMap( init, 'pagingType',    'sPaginationType' );\r\n\t\t_fnCompatMap( init, 'pageLength',    'iDisplayLength' );\r\n\t\t_fnCompatMap( init, 'searching',     'bFilter' );\r\n\t\r\n\t\t// Boolean initialisation of x-scrolling\r\n\t\tif ( typeof init.sScrollX === 'boolean' ) {\r\n\t\t\tinit.sScrollX = init.sScrollX ? '100%' : '';\r\n\t\t}\r\n\t\tif ( typeof init.scrollX === 'boolean' ) {\r\n\t\t\tinit.scrollX = init.scrollX ? '100%' : '';\r\n\t\t}\r\n\t\r\n\t\t// Column search objects are in an array, so it needs to be converted\r\n\t\t// element by element\r\n\t\tvar searchCols = init.aoSearchCols;\r\n\t\r\n\t\tif ( searchCols ) {\r\n\t\t\tfor ( var i=0, ien=searchCols.length ; i<ien ; i++ ) {\r\n\t\t\t\tif ( searchCols[i] ) {\r\n\t\t\t\t\t_fnCamelToHungarian( DataTable.models.oSearch, searchCols[i] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Provide backwards compatibility for column options. Note that the new options\r\n\t * are mapped onto the old parameters, so this is an external interface change\r\n\t * only.\r\n\t *  @param {object} init Object to map\r\n\t */\r\n\tfunction _fnCompatCols ( init )\r\n\t{\r\n\t\t_fnCompatMap( init, 'orderable',     'bSortable' );\r\n\t\t_fnCompatMap( init, 'orderData',     'aDataSort' );\r\n\t\t_fnCompatMap( init, 'orderSequence', 'asSorting' );\r\n\t\t_fnCompatMap( init, 'orderDataType', 'sortDataType' );\r\n\t\r\n\t\t// orderData can be given as an integer\r\n\t\tvar dataSort = init.aDataSort;\r\n\t\tif ( typeof dataSort === 'number' && ! $.isArray( dataSort ) ) {\r\n\t\t\tinit.aDataSort = [ dataSort ];\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Browser feature detection for capabilities, quirks\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnBrowserDetect( settings )\r\n\t{\r\n\t\t// We don't need to do this every time DataTables is constructed, the values\r\n\t\t// calculated are specific to the browser and OS configuration which we\r\n\t\t// don't expect to change between initialisations\r\n\t\tif ( ! DataTable.__browser ) {\r\n\t\t\tvar browser = {};\r\n\t\t\tDataTable.__browser = browser;\r\n\t\r\n\t\t\t// Scrolling feature / quirks detection\r\n\t\t\tvar n = $('<div/>')\r\n\t\t\t\t.css( {\r\n\t\t\t\t\tposition: 'fixed',\r\n\t\t\t\t\ttop: 0,\r\n\t\t\t\t\tleft: $(window).scrollLeft()*-1, // allow for scrolling\r\n\t\t\t\t\theight: 1,\r\n\t\t\t\t\twidth: 1,\r\n\t\t\t\t\toverflow: 'hidden'\r\n\t\t\t\t} )\r\n\t\t\t\t.append(\r\n\t\t\t\t\t$('<div/>')\r\n\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\tposition: 'absolute',\r\n\t\t\t\t\t\t\ttop: 1,\r\n\t\t\t\t\t\t\tleft: 1,\r\n\t\t\t\t\t\t\twidth: 100,\r\n\t\t\t\t\t\t\toverflow: 'scroll'\r\n\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t$('<div/>')\r\n\t\t\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\t\t\twidth: '100%',\r\n\t\t\t\t\t\t\t\t\theight: 10\r\n\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t)\r\n\t\t\t\t)\r\n\t\t\t\t.appendTo( 'body' );\r\n\t\r\n\t\t\tvar outer = n.children();\r\n\t\t\tvar inner = outer.children();\r\n\t\r\n\t\t\t// Numbers below, in order, are:\r\n\t\t\t// inner.offsetWidth, inner.clientWidth, outer.offsetWidth, outer.clientWidth\r\n\t\t\t//\r\n\t\t\t// IE6 XP:                           100 100 100  83\r\n\t\t\t// IE7 Vista:                        100 100 100  83\r\n\t\t\t// IE 8+ Windows:                     83  83 100  83\r\n\t\t\t// Evergreen Windows:                 83  83 100  83\r\n\t\t\t// Evergreen Mac with scrollbars:     85  85 100  85\r\n\t\t\t// Evergreen Mac without scrollbars: 100 100 100 100\r\n\t\r\n\t\t\t// Get scrollbar width\r\n\t\t\tbrowser.barWidth = outer[0].offsetWidth - outer[0].clientWidth;\r\n\t\r\n\t\t\t// IE6/7 will oversize a width 100% element inside a scrolling element, to\r\n\t\t\t// include the width of the scrollbar, while other browsers ensure the inner\r\n\t\t\t// element is contained without forcing scrolling\r\n\t\t\tbrowser.bScrollOversize = inner[0].offsetWidth === 100 && outer[0].clientWidth !== 100;\r\n\t\r\n\t\t\t// In rtl text layout, some browsers (most, but not all) will place the\r\n\t\t\t// scrollbar on the left, rather than the right.\r\n\t\t\tbrowser.bScrollbarLeft = Math.round( inner.offset().left ) !== 1;\r\n\t\r\n\t\t\t// IE8- don't provide height and width for getBoundingClientRect\r\n\t\t\tbrowser.bBounding = n[0].getBoundingClientRect().width ? true : false;\r\n\t\r\n\t\t\tn.remove();\r\n\t\t}\r\n\t\r\n\t\t$.extend( settings.oBrowser, DataTable.__browser );\r\n\t\tsettings.oScroll.iBarWidth = DataTable.__browser.barWidth;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Array.prototype reduce[Right] method, used for browsers which don't support\r\n\t * JS 1.6. Done this way to reduce code size, since we iterate either way\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnReduce ( that, fn, init, start, end, inc )\r\n\t{\r\n\t\tvar\r\n\t\t\ti = start,\r\n\t\t\tvalue,\r\n\t\t\tisSet = false;\r\n\t\r\n\t\tif ( init !== undefined ) {\r\n\t\t\tvalue = init;\r\n\t\t\tisSet = true;\r\n\t\t}\r\n\t\r\n\t\twhile ( i !== end ) {\r\n\t\t\tif ( ! that.hasOwnProperty(i) ) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\r\n\t\t\tvalue = isSet ?\r\n\t\t\t\tfn( value, that[i], i, that ) :\r\n\t\t\t\tthat[i];\r\n\t\r\n\t\t\tisSet = true;\r\n\t\t\ti += inc;\r\n\t\t}\r\n\t\r\n\t\treturn value;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Add a column to the list used for the table with default values\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {node} nTh The th element for this column\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddColumn( oSettings, nTh )\r\n\t{\r\n\t\t// Add column to aoColumns array\r\n\t\tvar oDefaults = DataTable.defaults.column;\r\n\t\tvar iCol = oSettings.aoColumns.length;\r\n\t\tvar oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {\r\n\t\t\t\"nTh\": nTh ? nTh : document.createElement('th'),\r\n\t\t\t\"sTitle\":    oDefaults.sTitle    ? oDefaults.sTitle    : nTh ? nTh.innerHTML : '',\r\n\t\t\t\"aDataSort\": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],\r\n\t\t\t\"mData\": oDefaults.mData ? oDefaults.mData : iCol,\r\n\t\t\tidx: iCol\r\n\t\t} );\r\n\t\toSettings.aoColumns.push( oCol );\r\n\t\r\n\t\t// Add search object for column specific search. Note that the `searchCols[ iCol ]`\r\n\t\t// passed into extend can be undefined. This allows the user to give a default\r\n\t\t// with only some of the parameters defined, and also not give a default\r\n\t\tvar searchCols = oSettings.aoPreSearchCols;\r\n\t\tsearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );\r\n\t\r\n\t\t// Use the default column options function to initialise classes etc\r\n\t\t_fnColumnOptions( oSettings, iCol, $(nTh).data() );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Apply options for a column\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {int} iCol column index to consider\r\n\t *  @param {object} oOptions object with sType, bVisible and bSearchable etc\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnColumnOptions( oSettings, iCol, oOptions )\r\n\t{\r\n\t\tvar oCol = oSettings.aoColumns[ iCol ];\r\n\t\tvar oClasses = oSettings.oClasses;\r\n\t\tvar th = $(oCol.nTh);\r\n\t\r\n\t\t// Try to get width information from the DOM. We can't get it from CSS\r\n\t\t// as we'd need to parse the CSS stylesheet. `width` option can override\r\n\t\tif ( ! oCol.sWidthOrig ) {\r\n\t\t\t// Width attribute\r\n\t\t\toCol.sWidthOrig = th.attr('width') || null;\r\n\t\r\n\t\t\t// Style attribute\r\n\t\t\tvar t = (th.attr('style') || '').match(/width:\\s*(\\d+[pxem%]+)/);\r\n\t\t\tif ( t ) {\r\n\t\t\t\toCol.sWidthOrig = t[1];\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* User specified column options */\r\n\t\tif ( oOptions !== undefined && oOptions !== null )\r\n\t\t{\r\n\t\t\t// Backwards compatibility\r\n\t\t\t_fnCompatCols( oOptions );\r\n\t\r\n\t\t\t// Map camel case parameters to their Hungarian counterparts\r\n\t\t\t_fnCamelToHungarian( DataTable.defaults.column, oOptions );\r\n\t\r\n\t\t\t/* Backwards compatibility for mDataProp */\r\n\t\t\tif ( oOptions.mDataProp !== undefined && !oOptions.mData )\r\n\t\t\t{\r\n\t\t\t\toOptions.mData = oOptions.mDataProp;\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( oOptions.sType )\r\n\t\t\t{\r\n\t\t\t\toCol._sManualType = oOptions.sType;\r\n\t\t\t}\r\n\t\r\n\t\t\t// `class` is a reserved word in Javascript, so we need to provide\r\n\t\t\t// the ability to use a valid name for the camel case input\r\n\t\t\tif ( oOptions.className && ! oOptions.sClass )\r\n\t\t\t{\r\n\t\t\t\toOptions.sClass = oOptions.className;\r\n\t\t\t}\r\n\t\r\n\t\t\t$.extend( oCol, oOptions );\r\n\t\t\t_fnMap( oCol, oOptions, \"sWidth\", \"sWidthOrig\" );\r\n\t\r\n\t\t\t/* iDataSort to be applied (backwards compatibility), but aDataSort will take\r\n\t\t\t * priority if defined\r\n\t\t\t */\r\n\t\t\tif ( oOptions.iDataSort !== undefined )\r\n\t\t\t{\r\n\t\t\t\toCol.aDataSort = [ oOptions.iDataSort ];\r\n\t\t\t}\r\n\t\t\t_fnMap( oCol, oOptions, \"aDataSort\" );\r\n\t\t}\r\n\t\r\n\t\t/* Cache the data get and set functions for speed */\r\n\t\tvar mDataSrc = oCol.mData;\r\n\t\tvar mData = _fnGetObjectDataFn( mDataSrc );\r\n\t\tvar mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;\r\n\t\r\n\t\tvar attrTest = function( src ) {\r\n\t\t\treturn typeof src === 'string' && src.indexOf('@') !== -1;\r\n\t\t};\r\n\t\toCol._bAttrSrc = $.isPlainObject( mDataSrc ) && (\r\n\t\t\tattrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)\r\n\t\t);\r\n\t\toCol._setter = null;\r\n\t\r\n\t\toCol.fnGetData = function (rowData, type, meta) {\r\n\t\t\tvar innerData = mData( rowData, type, undefined, meta );\r\n\t\r\n\t\t\treturn mRender && type ?\r\n\t\t\t\tmRender( innerData, type, rowData, meta ) :\r\n\t\t\t\tinnerData;\r\n\t\t};\r\n\t\toCol.fnSetData = function ( rowData, val, meta ) {\r\n\t\t\treturn _fnSetObjectDataFn( mDataSrc )( rowData, val, meta );\r\n\t\t};\r\n\t\r\n\t\t// Indicate if DataTables should read DOM data as an object or array\r\n\t\t// Used in _fnGetRowElements\r\n\t\tif ( typeof mDataSrc !== 'number' ) {\r\n\t\t\toSettings._rowReadObject = true;\r\n\t\t}\r\n\t\r\n\t\t/* Feature sorting overrides column specific when off */\r\n\t\tif ( !oSettings.oFeatures.bSort )\r\n\t\t{\r\n\t\t\toCol.bSortable = false;\r\n\t\t\tth.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called\r\n\t\t}\r\n\t\r\n\t\t/* Check that the class assignment is correct for sorting */\r\n\t\tvar bAsc = $.inArray('asc', oCol.asSorting) !== -1;\r\n\t\tvar bDesc = $.inArray('desc', oCol.asSorting) !== -1;\r\n\t\tif ( !oCol.bSortable || (!bAsc && !bDesc) )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableNone;\r\n\t\t\toCol.sSortingClassJUI = \"\";\r\n\t\t}\r\n\t\telse if ( bAsc && !bDesc )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableAsc;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;\r\n\t\t}\r\n\t\telse if ( !bAsc && bDesc )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableDesc;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortable;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUI;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Adjust the table column widths for new data. Note: you would probably want to\r\n\t * do a redraw after calling this function!\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAdjustColumnSizing ( settings )\r\n\t{\r\n\t\t/* Not interested in doing column width calculation if auto-width is disabled */\r\n\t\tif ( settings.oFeatures.bAutoWidth !== false )\r\n\t\t{\r\n\t\t\tvar columns = settings.aoColumns;\r\n\t\r\n\t\t\t_fnCalculateColumnWidths( settings );\r\n\t\t\tfor ( var i=0 , iLen=columns.length ; i<iLen ; i++ )\r\n\t\t\t{\r\n\t\t\t\tcolumns[i].nTh.style.width = columns[i].sWidth;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tvar scroll = settings.oScroll;\r\n\t\tif ( scroll.sY !== '' || scroll.sX !== '')\r\n\t\t{\r\n\t\t\t_fnScrollDraw( settings );\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, 'column-sizing', [settings] );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Covert the index of a visible column to the index in the data array (take account\r\n\t * of hidden columns)\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {int} iMatch Visible column index to lookup\r\n\t *  @returns {int} i the data index\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnVisibleToColumnIndex( oSettings, iMatch )\r\n\t{\r\n\t\tvar aiVis = _fnGetColumns( oSettings, 'bVisible' );\r\n\t\r\n\t\treturn typeof aiVis[iMatch] === 'number' ?\r\n\t\t\taiVis[iMatch] :\r\n\t\t\tnull;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Covert the index of an index in the data array and convert it to the visible\r\n\t *   column index (take account of hidden columns)\r\n\t *  @param {int} iMatch Column index to lookup\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns {int} i the data index\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnColumnIndexToVisible( oSettings, iMatch )\r\n\t{\r\n\t\tvar aiVis = _fnGetColumns( oSettings, 'bVisible' );\r\n\t\tvar iPos = $.inArray( iMatch, aiVis );\r\n\t\r\n\t\treturn iPos !== -1 ? iPos : null;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the number of visible columns\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns {int} i the number of visible columns\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnVisbleColumns( oSettings )\r\n\t{\r\n\t\tvar vis = 0;\r\n\t\r\n\t\t// No reduce in IE8, use a loop for now\r\n\t\t$.each( oSettings.aoColumns, function ( i, col ) {\r\n\t\t\tif ( col.bVisible && $(col.nTh).css('display') !== 'none' ) {\r\n\t\t\t\tvis++;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn vis;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get an array of column indexes that match a given property\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {string} sParam Parameter in aoColumns to look for - typically\r\n\t *    bVisible or bSearchable\r\n\t *  @returns {array} Array of indexes with matched properties\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetColumns( oSettings, sParam )\r\n\t{\r\n\t\tvar a = [];\r\n\t\r\n\t\t$.map( oSettings.aoColumns, function(val, i) {\r\n\t\t\tif ( val[sParam] ) {\r\n\t\t\t\ta.push( i );\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn a;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Calculate the 'type' of a column\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnColumnTypes ( settings )\r\n\t{\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar data = settings.aoData;\r\n\t\tvar types = DataTable.ext.type.detect;\r\n\t\tvar i, ien, j, jen, k, ken;\r\n\t\tvar col, cell, detectedType, cache;\r\n\t\r\n\t\t// For each column, spin over the \r\n\t\tfor ( i=0, ien=columns.length ; i<ien ; i++ ) {\r\n\t\t\tcol = columns[i];\r\n\t\t\tcache = [];\r\n\t\r\n\t\t\tif ( ! col.sType && col._sManualType ) {\r\n\t\t\t\tcol.sType = col._sManualType;\r\n\t\t\t}\r\n\t\t\telse if ( ! col.sType ) {\r\n\t\t\t\tfor ( j=0, jen=types.length ; j<jen ; j++ ) {\r\n\t\t\t\t\tfor ( k=0, ken=data.length ; k<ken ; k++ ) {\r\n\t\t\t\t\t\t// Use a cache array so we only need to get the type data\r\n\t\t\t\t\t\t// from the formatter once (when using multiple detectors)\r\n\t\t\t\t\t\tif ( cache[k] === undefined ) {\r\n\t\t\t\t\t\t\tcache[k] = _fnGetCellData( settings, k, i, 'type' );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tdetectedType = types[j]( cache[k], settings );\r\n\t\r\n\t\t\t\t\t\t// If null, then this type can't apply to this column, so\r\n\t\t\t\t\t\t// rather than testing all cells, break out. There is an\r\n\t\t\t\t\t\t// exception for the last type which is `html`. We need to\r\n\t\t\t\t\t\t// scan all rows since it is possible to mix string and HTML\r\n\t\t\t\t\t\t// types\r\n\t\t\t\t\t\tif ( ! detectedType && j !== types.length-1 ) {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t// Only a single match is needed for html type since it is\r\n\t\t\t\t\t\t// bottom of the pile and very similar to string\r\n\t\t\t\t\t\tif ( detectedType === 'html' ) {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Type is valid for all data points in the column - use this\r\n\t\t\t\t\t// type\r\n\t\t\t\t\tif ( detectedType ) {\r\n\t\t\t\t\t\tcol.sType = detectedType;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Fall back - if no type was detected, always use string\r\n\t\t\t\tif ( ! col.sType ) {\r\n\t\t\t\t\tcol.sType = 'string';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Take the column definitions and static columns arrays and calculate how\r\n\t * they relate to column indexes. The callback function will then apply the\r\n\t * definition found for a column to a suitable configuration object.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {array} aoColDefs The aoColumnDefs array that is to be applied\r\n\t *  @param {array} aoCols The aoColumns array that defines columns individually\r\n\t *  @param {function} fn Callback function - takes two parameters, the calculated\r\n\t *    column index and the definition for that column.\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )\r\n\t{\r\n\t\tvar i, iLen, j, jLen, k, kLen, def;\r\n\t\tvar columns = oSettings.aoColumns;\r\n\t\r\n\t\t// Column definitions with aTargets\r\n\t\tif ( aoColDefs )\r\n\t\t{\r\n\t\t\t/* Loop over the definitions array - loop in reverse so first instance has priority */\r\n\t\t\tfor ( i=aoColDefs.length-1 ; i>=0 ; i-- )\r\n\t\t\t{\r\n\t\t\t\tdef = aoColDefs[i];\r\n\t\r\n\t\t\t\t/* Each definition can target multiple columns, as it is an array */\r\n\t\t\t\tvar aTargets = def.targets !== undefined ?\r\n\t\t\t\t\tdef.targets :\r\n\t\t\t\t\tdef.aTargets;\r\n\t\r\n\t\t\t\tif ( ! $.isArray( aTargets ) )\r\n\t\t\t\t{\r\n\t\t\t\t\taTargets = [ aTargets ];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tfor ( j=0, jLen=aTargets.length ; j<jLen ; j++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( typeof aTargets[j] === 'number' && aTargets[j] >= 0 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Add columns that we don't yet know about */\r\n\t\t\t\t\t\twhile( columns.length <= aTargets[j] )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_fnAddColumn( oSettings );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t/* Integer, basic index */\r\n\t\t\t\t\t\tfn( aTargets[j], def );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Negative integer, right to left column counting */\r\n\t\t\t\t\t\tfn( columns.length+aTargets[j], def );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( typeof aTargets[j] === 'string' )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Class name matching on TH element */\r\n\t\t\t\t\t\tfor ( k=0, kLen=columns.length ; k<kLen ; k++ )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ( aTargets[j] == \"_all\" ||\r\n\t\t\t\t\t\t\t     $(columns[k].nTh).hasClass( aTargets[j] ) )\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfn( k, def );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// Statically defined columns array\r\n\t\tif ( aoCols )\r\n\t\t{\r\n\t\t\tfor ( i=0, iLen=aoCols.length ; i<iLen ; i++ )\r\n\t\t\t{\r\n\t\t\t\tfn( i, aoCols[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t * Add a data array to the table, creating DOM node etc. This is the parallel to\r\n\t * _fnGatherData, but for adding rows from a Javascript source, rather than a\r\n\t * DOM source.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {array} aData data array to be added\r\n\t *  @param {node} [nTr] TR element to add to the table - optional. If not given,\r\n\t *    DataTables will create a row automatically\r\n\t *  @param {array} [anTds] Array of TD|TH elements for the row - must be given\r\n\t *    if nTr is.\r\n\t *  @returns {int} >=0 if successful (index of new aoData entry), -1 if failed\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddData ( oSettings, aDataIn, nTr, anTds )\r\n\t{\r\n\t\t/* Create the object for storing information about this new row */\r\n\t\tvar iRow = oSettings.aoData.length;\r\n\t\tvar oData = $.extend( true, {}, DataTable.models.oRow, {\r\n\t\t\tsrc: nTr ? 'dom' : 'data',\r\n\t\t\tidx: iRow\r\n\t\t} );\r\n\t\r\n\t\toData._aData = aDataIn;\r\n\t\toSettings.aoData.push( oData );\r\n\t\r\n\t\t/* Create the cells */\r\n\t\tvar nTd, sThisType;\r\n\t\tvar columns = oSettings.aoColumns;\r\n\t\r\n\t\t// Invalidate the column types as the new data needs to be revalidated\r\n\t\tfor ( var i=0, iLen=columns.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tcolumns[i].sType = null;\r\n\t\t}\r\n\t\r\n\t\t/* Add to the display array */\r\n\t\toSettings.aiDisplayMaster.push( iRow );\r\n\t\r\n\t\tvar id = oSettings.rowIdFn( aDataIn );\r\n\t\tif ( id !== undefined ) {\r\n\t\t\toSettings.aIds[ id ] = oData;\r\n\t\t}\r\n\t\r\n\t\t/* Create the DOM information, or register it if already present */\r\n\t\tif ( nTr || ! oSettings.oFeatures.bDeferRender )\r\n\t\t{\r\n\t\t\t_fnCreateTr( oSettings, iRow, nTr, anTds );\r\n\t\t}\r\n\t\r\n\t\treturn iRow;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Add one or more TR elements to the table. Generally we'd expect to\r\n\t * use this for reading data from a DOM sourced table, but it could be\r\n\t * used for an TR element. Note that if a TR is given, it is used (i.e.\r\n\t * it is not cloned).\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {array|node|jQuery} trs The TR element(s) to add to the table\r\n\t *  @returns {array} Array of indexes for the added rows\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddTr( settings, trs )\r\n\t{\r\n\t\tvar row;\r\n\t\r\n\t\t// Allow an individual node to be passed in\r\n\t\tif ( ! (trs instanceof $) ) {\r\n\t\t\ttrs = $(trs);\r\n\t\t}\r\n\t\r\n\t\treturn trs.map( function (i, el) {\r\n\t\t\trow = _fnGetRowElements( settings, el );\r\n\t\t\treturn _fnAddData( settings, row.data, el, row.cells );\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Take a TR element and convert it to an index in aoData\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {node} n the TR element to find\r\n\t *  @returns {int} index if the node is found, null if not\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnNodeToDataIndex( oSettings, n )\r\n\t{\r\n\t\treturn (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Take a TD element and convert it into a column data index (not the visible index)\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {int} iRow The row number the TD/TH can be found in\r\n\t *  @param {node} n The TD/TH element to find\r\n\t *  @returns {int} index if the node is found, -1 if not\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnNodeToColumnIndex( oSettings, iRow, n )\r\n\t{\r\n\t\treturn $.inArray( n, oSettings.aoData[ iRow ].anCells );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the data for a given cell from the internal cache, taking into account data mapping\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {int} rowIdx aoData row id\r\n\t *  @param {int} colIdx Column index\r\n\t *  @param {string} type data get type ('display', 'type' 'filter' 'sort')\r\n\t *  @returns {*} Cell data\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetCellData( settings, rowIdx, colIdx, type )\r\n\t{\r\n\t\tvar draw           = settings.iDraw;\r\n\t\tvar col            = settings.aoColumns[colIdx];\r\n\t\tvar rowData        = settings.aoData[rowIdx]._aData;\r\n\t\tvar defaultContent = col.sDefaultContent;\r\n\t\tvar cellData       = col.fnGetData( rowData, type, {\r\n\t\t\tsettings: settings,\r\n\t\t\trow:      rowIdx,\r\n\t\t\tcol:      colIdx\r\n\t\t} );\r\n\t\r\n\t\tif ( cellData === undefined ) {\r\n\t\t\tif ( settings.iDrawError != draw && defaultContent === null ) {\r\n\t\t\t\t_fnLog( settings, 0, \"Requested unknown parameter \"+\r\n\t\t\t\t\t(typeof col.mData=='function' ? '{function}' : \"'\"+col.mData+\"'\")+\r\n\t\t\t\t\t\" for row \"+rowIdx+\", column \"+colIdx, 4 );\r\n\t\t\t\tsettings.iDrawError = draw;\r\n\t\t\t}\r\n\t\t\treturn defaultContent;\r\n\t\t}\r\n\t\r\n\t\t// When the data source is null and a specific data type is requested (i.e.\r\n\t\t// not the original data), we can use default column data\r\n\t\tif ( (cellData === rowData || cellData === null) && defaultContent !== null && type !== undefined ) {\r\n\t\t\tcellData = defaultContent;\r\n\t\t}\r\n\t\telse if ( typeof cellData === 'function' ) {\r\n\t\t\t// If the data source is a function, then we run it and use the return,\r\n\t\t\t// executing in the scope of the data object (for instances)\r\n\t\t\treturn cellData.call( rowData );\r\n\t\t}\r\n\t\r\n\t\tif ( cellData === null && type == 'display' ) {\r\n\t\t\treturn '';\r\n\t\t}\r\n\t\treturn cellData;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Set the value for a specific cell, into the internal data cache\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {int} rowIdx aoData row id\r\n\t *  @param {int} colIdx Column index\r\n\t *  @param {*} val Value to set\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSetCellData( settings, rowIdx, colIdx, val )\r\n\t{\r\n\t\tvar col     = settings.aoColumns[colIdx];\r\n\t\tvar rowData = settings.aoData[rowIdx]._aData;\r\n\t\r\n\t\tcol.fnSetData( rowData, val, {\r\n\t\t\tsettings: settings,\r\n\t\t\trow:      rowIdx,\r\n\t\t\tcol:      colIdx\r\n\t\t}  );\r\n\t}\r\n\t\r\n\t\r\n\t// Private variable that is used to match action syntax in the data property object\r\n\tvar __reArray = /\\[.*?\\]$/;\r\n\tvar __reFn = /\\(\\)$/;\r\n\t\r\n\t/**\r\n\t * Split string on periods, taking into account escaped periods\r\n\t * @param  {string} str String to split\r\n\t * @return {array} Split string\r\n\t */\r\n\tfunction _fnSplitObjNotation( str )\r\n\t{\r\n\t\treturn $.map( str.match(/(\\\\.|[^\\.])+/g) || [''], function ( s ) {\r\n\t\t\treturn s.replace(/\\\\\\./g, '.');\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Return a function that can be used to get data from a source object, taking\r\n\t * into account the ability to use nested objects as a source\r\n\t *  @param {string|int|function} mSource The data source for the object\r\n\t *  @returns {function} Data get function\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetObjectDataFn( mSource )\r\n\t{\r\n\t\tif ( $.isPlainObject( mSource ) )\r\n\t\t{\r\n\t\t\t/* Build an object of get functions, and wrap them in a single call */\r\n\t\t\tvar o = {};\r\n\t\t\t$.each( mSource, function (key, val) {\r\n\t\t\t\tif ( val ) {\r\n\t\t\t\t\to[key] = _fnGetObjectDataFn( val );\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\treturn function (data, type, row, meta) {\r\n\t\t\t\tvar t = o[type] || o._;\r\n\t\t\t\treturn t !== undefined ?\r\n\t\t\t\t\tt(data, type, row, meta) :\r\n\t\t\t\t\tdata;\r\n\t\t\t};\r\n\t\t}\r\n\t\telse if ( mSource === null )\r\n\t\t{\r\n\t\t\t/* Give an empty string for rendering / sorting etc */\r\n\t\t\treturn function (data) { // type, row and meta also passed, but not used\r\n\t\t\t\treturn data;\r\n\t\t\t};\r\n\t\t}\r\n\t\telse if ( typeof mSource === 'function' )\r\n\t\t{\r\n\t\t\treturn function (data, type, row, meta) {\r\n\t\t\t\treturn mSource( data, type, row, meta );\r\n\t\t\t};\r\n\t\t}\r\n\t\telse if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||\r\n\t\t\t      mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )\r\n\t\t{\r\n\t\t\t/* If there is a . in the source string then the data source is in a\r\n\t\t\t * nested object so we loop over the data for each level to get the next\r\n\t\t\t * level down. On each loop we test for undefined, and if found immediately\r\n\t\t\t * return. This allows entire objects to be missing and sDefaultContent to\r\n\t\t\t * be used if defined, rather than throwing an error\r\n\t\t\t */\r\n\t\t\tvar fetchData = function (data, type, src) {\r\n\t\t\t\tvar arrayNotation, funcNotation, out, innerSrc;\r\n\t\r\n\t\t\t\tif ( src !== \"\" )\r\n\t\t\t\t{\r\n\t\t\t\t\tvar a = _fnSplitObjNotation( src );\r\n\t\r\n\t\t\t\t\tfor ( var i=0, iLen=a.length ; i<iLen ; i++ )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Check if we are dealing with special notation\r\n\t\t\t\t\t\tarrayNotation = a[i].match(__reArray);\r\n\t\t\t\t\t\tfuncNotation = a[i].match(__reFn);\r\n\t\r\n\t\t\t\t\t\tif ( arrayNotation )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Array notation\r\n\t\t\t\t\t\t\ta[i] = a[i].replace(__reArray, '');\r\n\t\r\n\t\t\t\t\t\t\t// Condition allows simply [] to be passed in\r\n\t\t\t\t\t\t\tif ( a[i] !== \"\" ) {\r\n\t\t\t\t\t\t\t\tdata = data[ a[i] ];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tout = [];\r\n\t\r\n\t\t\t\t\t\t\t// Get the remainder of the nested object to get\r\n\t\t\t\t\t\t\ta.splice( 0, i+1 );\r\n\t\t\t\t\t\t\tinnerSrc = a.join('.');\r\n\t\r\n\t\t\t\t\t\t\t// Traverse each entry in the array getting the properties requested\r\n\t\t\t\t\t\t\tif ( $.isArray( data ) ) {\r\n\t\t\t\t\t\t\t\tfor ( var j=0, jLen=data.length ; j<jLen ; j++ ) {\r\n\t\t\t\t\t\t\t\t\tout.push( fetchData( data[j], type, innerSrc ) );\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t\t// If a string is given in between the array notation indicators, that\r\n\t\t\t\t\t\t\t// is used to join the strings together, otherwise an array is returned\r\n\t\t\t\t\t\t\tvar join = arrayNotation[0].substring(1, arrayNotation[0].length-1);\r\n\t\t\t\t\t\t\tdata = (join===\"\") ? out : out.join(join);\r\n\t\r\n\t\t\t\t\t\t\t// The inner call to fetchData has already traversed through the remainder\r\n\t\t\t\t\t\t\t// of the source requested, so we exit from the loop\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if ( funcNotation )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Function call\r\n\t\t\t\t\t\t\ta[i] = a[i].replace(__reFn, '');\r\n\t\t\t\t\t\t\tdata = data[ a[i] ]();\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif ( data === null || data[ a[i] ] === undefined )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\treturn undefined;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdata = data[ a[i] ];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn data;\r\n\t\t\t};\r\n\t\r\n\t\t\treturn function (data, type) { // row and meta also passed, but not used\r\n\t\t\t\treturn fetchData( data, type, mSource );\r\n\t\t\t};\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* Array or flat object mapping */\r\n\t\t\treturn function (data, type) { // row and meta also passed, but not used\r\n\t\t\t\treturn data[mSource];\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Return a function that can be used to set data from a source object, taking\r\n\t * into account the ability to use nested objects as a source\r\n\t *  @param {string|int|function} mSource The data source for the object\r\n\t *  @returns {function} Data set function\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSetObjectDataFn( mSource )\r\n\t{\r\n\t\tif ( $.isPlainObject( mSource ) )\r\n\t\t{\r\n\t\t\t/* Unlike get, only the underscore (global) option is used for for\r\n\t\t\t * setting data since we don't know the type here. This is why an object\r\n\t\t\t * option is not documented for `mData` (which is read/write), but it is\r\n\t\t\t * for `mRender` which is read only.\r\n\t\t\t */\r\n\t\t\treturn _fnSetObjectDataFn( mSource._ );\r\n\t\t}\r\n\t\telse if ( mSource === null )\r\n\t\t{\r\n\t\t\t/* Nothing to do when the data source is null */\r\n\t\t\treturn function () {};\r\n\t\t}\r\n\t\telse if ( typeof mSource === 'function' )\r\n\t\t{\r\n\t\t\treturn function (data, val, meta) {\r\n\t\t\t\tmSource( data, 'set', val, meta );\r\n\t\t\t};\r\n\t\t}\r\n\t\telse if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||\r\n\t\t\t      mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )\r\n\t\t{\r\n\t\t\t/* Like the get, we need to get data from a nested object */\r\n\t\t\tvar setData = function (data, val, src) {\r\n\t\t\t\tvar a = _fnSplitObjNotation( src ), b;\r\n\t\t\t\tvar aLast = a[a.length-1];\r\n\t\t\t\tvar arrayNotation, funcNotation, o, innerSrc;\r\n\t\r\n\t\t\t\tfor ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )\r\n\t\t\t\t{\r\n\t\t\t\t\t// Check if we are dealing with an array notation request\r\n\t\t\t\t\tarrayNotation = a[i].match(__reArray);\r\n\t\t\t\t\tfuncNotation = a[i].match(__reFn);\r\n\t\r\n\t\t\t\t\tif ( arrayNotation )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ta[i] = a[i].replace(__reArray, '');\r\n\t\t\t\t\t\tdata[ a[i] ] = [];\r\n\t\r\n\t\t\t\t\t\t// Get the remainder of the nested object to set so we can recurse\r\n\t\t\t\t\t\tb = a.slice();\r\n\t\t\t\t\t\tb.splice( 0, i+1 );\r\n\t\t\t\t\t\tinnerSrc = b.join('.');\r\n\t\r\n\t\t\t\t\t\t// Traverse each entry in the array setting the properties requested\r\n\t\t\t\t\t\tif ( $.isArray( val ) )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor ( var j=0, jLen=val.length ; j<jLen ; j++ )\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\to = {};\r\n\t\t\t\t\t\t\t\tsetData( o, val[j], innerSrc );\r\n\t\t\t\t\t\t\t\tdata[ a[i] ].push( o );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// We've been asked to save data to an array, but it\r\n\t\t\t\t\t\t\t// isn't array data to be saved. Best that can be done\r\n\t\t\t\t\t\t\t// is to just save the value.\r\n\t\t\t\t\t\t\tdata[ a[i] ] = val;\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t// The inner call to setData has already traversed through the remainder\r\n\t\t\t\t\t\t// of the source and has set the data, thus we can exit here\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( funcNotation )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Function call\r\n\t\t\t\t\t\ta[i] = a[i].replace(__reFn, '');\r\n\t\t\t\t\t\tdata = data[ a[i] ]( val );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// If the nested object doesn't currently exist - since we are\r\n\t\t\t\t\t// trying to set the value - create it\r\n\t\t\t\t\tif ( data[ a[i] ] === null || data[ a[i] ] === undefined )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata[ a[i] ] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdata = data[ a[i] ];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Last item in the input - i.e, the actual set\r\n\t\t\t\tif ( aLast.match(__reFn ) )\r\n\t\t\t\t{\r\n\t\t\t\t\t// Function call\r\n\t\t\t\t\tdata = data[ aLast.replace(__reFn, '') ]( val );\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// If array notation is used, we just want to strip it and use the property name\r\n\t\t\t\t\t// and assign the value. If it isn't used, then we get the result we want anyway\r\n\t\t\t\t\tdata[ aLast.replace(__reArray, '') ] = val;\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\r\n\t\t\treturn function (data, val) { // meta is also passed in, but not used\r\n\t\t\t\treturn setData( data, val, mSource );\r\n\t\t\t};\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* Array or flat object mapping */\r\n\t\t\treturn function (data, val) { // meta is also passed in, but not used\r\n\t\t\t\tdata[mSource] = val;\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Return an array with the full table data\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns array {array} aData Master data array\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetDataMaster ( settings )\r\n\t{\r\n\t\treturn _pluck( settings.aoData, '_aData' );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Nuke the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnClearTable( settings )\r\n\t{\r\n\t\tsettings.aoData.length = 0;\r\n\t\tsettings.aiDisplayMaster.length = 0;\r\n\t\tsettings.aiDisplay.length = 0;\r\n\t\tsettings.aIds = {};\r\n\t}\r\n\t\r\n\t\r\n\t /**\r\n\t * Take an array of integers (index array) and remove a target integer (value - not\r\n\t * the key!)\r\n\t *  @param {array} a Index array to target\r\n\t *  @param {int} iTarget value to find\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDeleteIndex( a, iTarget, splice )\r\n\t{\r\n\t\tvar iTargetIndex = -1;\r\n\t\r\n\t\tfor ( var i=0, iLen=a.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tif ( a[i] == iTarget )\r\n\t\t\t{\r\n\t\t\t\tiTargetIndex = i;\r\n\t\t\t}\r\n\t\t\telse if ( a[i] > iTarget )\r\n\t\t\t{\r\n\t\t\t\ta[i]--;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tif ( iTargetIndex != -1 && splice === undefined )\r\n\t\t{\r\n\t\t\ta.splice( iTargetIndex, 1 );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Mark cached data as invalid such that a re-read of the data will occur when\r\n\t * the cached data is next requested. Also update from the data source object.\r\n\t *\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {int}    rowIdx   Row index to invalidate\r\n\t * @param {string} [src]    Source to invalidate from: undefined, 'auto', 'dom'\r\n\t *     or 'data'\r\n\t * @param {int}    [colIdx] Column index to invalidate. If undefined the whole\r\n\t *     row will be invalidated\r\n\t * @memberof DataTable#oApi\r\n\t *\r\n\t * @todo For the modularisation of v1.11 this will need to become a callback, so\r\n\t *   the sort and filter methods can subscribe to it. That will required\r\n\t *   initialisation options for sorting, which is why it is not already baked in\r\n\t */\r\n\tfunction _fnInvalidate( settings, rowIdx, src, colIdx )\r\n\t{\r\n\t\tvar row = settings.aoData[ rowIdx ];\r\n\t\tvar i, ien;\r\n\t\tvar cellWrite = function ( cell, col ) {\r\n\t\t\t// This is very frustrating, but in IE if you just write directly\r\n\t\t\t// to innerHTML, and elements that are overwritten are GC'ed,\r\n\t\t\t// even if there is a reference to them elsewhere\r\n\t\t\twhile ( cell.childNodes.length ) {\r\n\t\t\t\tcell.removeChild( cell.firstChild );\r\n\t\t\t}\r\n\t\r\n\t\t\tcell.innerHTML = _fnGetCellData( settings, rowIdx, col, 'display' );\r\n\t\t};\r\n\t\r\n\t\t// Are we reading last data from DOM or the data object?\r\n\t\tif ( src === 'dom' || ((! src || src === 'auto') && row.src === 'dom') ) {\r\n\t\t\t// Read the data from the DOM\r\n\t\t\trow._aData = _fnGetRowElements(\r\n\t\t\t\t\tsettings, row, colIdx, colIdx === undefined ? undefined : row._aData\r\n\t\t\t\t)\r\n\t\t\t\t.data;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Reading from data object, update the DOM\r\n\t\t\tvar cells = row.anCells;\r\n\t\r\n\t\t\tif ( cells ) {\r\n\t\t\t\tif ( colIdx !== undefined ) {\r\n\t\t\t\t\tcellWrite( cells[colIdx], colIdx );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfor ( i=0, ien=cells.length ; i<ien ; i++ ) {\r\n\t\t\t\t\t\tcellWrite( cells[i], i );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// For both row and cell invalidation, the cached data for sorting and\r\n\t\t// filtering is nulled out\r\n\t\trow._aSortData = null;\r\n\t\trow._aFilterData = null;\r\n\t\r\n\t\t// Invalidate the type for a specific column (if given) or all columns since\r\n\t\t// the data might have changed\r\n\t\tvar cols = settings.aoColumns;\r\n\t\tif ( colIdx !== undefined ) {\r\n\t\t\tcols[ colIdx ].sType = null;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor ( i=0, ien=cols.length ; i<ien ; i++ ) {\r\n\t\t\t\tcols[i].sType = null;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Update DataTables special `DT_*` attributes for the row\r\n\t\t\t_fnRowAttributes( settings, row );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Build a data source object from an HTML row, reading the contents of the\r\n\t * cells that are in the row.\r\n\t *\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {node|object} TR element from which to read data or existing row\r\n\t *   object from which to re-read the data from the cells\r\n\t * @param {int} [colIdx] Optional column index\r\n\t * @param {array|object} [d] Data source object. If `colIdx` is given then this\r\n\t *   parameter should also be given and will be used to write the data into.\r\n\t *   Only the column in question will be written\r\n\t * @returns {object} Object with two parameters: `data` the data read, in\r\n\t *   document order, and `cells` and array of nodes (they can be useful to the\r\n\t *   caller, so rather than needing a second traversal to get them, just return\r\n\t *   them from here).\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetRowElements( settings, row, colIdx, d )\r\n\t{\r\n\t\tvar\r\n\t\t\ttds = [],\r\n\t\t\ttd = row.firstChild,\r\n\t\t\tname, col, o, i=0, contents,\r\n\t\t\tcolumns = settings.aoColumns,\r\n\t\t\tobjectRead = settings._rowReadObject;\r\n\t\r\n\t\t// Allow the data object to be passed in, or construct\r\n\t\td = d !== undefined ?\r\n\t\t\td :\r\n\t\t\tobjectRead ?\r\n\t\t\t\t{} :\r\n\t\t\t\t[];\r\n\t\r\n\t\tvar attr = function ( str, td  ) {\r\n\t\t\tif ( typeof str === 'string' ) {\r\n\t\t\t\tvar idx = str.indexOf('@');\r\n\t\r\n\t\t\t\tif ( idx !== -1 ) {\r\n\t\t\t\t\tvar attr = str.substring( idx+1 );\r\n\t\t\t\t\tvar setter = _fnSetObjectDataFn( str );\r\n\t\t\t\t\tsetter( d, td.getAttribute( attr ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\t// Read data from a cell and store into the data object\r\n\t\tvar cellProcess = function ( cell ) {\r\n\t\t\tif ( colIdx === undefined || colIdx === i ) {\r\n\t\t\t\tcol = columns[i];\r\n\t\t\t\tcontents = $.trim(cell.innerHTML);\r\n\t\r\n\t\t\t\tif ( col && col._bAttrSrc ) {\r\n\t\t\t\t\tvar setter = _fnSetObjectDataFn( col.mData._ );\r\n\t\t\t\t\tsetter( d, contents );\r\n\t\r\n\t\t\t\t\tattr( col.mData.sort, cell );\r\n\t\t\t\t\tattr( col.mData.type, cell );\r\n\t\t\t\t\tattr( col.mData.filter, cell );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// Depending on the `data` option for the columns the data can\r\n\t\t\t\t\t// be read to either an object or an array.\r\n\t\t\t\t\tif ( objectRead ) {\r\n\t\t\t\t\t\tif ( ! col._setter ) {\r\n\t\t\t\t\t\t\t// Cache the setter function\r\n\t\t\t\t\t\t\tcol._setter = _fnSetObjectDataFn( col.mData );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcol._setter( d, contents );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\td[i] = contents;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\ti++;\r\n\t\t};\r\n\t\r\n\t\tif ( td ) {\r\n\t\t\t// `tr` element was passed in\r\n\t\t\twhile ( td ) {\r\n\t\t\t\tname = td.nodeName.toUpperCase();\r\n\t\r\n\t\t\t\tif ( name == \"TD\" || name == \"TH\" ) {\r\n\t\t\t\t\tcellProcess( td );\r\n\t\t\t\t\ttds.push( td );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\ttd = td.nextSibling;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Existing row object passed in\r\n\t\t\ttds = row.anCells;\r\n\t\r\n\t\t\tfor ( var j=0, jen=tds.length ; j<jen ; j++ ) {\r\n\t\t\t\tcellProcess( tds[j] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// Read the ID from the DOM if present\r\n\t\tvar rowNode = row.firstChild ? row : row.nTr;\r\n\t\r\n\t\tif ( rowNode ) {\r\n\t\t\tvar id = rowNode.getAttribute( 'id' );\r\n\t\r\n\t\t\tif ( id ) {\r\n\t\t\t\t_fnSetObjectDataFn( settings.rowId )( d, id );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn {\r\n\t\t\tdata: d,\r\n\t\t\tcells: tds\r\n\t\t};\r\n\t}\r\n\t/**\r\n\t * Create a new TR element (and it's TD children) for a row\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {int} iRow Row to consider\r\n\t *  @param {node} [nTrIn] TR element to add to the table - optional. If not given,\r\n\t *    DataTables will create a row automatically\r\n\t *  @param {array} [anTds] Array of TD|TH elements for the row - must be given\r\n\t *    if nTr is.\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCreateTr ( oSettings, iRow, nTrIn, anTds )\r\n\t{\r\n\t\tvar\r\n\t\t\trow = oSettings.aoData[iRow],\r\n\t\t\trowData = row._aData,\r\n\t\t\tcells = [],\r\n\t\t\tnTr, nTd, oCol,\r\n\t\t\ti, iLen;\r\n\t\r\n\t\tif ( row.nTr === null )\r\n\t\t{\r\n\t\t\tnTr = nTrIn || document.createElement('tr');\r\n\t\r\n\t\t\trow.nTr = nTr;\r\n\t\t\trow.anCells = cells;\r\n\t\r\n\t\t\t/* Use a private property on the node to allow reserve mapping from the node\r\n\t\t\t * to the aoData array for fast look up\r\n\t\t\t */\r\n\t\t\tnTr._DT_RowIndex = iRow;\r\n\t\r\n\t\t\t/* Special parameters can be given by the data source to be used on the row */\r\n\t\t\t_fnRowAttributes( oSettings, row );\r\n\t\r\n\t\t\t/* Process each column */\r\n\t\t\tfor ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )\r\n\t\t\t{\r\n\t\t\t\toCol = oSettings.aoColumns[i];\r\n\t\r\n\t\t\t\tnTd = nTrIn ? anTds[i] : document.createElement( oCol.sCellType );\r\n\t\t\t\tnTd._DT_CellIndex = {\r\n\t\t\t\t\trow: iRow,\r\n\t\t\t\t\tcolumn: i\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\tcells.push( nTd );\r\n\t\r\n\t\t\t\t// Need to create the HTML if new, or if a rendering function is defined\r\n\t\t\t\tif ( (!nTrIn || oCol.mRender || oCol.mData !== i) &&\r\n\t\t\t\t\t (!$.isPlainObject(oCol.mData) || oCol.mData._ !== i+'.display')\r\n\t\t\t\t) {\r\n\t\t\t\t\tnTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t/* Add user defined class */\r\n\t\t\t\tif ( oCol.sClass )\r\n\t\t\t\t{\r\n\t\t\t\t\tnTd.className += ' '+oCol.sClass;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Visibility - add or remove as required\r\n\t\t\t\tif ( oCol.bVisible && ! nTrIn )\r\n\t\t\t\t{\r\n\t\t\t\t\tnTr.appendChild( nTd );\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ! oCol.bVisible && nTrIn )\r\n\t\t\t\t{\r\n\t\t\t\t\tnTd.parentNode.removeChild( nTd );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( oCol.fnCreatedCell )\r\n\t\t\t\t{\r\n\t\t\t\t\toCol.fnCreatedCell.call( oSettings.oInstance,\r\n\t\t\t\t\t\tnTd, _fnGetCellData( oSettings, iRow, i ), rowData, iRow, i\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow] );\r\n\t\t}\r\n\t\r\n\t\t// Remove once webkit bug 131819 and Chromium bug 365619 have been resolved\r\n\t\t// and deployed\r\n\t\trow.nTr.setAttribute( 'role', 'row' );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Add attributes to a row based on the special `DT_*` parameters in a data\r\n\t * source object.\r\n\t *  @param {object} settings DataTables settings object\r\n\t *  @param {object} DataTables row object for the row to be modified\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnRowAttributes( settings, row )\r\n\t{\r\n\t\tvar tr = row.nTr;\r\n\t\tvar data = row._aData;\r\n\t\r\n\t\tif ( tr ) {\r\n\t\t\tvar id = settings.rowIdFn( data );\r\n\t\r\n\t\t\tif ( id ) {\r\n\t\t\t\ttr.id = id;\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( data.DT_RowClass ) {\r\n\t\t\t\t// Remove any classes added by DT_RowClass before\r\n\t\t\t\tvar a = data.DT_RowClass.split(' ');\r\n\t\t\t\trow.__rowc = row.__rowc ?\r\n\t\t\t\t\t_unique( row.__rowc.concat( a ) ) :\r\n\t\t\t\t\ta;\r\n\t\r\n\t\t\t\t$(tr)\r\n\t\t\t\t\t.removeClass( row.__rowc.join(' ') )\r\n\t\t\t\t\t.addClass( data.DT_RowClass );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( data.DT_RowAttr ) {\r\n\t\t\t\t$(tr).attr( data.DT_RowAttr );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( data.DT_RowData ) {\r\n\t\t\t\t$(tr).data( data.DT_RowData );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Create the HTML header for the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnBuildHead( oSettings )\r\n\t{\r\n\t\tvar i, ien, cell, row, column;\r\n\t\tvar thead = oSettings.nTHead;\r\n\t\tvar tfoot = oSettings.nTFoot;\r\n\t\tvar createHeader = $('th, td', thead).length === 0;\r\n\t\tvar classes = oSettings.oClasses;\r\n\t\tvar columns = oSettings.aoColumns;\r\n\t\r\n\t\tif ( createHeader ) {\r\n\t\t\trow = $('<tr/>').appendTo( thead );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, ien=columns.length ; i<ien ; i++ ) {\r\n\t\t\tcolumn = columns[i];\r\n\t\t\tcell = $( column.nTh ).addClass( column.sClass );\r\n\t\r\n\t\t\tif ( createHeader ) {\r\n\t\t\t\tcell.appendTo( row );\r\n\t\t\t}\r\n\t\r\n\t\t\t// 1.11 move into sorting\r\n\t\t\tif ( oSettings.oFeatures.bSort ) {\r\n\t\t\t\tcell.addClass( column.sSortingClass );\r\n\t\r\n\t\t\t\tif ( column.bSortable !== false ) {\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.attr( 'tabindex', oSettings.iTabIndex )\r\n\t\t\t\t\t\t.attr( 'aria-controls', oSettings.sTableId );\r\n\t\r\n\t\t\t\t\t_fnSortAttachListener( oSettings, column.nTh, i );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( column.sTitle != cell[0].innerHTML ) {\r\n\t\t\t\tcell.html( column.sTitle );\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnRenderer( oSettings, 'header' )(\r\n\t\t\t\toSettings, cell, column, classes\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\tif ( createHeader ) {\r\n\t\t\t_fnDetectHeader( oSettings.aoHeader, thead );\r\n\t\t}\r\n\t\t\r\n\t\t/* ARIA role for the rows */\r\n\t \t$(thead).find('>tr').attr('role', 'row');\r\n\t\r\n\t\t/* Deal with the footer - add classes if required */\r\n\t\t$(thead).find('>tr>th, >tr>td').addClass( classes.sHeaderTH );\r\n\t\t$(tfoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH );\r\n\t\r\n\t\t// Cache the footer cells. Note that we only take the cells from the first\r\n\t\t// row in the footer. If there is more than one row the user wants to\r\n\t\t// interact with, they need to use the table().foot() method. Note also this\r\n\t\t// allows cells to be used for multiple columns using colspan\r\n\t\tif ( tfoot !== null ) {\r\n\t\t\tvar cells = oSettings.aoFooter[0];\r\n\t\r\n\t\t\tfor ( i=0, ien=cells.length ; i<ien ; i++ ) {\r\n\t\t\t\tcolumn = columns[i];\r\n\t\t\t\tcolumn.nTf = cells[i].cell;\r\n\t\r\n\t\t\t\tif ( column.sClass ) {\r\n\t\t\t\t\t$(column.nTf).addClass( column.sClass );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Draw the header (or footer) element based on the column visibility states. The\r\n\t * methodology here is to use the layout array from _fnDetectHeader, modified for\r\n\t * the instantaneous column visibility, to construct the new layout. The grid is\r\n\t * traversed over cell at a time in a rows x columns grid fashion, although each\r\n\t * cell insert can cover multiple elements in the grid - which is tracks using the\r\n\t * aApplied array. Cell inserts in the grid will only occur where there isn't\r\n\t * already a cell in that position.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param array {objects} aoSource Layout array from _fnDetectHeader\r\n\t *  @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDrawHead( oSettings, aoSource, bIncludeHidden )\r\n\t{\r\n\t\tvar i, iLen, j, jLen, k, kLen, n, nLocalTr;\r\n\t\tvar aoLocal = [];\r\n\t\tvar aApplied = [];\r\n\t\tvar iColumns = oSettings.aoColumns.length;\r\n\t\tvar iRowspan, iColspan;\r\n\t\r\n\t\tif ( ! aoSource )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif (  bIncludeHidden === undefined )\r\n\t\t{\r\n\t\t\tbIncludeHidden = false;\r\n\t\t}\r\n\t\r\n\t\t/* Make a copy of the master layout array, but without the visible columns in it */\r\n\t\tfor ( i=0, iLen=aoSource.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\taoLocal[i] = aoSource[i].slice();\r\n\t\t\taoLocal[i].nTr = aoSource[i].nTr;\r\n\t\r\n\t\t\t/* Remove any columns which are currently hidden */\r\n\t\t\tfor ( j=iColumns-1 ; j>=0 ; j-- )\r\n\t\t\t{\r\n\t\t\t\tif ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )\r\n\t\t\t\t{\r\n\t\t\t\t\taoLocal[i].splice( j, 1 );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Prep the applied array - it needs an element for each row */\r\n\t\t\taApplied.push( [] );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tnLocalTr = aoLocal[i].nTr;\r\n\t\r\n\t\t\t/* All cells are going to be replaced, so empty out the row */\r\n\t\t\tif ( nLocalTr )\r\n\t\t\t{\r\n\t\t\t\twhile( (n = nLocalTr.firstChild) )\r\n\t\t\t\t{\r\n\t\t\t\t\tnLocalTr.removeChild( n );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tfor ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )\r\n\t\t\t{\r\n\t\t\t\tiRowspan = 1;\r\n\t\t\t\tiColspan = 1;\r\n\t\r\n\t\t\t\t/* Check to see if there is already a cell (row/colspan) covering our target\r\n\t\t\t\t * insert point. If there is, then there is nothing to do.\r\n\t\t\t\t */\r\n\t\t\t\tif ( aApplied[i][j] === undefined )\r\n\t\t\t\t{\r\n\t\t\t\t\tnLocalTr.appendChild( aoLocal[i][j].cell );\r\n\t\t\t\t\taApplied[i][j] = 1;\r\n\t\r\n\t\t\t\t\t/* Expand the cell to cover as many rows as needed */\r\n\t\t\t\t\twhile ( aoLocal[i+iRowspan] !== undefined &&\r\n\t\t\t\t\t        aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taApplied[i+iRowspan][j] = 1;\r\n\t\t\t\t\t\tiRowspan++;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* Expand the cell to cover as many columns as needed */\r\n\t\t\t\t\twhile ( aoLocal[i][j+iColspan] !== undefined &&\r\n\t\t\t\t\t        aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Must update the applied array over the rows for the columns */\r\n\t\t\t\t\t\tfor ( k=0 ; k<iRowspan ; k++ )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\taApplied[i+k][j+iColspan] = 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tiColspan++;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* Do the actual expansion in the DOM */\r\n\t\t\t\t\t$(aoLocal[i][j].cell)\r\n\t\t\t\t\t\t.attr('rowspan', iRowspan)\r\n\t\t\t\t\t\t.attr('colspan', iColspan);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Insert the required TR nodes into the table for display\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDraw( oSettings )\r\n\t{\r\n\t\t/* Provide a pre-callback function which can be used to cancel the draw is false is returned */\r\n\t\tvar aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );\r\n\t\tif ( $.inArray( false, aPreDraw ) !== -1 )\r\n\t\t{\r\n\t\t\t_fnProcessingDisplay( oSettings, false );\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar i, iLen, n;\r\n\t\tvar anRows = [];\r\n\t\tvar iRowCount = 0;\r\n\t\tvar asStripeClasses = oSettings.asStripeClasses;\r\n\t\tvar iStripes = asStripeClasses.length;\r\n\t\tvar iOpenRows = oSettings.aoOpenRows.length;\r\n\t\tvar oLang = oSettings.oLanguage;\r\n\t\tvar iInitDisplayStart = oSettings.iInitDisplayStart;\r\n\t\tvar bServerSide = _fnDataSource( oSettings ) == 'ssp';\r\n\t\tvar aiDisplay = oSettings.aiDisplay;\r\n\t\r\n\t\toSettings.bDrawing = true;\r\n\t\r\n\t\t/* Check and see if we have an initial draw position from state saving */\r\n\t\tif ( iInitDisplayStart !== undefined && iInitDisplayStart !== -1 )\r\n\t\t{\r\n\t\t\toSettings._iDisplayStart = bServerSide ?\r\n\t\t\t\tiInitDisplayStart :\r\n\t\t\t\tiInitDisplayStart >= oSettings.fnRecordsDisplay() ?\r\n\t\t\t\t\t0 :\r\n\t\t\t\t\tiInitDisplayStart;\r\n\t\r\n\t\t\toSettings.iInitDisplayStart = -1;\r\n\t\t}\r\n\t\r\n\t\tvar iDisplayStart = oSettings._iDisplayStart;\r\n\t\tvar iDisplayEnd = oSettings.fnDisplayEnd();\r\n\t\r\n\t\t/* Server-side processing draw intercept */\r\n\t\tif ( oSettings.bDeferLoading )\r\n\t\t{\r\n\t\t\toSettings.bDeferLoading = false;\r\n\t\t\toSettings.iDraw++;\r\n\t\t\t_fnProcessingDisplay( oSettings, false );\r\n\t\t}\r\n\t\telse if ( !bServerSide )\r\n\t\t{\r\n\t\t\toSettings.iDraw++;\r\n\t\t}\r\n\t\telse if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( aiDisplay.length !== 0 )\r\n\t\t{\r\n\t\t\tvar iStart = bServerSide ? 0 : iDisplayStart;\r\n\t\t\tvar iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd;\r\n\t\r\n\t\t\tfor ( var j=iStart ; j<iEnd ; j++ )\r\n\t\t\t{\r\n\t\t\t\tvar iDataIndex = aiDisplay[j];\r\n\t\t\t\tvar aoData = oSettings.aoData[ iDataIndex ];\r\n\t\t\t\tif ( aoData.nTr === null )\r\n\t\t\t\t{\r\n\t\t\t\t\t_fnCreateTr( oSettings, iDataIndex );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tvar nRow = aoData.nTr;\r\n\t\r\n\t\t\t\t/* Remove the old striping classes and then add the new one */\r\n\t\t\t\tif ( iStripes !== 0 )\r\n\t\t\t\t{\r\n\t\t\t\t\tvar sStripe = asStripeClasses[ iRowCount % iStripes ];\r\n\t\t\t\t\tif ( aoData._sRowStripe != sStripe )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );\r\n\t\t\t\t\t\taoData._sRowStripe = sStripe;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Row callback functions - might want to manipulate the row\r\n\t\t\t\t// iRowCount and j are not currently documented. Are they at all\r\n\t\t\t\t// useful?\r\n\t\t\t\t_fnCallbackFire( oSettings, 'aoRowCallback', null,\r\n\t\t\t\t\t[nRow, aoData._aData, iRowCount, j] );\r\n\t\r\n\t\t\t\tanRows.push( nRow );\r\n\t\t\t\tiRowCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* Table is empty - create a row with an empty message in it */\r\n\t\t\tvar sZero = oLang.sZeroRecords;\r\n\t\t\tif ( oSettings.iDraw == 1 &&  _fnDataSource( oSettings ) == 'ajax' )\r\n\t\t\t{\r\n\t\t\t\tsZero = oLang.sLoadingRecords;\r\n\t\t\t}\r\n\t\t\telse if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 )\r\n\t\t\t{\r\n\t\t\t\tsZero = oLang.sEmptyTable;\r\n\t\t\t}\r\n\t\r\n\t\t\tanRows[ 0 ] = $( '<tr/>', { 'class': iStripes ? asStripeClasses[0] : '' } )\r\n\t\t\t\t.append( $('<td />', {\r\n\t\t\t\t\t'valign':  'top',\r\n\t\t\t\t\t'colSpan': _fnVisbleColumns( oSettings ),\r\n\t\t\t\t\t'class':   oSettings.oClasses.sRowEmpty\r\n\t\t\t\t} ).html( sZero ) )[0];\r\n\t\t}\r\n\t\r\n\t\t/* Header and footer callbacks */\r\n\t\t_fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],\r\n\t\t\t_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );\r\n\t\r\n\t\t_fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],\r\n\t\t\t_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );\r\n\t\r\n\t\tvar body = $(oSettings.nTBody);\r\n\t\r\n\t\tbody.children().detach();\r\n\t\tbody.append( $(anRows) );\r\n\t\r\n\t\t/* Call all required callback functions for the end of a draw */\r\n\t\t_fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] );\r\n\t\r\n\t\t/* Draw is complete, sorting and filtering must be as well */\r\n\t\toSettings.bSorted = false;\r\n\t\toSettings.bFiltered = false;\r\n\t\toSettings.bDrawing = false;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Redraw the table - taking account of the various features which are enabled\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {boolean} [holdPosition] Keep the current paging position. By default\r\n\t *    the paging is reset to the first page\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnReDraw( settings, holdPosition )\r\n\t{\r\n\t\tvar\r\n\t\t\tfeatures = settings.oFeatures,\r\n\t\t\tsort     = features.bSort,\r\n\t\t\tfilter   = features.bFilter;\r\n\t\r\n\t\tif ( sort ) {\r\n\t\t\t_fnSort( settings );\r\n\t\t}\r\n\t\r\n\t\tif ( filter ) {\r\n\t\t\t_fnFilterComplete( settings, settings.oPreviousSearch );\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// No filtering, so we want to just use the display master\r\n\t\t\tsettings.aiDisplay = settings.aiDisplayMaster.slice();\r\n\t\t}\r\n\t\r\n\t\tif ( holdPosition !== true ) {\r\n\t\t\tsettings._iDisplayStart = 0;\r\n\t\t}\r\n\t\r\n\t\t// Let any modules know about the draw hold position state (used by\r\n\t\t// scrolling internally)\r\n\t\tsettings._drawHold = holdPosition;\r\n\t\r\n\t\t_fnDraw( settings );\r\n\t\r\n\t\tsettings._drawHold = false;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Add the options to the page HTML for the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddOptionsHtml ( oSettings )\r\n\t{\r\n\t\tvar classes = oSettings.oClasses;\r\n\t\tvar table = $(oSettings.nTable);\r\n\t\tvar holding = $('<div/>').insertBefore( table ); // Holding element for speed\r\n\t\tvar features = oSettings.oFeatures;\r\n\t\r\n\t\t// All DataTables are wrapped in a div\r\n\t\tvar insert = $('<div/>', {\r\n\t\t\tid:      oSettings.sTableId+'_wrapper',\r\n\t\t\t'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' '+classes.sNoFooter)\r\n\t\t} );\r\n\t\r\n\t\toSettings.nHolding = holding[0];\r\n\t\toSettings.nTableWrapper = insert[0];\r\n\t\toSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;\r\n\t\r\n\t\t/* Loop over the user set positioning and place the elements as needed */\r\n\t\tvar aDom = oSettings.sDom.split('');\r\n\t\tvar featureNode, cOption, nNewNode, cNext, sAttr, j;\r\n\t\tfor ( var i=0 ; i<aDom.length ; i++ )\r\n\t\t{\r\n\t\t\tfeatureNode = null;\r\n\t\t\tcOption = aDom[i];\r\n\t\r\n\t\t\tif ( cOption == '<' )\r\n\t\t\t{\r\n\t\t\t\t/* New container div */\r\n\t\t\t\tnNewNode = $('<div/>')[0];\r\n\t\r\n\t\t\t\t/* Check to see if we should append an id and/or a class name to the container */\r\n\t\t\t\tcNext = aDom[i+1];\r\n\t\t\t\tif ( cNext == \"'\" || cNext == '\"' )\r\n\t\t\t\t{\r\n\t\t\t\t\tsAttr = \"\";\r\n\t\t\t\t\tj = 2;\r\n\t\t\t\t\twhile ( aDom[i+j] != cNext )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsAttr += aDom[i+j];\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* Replace jQuery UI constants @todo depreciated */\r\n\t\t\t\t\tif ( sAttr == \"H\" )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsAttr = classes.sJUIHeader;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( sAttr == \"F\" )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsAttr = classes.sJUIFooter;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* The attribute can be in the format of \"#id.class\", \"#id\" or \"class\" This logic\r\n\t\t\t\t\t * breaks the string into parts and applies them as needed\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif ( sAttr.indexOf('.') != -1 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvar aSplit = sAttr.split('.');\r\n\t\t\t\t\t\tnNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);\r\n\t\t\t\t\t\tnNewNode.className = aSplit[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( sAttr.charAt(0) == \"#\" )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnNewNode.id = sAttr.substr(1, sAttr.length-1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnNewNode.className = sAttr;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\ti += j; /* Move along the position array */\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tinsert.append( nNewNode );\r\n\t\t\t\tinsert = $(nNewNode);\r\n\t\t\t}\r\n\t\t\telse if ( cOption == '>' )\r\n\t\t\t{\r\n\t\t\t\t/* End container div */\r\n\t\t\t\tinsert = insert.parent();\r\n\t\t\t}\r\n\t\t\t// @todo Move options into their own plugins?\r\n\t\t\telse if ( cOption == 'l' && features.bPaginate && features.bLengthChange )\r\n\t\t\t{\r\n\t\t\t\t/* Length */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlLength( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == 'f' && features.bFilter )\r\n\t\t\t{\r\n\t\t\t\t/* Filter */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlFilter( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == 'r' && features.bProcessing )\r\n\t\t\t{\r\n\t\t\t\t/* pRocessing */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlProcessing( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == 't' )\r\n\t\t\t{\r\n\t\t\t\t/* Table */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlTable( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption ==  'i' && features.bInfo )\r\n\t\t\t{\r\n\t\t\t\t/* Info */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlInfo( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == 'p' && features.bPaginate )\r\n\t\t\t{\r\n\t\t\t\t/* Pagination */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlPaginate( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( DataTable.ext.feature.length !== 0 )\r\n\t\t\t{\r\n\t\t\t\t/* Plug-in features */\r\n\t\t\t\tvar aoFeatures = DataTable.ext.feature;\r\n\t\t\t\tfor ( var k=0, kLen=aoFeatures.length ; k<kLen ; k++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( cOption == aoFeatures[k].cFeature )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfeatureNode = aoFeatures[k].fnInit( oSettings );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Add to the 2D features array */\r\n\t\t\tif ( featureNode )\r\n\t\t\t{\r\n\t\t\t\tvar aanFeatures = oSettings.aanFeatures;\r\n\t\r\n\t\t\t\tif ( ! aanFeatures[cOption] )\r\n\t\t\t\t{\r\n\t\t\t\t\taanFeatures[cOption] = [];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\taanFeatures[cOption].push( featureNode );\r\n\t\t\t\tinsert.append( featureNode );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* Built our DOM structure - replace the holding div with what we want */\r\n\t\tholding.replaceWith( insert );\r\n\t\toSettings.nHolding = null;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Use the DOM source to create up an array of header cells. The idea here is to\r\n\t * create a layout grid (array) of rows x columns, which contains a reference\r\n\t * to the cell that that point in the grid (regardless of col/rowspan), such that\r\n\t * any column / row could be removed and the new grid constructed\r\n\t *  @param array {object} aLayout Array to store the calculated layout in\r\n\t *  @param {node} nThead The header/footer element for the table\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDetectHeader ( aLayout, nThead )\r\n\t{\r\n\t\tvar nTrs = $(nThead).children('tr');\r\n\t\tvar nTr, nCell;\r\n\t\tvar i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;\r\n\t\tvar bUnique;\r\n\t\tvar fnShiftCol = function ( a, i, j ) {\r\n\t\t\tvar k = a[i];\r\n\t                while ( k[j] ) {\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\treturn j;\r\n\t\t};\r\n\t\r\n\t\taLayout.splice( 0, aLayout.length );\r\n\t\r\n\t\t/* We know how many rows there are in the layout - so prep it */\r\n\t\tfor ( i=0, iLen=nTrs.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\taLayout.push( [] );\r\n\t\t}\r\n\t\r\n\t\t/* Calculate a layout array */\r\n\t\tfor ( i=0, iLen=nTrs.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tnTr = nTrs[i];\r\n\t\t\tiColumn = 0;\r\n\t\r\n\t\t\t/* For every cell in the row... */\r\n\t\t\tnCell = nTr.firstChild;\r\n\t\t\twhile ( nCell ) {\r\n\t\t\t\tif ( nCell.nodeName.toUpperCase() == \"TD\" ||\r\n\t\t\t\t     nCell.nodeName.toUpperCase() == \"TH\" )\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Get the col and rowspan attributes from the DOM and sanitise them */\r\n\t\t\t\t\tiColspan = nCell.getAttribute('colspan') * 1;\r\n\t\t\t\t\tiRowspan = nCell.getAttribute('rowspan') * 1;\r\n\t\t\t\t\tiColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;\r\n\t\t\t\t\tiRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;\r\n\t\r\n\t\t\t\t\t/* There might be colspan cells already in this row, so shift our target\r\n\t\t\t\t\t * accordingly\r\n\t\t\t\t\t */\r\n\t\t\t\t\tiColShifted = fnShiftCol( aLayout, i, iColumn );\r\n\t\r\n\t\t\t\t\t/* Cache calculation for unique columns */\r\n\t\t\t\t\tbUnique = iColspan === 1 ? true : false;\r\n\t\r\n\t\t\t\t\t/* If there is col / rowspan, copy the information into the layout grid */\r\n\t\t\t\t\tfor ( l=0 ; l<iColspan ; l++ )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor ( k=0 ; k<iRowspan ; k++ )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\taLayout[i+k][iColShifted+l] = {\r\n\t\t\t\t\t\t\t\t\"cell\": nCell,\r\n\t\t\t\t\t\t\t\t\"unique\": bUnique\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\taLayout[i+k].nTr = nTr;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tnCell = nCell.nextSibling;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get an array of unique th elements, one for each column\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {node} nHeader automatically detect the layout from this node - optional\r\n\t *  @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional\r\n\t *  @returns array {node} aReturn list of unique th's\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetUniqueThs ( oSettings, nHeader, aLayout )\r\n\t{\r\n\t\tvar aReturn = [];\r\n\t\tif ( !aLayout )\r\n\t\t{\r\n\t\t\taLayout = oSettings.aoHeader;\r\n\t\t\tif ( nHeader )\r\n\t\t\t{\r\n\t\t\t\taLayout = [];\r\n\t\t\t\t_fnDetectHeader( aLayout, nHeader );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tfor ( var i=0, iLen=aLayout.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tfor ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ )\r\n\t\t\t{\r\n\t\t\t\tif ( aLayout[i][j].unique &&\r\n\t\t\t\t\t (!aReturn[j] || !oSettings.bSortCellsTop) )\r\n\t\t\t\t{\r\n\t\t\t\t\taReturn[j] = aLayout[i][j].cell;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn aReturn;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Create an Ajax call based on the table's settings, taking into account that\r\n\t * parameters can have multiple forms, and backwards compatibility.\r\n\t *\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {array} data Data to send to the server, required by\r\n\t *     DataTables - may be augmented by developer callbacks\r\n\t * @param {function} fn Callback function to run when data is obtained\r\n\t */\r\n\tfunction _fnBuildAjax( oSettings, data, fn )\r\n\t{\r\n\t\t// Compatibility with 1.9-, allow fnServerData and event to manipulate\r\n\t\t_fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] );\r\n\t\r\n\t\t// Convert to object based for 1.10+ if using the old array scheme which can\r\n\t\t// come from server-side processing or serverParams\r\n\t\tif ( data && $.isArray(data) ) {\r\n\t\t\tvar tmp = {};\r\n\t\t\tvar rbracket = /(.*?)\\[\\]$/;\r\n\t\r\n\t\t\t$.each( data, function (key, val) {\r\n\t\t\t\tvar match = val.name.match(rbracket);\r\n\t\r\n\t\t\t\tif ( match ) {\r\n\t\t\t\t\t// Support for arrays\r\n\t\t\t\t\tvar name = match[0];\r\n\t\r\n\t\t\t\t\tif ( ! tmp[ name ] ) {\r\n\t\t\t\t\t\ttmp[ name ] = [];\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttmp[ name ].push( val.value );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\ttmp[val.name] = val.value;\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t\tdata = tmp;\r\n\t\t}\r\n\t\r\n\t\tvar ajaxData;\r\n\t\tvar ajax = oSettings.ajax;\r\n\t\tvar instance = oSettings.oInstance;\r\n\t\tvar callback = function ( json ) {\r\n\t\t\t_fnCallbackFire( oSettings, null, 'xhr', [oSettings, json, oSettings.jqXHR] );\r\n\t\t\tfn( json );\r\n\t\t};\r\n\t\r\n\t\tif ( $.isPlainObject( ajax ) && ajax.data )\r\n\t\t{\r\n\t\t\tajaxData = ajax.data;\r\n\t\r\n\t\t\tvar newData = $.isFunction( ajaxData ) ?\r\n\t\t\t\tajaxData( data, oSettings ) :  // fn can manipulate data or return\r\n\t\t\t\tajaxData;                      // an object object or array to merge\r\n\t\r\n\t\t\t// If the function returned something, use that alone\r\n\t\t\tdata = $.isFunction( ajaxData ) && newData ?\r\n\t\t\t\tnewData :\r\n\t\t\t\t$.extend( true, data, newData );\r\n\t\r\n\t\t\t// Remove the data property as we've resolved it already and don't want\r\n\t\t\t// jQuery to do it again (it is restored at the end of the function)\r\n\t\t\tdelete ajax.data;\r\n\t\t}\r\n\t\r\n\t\tvar baseAjax = {\r\n\t\t\t\"data\": data,\r\n\t\t\t\"success\": function (json) {\r\n\t\t\t\tvar error = json.error || json.sError;\r\n\t\t\t\tif ( error ) {\r\n\t\t\t\t\t_fnLog( oSettings, 0, error );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\toSettings.json = json;\r\n\t\t\t\tcallback( json );\r\n\t\t\t},\r\n\t\t\t\"dataType\": \"json\",\r\n\t\t\t\"cache\": false,\r\n\t\t\t\"type\": oSettings.sServerMethod,\r\n\t\t\t\"error\": function (xhr, error, thrown) {\r\n\t\t\t\tvar ret = _fnCallbackFire( oSettings, null, 'xhr', [oSettings, null, oSettings.jqXHR] );\r\n\t\r\n\t\t\t\tif ( $.inArray( true, ret ) === -1 ) {\r\n\t\t\t\t\tif ( error == \"parsererror\" ) {\r\n\t\t\t\t\t\t_fnLog( oSettings, 0, 'Invalid JSON response', 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( xhr.readyState === 4 ) {\r\n\t\t\t\t\t\t_fnLog( oSettings, 0, 'Ajax error', 7 );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t_fnProcessingDisplay( oSettings, false );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\t// Store the data submitted for the API\r\n\t\toSettings.oAjaxData = data;\r\n\t\r\n\t\t// Allow plug-ins and external processes to modify the data\r\n\t\t_fnCallbackFire( oSettings, null, 'preXhr', [oSettings, data] );\r\n\t\r\n\t\tif ( oSettings.fnServerData )\r\n\t\t{\r\n\t\t\t// DataTables 1.9- compatibility\r\n\t\t\toSettings.fnServerData.call( instance,\r\n\t\t\t\toSettings.sAjaxSource,\r\n\t\t\t\t$.map( data, function (val, key) { // Need to convert back to 1.9 trad format\r\n\t\t\t\t\treturn { name: key, value: val };\r\n\t\t\t\t} ),\r\n\t\t\t\tcallback,\r\n\t\t\t\toSettings\r\n\t\t\t);\r\n\t\t}\r\n\t\telse if ( oSettings.sAjaxSource || typeof ajax === 'string' )\r\n\t\t{\r\n\t\t\t// DataTables 1.9- compatibility\r\n\t\t\toSettings.jqXHR = $.ajax( $.extend( baseAjax, {\r\n\t\t\t\turl: ajax || oSettings.sAjaxSource\r\n\t\t\t} ) );\r\n\t\t}\r\n\t\telse if ( $.isFunction( ajax ) )\r\n\t\t{\r\n\t\t\t// Is a function - let the caller define what needs to be done\r\n\t\t\toSettings.jqXHR = ajax.call( instance, data, callback, oSettings );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Object to extend the base settings\r\n\t\t\toSettings.jqXHR = $.ajax( $.extend( baseAjax, ajax ) );\r\n\t\r\n\t\t\t// Restore for next time around\r\n\t\t\tajax.data = ajaxData;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Update the table using an Ajax call\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @returns {boolean} Block the table drawing or not\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAjaxUpdate( settings )\r\n\t{\r\n\t\tif ( settings.bAjaxDataGet ) {\r\n\t\t\tsettings.iDraw++;\r\n\t\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t\t_fnBuildAjax(\r\n\t\t\t\tsettings,\r\n\t\t\t\t_fnAjaxParameters( settings ),\r\n\t\t\t\tfunction(json) {\r\n\t\t\t\t\t_fnAjaxUpdateDraw( settings, json );\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Build up the parameters in an object needed for a server-side processing\r\n\t * request. Note that this is basically done twice, is different ways - a modern\r\n\t * method which is used by default in DataTables 1.10 which uses objects and\r\n\t * arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if\r\n\t * the sAjaxSource option is used in the initialisation, or the legacyAjax\r\n\t * option is set.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns {bool} block the table drawing or not\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAjaxParameters( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\tcolumns = settings.aoColumns,\r\n\t\t\tcolumnCount = columns.length,\r\n\t\t\tfeatures = settings.oFeatures,\r\n\t\t\tpreSearch = settings.oPreviousSearch,\r\n\t\t\tpreColSearch = settings.aoPreSearchCols,\r\n\t\t\ti, data = [], dataProp, column, columnSearch,\r\n\t\t\tsort = _fnSortFlatten( settings ),\r\n\t\t\tdisplayStart = settings._iDisplayStart,\r\n\t\t\tdisplayLength = features.bPaginate !== false ?\r\n\t\t\t\tsettings._iDisplayLength :\r\n\t\t\t\t-1;\r\n\t\r\n\t\tvar param = function ( name, value ) {\r\n\t\t\tdata.push( { 'name': name, 'value': value } );\r\n\t\t};\r\n\t\r\n\t\t// DataTables 1.9- compatible method\r\n\t\tparam( 'sEcho',          settings.iDraw );\r\n\t\tparam( 'iColumns',       columnCount );\r\n\t\tparam( 'sColumns',       _pluck( columns, 'sName' ).join(',') );\r\n\t\tparam( 'iDisplayStart',  displayStart );\r\n\t\tparam( 'iDisplayLength', displayLength );\r\n\t\r\n\t\t// DataTables 1.10+ method\r\n\t\tvar d = {\r\n\t\t\tdraw:    settings.iDraw,\r\n\t\t\tcolumns: [],\r\n\t\t\torder:   [],\r\n\t\t\tstart:   displayStart,\r\n\t\t\tlength:  displayLength,\r\n\t\t\tsearch:  {\r\n\t\t\t\tvalue: preSearch.sSearch,\r\n\t\t\t\tregex: preSearch.bRegex\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tfor ( i=0 ; i<columnCount ; i++ ) {\r\n\t\t\tcolumn = columns[i];\r\n\t\t\tcolumnSearch = preColSearch[i];\r\n\t\t\tdataProp = typeof column.mData==\"function\" ? 'function' : column.mData ;\r\n\t\r\n\t\t\td.columns.push( {\r\n\t\t\t\tdata:       dataProp,\r\n\t\t\t\tname:       column.sName,\r\n\t\t\t\tsearchable: column.bSearchable,\r\n\t\t\t\torderable:  column.bSortable,\r\n\t\t\t\tsearch:     {\r\n\t\t\t\t\tvalue: columnSearch.sSearch,\r\n\t\t\t\t\tregex: columnSearch.bRegex\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\tparam( \"mDataProp_\"+i, dataProp );\r\n\t\r\n\t\t\tif ( features.bFilter ) {\r\n\t\t\t\tparam( 'sSearch_'+i,     columnSearch.sSearch );\r\n\t\t\t\tparam( 'bRegex_'+i,      columnSearch.bRegex );\r\n\t\t\t\tparam( 'bSearchable_'+i, column.bSearchable );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( features.bSort ) {\r\n\t\t\t\tparam( 'bSortable_'+i, column.bSortable );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tif ( features.bFilter ) {\r\n\t\t\tparam( 'sSearch', preSearch.sSearch );\r\n\t\t\tparam( 'bRegex', preSearch.bRegex );\r\n\t\t}\r\n\t\r\n\t\tif ( features.bSort ) {\r\n\t\t\t$.each( sort, function ( i, val ) {\r\n\t\t\t\td.order.push( { column: val.col, dir: val.dir } );\r\n\t\r\n\t\t\t\tparam( 'iSortCol_'+i, val.col );\r\n\t\t\t\tparam( 'sSortDir_'+i, val.dir );\r\n\t\t\t} );\r\n\t\r\n\t\t\tparam( 'iSortingCols', sort.length );\r\n\t\t}\r\n\t\r\n\t\t// If the legacy.ajax parameter is null, then we automatically decide which\r\n\t\t// form to use, based on sAjaxSource\r\n\t\tvar legacy = DataTable.ext.legacy.ajax;\r\n\t\tif ( legacy === null ) {\r\n\t\t\treturn settings.sAjaxSource ? data : d;\r\n\t\t}\r\n\t\r\n\t\t// Otherwise, if legacy has been specified then we use that to decide on the\r\n\t\t// form\r\n\t\treturn legacy ? data : d;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Data the data from the server (nuking the old) and redraw the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {object} json json data return from the server.\r\n\t *  @param {string} json.sEcho Tracking flag for DataTables to match requests\r\n\t *  @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering\r\n\t *  @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering\r\n\t *  @param {array} json.aaData The data to display on this page\r\n\t *  @param {string} [json.sColumns] Column ordering (sName, comma separated)\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAjaxUpdateDraw ( settings, json )\r\n\t{\r\n\t\t// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.\r\n\t\t// Support both\r\n\t\tvar compat = function ( old, modern ) {\r\n\t\t\treturn json[old] !== undefined ? json[old] : json[modern];\r\n\t\t};\r\n\t\r\n\t\tvar data = _fnAjaxDataSrc( settings, json );\r\n\t\tvar draw            = compat( 'sEcho',                'draw' );\r\n\t\tvar recordsTotal    = compat( 'iTotalRecords',        'recordsTotal' );\r\n\t\tvar recordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' );\r\n\t\r\n\t\tif ( draw ) {\r\n\t\t\t// Protect against out of sequence returns\r\n\t\t\tif ( draw*1 < settings.iDraw ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tsettings.iDraw = draw * 1;\r\n\t\t}\r\n\t\r\n\t\t_fnClearTable( settings );\r\n\t\tsettings._iRecordsTotal   = parseInt(recordsTotal, 10);\r\n\t\tsettings._iRecordsDisplay = parseInt(recordsFiltered, 10);\r\n\t\r\n\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t_fnAddData( settings, data[i] );\r\n\t\t}\r\n\t\tsettings.aiDisplay = settings.aiDisplayMaster.slice();\r\n\t\r\n\t\tsettings.bAjaxDataGet = false;\r\n\t\t_fnDraw( settings );\r\n\t\r\n\t\tif ( ! settings._bInitComplete ) {\r\n\t\t\t_fnInitComplete( settings, json );\r\n\t\t}\r\n\t\r\n\t\tsettings.bAjaxDataGet = true;\r\n\t\t_fnProcessingDisplay( settings, false );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the data from the JSON data source to use for drawing a table. Using\r\n\t * `_fnGetObjectDataFn` allows the data to be sourced from a property of the\r\n\t * source object, or from a processing function.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param  {object} json Data source object / array from the server\r\n\t *  @return {array} Array of data to use\r\n\t */\r\n\tfunction _fnAjaxDataSrc ( oSettings, json )\r\n\t{\r\n\t\tvar dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ?\r\n\t\t\toSettings.ajax.dataSrc :\r\n\t\t\toSettings.sAjaxDataProp; // Compatibility with 1.9-.\r\n\t\r\n\t\t// Compatibility with 1.9-. In order to read from aaData, check if the\r\n\t\t// default has been changed, if not, check for aaData\r\n\t\tif ( dataSrc === 'data' ) {\r\n\t\t\treturn json.aaData || json[dataSrc];\r\n\t\t}\r\n\t\r\n\t\treturn dataSrc !== \"\" ?\r\n\t\t\t_fnGetObjectDataFn( dataSrc )( json ) :\r\n\t\t\tjson;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Generate the node required for filtering text\r\n\t *  @returns {node} Filter control element\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlFilter ( settings )\r\n\t{\r\n\t\tvar classes = settings.oClasses;\r\n\t\tvar tableId = settings.sTableId;\r\n\t\tvar language = settings.oLanguage;\r\n\t\tvar previousSearch = settings.oPreviousSearch;\r\n\t\tvar features = settings.aanFeatures;\r\n\t\tvar input = '<input type=\"search\" class=\"'+classes.sFilterInput+'\"/>';\r\n\t\r\n\t\tvar str = language.sSearch;\r\n\t\tstr = str.match(/_INPUT_/) ?\r\n\t\t\tstr.replace('_INPUT_', input) :\r\n\t\t\tstr+input;\r\n\t\r\n\t\tvar filter = $('<div/>', {\r\n\t\t\t\t'id': ! features.f ? tableId+'_filter' : null,\r\n\t\t\t\t'class': classes.sFilter\r\n\t\t\t} )\r\n\t\t\t.append( $('<label/>' ).append( str ) );\r\n\t\r\n\t\tvar searchFn = function() {\r\n\t\t\t/* Update all other filter input elements for the new display */\r\n\t\t\tvar n = features.f;\r\n\t\t\tvar val = !this.value ? \"\" : this.value; // mental IE8 fix :-(\r\n\t\r\n\t\t\t/* Now do the filter */\r\n\t\t\tif ( val != previousSearch.sSearch ) {\r\n\t\t\t\t_fnFilterComplete( settings, {\r\n\t\t\t\t\t\"sSearch\": val,\r\n\t\t\t\t\t\"bRegex\": previousSearch.bRegex,\r\n\t\t\t\t\t\"bSmart\": previousSearch.bSmart ,\r\n\t\t\t\t\t\"bCaseInsensitive\": previousSearch.bCaseInsensitive\r\n\t\t\t\t} );\r\n\t\r\n\t\t\t\t// Need to redraw, without resorting\r\n\t\t\t\tsettings._iDisplayStart = 0;\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tvar searchDelay = settings.searchDelay !== null ?\r\n\t\t\tsettings.searchDelay :\r\n\t\t\t_fnDataSource( settings ) === 'ssp' ?\r\n\t\t\t\t400 :\r\n\t\t\t\t0;\r\n\t\r\n\t\tvar jqFilter = $('input', filter)\r\n\t\t\t.val( previousSearch.sSearch )\r\n\t\t\t.attr( 'placeholder', language.sSearchPlaceholder )\r\n\t\t\t.on(\r\n\t\t\t\t'keyup.DT search.DT input.DT paste.DT cut.DT',\r\n\t\t\t\tsearchDelay ?\r\n\t\t\t\t\t_fnThrottle( searchFn, searchDelay ) :\r\n\t\t\t\t\tsearchFn\r\n\t\t\t)\r\n\t\t\t.on( 'keypress.DT', function(e) {\r\n\t\t\t\t/* Prevent form submission */\r\n\t\t\t\tif ( e.keyCode == 13 ) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} )\r\n\t\t\t.attr('aria-controls', tableId);\r\n\t\r\n\t\t// Update the input elements whenever the table is filtered\r\n\t\t$(settings.nTable).on( 'search.dt.DT', function ( ev, s ) {\r\n\t\t\tif ( settings === s ) {\r\n\t\t\t\t// IE9 throws an 'unknown error' if document.activeElement is used\r\n\t\t\t\t// inside an iframe or frame...\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif ( jqFilter[0] !== document.activeElement ) {\r\n\t\t\t\t\t\tjqFilter.val( previousSearch.sSearch );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch ( e ) {}\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn filter[0];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Filter the table using both the global filter and column based filtering\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {object} oSearch search information\r\n\t *  @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterComplete ( oSettings, oInput, iForce )\r\n\t{\r\n\t\tvar oPrevSearch = oSettings.oPreviousSearch;\r\n\t\tvar aoPrevSearch = oSettings.aoPreSearchCols;\r\n\t\tvar fnSaveFilter = function ( oFilter ) {\r\n\t\t\t/* Save the filtering values */\r\n\t\t\toPrevSearch.sSearch = oFilter.sSearch;\r\n\t\t\toPrevSearch.bRegex = oFilter.bRegex;\r\n\t\t\toPrevSearch.bSmart = oFilter.bSmart;\r\n\t\t\toPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;\r\n\t\t};\r\n\t\tvar fnRegex = function ( o ) {\r\n\t\t\t// Backwards compatibility with the bEscapeRegex option\r\n\t\t\treturn o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex;\r\n\t\t};\r\n\t\r\n\t\t// Resolve any column types that are unknown due to addition or invalidation\r\n\t\t// @todo As per sort - can this be moved into an event handler?\r\n\t\t_fnColumnTypes( oSettings );\r\n\t\r\n\t\t/* In server-side processing all filtering is done by the server, so no point hanging around here */\r\n\t\tif ( _fnDataSource( oSettings ) != 'ssp' )\r\n\t\t{\r\n\t\t\t/* Global filter */\r\n\t\t\t_fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive );\r\n\t\t\tfnSaveFilter( oInput );\r\n\t\r\n\t\t\t/* Now do the individual column filter */\r\n\t\t\tfor ( var i=0 ; i<aoPrevSearch.length ; i++ )\r\n\t\t\t{\r\n\t\t\t\t_fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, fnRegex(aoPrevSearch[i]),\r\n\t\t\t\t\taoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Custom filtering */\r\n\t\t\t_fnFilterCustom( oSettings );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfnSaveFilter( oInput );\r\n\t\t}\r\n\t\r\n\t\t/* Tell the draw function we have been filtering */\r\n\t\toSettings.bFiltered = true;\r\n\t\t_fnCallbackFire( oSettings, null, 'search', [oSettings] );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Apply custom filtering functions\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterCustom( settings )\r\n\t{\r\n\t\tvar filters = DataTable.ext.search;\r\n\t\tvar displayRows = settings.aiDisplay;\r\n\t\tvar row, rowIdx;\r\n\t\r\n\t\tfor ( var i=0, ien=filters.length ; i<ien ; i++ ) {\r\n\t\t\tvar rows = [];\r\n\t\r\n\t\t\t// Loop over each row and see if it should be included\r\n\t\t\tfor ( var j=0, jen=displayRows.length ; j<jen ; j++ ) {\r\n\t\t\t\trowIdx = displayRows[ j ];\r\n\t\t\t\trow = settings.aoData[ rowIdx ];\r\n\t\r\n\t\t\t\tif ( filters[i]( settings, row._aFilterData, rowIdx, row._aData, j ) ) {\r\n\t\t\t\t\trows.push( rowIdx );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// So the array reference doesn't break set the results into the\r\n\t\t\t// existing array\r\n\t\t\tdisplayRows.length = 0;\r\n\t\t\t$.merge( displayRows, rows );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Filter the table on a per-column basis\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {string} sInput string to filter on\r\n\t *  @param {int} iColumn column to filter\r\n\t *  @param {bool} bRegex treat search string as a regular expression or not\r\n\t *  @param {bool} bSmart use smart filtering or not\r\n\t *  @param {bool} bCaseInsensitive Do case insenstive matching or not\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )\r\n\t{\r\n\t\tif ( searchStr === '' ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar data;\r\n\t\tvar out = [];\r\n\t\tvar display = settings.aiDisplay;\r\n\t\tvar rpSearch = _fnFilterCreateSearch( searchStr, regex, smart, caseInsensitive );\r\n\t\r\n\t\tfor ( var i=0 ; i<display.length ; i++ ) {\r\n\t\t\tdata = settings.aoData[ display[i] ]._aFilterData[ colIdx ];\r\n\t\r\n\t\t\tif ( rpSearch.test( data ) ) {\r\n\t\t\t\tout.push( display[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tsettings.aiDisplay = out;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Filter the data table based on user input and draw the table\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {string} input string to filter on\r\n\t *  @param {int} force optional - force a research of the master array (1) or not (undefined or 0)\r\n\t *  @param {bool} regex treat as a regular expression or not\r\n\t *  @param {bool} smart perform smart filtering or not\r\n\t *  @param {bool} caseInsensitive Do case insenstive matching or not\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilter( settings, input, force, regex, smart, caseInsensitive )\r\n\t{\r\n\t\tvar rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );\r\n\t\tvar prevSearch = settings.oPreviousSearch.sSearch;\r\n\t\tvar displayMaster = settings.aiDisplayMaster;\r\n\t\tvar display, invalidated, i;\r\n\t\tvar filtered = [];\r\n\t\r\n\t\t// Need to take account of custom filtering functions - always filter\r\n\t\tif ( DataTable.ext.search.length !== 0 ) {\r\n\t\t\tforce = true;\r\n\t\t}\r\n\t\r\n\t\t// Check if any of the rows were invalidated\r\n\t\tinvalidated = _fnFilterData( settings );\r\n\t\r\n\t\t// If the input is blank - we just want the full data set\r\n\t\tif ( input.length <= 0 ) {\r\n\t\t\tsettings.aiDisplay = displayMaster.slice();\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// New search - start from the master array\r\n\t\t\tif ( invalidated ||\r\n\t\t\t\t force ||\r\n\t\t\t\t prevSearch.length > input.length ||\r\n\t\t\t\t input.indexOf(prevSearch) !== 0 ||\r\n\t\t\t\t settings.bSorted // On resort, the display master needs to be\r\n\t\t\t\t                  // re-filtered since indexes will have changed\r\n\t\t\t) {\r\n\t\t\t\tsettings.aiDisplay = displayMaster.slice();\r\n\t\t\t}\r\n\t\r\n\t\t\t// Search the display array\r\n\t\t\tdisplay = settings.aiDisplay;\r\n\t\r\n\t\t\tfor ( i=0 ; i<display.length ; i++ ) {\r\n\t\t\t\tif ( rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) {\r\n\t\t\t\t\tfiltered.push( display[i] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tsettings.aiDisplay = filtered;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Build a regular expression object suitable for searching a table\r\n\t *  @param {string} sSearch string to search for\r\n\t *  @param {bool} bRegex treat as a regular expression or not\r\n\t *  @param {bool} bSmart perform smart filtering or not\r\n\t *  @param {bool} bCaseInsensitive Do case insensitive matching or not\r\n\t *  @returns {RegExp} constructed object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterCreateSearch( search, regex, smart, caseInsensitive )\r\n\t{\r\n\t\tsearch = regex ?\r\n\t\t\tsearch :\r\n\t\t\t_fnEscapeRegex( search );\r\n\t\t\r\n\t\tif ( smart ) {\r\n\t\t\t/* For smart filtering we want to allow the search to work regardless of\r\n\t\t\t * word order. We also want double quoted text to be preserved, so word\r\n\t\t\t * order is important - a la google. So this is what we want to\r\n\t\t\t * generate:\r\n\t\t\t * \r\n\t\t\t * ^(?=.*?\\bone\\b)(?=.*?\\btwo three\\b)(?=.*?\\bfour\\b).*$\r\n\t\t\t */\r\n\t\t\tvar a = $.map( search.match( /\"[^\"]+\"|[^ ]+/g ) || [''], function ( word ) {\r\n\t\t\t\tif ( word.charAt(0) === '\"' ) {\r\n\t\t\t\t\tvar m = word.match( /^\"(.*)\"$/ );\r\n\t\t\t\t\tword = m ? m[1] : word;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn word.replace('\"', '');\r\n\t\t\t} );\r\n\t\r\n\t\t\tsearch = '^(?=.*?'+a.join( ')(?=.*?' )+').*$';\r\n\t\t}\r\n\t\r\n\t\treturn new RegExp( search, caseInsensitive ? 'i' : '' );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Escape a string such that it can be used in a regular expression\r\n\t *  @param {string} sVal string to escape\r\n\t *  @returns {string} escaped string\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tvar _fnEscapeRegex = DataTable.util.escapeRegex;\r\n\t\r\n\tvar __filter_div = $('<div>')[0];\r\n\tvar __filter_div_textContent = __filter_div.textContent !== undefined;\r\n\t\r\n\t// Update the filtering data for each row if needed (by invalidation or first run)\r\n\tfunction _fnFilterData ( settings )\r\n\t{\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar column;\r\n\t\tvar i, j, ien, jen, filterData, cellData, row;\r\n\t\tvar fomatters = DataTable.ext.type.search;\r\n\t\tvar wasInvalidated = false;\r\n\t\r\n\t\tfor ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\r\n\t\t\trow = settings.aoData[i];\r\n\t\r\n\t\t\tif ( ! row._aFilterData ) {\r\n\t\t\t\tfilterData = [];\r\n\t\r\n\t\t\t\tfor ( j=0, jen=columns.length ; j<jen ; j++ ) {\r\n\t\t\t\t\tcolumn = columns[j];\r\n\t\r\n\t\t\t\t\tif ( column.bSearchable ) {\r\n\t\t\t\t\t\tcellData = _fnGetCellData( settings, i, j, 'filter' );\r\n\t\r\n\t\t\t\t\t\tif ( fomatters[ column.sType ] ) {\r\n\t\t\t\t\t\t\tcellData = fomatters[ column.sType ]( cellData );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t// Search in DataTables 1.10 is string based. In 1.11 this\r\n\t\t\t\t\t\t// should be altered to also allow strict type checking.\r\n\t\t\t\t\t\tif ( cellData === null ) {\r\n\t\t\t\t\t\t\tcellData = '';\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif ( typeof cellData !== 'string' && cellData.toString ) {\r\n\t\t\t\t\t\t\tcellData = cellData.toString();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tcellData = '';\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// If it looks like there is an HTML entity in the string,\r\n\t\t\t\t\t// attempt to decode it so sorting works as expected. Note that\r\n\t\t\t\t\t// we could use a single line of jQuery to do this, but the DOM\r\n\t\t\t\t\t// method used here is much faster http://jsperf.com/html-decode\r\n\t\t\t\t\tif ( cellData.indexOf && cellData.indexOf('&') !== -1 ) {\r\n\t\t\t\t\t\t__filter_div.innerHTML = cellData;\r\n\t\t\t\t\t\tcellData = __filter_div_textContent ?\r\n\t\t\t\t\t\t\t__filter_div.textContent :\r\n\t\t\t\t\t\t\t__filter_div.innerText;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tif ( cellData.replace ) {\r\n\t\t\t\t\t\tcellData = cellData.replace(/[\\r\\n]/g, '');\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tfilterData.push( cellData );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\trow._aFilterData = filterData;\r\n\t\t\t\trow._sFilterRow = filterData.join('  ');\r\n\t\t\t\twasInvalidated = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn wasInvalidated;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from the internal Hungarian notation to camelCase for external\r\n\t * interaction\r\n\t *  @param {object} obj Object to convert\r\n\t *  @returns {object} Inverted object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSearchToCamel ( obj )\r\n\t{\r\n\t\treturn {\r\n\t\t\tsearch:          obj.sSearch,\r\n\t\t\tsmart:           obj.bSmart,\r\n\t\t\tregex:           obj.bRegex,\r\n\t\t\tcaseInsensitive: obj.bCaseInsensitive\r\n\t\t};\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from camelCase notation to the internal Hungarian. We could use the\r\n\t * Hungarian convert function here, but this is cleaner\r\n\t *  @param {object} obj Object to convert\r\n\t *  @returns {object} Inverted object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSearchToHung ( obj )\r\n\t{\r\n\t\treturn {\r\n\t\t\tsSearch:          obj.search,\r\n\t\t\tbSmart:           obj.smart,\r\n\t\t\tbRegex:           obj.regex,\r\n\t\t\tbCaseInsensitive: obj.caseInsensitive\r\n\t\t};\r\n\t}\r\n\t\r\n\t/**\r\n\t * Generate the node required for the info display\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns {node} Information element\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlInfo ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\ttid = settings.sTableId,\r\n\t\t\tnodes = settings.aanFeatures.i,\r\n\t\t\tn = $('<div/>', {\r\n\t\t\t\t'class': settings.oClasses.sInfo,\r\n\t\t\t\t'id': ! nodes ? tid+'_info' : null\r\n\t\t\t} );\r\n\t\r\n\t\tif ( ! nodes ) {\r\n\t\t\t// Update display on each draw\r\n\t\t\tsettings.aoDrawCallback.push( {\r\n\t\t\t\t\"fn\": _fnUpdateInfo,\r\n\t\t\t\t\"sName\": \"information\"\r\n\t\t\t} );\r\n\t\r\n\t\t\tn\r\n\t\t\t\t.attr( 'role', 'status' )\r\n\t\t\t\t.attr( 'aria-live', 'polite' );\r\n\t\r\n\t\t\t// Table is described by our info div\r\n\t\t\t$(settings.nTable).attr( 'aria-describedby', tid+'_info' );\r\n\t\t}\r\n\t\r\n\t\treturn n[0];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Update the information elements in the display\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnUpdateInfo ( settings )\r\n\t{\r\n\t\t/* Show information about the table */\r\n\t\tvar nodes = settings.aanFeatures.i;\r\n\t\tif ( nodes.length === 0 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\tlang  = settings.oLanguage,\r\n\t\t\tstart = settings._iDisplayStart+1,\r\n\t\t\tend   = settings.fnDisplayEnd(),\r\n\t\t\tmax   = settings.fnRecordsTotal(),\r\n\t\t\ttotal = settings.fnRecordsDisplay(),\r\n\t\t\tout   = total ?\r\n\t\t\t\tlang.sInfo :\r\n\t\t\t\tlang.sInfoEmpty;\r\n\t\r\n\t\tif ( total !== max ) {\r\n\t\t\t/* Record set after filtering */\r\n\t\t\tout += ' ' + lang.sInfoFiltered;\r\n\t\t}\r\n\t\r\n\t\t// Convert the macros\r\n\t\tout += lang.sInfoPostFix;\r\n\t\tout = _fnInfoMacros( settings, out );\r\n\t\r\n\t\tvar callback = lang.fnInfoCallback;\r\n\t\tif ( callback !== null ) {\r\n\t\t\tout = callback.call( settings.oInstance,\r\n\t\t\t\tsettings, start, end, max, total, out\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\t$(nodes).html( out );\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnInfoMacros ( settings, str )\r\n\t{\r\n\t\t// When infinite scrolling, we are always starting at 1. _iDisplayStart is used only\r\n\t\t// internally\r\n\t\tvar\r\n\t\t\tformatter  = settings.fnFormatNumber,\r\n\t\t\tstart      = settings._iDisplayStart+1,\r\n\t\t\tlen        = settings._iDisplayLength,\r\n\t\t\tvis        = settings.fnRecordsDisplay(),\r\n\t\t\tall        = len === -1;\r\n\t\r\n\t\treturn str.\r\n\t\t\treplace(/_START_/g, formatter.call( settings, start ) ).\r\n\t\t\treplace(/_END_/g,   formatter.call( settings, settings.fnDisplayEnd() ) ).\r\n\t\t\treplace(/_MAX_/g,   formatter.call( settings, settings.fnRecordsTotal() ) ).\r\n\t\t\treplace(/_TOTAL_/g, formatter.call( settings, vis ) ).\r\n\t\t\treplace(/_PAGE_/g,  formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ).\r\n\t\t\treplace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) );\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Draw the table for the first time, adding all required features\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnInitialise ( settings )\r\n\t{\r\n\t\tvar i, iLen, iAjaxStart=settings.iInitDisplayStart;\r\n\t\tvar columns = settings.aoColumns, column;\r\n\t\tvar features = settings.oFeatures;\r\n\t\tvar deferLoading = settings.bDeferLoading; // value modified by the draw\r\n\t\r\n\t\t/* Ensure that the table data is fully initialised */\r\n\t\tif ( ! settings.bInitialised ) {\r\n\t\t\tsetTimeout( function(){ _fnInitialise( settings ); }, 200 );\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t/* Show the display HTML options */\r\n\t\t_fnAddOptionsHtml( settings );\r\n\t\r\n\t\t/* Build and draw the header / footer for the table */\r\n\t\t_fnBuildHead( settings );\r\n\t\t_fnDrawHead( settings, settings.aoHeader );\r\n\t\t_fnDrawHead( settings, settings.aoFooter );\r\n\t\r\n\t\t/* Okay to show that something is going on now */\r\n\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t/* Calculate sizes for columns */\r\n\t\tif ( features.bAutoWidth ) {\r\n\t\t\t_fnCalculateColumnWidths( settings );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, iLen=columns.length ; i<iLen ; i++ ) {\r\n\t\t\tcolumn = columns[i];\r\n\t\r\n\t\t\tif ( column.sWidth ) {\r\n\t\t\t\tcolumn.nTh.style.width = _fnStringToCss( column.sWidth );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, 'preInit', [settings] );\r\n\t\r\n\t\t// If there is default sorting required - let's do it. The sort function\r\n\t\t// will do the drawing for us. Otherwise we draw the table regardless of the\r\n\t\t// Ajax source - this allows the table to look initialised for Ajax sourcing\r\n\t\t// data (show 'loading' message possibly)\r\n\t\t_fnReDraw( settings );\r\n\t\r\n\t\t// Server-side processing init complete is done by _fnAjaxUpdateDraw\r\n\t\tvar dataSrc = _fnDataSource( settings );\r\n\t\tif ( dataSrc != 'ssp' || deferLoading ) {\r\n\t\t\t// if there is an ajax source load the data\r\n\t\t\tif ( dataSrc == 'ajax' ) {\r\n\t\t\t\t_fnBuildAjax( settings, [], function(json) {\r\n\t\t\t\t\tvar aData = _fnAjaxDataSrc( settings, json );\r\n\t\r\n\t\t\t\t\t// Got the data - add it to the table\r\n\t\t\t\t\tfor ( i=0 ; i<aData.length ; i++ ) {\r\n\t\t\t\t\t\t_fnAddData( settings, aData[i] );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Reset the init display for cookie saving. We've already done\r\n\t\t\t\t\t// a filter, and therefore cleared it before. So we need to make\r\n\t\t\t\t\t// it appear 'fresh'\r\n\t\t\t\t\tsettings.iInitDisplayStart = iAjaxStart;\r\n\t\r\n\t\t\t\t\t_fnReDraw( settings );\r\n\t\r\n\t\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t\t\t_fnInitComplete( settings, json );\r\n\t\t\t\t}, settings );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t\t_fnInitComplete( settings );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Draw the table for the first time, adding all required features\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {object} [json] JSON from the server that completed the table, if using Ajax source\r\n\t *    with client-side processing (optional)\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnInitComplete ( settings, json )\r\n\t{\r\n\t\tsettings._bInitComplete = true;\r\n\t\r\n\t\t// When data was added after the initialisation (data or Ajax) we need to\r\n\t\t// calculate the column sizing\r\n\t\tif ( json || settings.oInit.aaData ) {\r\n\t\t\t_fnAdjustColumnSizing( settings );\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, 'plugin-init', [settings, json] );\r\n\t\t_fnCallbackFire( settings, 'aoInitComplete', 'init', [settings, json] );\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnLengthChange ( settings, val )\r\n\t{\r\n\t\tvar len = parseInt( val, 10 );\r\n\t\tsettings._iDisplayLength = len;\r\n\t\r\n\t\t_fnLengthOverflow( settings );\r\n\t\r\n\t\t// Fire length change event\r\n\t\t_fnCallbackFire( settings, null, 'length', [settings, len] );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Generate the node required for user display length changing\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @returns {node} Display length feature node\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlLength ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\tclasses  = settings.oClasses,\r\n\t\t\ttableId  = settings.sTableId,\r\n\t\t\tmenu     = settings.aLengthMenu,\r\n\t\t\td2       = $.isArray( menu[0] ),\r\n\t\t\tlengths  = d2 ? menu[0] : menu,\r\n\t\t\tlanguage = d2 ? menu[1] : menu;\r\n\t\r\n\t\tvar select = $('<select/>', {\r\n\t\t\t'name':          tableId+'_length',\r\n\t\t\t'aria-controls': tableId,\r\n\t\t\t'class':         classes.sLengthSelect\r\n\t\t} );\r\n\t\r\n\t\tfor ( var i=0, ien=lengths.length ; i<ien ; i++ ) {\r\n\t\t\tselect[0][ i ] = new Option( language[i], lengths[i] );\r\n\t\t}\r\n\t\r\n\t\tvar div = $('<div><label/></div>').addClass( classes.sLength );\r\n\t\tif ( ! settings.aanFeatures.l ) {\r\n\t\t\tdiv[0].id = tableId+'_length';\r\n\t\t}\r\n\t\r\n\t\tdiv.children().append(\r\n\t\t\tsettings.oLanguage.sLengthMenu.replace( '_MENU_', select[0].outerHTML )\r\n\t\t);\r\n\t\r\n\t\t// Can't use `select` variable as user might provide their own and the\r\n\t\t// reference is broken by the use of outerHTML\r\n\t\t$('select', div)\r\n\t\t\t.val( settings._iDisplayLength )\r\n\t\t\t.on( 'change.DT', function(e) {\r\n\t\t\t\t_fnLengthChange( settings, $(this).val() );\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t} );\r\n\t\r\n\t\t// Update node value whenever anything changes the table's length\r\n\t\t$(settings.nTable).on( 'length.dt.DT', function (e, s, len) {\r\n\t\t\tif ( settings === s ) {\r\n\t\t\t\t$('select', div).val( len );\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn div[0];\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Note that most of the paging logic is done in\r\n\t * DataTable.ext.pager\r\n\t */\r\n\t\r\n\t/**\r\n\t * Generate the node required for default pagination\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @returns {node} Pagination feature node\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlPaginate ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\ttype   = settings.sPaginationType,\r\n\t\t\tplugin = DataTable.ext.pager[ type ],\r\n\t\t\tmodern = typeof plugin === 'function',\r\n\t\t\tredraw = function( settings ) {\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t},\r\n\t\t\tnode = $('<div/>').addClass( settings.oClasses.sPaging + type )[0],\r\n\t\t\tfeatures = settings.aanFeatures;\r\n\t\r\n\t\tif ( ! modern ) {\r\n\t\t\tplugin.fnInit( settings, node, redraw );\r\n\t\t}\r\n\t\r\n\t\t/* Add a draw callback for the pagination on first instance, to update the paging display */\r\n\t\tif ( ! features.p )\r\n\t\t{\r\n\t\t\tnode.id = settings.sTableId+'_paginate';\r\n\t\r\n\t\t\tsettings.aoDrawCallback.push( {\r\n\t\t\t\t\"fn\": function( settings ) {\r\n\t\t\t\t\tif ( modern ) {\r\n\t\t\t\t\t\tvar\r\n\t\t\t\t\t\t\tstart      = settings._iDisplayStart,\r\n\t\t\t\t\t\t\tlen        = settings._iDisplayLength,\r\n\t\t\t\t\t\t\tvisRecords = settings.fnRecordsDisplay(),\r\n\t\t\t\t\t\t\tall        = len === -1,\r\n\t\t\t\t\t\t\tpage = all ? 0 : Math.ceil( start / len ),\r\n\t\t\t\t\t\t\tpages = all ? 1 : Math.ceil( visRecords / len ),\r\n\t\t\t\t\t\t\tbuttons = plugin(page, pages),\r\n\t\t\t\t\t\t\ti, ien;\r\n\t\r\n\t\t\t\t\t\tfor ( i=0, ien=features.p.length ; i<ien ; i++ ) {\r\n\t\t\t\t\t\t\t_fnRenderer( settings, 'pageButton' )(\r\n\t\t\t\t\t\t\t\tsettings, features.p[i], i, buttons, page, pages\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tplugin.fnUpdate( settings, redraw );\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\"sName\": \"pagination\"\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\treturn node;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Alter the display settings to change the page\r\n\t *  @param {object} settings DataTables settings object\r\n\t *  @param {string|int} action Paging action to take: \"first\", \"previous\",\r\n\t *    \"next\" or \"last\" or page number to jump to (integer)\r\n\t *  @param [bool] redraw Automatically draw the update or not\r\n\t *  @returns {bool} true page has changed, false - no change\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnPageChange ( settings, action, redraw )\r\n\t{\r\n\t\tvar\r\n\t\t\tstart     = settings._iDisplayStart,\r\n\t\t\tlen       = settings._iDisplayLength,\r\n\t\t\trecords   = settings.fnRecordsDisplay();\r\n\t\r\n\t\tif ( records === 0 || len === -1 )\r\n\t\t{\r\n\t\t\tstart = 0;\r\n\t\t}\r\n\t\telse if ( typeof action === \"number\" )\r\n\t\t{\r\n\t\t\tstart = action * len;\r\n\t\r\n\t\t\tif ( start > records )\r\n\t\t\t{\r\n\t\t\t\tstart = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( action == \"first\" )\r\n\t\t{\r\n\t\t\tstart = 0;\r\n\t\t}\r\n\t\telse if ( action == \"previous\" )\r\n\t\t{\r\n\t\t\tstart = len >= 0 ?\r\n\t\t\t\tstart - len :\r\n\t\t\t\t0;\r\n\t\r\n\t\t\tif ( start < 0 )\r\n\t\t\t{\r\n\t\t\t  start = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( action == \"next\" )\r\n\t\t{\r\n\t\t\tif ( start + len < records )\r\n\t\t\t{\r\n\t\t\t\tstart += len;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( action == \"last\" )\r\n\t\t{\r\n\t\t\tstart = Math.floor( (records-1) / len) * len;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t_fnLog( settings, 0, \"Unknown paging action: \"+action, 5 );\r\n\t\t}\r\n\t\r\n\t\tvar changed = settings._iDisplayStart !== start;\r\n\t\tsettings._iDisplayStart = start;\r\n\t\r\n\t\tif ( changed ) {\r\n\t\t\t_fnCallbackFire( settings, null, 'page', [settings] );\r\n\t\r\n\t\t\tif ( redraw ) {\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn changed;\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Generate the node required for the processing node\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @returns {node} Processing element\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlProcessing ( settings )\r\n\t{\r\n\t\treturn $('<div/>', {\r\n\t\t\t\t'id': ! settings.aanFeatures.r ? settings.sTableId+'_processing' : null,\r\n\t\t\t\t'class': settings.oClasses.sProcessing\r\n\t\t\t} )\r\n\t\t\t.html( settings.oLanguage.sProcessing )\r\n\t\t\t.insertBefore( settings.nTable )[0];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Display or hide the processing indicator\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {bool} show Show the processing indicator (true) or not (false)\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnProcessingDisplay ( settings, show )\r\n\t{\r\n\t\tif ( settings.oFeatures.bProcessing ) {\r\n\t\t\t$(settings.aanFeatures.r).css( 'display', show ? 'block' : 'none' );\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, 'processing', [settings, show] );\r\n\t}\r\n\t\r\n\t/**\r\n\t * Add any control elements for the table - specifically scrolling\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @returns {node} Node to add to the DOM\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlTable ( settings )\r\n\t{\r\n\t\tvar table = $(settings.nTable);\r\n\t\r\n\t\t// Add the ARIA grid role to the table\r\n\t\ttable.attr( 'role', 'grid' );\r\n\t\r\n\t\t// Scrolling from here on in\r\n\t\tvar scroll = settings.oScroll;\r\n\t\r\n\t\tif ( scroll.sX === '' && scroll.sY === '' ) {\r\n\t\t\treturn settings.nTable;\r\n\t\t}\r\n\t\r\n\t\tvar scrollX = scroll.sX;\r\n\t\tvar scrollY = scroll.sY;\r\n\t\tvar classes = settings.oClasses;\r\n\t\tvar caption = table.children('caption');\r\n\t\tvar captionSide = caption.length ? caption[0]._captionSide : null;\r\n\t\tvar headerClone = $( table[0].cloneNode(false) );\r\n\t\tvar footerClone = $( table[0].cloneNode(false) );\r\n\t\tvar footer = table.children('tfoot');\r\n\t\tvar _div = '<div/>';\r\n\t\tvar size = function ( s ) {\r\n\t\t\treturn !s ? null : _fnStringToCss( s );\r\n\t\t};\r\n\t\r\n\t\tif ( ! footer.length ) {\r\n\t\t\tfooter = null;\r\n\t\t}\r\n\t\r\n\t\t/*\r\n\t\t * The HTML structure that we want to generate in this function is:\r\n\t\t *  div - scroller\r\n\t\t *    div - scroll head\r\n\t\t *      div - scroll head inner\r\n\t\t *        table - scroll head table\r\n\t\t *          thead - thead\r\n\t\t *    div - scroll body\r\n\t\t *      table - table (master table)\r\n\t\t *        thead - thead clone for sizing\r\n\t\t *        tbody - tbody\r\n\t\t *    div - scroll foot\r\n\t\t *      div - scroll foot inner\r\n\t\t *        table - scroll foot table\r\n\t\t *          tfoot - tfoot\r\n\t\t */\r\n\t\tvar scroller = $( _div, { 'class': classes.sScrollWrapper } )\r\n\t\t\t.append(\r\n\t\t\t\t$(_div, { 'class': classes.sScrollHead } )\r\n\t\t\t\t\t.css( {\r\n\t\t\t\t\t\toverflow: 'hidden',\r\n\t\t\t\t\t\tposition: 'relative',\r\n\t\t\t\t\t\tborder: 0,\r\n\t\t\t\t\t\twidth: scrollX ? size(scrollX) : '100%'\r\n\t\t\t\t\t} )\r\n\t\t\t\t\t.append(\r\n\t\t\t\t\t\t$(_div, { 'class': classes.sScrollHeadInner } )\r\n\t\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\t\t'box-sizing': 'content-box',\r\n\t\t\t\t\t\t\t\twidth: scroll.sXInner || '100%'\r\n\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\theaderClone\r\n\t\t\t\t\t\t\t\t\t.removeAttr('id')\r\n\t\t\t\t\t\t\t\t\t.css( 'margin-left', 0 )\r\n\t\t\t\t\t\t\t\t\t.append( captionSide === 'top' ? caption : null )\r\n\t\t\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\t\t\ttable.children('thead')\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t)\r\n\t\t\t)\r\n\t\t\t.append(\r\n\t\t\t\t$(_div, { 'class': classes.sScrollBody } )\r\n\t\t\t\t\t.css( {\r\n\t\t\t\t\t\tposition: 'relative',\r\n\t\t\t\t\t\toverflow: 'auto',\r\n\t\t\t\t\t\twidth: size( scrollX )\r\n\t\t\t\t\t} )\r\n\t\t\t\t\t.append( table )\r\n\t\t\t);\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tscroller.append(\r\n\t\t\t\t$(_div, { 'class': classes.sScrollFoot } )\r\n\t\t\t\t\t.css( {\r\n\t\t\t\t\t\toverflow: 'hidden',\r\n\t\t\t\t\t\tborder: 0,\r\n\t\t\t\t\t\twidth: scrollX ? size(scrollX) : '100%'\r\n\t\t\t\t\t} )\r\n\t\t\t\t\t.append(\r\n\t\t\t\t\t\t$(_div, { 'class': classes.sScrollFootInner } )\r\n\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\tfooterClone\r\n\t\t\t\t\t\t\t\t\t.removeAttr('id')\r\n\t\t\t\t\t\t\t\t\t.css( 'margin-left', 0 )\r\n\t\t\t\t\t\t\t\t\t.append( captionSide === 'bottom' ? caption : null )\r\n\t\t\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\t\t\ttable.children('tfoot')\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t)\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\tvar children = scroller.children();\r\n\t\tvar scrollHead = children[0];\r\n\t\tvar scrollBody = children[1];\r\n\t\tvar scrollFoot = footer ? children[2] : null;\r\n\t\r\n\t\t// When the body is scrolled, then we also want to scroll the headers\r\n\t\tif ( scrollX ) {\r\n\t\t\t$(scrollBody).on( 'scroll.DT', function (e) {\r\n\t\t\t\tvar scrollLeft = this.scrollLeft;\r\n\t\r\n\t\t\t\tscrollHead.scrollLeft = scrollLeft;\r\n\t\r\n\t\t\t\tif ( footer ) {\r\n\t\t\t\t\tscrollFoot.scrollLeft = scrollLeft;\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\t$(scrollBody).css(\r\n\t\t\tscrollY && scroll.bCollapse ? 'max-height' : 'height', \r\n\t\t\tscrollY\r\n\t\t);\r\n\t\r\n\t\tsettings.nScrollHead = scrollHead;\r\n\t\tsettings.nScrollBody = scrollBody;\r\n\t\tsettings.nScrollFoot = scrollFoot;\r\n\t\r\n\t\t// On redraw - align columns\r\n\t\tsettings.aoDrawCallback.push( {\r\n\t\t\t\"fn\": _fnScrollDraw,\r\n\t\t\t\"sName\": \"scrolling\"\r\n\t\t} );\r\n\t\r\n\t\treturn scroller[0];\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Update the header, footer and body tables for resizing - i.e. column\r\n\t * alignment.\r\n\t *\r\n\t * Welcome to the most horrible function DataTables. The process that this\r\n\t * function follows is basically:\r\n\t *   1. Re-create the table inside the scrolling div\r\n\t *   2. Take live measurements from the DOM\r\n\t *   3. Apply the measurements to align the columns\r\n\t *   4. Clean up\r\n\t *\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnScrollDraw ( settings )\r\n\t{\r\n\t\t// Given that this is such a monster function, a lot of variables are use\r\n\t\t// to try and keep the minimised size as small as possible\r\n\t\tvar\r\n\t\t\tscroll         = settings.oScroll,\r\n\t\t\tscrollX        = scroll.sX,\r\n\t\t\tscrollXInner   = scroll.sXInner,\r\n\t\t\tscrollY        = scroll.sY,\r\n\t\t\tbarWidth       = scroll.iBarWidth,\r\n\t\t\tdivHeader      = $(settings.nScrollHead),\r\n\t\t\tdivHeaderStyle = divHeader[0].style,\r\n\t\t\tdivHeaderInner = divHeader.children('div'),\r\n\t\t\tdivHeaderInnerStyle = divHeaderInner[0].style,\r\n\t\t\tdivHeaderTable = divHeaderInner.children('table'),\r\n\t\t\tdivBodyEl      = settings.nScrollBody,\r\n\t\t\tdivBody        = $(divBodyEl),\r\n\t\t\tdivBodyStyle   = divBodyEl.style,\r\n\t\t\tdivFooter      = $(settings.nScrollFoot),\r\n\t\t\tdivFooterInner = divFooter.children('div'),\r\n\t\t\tdivFooterTable = divFooterInner.children('table'),\r\n\t\t\theader         = $(settings.nTHead),\r\n\t\t\ttable          = $(settings.nTable),\r\n\t\t\ttableEl        = table[0],\r\n\t\t\ttableStyle     = tableEl.style,\r\n\t\t\tfooter         = settings.nTFoot ? $(settings.nTFoot) : null,\r\n\t\t\tbrowser        = settings.oBrowser,\r\n\t\t\tie67           = browser.bScrollOversize,\r\n\t\t\tdtHeaderCells  = _pluck( settings.aoColumns, 'nTh' ),\r\n\t\t\theaderTrgEls, footerTrgEls,\r\n\t\t\theaderSrcEls, footerSrcEls,\r\n\t\t\theaderCopy, footerCopy,\r\n\t\t\theaderWidths=[], footerWidths=[],\r\n\t\t\theaderContent=[], footerContent=[],\r\n\t\t\tidx, correction, sanityWidth,\r\n\t\t\tzeroOut = function(nSizer) {\r\n\t\t\t\tvar style = nSizer.style;\r\n\t\t\t\tstyle.paddingTop = \"0\";\r\n\t\t\t\tstyle.paddingBottom = \"0\";\r\n\t\t\t\tstyle.borderTopWidth = \"0\";\r\n\t\t\t\tstyle.borderBottomWidth = \"0\";\r\n\t\t\t\tstyle.height = 0;\r\n\t\t\t};\r\n\t\r\n\t\t// If the scrollbar visibility has changed from the last draw, we need to\r\n\t\t// adjust the column sizes as the table width will have changed to account\r\n\t\t// for the scrollbar\r\n\t\tvar scrollBarVis = divBodyEl.scrollHeight > divBodyEl.clientHeight;\r\n\t\t\r\n\t\tif ( settings.scrollBarVis !== scrollBarVis && settings.scrollBarVis !== undefined ) {\r\n\t\t\tsettings.scrollBarVis = scrollBarVis;\r\n\t\t\t_fnAdjustColumnSizing( settings );\r\n\t\t\treturn; // adjust column sizing will call this function again\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsettings.scrollBarVis = scrollBarVis;\r\n\t\t}\r\n\t\r\n\t\t/*\r\n\t\t * 1. Re-create the table inside the scrolling div\r\n\t\t */\r\n\t\r\n\t\t// Remove the old minimised thead and tfoot elements in the inner table\r\n\t\ttable.children('thead, tfoot').remove();\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tfooterCopy = footer.clone().prependTo( table );\r\n\t\t\tfooterTrgEls = footer.find('tr'); // the original tfoot is in its own table and must be sized\r\n\t\t\tfooterSrcEls = footerCopy.find('tr');\r\n\t\t}\r\n\t\r\n\t\t// Clone the current header and footer elements and then place it into the inner table\r\n\t\theaderCopy = header.clone().prependTo( table );\r\n\t\theaderTrgEls = header.find('tr'); // original header is in its own table\r\n\t\theaderSrcEls = headerCopy.find('tr');\r\n\t\theaderCopy.find('th, td').removeAttr('tabindex');\r\n\t\r\n\t\r\n\t\t/*\r\n\t\t * 2. Take live measurements from the DOM - do not alter the DOM itself!\r\n\t\t */\r\n\t\r\n\t\t// Remove old sizing and apply the calculated column widths\r\n\t\t// Get the unique column headers in the newly created (cloned) header. We want to apply the\r\n\t\t// calculated sizes to this header\r\n\t\tif ( ! scrollX )\r\n\t\t{\r\n\t\t\tdivBodyStyle.width = '100%';\r\n\t\t\tdivHeader[0].style.width = '100%';\r\n\t\t}\r\n\t\r\n\t\t$.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {\r\n\t\t\tidx = _fnVisibleToColumnIndex( settings, i );\r\n\t\t\tel.style.width = settings.aoColumns[idx].sWidth;\r\n\t\t} );\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\t_fnApplyToChildren( function(n) {\r\n\t\t\t\tn.style.width = \"\";\r\n\t\t\t}, footerSrcEls );\r\n\t\t}\r\n\t\r\n\t\t// Size the table as a whole\r\n\t\tsanityWidth = table.outerWidth();\r\n\t\tif ( scrollX === \"\" ) {\r\n\t\t\t// No x scrolling\r\n\t\t\ttableStyle.width = \"100%\";\r\n\t\r\n\t\t\t// IE7 will make the width of the table when 100% include the scrollbar\r\n\t\t\t// - which is shouldn't. When there is a scrollbar we need to take this\r\n\t\t\t// into account.\r\n\t\t\tif ( ie67 && (table.find('tbody').height() > divBodyEl.offsetHeight ||\r\n\t\t\t\tdivBody.css('overflow-y') == \"scroll\")\r\n\t\t\t) {\r\n\t\t\t\ttableStyle.width = _fnStringToCss( table.outerWidth() - barWidth);\r\n\t\t\t}\r\n\t\r\n\t\t\t// Recalculate the sanity width\r\n\t\t\tsanityWidth = table.outerWidth();\r\n\t\t}\r\n\t\telse if ( scrollXInner !== \"\" ) {\r\n\t\t\t// legacy x scroll inner has been given - use it\r\n\t\t\ttableStyle.width = _fnStringToCss(scrollXInner);\r\n\t\r\n\t\t\t// Recalculate the sanity width\r\n\t\t\tsanityWidth = table.outerWidth();\r\n\t\t}\r\n\t\r\n\t\t// Hidden header should have zero height, so remove padding and borders. Then\r\n\t\t// set the width based on the real headers\r\n\t\r\n\t\t// Apply all styles in one pass\r\n\t\t_fnApplyToChildren( zeroOut, headerSrcEls );\r\n\t\r\n\t\t// Read all widths in next pass\r\n\t\t_fnApplyToChildren( function(nSizer) {\r\n\t\t\theaderContent.push( nSizer.innerHTML );\r\n\t\t\theaderWidths.push( _fnStringToCss( $(nSizer).css('width') ) );\r\n\t\t}, headerSrcEls );\r\n\t\r\n\t\t// Apply all widths in final pass\r\n\t\t_fnApplyToChildren( function(nToSize, i) {\r\n\t\t\t// Only apply widths to the DataTables detected header cells - this\r\n\t\t\t// prevents complex headers from having contradictory sizes applied\r\n\t\t\tif ( $.inArray( nToSize, dtHeaderCells ) !== -1 ) {\r\n\t\t\t\tnToSize.style.width = headerWidths[i];\r\n\t\t\t}\r\n\t\t}, headerTrgEls );\r\n\t\r\n\t\t$(headerSrcEls).height(0);\r\n\t\r\n\t\t/* Same again with the footer if we have one */\r\n\t\tif ( footer )\r\n\t\t{\r\n\t\t\t_fnApplyToChildren( zeroOut, footerSrcEls );\r\n\t\r\n\t\t\t_fnApplyToChildren( function(nSizer) {\r\n\t\t\t\tfooterContent.push( nSizer.innerHTML );\r\n\t\t\t\tfooterWidths.push( _fnStringToCss( $(nSizer).css('width') ) );\r\n\t\t\t}, footerSrcEls );\r\n\t\r\n\t\t\t_fnApplyToChildren( function(nToSize, i) {\r\n\t\t\t\tnToSize.style.width = footerWidths[i];\r\n\t\t\t}, footerTrgEls );\r\n\t\r\n\t\t\t$(footerSrcEls).height(0);\r\n\t\t}\r\n\t\r\n\t\r\n\t\t/*\r\n\t\t * 3. Apply the measurements\r\n\t\t */\r\n\t\r\n\t\t// \"Hide\" the header and footer that we used for the sizing. We need to keep\r\n\t\t// the content of the cell so that the width applied to the header and body\r\n\t\t// both match, but we want to hide it completely. We want to also fix their\r\n\t\t// width to what they currently are\r\n\t\t_fnApplyToChildren( function(nSizer, i) {\r\n\t\t\tnSizer.innerHTML = '<div class=\"dataTables_sizing\" style=\"height:0;overflow:hidden;\">'+headerContent[i]+'</div>';\r\n\t\t\tnSizer.style.width = headerWidths[i];\r\n\t\t}, headerSrcEls );\r\n\t\r\n\t\tif ( footer )\r\n\t\t{\r\n\t\t\t_fnApplyToChildren( function(nSizer, i) {\r\n\t\t\t\tnSizer.innerHTML = '<div class=\"dataTables_sizing\" style=\"height:0;overflow:hidden;\">'+footerContent[i]+'</div>';\r\n\t\t\t\tnSizer.style.width = footerWidths[i];\r\n\t\t\t}, footerSrcEls );\r\n\t\t}\r\n\t\r\n\t\t// Sanity check that the table is of a sensible width. If not then we are going to get\r\n\t\t// misalignment - try to prevent this by not allowing the table to shrink below its min width\r\n\t\tif ( table.outerWidth() < sanityWidth )\r\n\t\t{\r\n\t\t\t// The min width depends upon if we have a vertical scrollbar visible or not */\r\n\t\t\tcorrection = ((divBodyEl.scrollHeight > divBodyEl.offsetHeight ||\r\n\t\t\t\tdivBody.css('overflow-y') == \"scroll\")) ?\r\n\t\t\t\t\tsanityWidth+barWidth :\r\n\t\t\t\t\tsanityWidth;\r\n\t\r\n\t\t\t// IE6/7 are a law unto themselves...\r\n\t\t\tif ( ie67 && (divBodyEl.scrollHeight >\r\n\t\t\t\tdivBodyEl.offsetHeight || divBody.css('overflow-y') == \"scroll\")\r\n\t\t\t) {\r\n\t\t\t\ttableStyle.width = _fnStringToCss( correction-barWidth );\r\n\t\t\t}\r\n\t\r\n\t\t\t// And give the user a warning that we've stopped the table getting too small\r\n\t\t\tif ( scrollX === \"\" || scrollXInner !== \"\" ) {\r\n\t\t\t\t_fnLog( settings, 1, 'Possible column misalignment', 6 );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcorrection = '100%';\r\n\t\t}\r\n\t\r\n\t\t// Apply to the container elements\r\n\t\tdivBodyStyle.width = _fnStringToCss( correction );\r\n\t\tdivHeaderStyle.width = _fnStringToCss( correction );\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tsettings.nScrollFoot.style.width = _fnStringToCss( correction );\r\n\t\t}\r\n\t\r\n\t\r\n\t\t/*\r\n\t\t * 4. Clean up\r\n\t\t */\r\n\t\tif ( ! scrollY ) {\r\n\t\t\t/* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting\r\n\t\t\t * the scrollbar height from the visible display, rather than adding it on. We need to\r\n\t\t\t * set the height in order to sort this. Don't want to do it in any other browsers.\r\n\t\t\t */\r\n\t\t\tif ( ie67 ) {\r\n\t\t\t\tdivBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+barWidth );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* Finally set the width's of the header and footer tables */\r\n\t\tvar iOuterWidth = table.outerWidth();\r\n\t\tdivHeaderTable[0].style.width = _fnStringToCss( iOuterWidth );\r\n\t\tdivHeaderInnerStyle.width = _fnStringToCss( iOuterWidth );\r\n\t\r\n\t\t// Figure out if there are scrollbar present - if so then we need a the header and footer to\r\n\t\t// provide a bit more space to allow \"overflow\" scrolling (i.e. past the scrollbar)\r\n\t\tvar bScrolling = table.height() > divBodyEl.clientHeight || divBody.css('overflow-y') == \"scroll\";\r\n\t\tvar padding = 'padding' + (browser.bScrollbarLeft ? 'Left' : 'Right' );\r\n\t\tdivHeaderInnerStyle[ padding ] = bScrolling ? barWidth+\"px\" : \"0px\";\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tdivFooterTable[0].style.width = _fnStringToCss( iOuterWidth );\r\n\t\t\tdivFooterInner[0].style.width = _fnStringToCss( iOuterWidth );\r\n\t\t\tdivFooterInner[0].style[padding] = bScrolling ? barWidth+\"px\" : \"0px\";\r\n\t\t}\r\n\t\r\n\t\t// Correct DOM ordering for colgroup - comes before the thead\r\n\t\ttable.children('colgroup').insertBefore( table.children('thead') );\r\n\t\r\n\t\t/* Adjust the position of the header in case we loose the y-scrollbar */\r\n\t\tdivBody.scroll();\r\n\t\r\n\t\t// If sorting or filtering has occurred, jump the scrolling back to the top\r\n\t\t// only if we aren't holding the position\r\n\t\tif ( (settings.bSorted || settings.bFiltered) && ! settings._drawHold ) {\r\n\t\t\tdivBodyEl.scrollTop = 0;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Apply a given function to the display child nodes of an element array (typically\r\n\t * TD children of TR rows\r\n\t *  @param {function} fn Method to apply to the objects\r\n\t *  @param array {nodes} an1 List of elements to look through for display children\r\n\t *  @param array {nodes} an2 Another list (identical structure to the first) - optional\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnApplyToChildren( fn, an1, an2 )\r\n\t{\r\n\t\tvar index=0, i=0, iLen=an1.length;\r\n\t\tvar nNode1, nNode2;\r\n\t\r\n\t\twhile ( i < iLen ) {\r\n\t\t\tnNode1 = an1[i].firstChild;\r\n\t\t\tnNode2 = an2 ? an2[i].firstChild : null;\r\n\t\r\n\t\t\twhile ( nNode1 ) {\r\n\t\t\t\tif ( nNode1.nodeType === 1 ) {\r\n\t\t\t\t\tif ( an2 ) {\r\n\t\t\t\t\t\tfn( nNode1, nNode2, index );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tfn( nNode1, index );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tindex++;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tnNode1 = nNode1.nextSibling;\r\n\t\t\t\tnNode2 = an2 ? nNode2.nextSibling : null;\r\n\t\t\t}\r\n\t\r\n\t\t\ti++;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\tvar __re_html_remove = /<.*?>/g;\r\n\t\r\n\t\r\n\t/**\r\n\t * Calculate the width of columns for the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCalculateColumnWidths ( oSettings )\r\n\t{\r\n\t\tvar\r\n\t\t\ttable = oSettings.nTable,\r\n\t\t\tcolumns = oSettings.aoColumns,\r\n\t\t\tscroll = oSettings.oScroll,\r\n\t\t\tscrollY = scroll.sY,\r\n\t\t\tscrollX = scroll.sX,\r\n\t\t\tscrollXInner = scroll.sXInner,\r\n\t\t\tcolumnCount = columns.length,\r\n\t\t\tvisibleColumns = _fnGetColumns( oSettings, 'bVisible' ),\r\n\t\t\theaderCells = $('th', oSettings.nTHead),\r\n\t\t\ttableWidthAttr = table.getAttribute('width'), // from DOM element\r\n\t\t\ttableContainer = table.parentNode,\r\n\t\t\tuserInputs = false,\r\n\t\t\ti, column, columnIdx, width, outerWidth,\r\n\t\t\tbrowser = oSettings.oBrowser,\r\n\t\t\tie67 = browser.bScrollOversize;\r\n\t\r\n\t\tvar styleWidth = table.style.width;\r\n\t\tif ( styleWidth && styleWidth.indexOf('%') !== -1 ) {\r\n\t\t\ttableWidthAttr = styleWidth;\r\n\t\t}\r\n\t\r\n\t\t/* Convert any user input sizes into pixel sizes */\r\n\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\r\n\t\t\tcolumn = columns[ visibleColumns[i] ];\r\n\t\r\n\t\t\tif ( column.sWidth !== null ) {\r\n\t\t\t\tcolumn.sWidth = _fnConvertToWidth( column.sWidthOrig, tableContainer );\r\n\t\r\n\t\t\t\tuserInputs = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* If the number of columns in the DOM equals the number that we have to\r\n\t\t * process in DataTables, then we can use the offsets that are created by\r\n\t\t * the web- browser. No custom sizes can be set in order for this to happen,\r\n\t\t * nor scrolling used\r\n\t\t */\r\n\t\tif ( ie67 || ! userInputs && ! scrollX && ! scrollY &&\r\n\t\t     columnCount == _fnVisbleColumns( oSettings ) &&\r\n\t\t     columnCount == headerCells.length\r\n\t\t) {\r\n\t\t\tfor ( i=0 ; i<columnCount ; i++ ) {\r\n\t\t\t\tvar colIdx = _fnVisibleToColumnIndex( oSettings, i );\r\n\t\r\n\t\t\t\tif ( colIdx !== null ) {\r\n\t\t\t\t\tcolumns[ colIdx ].sWidth = _fnStringToCss( headerCells.eq(i).width() );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Otherwise construct a single row, worst case, table with the widest\r\n\t\t\t// node in the data, assign any user defined widths, then insert it into\r\n\t\t\t// the DOM and allow the browser to do all the hard work of calculating\r\n\t\t\t// table widths\r\n\t\t\tvar tmpTable = $(table).clone() // don't use cloneNode - IE8 will remove events on the main table\r\n\t\t\t\t.css( 'visibility', 'hidden' )\r\n\t\t\t\t.removeAttr( 'id' );\r\n\t\r\n\t\t\t// Clean up the table body\r\n\t\t\ttmpTable.find('tbody tr').remove();\r\n\t\t\tvar tr = $('<tr/>').appendTo( tmpTable.find('tbody') );\r\n\t\r\n\t\t\t// Clone the table header and footer - we can't use the header / footer\r\n\t\t\t// from the cloned table, since if scrolling is active, the table's\r\n\t\t\t// real header and footer are contained in different table tags\r\n\t\t\ttmpTable.find('thead, tfoot').remove();\r\n\t\t\ttmpTable\r\n\t\t\t\t.append( $(oSettings.nTHead).clone() )\r\n\t\t\t\t.append( $(oSettings.nTFoot).clone() );\r\n\t\r\n\t\t\t// Remove any assigned widths from the footer (from scrolling)\r\n\t\t\ttmpTable.find('tfoot th, tfoot td').css('width', '');\r\n\t\r\n\t\t\t// Apply custom sizing to the cloned header\r\n\t\t\theaderCells = _fnGetUniqueThs( oSettings, tmpTable.find('thead')[0] );\r\n\t\r\n\t\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\r\n\t\t\t\tcolumn = columns[ visibleColumns[i] ];\r\n\t\r\n\t\t\t\theaderCells[i].style.width = column.sWidthOrig !== null && column.sWidthOrig !== '' ?\r\n\t\t\t\t\t_fnStringToCss( column.sWidthOrig ) :\r\n\t\t\t\t\t'';\r\n\t\r\n\t\t\t\t// For scrollX we need to force the column width otherwise the\r\n\t\t\t\t// browser will collapse it. If this width is smaller than the\r\n\t\t\t\t// width the column requires, then it will have no effect\r\n\t\t\t\tif ( column.sWidthOrig && scrollX ) {\r\n\t\t\t\t\t$( headerCells[i] ).append( $('<div/>').css( {\r\n\t\t\t\t\t\twidth: column.sWidthOrig,\r\n\t\t\t\t\t\tmargin: 0,\r\n\t\t\t\t\t\tpadding: 0,\r\n\t\t\t\t\t\tborder: 0,\r\n\t\t\t\t\t\theight: 1\r\n\t\t\t\t\t} ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Find the widest cell for each column and put it into the table\r\n\t\t\tif ( oSettings.aoData.length ) {\r\n\t\t\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\r\n\t\t\t\t\tcolumnIdx = visibleColumns[i];\r\n\t\t\t\t\tcolumn = columns[ columnIdx ];\r\n\t\r\n\t\t\t\t\t$( _fnGetWidestNode( oSettings, columnIdx ) )\r\n\t\t\t\t\t\t.clone( false )\r\n\t\t\t\t\t\t.append( column.sContentPadding )\r\n\t\t\t\t\t\t.appendTo( tr );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Tidy the temporary table - remove name attributes so there aren't\r\n\t\t\t// duplicated in the dom (radio elements for example)\r\n\t\t\t$('[name]', tmpTable).removeAttr('name');\r\n\t\r\n\t\t\t// Table has been built, attach to the document so we can work with it.\r\n\t\t\t// A holding element is used, positioned at the top of the container\r\n\t\t\t// with minimal height, so it has no effect on if the container scrolls\r\n\t\t\t// or not. Otherwise it might trigger scrolling when it actually isn't\r\n\t\t\t// needed\r\n\t\t\tvar holder = $('<div/>').css( scrollX || scrollY ?\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tposition: 'absolute',\r\n\t\t\t\t\t\ttop: 0,\r\n\t\t\t\t\t\tleft: 0,\r\n\t\t\t\t\t\theight: 1,\r\n\t\t\t\t\t\tright: 0,\r\n\t\t\t\t\t\toverflow: 'hidden'\r\n\t\t\t\t\t} :\r\n\t\t\t\t\t{}\r\n\t\t\t\t)\r\n\t\t\t\t.append( tmpTable )\r\n\t\t\t\t.appendTo( tableContainer );\r\n\t\r\n\t\t\t// When scrolling (X or Y) we want to set the width of the table as \r\n\t\t\t// appropriate. However, when not scrolling leave the table width as it\r\n\t\t\t// is. This results in slightly different, but I think correct behaviour\r\n\t\t\tif ( scrollX && scrollXInner ) {\r\n\t\t\t\ttmpTable.width( scrollXInner );\r\n\t\t\t}\r\n\t\t\telse if ( scrollX ) {\r\n\t\t\t\ttmpTable.css( 'width', 'auto' );\r\n\t\t\t\ttmpTable.removeAttr('width');\r\n\t\r\n\t\t\t\t// If there is no width attribute or style, then allow the table to\r\n\t\t\t\t// collapse\r\n\t\t\t\tif ( tmpTable.width() < tableContainer.clientWidth && tableWidthAttr ) {\r\n\t\t\t\t\ttmpTable.width( tableContainer.clientWidth );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if ( scrollY ) {\r\n\t\t\t\ttmpTable.width( tableContainer.clientWidth );\r\n\t\t\t}\r\n\t\t\telse if ( tableWidthAttr ) {\r\n\t\t\t\ttmpTable.width( tableWidthAttr );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Get the width of each column in the constructed table - we need to\r\n\t\t\t// know the inner width (so it can be assigned to the other table's\r\n\t\t\t// cells) and the outer width so we can calculate the full width of the\r\n\t\t\t// table. This is safe since DataTables requires a unique cell for each\r\n\t\t\t// column, but if ever a header can span multiple columns, this will\r\n\t\t\t// need to be modified.\r\n\t\t\tvar total = 0;\r\n\t\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\r\n\t\t\t\tvar cell = $(headerCells[i]);\r\n\t\t\t\tvar border = cell.outerWidth() - cell.width();\r\n\t\r\n\t\t\t\t// Use getBounding... where possible (not IE8-) because it can give\r\n\t\t\t\t// sub-pixel accuracy, which we then want to round up!\r\n\t\t\t\tvar bounding = browser.bBounding ?\r\n\t\t\t\t\tMath.ceil( headerCells[i].getBoundingClientRect().width ) :\r\n\t\t\t\t\tcell.outerWidth();\r\n\t\r\n\t\t\t\t// Total is tracked to remove any sub-pixel errors as the outerWidth\r\n\t\t\t\t// of the table might not equal the total given here (IE!).\r\n\t\t\t\ttotal += bounding;\r\n\t\r\n\t\t\t\t// Width for each column to use\r\n\t\t\t\tcolumns[ visibleColumns[i] ].sWidth = _fnStringToCss( bounding - border );\r\n\t\t\t}\r\n\t\r\n\t\t\ttable.style.width = _fnStringToCss( total );\r\n\t\r\n\t\t\t// Finished with the table - ditch it\r\n\t\t\tholder.remove();\r\n\t\t}\r\n\t\r\n\t\t// If there is a width attr, we want to attach an event listener which\r\n\t\t// allows the table sizing to automatically adjust when the window is\r\n\t\t// resized. Use the width attr rather than CSS, since we can't know if the\r\n\t\t// CSS is a relative value or absolute - DOM read is always px.\r\n\t\tif ( tableWidthAttr ) {\r\n\t\t\ttable.style.width = _fnStringToCss( tableWidthAttr );\r\n\t\t}\r\n\t\r\n\t\tif ( (tableWidthAttr || scrollX) && ! oSettings._reszEvt ) {\r\n\t\t\tvar bindResize = function () {\r\n\t\t\t\t$(window).on('resize.DT-'+oSettings.sInstance, _fnThrottle( function () {\r\n\t\t\t\t\t_fnAdjustColumnSizing( oSettings );\r\n\t\t\t\t} ) );\r\n\t\t\t};\r\n\t\r\n\t\t\t// IE6/7 will crash if we bind a resize event handler on page load.\r\n\t\t\t// To be removed in 1.11 which drops IE6/7 support\r\n\t\t\tif ( ie67 ) {\r\n\t\t\t\tsetTimeout( bindResize, 1000 );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tbindResize();\r\n\t\t\t}\r\n\t\r\n\t\t\toSettings._reszEvt = true;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Throttle the calls to a function. Arguments and context are maintained for\r\n\t * the throttled function\r\n\t *  @param {function} fn Function to be called\r\n\t *  @param {int} [freq=200] call frequency in mS\r\n\t *  @returns {function} wrapped function\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tvar _fnThrottle = DataTable.util.throttle;\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert a CSS unit width to pixels (e.g. 2em)\r\n\t *  @param {string} width width to be converted\r\n\t *  @param {node} parent parent to get the with for (required for relative widths) - optional\r\n\t *  @returns {int} width in pixels\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnConvertToWidth ( width, parent )\r\n\t{\r\n\t\tif ( ! width ) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\r\n\t\tvar n = $('<div/>')\r\n\t\t\t.css( 'width', _fnStringToCss( width ) )\r\n\t\t\t.appendTo( parent || document.body );\r\n\t\r\n\t\tvar val = n[0].offsetWidth;\r\n\t\tn.remove();\r\n\t\r\n\t\treturn val;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the widest node\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {int} colIdx column of interest\r\n\t *  @returns {node} widest table node\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetWidestNode( settings, colIdx )\r\n\t{\r\n\t\tvar idx = _fnGetMaxLenString( settings, colIdx );\r\n\t\tif ( idx < 0 ) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\r\n\t\tvar data = settings.aoData[ idx ];\r\n\t\treturn ! data.nTr ? // Might not have been created when deferred rendering\r\n\t\t\t$('<td/>').html( _fnGetCellData( settings, idx, colIdx, 'display' ) )[0] :\r\n\t\t\tdata.anCells[ colIdx ];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the maximum strlen for each data column\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {int} colIdx column of interest\r\n\t *  @returns {string} max string length for each column\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetMaxLenString( settings, colIdx )\r\n\t{\r\n\t\tvar s, max=-1, maxIdx = -1;\r\n\t\r\n\t\tfor ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\r\n\t\t\ts = _fnGetCellData( settings, i, colIdx, 'display' )+'';\r\n\t\t\ts = s.replace( __re_html_remove, '' );\r\n\t\t\ts = s.replace( /&nbsp;/g, ' ' );\r\n\t\r\n\t\t\tif ( s.length > max ) {\r\n\t\t\t\tmax = s.length;\r\n\t\t\t\tmaxIdx = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn maxIdx;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Append a CSS unit (only if required) to a string\r\n\t *  @param {string} value to css-ify\r\n\t *  @returns {string} value with css unit\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnStringToCss( s )\r\n\t{\r\n\t\tif ( s === null ) {\r\n\t\t\treturn '0px';\r\n\t\t}\r\n\t\r\n\t\tif ( typeof s == 'number' ) {\r\n\t\t\treturn s < 0 ?\r\n\t\t\t\t'0px' :\r\n\t\t\t\ts+'px';\r\n\t\t}\r\n\t\r\n\t\t// Check it has a unit character already\r\n\t\treturn s.match(/\\d$/) ?\r\n\t\t\ts+'px' :\r\n\t\t\ts;\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\tfunction _fnSortFlatten ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\ti, iLen, k, kLen,\r\n\t\t\taSort = [],\r\n\t\t\taiOrig = [],\r\n\t\t\taoColumns = settings.aoColumns,\r\n\t\t\taDataSort, iCol, sType, srcCol,\r\n\t\t\tfixed = settings.aaSortingFixed,\r\n\t\t\tfixedObj = $.isPlainObject( fixed ),\r\n\t\t\tnestedSort = [],\r\n\t\t\tadd = function ( a ) {\r\n\t\t\t\tif ( a.length && ! $.isArray( a[0] ) ) {\r\n\t\t\t\t\t// 1D array\r\n\t\t\t\t\tnestedSort.push( a );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// 2D array\r\n\t\t\t\t\t$.merge( nestedSort, a );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\r\n\t\t// Build the sort array, with pre-fix and post-fix options if they have been\r\n\t\t// specified\r\n\t\tif ( $.isArray( fixed ) ) {\r\n\t\t\tadd( fixed );\r\n\t\t}\r\n\t\r\n\t\tif ( fixedObj && fixed.pre ) {\r\n\t\t\tadd( fixed.pre );\r\n\t\t}\r\n\t\r\n\t\tadd( settings.aaSorting );\r\n\t\r\n\t\tif (fixedObj && fixed.post ) {\r\n\t\t\tadd( fixed.post );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0 ; i<nestedSort.length ; i++ )\r\n\t\t{\r\n\t\t\tsrcCol = nestedSort[i][0];\r\n\t\t\taDataSort = aoColumns[ srcCol ].aDataSort;\r\n\t\r\n\t\t\tfor ( k=0, kLen=aDataSort.length ; k<kLen ; k++ )\r\n\t\t\t{\r\n\t\t\t\tiCol = aDataSort[k];\r\n\t\t\t\tsType = aoColumns[ iCol ].sType || 'string';\r\n\t\r\n\t\t\t\tif ( nestedSort[i]._idx === undefined ) {\r\n\t\t\t\t\tnestedSort[i]._idx = $.inArray( nestedSort[i][1], aoColumns[iCol].asSorting );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\taSort.push( {\r\n\t\t\t\t\tsrc:       srcCol,\r\n\t\t\t\t\tcol:       iCol,\r\n\t\t\t\t\tdir:       nestedSort[i][1],\r\n\t\t\t\t\tindex:     nestedSort[i]._idx,\r\n\t\t\t\t\ttype:      sType,\r\n\t\t\t\t\tformatter: DataTable.ext.type.order[ sType+\"-pre\" ]\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn aSort;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Change the order of the table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t *  @todo This really needs split up!\r\n\t */\r\n\tfunction _fnSort ( oSettings )\r\n\t{\r\n\t\tvar\r\n\t\t\ti, ien, iLen, j, jLen, k, kLen,\r\n\t\t\tsDataType, nTh,\r\n\t\t\taiOrig = [],\r\n\t\t\toExtSort = DataTable.ext.type.order,\r\n\t\t\taoData = oSettings.aoData,\r\n\t\t\taoColumns = oSettings.aoColumns,\r\n\t\t\taDataSort, data, iCol, sType, oSort,\r\n\t\t\tformatters = 0,\r\n\t\t\tsortCol,\r\n\t\t\tdisplayMaster = oSettings.aiDisplayMaster,\r\n\t\t\taSort;\r\n\t\r\n\t\t// Resolve any column types that are unknown due to addition or invalidation\r\n\t\t// @todo Can this be moved into a 'data-ready' handler which is called when\r\n\t\t//   data is going to be used in the table?\r\n\t\t_fnColumnTypes( oSettings );\r\n\t\r\n\t\taSort = _fnSortFlatten( oSettings );\r\n\t\r\n\t\tfor ( i=0, ien=aSort.length ; i<ien ; i++ ) {\r\n\t\t\tsortCol = aSort[i];\r\n\t\r\n\t\t\t// Track if we can use the fast sort algorithm\r\n\t\t\tif ( sortCol.formatter ) {\r\n\t\t\t\tformatters++;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Load the data needed for the sort, for each cell\r\n\t\t\t_fnSortData( oSettings, sortCol.col );\r\n\t\t}\r\n\t\r\n\t\t/* No sorting required if server-side or no sorting array */\r\n\t\tif ( _fnDataSource( oSettings ) != 'ssp' && aSort.length !== 0 )\r\n\t\t{\r\n\t\t\t// Create a value - key array of the current row positions such that we can use their\r\n\t\t\t// current position during the sort, if values match, in order to perform stable sorting\r\n\t\t\tfor ( i=0, iLen=displayMaster.length ; i<iLen ; i++ ) {\r\n\t\t\t\taiOrig[ displayMaster[i] ] = i;\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Do the sort - here we want multi-column sorting based on a given data source (column)\r\n\t\t\t * and sorting function (from oSort) in a certain direction. It's reasonably complex to\r\n\t\t\t * follow on it's own, but this is what we want (example two column sorting):\r\n\t\t\t *  fnLocalSorting = function(a,b){\r\n\t\t\t *    var iTest;\r\n\t\t\t *    iTest = oSort['string-asc']('data11', 'data12');\r\n\t\t\t *      if (iTest !== 0)\r\n\t\t\t *        return iTest;\r\n\t\t\t *    iTest = oSort['numeric-desc']('data21', 'data22');\r\n\t\t\t *    if (iTest !== 0)\r\n\t\t\t *      return iTest;\r\n\t\t\t *    return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );\r\n\t\t\t *  }\r\n\t\t\t * Basically we have a test for each sorting column, if the data in that column is equal,\r\n\t\t\t * test the next column. If all columns match, then we use a numeric sort on the row\r\n\t\t\t * positions in the original data array to provide a stable sort.\r\n\t\t\t *\r\n\t\t\t * Note - I know it seems excessive to have two sorting methods, but the first is around\r\n\t\t\t * 15% faster, so the second is only maintained for backwards compatibility with sorting\r\n\t\t\t * methods which do not have a pre-sort formatting function.\r\n\t\t\t */\r\n\t\t\tif ( formatters === aSort.length ) {\r\n\t\t\t\t// All sort types have formatting functions\r\n\t\t\t\tdisplayMaster.sort( function ( a, b ) {\r\n\t\t\t\t\tvar\r\n\t\t\t\t\t\tx, y, k, test, sort,\r\n\t\t\t\t\t\tlen=aSort.length,\r\n\t\t\t\t\t\tdataA = aoData[a]._aSortData,\r\n\t\t\t\t\t\tdataB = aoData[b]._aSortData;\r\n\t\r\n\t\t\t\t\tfor ( k=0 ; k<len ; k++ ) {\r\n\t\t\t\t\t\tsort = aSort[k];\r\n\t\r\n\t\t\t\t\t\tx = dataA[ sort.col ];\r\n\t\t\t\t\t\ty = dataB[ sort.col ];\r\n\t\r\n\t\t\t\t\t\ttest = x<y ? -1 : x>y ? 1 : 0;\r\n\t\t\t\t\t\tif ( test !== 0 ) {\r\n\t\t\t\t\t\t\treturn sort.dir === 'asc' ? test : -test;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tx = aiOrig[a];\r\n\t\t\t\t\ty = aiOrig[b];\r\n\t\t\t\t\treturn x<y ? -1 : x>y ? 1 : 0;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Depreciated - remove in 1.11 (providing a plug-in option)\r\n\t\t\t\t// Not all sort types have formatting methods, so we have to call their sorting\r\n\t\t\t\t// methods.\r\n\t\t\t\tdisplayMaster.sort( function ( a, b ) {\r\n\t\t\t\t\tvar\r\n\t\t\t\t\t\tx, y, k, l, test, sort, fn,\r\n\t\t\t\t\t\tlen=aSort.length,\r\n\t\t\t\t\t\tdataA = aoData[a]._aSortData,\r\n\t\t\t\t\t\tdataB = aoData[b]._aSortData;\r\n\t\r\n\t\t\t\t\tfor ( k=0 ; k<len ; k++ ) {\r\n\t\t\t\t\t\tsort = aSort[k];\r\n\t\r\n\t\t\t\t\t\tx = dataA[ sort.col ];\r\n\t\t\t\t\t\ty = dataB[ sort.col ];\r\n\t\r\n\t\t\t\t\t\tfn = oExtSort[ sort.type+\"-\"+sort.dir ] || oExtSort[ \"string-\"+sort.dir ];\r\n\t\t\t\t\t\ttest = fn( x, y );\r\n\t\t\t\t\t\tif ( test !== 0 ) {\r\n\t\t\t\t\t\t\treturn test;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tx = aiOrig[a];\r\n\t\t\t\t\ty = aiOrig[b];\r\n\t\t\t\t\treturn x<y ? -1 : x>y ? 1 : 0;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* Tell the draw function that we have sorted the data */\r\n\t\toSettings.bSorted = true;\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnSortAria ( settings )\r\n\t{\r\n\t\tvar label;\r\n\t\tvar nextSort;\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar aSort = _fnSortFlatten( settings );\r\n\t\tvar oAria = settings.oLanguage.oAria;\r\n\t\r\n\t\t// ARIA attributes - need to loop all columns, to update all (removing old\r\n\t\t// attributes as needed)\r\n\t\tfor ( var i=0, iLen=columns.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tvar col = columns[i];\r\n\t\t\tvar asSorting = col.asSorting;\r\n\t\t\tvar sTitle = col.sTitle.replace( /<.*?>/g, \"\" );\r\n\t\t\tvar th = col.nTh;\r\n\t\r\n\t\t\t// IE7 is throwing an error when setting these properties with jQuery's\r\n\t\t\t// attr() and removeAttr() methods...\r\n\t\t\tth.removeAttribute('aria-sort');\r\n\t\r\n\t\t\t/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */\r\n\t\t\tif ( col.bSortable ) {\r\n\t\t\t\tif ( aSort.length > 0 && aSort[0].col == i ) {\r\n\t\t\t\t\tth.setAttribute('aria-sort', aSort[0].dir==\"asc\" ? \"ascending\" : \"descending\" );\r\n\t\t\t\t\tnextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tnextSort = asSorting[0];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tlabel = sTitle + ( nextSort === \"asc\" ?\r\n\t\t\t\t\toAria.sSortAscending :\r\n\t\t\t\t\toAria.sSortDescending\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tlabel = sTitle;\r\n\t\t\t}\r\n\t\r\n\t\t\tth.setAttribute('aria-label', label);\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Function to run on user sort request\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {node} attachTo node to attach the handler to\r\n\t *  @param {int} colIdx column sorting index\r\n\t *  @param {boolean} [append=false] Append the requested sort to the existing\r\n\t *    sort if true (i.e. multi-column sort)\r\n\t *  @param {function} [callback] callback function\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSortListener ( settings, colIdx, append, callback )\r\n\t{\r\n\t\tvar col = settings.aoColumns[ colIdx ];\r\n\t\tvar sorting = settings.aaSorting;\r\n\t\tvar asSorting = col.asSorting;\r\n\t\tvar nextSortIdx;\r\n\t\tvar next = function ( a, overflow ) {\r\n\t\t\tvar idx = a._idx;\r\n\t\t\tif ( idx === undefined ) {\r\n\t\t\t\tidx = $.inArray( a[1], asSorting );\r\n\t\t\t}\r\n\t\r\n\t\t\treturn idx+1 < asSorting.length ?\r\n\t\t\t\tidx+1 :\r\n\t\t\t\toverflow ?\r\n\t\t\t\t\tnull :\r\n\t\t\t\t\t0;\r\n\t\t};\r\n\t\r\n\t\t// Convert to 2D array if needed\r\n\t\tif ( typeof sorting[0] === 'number' ) {\r\n\t\t\tsorting = settings.aaSorting = [ sorting ];\r\n\t\t}\r\n\t\r\n\t\t// If appending the sort then we are multi-column sorting\r\n\t\tif ( append && settings.oFeatures.bSortMulti ) {\r\n\t\t\t// Are we already doing some kind of sort on this column?\r\n\t\t\tvar sortIdx = $.inArray( colIdx, _pluck(sorting, '0') );\r\n\t\r\n\t\t\tif ( sortIdx !== -1 ) {\r\n\t\t\t\t// Yes, modify the sort\r\n\t\t\t\tnextSortIdx = next( sorting[sortIdx], true );\r\n\t\r\n\t\t\t\tif ( nextSortIdx === null && sorting.length === 1 ) {\r\n\t\t\t\t\tnextSortIdx = 0; // can't remove sorting completely\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( nextSortIdx === null ) {\r\n\t\t\t\t\tsorting.splice( sortIdx, 1 );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tsorting[sortIdx][1] = asSorting[ nextSortIdx ];\r\n\t\t\t\t\tsorting[sortIdx]._idx = nextSortIdx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// No sort on this column yet\r\n\t\t\t\tsorting.push( [ colIdx, asSorting[0], 0 ] );\r\n\t\t\t\tsorting[sorting.length-1]._idx = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( sorting.length && sorting[0][0] == colIdx ) {\r\n\t\t\t// Single column - already sorting on this column, modify the sort\r\n\t\t\tnextSortIdx = next( sorting[0] );\r\n\t\r\n\t\t\tsorting.length = 1;\r\n\t\t\tsorting[0][1] = asSorting[ nextSortIdx ];\r\n\t\t\tsorting[0]._idx = nextSortIdx;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Single column - sort only on this column\r\n\t\t\tsorting.length = 0;\r\n\t\t\tsorting.push( [ colIdx, asSorting[0] ] );\r\n\t\t\tsorting[0]._idx = 0;\r\n\t\t}\r\n\t\r\n\t\t// Run the sort by calling a full redraw\r\n\t\t_fnReDraw( settings );\r\n\t\r\n\t\t// callback used for async user interaction\r\n\t\tif ( typeof callback == 'function' ) {\r\n\t\t\tcallback( settings );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Attach a sort handler (click) to a node\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {node} attachTo node to attach the handler to\r\n\t *  @param {int} colIdx column sorting index\r\n\t *  @param {function} [callback] callback function\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSortAttachListener ( settings, attachTo, colIdx, callback )\r\n\t{\r\n\t\tvar col = settings.aoColumns[ colIdx ];\r\n\t\r\n\t\t_fnBindAction( attachTo, {}, function (e) {\r\n\t\t\t/* If the column is not sortable - don't to anything */\r\n\t\t\tif ( col.bSortable === false ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// If processing is enabled use a timeout to allow the processing\r\n\t\t\t// display to be shown - otherwise to it synchronously\r\n\t\t\tif ( settings.oFeatures.bProcessing ) {\r\n\t\t\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t\t\tsetTimeout( function() {\r\n\t\t\t\t\t_fnSortListener( settings, colIdx, e.shiftKey, callback );\r\n\t\r\n\t\t\t\t\t// In server-side processing, the draw callback will remove the\r\n\t\t\t\t\t// processing display\r\n\t\t\t\t\tif ( _fnDataSource( settings ) !== 'ssp' ) {\r\n\t\t\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t\t\t}\r\n\t\t\t\t}, 0 );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t_fnSortListener( settings, colIdx, e.shiftKey, callback );\r\n\t\t\t}\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Set the sorting classes on table's body, Note: it is safe to call this function\r\n\t * when bSort and bSortClasses are false\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSortingClasses( settings )\r\n\t{\r\n\t\tvar oldSort = settings.aLastSort;\r\n\t\tvar sortClass = settings.oClasses.sSortColumn;\r\n\t\tvar sort = _fnSortFlatten( settings );\r\n\t\tvar features = settings.oFeatures;\r\n\t\tvar i, ien, colIdx;\r\n\t\r\n\t\tif ( features.bSort && features.bSortClasses ) {\r\n\t\t\t// Remove old sorting classes\r\n\t\t\tfor ( i=0, ien=oldSort.length ; i<ien ; i++ ) {\r\n\t\t\t\tcolIdx = oldSort[i].src;\r\n\t\r\n\t\t\t\t// Remove column sorting\r\n\t\t\t\t$( _pluck( settings.aoData, 'anCells', colIdx ) )\r\n\t\t\t\t\t.removeClass( sortClass + (i<2 ? i+1 : 3) );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Add new column sorting\r\n\t\t\tfor ( i=0, ien=sort.length ; i<ien ; i++ ) {\r\n\t\t\t\tcolIdx = sort[i].src;\r\n\t\r\n\t\t\t\t$( _pluck( settings.aoData, 'anCells', colIdx ) )\r\n\t\t\t\t\t.addClass( sortClass + (i<2 ? i+1 : 3) );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tsettings.aLastSort = sort;\r\n\t}\r\n\t\r\n\t\r\n\t// Get the data to sort a column, be it from cache, fresh (populating the\r\n\t// cache), or from a sort formatter\r\n\tfunction _fnSortData( settings, idx )\r\n\t{\r\n\t\t// Custom sorting function - provided by the sort data type\r\n\t\tvar column = settings.aoColumns[ idx ];\r\n\t\tvar customSort = DataTable.ext.order[ column.sSortDataType ];\r\n\t\tvar customData;\r\n\t\r\n\t\tif ( customSort ) {\r\n\t\t\tcustomData = customSort.call( settings.oInstance, settings, idx,\r\n\t\t\t\t_fnColumnIndexToVisible( settings, idx )\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\t// Use / populate cache\r\n\t\tvar row, cellData;\r\n\t\tvar formatter = DataTable.ext.type.order[ column.sType+\"-pre\" ];\r\n\t\r\n\t\tfor ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\r\n\t\t\trow = settings.aoData[i];\r\n\t\r\n\t\t\tif ( ! row._aSortData ) {\r\n\t\t\t\trow._aSortData = [];\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( ! row._aSortData[idx] || customSort ) {\r\n\t\t\t\tcellData = customSort ?\r\n\t\t\t\t\tcustomData[i] : // If there was a custom sort function, use data from there\r\n\t\t\t\t\t_fnGetCellData( settings, i, idx, 'sort' );\r\n\t\r\n\t\t\t\trow._aSortData[ idx ] = formatter ?\r\n\t\t\t\t\tformatter( cellData ) :\r\n\t\t\t\t\tcellData;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Save the state of a table\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSaveState ( settings )\r\n\t{\r\n\t\tif ( !settings.oFeatures.bStateSave || settings.bDestroying )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t/* Store the interesting variables */\r\n\t\tvar state = {\r\n\t\t\ttime:    +new Date(),\r\n\t\t\tstart:   settings._iDisplayStart,\r\n\t\t\tlength:  settings._iDisplayLength,\r\n\t\t\torder:   $.extend( true, [], settings.aaSorting ),\r\n\t\t\tsearch:  _fnSearchToCamel( settings.oPreviousSearch ),\r\n\t\t\tcolumns: $.map( settings.aoColumns, function ( col, i ) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tvisible: col.bVisible,\r\n\t\t\t\t\tsearch: _fnSearchToCamel( settings.aoPreSearchCols[i] )\r\n\t\t\t\t};\r\n\t\t\t} )\r\n\t\t};\r\n\t\r\n\t\t_fnCallbackFire( settings, \"aoStateSaveParams\", 'stateSaveParams', [settings, state] );\r\n\t\r\n\t\tsettings.oSavedState = state;\r\n\t\tsettings.fnStateSaveCallback.call( settings.oInstance, settings, state );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Attempt to load a saved table state\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {object} oInit DataTables init object so we can override settings\r\n\t *  @param {function} callback Callback to execute when the state has been loaded\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnLoadState ( settings, oInit, callback )\r\n\t{\r\n\t\tvar i, ien;\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar loaded = function ( s ) {\r\n\t\t\tif ( ! s || ! s.time ) {\r\n\t\t\t\tcallback();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Allow custom and plug-in manipulation functions to alter the saved data set and\r\n\t\t\t// cancelling of loading by returning false\r\n\t\t\tvar abStateLoad = _fnCallbackFire( settings, 'aoStateLoadParams', 'stateLoadParams', [settings, s] );\r\n\t\t\tif ( $.inArray( false, abStateLoad ) !== -1 ) {\r\n\t\t\t\tcallback();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Reject old data\r\n\t\t\tvar duration = settings.iStateDuration;\r\n\t\t\tif ( duration > 0 && s.time < +new Date() - (duration*1000) ) {\r\n\t\t\t\tcallback();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Number of columns have changed - all bets are off, no restore of settings\r\n\t\t\tif ( s.columns && columns.length !== s.columns.length ) {\r\n\t\t\t\tcallback();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Store the saved state so it might be accessed at any time\r\n\t\t\tsettings.oLoadedState = $.extend( true, {}, s );\r\n\t\r\n\t\t\t// Restore key features - todo - for 1.11 this needs to be done by\r\n\t\t\t// subscribed events\r\n\t\t\tif ( s.start !== undefined ) {\r\n\t\t\t\tsettings._iDisplayStart    = s.start;\r\n\t\t\t\tsettings.iInitDisplayStart = s.start;\r\n\t\t\t}\r\n\t\t\tif ( s.length !== undefined ) {\r\n\t\t\t\tsettings._iDisplayLength   = s.length;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Order\r\n\t\t\tif ( s.order !== undefined ) {\r\n\t\t\t\tsettings.aaSorting = [];\r\n\t\t\t\t$.each( s.order, function ( i, col ) {\r\n\t\t\t\t\tsettings.aaSorting.push( col[0] >= columns.length ?\r\n\t\t\t\t\t\t[ 0, col[1] ] :\r\n\t\t\t\t\t\tcol\r\n\t\t\t\t\t);\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Search\r\n\t\t\tif ( s.search !== undefined ) {\r\n\t\t\t\t$.extend( settings.oPreviousSearch, _fnSearchToHung( s.search ) );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Columns\r\n\t\t\t//\r\n\t\t\tif ( s.columns ) {\r\n\t\t\t\tfor ( i=0, ien=s.columns.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tvar col = s.columns[i];\r\n\t\r\n\t\t\t\t\t// Visibility\r\n\t\t\t\t\tif ( col.visible !== undefined ) {\r\n\t\t\t\t\t\tcolumns[i].bVisible = col.visible;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Search\r\n\t\t\t\t\tif ( col.search !== undefined ) {\r\n\t\t\t\t\t\t$.extend( settings.aoPreSearchCols[i], _fnSearchToHung( col.search ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnCallbackFire( settings, 'aoStateLoaded', 'stateLoaded', [settings, s] );\r\n\t\t\tcallback();\r\n\t\t}\r\n\t\r\n\t\tif ( ! settings.oFeatures.bStateSave ) {\r\n\t\t\tcallback();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar state = settings.fnStateLoadCallback.call( settings.oInstance, settings, loaded );\r\n\t\r\n\t\tif ( state !== undefined ) {\r\n\t\t\tloaded( state );\r\n\t\t}\r\n\t\t// otherwise, wait for the loaded callback to be executed\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Return the settings object for a particular table\r\n\t *  @param {node} table table we are using as a dataTable\r\n\t *  @returns {object} Settings object - or null if not found\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSettingsFromNode ( table )\r\n\t{\r\n\t\tvar settings = DataTable.settings;\r\n\t\tvar idx = $.inArray( table, _pluck( settings, 'nTable' ) );\r\n\t\r\n\t\treturn idx !== -1 ?\r\n\t\t\tsettings[ idx ] :\r\n\t\t\tnull;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Log an error message\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {int} level log error messages, or display them to the user\r\n\t *  @param {string} msg error message\r\n\t *  @param {int} tn Technical note id to get more information about the error.\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnLog( settings, level, msg, tn )\r\n\t{\r\n\t\tmsg = 'DataTables warning: '+\r\n\t\t\t(settings ? 'table id='+settings.sTableId+' - ' : '')+msg;\r\n\t\r\n\t\tif ( tn ) {\r\n\t\t\tmsg += '. For more information about this error, please see '+\r\n\t\t\t'http://datatables.net/tn/'+tn;\r\n\t\t}\r\n\t\r\n\t\tif ( ! level  ) {\r\n\t\t\t// Backwards compatibility pre 1.10\r\n\t\t\tvar ext = DataTable.ext;\r\n\t\t\tvar type = ext.sErrMode || ext.errMode;\r\n\t\r\n\t\t\tif ( settings ) {\r\n\t\t\t\t_fnCallbackFire( settings, null, 'error', [ settings, tn, msg ] );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( type == 'alert' ) {\r\n\t\t\t\talert( msg );\r\n\t\t\t}\r\n\t\t\telse if ( type == 'throw' ) {\r\n\t\t\t\tthrow new Error(msg);\r\n\t\t\t}\r\n\t\t\telse if ( typeof type == 'function' ) {\r\n\t\t\t\ttype( settings, tn, msg );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( window.console && console.log ) {\r\n\t\t\tconsole.log( msg );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * See if a property is defined on one object, if so assign it to the other object\r\n\t *  @param {object} ret target object\r\n\t *  @param {object} src source object\r\n\t *  @param {string} name property\r\n\t *  @param {string} [mappedName] name to map too - optional, name used if not given\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnMap( ret, src, name, mappedName )\r\n\t{\r\n\t\tif ( $.isArray( name ) ) {\r\n\t\t\t$.each( name, function (i, val) {\r\n\t\t\t\tif ( $.isArray( val ) ) {\r\n\t\t\t\t\t_fnMap( ret, src, val[0], val[1] );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t_fnMap( ret, src, val );\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( mappedName === undefined ) {\r\n\t\t\tmappedName = name;\r\n\t\t}\r\n\t\r\n\t\tif ( src[name] !== undefined ) {\r\n\t\t\tret[mappedName] = src[name];\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Extend objects - very similar to jQuery.extend, but deep copy objects, and\r\n\t * shallow copy arrays. The reason we need to do this, is that we don't want to\r\n\t * deep copy array init values (such as aaSorting) since the dev wouldn't be\r\n\t * able to override them, but we do want to deep copy arrays.\r\n\t *  @param {object} out Object to extend\r\n\t *  @param {object} extender Object from which the properties will be applied to\r\n\t *      out\r\n\t *  @param {boolean} breakRefs If true, then arrays will be sliced to take an\r\n\t *      independent copy with the exception of the `data` or `aaData` parameters\r\n\t *      if they are present. This is so you can pass in a collection to\r\n\t *      DataTables and have that used as your data source without breaking the\r\n\t *      references\r\n\t *  @returns {object} out Reference, just for convenience - out === the return.\r\n\t *  @memberof DataTable#oApi\r\n\t *  @todo This doesn't take account of arrays inside the deep copied objects.\r\n\t */\r\n\tfunction _fnExtend( out, extender, breakRefs )\r\n\t{\r\n\t\tvar val;\r\n\t\r\n\t\tfor ( var prop in extender ) {\r\n\t\t\tif ( extender.hasOwnProperty(prop) ) {\r\n\t\t\t\tval = extender[prop];\r\n\t\r\n\t\t\t\tif ( $.isPlainObject( val ) ) {\r\n\t\t\t\t\tif ( ! $.isPlainObject( out[prop] ) ) {\r\n\t\t\t\t\t\tout[prop] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$.extend( true, out[prop], val );\r\n\t\t\t\t}\r\n\t\t\t\telse if ( breakRefs && prop !== 'data' && prop !== 'aaData' && $.isArray(val) ) {\r\n\t\t\t\t\tout[prop] = val.slice();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tout[prop] = val;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Bind an event handers to allow a click or return key to activate the callback.\r\n\t * This is good for accessibility since a return on the keyboard will have the\r\n\t * same effect as a click, if the element has focus.\r\n\t *  @param {element} n Element to bind the action to\r\n\t *  @param {object} oData Data object to pass to the triggered function\r\n\t *  @param {function} fn Callback function for when the event is triggered\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnBindAction( n, oData, fn )\r\n\t{\r\n\t\t$(n)\r\n\t\t\t.on( 'click.DT', oData, function (e) {\r\n\t\t\t\t\tn.blur(); // Remove focus outline for mouse users\r\n\t\t\t\t\tfn(e);\r\n\t\t\t\t} )\r\n\t\t\t.on( 'keypress.DT', oData, function (e){\r\n\t\t\t\t\tif ( e.which === 13 ) {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tfn(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t} )\r\n\t\t\t.on( 'selectstart.DT', function () {\r\n\t\t\t\t\t/* Take the brutal approach to cancelling text selection */\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Register a callback function. Easily allows a callback function to be added to\r\n\t * an array store of callback functions that can then all be called together.\r\n\t *  @param {object} oSettings dataTables settings object\r\n\t *  @param {string} sStore Name of the array storage for the callbacks in oSettings\r\n\t *  @param {function} fn Function to be called back\r\n\t *  @param {string} sName Identifying name for the callback (i.e. a label)\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCallbackReg( oSettings, sStore, fn, sName )\r\n\t{\r\n\t\tif ( fn )\r\n\t\t{\r\n\t\t\toSettings[sStore].push( {\r\n\t\t\t\t\"fn\": fn,\r\n\t\t\t\t\"sName\": sName\r\n\t\t\t} );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Fire callback functions and trigger events. Note that the loop over the\r\n\t * callback array store is done backwards! Further note that you do not want to\r\n\t * fire off triggers in time sensitive applications (for example cell creation)\r\n\t * as its slow.\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @param {string} callbackArr Name of the array storage for the callbacks in\r\n\t *      oSettings\r\n\t *  @param {string} eventName Name of the jQuery custom event to trigger. If\r\n\t *      null no trigger is fired\r\n\t *  @param {array} args Array of arguments to pass to the callback function /\r\n\t *      trigger\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCallbackFire( settings, callbackArr, eventName, args )\r\n\t{\r\n\t\tvar ret = [];\r\n\t\r\n\t\tif ( callbackArr ) {\r\n\t\t\tret = $.map( settings[callbackArr].slice().reverse(), function (val, i) {\r\n\t\t\t\treturn val.fn.apply( settings.oInstance, args );\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\tif ( eventName !== null ) {\r\n\t\t\tvar e = $.Event( eventName+'.dt' );\r\n\t\r\n\t\t\t$(settings.nTable).trigger( e, args );\r\n\t\r\n\t\t\tret.push( e.result );\r\n\t\t}\r\n\t\r\n\t\treturn ret;\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnLengthOverflow ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\tstart = settings._iDisplayStart,\r\n\t\t\tend = settings.fnDisplayEnd(),\r\n\t\t\tlen = settings._iDisplayLength;\r\n\t\r\n\t\t/* If we have space to show extra rows (backing up from the end point - then do so */\r\n\t\tif ( start >= end )\r\n\t\t{\r\n\t\t\tstart = end - len;\r\n\t\t}\r\n\t\r\n\t\t// Keep the start record on the current page\r\n\t\tstart -= (start % len);\r\n\t\r\n\t\tif ( len === -1 || start < 0 )\r\n\t\t{\r\n\t\t\tstart = 0;\r\n\t\t}\r\n\t\r\n\t\tsettings._iDisplayStart = start;\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnRenderer( settings, type )\r\n\t{\r\n\t\tvar renderer = settings.renderer;\r\n\t\tvar host = DataTable.ext.renderer[type];\r\n\t\r\n\t\tif ( $.isPlainObject( renderer ) && renderer[type] ) {\r\n\t\t\t// Specific renderer for this type. If available use it, otherwise use\r\n\t\t\t// the default.\r\n\t\t\treturn host[renderer[type]] || host._;\r\n\t\t}\r\n\t\telse if ( typeof renderer === 'string' ) {\r\n\t\t\t// Common renderer - if there is one available for this type use it,\r\n\t\t\t// otherwise use the default\r\n\t\t\treturn host[renderer] || host._;\r\n\t\t}\r\n\t\r\n\t\t// Use the default\r\n\t\treturn host._;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Detect the data source being used for the table. Used to simplify the code\r\n\t * a little (ajax) and to make it compress a little smaller.\r\n\t *\r\n\t *  @param {object} settings dataTables settings object\r\n\t *  @returns {string} Data source\r\n\t *  @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDataSource ( settings )\r\n\t{\r\n\t\tif ( settings.oFeatures.bServerSide ) {\r\n\t\t\treturn 'ssp';\r\n\t\t}\r\n\t\telse if ( settings.ajax || settings.sAjaxSource ) {\r\n\t\t\treturn 'ajax';\r\n\t\t}\r\n\t\treturn 'dom';\r\n\t}\r\n\t\r\n\r\n\t\r\n\t\r\n\t/**\r\n\t * Computed structure of the DataTables API, defined by the options passed to\r\n\t * `DataTable.Api.register()` when building the API.\r\n\t *\r\n\t * The structure is built in order to speed creation and extension of the Api\r\n\t * objects since the extensions are effectively pre-parsed.\r\n\t *\r\n\t * The array is an array of objects with the following structure, where this\r\n\t * base array represents the Api prototype base:\r\n\t *\r\n\t *     [\r\n\t *       {\r\n\t *         name:      'data'                -- string   - Property name\r\n\t *         val:       function () {},       -- function - Api method (or undefined if just an object\r\n\t *         methodExt: [ ... ],              -- array    - Array of Api object definitions to extend the method result\r\n\t *         propExt:   [ ... ]               -- array    - Array of Api object definitions to extend the property\r\n\t *       },\r\n\t *       {\r\n\t *         name:     'row'\r\n\t *         val:       {},\r\n\t *         methodExt: [ ... ],\r\n\t *         propExt:   [\r\n\t *           {\r\n\t *             name:      'data'\r\n\t *             val:       function () {},\r\n\t *             methodExt: [ ... ],\r\n\t *             propExt:   [ ... ]\r\n\t *           },\r\n\t *           ...\r\n\t *         ]\r\n\t *       }\r\n\t *     ]\r\n\t *\r\n\t * @type {Array}\r\n\t * @ignore\r\n\t */\r\n\tvar __apiStruct = [];\r\n\t\r\n\t\r\n\t/**\r\n\t * `Array.prototype` reference.\r\n\t *\r\n\t * @type object\r\n\t * @ignore\r\n\t */\r\n\tvar __arrayProto = Array.prototype;\r\n\t\r\n\t\r\n\t/**\r\n\t * Abstraction for `context` parameter of the `Api` constructor to allow it to\r\n\t * take several different forms for ease of use.\r\n\t *\r\n\t * Each of the input parameter types will be converted to a DataTables settings\r\n\t * object where possible.\r\n\t *\r\n\t * @param  {string|node|jQuery|object} mixed DataTable identifier. Can be one\r\n\t *   of:\r\n\t *\r\n\t *   * `string` - jQuery selector. Any DataTables' matching the given selector\r\n\t *     with be found and used.\r\n\t *   * `node` - `TABLE` node which has already been formed into a DataTable.\r\n\t *   * `jQuery` - A jQuery object of `TABLE` nodes.\r\n\t *   * `object` - DataTables settings object\r\n\t *   * `DataTables.Api` - API instance\r\n\t * @return {array|null} Matching DataTables settings objects. `null` or\r\n\t *   `undefined` is returned if no matching DataTable is found.\r\n\t * @ignore\r\n\t */\r\n\tvar _toSettings = function ( mixed )\r\n\t{\r\n\t\tvar idx, jq;\r\n\t\tvar settings = DataTable.settings;\r\n\t\tvar tables = $.map( settings, function (el, i) {\r\n\t\t\treturn el.nTable;\r\n\t\t} );\r\n\t\r\n\t\tif ( ! mixed ) {\r\n\t\t\treturn [];\r\n\t\t}\r\n\t\telse if ( mixed.nTable && mixed.oApi ) {\r\n\t\t\t// DataTables settings object\r\n\t\t\treturn [ mixed ];\r\n\t\t}\r\n\t\telse if ( mixed.nodeName && mixed.nodeName.toLowerCase() === 'table' ) {\r\n\t\t\t// Table node\r\n\t\t\tidx = $.inArray( mixed, tables );\r\n\t\t\treturn idx !== -1 ? [ settings[idx] ] : null;\r\n\t\t}\r\n\t\telse if ( mixed && typeof mixed.settings === 'function' ) {\r\n\t\t\treturn mixed.settings().toArray();\r\n\t\t}\r\n\t\telse if ( typeof mixed === 'string' ) {\r\n\t\t\t// jQuery selector\r\n\t\t\tjq = $(mixed);\r\n\t\t}\r\n\t\telse if ( mixed instanceof $ ) {\r\n\t\t\t// jQuery object (also DataTables instance)\r\n\t\t\tjq = mixed;\r\n\t\t}\r\n\t\r\n\t\tif ( jq ) {\r\n\t\t\treturn jq.map( function(i) {\r\n\t\t\t\tidx = $.inArray( this, tables );\r\n\t\t\t\treturn idx !== -1 ? settings[idx] : null;\r\n\t\t\t} ).toArray();\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables API class - used to control and interface with  one or more\r\n\t * DataTables enhanced tables.\r\n\t *\r\n\t * The API class is heavily based on jQuery, presenting a chainable interface\r\n\t * that you can use to interact with tables. Each instance of the API class has\r\n\t * a \"context\" - i.e. the tables that it will operate on. This could be a single\r\n\t * table, all tables on a page or a sub-set thereof.\r\n\t *\r\n\t * Additionally the API is designed to allow you to easily work with the data in\r\n\t * the tables, retrieving and manipulating it as required. This is done by\r\n\t * presenting the API class as an array like interface. The contents of the\r\n\t * array depend upon the actions requested by each method (for example\r\n\t * `rows().nodes()` will return an array of nodes, while `rows().data()` will\r\n\t * return an array of objects or arrays depending upon your table's\r\n\t * configuration). The API object has a number of array like methods (`push`,\r\n\t * `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`,\r\n\t * `unique` etc) to assist your working with the data held in a table.\r\n\t *\r\n\t * Most methods (those which return an Api instance) are chainable, which means\r\n\t * the return from a method call also has all of the methods available that the\r\n\t * top level object had. For example, these two calls are equivalent:\r\n\t *\r\n\t *     // Not chained\r\n\t *     api.row.add( {...} );\r\n\t *     api.draw();\r\n\t *\r\n\t *     // Chained\r\n\t *     api.row.add( {...} ).draw();\r\n\t *\r\n\t * @class DataTable.Api\r\n\t * @param {array|object|string|jQuery} context DataTable identifier. This is\r\n\t *   used to define which DataTables enhanced tables this API will operate on.\r\n\t *   Can be one of:\r\n\t *\r\n\t *   * `string` - jQuery selector. Any DataTables' matching the given selector\r\n\t *     with be found and used.\r\n\t *   * `node` - `TABLE` node which has already been formed into a DataTable.\r\n\t *   * `jQuery` - A jQuery object of `TABLE` nodes.\r\n\t *   * `object` - DataTables settings object\r\n\t * @param {array} [data] Data to initialise the Api instance with.\r\n\t *\r\n\t * @example\r\n\t *   // Direct initialisation during DataTables construction\r\n\t *   var api = $('#example').DataTable();\r\n\t *\r\n\t * @example\r\n\t *   // Initialisation using a DataTables jQuery object\r\n\t *   var api = $('#example').dataTable().api();\r\n\t *\r\n\t * @example\r\n\t *   // Initialisation as a constructor\r\n\t *   var api = new $.fn.DataTable.Api( 'table.dataTable' );\r\n\t */\r\n\t_Api = function ( context, data )\r\n\t{\r\n\t\tif ( ! (this instanceof _Api) ) {\r\n\t\t\treturn new _Api( context, data );\r\n\t\t}\r\n\t\r\n\t\tvar settings = [];\r\n\t\tvar ctxSettings = function ( o ) {\r\n\t\t\tvar a = _toSettings( o );\r\n\t\t\tif ( a ) {\r\n\t\t\t\tsettings = settings.concat( a );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tif ( $.isArray( context ) ) {\r\n\t\t\tfor ( var i=0, ien=context.length ; i<ien ; i++ ) {\r\n\t\t\t\tctxSettings( context[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tctxSettings( context );\r\n\t\t}\r\n\t\r\n\t\t// Remove duplicates\r\n\t\tthis.context = _unique( settings );\r\n\t\r\n\t\t// Initial data\r\n\t\tif ( data ) {\r\n\t\t\t$.merge( this, data );\r\n\t\t}\r\n\t\r\n\t\t// selector\r\n\t\tthis.selector = {\r\n\t\t\trows: null,\r\n\t\t\tcols: null,\r\n\t\t\topts: null\r\n\t\t};\r\n\t\r\n\t\t_Api.extend( this, this, __apiStruct );\r\n\t};\r\n\t\r\n\tDataTable.Api = _Api;\r\n\t\r\n\t// Don't destroy the existing prototype, just extend it. Required for jQuery 2's\r\n\t// isPlainObject.\r\n\t$.extend( _Api.prototype, {\r\n\t\tany: function ()\r\n\t\t{\r\n\t\t\treturn this.count() !== 0;\r\n\t\t},\r\n\t\r\n\t\r\n\t\tconcat:  __arrayProto.concat,\r\n\t\r\n\t\r\n\t\tcontext: [], // array of table settings objects\r\n\t\r\n\t\r\n\t\tcount: function ()\r\n\t\t{\r\n\t\t\treturn this.flatten().length;\r\n\t\t},\r\n\t\r\n\t\r\n\t\teach: function ( fn )\r\n\t\t{\r\n\t\t\tfor ( var i=0, ien=this.length ; i<ien; i++ ) {\r\n\t\t\t\tfn.call( this, this[i], i, this );\r\n\t\t\t}\r\n\t\r\n\t\t\treturn this;\r\n\t\t},\r\n\t\r\n\t\r\n\t\teq: function ( idx )\r\n\t\t{\r\n\t\t\tvar ctx = this.context;\r\n\t\r\n\t\t\treturn ctx.length > idx ?\r\n\t\t\t\tnew _Api( ctx[idx], this[idx] ) :\r\n\t\t\t\tnull;\r\n\t\t},\r\n\t\r\n\t\r\n\t\tfilter: function ( fn )\r\n\t\t{\r\n\t\t\tvar a = [];\r\n\t\r\n\t\t\tif ( __arrayProto.filter ) {\r\n\t\t\t\ta = __arrayProto.filter.call( this, fn, this );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Compatibility for browsers without EMCA-252-5 (JS 1.6)\r\n\t\t\t\tfor ( var i=0, ien=this.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tif ( fn.call( this, this[i], i, this ) ) {\r\n\t\t\t\t\t\ta.push( this[i] );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\treturn new _Api( this.context, a );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tflatten: function ()\r\n\t\t{\r\n\t\t\tvar a = [];\r\n\t\t\treturn new _Api( this.context, a.concat.apply( a, this.toArray() ) );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tjoin:    __arrayProto.join,\r\n\t\r\n\t\r\n\t\tindexOf: __arrayProto.indexOf || function (obj, start)\r\n\t\t{\r\n\t\t\tfor ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) {\r\n\t\t\t\tif ( this[i] === obj ) {\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn -1;\r\n\t\t},\r\n\t\r\n\t\titerator: function ( flatten, type, fn, alwaysNew ) {\r\n\t\t\tvar\r\n\t\t\t\ta = [], ret,\r\n\t\t\t\ti, ien, j, jen,\r\n\t\t\t\tcontext = this.context,\r\n\t\t\t\trows, items, item,\r\n\t\t\t\tselector = this.selector;\r\n\t\r\n\t\t\t// Argument shifting\r\n\t\t\tif ( typeof flatten === 'string' ) {\r\n\t\t\t\talwaysNew = fn;\r\n\t\t\t\tfn = type;\r\n\t\t\t\ttype = flatten;\r\n\t\t\t\tflatten = false;\r\n\t\t\t}\r\n\t\r\n\t\t\tfor ( i=0, ien=context.length ; i<ien ; i++ ) {\r\n\t\t\t\tvar apiInst = new _Api( context[i] );\r\n\t\r\n\t\t\t\tif ( type === 'table' ) {\r\n\t\t\t\t\tret = fn.call( apiInst, context[i], i );\r\n\t\r\n\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\ta.push( ret );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ( type === 'columns' || type === 'rows' ) {\r\n\t\t\t\t\t// this has same length as context - one entry for each table\r\n\t\t\t\t\tret = fn.call( apiInst, context[i], this[i], i );\r\n\t\r\n\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\ta.push( ret );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ( type === 'column' || type === 'column-rows' || type === 'row' || type === 'cell' ) {\r\n\t\t\t\t\t// columns and rows share the same structure.\r\n\t\t\t\t\t// 'this' is an array of column indexes for each context\r\n\t\t\t\t\titems = this[i];\r\n\t\r\n\t\t\t\t\tif ( type === 'column-rows' ) {\r\n\t\t\t\t\t\trows = _selector_row_indexes( context[i], selector.opts );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tfor ( j=0, jen=items.length ; j<jen ; j++ ) {\r\n\t\t\t\t\t\titem = items[j];\r\n\t\r\n\t\t\t\t\t\tif ( type === 'cell' ) {\r\n\t\t\t\t\t\t\tret = fn.call( apiInst, context[i], item.row, item.column, i, j );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tret = fn.call( apiInst, context[i], item, i, j, rows );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\t\ta.push( ret );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( a.length || alwaysNew ) {\r\n\t\t\t\tvar api = new _Api( context, flatten ? a.concat.apply( [], a ) : a );\r\n\t\t\t\tvar apiSelector = api.selector;\r\n\t\t\t\tapiSelector.rows = selector.rows;\r\n\t\t\t\tapiSelector.cols = selector.cols;\r\n\t\t\t\tapiSelector.opts = selector.opts;\r\n\t\t\t\treturn api;\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t},\r\n\t\r\n\t\r\n\t\tlastIndexOf: __arrayProto.lastIndexOf || function (obj, start)\r\n\t\t{\r\n\t\t\t// Bit cheeky...\r\n\t\t\treturn this.indexOf.apply( this.toArray.reverse(), arguments );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tlength:  0,\r\n\t\r\n\t\r\n\t\tmap: function ( fn )\r\n\t\t{\r\n\t\t\tvar a = [];\r\n\t\r\n\t\t\tif ( __arrayProto.map ) {\r\n\t\t\t\ta = __arrayProto.map.call( this, fn, this );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Compatibility for browsers without EMCA-252-5 (JS 1.6)\r\n\t\t\t\tfor ( var i=0, ien=this.length ; i<ien ; i++ ) {\r\n\t\t\t\t\ta.push( fn.call( this, this[i], i ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\treturn new _Api( this.context, a );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tpluck: function ( prop )\r\n\t\t{\r\n\t\t\treturn this.map( function ( el ) {\r\n\t\t\t\treturn el[ prop ];\r\n\t\t\t} );\r\n\t\t},\r\n\t\r\n\t\tpop:     __arrayProto.pop,\r\n\t\r\n\t\r\n\t\tpush:    __arrayProto.push,\r\n\t\r\n\t\r\n\t\t// Does not return an API instance\r\n\t\treduce: __arrayProto.reduce || function ( fn, init )\r\n\t\t{\r\n\t\t\treturn _fnReduce( this, fn, init, 0, this.length, 1 );\r\n\t\t},\r\n\t\r\n\t\r\n\t\treduceRight: __arrayProto.reduceRight || function ( fn, init )\r\n\t\t{\r\n\t\t\treturn _fnReduce( this, fn, init, this.length-1, -1, -1 );\r\n\t\t},\r\n\t\r\n\t\r\n\t\treverse: __arrayProto.reverse,\r\n\t\r\n\t\r\n\t\t// Object with rows, columns and opts\r\n\t\tselector: null,\r\n\t\r\n\t\r\n\t\tshift:   __arrayProto.shift,\r\n\t\r\n\t\r\n\t\tslice: function () {\r\n\t\t\treturn new _Api( this.context, this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tsort:    __arrayProto.sort, // ? name - order?\r\n\t\r\n\t\r\n\t\tsplice:  __arrayProto.splice,\r\n\t\r\n\t\r\n\t\ttoArray: function ()\r\n\t\t{\r\n\t\t\treturn __arrayProto.slice.call( this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tto$: function ()\r\n\t\t{\r\n\t\t\treturn $( this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\ttoJQuery: function ()\r\n\t\t{\r\n\t\t\treturn $( this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tunique: function ()\r\n\t\t{\r\n\t\t\treturn new _Api( this.context, _unique(this) );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tunshift: __arrayProto.unshift\r\n\t} );\r\n\t\r\n\t\r\n\t_Api.extend = function ( scope, obj, ext )\r\n\t{\r\n\t\t// Only extend API instances and static properties of the API\r\n\t\tif ( ! ext.length || ! obj || ( ! (obj instanceof _Api) && ! obj.__dt_wrapper ) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\ti, ien,\r\n\t\t\tj, jen,\r\n\t\t\tstruct, inner,\r\n\t\t\tmethodScoping = function ( scope, fn, struc ) {\r\n\t\t\t\treturn function () {\r\n\t\t\t\t\tvar ret = fn.apply( scope, arguments );\r\n\t\r\n\t\t\t\t\t// Method extension\r\n\t\t\t\t\t_Api.extend( ret, ret, struc.methodExt );\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t};\r\n\t\t\t};\r\n\t\r\n\t\tfor ( i=0, ien=ext.length ; i<ien ; i++ ) {\r\n\t\t\tstruct = ext[i];\r\n\t\r\n\t\t\t// Value\r\n\t\t\tobj[ struct.name ] = typeof struct.val === 'function' ?\r\n\t\t\t\tmethodScoping( scope, struct.val, struct ) :\r\n\t\t\t\t$.isPlainObject( struct.val ) ?\r\n\t\t\t\t\t{} :\r\n\t\t\t\t\tstruct.val;\r\n\t\r\n\t\t\tobj[ struct.name ].__dt_wrapper = true;\r\n\t\r\n\t\t\t// Property extension\r\n\t\t\t_Api.extend( scope, obj[ struct.name ], struct.propExt );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t// @todo - Is there need for an augment function?\r\n\t// _Api.augment = function ( inst, name )\r\n\t// {\r\n\t// \t// Find src object in the structure from the name\r\n\t// \tvar parts = name.split('.');\r\n\t\r\n\t// \t_Api.extend( inst, obj );\r\n\t// };\r\n\t\r\n\t\r\n\t//     [\r\n\t//       {\r\n\t//         name:      'data'                -- string   - Property name\r\n\t//         val:       function () {},       -- function - Api method (or undefined if just an object\r\n\t//         methodExt: [ ... ],              -- array    - Array of Api object definitions to extend the method result\r\n\t//         propExt:   [ ... ]               -- array    - Array of Api object definitions to extend the property\r\n\t//       },\r\n\t//       {\r\n\t//         name:     'row'\r\n\t//         val:       {},\r\n\t//         methodExt: [ ... ],\r\n\t//         propExt:   [\r\n\t//           {\r\n\t//             name:      'data'\r\n\t//             val:       function () {},\r\n\t//             methodExt: [ ... ],\r\n\t//             propExt:   [ ... ]\r\n\t//           },\r\n\t//           ...\r\n\t//         ]\r\n\t//       }\r\n\t//     ]\r\n\t\r\n\t_Api.register = _api_register = function ( name, val )\r\n\t{\r\n\t\tif ( $.isArray( name ) ) {\r\n\t\t\tfor ( var j=0, jen=name.length ; j<jen ; j++ ) {\r\n\t\t\t\t_Api.register( name[j], val );\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\ti, ien,\r\n\t\t\their = name.split('.'),\r\n\t\t\tstruct = __apiStruct,\r\n\t\t\tkey, method;\r\n\t\r\n\t\tvar find = function ( src, name ) {\r\n\t\t\tfor ( var i=0, ien=src.length ; i<ien ; i++ ) {\r\n\t\t\t\tif ( src[i].name === name ) {\r\n\t\t\t\t\treturn src[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t};\r\n\t\r\n\t\tfor ( i=0, ien=heir.length ; i<ien ; i++ ) {\r\n\t\t\tmethod = heir[i].indexOf('()') !== -1;\r\n\t\t\tkey = method ?\r\n\t\t\t\their[i].replace('()', '') :\r\n\t\t\t\their[i];\r\n\t\r\n\t\t\tvar src = find( struct, key );\r\n\t\t\tif ( ! src ) {\r\n\t\t\t\tsrc = {\r\n\t\t\t\t\tname:      key,\r\n\t\t\t\t\tval:       {},\r\n\t\t\t\t\tmethodExt: [],\r\n\t\t\t\t\tpropExt:   []\r\n\t\t\t\t};\r\n\t\t\t\tstruct.push( src );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( i === ien-1 ) {\r\n\t\t\t\tsrc.val = val;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tstruct = method ?\r\n\t\t\t\t\tsrc.methodExt :\r\n\t\t\t\t\tsrc.propExt;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t_Api.registerPlural = _api_registerPlural = function ( pluralName, singularName, val ) {\r\n\t\t_Api.register( pluralName, val );\r\n\t\r\n\t\t_Api.register( singularName, function () {\r\n\t\t\tvar ret = val.apply( this, arguments );\r\n\t\r\n\t\t\tif ( ret === this ) {\r\n\t\t\t\t// Returned item is the API instance that was passed in, return it\r\n\t\t\t\treturn this;\r\n\t\t\t}\r\n\t\t\telse if ( ret instanceof _Api ) {\r\n\t\t\t\t// New API instance returned, want the value from the first item\r\n\t\t\t\t// in the returned array for the singular result.\r\n\t\t\t\treturn ret.length ?\r\n\t\t\t\t\t$.isArray( ret[0] ) ?\r\n\t\t\t\t\t\tnew _Api( ret.context, ret[0] ) : // Array results are 'enhanced'\r\n\t\t\t\t\t\tret[0] :\r\n\t\t\t\t\tundefined;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Non-API return - just fire it back\r\n\t\t\treturn ret;\r\n\t\t} );\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Selector for HTML tables. Apply the given selector to the give array of\r\n\t * DataTables settings objects.\r\n\t *\r\n\t * @param {string|integer} [selector] jQuery selector string or integer\r\n\t * @param  {array} Array of DataTables settings objects to be filtered\r\n\t * @return {array}\r\n\t * @ignore\r\n\t */\r\n\tvar __table_selector = function ( selector, a )\r\n\t{\r\n\t\t// Integer is used to pick out a table by index\r\n\t\tif ( typeof selector === 'number' ) {\r\n\t\t\treturn [ a[ selector ] ];\r\n\t\t}\r\n\t\r\n\t\t// Perform a jQuery selector on the table nodes\r\n\t\tvar nodes = $.map( a, function (el, i) {\r\n\t\t\treturn el.nTable;\r\n\t\t} );\r\n\t\r\n\t\treturn $(nodes)\r\n\t\t\t.filter( selector )\r\n\t\t\t.map( function (i) {\r\n\t\t\t\t// Need to translate back from the table node to the settings\r\n\t\t\t\tvar idx = $.inArray( this, nodes );\r\n\t\t\t\treturn a[ idx ];\r\n\t\t\t} )\r\n\t\t\t.toArray();\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Context selector for the API's context (i.e. the tables the API instance\r\n\t * refers to.\r\n\t *\r\n\t * @name    DataTable.Api#tables\r\n\t * @param {string|integer} [selector] Selector to pick which tables the iterator\r\n\t *   should operate on. If not given, all tables in the current context are\r\n\t *   used. This can be given as a jQuery selector (for example `':gt(0)'`) to\r\n\t *   select multiple tables or as an integer to select a single table.\r\n\t * @returns {DataTable.Api} Returns a new API instance if a selector is given.\r\n\t */\r\n\t_api_register( 'tables()', function ( selector ) {\r\n\t\t// A new instance is created if there was a selector specified\r\n\t\treturn selector ?\r\n\t\t\tnew _Api( __table_selector( selector, this.context ) ) :\r\n\t\t\tthis;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'table()', function ( selector ) {\r\n\t\tvar tables = this.tables( selector );\r\n\t\tvar ctx = tables.context;\r\n\t\r\n\t\t// Truncate to the first matched table\r\n\t\treturn ctx.length ?\r\n\t\t\tnew _Api( ctx[0] ) :\r\n\t\t\ttables;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'tables().nodes()', 'table().node()' , function () {\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\treturn ctx.nTable;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'tables().body()', 'table().body()' , function () {\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\treturn ctx.nTBody;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'tables().header()', 'table().header()' , function () {\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\treturn ctx.nTHead;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'tables().footer()', 'table().footer()' , function () {\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\treturn ctx.nTFoot;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'tables().containers()', 'table().container()' , function () {\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\treturn ctx.nTableWrapper;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Redraw the tables in the current context.\r\n\t */\r\n\t_api_register( 'draw()', function ( paging ) {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tif ( paging === 'page' ) {\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif ( typeof paging === 'string' ) {\r\n\t\t\t\t\tpaging = paging === 'full-hold' ?\r\n\t\t\t\t\t\tfalse :\r\n\t\t\t\t\t\ttrue;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t_fnReDraw( settings, paging===false );\r\n\t\t\t}\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the current page index.\r\n\t *\r\n\t * @return {integer} Current page index (zero based)\r\n\t *//**\r\n\t * Set the current page.\r\n\t *\r\n\t * Note that if you attempt to show a page which does not exist, DataTables will\r\n\t * not throw an error, but rather reset the paging.\r\n\t *\r\n\t * @param {integer|string} action The paging action to take. This can be one of:\r\n\t *  * `integer` - The page index to jump to\r\n\t *  * `string` - An action to take:\r\n\t *    * `first` - Jump to first page.\r\n\t *    * `next` - Jump to the next page\r\n\t *    * `previous` - Jump to previous page\r\n\t *    * `last` - Jump to the last page.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'page()', function ( action ) {\r\n\t\tif ( action === undefined ) {\r\n\t\t\treturn this.page.info().page; // not an expensive call\r\n\t\t}\r\n\t\r\n\t\t// else, have an action to take on all tables\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnPageChange( settings, action );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Paging information for the first table in the current context.\r\n\t *\r\n\t * If you require paging information for another table, use the `table()` method\r\n\t * with a suitable selector.\r\n\t *\r\n\t * @return {object} Object with the following properties set:\r\n\t *  * `page` - Current page index (zero based - i.e. the first page is `0`)\r\n\t *  * `pages` - Total number of pages\r\n\t *  * `start` - Display index for the first record shown on the current page\r\n\t *  * `end` - Display index for the last record shown on the current page\r\n\t *  * `length` - Display length (number of records). Note that generally `start\r\n\t *    + length = end`, but this is not always true, for example if there are\r\n\t *    only 2 records to show on the final page, with a length of 10.\r\n\t *  * `recordsTotal` - Full data set length\r\n\t *  * `recordsDisplay` - Data set length once the current filtering criterion\r\n\t *    are applied.\r\n\t */\r\n\t_api_register( 'page.info()', function ( action ) {\r\n\t\tif ( this.context.length === 0 ) {\r\n\t\t\treturn undefined;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\tsettings   = this.context[0],\r\n\t\t\tstart      = settings._iDisplayStart,\r\n\t\t\tlen        = settings.oFeatures.bPaginate ? settings._iDisplayLength : -1,\r\n\t\t\tvisRecords = settings.fnRecordsDisplay(),\r\n\t\t\tall        = len === -1;\r\n\t\r\n\t\treturn {\r\n\t\t\t\"page\":           all ? 0 : Math.floor( start / len ),\r\n\t\t\t\"pages\":          all ? 1 : Math.ceil( visRecords / len ),\r\n\t\t\t\"start\":          start,\r\n\t\t\t\"end\":            settings.fnDisplayEnd(),\r\n\t\t\t\"length\":         len,\r\n\t\t\t\"recordsTotal\":   settings.fnRecordsTotal(),\r\n\t\t\t\"recordsDisplay\": visRecords,\r\n\t\t\t\"serverSide\":     _fnDataSource( settings ) === 'ssp'\r\n\t\t};\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the current page length.\r\n\t *\r\n\t * @return {integer} Current page length. Note `-1` indicates that all records\r\n\t *   are to be shown.\r\n\t *//**\r\n\t * Set the current page length.\r\n\t *\r\n\t * @param {integer} Page length to set. Use `-1` to show all records.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'page.len()', function ( len ) {\r\n\t\t// Note that we can't call this function 'length()' because `length`\r\n\t\t// is a Javascript property of functions which defines how many arguments\r\n\t\t// the function expects.\r\n\t\tif ( len === undefined ) {\r\n\t\t\treturn this.context.length !== 0 ?\r\n\t\t\t\tthis.context[0]._iDisplayLength :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// else, set the page length\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnLengthChange( settings, len );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\tvar __reload = function ( settings, holdPosition, callback ) {\r\n\t\t// Use the draw event to trigger a callback\r\n\t\tif ( callback ) {\r\n\t\t\tvar api = new _Api( settings );\r\n\t\r\n\t\t\tapi.one( 'draw', function () {\r\n\t\t\t\tcallback( api.ajax.json() );\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\tif ( _fnDataSource( settings ) == 'ssp' ) {\r\n\t\t\t_fnReDraw( settings, holdPosition );\r\n\t\t}\r\n\t\telse {\r\n\t\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t\t// Cancel an existing request\r\n\t\t\tvar xhr = settings.jqXHR;\r\n\t\t\tif ( xhr && xhr.readyState !== 4 ) {\r\n\t\t\t\txhr.abort();\r\n\t\t\t}\r\n\t\r\n\t\t\t// Trigger xhr\r\n\t\t\t_fnBuildAjax( settings, [], function( json ) {\r\n\t\t\t\t_fnClearTable( settings );\r\n\t\r\n\t\t\t\tvar data = _fnAjaxDataSrc( settings, json );\r\n\t\t\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t\t\t_fnAddData( settings, data[i] );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t_fnReDraw( settings, holdPosition );\r\n\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t} );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the JSON response from the last Ajax request that DataTables made to the\r\n\t * server. Note that this returns the JSON from the first table in the current\r\n\t * context.\r\n\t *\r\n\t * @return {object} JSON received from the server.\r\n\t */\r\n\t_api_register( 'ajax.json()', function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( ctx.length > 0 ) {\r\n\t\t\treturn ctx[0].json;\r\n\t\t}\r\n\t\r\n\t\t// else return undefined;\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the data submitted in the last Ajax request\r\n\t */\r\n\t_api_register( 'ajax.params()', function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( ctx.length > 0 ) {\r\n\t\t\treturn ctx[0].oAjaxData;\r\n\t\t}\r\n\t\r\n\t\t// else return undefined;\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Reload tables from the Ajax data source. Note that this function will\r\n\t * automatically re-draw the table when the remote data has been loaded.\r\n\t *\r\n\t * @param {boolean} [reset=true] Reset (default) or hold the current paging\r\n\t *   position. A full re-sort and re-filter is performed when this method is\r\n\t *   called, which is why the pagination reset is the default action.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'ajax.reload()', function ( callback, resetPaging ) {\r\n\t\treturn this.iterator( 'table', function (settings) {\r\n\t\t\t__reload( settings, resetPaging===false, callback );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the current Ajax URL. Note that this returns the URL from the first\r\n\t * table in the current context.\r\n\t *\r\n\t * @return {string} Current Ajax source URL\r\n\t *//**\r\n\t * Set the Ajax URL. Note that this will set the URL for all tables in the\r\n\t * current context.\r\n\t *\r\n\t * @param {string} url URL to set.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'ajax.url()', function ( url ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( url === undefined ) {\r\n\t\t\t// get\r\n\t\t\tif ( ctx.length === 0 ) {\r\n\t\t\t\treturn undefined;\r\n\t\t\t}\r\n\t\t\tctx = ctx[0];\r\n\t\r\n\t\t\treturn ctx.ajax ?\r\n\t\t\t\t$.isPlainObject( ctx.ajax ) ?\r\n\t\t\t\t\tctx.ajax.url :\r\n\t\t\t\t\tctx.ajax :\r\n\t\t\t\tctx.sAjaxSource;\r\n\t\t}\r\n\t\r\n\t\t// set\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tif ( $.isPlainObject( settings.ajax ) ) {\r\n\t\t\t\tsettings.ajax.url = url;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsettings.ajax = url;\r\n\t\t\t}\r\n\t\t\t// No need to consider sAjaxSource here since DataTables gives priority\r\n\t\t\t// to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any\r\n\t\t\t// value of `sAjaxSource` redundant.\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Load data from the newly set Ajax URL. Note that this method is only\r\n\t * available when `ajax.url()` is used to set a URL. Additionally, this method\r\n\t * has the same effect as calling `ajax.reload()` but is provided for\r\n\t * convenience when setting a new URL. Like `ajax.reload()` it will\r\n\t * automatically redraw the table once the remote data has been loaded.\r\n\t *\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'ajax.url().load()', function ( callback, resetPaging ) {\r\n\t\t// Same as a reload, but makes sense to present it for easy access after a\r\n\t\t// url change\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\t__reload( ctx, resetPaging===false, callback );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t\r\n\tvar _selector_run = function ( type, selector, selectFn, settings, opts )\r\n\t{\r\n\t\tvar\r\n\t\t\tout = [], res,\r\n\t\t\ta, i, ien, j, jen,\r\n\t\t\tselectorType = typeof selector;\r\n\t\r\n\t\t// Can't just check for isArray here, as an API or jQuery instance might be\r\n\t\t// given with their array like look\r\n\t\tif ( ! selector || selectorType === 'string' || selectorType === 'function' || selector.length === undefined ) {\r\n\t\t\tselector = [ selector ];\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, ien=selector.length ; i<ien ; i++ ) {\r\n\t\t\t// Only split on simple strings - complex expressions will be jQuery selectors\r\n\t\t\ta = selector[i] && selector[i].split && ! selector[i].match(/[\\[\\(:]/) ?\r\n\t\t\t\tselector[i].split(',') :\r\n\t\t\t\t[ selector[i] ];\r\n\t\r\n\t\t\tfor ( j=0, jen=a.length ; j<jen ; j++ ) {\r\n\t\t\t\tres = selectFn( typeof a[j] === 'string' ? $.trim(a[j]) : a[j] );\r\n\t\r\n\t\t\t\tif ( res && res.length ) {\r\n\t\t\t\t\tout = out.concat( res );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// selector extensions\r\n\t\tvar ext = _ext.selector[ type ];\r\n\t\tif ( ext.length ) {\r\n\t\t\tfor ( i=0, ien=ext.length ; i<ien ; i++ ) {\r\n\t\t\t\tout = ext[i]( settings, opts, out );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn _unique( out );\r\n\t};\r\n\t\r\n\t\r\n\tvar _selector_opts = function ( opts )\r\n\t{\r\n\t\tif ( ! opts ) {\r\n\t\t\topts = {};\r\n\t\t}\r\n\t\r\n\t\t// Backwards compatibility for 1.9- which used the terminology filter rather\r\n\t\t// than search\r\n\t\tif ( opts.filter && opts.search === undefined ) {\r\n\t\t\topts.search = opts.filter;\r\n\t\t}\r\n\t\r\n\t\treturn $.extend( {\r\n\t\t\tsearch: 'none',\r\n\t\t\torder: 'current',\r\n\t\t\tpage: 'all'\r\n\t\t}, opts );\r\n\t};\r\n\t\r\n\t\r\n\tvar _selector_first = function ( inst )\r\n\t{\r\n\t\t// Reduce the API instance to the first item found\r\n\t\tfor ( var i=0, ien=inst.length ; i<ien ; i++ ) {\r\n\t\t\tif ( inst[i].length > 0 ) {\r\n\t\t\t\t// Assign the first element to the first item in the instance\r\n\t\t\t\t// and truncate the instance and context\r\n\t\t\t\tinst[0] = inst[i];\r\n\t\t\t\tinst[0].length = 1;\r\n\t\t\t\tinst.length = 1;\r\n\t\t\t\tinst.context = [ inst.context[i] ];\r\n\t\r\n\t\t\t\treturn inst;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// Not found - return an empty instance\r\n\t\tinst.length = 0;\r\n\t\treturn inst;\r\n\t};\r\n\t\r\n\t\r\n\tvar _selector_row_indexes = function ( settings, opts )\r\n\t{\r\n\t\tvar\r\n\t\t\ti, ien, tmp, a=[],\r\n\t\t\tdisplayFiltered = settings.aiDisplay,\r\n\t\t\tdisplayMaster = settings.aiDisplayMaster;\r\n\t\r\n\t\tvar\r\n\t\t\tsearch = opts.search,  // none, applied, removed\r\n\t\t\torder  = opts.order,   // applied, current, index (original - compatibility with 1.9)\r\n\t\t\tpage   = opts.page;    // all, current\r\n\t\r\n\t\tif ( _fnDataSource( settings ) == 'ssp' ) {\r\n\t\t\t// In server-side processing mode, most options are irrelevant since\r\n\t\t\t// rows not shown don't exist and the index order is the applied order\r\n\t\t\t// Removed is a special case - for consistency just return an empty\r\n\t\t\t// array\r\n\t\t\treturn search === 'removed' ?\r\n\t\t\t\t[] :\r\n\t\t\t\t_range( 0, displayMaster.length );\r\n\t\t}\r\n\t\telse if ( page == 'current' ) {\r\n\t\t\t// Current page implies that order=current and fitler=applied, since it is\r\n\t\t\t// fairly senseless otherwise, regardless of what order and search actually\r\n\t\t\t// are\r\n\t\t\tfor ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i<ien ; i++ ) {\r\n\t\t\t\ta.push( displayFiltered[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( order == 'current' || order == 'applied' ) {\r\n\t\t\ta = search == 'none' ?\r\n\t\t\t\tdisplayMaster.slice() :                      // no search\r\n\t\t\t\tsearch == 'applied' ?\r\n\t\t\t\t\tdisplayFiltered.slice() :                // applied search\r\n\t\t\t\t\t$.map( displayMaster, function (el, i) { // removed search\r\n\t\t\t\t\t\treturn $.inArray( el, displayFiltered ) === -1 ? el : null;\r\n\t\t\t\t\t} );\r\n\t\t}\r\n\t\telse if ( order == 'index' || order == 'original' ) {\r\n\t\t\tfor ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\r\n\t\t\t\tif ( search == 'none' ) {\r\n\t\t\t\t\ta.push( i );\r\n\t\t\t\t}\r\n\t\t\t\telse { // applied | removed\r\n\t\t\t\t\ttmp = $.inArray( i, displayFiltered );\r\n\t\r\n\t\t\t\t\tif ((tmp === -1 && search == 'removed') ||\r\n\t\t\t\t\t\t(tmp >= 0   && search == 'applied') )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ta.push( i );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn a;\r\n\t};\r\n\t\r\n\t\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Rows\r\n\t *\r\n\t * {}          - no selector - use all available rows\r\n\t * {integer}   - row aoData index\r\n\t * {node}      - TR node\r\n\t * {string}    - jQuery selector to apply to the TR elements\r\n\t * {array}     - jQuery array of nodes, or simply an array of TR nodes\r\n\t *\r\n\t */\r\n\t\r\n\t\r\n\tvar __row_selector = function ( settings, selector, opts )\r\n\t{\r\n\t\tvar rows;\r\n\t\tvar run = function ( sel ) {\r\n\t\t\tvar selInt = _intVal( sel );\r\n\t\t\tvar i, ien;\r\n\t\r\n\t\t\t// Short cut - selector is a number and no options provided (default is\r\n\t\t\t// all records, so no need to check if the index is in there, since it\r\n\t\t\t// must be - dev error if the index doesn't exist).\r\n\t\t\tif ( selInt !== null && ! opts ) {\r\n\t\t\t\treturn [ selInt ];\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( ! rows ) {\r\n\t\t\t\trows = _selector_row_indexes( settings, opts );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( selInt !== null && $.inArray( selInt, rows ) !== -1 ) {\r\n\t\t\t\t// Selector - integer\r\n\t\t\t\treturn [ selInt ];\r\n\t\t\t}\r\n\t\t\telse if ( sel === null || sel === undefined || sel === '' ) {\r\n\t\t\t\t// Selector - none\r\n\t\t\t\treturn rows;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - function\r\n\t\t\tif ( typeof sel === 'function' ) {\r\n\t\t\t\treturn $.map( rows, function (idx) {\r\n\t\t\t\t\tvar row = settings.aoData[ idx ];\r\n\t\t\t\t\treturn sel( idx, row._aData, row.nTr ) ? idx : null;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Get nodes in the order from the `rows` array with null values removed\r\n\t\t\tvar nodes = _removeEmpty(\r\n\t\t\t\t_pluck_order( settings.aoData, rows, 'nTr' )\r\n\t\t\t);\r\n\t\r\n\t\t\t// Selector - node\r\n\t\t\tif ( sel.nodeName ) {\r\n\t\t\t\tif ( sel._DT_RowIndex !== undefined ) {\r\n\t\t\t\t\treturn [ sel._DT_RowIndex ]; // Property added by DT for fast lookup\r\n\t\t\t\t}\r\n\t\t\t\telse if ( sel._DT_CellIndex ) {\r\n\t\t\t\t\treturn [ sel._DT_CellIndex.row ];\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tvar host = $(sel).closest('*[data-dt-row]');\r\n\t\t\t\t\treturn host.length ?\r\n\t\t\t\t\t\t[ host.data('dt-row') ] :\r\n\t\t\t\t\t\t[];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// ID selector. Want to always be able to select rows by id, regardless\r\n\t\t\t// of if the tr element has been created or not, so can't rely upon\r\n\t\t\t// jQuery here - hence a custom implementation. This does not match\r\n\t\t\t// Sizzle's fast selector or HTML4 - in HTML5 the ID can be anything,\r\n\t\t\t// but to select it using a CSS selector engine (like Sizzle or\r\n\t\t\t// querySelect) it would need to need to be escaped for some characters.\r\n\t\t\t// DataTables simplifies this for row selectors since you can select\r\n\t\t\t// only a row. A # indicates an id any anything that follows is the id -\r\n\t\t\t// unescaped.\r\n\t\t\tif ( typeof sel === 'string' && sel.charAt(0) === '#' ) {\r\n\t\t\t\t// get row index from id\r\n\t\t\t\tvar rowObj = settings.aIds[ sel.replace( /^#/, '' ) ];\r\n\t\t\t\tif ( rowObj !== undefined ) {\r\n\t\t\t\t\treturn [ rowObj.idx ];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// need to fall through to jQuery in case there is DOM id that\r\n\t\t\t\t// matches\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - jQuery selector string, array of nodes or jQuery object/\r\n\t\t\t// As jQuery's .filter() allows jQuery objects to be passed in filter,\r\n\t\t\t// it also allows arrays, so this will cope with all three options\r\n\t\t\treturn $(nodes)\r\n\t\t\t\t.filter( sel )\r\n\t\t\t\t.map( function () {\r\n\t\t\t\t\treturn this._DT_RowIndex;\r\n\t\t\t\t} )\r\n\t\t\t\t.toArray();\r\n\t\t};\r\n\t\r\n\t\treturn _selector_run( 'row', selector, run, settings, opts );\r\n\t};\r\n\t\r\n\t\r\n\t_api_register( 'rows()', function ( selector, opts ) {\r\n\t\t// argument shifting\r\n\t\tif ( selector === undefined ) {\r\n\t\t\tselector = '';\r\n\t\t}\r\n\t\telse if ( $.isPlainObject( selector ) ) {\r\n\t\t\topts = selector;\r\n\t\t\tselector = '';\r\n\t\t}\r\n\t\r\n\t\topts = _selector_opts( opts );\r\n\t\r\n\t\tvar inst = this.iterator( 'table', function ( settings ) {\r\n\t\t\treturn __row_selector( settings, selector, opts );\r\n\t\t}, 1 );\r\n\t\r\n\t\t// Want argument shifting here and in __row_selector?\r\n\t\tinst.selector.rows = selector;\r\n\t\tinst.selector.opts = opts;\r\n\t\r\n\t\treturn inst;\r\n\t} );\r\n\t\r\n\t_api_register( 'rows().nodes()', function () {\r\n\t\treturn this.iterator( 'row', function ( settings, row ) {\r\n\t\t\treturn settings.aoData[ row ].nTr || undefined;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_register( 'rows().data()', function () {\r\n\t\treturn this.iterator( true, 'rows', function ( settings, rows ) {\r\n\t\t\treturn _pluck_order( settings.aoData, rows, '_aData' );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) {\r\n\t\treturn this.iterator( 'row', function ( settings, row ) {\r\n\t\t\tvar r = settings.aoData[ row ];\r\n\t\t\treturn type === 'search' ? r._aFilterData : r._aSortData;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'rows().invalidate()', 'row().invalidate()', function ( src ) {\r\n\t\treturn this.iterator( 'row', function ( settings, row ) {\r\n\t\t\t_fnInvalidate( settings, row, src );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'rows().indexes()', 'row().index()', function () {\r\n\t\treturn this.iterator( 'row', function ( settings, row ) {\r\n\t\t\treturn row;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'rows().ids()', 'row().id()', function ( hash ) {\r\n\t\tvar a = [];\r\n\t\tvar context = this.context;\r\n\t\r\n\t\t// `iterator` will drop undefined values, but in this case we want them\r\n\t\tfor ( var i=0, ien=context.length ; i<ien ; i++ ) {\r\n\t\t\tfor ( var j=0, jen=this[i].length ; j<jen ; j++ ) {\r\n\t\t\t\tvar id = context[i].rowIdFn( context[i].aoData[ this[i][j] ]._aData );\r\n\t\t\t\ta.push( (hash === true ? '#' : '' )+ id );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn new _Api( context, a );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'rows().remove()', 'row().remove()', function () {\r\n\t\tvar that = this;\r\n\t\r\n\t\tthis.iterator( 'row', function ( settings, row, thatIdx ) {\r\n\t\t\tvar data = settings.aoData;\r\n\t\t\tvar rowData = data[ row ];\r\n\t\t\tvar i, ien, j, jen;\r\n\t\t\tvar loopRow, loopCells;\r\n\t\r\n\t\t\tdata.splice( row, 1 );\r\n\t\r\n\t\t\t// Update the cached indexes\r\n\t\t\tfor ( i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t\tloopRow = data[i];\r\n\t\t\t\tloopCells = loopRow.anCells;\r\n\t\r\n\t\t\t\t// Rows\r\n\t\t\t\tif ( loopRow.nTr !== null ) {\r\n\t\t\t\t\tloopRow.nTr._DT_RowIndex = i;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Cells\r\n\t\t\t\tif ( loopCells !== null ) {\r\n\t\t\t\t\tfor ( j=0, jen=loopCells.length ; j<jen ; j++ ) {\r\n\t\t\t\t\t\tloopCells[j]._DT_CellIndex.row = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Delete from the display arrays\r\n\t\t\t_fnDeleteIndex( settings.aiDisplayMaster, row );\r\n\t\t\t_fnDeleteIndex( settings.aiDisplay, row );\r\n\t\t\t_fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes\r\n\t\r\n\t\t\t// Check for an 'overflow' they case for displaying the table\r\n\t\t\t_fnLengthOverflow( settings );\r\n\t\r\n\t\t\t// Remove the row's ID reference if there is one\r\n\t\t\tvar id = settings.rowIdFn( rowData._aData );\r\n\t\t\tif ( id !== undefined ) {\r\n\t\t\t\tdelete settings.aIds[ id ];\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\tthis.iterator( 'table', function ( settings ) {\r\n\t\t\tfor ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\r\n\t\t\t\tsettings.aoData[i].idx = i;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'rows.add()', function ( rows ) {\r\n\t\tvar newRows = this.iterator( 'table', function ( settings ) {\r\n\t\t\t\tvar row, i, ien;\r\n\t\t\t\tvar out = [];\r\n\t\r\n\t\t\t\tfor ( i=0, ien=rows.length ; i<ien ; i++ ) {\r\n\t\t\t\t\trow = rows[i];\r\n\t\r\n\t\t\t\t\tif ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {\r\n\t\t\t\t\t\tout.push( _fnAddTr( settings, row )[0] );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tout.push( _fnAddData( settings, row ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn out;\r\n\t\t\t}, 1 );\r\n\t\r\n\t\t// Return an Api.rows() extended instance, so rows().nodes() etc can be used\r\n\t\tvar modRows = this.rows( -1 );\r\n\t\tmodRows.pop();\r\n\t\t$.merge( modRows, newRows );\r\n\t\r\n\t\treturn modRows;\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t *\r\n\t */\r\n\t_api_register( 'row()', function ( selector, opts ) {\r\n\t\treturn _selector_first( this.rows( selector, opts ) );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'row().data()', function ( data ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( data === undefined ) {\r\n\t\t\t// Get\r\n\t\t\treturn ctx.length && this.length ?\r\n\t\t\t\tctx[0].aoData[ this[0] ]._aData :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// Set\r\n\t\tctx[0].aoData[ this[0] ]._aData = data;\r\n\t\r\n\t\t// Automatically invalidate\r\n\t\t_fnInvalidate( ctx[0], this[0], 'data' );\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'row().node()', function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\treturn ctx.length && this.length ?\r\n\t\t\tctx[0].aoData[ this[0] ].nTr || null :\r\n\t\t\tnull;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'row.add()', function ( row ) {\r\n\t\t// Allow a jQuery object to be passed in - only a single row is added from\r\n\t\t// it though - the first element in the set\r\n\t\tif ( row instanceof $ && row.length ) {\r\n\t\t\trow = row[0];\r\n\t\t}\r\n\t\r\n\t\tvar rows = this.iterator( 'table', function ( settings ) {\r\n\t\t\tif ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {\r\n\t\t\t\treturn _fnAddTr( settings, row )[0];\r\n\t\t\t}\r\n\t\t\treturn _fnAddData( settings, row );\r\n\t\t} );\r\n\t\r\n\t\t// Return an Api.rows() extended instance, with the newly added row selected\r\n\t\treturn this.row( rows[0] );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\tvar __details_add = function ( ctx, row, data, klass )\r\n\t{\r\n\t\t// Convert to array of TR elements\r\n\t\tvar rows = [];\r\n\t\tvar addRow = function ( r, k ) {\r\n\t\t\t// Recursion to allow for arrays of jQuery objects\r\n\t\t\tif ( $.isArray( r ) || r instanceof $ ) {\r\n\t\t\t\tfor ( var i=0, ien=r.length ; i<ien ; i++ ) {\r\n\t\t\t\t\taddRow( r[i], k );\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// If we get a TR element, then just add it directly - up to the dev\r\n\t\t\t// to add the correct number of columns etc\r\n\t\t\tif ( r.nodeName && r.nodeName.toLowerCase() === 'tr' ) {\r\n\t\t\t\trows.push( r );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Otherwise create a row with a wrapper\r\n\t\t\t\tvar created = $('<tr><td/></tr>').addClass( k );\r\n\t\t\t\t$('td', created)\r\n\t\t\t\t\t.addClass( k )\r\n\t\t\t\t\t.html( r )\r\n\t\t\t\t\t[0].colSpan = _fnVisbleColumns( ctx );\r\n\t\r\n\t\t\t\trows.push( created[0] );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\taddRow( data, klass );\r\n\t\r\n\t\tif ( row._details ) {\r\n\t\t\trow._details.detach();\r\n\t\t}\r\n\t\r\n\t\trow._details = $(rows);\r\n\t\r\n\t\t// If the children were already shown, that state should be retained\r\n\t\tif ( row._detailsShow ) {\r\n\t\t\trow._details.insertAfter( row.nTr );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\tvar __details_remove = function ( api, idx )\r\n\t{\r\n\t\tvar ctx = api.context;\r\n\t\r\n\t\tif ( ctx.length ) {\r\n\t\t\tvar row = ctx[0].aoData[ idx !== undefined ? idx : api[0] ];\r\n\t\r\n\t\t\tif ( row && row._details ) {\r\n\t\t\t\trow._details.remove();\r\n\t\r\n\t\t\t\trow._detailsShow = undefined;\r\n\t\t\t\trow._details = undefined;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\tvar __details_display = function ( api, show ) {\r\n\t\tvar ctx = api.context;\r\n\t\r\n\t\tif ( ctx.length && api.length ) {\r\n\t\t\tvar row = ctx[0].aoData[ api[0] ];\r\n\t\r\n\t\t\tif ( row._details ) {\r\n\t\t\t\trow._detailsShow = show;\r\n\t\r\n\t\t\t\tif ( show ) {\r\n\t\t\t\t\trow._details.insertAfter( row.nTr );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\trow._details.detach();\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t__details_events( ctx[0] );\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\tvar __details_events = function ( settings )\r\n\t{\r\n\t\tvar api = new _Api( settings );\r\n\t\tvar namespace = '.dt.DT_details';\r\n\t\tvar drawEvent = 'draw'+namespace;\r\n\t\tvar colvisEvent = 'column-visibility'+namespace;\r\n\t\tvar destroyEvent = 'destroy'+namespace;\r\n\t\tvar data = settings.aoData;\r\n\t\r\n\t\tapi.off( drawEvent +' '+ colvisEvent +' '+ destroyEvent );\r\n\t\r\n\t\tif ( _pluck( data, '_details' ).length > 0 ) {\r\n\t\t\t// On each draw, insert the required elements into the document\r\n\t\t\tapi.on( drawEvent, function ( e, ctx ) {\r\n\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tapi.rows( {page:'current'} ).eq(0).each( function (idx) {\r\n\t\t\t\t\t// Internal data grab\r\n\t\t\t\t\tvar row = data[ idx ];\r\n\t\r\n\t\t\t\t\tif ( row._detailsShow ) {\r\n\t\t\t\t\t\trow._details.insertAfter( row.nTr );\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t} );\r\n\t\r\n\t\t\t// Column visibility change - update the colspan\r\n\t\t\tapi.on( colvisEvent, function ( e, ctx, idx, vis ) {\r\n\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Update the colspan for the details rows (note, only if it already has\r\n\t\t\t\t// a colspan)\r\n\t\t\t\tvar row, visible = _fnVisbleColumns( ctx );\r\n\t\r\n\t\t\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t\t\trow = data[i];\r\n\t\r\n\t\t\t\t\tif ( row._details ) {\r\n\t\t\t\t\t\trow._details.children('td[colspan]').attr('colspan', visible );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\t// Table destroyed - nuke any child rows\r\n\t\t\tapi.on( destroyEvent, function ( e, ctx ) {\r\n\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tif ( data[i]._details ) {\r\n\t\t\t\t\t\t__details_remove( api, i );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t}\r\n\t};\r\n\t\r\n\t// Strings for the method names to help minification\r\n\tvar _emp = '';\r\n\tvar _child_obj = _emp+'row().child';\r\n\tvar _child_mth = _child_obj+'()';\r\n\t\r\n\t// data can be:\r\n\t//  tr\r\n\t//  string\r\n\t//  jQuery or array of any of the above\r\n\t_api_register( _child_mth, function ( data, klass ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( data === undefined ) {\r\n\t\t\t// get\r\n\t\t\treturn ctx.length && this.length ?\r\n\t\t\t\tctx[0].aoData[ this[0] ]._details :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\telse if ( data === true ) {\r\n\t\t\t// show\r\n\t\t\tthis.child.show();\r\n\t\t}\r\n\t\telse if ( data === false ) {\r\n\t\t\t// remove\r\n\t\t\t__details_remove( this );\r\n\t\t}\r\n\t\telse if ( ctx.length && this.length ) {\r\n\t\t\t// set\r\n\t\t\t__details_add( ctx[0], ctx[0].aoData[ this[0] ], data, klass );\r\n\t\t}\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( [\r\n\t\t_child_obj+'.show()',\r\n\t\t_child_mth+'.show()' // only when `child()` was called with parameters (without\r\n\t], function ( show ) {   // it returns an object and this method is not executed)\r\n\t\t__details_display( this, true );\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( [\r\n\t\t_child_obj+'.hide()',\r\n\t\t_child_mth+'.hide()' // only when `child()` was called with parameters (without\r\n\t], function () {         // it returns an object and this method is not executed)\r\n\t\t__details_display( this, false );\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( [\r\n\t\t_child_obj+'.remove()',\r\n\t\t_child_mth+'.remove()' // only when `child()` was called with parameters (without\r\n\t], function () {           // it returns an object and this method is not executed)\r\n\t\t__details_remove( this );\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( _child_obj+'.isShown()', function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( ctx.length && this.length ) {\r\n\t\t\t// _detailsShown as false or undefined will fall through to return false\r\n\t\t\treturn ctx[0].aoData[ this[0] ]._detailsShow || false;\r\n\t\t}\r\n\t\treturn false;\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Columns\r\n\t *\r\n\t * {integer}           - column index (>=0 count from left, <0 count from right)\r\n\t * \"{integer}:visIdx\"  - visible column index (i.e. translate to column index)  (>=0 count from left, <0 count from right)\r\n\t * \"{integer}:visible\" - alias for {integer}:visIdx  (>=0 count from left, <0 count from right)\r\n\t * \"{string}:name\"     - column name\r\n\t * \"{string}\"          - jQuery selector on column header nodes\r\n\t *\r\n\t */\r\n\t\r\n\t// can be an array of these items, comma separated list, or an array of comma\r\n\t// separated lists\r\n\t\r\n\tvar __re_column_selector = /^([^:]+):(name|visIdx|visible)$/;\r\n\t\r\n\t\r\n\t// r1 and r2 are redundant - but it means that the parameters match for the\r\n\t// iterator callback in columns().data()\r\n\tvar __columnData = function ( settings, column, r1, r2, rows ) {\r\n\t\tvar a = [];\r\n\t\tfor ( var row=0, ien=rows.length ; row<ien ; row++ ) {\r\n\t\t\ta.push( _fnGetCellData( settings, rows[row], column ) );\r\n\t\t}\r\n\t\treturn a;\r\n\t};\r\n\t\r\n\t\r\n\tvar __column_selector = function ( settings, selector, opts )\r\n\t{\r\n\t\tvar\r\n\t\t\tcolumns = settings.aoColumns,\r\n\t\t\tnames = _pluck( columns, 'sName' ),\r\n\t\t\tnodes = _pluck( columns, 'nTh' );\r\n\t\r\n\t\tvar run = function ( s ) {\r\n\t\t\tvar selInt = _intVal( s );\r\n\t\r\n\t\t\t// Selector - all\r\n\t\t\tif ( s === '' ) {\r\n\t\t\t\treturn _range( columns.length );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - index\r\n\t\t\tif ( selInt !== null ) {\r\n\t\t\t\treturn [ selInt >= 0 ?\r\n\t\t\t\t\tselInt : // Count from left\r\n\t\t\t\t\tcolumns.length + selInt // Count from right (+ because its a negative value)\r\n\t\t\t\t];\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector = function\r\n\t\t\tif ( typeof s === 'function' ) {\r\n\t\t\t\tvar rows = _selector_row_indexes( settings, opts );\r\n\t\r\n\t\t\t\treturn $.map( columns, function (col, idx) {\r\n\t\t\t\t\treturn s(\r\n\t\t\t\t\t\t\tidx,\r\n\t\t\t\t\t\t\t__columnData( settings, idx, 0, 0, rows ),\r\n\t\t\t\t\t\t\tnodes[ idx ]\r\n\t\t\t\t\t\t) ? idx : null;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\r\n\t\t\t// jQuery or string selector\r\n\t\t\tvar match = typeof s === 'string' ?\r\n\t\t\t\ts.match( __re_column_selector ) :\r\n\t\t\t\t'';\r\n\t\r\n\t\t\tif ( match ) {\r\n\t\t\t\tswitch( match[2] ) {\r\n\t\t\t\t\tcase 'visIdx':\r\n\t\t\t\t\tcase 'visible':\r\n\t\t\t\t\t\tvar idx = parseInt( match[1], 10 );\r\n\t\t\t\t\t\t// Visible index given, convert to column index\r\n\t\t\t\t\t\tif ( idx < 0 ) {\r\n\t\t\t\t\t\t\t// Counting from the right\r\n\t\t\t\t\t\t\tvar visColumns = $.map( columns, function (col,i) {\r\n\t\t\t\t\t\t\t\treturn col.bVisible ? i : null;\r\n\t\t\t\t\t\t\t} );\r\n\t\t\t\t\t\t\treturn [ visColumns[ visColumns.length + idx ] ];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Counting from the left\r\n\t\t\t\t\t\treturn [ _fnVisibleToColumnIndex( settings, idx ) ];\r\n\t\r\n\t\t\t\t\tcase 'name':\r\n\t\t\t\t\t\t// match by name. `names` is column index complete and in order\r\n\t\t\t\t\t\treturn $.map( names, function (name, i) {\r\n\t\t\t\t\t\t\treturn name === match[1] ? i : null;\r\n\t\t\t\t\t\t} );\r\n\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\treturn [];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Cell in the table body\r\n\t\t\tif ( s.nodeName && s._DT_CellIndex ) {\r\n\t\t\t\treturn [ s._DT_CellIndex.column ];\r\n\t\t\t}\r\n\t\r\n\t\t\t// jQuery selector on the TH elements for the columns\r\n\t\t\tvar jqResult = $( nodes )\r\n\t\t\t\t.filter( s )\r\n\t\t\t\t.map( function () {\r\n\t\t\t\t\treturn $.inArray( this, nodes ); // `nodes` is column index complete and in order\r\n\t\t\t\t} )\r\n\t\t\t\t.toArray();\r\n\t\r\n\t\t\tif ( jqResult.length || ! s.nodeName ) {\r\n\t\t\t\treturn jqResult;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Otherwise a node which might have a `dt-column` data attribute, or be\r\n\t\t\t// a child or such an element\r\n\t\t\tvar host = $(s).closest('*[data-dt-column]');\r\n\t\t\treturn host.length ?\r\n\t\t\t\t[ host.data('dt-column') ] :\r\n\t\t\t\t[];\r\n\t\t};\r\n\t\r\n\t\treturn _selector_run( 'column', selector, run, settings, opts );\r\n\t};\r\n\t\r\n\t\r\n\tvar __setColumnVis = function ( settings, column, vis ) {\r\n\t\tvar\r\n\t\t\tcols = settings.aoColumns,\r\n\t\t\tcol  = cols[ column ],\r\n\t\t\tdata = settings.aoData,\r\n\t\t\trow, cells, i, ien, tr;\r\n\t\r\n\t\t// Get\r\n\t\tif ( vis === undefined ) {\r\n\t\t\treturn col.bVisible;\r\n\t\t}\r\n\t\r\n\t\t// Set\r\n\t\t// No change\r\n\t\tif ( col.bVisible === vis ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( vis ) {\r\n\t\t\t// Insert column\r\n\t\t\t// Need to decide if we should use appendChild or insertBefore\r\n\t\t\tvar insertBefore = $.inArray( true, _pluck(cols, 'bVisible'), column+1 );\r\n\t\r\n\t\t\tfor ( i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t\ttr = data[i].nTr;\r\n\t\t\t\tcells = data[i].anCells;\r\n\t\r\n\t\t\t\tif ( tr ) {\r\n\t\t\t\t\t// insertBefore can act like appendChild if 2nd arg is null\r\n\t\t\t\t\ttr.insertBefore( cells[ column ], cells[ insertBefore ] || null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Remove column\r\n\t\t\t$( _pluck( settings.aoData, 'anCells', column ) ).detach();\r\n\t\t}\r\n\t\r\n\t\t// Common actions\r\n\t\tcol.bVisible = vis;\r\n\t\t_fnDrawHead( settings, settings.aoHeader );\r\n\t\t_fnDrawHead( settings, settings.aoFooter );\r\n\t\r\n\t\t_fnSaveState( settings );\r\n\t};\r\n\t\r\n\t\r\n\t_api_register( 'columns()', function ( selector, opts ) {\r\n\t\t// argument shifting\r\n\t\tif ( selector === undefined ) {\r\n\t\t\tselector = '';\r\n\t\t}\r\n\t\telse if ( $.isPlainObject( selector ) ) {\r\n\t\t\topts = selector;\r\n\t\t\tselector = '';\r\n\t\t}\r\n\t\r\n\t\topts = _selector_opts( opts );\r\n\t\r\n\t\tvar inst = this.iterator( 'table', function ( settings ) {\r\n\t\t\treturn __column_selector( settings, selector, opts );\r\n\t\t}, 1 );\r\n\t\r\n\t\t// Want argument shifting here and in _row_selector?\r\n\t\tinst.selector.cols = selector;\r\n\t\tinst.selector.opts = opts;\r\n\t\r\n\t\treturn inst;\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().header()', 'column().header()', function ( selector, opts ) {\r\n\t\treturn this.iterator( 'column', function ( settings, column ) {\r\n\t\t\treturn settings.aoColumns[column].nTh;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().footer()', 'column().footer()', function ( selector, opts ) {\r\n\t\treturn this.iterator( 'column', function ( settings, column ) {\r\n\t\t\treturn settings.aoColumns[column].nTf;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().data()', 'column().data()', function () {\r\n\t\treturn this.iterator( 'column-rows', __columnData, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().dataSrc()', 'column().dataSrc()', function () {\r\n\t\treturn this.iterator( 'column', function ( settings, column ) {\r\n\t\t\treturn settings.aoColumns[column].mData;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().cache()', 'column().cache()', function ( type ) {\r\n\t\treturn this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {\r\n\t\t\treturn _pluck_order( settings.aoData, rows,\r\n\t\t\t\ttype === 'search' ? '_aFilterData' : '_aSortData', column\r\n\t\t\t);\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().nodes()', 'column().nodes()', function () {\r\n\t\treturn this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {\r\n\t\t\treturn _pluck_order( settings.aoData, rows, 'anCells', column ) ;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis, calc ) {\r\n\t\tvar ret = this.iterator( 'column', function ( settings, column ) {\r\n\t\t\tif ( vis === undefined ) {\r\n\t\t\t\treturn settings.aoColumns[ column ].bVisible;\r\n\t\t\t} // else\r\n\t\t\t__setColumnVis( settings, column, vis );\r\n\t\t} );\r\n\t\r\n\t\t// Group the column visibility changes\r\n\t\tif ( vis !== undefined ) {\r\n\t\t\t// Second loop once the first is done for events\r\n\t\t\tthis.iterator( 'column', function ( settings, column ) {\r\n\t\t\t\t_fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis, calc] );\r\n\t\t\t} );\r\n\t\r\n\t\t\tif ( calc === undefined || calc ) {\r\n\t\t\t\tthis.columns.adjust();\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn ret;\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().indexes()', 'column().index()', function ( type ) {\r\n\t\treturn this.iterator( 'column', function ( settings, column ) {\r\n\t\t\treturn type === 'visible' ?\r\n\t\t\t\t_fnColumnIndexToVisible( settings, column ) :\r\n\t\t\t\tcolumn;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_register( 'columns.adjust()', function () {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnAdjustColumnSizing( settings );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_register( 'column.index()', function ( type, idx ) {\r\n\t\tif ( this.context.length !== 0 ) {\r\n\t\t\tvar ctx = this.context[0];\r\n\t\r\n\t\t\tif ( type === 'fromVisible' || type === 'toData' ) {\r\n\t\t\t\treturn _fnVisibleToColumnIndex( ctx, idx );\r\n\t\t\t}\r\n\t\t\telse if ( type === 'fromData' || type === 'toVisible' ) {\r\n\t\t\t\treturn _fnColumnIndexToVisible( ctx, idx );\r\n\t\t\t}\r\n\t\t}\r\n\t} );\r\n\t\r\n\t_api_register( 'column()', function ( selector, opts ) {\r\n\t\treturn _selector_first( this.columns( selector, opts ) );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\tvar __cell_selector = function ( settings, selector, opts )\r\n\t{\r\n\t\tvar data = settings.aoData;\r\n\t\tvar rows = _selector_row_indexes( settings, opts );\r\n\t\tvar cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) );\r\n\t\tvar allCells = $( [].concat.apply([], cells) );\r\n\t\tvar row;\r\n\t\tvar columns = settings.aoColumns.length;\r\n\t\tvar a, i, ien, j, o, host;\r\n\t\r\n\t\tvar run = function ( s ) {\r\n\t\t\tvar fnSelector = typeof s === 'function';\r\n\t\r\n\t\t\tif ( s === null || s === undefined || fnSelector ) {\r\n\t\t\t\t// All cells and function selectors\r\n\t\t\t\ta = [];\r\n\t\r\n\t\t\t\tfor ( i=0, ien=rows.length ; i<ien ; i++ ) {\r\n\t\t\t\t\trow = rows[i];\r\n\t\r\n\t\t\t\t\tfor ( j=0 ; j<columns ; j++ ) {\r\n\t\t\t\t\t\to = {\r\n\t\t\t\t\t\t\trow: row,\r\n\t\t\t\t\t\t\tcolumn: j\r\n\t\t\t\t\t\t};\r\n\t\r\n\t\t\t\t\t\tif ( fnSelector ) {\r\n\t\t\t\t\t\t\t// Selector - function\r\n\t\t\t\t\t\t\thost = data[ row ];\r\n\t\r\n\t\t\t\t\t\t\tif ( s( o, _fnGetCellData(settings, row, j), host.anCells ? host.anCells[j] : null ) ) {\r\n\t\t\t\t\t\t\t\ta.push( o );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t// Selector - all\r\n\t\t\t\t\t\t\ta.push( o );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn a;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Selector - index\r\n\t\t\tif ( $.isPlainObject( s ) ) {\r\n\t\t\t\treturn [s];\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - jQuery filtered cells\r\n\t\t\tvar jqResult = allCells\r\n\t\t\t\t.filter( s )\r\n\t\t\t\t.map( function (i, el) {\r\n\t\t\t\t\treturn { // use a new object, in case someone changes the values\r\n\t\t\t\t\t\trow:    el._DT_CellIndex.row,\r\n\t\t\t\t\t\tcolumn: el._DT_CellIndex.column\r\n\t \t\t\t\t};\r\n\t\t\t\t} )\r\n\t\t\t\t.toArray();\r\n\t\r\n\t\t\tif ( jqResult.length || ! s.nodeName ) {\r\n\t\t\t\treturn jqResult;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Otherwise the selector is a node, and there is one last option - the\r\n\t\t\t// element might be a child of an element which has dt-row and dt-column\r\n\t\t\t// data attributes\r\n\t\t\thost = $(s).closest('*[data-dt-row]');\r\n\t\t\treturn host.length ?\r\n\t\t\t\t[ {\r\n\t\t\t\t\trow: host.data('dt-row'),\r\n\t\t\t\t\tcolumn: host.data('dt-column')\r\n\t\t\t\t} ] :\r\n\t\t\t\t[];\r\n\t\t};\r\n\t\r\n\t\treturn _selector_run( 'cell', selector, run, settings, opts );\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t_api_register( 'cells()', function ( rowSelector, columnSelector, opts ) {\r\n\t\t// Argument shifting\r\n\t\tif ( $.isPlainObject( rowSelector ) ) {\r\n\t\t\t// Indexes\r\n\t\t\tif ( rowSelector.row === undefined ) {\r\n\t\t\t\t// Selector options in first parameter\r\n\t\t\t\topts = rowSelector;\r\n\t\t\t\trowSelector = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Cell index objects in first parameter\r\n\t\t\t\topts = columnSelector;\r\n\t\t\t\tcolumnSelector = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ( $.isPlainObject( columnSelector ) ) {\r\n\t\t\topts = columnSelector;\r\n\t\t\tcolumnSelector = null;\r\n\t\t}\r\n\t\r\n\t\t// Cell selector\r\n\t\tif ( columnSelector === null || columnSelector === undefined ) {\r\n\t\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t\treturn __cell_selector( settings, rowSelector, _selector_opts( opts ) );\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\t// Row + column selector\r\n\t\tvar columns = this.columns( columnSelector, opts );\r\n\t\tvar rows = this.rows( rowSelector, opts );\r\n\t\tvar a, i, ien, j, jen;\r\n\t\r\n\t\tvar cells = this.iterator( 'table', function ( settings, idx ) {\r\n\t\t\ta = [];\r\n\t\r\n\t\t\tfor ( i=0, ien=rows[idx].length ; i<ien ; i++ ) {\r\n\t\t\t\tfor ( j=0, jen=columns[idx].length ; j<jen ; j++ ) {\r\n\t\t\t\t\ta.push( {\r\n\t\t\t\t\t\trow:    rows[idx][i],\r\n\t\t\t\t\t\tcolumn: columns[idx][j]\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\treturn a;\r\n\t\t}, 1 );\r\n\t\r\n\t\t$.extend( cells.selector, {\r\n\t\t\tcols: columnSelector,\r\n\t\t\trows: rowSelector,\r\n\t\t\topts: opts\r\n\t\t} );\r\n\t\r\n\t\treturn cells;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'cells().nodes()', 'cell().node()', function () {\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\tvar data = settings.aoData[ row ];\r\n\t\r\n\t\t\treturn data && data.anCells ?\r\n\t\t\t\tdata.anCells[ column ] :\r\n\t\t\t\tundefined;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'cells().data()', function () {\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\treturn _fnGetCellData( settings, row, column );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'cells().cache()', 'cell().cache()', function ( type ) {\r\n\t\ttype = type === 'search' ? '_aFilterData' : '_aSortData';\r\n\t\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\treturn settings.aoData[ row ][ type ][ column ];\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'cells().render()', 'cell().render()', function ( type ) {\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\treturn _fnGetCellData( settings, row, column, type );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'cells().indexes()', 'cell().index()', function () {\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\treturn {\r\n\t\t\t\trow: row,\r\n\t\t\t\tcolumn: column,\r\n\t\t\t\tcolumnVisible: _fnColumnIndexToVisible( settings, column )\r\n\t\t\t};\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'cells().invalidate()', 'cell().invalidate()', function ( src ) {\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\t_fnInvalidate( settings, row, src, column );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t_api_register( 'cell()', function ( rowSelector, columnSelector, opts ) {\r\n\t\treturn _selector_first( this.cells( rowSelector, columnSelector, opts ) );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'cell().data()', function ( data ) {\r\n\t\tvar ctx = this.context;\r\n\t\tvar cell = this[0];\r\n\t\r\n\t\tif ( data === undefined ) {\r\n\t\t\t// Get\r\n\t\t\treturn ctx.length && cell.length ?\r\n\t\t\t\t_fnGetCellData( ctx[0], cell[0].row, cell[0].column ) :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// Set\r\n\t\t_fnSetCellData( ctx[0], cell[0].row, cell[0].column, data );\r\n\t\t_fnInvalidate( ctx[0], cell[0].row, 'data', cell[0].column );\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Get current ordering (sorting) that has been applied to the table.\r\n\t *\r\n\t * @returns {array} 2D array containing the sorting information for the first\r\n\t *   table in the current context. Each element in the parent array represents\r\n\t *   a column being sorted upon (i.e. multi-sorting with two columns would have\r\n\t *   2 inner arrays). The inner arrays may have 2 or 3 elements. The first is\r\n\t *   the column index that the sorting condition applies to, the second is the\r\n\t *   direction of the sort (`desc` or `asc`) and, optionally, the third is the\r\n\t *   index of the sorting order from the `column.sorting` initialisation array.\r\n\t *//**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {integer} order Column index to sort upon.\r\n\t * @param {string} direction Direction of the sort to be applied (`asc` or `desc`)\r\n\t * @returns {DataTables.Api} this\r\n\t *//**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {array} order 1D array of sorting information to be applied.\r\n\t * @param {array} [...] Optional additional sorting conditions\r\n\t * @returns {DataTables.Api} this\r\n\t *//**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {array} order 2D array of sorting information to be applied.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'order()', function ( order, dir ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( order === undefined ) {\r\n\t\t\t// get\r\n\t\t\treturn ctx.length !== 0 ?\r\n\t\t\t\tctx[0].aaSorting :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// set\r\n\t\tif ( typeof order === 'number' ) {\r\n\t\t\t// Simple column / direction passed in\r\n\t\t\torder = [ [ order, dir ] ];\r\n\t\t}\r\n\t\telse if ( order.length && ! $.isArray( order[0] ) ) {\r\n\t\t\t// Arguments passed in (list of 1D arrays)\r\n\t\t\torder = Array.prototype.slice.call( arguments );\r\n\t\t}\r\n\t\t// otherwise a 2D array was passed in\r\n\t\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tsettings.aaSorting = order.slice();\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Attach a sort listener to an element for a given column\r\n\t *\r\n\t * @param {node|jQuery|string} node Identifier for the element(s) to attach the\r\n\t *   listener to. This can take the form of a single DOM node, a jQuery\r\n\t *   collection of nodes or a jQuery selector which will identify the node(s).\r\n\t * @param {integer} column the column that a click on this node will sort on\r\n\t * @param {function} [callback] callback function when sort is run\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'order.listener()', function ( node, column, callback ) {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnSortAttachListener( settings, node, column, callback );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'order.fixed()', function ( set ) {\r\n\t\tif ( ! set ) {\r\n\t\t\tvar ctx = this.context;\r\n\t\t\tvar fixed = ctx.length ?\r\n\t\t\t\tctx[0].aaSortingFixed :\r\n\t\t\t\tundefined;\r\n\t\r\n\t\t\treturn $.isArray( fixed ) ?\r\n\t\t\t\t{ pre: fixed } :\r\n\t\t\t\tfixed;\r\n\t\t}\r\n\t\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tsettings.aaSortingFixed = $.extend( true, {}, set );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t// Order by the selected column(s)\r\n\t_api_register( [\r\n\t\t'columns().order()',\r\n\t\t'column().order()'\r\n\t], function ( dir ) {\r\n\t\tvar that = this;\r\n\t\r\n\t\treturn this.iterator( 'table', function ( settings, i ) {\r\n\t\t\tvar sort = [];\r\n\t\r\n\t\t\t$.each( that[i], function (j, col) {\r\n\t\t\t\tsort.push( [ col, dir ] );\r\n\t\t\t} );\r\n\t\r\n\t\t\tsettings.aaSorting = sort;\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t_api_register( 'search()', function ( input, regex, smart, caseInsen ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( input === undefined ) {\r\n\t\t\t// get\r\n\t\t\treturn ctx.length !== 0 ?\r\n\t\t\t\tctx[0].oPreviousSearch.sSearch :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// set\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tif ( ! settings.oFeatures.bFilter ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, {\r\n\t\t\t\t\"sSearch\": input+\"\",\r\n\t\t\t\t\"bRegex\":  regex === null ? false : regex,\r\n\t\t\t\t\"bSmart\":  smart === null ? true  : smart,\r\n\t\t\t\t\"bCaseInsensitive\": caseInsen === null ? true : caseInsen\r\n\t\t\t} ), 1 );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural(\r\n\t\t'columns().search()',\r\n\t\t'column().search()',\r\n\t\tfunction ( input, regex, smart, caseInsen ) {\r\n\t\t\treturn this.iterator( 'column', function ( settings, column ) {\r\n\t\t\t\tvar preSearch = settings.aoPreSearchCols;\r\n\t\r\n\t\t\t\tif ( input === undefined ) {\r\n\t\t\t\t\t// get\r\n\t\t\t\t\treturn preSearch[ column ].sSearch;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// set\r\n\t\t\t\tif ( ! settings.oFeatures.bFilter ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$.extend( preSearch[ column ], {\r\n\t\t\t\t\t\"sSearch\": input+\"\",\r\n\t\t\t\t\t\"bRegex\":  regex === null ? false : regex,\r\n\t\t\t\t\t\"bSmart\":  smart === null ? true  : smart,\r\n\t\t\t\t\t\"bCaseInsensitive\": caseInsen === null ? true : caseInsen\r\n\t\t\t\t} );\r\n\t\r\n\t\t\t\t_fnFilterComplete( settings, settings.oPreviousSearch, 1 );\r\n\t\t\t} );\r\n\t\t}\r\n\t);\r\n\t\r\n\t/*\r\n\t * State API methods\r\n\t */\r\n\t\r\n\t_api_register( 'state()', function () {\r\n\t\treturn this.context.length ?\r\n\t\t\tthis.context[0].oSavedState :\r\n\t\t\tnull;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'state.clear()', function () {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t// Save an empty object\r\n\t\t\tsettings.fnStateSaveCallback.call( settings.oInstance, settings, {} );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'state.loaded()', function () {\r\n\t\treturn this.context.length ?\r\n\t\t\tthis.context[0].oLoadedState :\r\n\t\t\tnull;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'state.save()', function () {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnSaveState( settings );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Provide a common method for plug-ins to check the version of DataTables being\r\n\t * used, in order to ensure compatibility.\r\n\t *\r\n\t *  @param {string} version Version string to check for, in the format \"X.Y.Z\".\r\n\t *    Note that the formats \"X\" and \"X.Y\" are also acceptable.\r\n\t *  @returns {boolean} true if this version of DataTables is greater or equal to\r\n\t *    the required version, or false if this version of DataTales is not\r\n\t *    suitable\r\n\t *  @static\r\n\t *  @dtopt API-Static\r\n\t *\r\n\t *  @example\r\n\t *    alert( $.fn.dataTable.versionCheck( '1.9.0' ) );\r\n\t */\r\n\tDataTable.versionCheck = DataTable.fnVersionCheck = function( version )\r\n\t{\r\n\t\tvar aThis = DataTable.version.split('.');\r\n\t\tvar aThat = version.split('.');\r\n\t\tvar iThis, iThat;\r\n\t\r\n\t\tfor ( var i=0, iLen=aThat.length ; i<iLen ; i++ ) {\r\n\t\t\tiThis = parseInt( aThis[i], 10 ) || 0;\r\n\t\t\tiThat = parseInt( aThat[i], 10 ) || 0;\r\n\t\r\n\t\t\t// Parts are the same, keep comparing\r\n\t\t\tif (iThis === iThat) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Parts are different, return immediately\r\n\t\t\treturn iThis > iThat;\r\n\t\t}\r\n\t\r\n\t\treturn true;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Check if a `<table>` node is a DataTable table already or not.\r\n\t *\r\n\t *  @param {node|jquery|string} table Table node, jQuery object or jQuery\r\n\t *      selector for the table to test. Note that if more than more than one\r\n\t *      table is passed on, only the first will be checked\r\n\t *  @returns {boolean} true the table given is a DataTable, or false otherwise\r\n\t *  @static\r\n\t *  @dtopt API-Static\r\n\t *\r\n\t *  @example\r\n\t *    if ( ! $.fn.DataTable.isDataTable( '#example' ) ) {\r\n\t *      $('#example').dataTable();\r\n\t *    }\r\n\t */\r\n\tDataTable.isDataTable = DataTable.fnIsDataTable = function ( table )\r\n\t{\r\n\t\tvar t = $(table).get(0);\r\n\t\tvar is = false;\r\n\t\r\n\t\tif ( table instanceof DataTable.Api ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\t$.each( DataTable.settings, function (i, o) {\r\n\t\t\tvar head = o.nScrollHead ? $('table', o.nScrollHead)[0] : null;\r\n\t\t\tvar foot = o.nScrollFoot ? $('table', o.nScrollFoot)[0] : null;\r\n\t\r\n\t\t\tif ( o.nTable === t || head === t || foot === t ) {\r\n\t\t\t\tis = true;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn is;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Get all DataTable tables that have been initialised - optionally you can\r\n\t * select to get only currently visible tables.\r\n\t *\r\n\t *  @param {boolean} [visible=false] Flag to indicate if you want all (default)\r\n\t *    or visible tables only.\r\n\t *  @returns {array} Array of `table` nodes (not DataTable instances) which are\r\n\t *    DataTables\r\n\t *  @static\r\n\t *  @dtopt API-Static\r\n\t *\r\n\t *  @example\r\n\t *    $.each( $.fn.dataTable.tables(true), function () {\r\n\t *      $(table).DataTable().columns.adjust();\r\n\t *    } );\r\n\t */\r\n\tDataTable.tables = DataTable.fnTables = function ( visible )\r\n\t{\r\n\t\tvar api = false;\r\n\t\r\n\t\tif ( $.isPlainObject( visible ) ) {\r\n\t\t\tapi = visible.api;\r\n\t\t\tvisible = visible.visible;\r\n\t\t}\r\n\t\r\n\t\tvar a = $.map( DataTable.settings, function (o) {\r\n\t\t\tif ( !visible || (visible && $(o.nTable).is(':visible')) ) {\r\n\t\t\t\treturn o.nTable;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn api ?\r\n\t\t\tnew _Api( a ) :\r\n\t\t\ta;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from camel case parameters to Hungarian notation. This is made public\r\n\t * for the extensions to provide the same ability as DataTables core to accept\r\n\t * either the 1.9 style Hungarian notation, or the 1.10+ style camelCase\r\n\t * parameters.\r\n\t *\r\n\t *  @param {object} src The model object which holds all parameters that can be\r\n\t *    mapped.\r\n\t *  @param {object} user The object to convert from camel case to Hungarian.\r\n\t *  @param {boolean} force When set to `true`, properties which already have a\r\n\t *    Hungarian value in the `user` object will be overwritten. Otherwise they\r\n\t *    won't be.\r\n\t */\r\n\tDataTable.camelToHungarian = _fnCamelToHungarian;\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t *\r\n\t */\r\n\t_api_register( '$()', function ( selector, opts ) {\r\n\t\tvar\r\n\t\t\trows   = this.rows( opts ).nodes(), // Get all rows\r\n\t\t\tjqRows = $(rows);\r\n\t\r\n\t\treturn $( [].concat(\r\n\t\t\tjqRows.filter( selector ).toArray(),\r\n\t\t\tjqRows.find( selector ).toArray()\r\n\t\t) );\r\n\t} );\r\n\t\r\n\t\r\n\t// jQuery functions to operate on the tables\r\n\t$.each( [ 'on', 'one', 'off' ], function (i, key) {\r\n\t\t_api_register( key+'()', function ( /* event, handler */ ) {\r\n\t\t\tvar args = Array.prototype.slice.call(arguments);\r\n\t\r\n\t\t\t// Add the `dt` namespace automatically if it isn't already present\r\n\t\t\targs[0] = $.map( args[0].split( /\\s/ ), function ( e ) {\r\n\t\t\t\treturn ! e.match(/\\.dt\\b/) ?\r\n\t\t\t\t\te+'.dt' :\r\n\t\t\t\t\te;\r\n\t\t\t\t} ).join( ' ' );\r\n\t\r\n\t\t\tvar inst = $( this.tables().nodes() );\r\n\t\t\tinst[key].apply( inst, args );\r\n\t\t\treturn this;\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'clear()', function () {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnClearTable( settings );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'settings()', function () {\r\n\t\treturn new _Api( this.context, this.context );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'init()', function () {\r\n\t\tvar ctx = this.context;\r\n\t\treturn ctx.length ? ctx[0].oInit : null;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'data()', function () {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\treturn _pluck( settings.aoData, '_aData' );\r\n\t\t} ).flatten();\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'destroy()', function ( remove ) {\r\n\t\tremove = remove || false;\r\n\t\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tvar orig      = settings.nTableWrapper.parentNode;\r\n\t\t\tvar classes   = settings.oClasses;\r\n\t\t\tvar table     = settings.nTable;\r\n\t\t\tvar tbody     = settings.nTBody;\r\n\t\t\tvar thead     = settings.nTHead;\r\n\t\t\tvar tfoot     = settings.nTFoot;\r\n\t\t\tvar jqTable   = $(table);\r\n\t\t\tvar jqTbody   = $(tbody);\r\n\t\t\tvar jqWrapper = $(settings.nTableWrapper);\r\n\t\t\tvar rows      = $.map( settings.aoData, function (r) { return r.nTr; } );\r\n\t\t\tvar i, ien;\r\n\t\r\n\t\t\t// Flag to note that the table is currently being destroyed - no action\r\n\t\t\t// should be taken\r\n\t\t\tsettings.bDestroying = true;\r\n\t\r\n\t\t\t// Fire off the destroy callbacks for plug-ins etc\r\n\t\t\t_fnCallbackFire( settings, \"aoDestroyCallback\", \"destroy\", [settings] );\r\n\t\r\n\t\t\t// If not being removed from the document, make all columns visible\r\n\t\t\tif ( ! remove ) {\r\n\t\t\t\tnew _Api( settings ).columns().visible( true );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Blitz all `DT` namespaced events (these are internal events, the\r\n\t\t\t// lowercase, `dt` events are user subscribed and they are responsible\r\n\t\t\t// for removing them\r\n\t\t\tjqWrapper.off('.DT').find(':not(tbody *)').off('.DT');\r\n\t\t\t$(window).off('.DT-'+settings.sInstance);\r\n\t\r\n\t\t\t// When scrolling we had to break the table up - restore it\r\n\t\t\tif ( table != thead.parentNode ) {\r\n\t\t\t\tjqTable.children('thead').detach();\r\n\t\t\t\tjqTable.append( thead );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( tfoot && table != tfoot.parentNode ) {\r\n\t\t\t\tjqTable.children('tfoot').detach();\r\n\t\t\t\tjqTable.append( tfoot );\r\n\t\t\t}\r\n\t\r\n\t\t\tsettings.aaSorting = [];\r\n\t\t\tsettings.aaSortingFixed = [];\r\n\t\t\t_fnSortingClasses( settings );\r\n\t\r\n\t\t\t$( rows ).removeClass( settings.asStripeClasses.join(' ') );\r\n\t\r\n\t\t\t$('th, td', thead).removeClass( classes.sSortable+' '+\r\n\t\t\t\tclasses.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone\r\n\t\t\t);\r\n\t\r\n\t\t\tif ( settings.bJUI ) {\r\n\t\t\t\t$('th span.'+classes.sSortIcon+ ', td span.'+classes.sSortIcon, thead).detach();\r\n\t\t\t\t$('th, td', thead).each( function () {\r\n\t\t\t\t\tvar wrapper = $('div.'+classes.sSortJUIWrapper, this);\r\n\t\t\t\t\t$(this).append( wrapper.contents() );\r\n\t\t\t\t\twrapper.detach();\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Add the TR elements back into the table in their original order\r\n\t\t\tjqTbody.children().detach();\r\n\t\t\tjqTbody.append( rows );\r\n\t\r\n\t\t\t// Remove the DataTables generated nodes, events and classes\r\n\t\t\tvar removedMethod = remove ? 'remove' : 'detach';\r\n\t\t\tjqTable[ removedMethod ]();\r\n\t\t\tjqWrapper[ removedMethod ]();\r\n\t\r\n\t\t\t// If we need to reattach the table to the document\r\n\t\t\tif ( ! remove && orig ) {\r\n\t\t\t\t// insertBefore acts like appendChild if !arg[1]\r\n\t\t\t\torig.insertBefore( table, settings.nTableReinsertBefore );\r\n\t\r\n\t\t\t\t// Restore the width of the original table - was read from the style property,\r\n\t\t\t\t// so we can restore directly to that\r\n\t\t\t\tjqTable\r\n\t\t\t\t\t.css( 'width', settings.sDestroyWidth )\r\n\t\t\t\t\t.removeClass( classes.sTable );\r\n\t\r\n\t\t\t\t// If the were originally stripe classes - then we add them back here.\r\n\t\t\t\t// Note this is not fool proof (for example if not all rows had stripe\r\n\t\t\t\t// classes - but it's a good effort without getting carried away\r\n\t\t\t\tien = settings.asDestroyStripes.length;\r\n\t\r\n\t\t\t\tif ( ien ) {\r\n\t\t\t\t\tjqTbody.children().each( function (i) {\r\n\t\t\t\t\t\t$(this).addClass( settings.asDestroyStripes[i % ien] );\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Remove the settings object from the settings array */\r\n\t\t\tvar idx = $.inArray( settings, DataTable.settings );\r\n\t\t\tif ( idx !== -1 ) {\r\n\t\t\t\tDataTable.settings.splice( idx, 1 );\r\n\t\t\t}\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t// Add the `every()` method for rows, columns and cells in a compact form\r\n\t$.each( [ 'column', 'row', 'cell' ], function ( i, type ) {\r\n\t\t_api_register( type+'s().every()', function ( fn ) {\r\n\t\t\tvar opts = this.selector.opts;\r\n\t\t\tvar api = this;\r\n\t\r\n\t\t\treturn this.iterator( type, function ( settings, arg1, arg2, arg3, arg4 ) {\r\n\t\t\t\t// Rows and columns:\r\n\t\t\t\t//  arg1 - index\r\n\t\t\t\t//  arg2 - table counter\r\n\t\t\t\t//  arg3 - loop counter\r\n\t\t\t\t//  arg4 - undefined\r\n\t\t\t\t// Cells:\r\n\t\t\t\t//  arg1 - row index\r\n\t\t\t\t//  arg2 - column index\r\n\t\t\t\t//  arg3 - table counter\r\n\t\t\t\t//  arg4 - loop counter\r\n\t\t\t\tfn.call(\r\n\t\t\t\t\tapi[ type ](\r\n\t\t\t\t\t\targ1,\r\n\t\t\t\t\t\ttype==='cell' ? arg2 : opts,\r\n\t\t\t\t\t\ttype==='cell' ? opts : undefined\r\n\t\t\t\t\t),\r\n\t\t\t\t\targ1, arg2, arg3, arg4\r\n\t\t\t\t);\r\n\t\t\t} );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t// i18n method for extensions to be able to use the language object from the\r\n\t// DataTable\r\n\t_api_register( 'i18n()', function ( token, def, plural ) {\r\n\t\tvar ctx = this.context[0];\r\n\t\tvar resolved = _fnGetObjectDataFn( token )( ctx.oLanguage );\r\n\t\r\n\t\tif ( resolved === undefined ) {\r\n\t\t\tresolved = def;\r\n\t\t}\r\n\t\r\n\t\tif ( plural !== undefined && $.isPlainObject( resolved ) ) {\r\n\t\t\tresolved = resolved[ plural ] !== undefined ?\r\n\t\t\t\tresolved[ plural ] :\r\n\t\t\t\tresolved._;\r\n\t\t}\r\n\t\r\n\t\treturn resolved.replace( '%d', plural ); // nb: plural might be undefined,\r\n\t} );\r\n\t/**\r\n\t * Version string for plug-ins to check compatibility. Allowed format is\r\n\t * `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used\r\n\t * only for non-release builds. See http://semver.org/ for more information.\r\n\t *  @member\r\n\t *  @type string\r\n\t *  @default Version number\r\n\t */\r\n\tDataTable.version = \"1.10.15\";\r\n\r\n\t/**\r\n\t * Private data store, containing all of the settings objects that are\r\n\t * created for the tables on a given page.\r\n\t *\r\n\t * Note that the `DataTable.settings` object is aliased to\r\n\t * `jQuery.fn.dataTableExt` through which it may be accessed and\r\n\t * manipulated, or `jQuery.fn.dataTable.settings`.\r\n\t *  @member\r\n\t *  @type array\r\n\t *  @default []\r\n\t *  @private\r\n\t */\r\n\tDataTable.settings = [];\r\n\r\n\t/**\r\n\t * Object models container, for the various models that DataTables has\r\n\t * available to it. These models define the objects that are used to hold\r\n\t * the active state and configuration of the table.\r\n\t *  @namespace\r\n\t */\r\n\tDataTable.models = {};\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Template object for the way in which DataTables holds information about\r\n\t * search information for the global filter and individual column filters.\r\n\t *  @namespace\r\n\t */\r\n\tDataTable.models.oSearch = {\r\n\t\t/**\r\n\t\t * Flag to indicate if the filtering should be case insensitive or not\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t */\r\n\t\t\"bCaseInsensitive\": true,\r\n\t\r\n\t\t/**\r\n\t\t * Applied search term\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string</i>\r\n\t\t */\r\n\t\t\"sSearch\": \"\",\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the search term should be interpreted as a\r\n\t\t * regular expression (true) or not (false) and therefore and special\r\n\t\t * regex characters escaped.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t */\r\n\t\t\"bRegex\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if DataTables is to use its smart filtering or not.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t */\r\n\t\t\"bSmart\": true\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Template object for the way in which DataTables holds information about\r\n\t * each individual row. This is the object format used for the settings\r\n\t * aoData array.\r\n\t *  @namespace\r\n\t */\r\n\tDataTable.models.oRow = {\r\n\t\t/**\r\n\t\t * TR element for the row\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"nTr\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Array of TD elements for each row. This is null until the row has been\r\n\t\t * created.\r\n\t\t *  @type array nodes\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"anCells\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Data object from the original data source for the row. This is either\r\n\t\t * an array if using the traditional form of DataTables, or an object if\r\n\t\t * using mData options. The exact type will depend on the passed in\r\n\t\t * data from the data source, or will be an array if using DOM a data\r\n\t\t * source.\r\n\t\t *  @type array|object\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"_aData\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Sorting data cache - this array is ostensibly the same length as the\r\n\t\t * number of columns (although each index is generated only as it is\r\n\t\t * needed), and holds the data that is used for sorting each column in the\r\n\t\t * row. We do this cache generation at the start of the sort in order that\r\n\t\t * the formatting of the sort data need be done only once for each cell\r\n\t\t * per sort. This array should not be read from or written to by anything\r\n\t\t * other than the master sorting methods.\r\n\t\t *  @type array\r\n\t\t *  @default null\r\n\t\t *  @private\r\n\t\t */\r\n\t\t\"_aSortData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Per cell filtering data cache. As per the sort data cache, used to\r\n\t\t * increase the performance of the filtering in DataTables\r\n\t\t *  @type array\r\n\t\t *  @default null\r\n\t\t *  @private\r\n\t\t */\r\n\t\t\"_aFilterData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Filtering data cache. This is the same as the cell filtering cache, but\r\n\t\t * in this case a string rather than an array. This is easily computed with\r\n\t\t * a join on `_aFilterData`, but is provided as a cache so the join isn't\r\n\t\t * needed on every search (memory traded for performance)\r\n\t\t *  @type array\r\n\t\t *  @default null\r\n\t\t *  @private\r\n\t\t */\r\n\t\t\"_sFilterRow\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Cache of the class name that DataTables has applied to the row, so we\r\n\t\t * can quickly look at this variable rather than needing to do a DOM check\r\n\t\t * on className for the nTr property.\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string</i>\r\n\t\t *  @private\r\n\t\t */\r\n\t\t\"_sRowStripe\": \"\",\r\n\t\r\n\t\t/**\r\n\t\t * Denote if the original data source was from the DOM, or the data source\r\n\t\t * object. This is used for invalidating data, so DataTables can\r\n\t\t * automatically read data from the original source, unless uninstructed\r\n\t\t * otherwise.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t *  @private\r\n\t\t */\r\n\t\t\"src\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Index in the aoData array. This saves an indexOf lookup when we have the\r\n\t\t * object, but want to know the index\r\n\t\t *  @type integer\r\n\t\t *  @default -1\r\n\t\t *  @private\r\n\t\t */\r\n\t\t\"idx\": -1\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Template object for the column information object in DataTables. This object\r\n\t * is held in the settings aoColumns array and contains all the information that\r\n\t * DataTables needs about each individual column.\r\n\t *\r\n\t * Note that this object is related to {@link DataTable.defaults.column}\r\n\t * but this one is the internal data store for DataTables's cache of columns.\r\n\t * It should NOT be manipulated outside of DataTables. Any configuration should\r\n\t * be done through the initialisation options.\r\n\t *  @namespace\r\n\t */\r\n\tDataTable.models.oColumn = {\r\n\t\t/**\r\n\t\t * Column index. This could be worked out on-the-fly with $.inArray, but it\r\n\t\t * is faster to just hold it as a variable\r\n\t\t *  @type integer\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"idx\": null,\r\n\t\r\n\t\t/**\r\n\t\t * A list of the columns that sorting should occur on when this column\r\n\t\t * is sorted. That this property is an array allows multi-column sorting\r\n\t\t * to be defined for a column (for example first name / last name columns\r\n\t\t * would benefit from this). The values are integers pointing to the\r\n\t\t * columns to be sorted on (typically it will be a single integer pointing\r\n\t\t * at itself, but that doesn't need to be the case).\r\n\t\t *  @type array\r\n\t\t */\r\n\t\t\"aDataSort\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Define the sorting directions that are applied to the column, in sequence\r\n\t\t * as the column is repeatedly sorted upon - i.e. the first value is used\r\n\t\t * as the sorting direction when the column if first sorted (clicked on).\r\n\t\t * Sort it again (click again) and it will move on to the next index.\r\n\t\t * Repeat until loop.\r\n\t\t *  @type array\r\n\t\t */\r\n\t\t\"asSorting\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the column is searchable, and thus should be included\r\n\t\t * in the filtering or not.\r\n\t\t *  @type boolean\r\n\t\t */\r\n\t\t\"bSearchable\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the column is sortable or not.\r\n\t\t *  @type boolean\r\n\t\t */\r\n\t\t\"bSortable\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the column is currently visible in the table or not\r\n\t\t *  @type boolean\r\n\t\t */\r\n\t\t\"bVisible\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Store for manual type assignment using the `column.type` option. This\r\n\t\t * is held in store so we can manipulate the column's `sType` property.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t *  @private\r\n\t\t */\r\n\t\t\"_sManualType\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if HTML5 data attributes should be used as the data\r\n\t\t * source for filtering or sorting. True is either are.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *  @private\r\n\t\t */\r\n\t\t\"_bAttrSrc\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Developer definable function that is called whenever a cell is created (Ajax source,\r\n\t\t * etc) or processed for input (DOM source). This can be used as a compliment to mRender\r\n\t\t * allowing you to modify the DOM element (add background colour for example) when the\r\n\t\t * element is available.\r\n\t\t *  @type function\r\n\t\t *  @param {element} nTd The TD node that has been created\r\n\t\t *  @param {*} sData The Data for the cell\r\n\t\t *  @param {array|object} oData The data for the whole row\r\n\t\t *  @param {int} iRow The row index for the aoData data store\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"fnCreatedCell\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Function to get data from a cell in a column. You should <b>never</b>\r\n\t\t * access data directly through _aData internally in DataTables - always use\r\n\t\t * the method attached to this property. It allows mData to function as\r\n\t\t * required. This function is automatically assigned by the column\r\n\t\t * initialisation method\r\n\t\t *  @type function\r\n\t\t *  @param {array|object} oData The data array/object for the array\r\n\t\t *    (i.e. aoData[]._aData)\r\n\t\t *  @param {string} sSpecific The specific data type you want to get -\r\n\t\t *    'display', 'type' 'filter' 'sort'\r\n\t\t *  @returns {*} The data for the cell from the given row's data\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"fnGetData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Function to set data for a cell in the column. You should <b>never</b>\r\n\t\t * set the data directly to _aData internally in DataTables - always use\r\n\t\t * this method. It allows mData to function as required. This function\r\n\t\t * is automatically assigned by the column initialisation method\r\n\t\t *  @type function\r\n\t\t *  @param {array|object} oData The data array/object for the array\r\n\t\t *    (i.e. aoData[]._aData)\r\n\t\t *  @param {*} sValue Value to set\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"fnSetData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Property to read the value for the cells in the column from the data\r\n\t\t * source array / object. If null, then the default content is used, if a\r\n\t\t * function is given then the return from the function is used.\r\n\t\t *  @type function|int|string|null\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"mData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Partner property to mData which is used (only when defined) to get\r\n\t\t * the data - i.e. it is basically the same as mData, but without the\r\n\t\t * 'set' option, and also the data fed to it is the result from mData.\r\n\t\t * This is the rendering method to match the data method of mData.\r\n\t\t *  @type function|int|string|null\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"mRender\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Unique header TH/TD element for this column - this is what the sorting\r\n\t\t * listener is attached to (if sorting is enabled.)\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"nTh\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Unique footer TH/TD element for this column (if there is one). Not used\r\n\t\t * in DataTables as such, but can be used for plug-ins to reference the\r\n\t\t * footer for each column.\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"nTf\": null,\r\n\t\r\n\t\t/**\r\n\t\t * The class to apply to all TD elements in the table's TBODY for the column\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"sClass\": null,\r\n\t\r\n\t\t/**\r\n\t\t * When DataTables calculates the column widths to assign to each column,\r\n\t\t * it finds the longest string in each column and then constructs a\r\n\t\t * temporary table and reads the widths from that. The problem with this\r\n\t\t * is that \"mmm\" is much wider then \"iiii\", but the latter is a longer\r\n\t\t * string - thus the calculation can go wrong (doing it properly and putting\r\n\t\t * it into an DOM object and measuring that is horribly(!) slow). Thus as\r\n\t\t * a \"work around\" we provide this option. It will append its value to the\r\n\t\t * text that is found to be the longest string for the column - i.e. padding.\r\n\t\t *  @type string\r\n\t\t */\r\n\t\t\"sContentPadding\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Allows a default value to be given for a column's data, and will be used\r\n\t\t * whenever a null data source is encountered (this can be because mData\r\n\t\t * is set to null, or because the data source itself is null).\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"sDefaultContent\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Name for the column, allowing reference to the column by name as well as\r\n\t\t * by index (needs a lookup to work by name).\r\n\t\t *  @type string\r\n\t\t */\r\n\t\t\"sName\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Custom sorting data type - defines which of the available plug-ins in\r\n\t\t * afnSortData the custom sorting will use - if any is defined.\r\n\t\t *  @type string\r\n\t\t *  @default std\r\n\t\t */\r\n\t\t\"sSortDataType\": 'std',\r\n\t\r\n\t\t/**\r\n\t\t * Class to be applied to the header element when sorting on this column\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"sSortingClass\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Class to be applied to the header element when sorting on this column -\r\n\t\t * when jQuery UI theming is used.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"sSortingClassJUI\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Title of the column - what is seen in the TH element (nTh).\r\n\t\t *  @type string\r\n\t\t */\r\n\t\t\"sTitle\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Column sorting and filtering type\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"sType\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Width of the column\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"sWidth\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Width of the column when it was first \"encountered\"\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"sWidthOrig\": null\r\n\t};\r\n\t\r\n\t\r\n\t/*\r\n\t * Developer note: The properties of the object below are given in Hungarian\r\n\t * notation, that was used as the interface for DataTables prior to v1.10, however\r\n\t * from v1.10 onwards the primary interface is camel case. In order to avoid\r\n\t * breaking backwards compatibility utterly with this change, the Hungarian\r\n\t * version is still, internally the primary interface, but is is not documented\r\n\t * - hence the @name tags in each doc comment. This allows a Javascript function\r\n\t * to create a map from Hungarian notation to camel case (going the other direction\r\n\t * would require each property to be listed, which would at around 3K to the size\r\n\t * of DataTables, while this method is about a 0.5K hit.\r\n\t *\r\n\t * Ultimately this does pave the way for Hungarian notation to be dropped\r\n\t * completely, but that is a massive amount of work and will break current\r\n\t * installs (therefore is on-hold until v2).\r\n\t */\r\n\t\r\n\t/**\r\n\t * Initialisation options that can be given to DataTables at initialisation\r\n\t * time.\r\n\t *  @namespace\r\n\t */\r\n\tDataTable.defaults = {\r\n\t\t/**\r\n\t\t * An array of data to use for the table, passed in at initialisation which\r\n\t\t * will be used in preference to any data which is already in the DOM. This is\r\n\t\t * particularly useful for constructing tables purely in Javascript, for\r\n\t\t * example with a custom Ajax call.\r\n\t\t *  @type array\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.data\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using a 2D array data source\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"data\": [\r\n\t\t *          ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],\r\n\t\t *          ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],\r\n\t\t *        ],\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"title\": \"Engine\" },\r\n\t\t *          { \"title\": \"Browser\" },\r\n\t\t *          { \"title\": \"Platform\" },\r\n\t\t *          { \"title\": \"Version\" },\r\n\t\t *          { \"title\": \"Grade\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using an array of objects as a data source (`data`)\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"data\": [\r\n\t\t *          {\r\n\t\t *            \"engine\":   \"Trident\",\r\n\t\t *            \"browser\":  \"Internet Explorer 4.0\",\r\n\t\t *            \"platform\": \"Win 95+\",\r\n\t\t *            \"version\":  4,\r\n\t\t *            \"grade\":    \"X\"\r\n\t\t *          },\r\n\t\t *          {\r\n\t\t *            \"engine\":   \"Trident\",\r\n\t\t *            \"browser\":  \"Internet Explorer 5.0\",\r\n\t\t *            \"platform\": \"Win 95+\",\r\n\t\t *            \"version\":  5,\r\n\t\t *            \"grade\":    \"C\"\r\n\t\t *          }\r\n\t\t *        ],\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"title\": \"Engine\",   \"data\": \"engine\" },\r\n\t\t *          { \"title\": \"Browser\",  \"data\": \"browser\" },\r\n\t\t *          { \"title\": \"Platform\", \"data\": \"platform\" },\r\n\t\t *          { \"title\": \"Version\",  \"data\": \"version\" },\r\n\t\t *          { \"title\": \"Grade\",    \"data\": \"grade\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"aaData\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * If ordering is enabled, then DataTables will perform a first pass sort on\r\n\t\t * initialisation. You can define which column(s) the sort is performed\r\n\t\t * upon, and the sorting direction, with this variable. The `sorting` array\r\n\t\t * should contain an array for each column to be sorted initially containing\r\n\t\t * the column's index and a direction string ('asc' or 'desc').\r\n\t\t *  @type array\r\n\t\t *  @default [[0,'asc']]\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.order\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Sort by 3rd column first, and then 4th column\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"order\": [[2,'asc'], [3,'desc']]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *    // No initial sorting\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"order\": []\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"aaSorting\": [[0,'asc']],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter is basically identical to the `sorting` parameter, but\r\n\t\t * cannot be overridden by user interaction with the table. What this means\r\n\t\t * is that you could have a column (visible or hidden) which the sorting\r\n\t\t * will always be forced on first - any sorting after that (from the user)\r\n\t\t * will then be performed as required. This can be useful for grouping rows\r\n\t\t * together.\r\n\t\t *  @type array\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.orderFixed\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"orderFixed\": [[0,'asc']]\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"aaSortingFixed\": [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables can be instructed to load data to display in the table from a\r\n\t\t * Ajax source. This option defines how that Ajax call is made and where to.\r\n\t\t *\r\n\t\t * The `ajax` property has three different modes of operation, depending on\r\n\t\t * how it is defined. These are:\r\n\t\t *\r\n\t\t * * `string` - Set the URL from where the data should be loaded from.\r\n\t\t * * `object` - Define properties for `jQuery.ajax`.\r\n\t\t * * `function` - Custom data get function\r\n\t\t *\r\n\t\t * `string`\r\n\t\t * --------\r\n\t\t *\r\n\t\t * As a string, the `ajax` property simply defines the URL from which\r\n\t\t * DataTables will load data.\r\n\t\t *\r\n\t\t * `object`\r\n\t\t * --------\r\n\t\t *\r\n\t\t * As an object, the parameters in the object are passed to\r\n\t\t * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control\r\n\t\t * of the Ajax request. DataTables has a number of default parameters which\r\n\t\t * you can override using this option. Please refer to the jQuery\r\n\t\t * documentation for a full description of the options available, although\r\n\t\t * the following parameters provide additional options in DataTables or\r\n\t\t * require special consideration:\r\n\t\t *\r\n\t\t * * `data` - As with jQuery, `data` can be provided as an object, but it\r\n\t\t *   can also be used as a function to manipulate the data DataTables sends\r\n\t\t *   to the server. The function takes a single parameter, an object of\r\n\t\t *   parameters with the values that DataTables has readied for sending. An\r\n\t\t *   object may be returned which will be merged into the DataTables\r\n\t\t *   defaults, or you can add the items to the object that was passed in and\r\n\t\t *   not return anything from the function. This supersedes `fnServerParams`\r\n\t\t *   from DataTables 1.9-.\r\n\t\t *\r\n\t\t * * `dataSrc` - By default DataTables will look for the property `data` (or\r\n\t\t *   `aaData` for compatibility with DataTables 1.9-) when obtaining data\r\n\t\t *   from an Ajax source or for server-side processing - this parameter\r\n\t\t *   allows that property to be changed. You can use Javascript dotted\r\n\t\t *   object notation to get a data source for multiple levels of nesting, or\r\n\t\t *   it my be used as a function. As a function it takes a single parameter,\r\n\t\t *   the JSON returned from the server, which can be manipulated as\r\n\t\t *   required, with the returned value being that used by DataTables as the\r\n\t\t *   data source for the table. This supersedes `sAjaxDataProp` from\r\n\t\t *   DataTables 1.9-.\r\n\t\t *\r\n\t\t * * `success` - Should not be overridden it is used internally in\r\n\t\t *   DataTables. To manipulate / transform the data returned by the server\r\n\t\t *   use `ajax.dataSrc`, or use `ajax` as a function (see below).\r\n\t\t *\r\n\t\t * `function`\r\n\t\t * ----------\r\n\t\t *\r\n\t\t * As a function, making the Ajax call is left up to yourself allowing\r\n\t\t * complete control of the Ajax request. Indeed, if desired, a method other\r\n\t\t * than Ajax could be used to obtain the required data, such as Web storage\r\n\t\t * or an AIR database.\r\n\t\t *\r\n\t\t * The function is given four parameters and no return is required. The\r\n\t\t * parameters are:\r\n\t\t *\r\n\t\t * 1. _object_ - Data to send to the server\r\n\t\t * 2. _function_ - Callback function that must be executed when the required\r\n\t\t *    data has been obtained. That data should be passed into the callback\r\n\t\t *    as the only parameter\r\n\t\t * 3. _object_ - DataTables settings object for the table\r\n\t\t *\r\n\t\t * Note that this supersedes `fnServerData` from DataTables 1.9-.\r\n\t\t *\r\n\t\t *  @type string|object|function\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.ajax\r\n\t\t *  @since 1.10.0\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Get JSON data from a file via Ajax.\r\n\t\t *   // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default).\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": \"data.json\"\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Get JSON data from a file via Ajax, using `dataSrc` to change\r\n\t\t *   // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`)\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": {\r\n\t\t *       \"url\": \"data.json\",\r\n\t\t *       \"dataSrc\": \"tableData\"\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Get JSON data from a file via Ajax, using `dataSrc` to read data\r\n\t\t *   // from a plain array rather than an array in an object\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": {\r\n\t\t *       \"url\": \"data.json\",\r\n\t\t *       \"dataSrc\": \"\"\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Manipulate the data returned from the server - add a link to data\r\n\t\t *   // (note this can, should, be done using `render` for the column - this\r\n\t\t *   // is just a simple example of how the data can be manipulated).\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": {\r\n\t\t *       \"url\": \"data.json\",\r\n\t\t *       \"dataSrc\": function ( json ) {\r\n\t\t *         for ( var i=0, ien=json.length ; i<ien ; i++ ) {\r\n\t\t *           json[i][0] = '<a href=\"/message/'+json[i][0]+'>View message</a>';\r\n\t\t *         }\r\n\t\t *         return json;\r\n\t\t *       }\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Add data to the request\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": {\r\n\t\t *       \"url\": \"data.json\",\r\n\t\t *       \"data\": function ( d ) {\r\n\t\t *         return {\r\n\t\t *           \"extra_search\": $('#extra').val()\r\n\t\t *         };\r\n\t\t *       }\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Send request as POST\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": {\r\n\t\t *       \"url\": \"data.json\",\r\n\t\t *       \"type\": \"POST\"\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t *   // Get the data from localStorage (could interface with a form for\r\n\t\t *   // adding, editing and removing rows).\r\n\t\t *   $('#example').dataTable( {\r\n\t\t *     \"ajax\": function (data, callback, settings) {\r\n\t\t *       callback(\r\n\t\t *         JSON.parse( localStorage.getItem('dataTablesData') )\r\n\t\t *       );\r\n\t\t *     }\r\n\t\t *   } );\r\n\t\t */\r\n\t\t\"ajax\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter allows you to readily specify the entries in the length drop\r\n\t\t * down menu that DataTables shows when pagination is enabled. It can be\r\n\t\t * either a 1D array of options which will be used for both the displayed\r\n\t\t * option and the value, or a 2D array which will use the array in the first\r\n\t\t * position as the value, and the array in the second position as the\r\n\t\t * displayed options (useful for language strings such as 'All').\r\n\t\t *\r\n\t\t * Note that the `pageLength` property will be automatically set to the\r\n\t\t * first value given in this array, unless `pageLength` is also provided.\r\n\t\t *  @type array\r\n\t\t *  @default [ 10, 25, 50, 100 ]\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.lengthMenu\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"lengthMenu\": [[10, 25, 50, -1], [10, 25, 50, \"All\"]]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"aLengthMenu\": [ 10, 25, 50, 100 ],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The `columns` option in the initialisation parameter allows you to define\r\n\t\t * details about the way individual columns behave. For a full list of\r\n\t\t * column options that can be set, please see\r\n\t\t * {@link DataTable.defaults.column}. Note that if you use `columns` to\r\n\t\t * define your columns, you must have an entry in the array for every single\r\n\t\t * column that you have in your table (these can be null if you don't which\r\n\t\t * to specify any options).\r\n\t\t *  @member\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column\r\n\t\t */\r\n\t\t\"aoColumns\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Very similar to `columns`, `columnDefs` allows you to target a specific\r\n\t\t * column, multiple columns, or all columns, using the `targets` property of\r\n\t\t * each object in the array. This allows great flexibility when creating\r\n\t\t * tables, as the `columnDefs` arrays can be of any length, targeting the\r\n\t\t * columns you specifically want. `columnDefs` may use any of the column\r\n\t\t * options available: {@link DataTable.defaults.column}, but it _must_\r\n\t\t * have `targets` defined in each object in the array. Values in the `targets`\r\n\t\t * array may be:\r\n\t\t *   <ul>\r\n\t\t *     <li>a string - class name will be matched on the TH for the column</li>\r\n\t\t *     <li>0 or a positive integer - column index counting from the left</li>\r\n\t\t *     <li>a negative integer - column index counting from the right</li>\r\n\t\t *     <li>the string \"_all\" - all columns (i.e. assign a default)</li>\r\n\t\t *   </ul>\r\n\t\t *  @member\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.columnDefs\r\n\t\t */\r\n\t\t\"aoColumnDefs\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Basically the same as `search`, this parameter defines the individual column\r\n\t\t * filtering state at initialisation time. The array must be of the same size\r\n\t\t * as the number of columns, and each element be an object with the parameters\r\n\t\t * `search` and `escapeRegex` (the latter is optional). 'null' is also\r\n\t\t * accepted and the default will be used.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.searchCols\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"searchCols\": [\r\n\t\t *          null,\r\n\t\t *          { \"search\": \"My filter\" },\r\n\t\t *          null,\r\n\t\t *          { \"search\": \"^[0-9]\", \"escapeRegex\": false }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"aoSearchCols\": [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * An array of CSS classes that should be applied to displayed rows. This\r\n\t\t * array may be of any length, and DataTables will apply each class\r\n\t\t * sequentially, looping when required.\r\n\t\t *  @type array\r\n\t\t *  @default null <i>Will take the values determined by the `oClasses.stripe*`\r\n\t\t *    options</i>\r\n\t\t *\r\n\t\t *  @dtopt Option\r\n\t\t *  @name DataTable.defaults.stripeClasses\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stripeClasses\": [ 'strip1', 'strip2', 'strip3' ]\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"asStripeClasses\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable automatic column width calculation. This can be disabled\r\n\t\t * as an optimisation (it takes some time to calculate the widths) if the\r\n\t\t * tables widths are passed in using `columns`.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.autoWidth\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"autoWidth\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bAutoWidth\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Deferred rendering can provide DataTables with a huge speed boost when you\r\n\t\t * are using an Ajax or JS data source for the table. This option, when set to\r\n\t\t * true, will cause DataTables to defer the creation of the table elements for\r\n\t\t * each row until they are needed for a draw - saving a significant amount of\r\n\t\t * time.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.deferRender\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"ajax\": \"sources/arrays.txt\",\r\n\t\t *        \"deferRender\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bDeferRender\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Replace a DataTable which matches the given selector and replace it with\r\n\t\t * one which has the properties of the new initialisation object passed. If no\r\n\t\t * table matches the selector, then the new DataTable will be constructed as\r\n\t\t * per normal.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.destroy\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"srollY\": \"200px\",\r\n\t\t *        \"paginate\": false\r\n\t\t *      } );\r\n\t\t *\r\n\t\t *      // Some time later....\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"filter\": false,\r\n\t\t *        \"destroy\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bDestroy\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable filtering of data. Filtering in DataTables is \"smart\" in\r\n\t\t * that it allows the end user to input multiple words (space separated) and\r\n\t\t * will match a row containing those words, even if not in the order that was\r\n\t\t * specified (this allow matching across multiple columns). Note that if you\r\n\t\t * wish to use filtering in DataTables this must remain 'true' - to remove the\r\n\t\t * default filtering input box and retain filtering abilities, please use\r\n\t\t * {@link DataTable.defaults.dom}.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.searching\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"searching\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bFilter\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the table information display. This shows information\r\n\t\t * about the data that is currently visible on the page, including information\r\n\t\t * about filtered data if that action is being performed.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.info\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"info\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bInfo\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable jQuery UI ThemeRoller support (required as ThemeRoller requires some\r\n\t\t * slightly different and additional mark-up from what DataTables has\r\n\t\t * traditionally used).\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.jQueryUI\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"jQueryUI\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bJQueryUI\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Allows the end user to select the size of a formatted page from a select\r\n\t\t * menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.lengthChange\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"lengthChange\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bLengthChange\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable pagination.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.paging\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"paging\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bPaginate\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the display of a 'processing' indicator when the table is\r\n\t\t * being processed (e.g. a sort). This is particularly useful for tables with\r\n\t\t * large amounts of data where it can take a noticeable amount of time to sort\r\n\t\t * the entries.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.processing\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"processing\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bProcessing\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Retrieve the DataTables object for the given selector. Note that if the\r\n\t\t * table has already been initialised, this parameter will cause DataTables\r\n\t\t * to simply return the object that has already been set up - it will not take\r\n\t\t * account of any changes you might have made to the initialisation object\r\n\t\t * passed to DataTables (setting this parameter to true is an acknowledgement\r\n\t\t * that you understand this). `destroy` can be used to reinitialise a table if\r\n\t\t * you need.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.retrieve\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      initTable();\r\n\t\t *      tableActions();\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *    function initTable ()\r\n\t\t *    {\r\n\t\t *      return $('#example').dataTable( {\r\n\t\t *        \"scrollY\": \"200px\",\r\n\t\t *        \"paginate\": false,\r\n\t\t *        \"retrieve\": true\r\n\t\t *      } );\r\n\t\t *    }\r\n\t\t *\r\n\t\t *    function tableActions ()\r\n\t\t *    {\r\n\t\t *      var table = initTable();\r\n\t\t *      // perform API operations with oTable\r\n\t\t *    }\r\n\t\t */\r\n\t\t\"bRetrieve\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * When vertical (y) scrolling is enabled, DataTables will force the height of\r\n\t\t * the table's viewport to the given height at all times (useful for layout).\r\n\t\t * However, this can look odd when filtering data down to a small data set,\r\n\t\t * and the footer is left \"floating\" further down. This parameter (when\r\n\t\t * enabled) will cause DataTables to collapse the table's viewport down when\r\n\t\t * the result set will fit within the given Y height.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.scrollCollapse\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"scrollY\": \"200\",\r\n\t\t *        \"scrollCollapse\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bScrollCollapse\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Configure DataTables to use server-side processing. Note that the\r\n\t\t * `ajax` parameter must also be given in order to give DataTables a\r\n\t\t * source to obtain the required data for each draw.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.serverSide\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"serverSide\": true,\r\n\t\t *        \"ajax\": \"xhr.php\"\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bServerSide\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable sorting of columns. Sorting of individual columns can be\r\n\t\t * disabled by the `sortable` option for each column.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.ordering\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"ordering\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bSort\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or display DataTables' ability to sort multiple columns at the\r\n\t\t * same time (activated by shift-click by the user).\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.orderMulti\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Disable multiple column sorting ability\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"orderMulti\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bSortMulti\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Allows control over whether DataTables should use the top (true) unique\r\n\t\t * cell that is found for a single column, or the bottom (false - default).\r\n\t\t * This is useful when using complex headers.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.orderCellsTop\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"orderCellsTop\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bSortCellsTop\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the addition of the classes `sorting\\_1`, `sorting\\_2` and\r\n\t\t * `sorting\\_3` to the columns which are currently being sorted on. This is\r\n\t\t * presented as a feature switch as it can increase processing time (while\r\n\t\t * classes are removed and added) so for large data sets you might want to\r\n\t\t * turn this off.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.orderClasses\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"orderClasses\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bSortClasses\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable state saving. When enabled HTML5 `localStorage` will be\r\n\t\t * used to save table display information such as pagination information,\r\n\t\t * display length, filtering and sorting. As such when the end user reloads\r\n\t\t * the page the display display will match what thy had previously set up.\r\n\t\t *\r\n\t\t * Due to the use of `localStorage` the default state saving is not supported\r\n\t\t * in IE6 or 7. If state saving is required in those browsers, use\r\n\t\t * `stateSaveCallback` to provide a storage solution such as cookies.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.stateSave\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function () {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bStateSave\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function is called when a TR element is created (and all TD child\r\n\t\t * elements have been inserted), or registered if using a DOM source, allowing\r\n\t\t * manipulation of the TR element (adding classes etc).\r\n\t\t *  @type function\r\n\t\t *  @param {node} row \"TR\" element for the current row\r\n\t\t *  @param {array} data Raw data array for this row\r\n\t\t *  @param {int} dataIndex The index of this row in the internal aoData array\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.createdRow\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"createdRow\": function( row, data, dataIndex ) {\r\n\t\t *          // Bold the grade for all 'A' grade browsers\r\n\t\t *          if ( data[4] == \"A\" )\r\n\t\t *          {\r\n\t\t *            $('td:eq(4)', row).html( '<b>A</b>' );\r\n\t\t *          }\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnCreatedRow\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function is called on every 'draw' event, and allows you to\r\n\t\t * dynamically modify any aspect you want about the created DOM.\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.drawCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"drawCallback\": function( settings ) {\r\n\t\t *          alert( 'DataTables has redrawn the table' );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnDrawCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Identical to fnHeaderCallback() but for the table footer this function\r\n\t\t * allows you to modify the table footer on every 'draw' event.\r\n\t\t *  @type function\r\n\t\t *  @param {node} foot \"TR\" element for the footer\r\n\t\t *  @param {array} data Full table data (as derived from the original HTML)\r\n\t\t *  @param {int} start Index for the current display starting point in the\r\n\t\t *    display array\r\n\t\t *  @param {int} end Index for the current display ending point in the\r\n\t\t *    display array\r\n\t\t *  @param {array int} display Index array to translate the visual position\r\n\t\t *    to the full data array\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.footerCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"footerCallback\": function( tfoot, data, start, end, display ) {\r\n\t\t *          tfoot.getElementsByTagName('th')[0].innerHTML = \"Starting index is \"+start;\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"fnFooterCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * When rendering large numbers in the information element for the table\r\n\t\t * (i.e. \"Showing 1 to 10 of 57 entries\") DataTables will render large numbers\r\n\t\t * to have a comma separator for the 'thousands' units (e.g. 1 million is\r\n\t\t * rendered as \"1,000,000\") to help readability for the end user. This\r\n\t\t * function will override the default method DataTables uses.\r\n\t\t *  @type function\r\n\t\t *  @member\r\n\t\t *  @param {int} toFormat number to be formatted\r\n\t\t *  @returns {string} formatted string for DataTables to show the number\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.formatNumber\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Format a number using a single quote for the separator (note that\r\n\t\t *    // this can also be done with the language.thousands option)\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"formatNumber\": function ( toFormat ) {\r\n\t\t *          return toFormat.toString().replace(\r\n\t\t *            /\\B(?=(\\d{3})+(?!\\d))/g, \"'\"\r\n\t\t *          );\r\n\t\t *        };\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnFormatNumber\": function ( toFormat ) {\r\n\t\t\treturn toFormat.toString().replace(\r\n\t\t\t\t/\\B(?=(\\d{3})+(?!\\d))/g,\r\n\t\t\t\tthis.oLanguage.sThousands\r\n\t\t\t);\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function is called on every 'draw' event, and allows you to\r\n\t\t * dynamically modify the header row. This can be used to calculate and\r\n\t\t * display useful information about the table.\r\n\t\t *  @type function\r\n\t\t *  @param {node} head \"TR\" element for the header\r\n\t\t *  @param {array} data Full table data (as derived from the original HTML)\r\n\t\t *  @param {int} start Index for the current display starting point in the\r\n\t\t *    display array\r\n\t\t *  @param {int} end Index for the current display ending point in the\r\n\t\t *    display array\r\n\t\t *  @param {array int} display Index array to translate the visual position\r\n\t\t *    to the full data array\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.headerCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"fheaderCallback\": function( head, data, start, end, display ) {\r\n\t\t *          head.getElementsByTagName('th')[0].innerHTML = \"Displaying \"+(end-start)+\" records\";\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"fnHeaderCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The information element can be used to convey information about the current\r\n\t\t * state of the table. Although the internationalisation options presented by\r\n\t\t * DataTables are quite capable of dealing with most customisations, there may\r\n\t\t * be times where you wish to customise the string further. This callback\r\n\t\t * allows you to do exactly that.\r\n\t\t *  @type function\r\n\t\t *  @param {object} oSettings DataTables settings object\r\n\t\t *  @param {int} start Starting position in data for the draw\r\n\t\t *  @param {int} end End position in data for the draw\r\n\t\t *  @param {int} max Total number of rows in the table (regardless of\r\n\t\t *    filtering)\r\n\t\t *  @param {int} total Total number of rows in the data set, after filtering\r\n\t\t *  @param {string} pre The string that DataTables has formatted using it's\r\n\t\t *    own rules\r\n\t\t *  @returns {string} The string to be displayed in the information element.\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.infoCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $('#example').dataTable( {\r\n\t\t *      \"infoCallback\": function( settings, start, end, max, total, pre ) {\r\n\t\t *        return start +\" to \"+ end;\r\n\t\t *      }\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnInfoCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Called when the table has been initialised. Normally DataTables will\r\n\t\t * initialise sequentially and there will be no need for this function,\r\n\t\t * however, this does not hold true when using external language information\r\n\t\t * since that is obtained using an async XHR call.\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} json The JSON object request from the server - only\r\n\t\t *    present if client-side Ajax sourced data is used\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.initComplete\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"initComplete\": function(settings, json) {\r\n\t\t *          alert( 'DataTables has finished its initialisation.' );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"fnInitComplete\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Called at the very start of each table draw and can be used to cancel the\r\n\t\t * draw by returning false, any other return (including undefined) results in\r\n\t\t * the full draw occurring).\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @returns {boolean} False will cancel the draw, anything else (including no\r\n\t\t *    return) will allow it to complete.\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.preDrawCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"preDrawCallback\": function( settings ) {\r\n\t\t *          if ( $('#test').val() == 1 ) {\r\n\t\t *            return false;\r\n\t\t *          }\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnPreDrawCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function allows you to 'post process' each row after it have been\r\n\t\t * generated for each table draw, but before it is rendered on screen. This\r\n\t\t * function might be used for setting the row class name etc.\r\n\t\t *  @type function\r\n\t\t *  @param {node} row \"TR\" element for the current row\r\n\t\t *  @param {array} data Raw data array for this row\r\n\t\t *  @param {int} displayIndex The display index for the current table draw\r\n\t\t *  @param {int} displayIndexFull The index of the data in the full list of\r\n\t\t *    rows (after filtering)\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.rowCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"rowCallback\": function( row, data, displayIndex, displayIndexFull ) {\r\n\t\t *          // Bold the grade for all 'A' grade browsers\r\n\t\t *          if ( data[4] == \"A\" ) {\r\n\t\t *            $('td:eq(4)', row).html( '<b>A</b>' );\r\n\t\t *          }\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnRowCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * This parameter allows you to override the default function which obtains\r\n\t\t * the data from the server so something more suitable for your application.\r\n\t\t * For example you could use POST data, or pull information from a Gears or\r\n\t\t * AIR database.\r\n\t\t *  @type function\r\n\t\t *  @member\r\n\t\t *  @param {string} source HTTP source to obtain the data from (`ajax`)\r\n\t\t *  @param {array} data A key/value pair object containing the data to send\r\n\t\t *    to the server\r\n\t\t *  @param {function} callback to be called on completion of the data get\r\n\t\t *    process that will draw the data on the page.\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.serverData\r\n\t\t *\r\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\r\n\t\t\"fnServerData\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t *  It is often useful to send extra data to the server when making an Ajax\r\n\t\t * request - for example custom filtering information, and this callback\r\n\t\t * function makes it trivial to send extra information to the server. The\r\n\t\t * passed in parameter is the data set that has been constructed by\r\n\t\t * DataTables, and you can add to this or modify it as you require.\r\n\t\t *  @type function\r\n\t\t *  @param {array} data Data array (array of objects which are name/value\r\n\t\t *    pairs) that has been constructed by DataTables and will be sent to the\r\n\t\t *    server. In the case of Ajax sourced data with server-side processing\r\n\t\t *    this will be an empty array, for server-side processing there will be a\r\n\t\t *    significant number of parameters!\r\n\t\t *  @returns {undefined} Ensure that you modify the data array passed in,\r\n\t\t *    as this is passed by reference.\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.serverParams\r\n\t\t *\r\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\r\n\t\t\"fnServerParams\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Load the table state. With this function you can define from where, and how, the\r\n\t\t * state of a table is loaded. By default DataTables will load from `localStorage`\r\n\t\t * but you might wish to use a server-side database or cookies.\r\n\t\t *  @type function\r\n\t\t *  @member\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} callback Callback that can be executed when done. It\r\n\t\t *    should be passed the loaded state object.\r\n\t\t *  @return {object} The DataTables state object to be loaded\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.stateLoadCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateLoadCallback\": function (settings, callback) {\r\n\t\t *          $.ajax( {\r\n\t\t *            \"url\": \"/state_load\",\r\n\t\t *            \"dataType\": \"json\",\r\n\t\t *            \"success\": function (json) {\r\n\t\t *              callback( json );\r\n\t\t *            }\r\n\t\t *          } );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnStateLoadCallback\": function ( settings ) {\r\n\t\t\ttry {\r\n\t\t\t\treturn JSON.parse(\r\n\t\t\t\t\t(settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem(\r\n\t\t\t\t\t\t'DataTables_'+settings.sInstance+'_'+location.pathname\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t} catch (e) {}\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callback which allows modification of the saved state prior to loading that state.\r\n\t\t * This callback is called when the table is loading state from the stored data, but\r\n\t\t * prior to the settings object being modified by the saved state. Note that for\r\n\t\t * plug-in authors, you should use the `stateLoadParams` event to load parameters for\r\n\t\t * a plug-in.\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} data The state object that is to be loaded\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.stateLoadParams\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Remove a saved filter, so filtering is never loaded\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateLoadParams\": function (settings, data) {\r\n\t\t *          data.oSearch.sSearch = \"\";\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Disallow state loading by returning false\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateLoadParams\": function (settings, data) {\r\n\t\t *          return false;\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnStateLoadParams\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callback that is called when the state has been loaded from the state saving method\r\n\t\t * and the DataTables settings object has been modified as a result of the loaded state.\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} data The state object that was loaded\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.stateLoaded\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Show an alert with the filtering value that was saved\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateLoaded\": function (settings, data) {\r\n\t\t *          alert( 'Saved filter was: '+data.oSearch.sSearch );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnStateLoaded\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Save the table state. This function allows you to define where and how the state\r\n\t\t * information for the table is stored By default DataTables will use `localStorage`\r\n\t\t * but you might wish to use a server-side database or cookies.\r\n\t\t *  @type function\r\n\t\t *  @member\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} data The state object to be saved\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.stateSaveCallback\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateSaveCallback\": function (settings, data) {\r\n\t\t *          // Send an Ajax request to the server with the state object\r\n\t\t *          $.ajax( {\r\n\t\t *            \"url\": \"/state_save\",\r\n\t\t *            \"data\": data,\r\n\t\t *            \"dataType\": \"json\",\r\n\t\t *            \"method\": \"POST\"\r\n\t\t *            \"success\": function () {}\r\n\t\t *          } );\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnStateSaveCallback\": function ( settings, data ) {\r\n\t\t\ttry {\r\n\t\t\t\t(settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem(\r\n\t\t\t\t\t'DataTables_'+settings.sInstance+'_'+location.pathname,\r\n\t\t\t\t\tJSON.stringify( data )\r\n\t\t\t\t);\r\n\t\t\t} catch (e) {}\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callback which allows modification of the state to be saved. Called when the table\r\n\t\t * has changed state a new state save is required. This method allows modification of\r\n\t\t * the state saving object prior to actually doing the save, including addition or\r\n\t\t * other state properties or modification. Note that for plug-in authors, you should\r\n\t\t * use the `stateSaveParams` event to save parameters for a plug-in.\r\n\t\t *  @type function\r\n\t\t *  @param {object} settings DataTables settings object\r\n\t\t *  @param {object} data The state object to be saved\r\n\t\t *\r\n\t\t *  @dtopt Callbacks\r\n\t\t *  @name DataTable.defaults.stateSaveParams\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Remove a saved filter, so filtering is never saved\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateSave\": true,\r\n\t\t *        \"stateSaveParams\": function (settings, data) {\r\n\t\t *          data.oSearch.sSearch = \"\";\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnStateSaveParams\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Duration for which the saved state information is considered valid. After this period\r\n\t\t * has elapsed the state will be returned to the default.\r\n\t\t * Value is given in seconds.\r\n\t\t *  @type int\r\n\t\t *  @default 7200 <i>(2 hours)</i>\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.stateDuration\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"stateDuration\": 60*60*24; // 1 day\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"iStateDuration\": 7200,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * When enabled DataTables will not make a request to the server for the first\r\n\t\t * page draw - rather it will use the data already on the page (no sorting etc\r\n\t\t * will be applied to it), thus saving on an XHR at load time. `deferLoading`\r\n\t\t * is used to indicate that deferred loading is required, but it is also used\r\n\t\t * to tell DataTables how many records there are in the full table (allowing\r\n\t\t * the information element and pagination to be displayed correctly). In the case\r\n\t\t * where a filtering is applied to the table on initial load, this can be\r\n\t\t * indicated by giving the parameter as an array, where the first element is\r\n\t\t * the number of records available after filtering and the second element is the\r\n\t\t * number of records without filtering (allowing the table information element\r\n\t\t * to be shown correctly).\r\n\t\t *  @type int | array\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.deferLoading\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // 57 records available in the table, no filtering applied\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"serverSide\": true,\r\n\t\t *        \"ajax\": \"scripts/server_processing.php\",\r\n\t\t *        \"deferLoading\": 57\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // 57 records after filtering, 100 without filtering (an initial filter applied)\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"serverSide\": true,\r\n\t\t *        \"ajax\": \"scripts/server_processing.php\",\r\n\t\t *        \"deferLoading\": [ 57, 100 ],\r\n\t\t *        \"search\": {\r\n\t\t *          \"search\": \"my_filter\"\r\n\t\t *        }\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"iDeferLoading\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Number of rows to display on a single page when using pagination. If\r\n\t\t * feature enabled (`lengthChange`) then the end user will be able to override\r\n\t\t * this to a custom setting using a pop-up menu.\r\n\t\t *  @type int\r\n\t\t *  @default 10\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.pageLength\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"pageLength\": 50\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"iDisplayLength\": 10,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Define the starting point for data display when using DataTables with\r\n\t\t * pagination. Note that this parameter is the number of records, rather than\r\n\t\t * the page number, so if you have 10 records per page and want to start on\r\n\t\t * the third page, it should be \"20\".\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.displayStart\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"displayStart\": 20\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"iDisplayStart\": 0,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * By default DataTables allows keyboard navigation of the table (sorting, paging,\r\n\t\t * and filtering) by adding a `tabindex` attribute to the required elements. This\r\n\t\t * allows you to tab through the controls and press the enter key to activate them.\r\n\t\t * The tabindex is default 0, meaning that the tab follows the flow of the document.\r\n\t\t * You can overrule this using this parameter if you wish. Use a value of -1 to\r\n\t\t * disable built-in keyboard navigation.\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.tabIndex\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"tabIndex\": 1\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"iTabIndex\": 0,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Classes that DataTables assigns to the various components and features\r\n\t\t * that it adds to the HTML table. This allows classes to be configured\r\n\t\t * during initialisation in addition to through the static\r\n\t\t * {@link DataTable.ext.oStdClasses} object).\r\n\t\t *  @namespace\r\n\t\t *  @name DataTable.defaults.classes\r\n\t\t */\r\n\t\t\"oClasses\": {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * All strings that DataTables uses in the user interface that it creates\r\n\t\t * are defined in this object, allowing you to modified them individually or\r\n\t\t * completely replace them all as required.\r\n\t\t *  @namespace\r\n\t\t *  @name DataTable.defaults.language\r\n\t\t */\r\n\t\t\"oLanguage\": {\r\n\t\t\t/**\r\n\t\t\t * Strings that are used for WAI-ARIA labels and controls only (these are not\r\n\t\t\t * actually visible on the page, but will be read by screenreaders, and thus\r\n\t\t\t * must be internationalised as well).\r\n\t\t\t *  @namespace\r\n\t\t\t *  @name DataTable.defaults.language.aria\r\n\t\t\t */\r\n\t\t\t\"oAria\": {\r\n\t\t\t\t/**\r\n\t\t\t\t * ARIA label that is added to the table headers when the column may be\r\n\t\t\t\t * sorted ascending by activing the column (click or return when focused).\r\n\t\t\t\t * Note that the column header is prefixed to this string.\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default : activate to sort column ascending\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.aria.sortAscending\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"aria\": {\r\n\t\t\t\t *            \"sortAscending\": \" - click/return to sort ascending\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sSortAscending\": \": activate to sort column ascending\",\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * ARIA label that is added to the table headers when the column may be\r\n\t\t\t\t * sorted descending by activing the column (click or return when focused).\r\n\t\t\t\t * Note that the column header is prefixed to this string.\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default : activate to sort column ascending\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.aria.sortDescending\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"aria\": {\r\n\t\t\t\t *            \"sortDescending\": \" - click/return to sort descending\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sSortDescending\": \": activate to sort column descending\"\r\n\t\t\t},\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Pagination string used by DataTables for the built-in pagination\r\n\t\t\t * control types.\r\n\t\t\t *  @namespace\r\n\t\t\t *  @name DataTable.defaults.language.paginate\r\n\t\t\t */\r\n\t\t\t\"oPaginate\": {\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use when using the 'full_numbers' type of pagination for the\r\n\t\t\t\t * button to take the user to the first page.\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default First\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.paginate.first\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"paginate\": {\r\n\t\t\t\t *            \"first\": \"First page\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sFirst\": \"First\",\r\n\t\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use when using the 'full_numbers' type of pagination for the\r\n\t\t\t\t * button to take the user to the last page.\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default Last\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.paginate.last\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"paginate\": {\r\n\t\t\t\t *            \"last\": \"Last page\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sLast\": \"Last\",\r\n\t\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use for the 'next' pagination button (to take the user to the\r\n\t\t\t\t * next page).\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default Next\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.paginate.next\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"paginate\": {\r\n\t\t\t\t *            \"next\": \"Next page\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sNext\": \"Next\",\r\n\t\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use for the 'previous' pagination button (to take the user to\r\n\t\t\t\t * the previous page).\r\n\t\t\t\t *  @type string\r\n\t\t\t\t *  @default Previous\r\n\t\t\t\t *\r\n\t\t\t\t *  @dtopt Language\r\n\t\t\t\t *  @name DataTable.defaults.language.paginate.previous\r\n\t\t\t\t *\r\n\t\t\t\t *  @example\r\n\t\t\t\t *    $(document).ready( function() {\r\n\t\t\t\t *      $('#example').dataTable( {\r\n\t\t\t\t *        \"language\": {\r\n\t\t\t\t *          \"paginate\": {\r\n\t\t\t\t *            \"previous\": \"Previous page\"\r\n\t\t\t\t *          }\r\n\t\t\t\t *        }\r\n\t\t\t\t *      } );\r\n\t\t\t\t *    } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sPrevious\": \"Previous\"\r\n\t\t\t},\r\n\t\r\n\t\t\t/**\r\n\t\t\t * This string is shown in preference to `zeroRecords` when the table is\r\n\t\t\t * empty of data (regardless of filtering). Note that this is an optional\r\n\t\t\t * parameter - if it is not given, the value of `zeroRecords` will be used\r\n\t\t\t * instead (either the default or given value).\r\n\t\t\t *  @type string\r\n\t\t\t *  @default No data available in table\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.emptyTable\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"emptyTable\": \"No data available in table\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sEmptyTable\": \"No data available in table\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * This string gives information to the end user about the information\r\n\t\t\t * that is current on display on the page. The following tokens can be\r\n\t\t\t * used in the string and will be dynamically replaced as the table\r\n\t\t\t * display updates. This tokens can be placed anywhere in the string, or\r\n\t\t\t * removed as needed by the language requires:\r\n\t\t\t *\r\n\t\t\t * * `\\_START\\_` - Display index of the first record on the current page\r\n\t\t\t * * `\\_END\\_` - Display index of the last record on the current page\r\n\t\t\t * * `\\_TOTAL\\_` - Number of records in the table after filtering\r\n\t\t\t * * `\\_MAX\\_` - Number of records in the table without filtering\r\n\t\t\t * * `\\_PAGE\\_` - Current page number\r\n\t\t\t * * `\\_PAGES\\_` - Total number of pages of data in the table\r\n\t\t\t *\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Showing _START_ to _END_ of _TOTAL_ entries\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.info\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"info\": \"Showing page _PAGE_ of _PAGES_\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sInfo\": \"Showing _START_ to _END_ of _TOTAL_ entries\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Display information string for when the table is empty. Typically the\r\n\t\t\t * format of this string should match `info`.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Showing 0 to 0 of 0 entries\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.infoEmpty\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"infoEmpty\": \"No entries to show\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sInfoEmpty\": \"Showing 0 to 0 of 0 entries\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * When a user filters the information in a table, this string is appended\r\n\t\t\t * to the information (`info`) to give an idea of how strong the filtering\r\n\t\t\t * is. The variable _MAX_ is dynamically updated.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default (filtered from _MAX_ total entries)\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.infoFiltered\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"infoFiltered\": \" - filtering from _MAX_ records\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sInfoFiltered\": \"(filtered from _MAX_ total entries)\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * If can be useful to append extra information to the info string at times,\r\n\t\t\t * and this variable does exactly that. This information will be appended to\r\n\t\t\t * the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are\r\n\t\t\t * being used) at all times.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default <i>Empty string</i>\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.infoPostFix\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"infoPostFix\": \"All records shown are derived from real information.\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sInfoPostFix\": \"\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * This decimal place operator is a little different from the other\r\n\t\t\t * language options since DataTables doesn't output floating point\r\n\t\t\t * numbers, so it won't ever use this for display of a number. Rather,\r\n\t\t\t * what this parameter does is modify the sort methods of the table so\r\n\t\t\t * that numbers which are in a format which has a character other than\r\n\t\t\t * a period (`.`) as a decimal place will be sorted numerically.\r\n\t\t\t *\r\n\t\t\t * Note that numbers with different decimal places cannot be shown in\r\n\t\t\t * the same table and still be sortable, the table must be consistent.\r\n\t\t\t * However, multiple different tables on the page can use different\r\n\t\t\t * decimal place characters.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default \r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.decimal\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"decimal\": \",\"\r\n\t\t\t *          \"thousands\": \".\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sDecimal\": \"\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * DataTables has a build in number formatter (`formatNumber`) which is\r\n\t\t\t * used to format large numbers that are used in the table information.\r\n\t\t\t * By default a comma is used, but this can be trivially changed to any\r\n\t\t\t * character you wish with this parameter.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default ,\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.thousands\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"thousands\": \"'\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sThousands\": \",\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Detail the action that will be taken when the drop down menu for the\r\n\t\t\t * pagination length option is changed. The '_MENU_' variable is replaced\r\n\t\t\t * with a default select list of 10, 25, 50 and 100, and can be replaced\r\n\t\t\t * with a custom select box if required.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Show _MENU_ entries\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.lengthMenu\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Language change only\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"lengthMenu\": \"Display _MENU_ records\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Language and options change\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"lengthMenu\": 'Display <select>'+\r\n\t\t\t *            '<option value=\"10\">10</option>'+\r\n\t\t\t *            '<option value=\"20\">20</option>'+\r\n\t\t\t *            '<option value=\"30\">30</option>'+\r\n\t\t\t *            '<option value=\"40\">40</option>'+\r\n\t\t\t *            '<option value=\"50\">50</option>'+\r\n\t\t\t *            '<option value=\"-1\">All</option>'+\r\n\t\t\t *            '</select> records'\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sLengthMenu\": \"Show _MENU_ entries\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * When using Ajax sourced data and during the first draw when DataTables is\r\n\t\t\t * gathering the data, this message is shown in an empty row in the table to\r\n\t\t\t * indicate to the end user the the data is being loaded. Note that this\r\n\t\t\t * parameter is not used when loading data by server-side processing, just\r\n\t\t\t * Ajax sourced data with client-side processing.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Loading...\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.loadingRecords\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"loadingRecords\": \"Please wait - loading...\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sLoadingRecords\": \"Loading...\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Text which is displayed when the table is processing a user action\r\n\t\t\t * (usually a sort command or similar).\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Processing...\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.processing\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"processing\": \"DataTables is currently busy\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sProcessing\": \"Processing...\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Details the actions that will be taken when the user types into the\r\n\t\t\t * filtering input text box. The variable \"_INPUT_\", if used in the string,\r\n\t\t\t * is replaced with the HTML text box for the filtering input allowing\r\n\t\t\t * control over where it appears in the string. If \"_INPUT_\" is not given\r\n\t\t\t * then the input box is appended to the string automatically.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default Search:\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.search\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Input text box will be appended at the end automatically\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"search\": \"Filter records:\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Specify where the filter should appear\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"search\": \"Apply filter _INPUT_ to table\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sSearch\": \"Search:\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Assign a `placeholder` attribute to the search `input` element\r\n\t\t\t *  @type string\r\n\t\t\t *  @default \r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.searchPlaceholder\r\n\t\t\t */\r\n\t\t\t\"sSearchPlaceholder\": \"\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * All of the language information can be stored in a file on the\r\n\t\t\t * server-side, which DataTables will look up if this parameter is passed.\r\n\t\t\t * It must store the URL of the language file, which is in a JSON format,\r\n\t\t\t * and the object has the same properties as the oLanguage object in the\r\n\t\t\t * initialiser object (i.e. the above parameters). Please refer to one of\r\n\t\t\t * the example language files to see how this works in action.\r\n\t\t\t *  @type string\r\n\t\t\t *  @default <i>Empty string - i.e. disabled</i>\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.url\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"url\": \"http://www.sprymedia.co.uk/dataTables/lang.txt\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sUrl\": \"\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Text shown inside the table records when the is no information to be\r\n\t\t\t * displayed after filtering. `emptyTable` is shown when there is simply no\r\n\t\t\t * information in the table at all (regardless of filtering).\r\n\t\t\t *  @type string\r\n\t\t\t *  @default No matching records found\r\n\t\t\t *\r\n\t\t\t *  @dtopt Language\r\n\t\t\t *  @name DataTable.defaults.language.zeroRecords\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $(document).ready( function() {\r\n\t\t\t *      $('#example').dataTable( {\r\n\t\t\t *        \"language\": {\r\n\t\t\t *          \"zeroRecords\": \"No records to display\"\r\n\t\t\t *        }\r\n\t\t\t *      } );\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\t\"sZeroRecords\": \"No matching records found\"\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter allows you to have define the global filtering state at\r\n\t\t * initialisation time. As an object the `search` parameter must be\r\n\t\t * defined, but all other parameters are optional. When `regex` is true,\r\n\t\t * the search string will be treated as a regular expression, when false\r\n\t\t * (default) it will be treated as a straight string. When `smart`\r\n\t\t * DataTables will use it's smart filtering methods (to word match at\r\n\t\t * any point in the data), when false this will not be done.\r\n\t\t *  @namespace\r\n\t\t *  @extends DataTable.models.oSearch\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.search\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"search\": {\"search\": \"Initial search\"}\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"oSearch\": $.extend( {}, DataTable.models.oSearch ),\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * By default DataTables will look for the property `data` (or `aaData` for\r\n\t\t * compatibility with DataTables 1.9-) when obtaining data from an Ajax\r\n\t\t * source or for server-side processing - this parameter allows that\r\n\t\t * property to be changed. You can use Javascript dotted object notation to\r\n\t\t * get a data source for multiple levels of nesting.\r\n\t\t *  @type string\r\n\t\t *  @default data\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.ajaxDataProp\r\n\t\t *\r\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\r\n\t\t\"sAjaxDataProp\": \"data\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * You can instruct DataTables to load data from an external\r\n\t\t * source using this parameter (use aData if you want to pass data in you\r\n\t\t * already have). Simply provide a url a JSON object can be obtained from.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.ajaxSource\r\n\t\t *\r\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\r\n\t\t\"sAjaxSource\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This initialisation variable allows you to specify exactly where in the\r\n\t\t * DOM you want DataTables to inject the various controls it adds to the page\r\n\t\t * (for example you might want the pagination controls at the top of the\r\n\t\t * table). DIV elements (with or without a custom class) can also be added to\r\n\t\t * aid styling. The follow syntax is used:\r\n\t\t *   <ul>\r\n\t\t *     <li>The following options are allowed:\r\n\t\t *       <ul>\r\n\t\t *         <li>'l' - Length changing</li>\r\n\t\t *         <li>'f' - Filtering input</li>\r\n\t\t *         <li>'t' - The table!</li>\r\n\t\t *         <li>'i' - Information</li>\r\n\t\t *         <li>'p' - Pagination</li>\r\n\t\t *         <li>'r' - pRocessing</li>\r\n\t\t *       </ul>\r\n\t\t *     </li>\r\n\t\t *     <li>The following constants are allowed:\r\n\t\t *       <ul>\r\n\t\t *         <li>'H' - jQueryUI theme \"header\" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')</li>\r\n\t\t *         <li>'F' - jQueryUI theme \"footer\" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')</li>\r\n\t\t *       </ul>\r\n\t\t *     </li>\r\n\t\t *     <li>The following syntax is expected:\r\n\t\t *       <ul>\r\n\t\t *         <li>'&lt;' and '&gt;' - div elements</li>\r\n\t\t *         <li>'&lt;\"class\" and '&gt;' - div with a class</li>\r\n\t\t *         <li>'&lt;\"#id\" and '&gt;' - div with an ID</li>\r\n\t\t *       </ul>\r\n\t\t *     </li>\r\n\t\t *     <li>Examples:\r\n\t\t *       <ul>\r\n\t\t *         <li>'&lt;\"wrapper\"flipt&gt;'</li>\r\n\t\t *         <li>'&lt;lf&lt;t&gt;ip&gt;'</li>\r\n\t\t *       </ul>\r\n\t\t *     </li>\r\n\t\t *   </ul>\r\n\t\t *  @type string\r\n\t\t *  @default lfrtip <i>(when `jQueryUI` is false)</i> <b>or</b>\r\n\t\t *    <\"H\"lfr>t<\"F\"ip> <i>(when `jQueryUI` is true)</i>\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.dom\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"dom\": '&lt;\"top\"i&gt;rt&lt;\"bottom\"flp&gt;&lt;\"clear\"&gt;'\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sDom\": \"lfrtip\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Search delay option. This will throttle full table searches that use the\r\n\t\t * DataTables provided search input element (it does not effect calls to\r\n\t\t * `dt-api search()`, providing a delay before the search is made.\r\n\t\t *  @type integer\r\n\t\t *  @default 0\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.searchDelay\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"searchDelay\": 200\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"searchDelay\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables features six different built-in options for the buttons to\r\n\t\t * display for pagination control:\r\n\t\t *\r\n\t\t * * `numbers` - Page number buttons only\r\n\t\t * * `simple` - 'Previous' and 'Next' buttons only\r\n\t\t * * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers\r\n\t\t * * `full` - 'First', 'Previous', 'Next' and 'Last' buttons\r\n\t\t * * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers\r\n\t\t * * `first_last_numbers` - 'First' and 'Last' buttons, plus page numbers\r\n\t\t *  \r\n\t\t * Further methods can be added using {@link DataTable.ext.oPagination}.\r\n\t\t *  @type string\r\n\t\t *  @default simple_numbers\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.pagingType\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"pagingType\": \"full_numbers\"\r\n\t\t *      } );\r\n\t\t *    } )\r\n\t\t */\r\n\t\t\"sPaginationType\": \"simple_numbers\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable horizontal scrolling. When a table is too wide to fit into a\r\n\t\t * certain layout, or you have a large number of columns in the table, you\r\n\t\t * can enable x-scrolling to show the table in a viewport, which can be\r\n\t\t * scrolled. This property can be `true` which will allow the table to\r\n\t\t * scroll horizontally when needed, or any CSS unit, or a number (in which\r\n\t\t * case it will be treated as a pixel measurement). Setting as simply `true`\r\n\t\t * is recommended.\r\n\t\t *  @type boolean|string\r\n\t\t *  @default <i>blank string - i.e. disabled</i>\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.scrollX\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"scrollX\": true,\r\n\t\t *        \"scrollCollapse\": true\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sScrollX\": \"\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This property can be used to force a DataTable to use more width than it\r\n\t\t * might otherwise do when x-scrolling is enabled. For example if you have a\r\n\t\t * table which requires to be well spaced, this parameter is useful for\r\n\t\t * \"over-sizing\" the table, and thus forcing scrolling. This property can by\r\n\t\t * any CSS unit, or a number (in which case it will be treated as a pixel\r\n\t\t * measurement).\r\n\t\t *  @type string\r\n\t\t *  @default <i>blank string - i.e. disabled</i>\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @name DataTable.defaults.scrollXInner\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"scrollX\": \"100%\",\r\n\t\t *        \"scrollXInner\": \"110%\"\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sScrollXInner\": \"\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable vertical scrolling. Vertical scrolling will constrain the DataTable\r\n\t\t * to the given height, and enable scrolling for any data which overflows the\r\n\t\t * current viewport. This can be used as an alternative to paging to display\r\n\t\t * a lot of data in a small area (although paging and scrolling can both be\r\n\t\t * enabled at the same time). This property can be any CSS unit, or a number\r\n\t\t * (in which case it will be treated as a pixel measurement).\r\n\t\t *  @type string\r\n\t\t *  @default <i>blank string - i.e. disabled</i>\r\n\t\t *\r\n\t\t *  @dtopt Features\r\n\t\t *  @name DataTable.defaults.scrollY\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"scrollY\": \"200px\",\r\n\t\t *        \"paginate\": false\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sScrollY\": \"\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * Set the HTTP method that is used to make the Ajax call for server-side\r\n\t\t * processing or Ajax sourced data.\r\n\t\t *  @type string\r\n\t\t *  @default GET\r\n\t\t *\r\n\t\t *  @dtopt Options\r\n\t\t *  @dtopt Server-side\r\n\t\t *  @name DataTable.defaults.serverMethod\r\n\t\t *\r\n\t\t *  @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\r\n\t\t\"sServerMethod\": \"GET\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables makes use of renderers when displaying HTML elements for\r\n\t\t * a table. These renderers can be added or modified by plug-ins to\r\n\t\t * generate suitable mark-up for a site. For example the Bootstrap\r\n\t\t * integration plug-in for DataTables uses a paging button renderer to\r\n\t\t * display pagination buttons in the mark-up required by Bootstrap.\r\n\t\t *\r\n\t\t * For further information about the renderers available see\r\n\t\t * DataTable.ext.renderer\r\n\t\t *  @type string|object\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.renderer\r\n\t\t *\r\n\t\t */\r\n\t\t\"renderer\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Set the data property name that DataTables should use to get a row's id\r\n\t\t * to set as the `id` property in the node.\r\n\t\t *  @type string\r\n\t\t *  @default DT_RowId\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.rowId\r\n\t\t */\r\n\t\t\"rowId\": \"DT_RowId\"\r\n\t};\r\n\t\r\n\t_fnHungarianMap( DataTable.defaults );\r\n\t\r\n\t\r\n\t\r\n\t/*\r\n\t * Developer note - See note in model.defaults.js about the use of Hungarian\r\n\t * notation and camel case.\r\n\t */\r\n\t\r\n\t/**\r\n\t * Column options that can be given to DataTables at initialisation time.\r\n\t *  @namespace\r\n\t */\r\n\tDataTable.defaults.column = {\r\n\t\t/**\r\n\t\t * Define which column(s) an order will occur on for this column. This\r\n\t\t * allows a column's ordering to take multiple columns into account when\r\n\t\t * doing a sort or use the data from a different column. For example first\r\n\t\t * name / last name columns make sense to do a multi-column sort over the\r\n\t\t * two columns.\r\n\t\t *  @type array|int\r\n\t\t *  @default null <i>Takes the value of the column index automatically</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.orderData\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"orderData\": [ 0, 1 ], \"targets\": [ 0 ] },\r\n\t\t *          { \"orderData\": [ 1, 0 ], \"targets\": [ 1 ] },\r\n\t\t *          { \"orderData\": 2, \"targets\": [ 2 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"orderData\": [ 0, 1 ] },\r\n\t\t *          { \"orderData\": [ 1, 0 ] },\r\n\t\t *          { \"orderData\": 2 },\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"aDataSort\": null,\r\n\t\t\"iDataSort\": -1,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * You can control the default ordering direction, and even alter the\r\n\t\t * behaviour of the sort handler (i.e. only allow ascending ordering etc)\r\n\t\t * using this parameter.\r\n\t\t *  @type array\r\n\t\t *  @default [ 'asc', 'desc' ]\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.orderSequence\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"orderSequence\": [ \"asc\" ], \"targets\": [ 1 ] },\r\n\t\t *          { \"orderSequence\": [ \"desc\", \"asc\", \"asc\" ], \"targets\": [ 2 ] },\r\n\t\t *          { \"orderSequence\": [ \"desc\" ], \"targets\": [ 3 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          null,\r\n\t\t *          { \"orderSequence\": [ \"asc\" ] },\r\n\t\t *          { \"orderSequence\": [ \"desc\", \"asc\", \"asc\" ] },\r\n\t\t *          { \"orderSequence\": [ \"desc\" ] },\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"asSorting\": [ 'asc', 'desc' ],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable filtering on the data in this column.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.searchable\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"searchable\": false, \"targets\": [ 0 ] }\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"searchable\": false },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bSearchable\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable ordering on this column.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.orderable\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"orderable\": false, \"targets\": [ 0 ] }\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"orderable\": false },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bSortable\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the display of this column.\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.visible\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"visible\": false, \"targets\": [ 0 ] }\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"visible\": false },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ] } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"bVisible\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Developer definable function that is called whenever a cell is created (Ajax source,\r\n\t\t * etc) or processed for input (DOM source). This can be used as a compliment to mRender\r\n\t\t * allowing you to modify the DOM element (add background colour for example) when the\r\n\t\t * element is available.\r\n\t\t *  @type function\r\n\t\t *  @param {element} td The TD node that has been created\r\n\t\t *  @param {*} cellData The Data for the cell\r\n\t\t *  @param {array|object} rowData The data for the whole row\r\n\t\t *  @param {int} row The row index for the aoData data store\r\n\t\t *  @param {int} col The column index for aoColumns\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.createdCell\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [3],\r\n\t\t *          \"createdCell\": function (td, cellData, rowData, row, col) {\r\n\t\t *            if ( cellData == \"1.7\" ) {\r\n\t\t *              $(td).css('color', 'blue')\r\n\t\t *            }\r\n\t\t *          }\r\n\t\t *        } ]\r\n\t\t *      });\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"fnCreatedCell\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter has been replaced by `data` in DataTables to ensure naming\r\n\t\t * consistency. `dataProp` can still be used, as there is backwards\r\n\t\t * compatibility in DataTables for this option, but it is strongly\r\n\t\t * recommended that you use `data` in preference to `dataProp`.\r\n\t\t *  @name DataTable.defaults.column.dataProp\r\n\t\t */\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This property can be used to read data from any data source property,\r\n\t\t * including deeply nested objects / properties. `data` can be given in a\r\n\t\t * number of different ways which effect its behaviour:\r\n\t\t *\r\n\t\t * * `integer` - treated as an array index for the data source. This is the\r\n\t\t *   default that DataTables uses (incrementally increased for each column).\r\n\t\t * * `string` - read an object property from the data source. There are\r\n\t\t *   three 'special' options that can be used in the string to alter how\r\n\t\t *   DataTables reads the data from the source object:\r\n\t\t *    * `.` - Dotted Javascript notation. Just as you use a `.` in\r\n\t\t *      Javascript to read from nested objects, so to can the options\r\n\t\t *      specified in `data`. For example: `browser.version` or\r\n\t\t *      `browser.name`. If your object parameter name contains a period, use\r\n\t\t *      `\\\\` to escape it - i.e. `first\\\\.name`.\r\n\t\t *    * `[]` - Array notation. DataTables can automatically combine data\r\n\t\t *      from and array source, joining the data with the characters provided\r\n\t\t *      between the two brackets. For example: `name[, ]` would provide a\r\n\t\t *      comma-space separated list from the source array. If no characters\r\n\t\t *      are provided between the brackets, the original array source is\r\n\t\t *      returned.\r\n\t\t *    * `()` - Function notation. Adding `()` to the end of a parameter will\r\n\t\t *      execute a function of the name given. For example: `browser()` for a\r\n\t\t *      simple function on the data source, `browser.version()` for a\r\n\t\t *      function in a nested property or even `browser().version` to get an\r\n\t\t *      object property if the function called returns an object. Note that\r\n\t\t *      function notation is recommended for use in `render` rather than\r\n\t\t *      `data` as it is much simpler to use as a renderer.\r\n\t\t * * `null` - use the original data source for the row rather than plucking\r\n\t\t *   data directly from it. This action has effects on two other\r\n\t\t *   initialisation options:\r\n\t\t *    * `defaultContent` - When null is given as the `data` option and\r\n\t\t *      `defaultContent` is specified for the column, the value defined by\r\n\t\t *      `defaultContent` will be used for the cell.\r\n\t\t *    * `render` - When null is used for the `data` option and the `render`\r\n\t\t *      option is specified for the column, the whole data source for the\r\n\t\t *      row is used for the renderer.\r\n\t\t * * `function` - the function given will be executed whenever DataTables\r\n\t\t *   needs to set or get the data for a cell in the column. The function\r\n\t\t *   takes three parameters:\r\n\t\t *    * Parameters:\r\n\t\t *      * `{array|object}` The data source for the row\r\n\t\t *      * `{string}` The type call data requested - this will be 'set' when\r\n\t\t *        setting data or 'filter', 'display', 'type', 'sort' or undefined\r\n\t\t *        when gathering data. Note that when `undefined` is given for the\r\n\t\t *        type DataTables expects to get the raw data for the object back<\r\n\t\t *      * `{*}` Data to set when the second parameter is 'set'.\r\n\t\t *    * Return:\r\n\t\t *      * The return value from the function is not required when 'set' is\r\n\t\t *        the type of call, but otherwise the return is what will be used\r\n\t\t *        for the data requested.\r\n\t\t *\r\n\t\t * Note that `data` is a getter and setter option. If you just require\r\n\t\t * formatting of data for output, you will likely want to use `render` which\r\n\t\t * is simply a getter and thus simpler to use.\r\n\t\t *\r\n\t\t * Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The\r\n\t\t * name change reflects the flexibility of this property and is consistent\r\n\t\t * with the naming of mRender. If 'mDataProp' is given, then it will still\r\n\t\t * be used by DataTables, as it automatically maps the old name to the new\r\n\t\t * if required.\r\n\t\t *\r\n\t\t *  @type string|int|function|null\r\n\t\t *  @default null <i>Use automatically calculated column index</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.data\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Read table data from objects\r\n\t\t *    // JSON structure for each row:\r\n\t\t *    //   {\r\n\t\t *    //      \"engine\": {value},\r\n\t\t *    //      \"browser\": {value},\r\n\t\t *    //      \"platform\": {value},\r\n\t\t *    //      \"version\": {value},\r\n\t\t *    //      \"grade\": {value}\r\n\t\t *    //   }\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"ajaxSource\": \"sources/objects.txt\",\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"data\": \"engine\" },\r\n\t\t *          { \"data\": \"browser\" },\r\n\t\t *          { \"data\": \"platform\" },\r\n\t\t *          { \"data\": \"version\" },\r\n\t\t *          { \"data\": \"grade\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Read information from deeply nested objects\r\n\t\t *    // JSON structure for each row:\r\n\t\t *    //   {\r\n\t\t *    //      \"engine\": {value},\r\n\t\t *    //      \"browser\": {value},\r\n\t\t *    //      \"platform\": {\r\n\t\t *    //         \"inner\": {value}\r\n\t\t *    //      },\r\n\t\t *    //      \"details\": [\r\n\t\t *    //         {value}, {value}\r\n\t\t *    //      ]\r\n\t\t *    //   }\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"ajaxSource\": \"sources/deep.txt\",\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"data\": \"engine\" },\r\n\t\t *          { \"data\": \"browser\" },\r\n\t\t *          { \"data\": \"platform.inner\" },\r\n\t\t *          { \"data\": \"platform.details.0\" },\r\n\t\t *          { \"data\": \"platform.details.1\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `data` as a function to provide different information for\r\n\t\t *    // sorting, filtering and display. In this case, currency (price)\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": function ( source, type, val ) {\r\n\t\t *            if (type === 'set') {\r\n\t\t *              source.price = val;\r\n\t\t *              // Store the computed dislay and filter values for efficiency\r\n\t\t *              source.price_display = val==\"\" ? \"\" : \"$\"+numberFormat(val);\r\n\t\t *              source.price_filter  = val==\"\" ? \"\" : \"$\"+numberFormat(val)+\" \"+val;\r\n\t\t *              return;\r\n\t\t *            }\r\n\t\t *            else if (type === 'display') {\r\n\t\t *              return source.price_display;\r\n\t\t *            }\r\n\t\t *            else if (type === 'filter') {\r\n\t\t *              return source.price_filter;\r\n\t\t *            }\r\n\t\t *            // 'sort', 'type' and undefined all just use the integer\r\n\t\t *            return source.price;\r\n\t\t *          }\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using default content\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": null,\r\n\t\t *          \"defaultContent\": \"Click to edit\"\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using array notation - outputting a list from an array\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": \"name[, ]\"\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t */\r\n\t\t\"mData\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This property is the rendering partner to `data` and it is suggested that\r\n\t\t * when you want to manipulate data for display (including filtering,\r\n\t\t * sorting etc) without altering the underlying data for the table, use this\r\n\t\t * property. `render` can be considered to be the the read only companion to\r\n\t\t * `data` which is read / write (then as such more complex). Like `data`\r\n\t\t * this option can be given in a number of different ways to effect its\r\n\t\t * behaviour:\r\n\t\t *\r\n\t\t * * `integer` - treated as an array index for the data source. This is the\r\n\t\t *   default that DataTables uses (incrementally increased for each column).\r\n\t\t * * `string` - read an object property from the data source. There are\r\n\t\t *   three 'special' options that can be used in the string to alter how\r\n\t\t *   DataTables reads the data from the source object:\r\n\t\t *    * `.` - Dotted Javascript notation. Just as you use a `.` in\r\n\t\t *      Javascript to read from nested objects, so to can the options\r\n\t\t *      specified in `data`. For example: `browser.version` or\r\n\t\t *      `browser.name`. If your object parameter name contains a period, use\r\n\t\t *      `\\\\` to escape it - i.e. `first\\\\.name`.\r\n\t\t *    * `[]` - Array notation. DataTables can automatically combine data\r\n\t\t *      from and array source, joining the data with the characters provided\r\n\t\t *      between the two brackets. For example: `name[, ]` would provide a\r\n\t\t *      comma-space separated list from the source array. If no characters\r\n\t\t *      are provided between the brackets, the original array source is\r\n\t\t *      returned.\r\n\t\t *    * `()` - Function notation. Adding `()` to the end of a parameter will\r\n\t\t *      execute a function of the name given. For example: `browser()` for a\r\n\t\t *      simple function on the data source, `browser.version()` for a\r\n\t\t *      function in a nested property or even `browser().version` to get an\r\n\t\t *      object property if the function called returns an object.\r\n\t\t * * `object` - use different data for the different data types requested by\r\n\t\t *   DataTables ('filter', 'display', 'type' or 'sort'). The property names\r\n\t\t *   of the object is the data type the property refers to and the value can\r\n\t\t *   defined using an integer, string or function using the same rules as\r\n\t\t *   `render` normally does. Note that an `_` option _must_ be specified.\r\n\t\t *   This is the default value to use if you haven't specified a value for\r\n\t\t *   the data type requested by DataTables.\r\n\t\t * * `function` - the function given will be executed whenever DataTables\r\n\t\t *   needs to set or get the data for a cell in the column. The function\r\n\t\t *   takes three parameters:\r\n\t\t *    * Parameters:\r\n\t\t *      * {array|object} The data source for the row (based on `data`)\r\n\t\t *      * {string} The type call data requested - this will be 'filter',\r\n\t\t *        'display', 'type' or 'sort'.\r\n\t\t *      * {array|object} The full data source for the row (not based on\r\n\t\t *        `data`)\r\n\t\t *    * Return:\r\n\t\t *      * The return value from the function is what will be used for the\r\n\t\t *        data requested.\r\n\t\t *\r\n\t\t *  @type string|int|function|object|null\r\n\t\t *  @default null Use the data source value.\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.render\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Create a comma separated list from an array of objects\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"ajaxSource\": \"sources/deep.txt\",\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"data\": \"engine\" },\r\n\t\t *          { \"data\": \"browser\" },\r\n\t\t *          {\r\n\t\t *            \"data\": \"platform\",\r\n\t\t *            \"render\": \"[, ].name\"\r\n\t\t *          }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Execute a function to obtain data\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": null, // Use the full data source object for the renderer's source\r\n\t\t *          \"render\": \"browserName()\"\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // As an object, extracting different data for the different types\r\n\t\t *    // This would be used with a data source such as:\r\n\t\t *    //   { \"phone\": 5552368, \"phone_filter\": \"5552368 555-2368\", \"phone_display\": \"555-2368\" }\r\n\t\t *    // Here the `phone` integer is used for sorting and type detection, while `phone_filter`\r\n\t\t *    // (which has both forms) is used for filtering for if a user inputs either format, while\r\n\t\t *    // the formatted phone number is the one that is shown in the table.\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": null, // Use the full data source object for the renderer's source\r\n\t\t *          \"render\": {\r\n\t\t *            \"_\": \"phone\",\r\n\t\t *            \"filter\": \"phone_filter\",\r\n\t\t *            \"display\": \"phone_display\"\r\n\t\t *          }\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Use as a function to create a link from the data source\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"data\": \"download_link\",\r\n\t\t *          \"render\": function ( data, type, full ) {\r\n\t\t *            return '<a href=\"'+data+'\">Download</a>';\r\n\t\t *          }\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"mRender\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Change the cell type created for the column - either TD cells or TH cells. This\r\n\t\t * can be useful as TH cells have semantic meaning in the table body, allowing them\r\n\t\t * to act as a header for a row (you may wish to add scope='row' to the TH elements).\r\n\t\t *  @type string\r\n\t\t *  @default td\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.cellType\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Make the first column use TH cells\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [ {\r\n\t\t *          \"targets\": [ 0 ],\r\n\t\t *          \"cellType\": \"th\"\r\n\t\t *        } ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sCellType\": \"td\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Class to give to each cell in this column.\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.class\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"class\": \"my_class\", \"targets\": [ 0 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"class\": \"my_class\" },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sClass\": \"\",\r\n\t\r\n\t\t/**\r\n\t\t * When DataTables calculates the column widths to assign to each column,\r\n\t\t * it finds the longest string in each column and then constructs a\r\n\t\t * temporary table and reads the widths from that. The problem with this\r\n\t\t * is that \"mmm\" is much wider then \"iiii\", but the latter is a longer\r\n\t\t * string - thus the calculation can go wrong (doing it properly and putting\r\n\t\t * it into an DOM object and measuring that is horribly(!) slow). Thus as\r\n\t\t * a \"work around\" we provide this option. It will append its value to the\r\n\t\t * text that is found to be the longest string for the column - i.e. padding.\r\n\t\t * Generally you shouldn't need this!\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string<i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.contentPadding\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          {\r\n\t\t *            \"contentPadding\": \"mmm\"\r\n\t\t *          }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sContentPadding\": \"\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Allows a default value to be given for a column's data, and will be used\r\n\t\t * whenever a null data source is encountered (this can be because `data`\r\n\t\t * is set to null, or because the data source itself is null).\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.defaultContent\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          {\r\n\t\t *            \"data\": null,\r\n\t\t *            \"defaultContent\": \"Edit\",\r\n\t\t *            \"targets\": [ -1 ]\r\n\t\t *          }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          {\r\n\t\t *            \"data\": null,\r\n\t\t *            \"defaultContent\": \"Edit\"\r\n\t\t *          }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sDefaultContent\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter is only used in DataTables' server-side processing. It can\r\n\t\t * be exceptionally useful to know what columns are being displayed on the\r\n\t\t * client side, and to map these to database fields. When defined, the names\r\n\t\t * also allow DataTables to reorder information from the server if it comes\r\n\t\t * back in an unexpected order (i.e. if you switch your columns around on the\r\n\t\t * client-side, your server-side code does not also need updating).\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.name\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"name\": \"engine\", \"targets\": [ 0 ] },\r\n\t\t *          { \"name\": \"browser\", \"targets\": [ 1 ] },\r\n\t\t *          { \"name\": \"platform\", \"targets\": [ 2 ] },\r\n\t\t *          { \"name\": \"version\", \"targets\": [ 3 ] },\r\n\t\t *          { \"name\": \"grade\", \"targets\": [ 4 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"name\": \"engine\" },\r\n\t\t *          { \"name\": \"browser\" },\r\n\t\t *          { \"name\": \"platform\" },\r\n\t\t *          { \"name\": \"version\" },\r\n\t\t *          { \"name\": \"grade\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sName\": \"\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Defines a data source type for the ordering which can be used to read\r\n\t\t * real-time information from the table (updating the internally cached\r\n\t\t * version) prior to ordering. This allows ordering to occur on user\r\n\t\t * editable elements such as form inputs.\r\n\t\t *  @type string\r\n\t\t *  @default std\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.orderDataType\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"orderDataType\": \"dom-text\", \"targets\": [ 2, 3 ] },\r\n\t\t *          { \"type\": \"numeric\", \"targets\": [ 3 ] },\r\n\t\t *          { \"orderDataType\": \"dom-select\", \"targets\": [ 4 ] },\r\n\t\t *          { \"orderDataType\": \"dom-checkbox\", \"targets\": [ 5 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          { \"orderDataType\": \"dom-text\" },\r\n\t\t *          { \"orderDataType\": \"dom-text\", \"type\": \"numeric\" },\r\n\t\t *          { \"orderDataType\": \"dom-select\" },\r\n\t\t *          { \"orderDataType\": \"dom-checkbox\" }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sSortDataType\": \"std\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The title of this column.\r\n\t\t *  @type string\r\n\t\t *  @default null <i>Derived from the 'TH' value for this column in the\r\n\t\t *    original HTML table.</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.title\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"title\": \"My column title\", \"targets\": [ 0 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"title\": \"My column title\" },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sTitle\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The type allows you to specify how the data for this column will be\r\n\t\t * ordered. Four types (string, numeric, date and html (which will strip\r\n\t\t * HTML tags before ordering)) are currently available. Note that only date\r\n\t\t * formats understood by Javascript's Date() object will be accepted as type\r\n\t\t * date. For example: \"Mar 26, 2008 5:03 PM\". May take the values: 'string',\r\n\t\t * 'numeric', 'date' or 'html' (by default). Further types can be adding\r\n\t\t * through plug-ins.\r\n\t\t *  @type string\r\n\t\t *  @default null <i>Auto-detected from raw data</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.type\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"type\": \"html\", \"targets\": [ 0 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"type\": \"html\" },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sType\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Defining the width of the column, this parameter may take any CSS value\r\n\t\t * (3em, 20px etc). DataTables applies 'smart' widths to columns which have not\r\n\t\t * been given a specific width through this interface ensuring that the table\r\n\t\t * remains readable.\r\n\t\t *  @type string\r\n\t\t *  @default null <i>Automatic</i>\r\n\t\t *\r\n\t\t *  @name DataTable.defaults.column.width\r\n\t\t *  @dtopt Columns\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columnDefs`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columnDefs\": [\r\n\t\t *          { \"width\": \"20%\", \"targets\": [ 0 ] }\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Using `columns`\r\n\t\t *    $(document).ready( function() {\r\n\t\t *      $('#example').dataTable( {\r\n\t\t *        \"columns\": [\r\n\t\t *          { \"width\": \"20%\" },\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null,\r\n\t\t *          null\r\n\t\t *        ]\r\n\t\t *      } );\r\n\t\t *    } );\r\n\t\t */\r\n\t\t\"sWidth\": null\r\n\t};\r\n\t\r\n\t_fnHungarianMap( DataTable.defaults.column );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables settings object - this holds all the information needed for a\r\n\t * given table, including configuration, data and current application of the\r\n\t * table options. DataTables does not have a single instance for each DataTable\r\n\t * with the settings attached to that instance, but rather instances of the\r\n\t * DataTable \"class\" are created on-the-fly as needed (typically by a\r\n\t * $().dataTable() call) and the settings object is then applied to that\r\n\t * instance.\r\n\t *\r\n\t * Note that this object is related to {@link DataTable.defaults} but this\r\n\t * one is the internal data store for DataTables's cache of columns. It should\r\n\t * NOT be manipulated outside of DataTables. Any configuration should be done\r\n\t * through the initialisation options.\r\n\t *  @namespace\r\n\t *  @todo Really should attach the settings object to individual instances so we\r\n\t *    don't need to create new instances on each $().dataTable() call (if the\r\n\t *    table already exists). It would also save passing oSettings around and\r\n\t *    into every single function. However, this is a very significant\r\n\t *    architecture change for DataTables and will almost certainly break\r\n\t *    backwards compatibility with older installations. This is something that\r\n\t *    will be done in 2.0.\r\n\t */\r\n\tDataTable.models.oSettings = {\r\n\t\t/**\r\n\t\t * Primary features of DataTables and their enablement state.\r\n\t\t *  @namespace\r\n\t\t */\r\n\t\t\"oFeatures\": {\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Flag to say if DataTables should automatically try to calculate the\r\n\t\t\t * optimum table and columns widths (true) or not (false).\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bAutoWidth\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Delay the creation of TR and TD elements until they are actually\r\n\t\t\t * needed by a driven page draw. This can give a significant speed\r\n\t\t\t * increase for Ajax source and Javascript source data, but makes no\r\n\t\t\t * difference at all fro DOM and server-side processing tables.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bDeferRender\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Enable filtering on the table or not. Note that if this is disabled\r\n\t\t\t * then there is no filtering at all on the table, including fnFilter.\r\n\t\t\t * To just remove the filtering input use sDom and remove the 'f' option.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bFilter\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Table information element (the 'Showing x of y records' div) enable\r\n\t\t\t * flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bInfo\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Present a user control allowing the end user to change the page size\r\n\t\t\t * when pagination is enabled.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bLengthChange\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Pagination enabled or not. Note that if this is disabled then length\r\n\t\t\t * changing must also be disabled.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bPaginate\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Processing indicator enable flag whenever DataTables is enacting a\r\n\t\t\t * user request - typically an Ajax request for server-side processing.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bProcessing\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Server-side processing enabled flag - when enabled DataTables will\r\n\t\t\t * get all data from the server for every draw - there is no filtering,\r\n\t\t\t * sorting or paging done on the client-side.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bServerSide\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Sorting enablement flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bSort\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Multi-column sorting\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bSortMulti\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Apply a class to the columns which are being sorted to provide a\r\n\t\t\t * visual highlight or not. This can slow things down when enabled since\r\n\t\t\t * there is a lot of DOM interaction.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bSortClasses\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * State saving enablement flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bStateSave\": null\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Scrolling settings for a table.\r\n\t\t *  @namespace\r\n\t\t */\r\n\t\t\"oScroll\": {\r\n\t\t\t/**\r\n\t\t\t * When the table is shorter in height than sScrollY, collapse the\r\n\t\t\t * table container down to the height of the table (when true).\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type boolean\r\n\t\t\t */\r\n\t\t\t\"bCollapse\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Width of the scrollbar for the web-browser's platform. Calculated\r\n\t\t\t * during table initialisation.\r\n\t\t\t *  @type int\r\n\t\t\t *  @default 0\r\n\t\t\t */\r\n\t\t\t\"iBarWidth\": 0,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Viewport width for horizontal scrolling. Horizontal scrolling is\r\n\t\t\t * disabled if an empty string.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type string\r\n\t\t\t */\r\n\t\t\t\"sX\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Width to expand the table to when using x-scrolling. Typically you\r\n\t\t\t * should not need to use this.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type string\r\n\t\t\t *  @deprecated\r\n\t\t\t */\r\n\t\t\t\"sXInner\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Viewport height for vertical scrolling. Vertical scrolling is disabled\r\n\t\t\t * if an empty string.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t *  @type string\r\n\t\t\t */\r\n\t\t\t\"sY\": null\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Language information for the table.\r\n\t\t *  @namespace\r\n\t\t *  @extends DataTable.defaults.oLanguage\r\n\t\t */\r\n\t\t\"oLanguage\": {\r\n\t\t\t/**\r\n\t\t\t * Information callback function. See\r\n\t\t\t * {@link DataTable.defaults.fnInfoCallback}\r\n\t\t\t *  @type function\r\n\t\t\t *  @default null\r\n\t\t\t */\r\n\t\t\t\"fnInfoCallback\": null\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Browser support parameters\r\n\t\t *  @namespace\r\n\t\t */\r\n\t\t\"oBrowser\": {\r\n\t\t\t/**\r\n\t\t\t * Indicate if the browser incorrectly calculates width:100% inside a\r\n\t\t\t * scrolling element (IE6/7)\r\n\t\t\t *  @type boolean\r\n\t\t\t *  @default false\r\n\t\t\t */\r\n\t\t\t\"bScrollOversize\": false,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Determine if the vertical scrollbar is on the right or left of the\r\n\t\t\t * scrolling container - needed for rtl language layout, although not\r\n\t\t\t * all browsers move the scrollbar (Safari).\r\n\t\t\t *  @type boolean\r\n\t\t\t *  @default false\r\n\t\t\t */\r\n\t\t\t\"bScrollbarLeft\": false,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Flag for if `getBoundingClientRect` is fully supported or not\r\n\t\t\t *  @type boolean\r\n\t\t\t *  @default false\r\n\t\t\t */\r\n\t\t\t\"bBounding\": false,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Browser scrollbar width\r\n\t\t\t *  @type integer\r\n\t\t\t *  @default 0\r\n\t\t\t */\r\n\t\t\t\"barWidth\": 0\r\n\t\t},\r\n\t\r\n\t\r\n\t\t\"ajax\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Array referencing the nodes which are used for the features. The\r\n\t\t * parameters of this object match what is allowed by sDom - i.e.\r\n\t\t *   <ul>\r\n\t\t *     <li>'l' - Length changing</li>\r\n\t\t *     <li>'f' - Filtering input</li>\r\n\t\t *     <li>'t' - The table!</li>\r\n\t\t *     <li>'i' - Information</li>\r\n\t\t *     <li>'p' - Pagination</li>\r\n\t\t *     <li>'r' - pRocessing</li>\r\n\t\t *   </ul>\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aanFeatures\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Store data information - see {@link DataTable.models.oRow} for detailed\r\n\t\t * information.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoData\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of indexes which are in the current display (after filtering etc)\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aiDisplay\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of indexes for display - no filtering\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aiDisplayMaster\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Map of row ids to data indexes\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */\r\n\t\t\"aIds\": {},\r\n\t\r\n\t\t/**\r\n\t\t * Store information about each column that is in use\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoColumns\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Store information about the table's header\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoHeader\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Store information about the table's footer\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoFooter\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Store the applied global search information in case we want to force a\r\n\t\t * research or compare the old search to a new one.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @namespace\r\n\t\t *  @extends DataTable.models.oSearch\r\n\t\t */\r\n\t\t\"oPreviousSearch\": {},\r\n\t\r\n\t\t/**\r\n\t\t * Store the applied search for each column - see\r\n\t\t * {@link DataTable.models.oSearch} for the format that is used for the\r\n\t\t * filtering information for each column.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoPreSearchCols\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Sorting that is applied to the table. Note that the inner arrays are\r\n\t\t * used in the following manner:\r\n\t\t * <ul>\r\n\t\t *   <li>Index 0 - column number</li>\r\n\t\t *   <li>Index 1 - current sorting direction</li>\r\n\t\t * </ul>\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type array\r\n\t\t *  @todo These inner arrays should really be objects\r\n\t\t */\r\n\t\t\"aaSorting\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Sorting that is always applied to the table (i.e. prefixed in front of\r\n\t\t * aaSorting).\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aaSortingFixed\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Classes to use for the striping of a table.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"asStripeClasses\": null,\r\n\t\r\n\t\t/**\r\n\t\t * If restoring a table - we should restore its striping classes as well\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"asDestroyStripes\": [],\r\n\t\r\n\t\t/**\r\n\t\t * If restoring a table - we should restore its width\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t */\r\n\t\t\"sDestroyWidth\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions array for every time a row is inserted (i.e. on a draw).\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoRowCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions for the header on each draw.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoHeaderCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback function for the footer on each draw.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoFooterCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for draw callback functions\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoDrawCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for row created function\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoRowCreatedCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions for just before the table is redrawn. A return of\r\n\t\t * false will be used to cancel the draw.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoPreDrawCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions for when the table has been initialised.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoInitComplete\": [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callbacks for modifying the settings to be stored for state saving, prior to\r\n\t\t * saving state.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoStateSaveParams\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callbacks for modifying the settings that have been stored for state saving\r\n\t\t * prior to using the stored values to restore the state.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoStateLoadParams\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callbacks for operating on the settings object once the saved state has been\r\n\t\t * loaded\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoStateLoaded\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Cache the table ID for quick access\r\n\t\t *  @type string\r\n\t\t *  @default <i>Empty string</i>\r\n\t\t */\r\n\t\t\"sTableId\": \"\",\r\n\t\r\n\t\t/**\r\n\t\t * The TABLE node for the main table\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"nTable\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Permanent ref to the thead element\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"nTHead\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Permanent ref to the tfoot element - if it exists\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"nTFoot\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Permanent ref to the tbody element\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"nTBody\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Cache the wrapper node (contains all DataTables controlled elements)\r\n\t\t *  @type node\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"nTableWrapper\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate if when using server-side processing the loading of data\r\n\t\t * should be deferred until the second draw.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t */\r\n\t\t\"bDeferLoading\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate if all required information has been read in\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t */\r\n\t\t\"bInitialised\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Information about open rows. Each object in the array has the parameters\r\n\t\t * 'nTr' and 'nParent'\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoOpenRows\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Dictate the positioning of DataTables' control elements - see\r\n\t\t * {@link DataTable.model.oInit.sDom}.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"sDom\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Search delay (in mS)\r\n\t\t *  @type integer\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"searchDelay\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Which type of pagination should be used.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type string\r\n\t\t *  @default two_button\r\n\t\t */\r\n\t\t\"sPaginationType\": \"two_button\",\r\n\t\r\n\t\t/**\r\n\t\t * The state duration (for `stateSave`) in seconds.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t */\r\n\t\t\"iStateDuration\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for state saving. Each array element is an\r\n\t\t * object with the following parameters:\r\n\t\t *   <ul>\r\n\t\t *     <li>function:fn - function to call. Takes two parameters, oSettings\r\n\t\t *       and the JSON string to save that has been thus far created. Returns\r\n\t\t *       a JSON string to be inserted into a json object\r\n\t\t *       (i.e. '\"param\": [ 0, 1, 2]')</li>\r\n\t\t *     <li>string:sName - name of callback</li>\r\n\t\t *   </ul>\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoStateSave\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for state loading. Each array element is an\r\n\t\t * object with the following parameters:\r\n\t\t *   <ul>\r\n\t\t *     <li>function:fn - function to call. Takes two parameters, oSettings\r\n\t\t *       and the object stored. May return false to cancel state loading</li>\r\n\t\t *     <li>string:sName - name of callback</li>\r\n\t\t *   </ul>\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoStateLoad\": [],\r\n\t\r\n\t\t/**\r\n\t\t * State that was saved. Useful for back reference\r\n\t\t *  @type object\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"oSavedState\": null,\r\n\t\r\n\t\t/**\r\n\t\t * State that was loaded. Useful for back reference\r\n\t\t *  @type object\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"oLoadedState\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Source url for AJAX data for the table.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"sAjaxSource\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Property from a given object from which to read the table data from. This\r\n\t\t * can be an empty string (when not server-side processing), in which case\r\n\t\t * it is  assumed an an array is given directly.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type string\r\n\t\t */\r\n\t\t\"sAjaxDataProp\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Note if draw should be blocked while getting data\r\n\t\t *  @type boolean\r\n\t\t *  @default true\r\n\t\t */\r\n\t\t\"bAjaxDataGet\": true,\r\n\t\r\n\t\t/**\r\n\t\t * The last jQuery XHR object that was used for server-side data gathering.\r\n\t\t * This can be used for working with the XHR information in one of the\r\n\t\t * callbacks\r\n\t\t *  @type object\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"jqXHR\": null,\r\n\t\r\n\t\t/**\r\n\t\t * JSON returned from the server in the last Ajax request\r\n\t\t *  @type object\r\n\t\t *  @default undefined\r\n\t\t */\r\n\t\t\"json\": undefined,\r\n\t\r\n\t\t/**\r\n\t\t * Data submitted as part of the last Ajax request\r\n\t\t *  @type object\r\n\t\t *  @default undefined\r\n\t\t */\r\n\t\t\"oAjaxData\": undefined,\r\n\t\r\n\t\t/**\r\n\t\t * Function to get the server-side data.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type function\r\n\t\t */\r\n\t\t\"fnServerData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Functions which are called prior to sending an Ajax request so extra\r\n\t\t * parameters can easily be sent to the server\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoServerParams\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if\r\n\t\t * required).\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type string\r\n\t\t */\r\n\t\t\"sServerMethod\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Format numbers for display.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type function\r\n\t\t */\r\n\t\t\"fnFormatNumber\": null,\r\n\t\r\n\t\t/**\r\n\t\t * List of options that can be used for the user selectable length menu.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aLengthMenu\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Counter for the draws that the table does. Also used as a tracker for\r\n\t\t * server-side processing\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t */\r\n\t\t\"iDraw\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate if a redraw is being done - useful for Ajax\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t */\r\n\t\t\"bDrawing\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Draw index (iDraw) of the last error when parsing the returned data\r\n\t\t *  @type int\r\n\t\t *  @default -1\r\n\t\t */\r\n\t\t\"iDrawError\": -1,\r\n\t\r\n\t\t/**\r\n\t\t * Paging display length\r\n\t\t *  @type int\r\n\t\t *  @default 10\r\n\t\t */\r\n\t\t\"_iDisplayLength\": 10,\r\n\t\r\n\t\t/**\r\n\t\t * Paging start point - aiDisplay index\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t */\r\n\t\t\"_iDisplayStart\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Server-side processing - number of records in the result set\r\n\t\t * (i.e. before filtering), Use fnRecordsTotal rather than\r\n\t\t * this property to get the value of the number of records, regardless of\r\n\t\t * the server-side processing setting.\r\n\t\t *  @type int\r\n\t\t *  @default 0\r\n\t\t *  @private\r\n\t\t */\r\n\t\t\"_iRecordsTotal\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Server-side processing - number of records in the current display set\r\n\t\t * (i.e. after filtering). Use fnRecordsDisplay rather than\r\n\t\t * this property to get the value of the number of records, regardless of\r\n\t\t * the server-side processing setting.\r\n\t\t *  @type boolean\r\n\t\t *  @default 0\r\n\t\t *  @private\r\n\t\t */\r\n\t\t\"_iRecordsDisplay\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if jQuery UI marking and classes should be used.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type boolean\r\n\t\t */\r\n\t\t\"bJUI\": null,\r\n\t\r\n\t\t/**\r\n\t\t * The classes to use for the table\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */\r\n\t\t\"oClasses\": {},\r\n\t\r\n\t\t/**\r\n\t\t * Flag attached to the settings object so you can check in the draw\r\n\t\t * callback if filtering has been done in the draw. Deprecated in favour of\r\n\t\t * events.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *  @deprecated\r\n\t\t */\r\n\t\t\"bFiltered\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Flag attached to the settings object so you can check in the draw\r\n\t\t * callback if sorting has been done in the draw. Deprecated in favour of\r\n\t\t * events.\r\n\t\t *  @type boolean\r\n\t\t *  @default false\r\n\t\t *  @deprecated\r\n\t\t */\r\n\t\t\"bSorted\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate that if multiple rows are in the header and there is more than\r\n\t\t * one unique cell per column, if the top one (true) or bottom one (false)\r\n\t\t * should be used for sorting / title by DataTables.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t *  @type boolean\r\n\t\t */\r\n\t\t\"bSortCellsTop\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Initialisation object that is used for the table\r\n\t\t *  @type object\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"oInit\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Destroy callback functions - for plug-ins to attach themselves to the\r\n\t\t * destroy so they can clean up markup and events.\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aoDestroyCallback\": [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Get the number of records in the current record set, before filtering\r\n\t\t *  @type function\r\n\t\t */\r\n\t\t\"fnRecordsTotal\": function ()\r\n\t\t{\r\n\t\t\treturn _fnDataSource( this ) == 'ssp' ?\r\n\t\t\t\tthis._iRecordsTotal * 1 :\r\n\t\t\t\tthis.aiDisplayMaster.length;\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Get the number of records in the current record set, after filtering\r\n\t\t *  @type function\r\n\t\t */\r\n\t\t\"fnRecordsDisplay\": function ()\r\n\t\t{\r\n\t\t\treturn _fnDataSource( this ) == 'ssp' ?\r\n\t\t\t\tthis._iRecordsDisplay * 1 :\r\n\t\t\t\tthis.aiDisplay.length;\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Get the display end point - aiDisplay index\r\n\t\t *  @type function\r\n\t\t */\r\n\t\t\"fnDisplayEnd\": function ()\r\n\t\t{\r\n\t\t\tvar\r\n\t\t\t\tlen      = this._iDisplayLength,\r\n\t\t\t\tstart    = this._iDisplayStart,\r\n\t\t\t\tcalc     = start + len,\r\n\t\t\t\trecords  = this.aiDisplay.length,\r\n\t\t\t\tfeatures = this.oFeatures,\r\n\t\t\t\tpaginate = features.bPaginate;\r\n\t\r\n\t\t\tif ( features.bServerSide ) {\r\n\t\t\t\treturn paginate === false || len === -1 ?\r\n\t\t\t\t\tstart + records :\r\n\t\t\t\t\tMath.min( start+len, this._iRecordsDisplay );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn ! paginate || calc>records || len===-1 ?\r\n\t\t\t\t\trecords :\r\n\t\t\t\t\tcalc;\r\n\t\t\t}\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * The DataTables object for this table\r\n\t\t *  @type object\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"oInstance\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Unique identifier for each instance of the DataTables object. If there\r\n\t\t * is an ID on the table node, then it takes that value, otherwise an\r\n\t\t * incrementing internal counter is used.\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"sInstance\": null,\r\n\t\r\n\t\t/**\r\n\t\t * tabindex attribute value that is added to DataTables control elements, allowing\r\n\t\t * keyboard navigation of the table and its controls.\r\n\t\t */\r\n\t\t\"iTabIndex\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * DIV container for the footer scrolling table if scrolling\r\n\t\t */\r\n\t\t\"nScrollHead\": null,\r\n\t\r\n\t\t/**\r\n\t\t * DIV container for the footer scrolling table if scrolling\r\n\t\t */\r\n\t\t\"nScrollFoot\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Last applied sort\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t */\r\n\t\t\"aLastSort\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Stored plug-in instances\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */\r\n\t\t\"oPlugins\": {},\r\n\t\r\n\t\t/**\r\n\t\t * Function used to get a row's id from the row's data\r\n\t\t *  @type function\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"rowIdFn\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Data location where to store a row's id\r\n\t\t *  @type string\r\n\t\t *  @default null\r\n\t\t */\r\n\t\t\"rowId\": null\r\n\t};\r\n\r\n\t/**\r\n\t * Extension object for DataTables that is used to provide all extension\r\n\t * options.\r\n\t *\r\n\t * Note that the `DataTable.ext` object is available through\r\n\t * `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is\r\n\t * also aliased to `jQuery.fn.dataTableExt` for historic reasons.\r\n\t *  @namespace\r\n\t *  @extends DataTable.models.ext\r\n\t */\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables extensions\r\n\t * \r\n\t * This namespace acts as a collection area for plug-ins that can be used to\r\n\t * extend DataTables capabilities. Indeed many of the build in methods\r\n\t * use this method to provide their own capabilities (sorting methods for\r\n\t * example).\r\n\t *\r\n\t * Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy\r\n\t * reasons\r\n\t *\r\n\t *  @namespace\r\n\t */\r\n\tDataTable.ext = _ext = {\r\n\t\t/**\r\n\t\t * Buttons. For use with the Buttons extension for DataTables. This is\r\n\t\t * defined here so other extensions can define buttons regardless of load\r\n\t\t * order. It is _not_ used by DataTables core.\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */\r\n\t\tbuttons: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Element class names\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */\r\n\t\tclasses: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables build type (expanded by the download builder)\r\n\t\t *\r\n\t\t *  @type string\r\n\t\t */\r\n\t\tbuilder: \"-source-\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Error reporting.\r\n\t\t * \r\n\t\t * How should DataTables report an error. Can take the value 'alert',\r\n\t\t * 'throw', 'none' or a function.\r\n\t\t *\r\n\t\t *  @type string|function\r\n\t\t *  @default alert\r\n\t\t */\r\n\t\terrMode: \"alert\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Feature plug-ins.\r\n\t\t * \r\n\t\t * This is an array of objects which describe the feature plug-ins that are\r\n\t\t * available to DataTables. These feature plug-ins are then available for\r\n\t\t * use through the `dom` initialisation option.\r\n\t\t * \r\n\t\t * Each feature plug-in is described by an object which must have the\r\n\t\t * following properties:\r\n\t\t * \r\n\t\t * * `fnInit` - function that is used to initialise the plug-in,\r\n\t\t * * `cFeature` - a character so the feature can be enabled by the `dom`\r\n\t\t *   instillation option. This is case sensitive.\r\n\t\t *\r\n\t\t * The `fnInit` function has the following input parameters:\r\n\t\t *\r\n\t\t * 1. `{object}` DataTables settings object: see\r\n\t\t *    {@link DataTable.models.oSettings}\r\n\t\t *\r\n\t\t * And the following return is expected:\r\n\t\t * \r\n\t\t * * {node|null} The element which contains your feature. Note that the\r\n\t\t *   return may also be void if your plug-in does not require to inject any\r\n\t\t *   DOM elements into DataTables control (`dom`) - for example this might\r\n\t\t *   be useful when developing a plug-in which allows table control via\r\n\t\t *   keyboard entry\r\n\t\t *\r\n\t\t *  @type array\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    $.fn.dataTable.ext.features.push( {\r\n\t\t *      \"fnInit\": function( oSettings ) {\r\n\t\t *        return new TableTools( { \"oDTSettings\": oSettings } );\r\n\t\t *      },\r\n\t\t *      \"cFeature\": \"T\"\r\n\t\t *    } );\r\n\t\t */\r\n\t\tfeature: [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Row searching.\r\n\t\t * \r\n\t\t * This method of searching is complimentary to the default type based\r\n\t\t * searching, and a lot more comprehensive as it allows you complete control\r\n\t\t * over the searching logic. Each element in this array is a function\r\n\t\t * (parameters described below) that is called for every row in the table,\r\n\t\t * and your logic decides if it should be included in the searching data set\r\n\t\t * or not.\r\n\t\t *\r\n\t\t * Searching functions have the following input parameters:\r\n\t\t *\r\n\t\t * 1. `{object}` DataTables settings object: see\r\n\t\t *    {@link DataTable.models.oSettings}\r\n\t\t * 2. `{array|object}` Data for the row to be processed (same as the\r\n\t\t *    original format that was passed in as the data source, or an array\r\n\t\t *    from a DOM data source\r\n\t\t * 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which\r\n\t\t *    can be useful to retrieve the `TR` element if you need DOM interaction.\r\n\t\t *\r\n\t\t * And the following return is expected:\r\n\t\t *\r\n\t\t * * {boolean} Include the row in the searched result set (true) or not\r\n\t\t *   (false)\r\n\t\t *\r\n\t\t * Note that as with the main search ability in DataTables, technically this\r\n\t\t * is \"filtering\", since it is subtractive. However, for consistency in\r\n\t\t * naming we call it searching here.\r\n\t\t *\r\n\t\t *  @type array\r\n\t\t *  @default []\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // The following example shows custom search being applied to the\r\n\t\t *    // fourth column (i.e. the data[3] index) based on two input values\r\n\t\t *    // from the end-user, matching the data in a certain range.\r\n\t\t *    $.fn.dataTable.ext.search.push(\r\n\t\t *      function( settings, data, dataIndex ) {\r\n\t\t *        var min = document.getElementById('min').value * 1;\r\n\t\t *        var max = document.getElementById('max').value * 1;\r\n\t\t *        var version = data[3] == \"-\" ? 0 : data[3]*1;\r\n\t\t *\r\n\t\t *        if ( min == \"\" && max == \"\" ) {\r\n\t\t *          return true;\r\n\t\t *        }\r\n\t\t *        else if ( min == \"\" && version < max ) {\r\n\t\t *          return true;\r\n\t\t *        }\r\n\t\t *        else if ( min < version && \"\" == max ) {\r\n\t\t *          return true;\r\n\t\t *        }\r\n\t\t *        else if ( min < version && version < max ) {\r\n\t\t *          return true;\r\n\t\t *        }\r\n\t\t *        return false;\r\n\t\t *      }\r\n\t\t *    );\r\n\t\t */\r\n\t\tsearch: [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Selector extensions\r\n\t\t *\r\n\t\t * The `selector` option can be used to extend the options available for the\r\n\t\t * selector modifier options (`selector-modifier` object data type) that\r\n\t\t * each of the three built in selector types offer (row, column and cell +\r\n\t\t * their plural counterparts). For example the Select extension uses this\r\n\t\t * mechanism to provide an option to select only rows, columns and cells\r\n\t\t * that have been marked as selected by the end user (`{selected: true}`),\r\n\t\t * which can be used in conjunction with the existing built in selector\r\n\t\t * options.\r\n\t\t *\r\n\t\t * Each property is an array to which functions can be pushed. The functions\r\n\t\t * take three attributes:\r\n\t\t *\r\n\t\t * * Settings object for the host table\r\n\t\t * * Options object (`selector-modifier` object type)\r\n\t\t * * Array of selected item indexes\r\n\t\t *\r\n\t\t * The return is an array of the resulting item indexes after the custom\r\n\t\t * selector has been applied.\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t */\r\n\t\tselector: {\r\n\t\t\tcell: [],\r\n\t\t\tcolumn: [],\r\n\t\t\trow: []\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Internal functions, exposed for used in plug-ins.\r\n\t\t * \r\n\t\t * Please note that you should not need to use the internal methods for\r\n\t\t * anything other than a plug-in (and even then, try to avoid if possible).\r\n\t\t * The internal function may change between releases.\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t */\r\n\t\tinternal: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Legacy configuration options. Enable and disable legacy options that\r\n\t\t * are available in DataTables.\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t */\r\n\t\tlegacy: {\r\n\t\t\t/**\r\n\t\t\t * Enable / disable DataTables 1.9 compatible server-side processing\r\n\t\t\t * requests\r\n\t\t\t *\r\n\t\t\t *  @type boolean\r\n\t\t\t *  @default null\r\n\t\t\t */\r\n\t\t\tajax: null\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Pagination plug-in methods.\r\n\t\t * \r\n\t\t * Each entry in this object is a function and defines which buttons should\r\n\t\t * be shown by the pagination rendering method that is used for the table:\r\n\t\t * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the\r\n\t\t * buttons are displayed in the document, while the functions here tell it\r\n\t\t * what buttons to display. This is done by returning an array of button\r\n\t\t * descriptions (what each button will do).\r\n\t\t *\r\n\t\t * Pagination types (the four built in options and any additional plug-in\r\n\t\t * options defined here) can be used through the `paginationType`\r\n\t\t * initialisation parameter.\r\n\t\t *\r\n\t\t * The functions defined take two parameters:\r\n\t\t *\r\n\t\t * 1. `{int} page` The current page index\r\n\t\t * 2. `{int} pages` The number of pages in the table\r\n\t\t *\r\n\t\t * Each function is expected to return an array where each element of the\r\n\t\t * array can be one of:\r\n\t\t *\r\n\t\t * * `first` - Jump to first page when activated\r\n\t\t * * `last` - Jump to last page when activated\r\n\t\t * * `previous` - Show previous page when activated\r\n\t\t * * `next` - Show next page when activated\r\n\t\t * * `{int}` - Show page of the index given\r\n\t\t * * `{array}` - A nested array containing the above elements to add a\r\n\t\t *   containing 'DIV' element (might be useful for styling).\r\n\t\t *\r\n\t\t * Note that DataTables v1.9- used this object slightly differently whereby\r\n\t\t * an object with two functions would be defined for each plug-in. That\r\n\t\t * ability is still supported by DataTables 1.10+ to provide backwards\r\n\t\t * compatibility, but this option of use is now decremented and no longer\r\n\t\t * documented in DataTables 1.10+.\r\n\t\t *\r\n\t\t *  @type object\r\n\t\t *  @default {}\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Show previous, next and current page buttons only\r\n\t\t *    $.fn.dataTableExt.oPagination.current = function ( page, pages ) {\r\n\t\t *      return [ 'previous', page, 'next' ];\r\n\t\t *    };\r\n\t\t */\r\n\t\tpager: {},\r\n\t\r\n\t\r\n\t\trenderer: {\r\n\t\t\tpageButton: {},\r\n\t\t\theader: {}\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Ordering plug-ins - custom data source\r\n\t\t * \r\n\t\t * The extension options for ordering of data available here is complimentary\r\n\t\t * to the default type based ordering that DataTables typically uses. It\r\n\t\t * allows much greater control over the the data that is being used to\r\n\t\t * order a column, but is necessarily therefore more complex.\r\n\t\t * \r\n\t\t * This type of ordering is useful if you want to do ordering based on data\r\n\t\t * live from the DOM (for example the contents of an 'input' element) rather\r\n\t\t * than just the static string that DataTables knows of.\r\n\t\t * \r\n\t\t * The way these plug-ins work is that you create an array of the values you\r\n\t\t * wish to be ordering for the column in question and then return that\r\n\t\t * array. The data in the array much be in the index order of the rows in\r\n\t\t * the table (not the currently ordering order!). Which order data gathering\r\n\t\t * function is run here depends on the `dt-init columns.orderDataType`\r\n\t\t * parameter that is used for the column (if any).\r\n\t\t *\r\n\t\t * The functions defined take two parameters:\r\n\t\t *\r\n\t\t * 1. `{object}` DataTables settings object: see\r\n\t\t *    {@link DataTable.models.oSettings}\r\n\t\t * 2. `{int}` Target column index\r\n\t\t *\r\n\t\t * Each function is expected to return an array:\r\n\t\t *\r\n\t\t * * `{array}` Data for the column to be ordering upon\r\n\t\t *\r\n\t\t *  @type array\r\n\t\t *\r\n\t\t *  @example\r\n\t\t *    // Ordering using `input` node values\r\n\t\t *    $.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )\r\n\t\t *    {\r\n\t\t *      return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {\r\n\t\t *        return $('input', td).val();\r\n\t\t *      } );\r\n\t\t *    }\r\n\t\t */\r\n\t\torder: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Type based plug-ins.\r\n\t\t *\r\n\t\t * Each column in DataTables has a type assigned to it, either by automatic\r\n\t\t * detection or by direct assignment using the `type` option for the column.\r\n\t\t * The type of a column will effect how it is ordering and search (plug-ins\r\n\t\t * can also make use of the column type if required).\r\n\t\t *\r\n\t\t * @namespace\r\n\t\t */\r\n\t\ttype: {\r\n\t\t\t/**\r\n\t\t\t * Type detection functions.\r\n\t\t\t *\r\n\t\t\t * The functions defined in this object are used to automatically detect\r\n\t\t\t * a column's type, making initialisation of DataTables super easy, even\r\n\t\t\t * when complex data is in the table.\r\n\t\t\t *\r\n\t\t\t * The functions defined take two parameters:\r\n\t\t\t *\r\n\t\t     *  1. `{*}` Data from the column cell to be analysed\r\n\t\t     *  2. `{settings}` DataTables settings object. This can be used to\r\n\t\t     *     perform context specific type detection - for example detection\r\n\t\t     *     based on language settings such as using a comma for a decimal\r\n\t\t     *     place. Generally speaking the options from the settings will not\r\n\t\t     *     be required\r\n\t\t\t *\r\n\t\t\t * Each function is expected to return:\r\n\t\t\t *\r\n\t\t\t * * `{string|null}` Data type detected, or null if unknown (and thus\r\n\t\t\t *   pass it on to the other type detection functions.\r\n\t\t\t *\r\n\t\t\t *  @type array\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Currency type detection plug-in:\r\n\t\t\t *    $.fn.dataTable.ext.type.detect.push(\r\n\t\t\t *      function ( data, settings ) {\r\n\t\t\t *        // Check the numeric part\r\n\t\t\t *        if ( ! $.isNumeric( data.substring(1) ) ) {\r\n\t\t\t *          return null;\r\n\t\t\t *        }\r\n\t\t\t *\r\n\t\t\t *        // Check prefixed by currency\r\n\t\t\t *        if ( data.charAt(0) == '$' || data.charAt(0) == '&pound;' ) {\r\n\t\t\t *          return 'currency';\r\n\t\t\t *        }\r\n\t\t\t *        return null;\r\n\t\t\t *      }\r\n\t\t\t *    );\r\n\t\t\t */\r\n\t\t\tdetect: [],\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Type based search formatting.\r\n\t\t\t *\r\n\t\t\t * The type based searching functions can be used to pre-format the\r\n\t\t\t * data to be search on. For example, it can be used to strip HTML\r\n\t\t\t * tags or to de-format telephone numbers for numeric only searching.\r\n\t\t\t *\r\n\t\t\t * Note that is a search is not defined for a column of a given type,\r\n\t\t\t * no search formatting will be performed.\r\n\t\t\t * \r\n\t\t\t * Pre-processing of searching data plug-ins - When you assign the sType\r\n\t\t\t * for a column (or have it automatically detected for you by DataTables\r\n\t\t\t * or a type detection plug-in), you will typically be using this for\r\n\t\t\t * custom sorting, but it can also be used to provide custom searching\r\n\t\t\t * by allowing you to pre-processing the data and returning the data in\r\n\t\t\t * the format that should be searched upon. This is done by adding\r\n\t\t\t * functions this object with a parameter name which matches the sType\r\n\t\t\t * for that target column. This is the corollary of <i>afnSortData</i>\r\n\t\t\t * for searching data.\r\n\t\t\t *\r\n\t\t\t * The functions defined take a single parameter:\r\n\t\t\t *\r\n\t\t     *  1. `{*}` Data from the column cell to be prepared for searching\r\n\t\t\t *\r\n\t\t\t * Each function is expected to return:\r\n\t\t\t *\r\n\t\t\t * * `{string|null}` Formatted string that will be used for the searching.\r\n\t\t\t *\r\n\t\t\t *  @type object\r\n\t\t\t *  @default {}\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {\r\n\t\t\t *      return d.replace(/\\n/g,\" \").replace( /<.*?>/g, \"\" );\r\n\t\t\t *    }\r\n\t\t\t */\r\n\t\t\tsearch: {},\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Type based ordering.\r\n\t\t\t *\r\n\t\t\t * The column type tells DataTables what ordering to apply to the table\r\n\t\t\t * when a column is sorted upon. The order for each type that is defined,\r\n\t\t\t * is defined by the functions available in this object.\r\n\t\t\t *\r\n\t\t\t * Each ordering option can be described by three properties added to\r\n\t\t\t * this object:\r\n\t\t\t *\r\n\t\t\t * * `{type}-pre` - Pre-formatting function\r\n\t\t\t * * `{type}-asc` - Ascending order function\r\n\t\t\t * * `{type}-desc` - Descending order function\r\n\t\t\t *\r\n\t\t\t * All three can be used together, only `{type}-pre` or only\r\n\t\t\t * `{type}-asc` and `{type}-desc` together. It is generally recommended\r\n\t\t\t * that only `{type}-pre` is used, as this provides the optimal\r\n\t\t\t * implementation in terms of speed, although the others are provided\r\n\t\t\t * for compatibility with existing Javascript sort functions.\r\n\t\t\t *\r\n\t\t\t * `{type}-pre`: Functions defined take a single parameter:\r\n\t\t\t *\r\n\t\t     *  1. `{*}` Data from the column cell to be prepared for ordering\r\n\t\t\t *\r\n\t\t\t * And return:\r\n\t\t\t *\r\n\t\t\t * * `{*}` Data to be sorted upon\r\n\t\t\t *\r\n\t\t\t * `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort\r\n\t\t\t * functions, taking two parameters:\r\n\t\t\t *\r\n\t\t     *  1. `{*}` Data to compare to the second parameter\r\n\t\t     *  2. `{*}` Data to compare to the first parameter\r\n\t\t\t *\r\n\t\t\t * And returning:\r\n\t\t\t *\r\n\t\t\t * * `{*}` Ordering match: <0 if first parameter should be sorted lower\r\n\t\t\t *   than the second parameter, ===0 if the two parameters are equal and\r\n\t\t\t *   >0 if the first parameter should be sorted height than the second\r\n\t\t\t *   parameter.\r\n\t\t\t * \r\n\t\t\t *  @type object\r\n\t\t\t *  @default {}\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Numeric ordering of formatted numbers with a pre-formatter\r\n\t\t\t *    $.extend( $.fn.dataTable.ext.type.order, {\r\n\t\t\t *      \"string-pre\": function(x) {\r\n\t\t\t *        a = (a === \"-\" || a === \"\") ? 0 : a.replace( /[^\\d\\-\\.]/g, \"\" );\r\n\t\t\t *        return parseFloat( a );\r\n\t\t\t *      }\r\n\t\t\t *    } );\r\n\t\t\t *\r\n\t\t\t *  @example\r\n\t\t\t *    // Case-sensitive string ordering, with no pre-formatting method\r\n\t\t\t *    $.extend( $.fn.dataTable.ext.order, {\r\n\t\t\t *      \"string-case-asc\": function(x,y) {\r\n\t\t\t *        return ((x < y) ? -1 : ((x > y) ? 1 : 0));\r\n\t\t\t *      },\r\n\t\t\t *      \"string-case-desc\": function(x,y) {\r\n\t\t\t *        return ((x < y) ? 1 : ((x > y) ? -1 : 0));\r\n\t\t\t *      }\r\n\t\t\t *    } );\r\n\t\t\t */\r\n\t\t\torder: {}\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Unique DataTables instance counter\r\n\t\t *\r\n\t\t * @type int\r\n\t\t * @private\r\n\t\t */\r\n\t\t_unique: 0,\r\n\t\r\n\t\r\n\t\t//\r\n\t\t// Depreciated\r\n\t\t// The following properties are retained for backwards compatiblity only.\r\n\t\t// The should not be used in new projects and will be removed in a future\r\n\t\t// version\r\n\t\t//\r\n\t\r\n\t\t/**\r\n\t\t * Version check function.\r\n\t\t *  @type function\r\n\t\t *  @depreciated Since 1.10\r\n\t\t */\r\n\t\tfnVersionCheck: DataTable.fnVersionCheck,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Index for what 'this' index API functions should use\r\n\t\t *  @type int\r\n\t\t *  @deprecated Since v1.10\r\n\t\t */\r\n\t\tiApiIndex: 0,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * jQuery UI class container\r\n\t\t *  @type object\r\n\t\t *  @deprecated Since v1.10\r\n\t\t */\r\n\t\toJUIClasses: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Software version\r\n\t\t *  @type string\r\n\t\t *  @deprecated Since v1.10\r\n\t\t */\r\n\t\tsVersion: DataTable.version\r\n\t};\r\n\t\r\n\t\r\n\t//\r\n\t// Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts\r\n\t//\r\n\t$.extend( _ext, {\r\n\t\tafnFiltering: _ext.search,\r\n\t\taTypes:       _ext.type.detect,\r\n\t\tofnSearch:    _ext.type.search,\r\n\t\toSort:        _ext.type.order,\r\n\t\tafnSortData:  _ext.order,\r\n\t\taoFeatures:   _ext.feature,\r\n\t\toApi:         _ext.internal,\r\n\t\toStdClasses:  _ext.classes,\r\n\t\toPagination:  _ext.pager\r\n\t} );\r\n\t\r\n\t\r\n\t$.extend( DataTable.ext.classes, {\r\n\t\t\"sTable\": \"dataTable\",\r\n\t\t\"sNoFooter\": \"no-footer\",\r\n\t\r\n\t\t/* Paging buttons */\r\n\t\t\"sPageButton\": \"paginate_button\",\r\n\t\t\"sPageButtonActive\": \"current\",\r\n\t\t\"sPageButtonDisabled\": \"disabled\",\r\n\t\r\n\t\t/* Striping classes */\r\n\t\t\"sStripeOdd\": \"odd\",\r\n\t\t\"sStripeEven\": \"even\",\r\n\t\r\n\t\t/* Empty row */\r\n\t\t\"sRowEmpty\": \"dataTables_empty\",\r\n\t\r\n\t\t/* Features */\r\n\t\t\"sWrapper\": \"dataTables_wrapper\",\r\n\t\t\"sFilter\": \"dataTables_filter\",\r\n\t\t\"sInfo\": \"dataTables_info\",\r\n\t\t\"sPaging\": \"dataTables_paginate paging_\", /* Note that the type is postfixed */\r\n\t\t\"sLength\": \"dataTables_length\",\r\n\t\t\"sProcessing\": \"dataTables_processing\",\r\n\t\r\n\t\t/* Sorting */\r\n\t\t\"sSortAsc\": \"sorting_asc\",\r\n\t\t\"sSortDesc\": \"sorting_desc\",\r\n\t\t\"sSortable\": \"sorting\", /* Sortable in both directions */\r\n\t\t\"sSortableAsc\": \"sorting_asc_disabled\",\r\n\t\t\"sSortableDesc\": \"sorting_desc_disabled\",\r\n\t\t\"sSortableNone\": \"sorting_disabled\",\r\n\t\t\"sSortColumn\": \"sorting_\", /* Note that an int is postfixed for the sorting order */\r\n\t\r\n\t\t/* Filtering */\r\n\t\t\"sFilterInput\": \"\",\r\n\t\r\n\t\t/* Page length */\r\n\t\t\"sLengthSelect\": \"\",\r\n\t\r\n\t\t/* Scrolling */\r\n\t\t\"sScrollWrapper\": \"dataTables_scroll\",\r\n\t\t\"sScrollHead\": \"dataTables_scrollHead\",\r\n\t\t\"sScrollHeadInner\": \"dataTables_scrollHeadInner\",\r\n\t\t\"sScrollBody\": \"dataTables_scrollBody\",\r\n\t\t\"sScrollFoot\": \"dataTables_scrollFoot\",\r\n\t\t\"sScrollFootInner\": \"dataTables_scrollFootInner\",\r\n\t\r\n\t\t/* Misc */\r\n\t\t\"sHeaderTH\": \"\",\r\n\t\t\"sFooterTH\": \"\",\r\n\t\r\n\t\t// Deprecated\r\n\t\t\"sSortJUIAsc\": \"\",\r\n\t\t\"sSortJUIDesc\": \"\",\r\n\t\t\"sSortJUI\": \"\",\r\n\t\t\"sSortJUIAscAllowed\": \"\",\r\n\t\t\"sSortJUIDescAllowed\": \"\",\r\n\t\t\"sSortJUIWrapper\": \"\",\r\n\t\t\"sSortIcon\": \"\",\r\n\t\t\"sJUIHeader\": \"\",\r\n\t\t\"sJUIFooter\": \"\"\r\n\t} );\r\n\t\r\n\t\r\n\t(function() {\r\n\t\r\n\t// Reused strings for better compression. Closure compiler appears to have a\r\n\t// weird edge case where it is trying to expand strings rather than use the\r\n\t// variable version. This results in about 200 bytes being added, for very\r\n\t// little preference benefit since it this run on script load only.\r\n\tvar _empty = '';\r\n\t_empty = '';\r\n\t\r\n\tvar _stateDefault = _empty + 'ui-state-default';\r\n\tvar _sortIcon     = _empty + 'css_right ui-icon ui-icon-';\r\n\tvar _headerFooter = _empty + 'fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix';\r\n\t\r\n\t$.extend( DataTable.ext.oJUIClasses, DataTable.ext.classes, {\r\n\t\t/* Full numbers paging buttons */\r\n\t\t\"sPageButton\":         \"fg-button ui-button \"+_stateDefault,\r\n\t\t\"sPageButtonActive\":   \"ui-state-disabled\",\r\n\t\t\"sPageButtonDisabled\": \"ui-state-disabled\",\r\n\t\r\n\t\t/* Features */\r\n\t\t\"sPaging\": \"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi \"+\r\n\t\t\t\"ui-buttonset-multi paging_\", /* Note that the type is postfixed */\r\n\t\r\n\t\t/* Sorting */\r\n\t\t\"sSortAsc\":            _stateDefault+\" sorting_asc\",\r\n\t\t\"sSortDesc\":           _stateDefault+\" sorting_desc\",\r\n\t\t\"sSortable\":           _stateDefault+\" sorting\",\r\n\t\t\"sSortableAsc\":        _stateDefault+\" sorting_asc_disabled\",\r\n\t\t\"sSortableDesc\":       _stateDefault+\" sorting_desc_disabled\",\r\n\t\t\"sSortableNone\":       _stateDefault+\" sorting_disabled\",\r\n\t\t\"sSortJUIAsc\":         _sortIcon+\"triangle-1-n\",\r\n\t\t\"sSortJUIDesc\":        _sortIcon+\"triangle-1-s\",\r\n\t\t\"sSortJUI\":            _sortIcon+\"carat-2-n-s\",\r\n\t\t\"sSortJUIAscAllowed\":  _sortIcon+\"carat-1-n\",\r\n\t\t\"sSortJUIDescAllowed\": _sortIcon+\"carat-1-s\",\r\n\t\t\"sSortJUIWrapper\":     \"DataTables_sort_wrapper\",\r\n\t\t\"sSortIcon\":           \"DataTables_sort_icon\",\r\n\t\r\n\t\t/* Scrolling */\r\n\t\t\"sScrollHead\": \"dataTables_scrollHead \"+_stateDefault,\r\n\t\t\"sScrollFoot\": \"dataTables_scrollFoot \"+_stateDefault,\r\n\t\r\n\t\t/* Misc */\r\n\t\t\"sHeaderTH\":  _stateDefault,\r\n\t\t\"sFooterTH\":  _stateDefault,\r\n\t\t\"sJUIHeader\": _headerFooter+\" ui-corner-tl ui-corner-tr\",\r\n\t\t\"sJUIFooter\": _headerFooter+\" ui-corner-bl ui-corner-br\"\r\n\t} );\r\n\t\r\n\t}());\r\n\t\r\n\t\r\n\t\r\n\tvar extPagination = DataTable.ext.pager;\r\n\t\r\n\tfunction _numbers ( page, pages ) {\r\n\t\tvar\r\n\t\t\tnumbers = [],\r\n\t\t\tbuttons = extPagination.numbers_length,\r\n\t\t\thalf = Math.floor( buttons / 2 ),\r\n\t\t\ti = 1;\r\n\t\r\n\t\tif ( pages <= buttons ) {\r\n\t\t\tnumbers = _range( 0, pages );\r\n\t\t}\r\n\t\telse if ( page <= half ) {\r\n\t\t\tnumbers = _range( 0, buttons-2 );\r\n\t\t\tnumbers.push( 'ellipsis' );\r\n\t\t\tnumbers.push( pages-1 );\r\n\t\t}\r\n\t\telse if ( page >= pages - 1 - half ) {\r\n\t\t\tnumbers = _range( pages-(buttons-2), pages );\r\n\t\t\tnumbers.splice( 0, 0, 'ellipsis' ); // no unshift in ie6\r\n\t\t\tnumbers.splice( 0, 0, 0 );\r\n\t\t}\r\n\t\telse {\r\n\t\t\tnumbers = _range( page-half+2, page+half-1 );\r\n\t\t\tnumbers.push( 'ellipsis' );\r\n\t\t\tnumbers.push( pages-1 );\r\n\t\t\tnumbers.splice( 0, 0, 'ellipsis' );\r\n\t\t\tnumbers.splice( 0, 0, 0 );\r\n\t\t}\r\n\t\r\n\t\tnumbers.DT_el = 'span';\r\n\t\treturn numbers;\r\n\t}\r\n\t\r\n\t\r\n\t$.extend( extPagination, {\r\n\t\tsimple: function ( page, pages ) {\r\n\t\t\treturn [ 'previous', 'next' ];\r\n\t\t},\r\n\t\r\n\t\tfull: function ( page, pages ) {\r\n\t\t\treturn [  'first', 'previous', 'next', 'last' ];\r\n\t\t},\r\n\t\r\n\t\tnumbers: function ( page, pages ) {\r\n\t\t\treturn [ _numbers(page, pages) ];\r\n\t\t},\r\n\t\r\n\t\tsimple_numbers: function ( page, pages ) {\r\n\t\t\treturn [ 'previous', _numbers(page, pages), 'next' ];\r\n\t\t},\r\n\t\r\n\t\tfull_numbers: function ( page, pages ) {\r\n\t\t\treturn [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ];\r\n\t\t},\r\n\t\t\r\n\t\tfirst_last_numbers: function (page, pages) {\r\n\t \t\treturn ['first', _numbers(page, pages), 'last'];\r\n\t \t},\r\n\t\r\n\t\t// For testing and plug-ins to use\r\n\t\t_numbers: _numbers,\r\n\t\r\n\t\t// Number of number buttons (including ellipsis) to show. _Must be odd!_\r\n\t\tnumbers_length: 7\r\n\t} );\r\n\t\r\n\t\r\n\t$.extend( true, DataTable.ext.renderer, {\r\n\t\tpageButton: {\r\n\t\t\t_: function ( settings, host, idx, buttons, page, pages ) {\r\n\t\t\t\tvar classes = settings.oClasses;\r\n\t\t\t\tvar lang = settings.oLanguage.oPaginate;\r\n\t\t\t\tvar aria = settings.oLanguage.oAria.paginate || {};\r\n\t\t\t\tvar btnDisplay, btnClass, counter=0;\r\n\t\r\n\t\t\t\tvar attach = function( container, buttons ) {\r\n\t\t\t\t\tvar i, ien, node, button;\r\n\t\t\t\t\tvar clickHandler = function ( e ) {\r\n\t\t\t\t\t\t_fnPageChange( settings, e.data.action, true );\r\n\t\t\t\t\t};\r\n\t\r\n\t\t\t\t\tfor ( i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\t\t\t\tbutton = buttons[i];\r\n\t\r\n\t\t\t\t\t\tif ( $.isArray( button ) ) {\r\n\t\t\t\t\t\t\tvar inner = $( '<'+(button.DT_el || 'div')+'/>' )\r\n\t\t\t\t\t\t\t\t.appendTo( container );\r\n\t\t\t\t\t\t\tattach( inner, button );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tbtnDisplay = null;\r\n\t\t\t\t\t\t\tbtnClass = '';\r\n\t\r\n\t\t\t\t\t\t\tswitch ( button ) {\r\n\t\t\t\t\t\t\t\tcase 'ellipsis':\r\n\t\t\t\t\t\t\t\t\tcontainer.append('<span class=\"ellipsis\">&#x2026;</span>');\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase 'first':\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sFirst;\r\n\t\t\t\t\t\t\t\t\tbtnClass = button + (page > 0 ?\r\n\t\t\t\t\t\t\t\t\t\t'' : ' '+classes.sPageButtonDisabled);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase 'previous':\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sPrevious;\r\n\t\t\t\t\t\t\t\t\tbtnClass = button + (page > 0 ?\r\n\t\t\t\t\t\t\t\t\t\t'' : ' '+classes.sPageButtonDisabled);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase 'next':\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sNext;\r\n\t\t\t\t\t\t\t\t\tbtnClass = button + (page < pages-1 ?\r\n\t\t\t\t\t\t\t\t\t\t'' : ' '+classes.sPageButtonDisabled);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase 'last':\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sLast;\r\n\t\t\t\t\t\t\t\t\tbtnClass = button + (page < pages-1 ?\r\n\t\t\t\t\t\t\t\t\t\t'' : ' '+classes.sPageButtonDisabled);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = button + 1;\r\n\t\t\t\t\t\t\t\t\tbtnClass = page === button ?\r\n\t\t\t\t\t\t\t\t\t\tclasses.sPageButtonActive : '';\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t\tif ( btnDisplay !== null ) {\r\n\t\t\t\t\t\t\t\tnode = $('<a>', {\r\n\t\t\t\t\t\t\t\t\t\t'class': classes.sPageButton+' '+btnClass,\r\n\t\t\t\t\t\t\t\t\t\t'aria-controls': settings.sTableId,\r\n\t\t\t\t\t\t\t\t\t\t'aria-label': aria[ button ],\r\n\t\t\t\t\t\t\t\t\t\t'data-dt-idx': counter,\r\n\t\t\t\t\t\t\t\t\t\t'tabindex': settings.iTabIndex,\r\n\t\t\t\t\t\t\t\t\t\t'id': idx === 0 && typeof button === 'string' ?\r\n\t\t\t\t\t\t\t\t\t\t\tsettings.sTableId +'_'+ button :\r\n\t\t\t\t\t\t\t\t\t\t\tnull\r\n\t\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t\t\t\t.html( btnDisplay )\r\n\t\t\t\t\t\t\t\t\t.appendTo( container );\r\n\t\r\n\t\t\t\t\t\t\t\t_fnBindAction(\r\n\t\t\t\t\t\t\t\t\tnode, {action: button}, clickHandler\r\n\t\t\t\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\t\t\t\tcounter++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\r\n\t\t\t\t// IE9 throws an 'unknown error' if document.activeElement is used\r\n\t\t\t\t// inside an iframe or frame. Try / catch the error. Not good for\r\n\t\t\t\t// accessibility, but neither are frames.\r\n\t\t\t\tvar activeEl;\r\n\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Because this approach is destroying and recreating the paging\r\n\t\t\t\t\t// elements, focus is lost on the select button which is bad for\r\n\t\t\t\t\t// accessibility. So we want to restore focus once the draw has\r\n\t\t\t\t\t// completed\r\n\t\t\t\t\tactiveEl = $(host).find(document.activeElement).data('dt-idx');\r\n\t\t\t\t}\r\n\t\t\t\tcatch (e) {}\r\n\t\r\n\t\t\t\tattach( $(host).empty(), buttons );\r\n\t\r\n\t\t\t\tif ( activeEl !== undefined ) {\r\n\t\t\t\t\t$(host).find( '[data-dt-idx='+activeEl+']' ).focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t// Built in type detection. See model.ext.aTypes for information about\r\n\t// what is required from this methods.\r\n\t$.extend( DataTable.ext.type.detect, [\r\n\t\t// Plain numbers - first since V8 detects some plain numbers as dates\r\n\t\t// e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...).\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _isNumber( d, decimal ) ? 'num'+decimal : null;\r\n\t\t},\r\n\t\r\n\t\t// Dates (only those recognised by the browser's Date.parse)\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\t// V8 tries _very_ hard to make a string passed into `Date.parse()`\r\n\t\t\t// valid, so we need to use a regex to restrict date formats. Use a\r\n\t\t\t// plug-in for anything other than ISO8601 style strings\r\n\t\t\tif ( d && !(d instanceof Date) && ! _re_date.test(d) ) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tvar parsed = Date.parse(d);\r\n\t\t\treturn (parsed !== null && !isNaN(parsed)) || _empty(d) ? 'date' : null;\r\n\t\t},\r\n\t\r\n\t\t// Formatted numbers\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _isNumber( d, decimal, true ) ? 'num-fmt'+decimal : null;\r\n\t\t},\r\n\t\r\n\t\t// HTML numeric\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _htmlNumeric( d, decimal ) ? 'html-num'+decimal : null;\r\n\t\t},\r\n\t\r\n\t\t// HTML numeric, formatted\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _htmlNumeric( d, decimal, true ) ? 'html-num-fmt'+decimal : null;\r\n\t\t},\r\n\t\r\n\t\t// HTML (this is strict checking - there must be html)\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\treturn _empty( d ) || (typeof d === 'string' && d.indexOf('<') !== -1) ?\r\n\t\t\t\t'html' : null;\r\n\t\t}\r\n\t] );\r\n\t\r\n\t\r\n\t\r\n\t// Filter formatting functions. See model.ext.ofnSearch for information about\r\n\t// what is required from these methods.\r\n\t// \r\n\t// Note that additional search methods are added for the html numbers and\r\n\t// html formatted numbers by `_addNumericSort()` when we know what the decimal\r\n\t// place is\r\n\t\r\n\t\r\n\t$.extend( DataTable.ext.type.search, {\r\n\t\thtml: function ( data ) {\r\n\t\t\treturn _empty(data) ?\r\n\t\t\t\tdata :\r\n\t\t\t\ttypeof data === 'string' ?\r\n\t\t\t\t\tdata\r\n\t\t\t\t\t\t.replace( _re_new_lines, \" \" )\r\n\t\t\t\t\t\t.replace( _re_html, \"\" ) :\r\n\t\t\t\t\t'';\r\n\t\t},\r\n\t\r\n\t\tstring: function ( data ) {\r\n\t\t\treturn _empty(data) ?\r\n\t\t\t\tdata :\r\n\t\t\t\ttypeof data === 'string' ?\r\n\t\t\t\t\tdata.replace( _re_new_lines, \" \" ) :\r\n\t\t\t\t\tdata;\r\n\t\t}\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\tvar __numericReplace = function ( d, decimalPlace, re1, re2 ) {\r\n\t\tif ( d !== 0 && (!d || d === '-') ) {\r\n\t\t\treturn -Infinity;\r\n\t\t}\r\n\t\r\n\t\t// If a decimal place other than `.` is used, it needs to be given to the\r\n\t\t// function so we can detect it and replace with a `.` which is the only\r\n\t\t// decimal place Javascript recognises - it is not locale aware.\r\n\t\tif ( decimalPlace ) {\r\n\t\t\td = _numToDecimal( d, decimalPlace );\r\n\t\t}\r\n\t\r\n\t\tif ( d.replace ) {\r\n\t\t\tif ( re1 ) {\r\n\t\t\t\td = d.replace( re1, '' );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( re2 ) {\r\n\t\t\t\td = d.replace( re2, '' );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn d * 1;\r\n\t};\r\n\t\r\n\t\r\n\t// Add the numeric 'deformatting' functions for sorting and search. This is done\r\n\t// in a function to provide an easy ability for the language options to add\r\n\t// additional methods if a non-period decimal place is used.\r\n\tfunction _addNumericSort ( decimalPlace ) {\r\n\t\t$.each(\r\n\t\t\t{\r\n\t\t\t\t// Plain numbers\r\n\t\t\t\t\"num\": function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace );\r\n\t\t\t\t},\r\n\t\r\n\t\t\t\t// Formatted numbers\r\n\t\t\t\t\"num-fmt\": function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_formatted_numeric );\r\n\t\t\t\t},\r\n\t\r\n\t\t\t\t// HTML numeric\r\n\t\t\t\t\"html-num\": function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_html );\r\n\t\t\t\t},\r\n\t\r\n\t\t\t\t// HTML numeric, formatted\r\n\t\t\t\t\"html-num-fmt\": function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tfunction ( key, fn ) {\r\n\t\t\t\t// Add the ordering method\r\n\t\t\t\t_ext.type.order[ key+decimalPlace+'-pre' ] = fn;\r\n\t\r\n\t\t\t\t// For HTML types add a search formatter that will strip the HTML\r\n\t\t\t\tif ( key.match(/^html\\-/) ) {\r\n\t\t\t\t\t_ext.type.search[ key+decimalPlace ] = _ext.type.search.html;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\t\r\n\t\r\n\t// Default sort methods\r\n\t$.extend( _ext.type.order, {\r\n\t\t// Dates\r\n\t\t\"date-pre\": function ( d ) {\r\n\t\t\treturn Date.parse( d ) || -Infinity;\r\n\t\t},\r\n\t\r\n\t\t// html\r\n\t\t\"html-pre\": function ( a ) {\r\n\t\t\treturn _empty(a) ?\r\n\t\t\t\t'' :\r\n\t\t\t\ta.replace ?\r\n\t\t\t\t\ta.replace( /<.*?>/g, \"\" ).toLowerCase() :\r\n\t\t\t\t\ta+'';\r\n\t\t},\r\n\t\r\n\t\t// string\r\n\t\t\"string-pre\": function ( a ) {\r\n\t\t\t// This is a little complex, but faster than always calling toString,\r\n\t\t\t// http://jsperf.com/tostring-v-check\r\n\t\t\treturn _empty(a) ?\r\n\t\t\t\t'' :\r\n\t\t\t\ttypeof a === 'string' ?\r\n\t\t\t\t\ta.toLowerCase() :\r\n\t\t\t\t\t! a.toString ?\r\n\t\t\t\t\t\t'' :\r\n\t\t\t\t\t\ta.toString();\r\n\t\t},\r\n\t\r\n\t\t// string-asc and -desc are retained only for compatibility with the old\r\n\t\t// sort methods\r\n\t\t\"string-asc\": function ( x, y ) {\r\n\t\t\treturn ((x < y) ? -1 : ((x > y) ? 1 : 0));\r\n\t\t},\r\n\t\r\n\t\t\"string-desc\": function ( x, y ) {\r\n\t\t\treturn ((x < y) ? 1 : ((x > y) ? -1 : 0));\r\n\t\t}\r\n\t} );\r\n\t\r\n\t\r\n\t// Numeric sorting types - order doesn't matter here\r\n\t_addNumericSort( '' );\r\n\t\r\n\t\r\n\t$.extend( true, DataTable.ext.renderer, {\r\n\t\theader: {\r\n\t\t\t_: function ( settings, cell, column, classes ) {\r\n\t\t\t\t// No additional mark-up required\r\n\t\t\t\t// Attach a sort listener to update on sort - note that using the\r\n\t\t\t\t// `DT` namespace will allow the event to be removed automatically\r\n\t\t\t\t// on destroy, while the `dt` namespaced event is the one we are\r\n\t\t\t\t// listening for\r\n\t\t\t\t$(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {\r\n\t\t\t\t\tif ( settings !== ctx ) { // need to check this this is the host\r\n\t\t\t\t\t\treturn;               // table, not a nested one\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tvar colIdx = column.idx;\r\n\t\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.removeClass(\r\n\t\t\t\t\t\t\tcolumn.sSortingClass +' '+\r\n\t\t\t\t\t\t\tclasses.sSortAsc +' '+\r\n\t\t\t\t\t\t\tclasses.sSortDesc\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == 'asc' ?\r\n\t\t\t\t\t\t\tclasses.sSortAsc : columns[ colIdx ] == 'desc' ?\r\n\t\t\t\t\t\t\t\tclasses.sSortDesc :\r\n\t\t\t\t\t\t\t\tcolumn.sSortingClass\r\n\t\t\t\t\t\t);\r\n\t\t\t\t} );\r\n\t\t\t},\r\n\t\r\n\t\t\tjqueryui: function ( settings, cell, column, classes ) {\r\n\t\t\t\t$('<div/>')\r\n\t\t\t\t\t.addClass( classes.sSortJUIWrapper )\r\n\t\t\t\t\t.append( cell.contents() )\r\n\t\t\t\t\t.append( $('<span/>')\r\n\t\t\t\t\t\t.addClass( classes.sSortIcon+' '+column.sSortingClassJUI )\r\n\t\t\t\t\t)\r\n\t\t\t\t\t.appendTo( cell );\r\n\t\r\n\t\t\t\t// Attach a sort listener to update on sort\r\n\t\t\t\t$(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {\r\n\t\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tvar colIdx = column.idx;\r\n\t\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.removeClass( classes.sSortAsc +\" \"+classes.sSortDesc )\r\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == 'asc' ?\r\n\t\t\t\t\t\t\tclasses.sSortAsc : columns[ colIdx ] == 'desc' ?\r\n\t\t\t\t\t\t\t\tclasses.sSortDesc :\r\n\t\t\t\t\t\t\t\tcolumn.sSortingClass\r\n\t\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.find( 'span.'+classes.sSortIcon )\r\n\t\t\t\t\t\t.removeClass(\r\n\t\t\t\t\t\t\tclasses.sSortJUIAsc +\" \"+\r\n\t\t\t\t\t\t\tclasses.sSortJUIDesc +\" \"+\r\n\t\t\t\t\t\t\tclasses.sSortJUI +\" \"+\r\n\t\t\t\t\t\t\tclasses.sSortJUIAscAllowed +\" \"+\r\n\t\t\t\t\t\t\tclasses.sSortJUIDescAllowed\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == 'asc' ?\r\n\t\t\t\t\t\t\tclasses.sSortJUIAsc : columns[ colIdx ] == 'desc' ?\r\n\t\t\t\t\t\t\t\tclasses.sSortJUIDesc :\r\n\t\t\t\t\t\t\t\tcolumn.sSortingClassJUI\r\n\t\t\t\t\t\t);\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t} );\r\n\t\r\n\t/*\r\n\t * Public helper functions. These aren't used internally by DataTables, or\r\n\t * called by any of the options passed into DataTables, but they can be used\r\n\t * externally by developers working with DataTables. They are helper functions\r\n\t * to make working with DataTables a little bit easier.\r\n\t */\r\n\t\r\n\tvar __htmlEscapeEntities = function ( d ) {\r\n\t\treturn typeof d === 'string' ?\r\n\t\t\td.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;') :\r\n\t\t\td;\r\n\t};\r\n\t\r\n\t/**\r\n\t * Helpers for `columns.render`.\r\n\t *\r\n\t * The options defined here can be used with the `columns.render` initialisation\r\n\t * option to provide a display renderer. The following functions are defined:\r\n\t *\r\n\t * * `number` - Will format numeric data (defined by `columns.data`) for\r\n\t *   display, retaining the original unformatted data for sorting and filtering.\r\n\t *   It takes 5 parameters:\r\n\t *   * `string` - Thousands grouping separator\r\n\t *   * `string` - Decimal point indicator\r\n\t *   * `integer` - Number of decimal points to show\r\n\t *   * `string` (optional) - Prefix.\r\n\t *   * `string` (optional) - Postfix (/suffix).\r\n\t * * `text` - Escape HTML to help prevent XSS attacks. It has no optional\r\n\t *   parameters.\r\n\t *\r\n\t * @example\r\n\t *   // Column definition using the number renderer\r\n\t *   {\r\n\t *     data: \"salary\",\r\n\t *     render: $.fn.dataTable.render.number( '\\'', '.', 0, '$' )\r\n\t *   }\r\n\t *\r\n\t * @namespace\r\n\t */\r\n\tDataTable.render = {\r\n\t\tnumber: function ( thousands, decimal, precision, prefix, postfix ) {\r\n\t\t\treturn {\r\n\t\t\t\tdisplay: function ( d ) {\r\n\t\t\t\t\tif ( typeof d !== 'number' && typeof d !== 'string' ) {\r\n\t\t\t\t\t\treturn d;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tvar negative = d < 0 ? '-' : '';\r\n\t\t\t\t\tvar flo = parseFloat( d );\r\n\t\r\n\t\t\t\t\t// If NaN then there isn't much formatting that we can do - just\r\n\t\t\t\t\t// return immediately, escaping any HTML (this was supposed to\r\n\t\t\t\t\t// be a number after all)\r\n\t\t\t\t\tif ( isNaN( flo ) ) {\r\n\t\t\t\t\t\treturn __htmlEscapeEntities( d );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tflo = flo.toFixed( precision );\r\n\t\t\t\t\td = Math.abs( flo );\r\n\t\r\n\t\t\t\t\tvar intPart = parseInt( d, 10 );\r\n\t\t\t\t\tvar floatPart = precision ?\r\n\t\t\t\t\t\tdecimal+(d - intPart).toFixed( precision ).substring( 2 ):\r\n\t\t\t\t\t\t'';\r\n\t\r\n\t\t\t\t\treturn negative + (prefix||'') +\r\n\t\t\t\t\t\tintPart.toString().replace(\r\n\t\t\t\t\t\t\t/\\B(?=(\\d{3})+(?!\\d))/g, thousands\r\n\t\t\t\t\t\t) +\r\n\t\t\t\t\t\tfloatPart +\r\n\t\t\t\t\t\t(postfix||'');\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t},\r\n\t\r\n\t\ttext: function () {\r\n\t\t\treturn {\r\n\t\t\t\tdisplay: __htmlEscapeEntities\r\n\t\t\t};\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/*\r\n\t * This is really a good bit rubbish this method of exposing the internal methods\r\n\t * publicly... - To be fixed in 2.0 using methods on the prototype\r\n\t */\r\n\t\r\n\t\r\n\t/**\r\n\t * Create a wrapper function for exporting an internal functions to an external API.\r\n\t *  @param {string} fn API function name\r\n\t *  @returns {function} wrapped function\r\n\t *  @memberof DataTable#internal\r\n\t */\r\n\tfunction _fnExternApiFunc (fn)\r\n\t{\r\n\t\treturn function() {\r\n\t\t\tvar args = [_fnSettingsFromNode( this[DataTable.ext.iApiIndex] )].concat(\r\n\t\t\t\tArray.prototype.slice.call(arguments)\r\n\t\t\t);\r\n\t\t\treturn DataTable.ext.internal[fn].apply( this, args );\r\n\t\t};\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Reference to internal functions for use by plug-in developers. Note that\r\n\t * these methods are references to internal functions and are considered to be\r\n\t * private. If you use these methods, be aware that they are liable to change\r\n\t * between versions.\r\n\t *  @namespace\r\n\t */\r\n\t$.extend( DataTable.ext.internal, {\r\n\t\t_fnExternApiFunc: _fnExternApiFunc,\r\n\t\t_fnBuildAjax: _fnBuildAjax,\r\n\t\t_fnAjaxUpdate: _fnAjaxUpdate,\r\n\t\t_fnAjaxParameters: _fnAjaxParameters,\r\n\t\t_fnAjaxUpdateDraw: _fnAjaxUpdateDraw,\r\n\t\t_fnAjaxDataSrc: _fnAjaxDataSrc,\r\n\t\t_fnAddColumn: _fnAddColumn,\r\n\t\t_fnColumnOptions: _fnColumnOptions,\r\n\t\t_fnAdjustColumnSizing: _fnAdjustColumnSizing,\r\n\t\t_fnVisibleToColumnIndex: _fnVisibleToColumnIndex,\r\n\t\t_fnColumnIndexToVisible: _fnColumnIndexToVisible,\r\n\t\t_fnVisbleColumns: _fnVisbleColumns,\r\n\t\t_fnGetColumns: _fnGetColumns,\r\n\t\t_fnColumnTypes: _fnColumnTypes,\r\n\t\t_fnApplyColumnDefs: _fnApplyColumnDefs,\r\n\t\t_fnHungarianMap: _fnHungarianMap,\r\n\t\t_fnCamelToHungarian: _fnCamelToHungarian,\r\n\t\t_fnLanguageCompat: _fnLanguageCompat,\r\n\t\t_fnBrowserDetect: _fnBrowserDetect,\r\n\t\t_fnAddData: _fnAddData,\r\n\t\t_fnAddTr: _fnAddTr,\r\n\t\t_fnNodeToDataIndex: _fnNodeToDataIndex,\r\n\t\t_fnNodeToColumnIndex: _fnNodeToColumnIndex,\r\n\t\t_fnGetCellData: _fnGetCellData,\r\n\t\t_fnSetCellData: _fnSetCellData,\r\n\t\t_fnSplitObjNotation: _fnSplitObjNotation,\r\n\t\t_fnGetObjectDataFn: _fnGetObjectDataFn,\r\n\t\t_fnSetObjectDataFn: _fnSetObjectDataFn,\r\n\t\t_fnGetDataMaster: _fnGetDataMaster,\r\n\t\t_fnClearTable: _fnClearTable,\r\n\t\t_fnDeleteIndex: _fnDeleteIndex,\r\n\t\t_fnInvalidate: _fnInvalidate,\r\n\t\t_fnGetRowElements: _fnGetRowElements,\r\n\t\t_fnCreateTr: _fnCreateTr,\r\n\t\t_fnBuildHead: _fnBuildHead,\r\n\t\t_fnDrawHead: _fnDrawHead,\r\n\t\t_fnDraw: _fnDraw,\r\n\t\t_fnReDraw: _fnReDraw,\r\n\t\t_fnAddOptionsHtml: _fnAddOptionsHtml,\r\n\t\t_fnDetectHeader: _fnDetectHeader,\r\n\t\t_fnGetUniqueThs: _fnGetUniqueThs,\r\n\t\t_fnFeatureHtmlFilter: _fnFeatureHtmlFilter,\r\n\t\t_fnFilterComplete: _fnFilterComplete,\r\n\t\t_fnFilterCustom: _fnFilterCustom,\r\n\t\t_fnFilterColumn: _fnFilterColumn,\r\n\t\t_fnFilter: _fnFilter,\r\n\t\t_fnFilterCreateSearch: _fnFilterCreateSearch,\r\n\t\t_fnEscapeRegex: _fnEscapeRegex,\r\n\t\t_fnFilterData: _fnFilterData,\r\n\t\t_fnFeatureHtmlInfo: _fnFeatureHtmlInfo,\r\n\t\t_fnUpdateInfo: _fnUpdateInfo,\r\n\t\t_fnInfoMacros: _fnInfoMacros,\r\n\t\t_fnInitialise: _fnInitialise,\r\n\t\t_fnInitComplete: _fnInitComplete,\r\n\t\t_fnLengthChange: _fnLengthChange,\r\n\t\t_fnFeatureHtmlLength: _fnFeatureHtmlLength,\r\n\t\t_fnFeatureHtmlPaginate: _fnFeatureHtmlPaginate,\r\n\t\t_fnPageChange: _fnPageChange,\r\n\t\t_fnFeatureHtmlProcessing: _fnFeatureHtmlProcessing,\r\n\t\t_fnProcessingDisplay: _fnProcessingDisplay,\r\n\t\t_fnFeatureHtmlTable: _fnFeatureHtmlTable,\r\n\t\t_fnScrollDraw: _fnScrollDraw,\r\n\t\t_fnApplyToChildren: _fnApplyToChildren,\r\n\t\t_fnCalculateColumnWidths: _fnCalculateColumnWidths,\r\n\t\t_fnThrottle: _fnThrottle,\r\n\t\t_fnConvertToWidth: _fnConvertToWidth,\r\n\t\t_fnGetWidestNode: _fnGetWidestNode,\r\n\t\t_fnGetMaxLenString: _fnGetMaxLenString,\r\n\t\t_fnStringToCss: _fnStringToCss,\r\n\t\t_fnSortFlatten: _fnSortFlatten,\r\n\t\t_fnSort: _fnSort,\r\n\t\t_fnSortAria: _fnSortAria,\r\n\t\t_fnSortListener: _fnSortListener,\r\n\t\t_fnSortAttachListener: _fnSortAttachListener,\r\n\t\t_fnSortingClasses: _fnSortingClasses,\r\n\t\t_fnSortData: _fnSortData,\r\n\t\t_fnSaveState: _fnSaveState,\r\n\t\t_fnLoadState: _fnLoadState,\r\n\t\t_fnSettingsFromNode: _fnSettingsFromNode,\r\n\t\t_fnLog: _fnLog,\r\n\t\t_fnMap: _fnMap,\r\n\t\t_fnBindAction: _fnBindAction,\r\n\t\t_fnCallbackReg: _fnCallbackReg,\r\n\t\t_fnCallbackFire: _fnCallbackFire,\r\n\t\t_fnLengthOverflow: _fnLengthOverflow,\r\n\t\t_fnRenderer: _fnRenderer,\r\n\t\t_fnDataSource: _fnDataSource,\r\n\t\t_fnRowAttributes: _fnRowAttributes,\r\n\t\t_fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant\r\n\t\t                                // in 1.10, so this dead-end function is\r\n\t\t                                // added to prevent errors\r\n\t} );\r\n\t\r\n\r\n\t// jQuery access\r\n\t$.fn.dataTable = DataTable;\r\n\r\n\t// Provide access to the host jQuery object (circular reference)\r\n\tDataTable.$ = $;\r\n\r\n\t// Legacy aliases\r\n\t$.fn.dataTableSettings = DataTable.settings;\r\n\t$.fn.dataTableExt = DataTable.ext;\r\n\r\n\t// With a capital `D` we return a DataTables API instance rather than a\r\n\t// jQuery object\r\n\t$.fn.DataTable = function ( opts ) {\r\n\t\treturn $(this).dataTable( opts ).api();\r\n\t};\r\n\r\n\t// All properties that are available to $.fn.dataTable should also be\r\n\t// available on $.fn.DataTable\r\n\t$.each( DataTable, function ( prop, val ) {\r\n\t\t$.fn.DataTable[ prop ] = val;\r\n\t} );\r\n\r\n\r\n\t// Information about events fired by DataTables - for documentation.\r\n\t/**\r\n\t * Draw event, fired whenever the table is redrawn on the page, at the same\r\n\t * point as fnDrawCallback. This may be useful for binding events or\r\n\t * performing calculations when the table is altered at all.\r\n\t *  @name DataTable#draw.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * Search event, fired when the searching applied to the table (using the\r\n\t * built-in global search, or column filters) is altered.\r\n\t *  @name DataTable#search.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * Page change event, fired when the paging of the table is altered.\r\n\t *  @name DataTable#page.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * Order event, fired when the ordering applied to the table is altered.\r\n\t *  @name DataTable#order.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * DataTables initialisation complete event, fired when the table is fully\r\n\t * drawn, including Ajax data loaded, if Ajax data is required.\r\n\t *  @name DataTable#init.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} oSettings DataTables settings object\r\n\t *  @param {object} json The JSON object request from the server - only\r\n\t *    present if client-side Ajax sourced data is used</li></ol>\r\n\t */\r\n\r\n\t/**\r\n\t * State save event, fired when the table has changed state a new state save\r\n\t * is required. This event allows modification of the state saving object\r\n\t * prior to actually doing the save, including addition or other state\r\n\t * properties (for plug-ins) or modification of a DataTables core property.\r\n\t *  @name DataTable#stateSaveParams.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} oSettings DataTables settings object\r\n\t *  @param {object} json The state information to be saved\r\n\t */\r\n\r\n\t/**\r\n\t * State load event, fired when the table is loading state from the stored\r\n\t * data, but prior to the settings object being modified by the saved state\r\n\t * - allowing modification of the saved state is required or loading of\r\n\t * state for a plug-in.\r\n\t *  @name DataTable#stateLoadParams.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} oSettings DataTables settings object\r\n\t *  @param {object} json The saved state information\r\n\t */\r\n\r\n\t/**\r\n\t * State loaded event, fired when state has been loaded from stored data and\r\n\t * the settings object has been modified by the loaded data.\r\n\t *  @name DataTable#stateLoaded.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} oSettings DataTables settings object\r\n\t *  @param {object} json The saved state information\r\n\t */\r\n\r\n\t/**\r\n\t * Processing event, fired when DataTables is doing some kind of processing\r\n\t * (be it, order, searcg or anything else). It can be used to indicate to\r\n\t * the end user that there is something happening, or that something has\r\n\t * finished.\r\n\t *  @name DataTable#processing.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} oSettings DataTables settings object\r\n\t *  @param {boolean} bShow Flag for if DataTables is doing processing or not\r\n\t */\r\n\r\n\t/**\r\n\t * Ajax (XHR) event, fired whenever an Ajax request is completed from a\r\n\t * request to made to the server for new data. This event is called before\r\n\t * DataTables processed the returned data, so it can also be used to pre-\r\n\t * process the data returned from the server, if needed.\r\n\t *\r\n\t * Note that this trigger is called in `fnServerData`, if you override\r\n\t * `fnServerData` and which to use this event, you need to trigger it in you\r\n\t * success function.\r\n\t *  @name DataTable#xhr.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t *  @param {object} json JSON returned from the server\r\n\t *\r\n\t *  @example\r\n\t *     // Use a custom property returned from the server in another DOM element\r\n\t *     $('#table').dataTable().on('xhr.dt', function (e, settings, json) {\r\n\t *       $('#status').html( json.status );\r\n\t *     } );\r\n\t *\r\n\t *  @example\r\n\t *     // Pre-process the data returned from the server\r\n\t *     $('#table').dataTable().on('xhr.dt', function (e, settings, json) {\r\n\t *       for ( var i=0, ien=json.aaData.length ; i<ien ; i++ ) {\r\n\t *         json.aaData[i].sum = json.aaData[i].one + json.aaData[i].two;\r\n\t *       }\r\n\t *       // Note no return - manipulate the data directly in the JSON object.\r\n\t *     } );\r\n\t */\r\n\r\n\t/**\r\n\t * Destroy event, fired when the DataTable is destroyed by calling fnDestroy\r\n\t * or passing the bDestroy:true parameter in the initialisation object. This\r\n\t * can be used to remove bound events, added DOM nodes, etc.\r\n\t *  @name DataTable#destroy.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * Page length change event, fired when number of records to show on each\r\n\t * page (the length) is changed.\r\n\t *  @name DataTable#length.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t *  @param {integer} len New length\r\n\t */\r\n\r\n\t/**\r\n\t * Column sizing has changed.\r\n\t *  @name DataTable#column-sizing.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * Column visibility has changed.\r\n\t *  @name DataTable#column-visibility.dt\r\n\t *  @event\r\n\t *  @param {event} e jQuery event object\r\n\t *  @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t *  @param {int} column Column index\r\n\t *  @param {bool} vis `false` if column now hidden, or `true` if visible\r\n\t */\r\n\r\n\treturn $.fn.dataTable;\r\n}));\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/datatables.net/js/jquery.dataTables.js\n// module id = 62\n// module chunks = 2","var __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * @license Angular v4.1.3\r\n * (c) 2010-2017 Google, Inc. https://angular.io/\r\n * License: MIT\r\n */\r\nimport { Injectable, NgModule, Version } from '@angular/core';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport { ɵgetDOM } from '@angular/platform-browser';\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A backend for http that uses the `XMLHttpRequest` browser API.\r\n *\r\n * Take care not to evaluate this in non-browser contexts.\r\n *\r\n * \\@experimental\r\n */\r\nvar BrowserXhr = (function () {\r\n    function BrowserXhr() {\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserXhr.prototype.build = function () { return ((new XMLHttpRequest())); };\r\n    return BrowserXhr;\r\n}());\r\nBrowserXhr.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nBrowserXhr.ctorParameters = function () { return []; };\r\nvar RequestMethod = {};\r\nRequestMethod.Get = 0;\r\nRequestMethod.Post = 1;\r\nRequestMethod.Put = 2;\r\nRequestMethod.Delete = 3;\r\nRequestMethod.Options = 4;\r\nRequestMethod.Head = 5;\r\nRequestMethod.Patch = 6;\r\nRequestMethod[RequestMethod.Get] = \"Get\";\r\nRequestMethod[RequestMethod.Post] = \"Post\";\r\nRequestMethod[RequestMethod.Put] = \"Put\";\r\nRequestMethod[RequestMethod.Delete] = \"Delete\";\r\nRequestMethod[RequestMethod.Options] = \"Options\";\r\nRequestMethod[RequestMethod.Head] = \"Head\";\r\nRequestMethod[RequestMethod.Patch] = \"Patch\";\r\nvar ReadyState = {};\r\nReadyState.Unsent = 0;\r\nReadyState.Open = 1;\r\nReadyState.HeadersReceived = 2;\r\nReadyState.Loading = 3;\r\nReadyState.Done = 4;\r\nReadyState.Cancelled = 5;\r\nReadyState[ReadyState.Unsent] = \"Unsent\";\r\nReadyState[ReadyState.Open] = \"Open\";\r\nReadyState[ReadyState.HeadersReceived] = \"HeadersReceived\";\r\nReadyState[ReadyState.Loading] = \"Loading\";\r\nReadyState[ReadyState.Done] = \"Done\";\r\nReadyState[ReadyState.Cancelled] = \"Cancelled\";\r\nvar ResponseType = {};\r\nResponseType.Basic = 0;\r\nResponseType.Cors = 1;\r\nResponseType.Default = 2;\r\nResponseType.Error = 3;\r\nResponseType.Opaque = 4;\r\nResponseType[ResponseType.Basic] = \"Basic\";\r\nResponseType[ResponseType.Cors] = \"Cors\";\r\nResponseType[ResponseType.Default] = \"Default\";\r\nResponseType[ResponseType.Error] = \"Error\";\r\nResponseType[ResponseType.Opaque] = \"Opaque\";\r\nvar ContentType = {};\r\nContentType.NONE = 0;\r\nContentType.JSON = 1;\r\nContentType.FORM = 2;\r\nContentType.FORM_DATA = 3;\r\nContentType.TEXT = 4;\r\nContentType.BLOB = 5;\r\nContentType.ARRAY_BUFFER = 6;\r\nContentType[ContentType.NONE] = \"NONE\";\r\nContentType[ContentType.JSON] = \"JSON\";\r\nContentType[ContentType.FORM] = \"FORM\";\r\nContentType[ContentType.FORM_DATA] = \"FORM_DATA\";\r\nContentType[ContentType.TEXT] = \"TEXT\";\r\nContentType[ContentType.BLOB] = \"BLOB\";\r\nContentType[ContentType.ARRAY_BUFFER] = \"ARRAY_BUFFER\";\r\nvar ResponseContentType = {};\r\nResponseContentType.Text = 0;\r\nResponseContentType.Json = 1;\r\nResponseContentType.ArrayBuffer = 2;\r\nResponseContentType.Blob = 3;\r\nResponseContentType[ResponseContentType.Text] = \"Text\";\r\nResponseContentType[ResponseContentType.Json] = \"Json\";\r\nResponseContentType[ResponseContentType.ArrayBuffer] = \"ArrayBuffer\";\r\nResponseContentType[ResponseContentType.Blob] = \"Blob\";\r\n/**\r\n * Polyfill for [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers), as\r\n * specified in the [Fetch Spec](https://fetch.spec.whatwg.org/#headers-class).\r\n *\r\n * The only known difference between this `Headers` implementation and the spec is the\r\n * lack of an `entries` method.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * import {Headers} from '\\@angular/http';\r\n *\r\n * var firstHeaders = new Headers();\r\n * firstHeaders.append('Content-Type', 'image/jpeg');\r\n * console.log(firstHeaders.get('Content-Type')) //'image/jpeg'\r\n *\r\n * // Create headers from Plain Old JavaScript Object\r\n * var secondHeaders = new Headers({\r\n *   'X-My-Custom-Header': 'Angular'\r\n * });\r\n * console.log(secondHeaders.get('X-My-Custom-Header')); //'Angular'\r\n *\r\n * var thirdHeaders = new Headers(secondHeaders);\r\n * console.log(thirdHeaders.get('X-My-Custom-Header')); //'Angular'\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar Headers = (function () {\r\n    /**\r\n     * @param {?=} headers\r\n     */\r\n    function Headers(headers) {\r\n        var _this = this;\r\n        /**\r\n         * \\@internal header names are lower case\r\n         */\r\n        this._headers = new Map();\r\n        /**\r\n         * \\@internal map lower case names to actual names\r\n         */\r\n        this._normalizedNames = new Map();\r\n        if (!headers) {\r\n            return;\r\n        }\r\n        if (headers instanceof Headers) {\r\n            headers.forEach(function (values, name) {\r\n                values.forEach(function (value) { return _this.append(name, value); });\r\n            });\r\n            return;\r\n        }\r\n        Object.keys(headers).forEach(function (name) {\r\n            var values = Array.isArray(headers[name]) ? headers[name] : [headers[name]];\r\n            _this.delete(name);\r\n            values.forEach(function (value) { return _this.append(name, value); });\r\n        });\r\n    }\r\n    /**\r\n     * Returns a new Headers instance from the given DOMString of Response Headers\r\n     * @param {?} headersString\r\n     * @return {?}\r\n     */\r\n    Headers.fromResponseHeaderString = function (headersString) {\r\n        var /** @type {?} */ headers = new Headers();\r\n        headersString.split('\\n').forEach(function (line) {\r\n            var /** @type {?} */ index = line.indexOf(':');\r\n            if (index > 0) {\r\n                var /** @type {?} */ name = line.slice(0, index);\r\n                var /** @type {?} */ value = line.slice(index + 1).trim();\r\n                headers.set(name, value);\r\n            }\r\n        });\r\n        return headers;\r\n    };\r\n    /**\r\n     * Appends a header to existing list of header values for a given header name.\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.append = function (name, value) {\r\n        var /** @type {?} */ values = this.getAll(name);\r\n        if (values === null) {\r\n            this.set(name, value);\r\n        }\r\n        else {\r\n            values.push(value);\r\n        }\r\n    };\r\n    /**\r\n     * Deletes all header values for the given name.\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.delete = function (name) {\r\n        var /** @type {?} */ lcName = name.toLowerCase();\r\n        this._normalizedNames.delete(lcName);\r\n        this._headers.delete(lcName);\r\n    };\r\n    /**\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.forEach = function (fn) {\r\n        var _this = this;\r\n        this._headers.forEach(function (values, lcName) { return fn(values, _this._normalizedNames.get(lcName), _this._headers); });\r\n    };\r\n    /**\r\n     * Returns first header that matches given name.\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.get = function (name) {\r\n        var /** @type {?} */ values = this.getAll(name);\r\n        if (values === null) {\r\n            return null;\r\n        }\r\n        return values.length > 0 ? values[0] : null;\r\n    };\r\n    /**\r\n     * Checks for existence of header by given name.\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.has = function (name) { return this._headers.has(name.toLowerCase()); };\r\n    /**\r\n     * Returns the names of the headers\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.keys = function () { return Array.from(this._normalizedNames.values()); };\r\n    /**\r\n     * Sets or overrides header value for given name.\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.set = function (name, value) {\r\n        if (Array.isArray(value)) {\r\n            if (value.length) {\r\n                this._headers.set(name.toLowerCase(), [value.join(',')]);\r\n            }\r\n        }\r\n        else {\r\n            this._headers.set(name.toLowerCase(), [value]);\r\n        }\r\n        this.mayBeSetNormalizedName(name);\r\n    };\r\n    /**\r\n     * Returns values of all headers.\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.values = function () { return Array.from(this._headers.values()); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.toJSON = function () {\r\n        var _this = this;\r\n        var /** @type {?} */ serialized = {};\r\n        this._headers.forEach(function (values, name) {\r\n            var /** @type {?} */ split = [];\r\n            values.forEach(function (v) { return split.push.apply(split, v.split(',')); });\r\n            serialized[((_this._normalizedNames.get(name)))] = split;\r\n        });\r\n        return serialized;\r\n    };\r\n    /**\r\n     * Returns list of header values for a given name.\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.getAll = function (name) {\r\n        return this.has(name) ? this._headers.get(name.toLowerCase()) || null : null;\r\n    };\r\n    /**\r\n     * This method is not implemented.\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.entries = function () { throw new Error('\"entries\" method is not implemented on Headers class'); };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    Headers.prototype.mayBeSetNormalizedName = function (name) {\r\n        var /** @type {?} */ lcName = name.toLowerCase();\r\n        if (!this._normalizedNames.has(lcName)) {\r\n            this._normalizedNames.set(lcName, name);\r\n        }\r\n    };\r\n    return Headers;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Creates a response options object to be optionally provided when instantiating a\r\n * {\\@link Response}.\r\n *\r\n * This class is based on the `ResponseInit` description in the [Fetch\r\n * Spec](https://fetch.spec.whatwg.org/#responseinit).\r\n *\r\n * All values are null by default. Typical defaults can be found in the\r\n * {\\@link BaseResponseOptions} class, which sub-classes `ResponseOptions`.\r\n *\r\n * This class may be used in tests to build {\\@link Response Responses} for\r\n * mock responses (see {\\@link MockBackend}).\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/P9Jkk8e8cz6NVzbcxEsD?p=preview))\r\n *\r\n * ```typescript\r\n * import {ResponseOptions, Response} from '\\@angular/http';\r\n *\r\n * var options = new ResponseOptions({\r\n *   body: '{\"name\":\"Jeff\"}'\r\n * });\r\n * var res = new Response(options);\r\n *\r\n * console.log('res.json():', res.json()); // Object {name: \"Jeff\"}\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar ResponseOptions = (function () {\r\n    /**\r\n     * @param {?=} __0\r\n     */\r\n    function ResponseOptions(_a) {\r\n        var _b = _a === void 0 ? {} : _a, body = _b.body, status = _b.status, headers = _b.headers, statusText = _b.statusText, type = _b.type, url = _b.url;\r\n        this.body = body != null ? body : null;\r\n        this.status = status != null ? status : null;\r\n        this.headers = headers != null ? headers : null;\r\n        this.statusText = statusText != null ? statusText : null;\r\n        this.type = type != null ? type : null;\r\n        this.url = url != null ? url : null;\r\n    }\r\n    /**\r\n     * Creates a copy of the `ResponseOptions` instance, using the optional input as values to\r\n     * override\r\n     * existing values. This method will not change the values of the instance on which it is being\r\n     * called.\r\n     *\r\n     * This may be useful when sharing a base `ResponseOptions` object inside tests,\r\n     * where certain properties may change from test to test.\r\n     *\r\n     * ### Example ([live demo](http://plnkr.co/edit/1lXquqFfgduTFBWjNoRE?p=preview))\r\n     *\r\n     * ```typescript\r\n     * import {ResponseOptions, Response} from '\\@angular/http';\r\n     *\r\n     * var options = new ResponseOptions({\r\n     *   body: {name: 'Jeff'}\r\n     * });\r\n     * var res = new Response(options.merge({\r\n     *   url: 'https://google.com'\r\n     * }));\r\n     * console.log('options.url:', options.url); // null\r\n     * console.log('res.json():', res.json()); // Object {name: \"Jeff\"}\r\n     * console.log('res.url:', res.url); // https://google.com\r\n     * ```\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    ResponseOptions.prototype.merge = function (options) {\r\n        return new ResponseOptions({\r\n            body: options && options.body != null ? options.body : this.body,\r\n            status: options && options.status != null ? options.status : this.status,\r\n            headers: options && options.headers != null ? options.headers : this.headers,\r\n            statusText: options && options.statusText != null ? options.statusText : this.statusText,\r\n            type: options && options.type != null ? options.type : this.type,\r\n            url: options && options.url != null ? options.url : this.url,\r\n        });\r\n    };\r\n    return ResponseOptions;\r\n}());\r\n/**\r\n * Subclass of {\\@link ResponseOptions}, with default values.\r\n *\r\n * Default values:\r\n *  * status: 200\r\n *  * headers: empty {\\@link Headers} object\r\n *\r\n * This class could be extended and bound to the {\\@link ResponseOptions} class\r\n * when configuring an {\\@link Injector}, in order to override the default options\r\n * used by {\\@link Http} to create {\\@link Response Responses}.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/qv8DLT?p=preview))\r\n *\r\n * ```typescript\r\n * import {provide} from '\\@angular/core';\r\n * import {bootstrap} from '\\@angular/platform-browser/browser';\r\n * import {HTTP_PROVIDERS, Headers, Http, BaseResponseOptions, ResponseOptions} from\r\n * '\\@angular/http';\r\n * import {App} from './myapp';\r\n *\r\n * class MyOptions extends BaseResponseOptions {\r\n *   headers:Headers = new Headers({network: 'github'});\r\n * }\r\n *\r\n * bootstrap(App, [HTTP_PROVIDERS, {provide: ResponseOptions, useClass: MyOptions}]);\r\n * ```\r\n *\r\n * The options could also be extended when manually creating a {\\@link Response}\r\n * object.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/VngosOWiaExEtbstDoix?p=preview))\r\n *\r\n * ```\r\n * import {BaseResponseOptions, Response} from '\\@angular/http';\r\n *\r\n * var options = new BaseResponseOptions();\r\n * var res = new Response(options.merge({\r\n *   body: 'Angular',\r\n *   headers: new Headers({framework: 'angular'})\r\n * }));\r\n * console.log('res.headers.get(\"framework\"):', res.headers.get('framework')); // angular\r\n * console.log('res.text():', res.text()); // Angular;\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar BaseResponseOptions = (function (_super) {\r\n    __extends(BaseResponseOptions, _super);\r\n    function BaseResponseOptions() {\r\n        return _super.call(this, { status: 200, statusText: 'Ok', type: ResponseType.Default, headers: new Headers() }) || this;\r\n    }\r\n    return BaseResponseOptions;\r\n}(ResponseOptions));\r\nBaseResponseOptions.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nBaseResponseOptions.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Abstract class from which real backends are derived.\r\n *\r\n * The primary purpose of a `ConnectionBackend` is to create new connections to fulfill a given\r\n * {\\@link Request}.\r\n *\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar ConnectionBackend = (function () {\r\n    function ConnectionBackend() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} request\r\n     * @return {?}\r\n     */\r\n    ConnectionBackend.prototype.createConnection = function (request) { };\r\n    return ConnectionBackend;\r\n}());\r\n/**\r\n * Abstract class from which real connections are derived.\r\n *\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar Connection = (function () {\r\n    function Connection() {\r\n    }\r\n    return Connection;\r\n}());\r\n/**\r\n * An XSRFStrategy configures XSRF protection (e.g. via headers) on an HTTP request.\r\n *\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar XSRFStrategy = (function () {\r\n    function XSRFStrategy() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} req\r\n     * @return {?}\r\n     */\r\n    XSRFStrategy.prototype.configureRequest = function (req) { };\r\n    return XSRFStrategy;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} method\r\n * @return {?}\r\n */\r\nfunction normalizeMethodName(method) {\r\n    if (typeof method !== 'string')\r\n        return method;\r\n    switch (method.toUpperCase()) {\r\n        case 'GET':\r\n            return RequestMethod.Get;\r\n        case 'POST':\r\n            return RequestMethod.Post;\r\n        case 'PUT':\r\n            return RequestMethod.Put;\r\n        case 'DELETE':\r\n            return RequestMethod.Delete;\r\n        case 'OPTIONS':\r\n            return RequestMethod.Options;\r\n        case 'HEAD':\r\n            return RequestMethod.Head;\r\n        case 'PATCH':\r\n            return RequestMethod.Patch;\r\n    }\r\n    throw new Error(\"Invalid request method. The method \\\"\" + method + \"\\\" is not supported.\");\r\n}\r\nvar isSuccess = function (status) { return (status >= 200 && status < 300); };\r\n/**\r\n * @param {?} xhr\r\n * @return {?}\r\n */\r\nfunction getResponseURL(xhr) {\r\n    if ('responseURL' in xhr) {\r\n        return xhr.responseURL;\r\n    }\r\n    if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\r\n        return xhr.getResponseHeader('X-Request-URL');\r\n    }\r\n    return null;\r\n}\r\n/**\r\n * @param {?} input\r\n * @return {?}\r\n */\r\n/**\r\n * @param {?} input\r\n * @return {?}\r\n */\r\nfunction stringToArrayBuffer(input) {\r\n    var /** @type {?} */ view = new Uint16Array(input.length);\r\n    for (var /** @type {?} */ i = 0, /** @type {?} */ strLen = input.length; i < strLen; i++) {\r\n        view[i] = input.charCodeAt(i);\r\n    }\r\n    return view.buffer;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n * @param {?=} rawParams\r\n * @return {?}\r\n */\r\nfunction paramParser(rawParams) {\r\n    if (rawParams === void 0) { rawParams = ''; }\r\n    var /** @type {?} */ map = new Map();\r\n    if (rawParams.length > 0) {\r\n        var /** @type {?} */ params = rawParams.split('&');\r\n        params.forEach(function (param) {\r\n            var /** @type {?} */ eqIdx = param.indexOf('=');\r\n            var _a = eqIdx == -1 ? [param, ''] : [param.slice(0, eqIdx), param.slice(eqIdx + 1)], key = _a[0], val = _a[1];\r\n            var /** @type {?} */ list = map.get(key) || [];\r\n            list.push(val);\r\n            map.set(key, list);\r\n        });\r\n    }\r\n    return map;\r\n}\r\n/**\r\n * \\@experimental\r\n *\r\n */\r\nvar QueryEncoder = (function () {\r\n    function QueryEncoder() {\r\n    }\r\n    /**\r\n     * @param {?} k\r\n     * @return {?}\r\n     */\r\n    QueryEncoder.prototype.encodeKey = function (k) { return standardEncoding(k); };\r\n    /**\r\n     * @param {?} v\r\n     * @return {?}\r\n     */\r\n    QueryEncoder.prototype.encodeValue = function (v) { return standardEncoding(v); };\r\n    return QueryEncoder;\r\n}());\r\n/**\r\n * @param {?} v\r\n * @return {?}\r\n */\r\nfunction standardEncoding(v) {\r\n    return encodeURIComponent(v)\r\n        .replace(/%40/gi, '@')\r\n        .replace(/%3A/gi, ':')\r\n        .replace(/%24/gi, '$')\r\n        .replace(/%2C/gi, ',')\r\n        .replace(/%3B/gi, ';')\r\n        .replace(/%2B/gi, '+')\r\n        .replace(/%3D/gi, '=')\r\n        .replace(/%3F/gi, '?')\r\n        .replace(/%2F/gi, '/');\r\n}\r\n/**\r\n * Map-like representation of url search parameters, based on\r\n * [URLSearchParams](https://url.spec.whatwg.org/#urlsearchparams) in the url living standard,\r\n * with several extensions for merging URLSearchParams objects:\r\n *   - setAll()\r\n *   - appendAll()\r\n *   - replaceAll()\r\n *\r\n * This class accepts an optional second parameter of ${\\@link QueryEncoder},\r\n * which is used to serialize parameters before making a request. By default,\r\n * `QueryEncoder` encodes keys and values of parameters using `encodeURIComponent`,\r\n * and then un-encodes certain characters that are allowed to be part of the query\r\n * according to IETF RFC 3986: https://tools.ietf.org/html/rfc3986.\r\n *\r\n * These are the characters that are not encoded: `! $ \\' ( ) * + , ; A 9 - . _ ~ ? /`\r\n *\r\n * If the set of allowed query characters is not acceptable for a particular backend,\r\n * `QueryEncoder` can be subclassed and provided as the 2nd argument to URLSearchParams.\r\n *\r\n * ```\r\n * import {URLSearchParams, QueryEncoder} from '\\@angular/http';\r\n * class MyQueryEncoder extends QueryEncoder {\r\n *   encodeKey(k: string): string {\r\n *     return myEncodingFunction(k);\r\n *   }\r\n *\r\n *   encodeValue(v: string): string {\r\n *     return myEncodingFunction(v);\r\n *   }\r\n * }\r\n *\r\n * let params = new URLSearchParams('', new MyQueryEncoder());\r\n * ```\r\n * \\@experimental\r\n */\r\nvar URLSearchParams = (function () {\r\n    /**\r\n     * @param {?=} rawParams\r\n     * @param {?=} queryEncoder\r\n     */\r\n    function URLSearchParams(rawParams, queryEncoder) {\r\n        if (rawParams === void 0) { rawParams = ''; }\r\n        if (queryEncoder === void 0) { queryEncoder = new QueryEncoder(); }\r\n        this.rawParams = rawParams;\r\n        this.queryEncoder = queryEncoder;\r\n        this.paramsMap = paramParser(rawParams);\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.clone = function () {\r\n        var /** @type {?} */ clone = new URLSearchParams('', this.queryEncoder);\r\n        clone.appendAll(this);\r\n        return clone;\r\n    };\r\n    /**\r\n     * @param {?} param\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.has = function (param) { return this.paramsMap.has(param); };\r\n    /**\r\n     * @param {?} param\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.get = function (param) {\r\n        var /** @type {?} */ storedParam = this.paramsMap.get(param);\r\n        return Array.isArray(storedParam) ? storedParam[0] : null;\r\n    };\r\n    /**\r\n     * @param {?} param\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.getAll = function (param) { return this.paramsMap.get(param) || []; };\r\n    /**\r\n     * @param {?} param\r\n     * @param {?} val\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.set = function (param, val) {\r\n        if (val === void 0 || val === null) {\r\n            this.delete(param);\r\n            return;\r\n        }\r\n        var /** @type {?} */ list = this.paramsMap.get(param) || [];\r\n        list.length = 0;\r\n        list.push(val);\r\n        this.paramsMap.set(param, list);\r\n    };\r\n    /**\r\n     * @param {?} searchParams\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.setAll = function (searchParams) {\r\n        var _this = this;\r\n        searchParams.paramsMap.forEach(function (value, param) {\r\n            var /** @type {?} */ list = _this.paramsMap.get(param) || [];\r\n            list.length = 0;\r\n            list.push(value[0]);\r\n            _this.paramsMap.set(param, list);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} param\r\n     * @param {?} val\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.append = function (param, val) {\r\n        if (val === void 0 || val === null)\r\n            return;\r\n        var /** @type {?} */ list = this.paramsMap.get(param) || [];\r\n        list.push(val);\r\n        this.paramsMap.set(param, list);\r\n    };\r\n    /**\r\n     * @param {?} searchParams\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.appendAll = function (searchParams) {\r\n        var _this = this;\r\n        searchParams.paramsMap.forEach(function (value, param) {\r\n            var /** @type {?} */ list = _this.paramsMap.get(param) || [];\r\n            for (var /** @type {?} */ i = 0; i < value.length; ++i) {\r\n                list.push(value[i]);\r\n            }\r\n            _this.paramsMap.set(param, list);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} searchParams\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.replaceAll = function (searchParams) {\r\n        var _this = this;\r\n        searchParams.paramsMap.forEach(function (value, param) {\r\n            var /** @type {?} */ list = _this.paramsMap.get(param) || [];\r\n            list.length = 0;\r\n            for (var /** @type {?} */ i = 0; i < value.length; ++i) {\r\n                list.push(value[i]);\r\n            }\r\n            _this.paramsMap.set(param, list);\r\n        });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.toString = function () {\r\n        var _this = this;\r\n        var /** @type {?} */ paramsList = [];\r\n        this.paramsMap.forEach(function (values, k) {\r\n            values.forEach(function (v) { return paramsList.push(_this.queryEncoder.encodeKey(k) + '=' + _this.queryEncoder.encodeValue(v)); });\r\n        });\r\n        return paramsList.join('&');\r\n    };\r\n    /**\r\n     * @param {?} param\r\n     * @return {?}\r\n     */\r\n    URLSearchParams.prototype.delete = function (param) { this.paramsMap.delete(param); };\r\n    return URLSearchParams;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * HTTP request body used by both {\\@link Request} and {\\@link Response}\r\n * https://fetch.spec.whatwg.org/#body\r\n * @abstract\r\n */\r\nvar Body = (function () {\r\n    function Body() {\r\n    }\r\n    /**\r\n     * Attempts to return body as parsed `JSON` object, or raises an exception.\r\n     * @return {?}\r\n     */\r\n    Body.prototype.json = function () {\r\n        if (typeof this._body === 'string') {\r\n            return JSON.parse(/** @type {?} */ (this._body));\r\n        }\r\n        if (this._body instanceof ArrayBuffer) {\r\n            return JSON.parse(this.text());\r\n        }\r\n        return this._body;\r\n    };\r\n    /**\r\n     * Returns the body as a string, presuming `toString()` can be called on the response body.\r\n     *\r\n     * When decoding an `ArrayBuffer`, the optional `encodingHint` parameter determines how the\r\n     * bytes in the buffer will be interpreted. Valid values are:\r\n     *\r\n     * - `legacy` - incorrectly interpret the bytes as UTF-16 (technically, UCS-2). Only characters\r\n     *   in the Basic Multilingual Plane are supported, surrogate pairs are not handled correctly.\r\n     *   In addition, the endianness of the 16-bit octet pairs in the `ArrayBuffer` is not taken\r\n     *   into consideration. This is the default behavior to avoid breaking apps, but should be\r\n     *   considered deprecated.\r\n     *\r\n     * - `iso-8859` - interpret the bytes as ISO-8859 (which can be used for ASCII encoded text).\r\n     * @param {?=} encodingHint\r\n     * @return {?}\r\n     */\r\n    Body.prototype.text = function (encodingHint) {\r\n        if (encodingHint === void 0) { encodingHint = 'legacy'; }\r\n        if (this._body instanceof URLSearchParams) {\r\n            return this._body.toString();\r\n        }\r\n        if (this._body instanceof ArrayBuffer) {\r\n            switch (encodingHint) {\r\n                case 'legacy':\r\n                    return String.fromCharCode.apply(null, new Uint16Array(/** @type {?} */ (this._body)));\r\n                case 'iso-8859':\r\n                    return String.fromCharCode.apply(null, new Uint8Array(/** @type {?} */ (this._body)));\r\n                default:\r\n                    throw new Error(\"Invalid value for encodingHint: \" + encodingHint);\r\n            }\r\n        }\r\n        if (this._body == null) {\r\n            return '';\r\n        }\r\n        if (typeof this._body === 'object') {\r\n            return JSON.stringify(this._body, null, 2);\r\n        }\r\n        return this._body.toString();\r\n    };\r\n    /**\r\n     * Return the body as an ArrayBuffer\r\n     * @return {?}\r\n     */\r\n    Body.prototype.arrayBuffer = function () {\r\n        if (this._body instanceof ArrayBuffer) {\r\n            return (this._body);\r\n        }\r\n        return stringToArrayBuffer(this.text());\r\n    };\r\n    /**\r\n     * Returns the request's body as a Blob, assuming that body exists.\r\n     * @return {?}\r\n     */\r\n    Body.prototype.blob = function () {\r\n        if (this._body instanceof Blob) {\r\n            return (this._body);\r\n        }\r\n        if (this._body instanceof ArrayBuffer) {\r\n            return new Blob([this._body]);\r\n        }\r\n        throw new Error('The request body isn\\'t either a blob or an array buffer');\r\n    };\r\n    return Body;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Creates `Response` instances from provided values.\r\n *\r\n * Though this object isn't\r\n * usually instantiated by end-users, it is the primary object interacted with when it comes time to\r\n * add data to a view.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * http.request('my-friends.txt').subscribe(response => this.friends = response.text());\r\n * ```\r\n *\r\n * The Response's interface is inspired by the Response constructor defined in the [Fetch\r\n * Spec](https://fetch.spec.whatwg.org/#response-class), but is considered a static value whose body\r\n * can be accessed many times. There are other differences in the implementation, but this is the\r\n * most significant.\r\n *\r\n * \\@experimental\r\n */\r\nvar Response = (function (_super) {\r\n    __extends(Response, _super);\r\n    /**\r\n     * @param {?} responseOptions\r\n     */\r\n    function Response(responseOptions) {\r\n        var _this = _super.call(this) || this;\r\n        _this._body = responseOptions.body;\r\n        _this.status = responseOptions.status;\r\n        _this.ok = (_this.status >= 200 && _this.status <= 299);\r\n        _this.statusText = responseOptions.statusText;\r\n        _this.headers = responseOptions.headers;\r\n        _this.type = responseOptions.type;\r\n        _this.url = responseOptions.url;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Response.prototype.toString = function () {\r\n        return \"Response with status: \" + this.status + \" \" + this.statusText + \" for URL: \" + this.url;\r\n    };\r\n    return Response;\r\n}(Body));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _nextRequestId = 0;\r\nvar JSONP_HOME = '__ng_jsonp__';\r\nvar _jsonpConnections = null;\r\n/**\r\n * @return {?}\r\n */\r\nfunction _getJsonpConnections() {\r\n    var /** @type {?} */ w = typeof window == 'object' ? window : {};\r\n    if (_jsonpConnections === null) {\r\n        _jsonpConnections = w[JSONP_HOME] = {};\r\n    }\r\n    return _jsonpConnections;\r\n}\r\nvar BrowserJsonp = (function () {\r\n    function BrowserJsonp() {\r\n    }\r\n    /**\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    BrowserJsonp.prototype.build = function (url) {\r\n        var /** @type {?} */ node = document.createElement('script');\r\n        node.src = url;\r\n        return node;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BrowserJsonp.prototype.nextRequestID = function () { return \"__req\" + _nextRequestId++; };\r\n    /**\r\n     * @param {?} id\r\n     * @return {?}\r\n     */\r\n    BrowserJsonp.prototype.requestCallback = function (id) { return JSONP_HOME + \".\" + id + \".finished\"; };\r\n    /**\r\n     * @param {?} id\r\n     * @param {?} connection\r\n     * @return {?}\r\n     */\r\n    BrowserJsonp.prototype.exposeConnection = function (id, connection) {\r\n        var /** @type {?} */ connections = _getJsonpConnections();\r\n        connections[id] = connection;\r\n    };\r\n    /**\r\n     * @param {?} id\r\n     * @return {?}\r\n     */\r\n    BrowserJsonp.prototype.removeConnection = function (id) {\r\n        var /** @type {?} */ connections = _getJsonpConnections();\r\n        connections[id] = null;\r\n    };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserJsonp.prototype.send = function (node) { document.body.appendChild(/** @type {?} */ ((node))); };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    BrowserJsonp.prototype.cleanup = function (node) {\r\n        if (node.parentNode) {\r\n            node.parentNode.removeChild(/** @type {?} */ ((node)));\r\n        }\r\n    };\r\n    return BrowserJsonp;\r\n}());\r\nBrowserJsonp.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nBrowserJsonp.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';\r\nvar JSONP_ERR_WRONG_METHOD = 'JSONP requests must use GET request method.';\r\n/**\r\n * Abstract base class for an in-flight JSONP request.\r\n *\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar JSONPConnection = (function () {\r\n    function JSONPConnection() {\r\n    }\r\n    /**\r\n     * Callback called when the JSONP request completes, to notify the application\r\n     * of the new data.\r\n     * @abstract\r\n     * @param {?=} data\r\n     * @return {?}\r\n     */\r\n    JSONPConnection.prototype.finished = function (data) { };\r\n    return JSONPConnection;\r\n}());\r\nvar JSONPConnection_ = (function (_super) {\r\n    __extends(JSONPConnection_, _super);\r\n    /**\r\n     * @param {?} req\r\n     * @param {?} _dom\r\n     * @param {?=} baseResponseOptions\r\n     */\r\n    function JSONPConnection_(req, _dom, baseResponseOptions) {\r\n        var _this = _super.call(this) || this;\r\n        _this._dom = _dom;\r\n        _this.baseResponseOptions = baseResponseOptions;\r\n        _this._finished = false;\r\n        if (req.method !== RequestMethod.Get) {\r\n            throw new TypeError(JSONP_ERR_WRONG_METHOD);\r\n        }\r\n        _this.request = req;\r\n        _this.response = new Observable(function (responseObserver) {\r\n            _this.readyState = ReadyState.Loading;\r\n            var id = _this._id = _dom.nextRequestID();\r\n            _dom.exposeConnection(id, _this);\r\n            // Workaround Dart\r\n            // url = url.replace(/=JSONP_CALLBACK(&|$)/, `generated method`);\r\n            var callback = _dom.requestCallback(_this._id);\r\n            var url = req.url;\r\n            if (url.indexOf('=JSONP_CALLBACK&') > -1) {\r\n                url = url.replace('=JSONP_CALLBACK&', \"=\" + callback + \"&\");\r\n            }\r\n            else if (url.lastIndexOf('=JSONP_CALLBACK') === url.length - '=JSONP_CALLBACK'.length) {\r\n                url = url.substring(0, url.length - '=JSONP_CALLBACK'.length) + (\"=\" + callback);\r\n            }\r\n            var script = _this._script = _dom.build(url);\r\n            var onLoad = function (event) {\r\n                if (_this.readyState === ReadyState.Cancelled)\r\n                    return;\r\n                _this.readyState = ReadyState.Done;\r\n                _dom.cleanup(script);\r\n                if (!_this._finished) {\r\n                    var responseOptions_1 = new ResponseOptions({ body: JSONP_ERR_NO_CALLBACK, type: ResponseType.Error, url: url });\r\n                    if (baseResponseOptions) {\r\n                        responseOptions_1 = baseResponseOptions.merge(responseOptions_1);\r\n                    }\r\n                    responseObserver.error(new Response(responseOptions_1));\r\n                    return;\r\n                }\r\n                var responseOptions = new ResponseOptions({ body: _this._responseData, url: url });\r\n                if (_this.baseResponseOptions) {\r\n                    responseOptions = _this.baseResponseOptions.merge(responseOptions);\r\n                }\r\n                responseObserver.next(new Response(responseOptions));\r\n                responseObserver.complete();\r\n            };\r\n            var onError = function (error) {\r\n                if (_this.readyState === ReadyState.Cancelled)\r\n                    return;\r\n                _this.readyState = ReadyState.Done;\r\n                _dom.cleanup(script);\r\n                var responseOptions = new ResponseOptions({ body: error.message, type: ResponseType.Error });\r\n                if (baseResponseOptions) {\r\n                    responseOptions = baseResponseOptions.merge(responseOptions);\r\n                }\r\n                responseObserver.error(new Response(responseOptions));\r\n            };\r\n            script.addEventListener('load', onLoad);\r\n            script.addEventListener('error', onError);\r\n            _dom.send(script);\r\n            return function () {\r\n                _this.readyState = ReadyState.Cancelled;\r\n                script.removeEventListener('load', onLoad);\r\n                script.removeEventListener('error', onError);\r\n                _this._dom.cleanup(script);\r\n            };\r\n        });\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?=} data\r\n     * @return {?}\r\n     */\r\n    JSONPConnection_.prototype.finished = function (data) {\r\n        // Don't leak connections\r\n        this._finished = true;\r\n        this._dom.removeConnection(this._id);\r\n        if (this.readyState === ReadyState.Cancelled)\r\n            return;\r\n        this._responseData = data;\r\n    };\r\n    return JSONPConnection_;\r\n}(JSONPConnection));\r\n/**\r\n * A {\\@link ConnectionBackend} that uses the JSONP strategy of making requests.\r\n *\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar JSONPBackend = (function (_super) {\r\n    __extends(JSONPBackend, _super);\r\n    function JSONPBackend() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    return JSONPBackend;\r\n}(ConnectionBackend));\r\nvar JSONPBackend_ = (function (_super) {\r\n    __extends(JSONPBackend_, _super);\r\n    /**\r\n     * @param {?} _browserJSONP\r\n     * @param {?} _baseResponseOptions\r\n     */\r\n    function JSONPBackend_(_browserJSONP, _baseResponseOptions) {\r\n        var _this = _super.call(this) || this;\r\n        _this._browserJSONP = _browserJSONP;\r\n        _this._baseResponseOptions = _baseResponseOptions;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} request\r\n     * @return {?}\r\n     */\r\n    JSONPBackend_.prototype.createConnection = function (request) {\r\n        return new JSONPConnection_(request, this._browserJSONP, this._baseResponseOptions);\r\n    };\r\n    return JSONPBackend_;\r\n}(JSONPBackend));\r\nJSONPBackend_.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nJSONPBackend_.ctorParameters = function () { return [\r\n    { type: BrowserJsonp, },\r\n    { type: ResponseOptions, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar XSSI_PREFIX = /^\\)\\]\\}',?\\n/;\r\n/**\r\n * Creates connections using `XMLHttpRequest`. Given a fully-qualified\r\n * request, an `XHRConnection` will immediately create an `XMLHttpRequest` object and send the\r\n * request.\r\n *\r\n * This class would typically not be created or interacted with directly inside applications, though\r\n * the {\\@link MockConnection} may be interacted with in tests.\r\n *\r\n * \\@experimental\r\n */\r\nvar XHRConnection = (function () {\r\n    /**\r\n     * @param {?} req\r\n     * @param {?} browserXHR\r\n     * @param {?=} baseResponseOptions\r\n     */\r\n    function XHRConnection(req, browserXHR, baseResponseOptions) {\r\n        var _this = this;\r\n        this.request = req;\r\n        this.response = new Observable(function (responseObserver) {\r\n            var _xhr = browserXHR.build();\r\n            _xhr.open(RequestMethod[req.method].toUpperCase(), req.url);\r\n            if (req.withCredentials != null) {\r\n                _xhr.withCredentials = req.withCredentials;\r\n            }\r\n            // load event handler\r\n            var onLoad = function () {\r\n                // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\r\n                var status = _xhr.status === 1223 ? 204 : _xhr.status;\r\n                var body = null;\r\n                // HTTP 204 means no content\r\n                if (status !== 204) {\r\n                    // responseText is the old-school way of retrieving response (supported by IE8 & 9)\r\n                    // response/responseType properties were introduced in ResourceLoader Level2 spec\r\n                    // (supported by IE10)\r\n                    body = (typeof _xhr.response === 'undefined') ? _xhr.responseText : _xhr.response;\r\n                    // Implicitly strip a potential XSSI prefix.\r\n                    if (typeof body === 'string') {\r\n                        body = body.replace(XSSI_PREFIX, '');\r\n                    }\r\n                }\r\n                // fix status code when it is 0 (0 status is undocumented).\r\n                // Occurs when accessing file resources or on Android 4.1 stock browser\r\n                // while retrieving files from application cache.\r\n                if (status === 0) {\r\n                    status = body ? 200 : 0;\r\n                }\r\n                var headers = Headers.fromResponseHeaderString(_xhr.getAllResponseHeaders());\r\n                // IE 9 does not provide the way to get URL of response\r\n                var url = getResponseURL(_xhr) || req.url;\r\n                var statusText = _xhr.statusText || 'OK';\r\n                var responseOptions = new ResponseOptions({ body: body, status: status, headers: headers, statusText: statusText, url: url });\r\n                if (baseResponseOptions != null) {\r\n                    responseOptions = baseResponseOptions.merge(responseOptions);\r\n                }\r\n                var response = new Response(responseOptions);\r\n                response.ok = isSuccess(status);\r\n                if (response.ok) {\r\n                    responseObserver.next(response);\r\n                    // TODO(gdi2290): defer complete if array buffer until done\r\n                    responseObserver.complete();\r\n                    return;\r\n                }\r\n                responseObserver.error(response);\r\n            };\r\n            // error event handler\r\n            var onError = function (err) {\r\n                var responseOptions = new ResponseOptions({\r\n                    body: err,\r\n                    type: ResponseType.Error,\r\n                    status: _xhr.status,\r\n                    statusText: _xhr.statusText,\r\n                });\r\n                if (baseResponseOptions != null) {\r\n                    responseOptions = baseResponseOptions.merge(responseOptions);\r\n                }\r\n                responseObserver.error(new Response(responseOptions));\r\n            };\r\n            _this.setDetectedContentType(req, _xhr);\r\n            if (req.headers == null) {\r\n                req.headers = new Headers();\r\n            }\r\n            if (!req.headers.has('Accept')) {\r\n                req.headers.append('Accept', 'application/json, text/plain, */*');\r\n            }\r\n            req.headers.forEach(function (values, name) { return _xhr.setRequestHeader(name, values.join(',')); });\r\n            // Select the correct buffer type to store the response\r\n            if (req.responseType != null && _xhr.responseType != null) {\r\n                switch (req.responseType) {\r\n                    case ResponseContentType.ArrayBuffer:\r\n                        _xhr.responseType = 'arraybuffer';\r\n                        break;\r\n                    case ResponseContentType.Json:\r\n                        _xhr.responseType = 'json';\r\n                        break;\r\n                    case ResponseContentType.Text:\r\n                        _xhr.responseType = 'text';\r\n                        break;\r\n                    case ResponseContentType.Blob:\r\n                        _xhr.responseType = 'blob';\r\n                        break;\r\n                    default:\r\n                        throw new Error('The selected responseType is not supported');\r\n                }\r\n            }\r\n            _xhr.addEventListener('load', onLoad);\r\n            _xhr.addEventListener('error', onError);\r\n            _xhr.send(_this.request.getBody());\r\n            return function () {\r\n                _xhr.removeEventListener('load', onLoad);\r\n                _xhr.removeEventListener('error', onError);\r\n                _xhr.abort();\r\n            };\r\n        });\r\n    }\r\n    /**\r\n     * @param {?} req\r\n     * @param {?} _xhr\r\n     * @return {?}\r\n     */\r\n    XHRConnection.prototype.setDetectedContentType = function (req /** TODO Request */, _xhr /** XMLHttpRequest */) {\r\n        // Skip if a custom Content-Type header is provided\r\n        if (req.headers != null && req.headers.get('Content-Type') != null) {\r\n            return;\r\n        }\r\n        // Set the detected content type\r\n        switch (req.contentType) {\r\n            case ContentType.NONE:\r\n                break;\r\n            case ContentType.JSON:\r\n                _xhr.setRequestHeader('content-type', 'application/json');\r\n                break;\r\n            case ContentType.FORM:\r\n                _xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\r\n                break;\r\n            case ContentType.TEXT:\r\n                _xhr.setRequestHeader('content-type', 'text/plain');\r\n                break;\r\n            case ContentType.BLOB:\r\n                var /** @type {?} */ blob = req.blob();\r\n                if (blob.type) {\r\n                    _xhr.setRequestHeader('content-type', blob.type);\r\n                }\r\n                break;\r\n        }\r\n    };\r\n    return XHRConnection;\r\n}());\r\n/**\r\n * `XSRFConfiguration` sets up Cross Site Request Forgery (XSRF) protection for the application\r\n * using a cookie. See https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)\r\n * for more information on XSRF.\r\n *\r\n * Applications can configure custom cookie and header names by binding an instance of this class\r\n * with different `cookieName` and `headerName` values. See the main HTTP documentation for more\r\n * details.\r\n *\r\n * \\@experimental\r\n */\r\nvar CookieXSRFStrategy = (function () {\r\n    /**\r\n     * @param {?=} _cookieName\r\n     * @param {?=} _headerName\r\n     */\r\n    function CookieXSRFStrategy(_cookieName, _headerName) {\r\n        if (_cookieName === void 0) { _cookieName = 'XSRF-TOKEN'; }\r\n        if (_headerName === void 0) { _headerName = 'X-XSRF-TOKEN'; }\r\n        this._cookieName = _cookieName;\r\n        this._headerName = _headerName;\r\n    }\r\n    /**\r\n     * @param {?} req\r\n     * @return {?}\r\n     */\r\n    CookieXSRFStrategy.prototype.configureRequest = function (req) {\r\n        var /** @type {?} */ xsrfToken = ɵgetDOM().getCookie(this._cookieName);\r\n        if (xsrfToken) {\r\n            req.headers.set(this._headerName, xsrfToken);\r\n        }\r\n    };\r\n    return CookieXSRFStrategy;\r\n}());\r\n/**\r\n * Creates {\\@link XHRConnection} instances.\r\n *\r\n * This class would typically not be used by end users, but could be\r\n * overridden if a different backend implementation should be used,\r\n * such as in a node backend.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * import {Http, MyNodeBackend, HTTP_PROVIDERS, BaseRequestOptions} from '\\@angular/http';\r\n * \\@Component({\r\n *   viewProviders: [\r\n *     HTTP_PROVIDERS,\r\n *     {provide: Http, useFactory: (backend, options) => {\r\n *       return new Http(backend, options);\r\n *     }, deps: [MyNodeBackend, BaseRequestOptions]}]\r\n * })\r\n * class MyComponent {\r\n *   constructor(http:Http) {\r\n *     http.request('people.json').subscribe(res => this.people = res.json());\r\n *   }\r\n * }\r\n * ```\r\n * \\@experimental\r\n */\r\nvar XHRBackend = (function () {\r\n    /**\r\n     * @param {?} _browserXHR\r\n     * @param {?} _baseResponseOptions\r\n     * @param {?} _xsrfStrategy\r\n     */\r\n    function XHRBackend(_browserXHR, _baseResponseOptions, _xsrfStrategy) {\r\n        this._browserXHR = _browserXHR;\r\n        this._baseResponseOptions = _baseResponseOptions;\r\n        this._xsrfStrategy = _xsrfStrategy;\r\n    }\r\n    /**\r\n     * @param {?} request\r\n     * @return {?}\r\n     */\r\n    XHRBackend.prototype.createConnection = function (request) {\r\n        this._xsrfStrategy.configureRequest(request);\r\n        return new XHRConnection(request, this._browserXHR, this._baseResponseOptions);\r\n    };\r\n    return XHRBackend;\r\n}());\r\nXHRBackend.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nXHRBackend.ctorParameters = function () { return [\r\n    { type: BrowserXhr, },\r\n    { type: ResponseOptions, },\r\n    { type: XSRFStrategy, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Creates a request options object to be optionally provided when instantiating a\r\n * {\\@link Request}.\r\n *\r\n * This class is based on the `RequestInit` description in the [Fetch\r\n * Spec](https://fetch.spec.whatwg.org/#requestinit).\r\n *\r\n * All values are null by default. Typical defaults can be found in the {\\@link BaseRequestOptions}\r\n * class, which sub-classes `RequestOptions`.\r\n *\r\n * ```typescript\r\n * import {RequestOptions, Request, RequestMethod} from '\\@angular/http';\r\n *\r\n * const options = new RequestOptions({\r\n *   method: RequestMethod.Post,\r\n *   url: 'https://google.com'\r\n * });\r\n * const req = new Request(options);\r\n * console.log('req.method:', RequestMethod[req.method]); // Post\r\n * console.log('options.url:', options.url); // https://google.com\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar RequestOptions = (function () {\r\n    /**\r\n     * @param {?=} __0\r\n     */\r\n    function RequestOptions(_a) {\r\n        var _b = _a === void 0 ? {} : _a, method = _b.method, headers = _b.headers, body = _b.body, url = _b.url, search = _b.search, params = _b.params, withCredentials = _b.withCredentials, responseType = _b.responseType;\r\n        this.method = method != null ? normalizeMethodName(method) : null;\r\n        this.headers = headers != null ? headers : null;\r\n        this.body = body != null ? body : null;\r\n        this.url = url != null ? url : null;\r\n        this.params = this._mergeSearchParams(params || search);\r\n        this.withCredentials = withCredentials != null ? withCredentials : null;\r\n        this.responseType = responseType != null ? responseType : null;\r\n    }\r\n    Object.defineProperty(RequestOptions.prototype, \"search\", {\r\n        /**\r\n         * @deprecated from 4.0.0. Use params instead.\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.params; },\r\n        /**\r\n         * @deprecated from 4.0.0. Use params instead.\r\n         * @param {?} params\r\n         * @return {?}\r\n         */\r\n        set: function (params) { this.params = params; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * Creates a copy of the `RequestOptions` instance, using the optional input as values to override\r\n     * existing values. This method will not change the values of the instance on which it is being\r\n     * called.\r\n     *\r\n     * Note that `headers` and `search` will override existing values completely if present in\r\n     * the `options` object. If these values should be merged, it should be done prior to calling\r\n     * `merge` on the `RequestOptions` instance.\r\n     *\r\n     * ```typescript\r\n     * import {RequestOptions, Request, RequestMethod} from '\\@angular/http';\r\n     *\r\n     * const options = new RequestOptions({\r\n     *   method: RequestMethod.Post\r\n     * });\r\n     * const req = new Request(options.merge({\r\n     *   url: 'https://google.com'\r\n     * }));\r\n     * console.log('req.method:', RequestMethod[req.method]); // Post\r\n     * console.log('options.url:', options.url); // null\r\n     * console.log('req.url:', req.url); // https://google.com\r\n     * ```\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    RequestOptions.prototype.merge = function (options) {\r\n        return new RequestOptions({\r\n            method: options && options.method != null ? options.method : this.method,\r\n            headers: options && options.headers != null ? options.headers : new Headers(this.headers),\r\n            body: options && options.body != null ? options.body : this.body,\r\n            url: options && options.url != null ? options.url : this.url,\r\n            params: options && this._mergeSearchParams(options.params || options.search),\r\n            withCredentials: options && options.withCredentials != null ? options.withCredentials :\r\n                this.withCredentials,\r\n            responseType: options && options.responseType != null ? options.responseType :\r\n                this.responseType\r\n        });\r\n    };\r\n    /**\r\n     * @param {?=} params\r\n     * @return {?}\r\n     */\r\n    RequestOptions.prototype._mergeSearchParams = function (params) {\r\n        if (!params)\r\n            return this.params;\r\n        if (params instanceof URLSearchParams) {\r\n            return params.clone();\r\n        }\r\n        if (typeof params === 'string') {\r\n            return new URLSearchParams(params);\r\n        }\r\n        return this._parseParams(params);\r\n    };\r\n    /**\r\n     * @param {?=} objParams\r\n     * @return {?}\r\n     */\r\n    RequestOptions.prototype._parseParams = function (objParams) {\r\n        var _this = this;\r\n        if (objParams === void 0) { objParams = {}; }\r\n        var /** @type {?} */ params = new URLSearchParams();\r\n        Object.keys(objParams).forEach(function (key) {\r\n            var /** @type {?} */ value = objParams[key];\r\n            if (Array.isArray(value)) {\r\n                value.forEach(function (item) { return _this._appendParam(key, item, params); });\r\n            }\r\n            else {\r\n                _this._appendParam(key, value, params);\r\n            }\r\n        });\r\n        return params;\r\n    };\r\n    /**\r\n     * @param {?} key\r\n     * @param {?} value\r\n     * @param {?} params\r\n     * @return {?}\r\n     */\r\n    RequestOptions.prototype._appendParam = function (key, value, params) {\r\n        if (typeof value !== 'string') {\r\n            value = JSON.stringify(value);\r\n        }\r\n        params.append(key, value);\r\n    };\r\n    return RequestOptions;\r\n}());\r\n/**\r\n * Subclass of {\\@link RequestOptions}, with default values.\r\n *\r\n * Default values:\r\n *  * method: {\\@link RequestMethod RequestMethod.Get}\r\n *  * headers: empty {\\@link Headers} object\r\n *\r\n * This class could be extended and bound to the {\\@link RequestOptions} class\r\n * when configuring an {\\@link Injector}, in order to override the default options\r\n * used by {\\@link Http} to create and send {\\@link Request Requests}.\r\n *\r\n * ```typescript\r\n * import {BaseRequestOptions, RequestOptions} from '\\@angular/http';\r\n *\r\n * class MyOptions extends BaseRequestOptions {\r\n *   search: string = 'coreTeam=true';\r\n * }\r\n *\r\n * {provide: RequestOptions, useClass: MyOptions};\r\n * ```\r\n *\r\n * The options could also be extended when manually creating a {\\@link Request}\r\n * object.\r\n *\r\n * ```\r\n * import {BaseRequestOptions, Request, RequestMethod} from '\\@angular/http';\r\n *\r\n * const options = new BaseRequestOptions();\r\n * const req = new Request(options.merge({\r\n *   method: RequestMethod.Post,\r\n *   url: 'https://google.com'\r\n * }));\r\n * console.log('req.method:', RequestMethod[req.method]); // Post\r\n * console.log('options.url:', options.url); // null\r\n * console.log('req.url:', req.url); // https://google.com\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar BaseRequestOptions = (function (_super) {\r\n    __extends(BaseRequestOptions, _super);\r\n    function BaseRequestOptions() {\r\n        return _super.call(this, { method: RequestMethod.Get, headers: new Headers() }) || this;\r\n    }\r\n    return BaseRequestOptions;\r\n}(RequestOptions));\r\nBaseRequestOptions.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nBaseRequestOptions.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Creates `Request` instances from provided values.\r\n *\r\n * The Request's interface is inspired by the Request constructor defined in the [Fetch\r\n * Spec](https://fetch.spec.whatwg.org/#request-class),\r\n * but is considered a static value whose body can be accessed many times. There are other\r\n * differences in the implementation, but this is the most significant.\r\n *\r\n * `Request` instances are typically created by higher-level classes, like {\\@link Http} and\r\n * {\\@link Jsonp}, but it may occasionally be useful to explicitly create `Request` instances.\r\n * One such example is when creating services that wrap higher-level services, like {\\@link Http},\r\n * where it may be useful to generate a `Request` with arbitrary headers and search params.\r\n *\r\n * ```typescript\r\n * import {Injectable, Injector} from '\\@angular/core';\r\n * import {HTTP_PROVIDERS, Http, Request, RequestMethod} from '\\@angular/http';\r\n *\r\n * \\@Injectable()\r\n * class AutoAuthenticator {\r\n *   constructor(public http:Http) {}\r\n *   request(url:string) {\r\n *     return this.http.request(new Request({\r\n *       method: RequestMethod.Get,\r\n *       url: url,\r\n *       search: 'password=123'\r\n *     }));\r\n *   }\r\n * }\r\n *\r\n * var injector = Injector.resolveAndCreate([HTTP_PROVIDERS, AutoAuthenticator]);\r\n * var authenticator = injector.get(AutoAuthenticator);\r\n * authenticator.request('people.json').subscribe(res => {\r\n *   //URL should have included '?password=123'\r\n *   console.log('people', res.json());\r\n * });\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar Request = (function (_super) {\r\n    __extends(Request, _super);\r\n    /**\r\n     * @param {?} requestOptions\r\n     */\r\n    function Request(requestOptions) {\r\n        var _this = _super.call(this) || this;\r\n        // TODO: assert that url is present\r\n        var url = requestOptions.url;\r\n        _this.url = requestOptions.url;\r\n        var paramsArg = requestOptions.params || requestOptions.search;\r\n        if (paramsArg) {\r\n            var params = void 0;\r\n            if (typeof paramsArg === 'object' && !(paramsArg instanceof URLSearchParams)) {\r\n                params = urlEncodeParams(paramsArg).toString();\r\n            }\r\n            else {\r\n                params = paramsArg.toString();\r\n            }\r\n            if (params.length > 0) {\r\n                var prefix = '?';\r\n                if (_this.url.indexOf('?') != -1) {\r\n                    prefix = (_this.url[_this.url.length - 1] == '&') ? '' : '&';\r\n                }\r\n                // TODO: just delete search-query-looking string in url?\r\n                _this.url = url + prefix + params;\r\n            }\r\n        }\r\n        _this._body = requestOptions.body;\r\n        _this.method = normalizeMethodName(requestOptions.method);\r\n        // TODO(jeffbcross): implement behavior\r\n        // Defaults to 'omit', consistent with browser\r\n        _this.headers = new Headers(requestOptions.headers);\r\n        _this.contentType = _this.detectContentType();\r\n        _this.withCredentials = requestOptions.withCredentials;\r\n        _this.responseType = requestOptions.responseType;\r\n        return _this;\r\n    }\r\n    /**\r\n     * Returns the content type enum based on header options.\r\n     * @return {?}\r\n     */\r\n    Request.prototype.detectContentType = function () {\r\n        switch (this.headers.get('content-type')) {\r\n            case 'application/json':\r\n                return ContentType.JSON;\r\n            case 'application/x-www-form-urlencoded':\r\n                return ContentType.FORM;\r\n            case 'multipart/form-data':\r\n                return ContentType.FORM_DATA;\r\n            case 'text/plain':\r\n            case 'text/html':\r\n                return ContentType.TEXT;\r\n            case 'application/octet-stream':\r\n                return this._body instanceof ArrayBuffer$1 ? ContentType.ARRAY_BUFFER : ContentType.BLOB;\r\n            default:\r\n                return this.detectContentTypeFromBody();\r\n        }\r\n    };\r\n    /**\r\n     * Returns the content type of request's body based on its type.\r\n     * @return {?}\r\n     */\r\n    Request.prototype.detectContentTypeFromBody = function () {\r\n        if (this._body == null) {\r\n            return ContentType.NONE;\r\n        }\r\n        else if (this._body instanceof URLSearchParams) {\r\n            return ContentType.FORM;\r\n        }\r\n        else if (this._body instanceof FormData) {\r\n            return ContentType.FORM_DATA;\r\n        }\r\n        else if (this._body instanceof Blob$1) {\r\n            return ContentType.BLOB;\r\n        }\r\n        else if (this._body instanceof ArrayBuffer$1) {\r\n            return ContentType.ARRAY_BUFFER;\r\n        }\r\n        else if (this._body && typeof this._body === 'object') {\r\n            return ContentType.JSON;\r\n        }\r\n        else {\r\n            return ContentType.TEXT;\r\n        }\r\n    };\r\n    /**\r\n     * Returns the request's body according to its type. If body is undefined, return\r\n     * null.\r\n     * @return {?}\r\n     */\r\n    Request.prototype.getBody = function () {\r\n        switch (this.contentType) {\r\n            case ContentType.JSON:\r\n                return this.text();\r\n            case ContentType.FORM:\r\n                return this.text();\r\n            case ContentType.FORM_DATA:\r\n                return this._body;\r\n            case ContentType.TEXT:\r\n                return this.text();\r\n            case ContentType.BLOB:\r\n                return this.blob();\r\n            case ContentType.ARRAY_BUFFER:\r\n                return this.arrayBuffer();\r\n            default:\r\n                return null;\r\n        }\r\n    };\r\n    return Request;\r\n}(Body));\r\n/**\r\n * @param {?} params\r\n * @return {?}\r\n */\r\nfunction urlEncodeParams(params) {\r\n    var /** @type {?} */ searchParams = new URLSearchParams();\r\n    Object.keys(params).forEach(function (key) {\r\n        var /** @type {?} */ value = params[key];\r\n        if (value && Array.isArray(value)) {\r\n            value.forEach(function (element) { return searchParams.append(key, element.toString()); });\r\n        }\r\n        else {\r\n            searchParams.append(key, value.toString());\r\n        }\r\n    });\r\n    return searchParams;\r\n}\r\nvar noop = function () { };\r\nvar w = typeof window == 'object' ? window : noop;\r\nvar FormData = ((w) /** TODO #9100 */)['FormData'] || noop;\r\nvar Blob$1 = ((w) /** TODO #9100 */)['Blob'] || noop;\r\nvar ArrayBuffer$1 = ((w) /** TODO #9100 */)['ArrayBuffer'] || noop;\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} backend\r\n * @param {?} request\r\n * @return {?}\r\n */\r\nfunction httpRequest(backend, request) {\r\n    return backend.createConnection(request).response;\r\n}\r\n/**\r\n * @param {?} defaultOpts\r\n * @param {?} providedOpts\r\n * @param {?} method\r\n * @param {?} url\r\n * @return {?}\r\n */\r\nfunction mergeOptions(defaultOpts, providedOpts, method, url) {\r\n    var /** @type {?} */ newOptions = defaultOpts;\r\n    if (providedOpts) {\r\n        // Hack so Dart can used named parameters\r\n        return (newOptions.merge(new RequestOptions({\r\n            method: providedOpts.method || method,\r\n            url: providedOpts.url || url,\r\n            search: providedOpts.search,\r\n            params: providedOpts.params,\r\n            headers: providedOpts.headers,\r\n            body: providedOpts.body,\r\n            withCredentials: providedOpts.withCredentials,\r\n            responseType: providedOpts.responseType\r\n        })));\r\n    }\r\n    return (newOptions.merge(new RequestOptions({ method: method, url: url })));\r\n}\r\n/**\r\n * Performs http requests using `XMLHttpRequest` as the default backend.\r\n *\r\n * `Http` is available as an injectable class, with methods to perform http requests. Calling\r\n * `request` returns an `Observable` which will emit a single {\\@link Response} when a\r\n * response is received.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * import {Http, HTTP_PROVIDERS} from '\\@angular/http';\r\n * import 'rxjs/add/operator/map'\r\n * \\@Component({\r\n *   selector: 'http-app',\r\n *   viewProviders: [HTTP_PROVIDERS],\r\n *   templateUrl: 'people.html'\r\n * })\r\n * class PeopleComponent {\r\n *   constructor(http: Http) {\r\n *     http.get('people.json')\r\n *       // Call map on the response observable to get the parsed people object\r\n *       .map(res => res.json())\r\n *       // Subscribe to the observable to get the parsed people object and attach it to the\r\n *       // component\r\n *       .subscribe(people => this.people = people);\r\n *   }\r\n * }\r\n * ```\r\n *\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * http.get('people.json').subscribe((res:Response) => this.people = res.json());\r\n * ```\r\n *\r\n * The default construct used to perform requests, `XMLHttpRequest`, is abstracted as a \"Backend\" (\r\n * {\\@link XHRBackend} in this case), which could be mocked with dependency injection by replacing\r\n * the {\\@link XHRBackend} provider, as in the following example:\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * import {BaseRequestOptions, Http} from '\\@angular/http';\r\n * import {MockBackend} from '\\@angular/http/testing';\r\n * var injector = Injector.resolveAndCreate([\r\n *   BaseRequestOptions,\r\n *   MockBackend,\r\n *   {provide: Http, useFactory:\r\n *       function(backend, defaultOptions) {\r\n *         return new Http(backend, defaultOptions);\r\n *       },\r\n *       deps: [MockBackend, BaseRequestOptions]}\r\n * ]);\r\n * var http = injector.get(Http);\r\n * http.get('request-from-mock-backend.json').subscribe((res:Response) => doSomething(res));\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar Http = (function () {\r\n    /**\r\n     * @param {?} _backend\r\n     * @param {?} _defaultOptions\r\n     */\r\n    function Http(_backend, _defaultOptions) {\r\n        this._backend = _backend;\r\n        this._defaultOptions = _defaultOptions;\r\n    }\r\n    /**\r\n     * Performs any type of http request. First argument is required, and can either be a url or\r\n     * a {\\@link Request} instance. If the first argument is a url, an optional {\\@link RequestOptions}\r\n     * object can be provided as the 2nd argument. The options object will be merged with the values\r\n     * of {\\@link BaseRequestOptions} before performing the request.\r\n     * @param {?} url\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    Http.prototype.request = function (url, options) {\r\n        var /** @type {?} */ responseObservable;\r\n        if (typeof url === 'string') {\r\n            responseObservable = httpRequest(this._backend, new Request(mergeOptions(this._defaultOptions, options, RequestMethod.Get, /** @type {?} */ (url))));\r\n        }\r\n        else if (url instanceof Request) {\r\n            responseObservable = httpRequest(this._backend, url);\r\n        }\r\n        else {\r\n            throw new Error('First argument must be a url string or Request instance.');\r\n        }\r\n        return responseObservable;\r\n    };\r\n    /**\r\n     * Performs a request with `get` http method.\r\n     * @param {?} url\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    Http.prototype.get = function (url, options) {\r\n        return this.request(new Request(mergeOptions(this._defaultOptions, options, RequestMethod.Get, url)));\r\n    };\r\n    /**\r\n     * Performs a request with `post` http method.\r\n     * @param {?} url\r\n     * @param {?} body\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    Http.prototype.post = function (url, body, options) {\r\n        return this.request(new Request(mergeOptions(this._defaultOptions.merge(new RequestOptions({ body: body })), options, RequestMethod.Post, url)));\r\n    };\r\n    /**\r\n     * Performs a request with `put` http method.\r\n     * @param {?} url\r\n     * @param {?} body\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    Http.prototype.put = function (url, body, options) {\r\n        return this.request(new Request(mergeOptions(this._defaultOptions.merge(new RequestOptions({ body: body })), options, RequestMethod.Put, url)));\r\n    };\r\n    /**\r\n     * Performs a request with `delete` http method.\r\n     * @param {?} url\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    Http.prototype.delete = function (url, options) {\r\n        return this.request(new Request(mergeOptions(this._defaultOptions, options, RequestMethod.Delete, url)));\r\n    };\r\n    /**\r\n     * Performs a request with `patch` http method.\r\n     * @param {?} url\r\n     * @param {?} body\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    Http.prototype.patch = function (url, body, options) {\r\n        return this.request(new Request(mergeOptions(this._defaultOptions.merge(new RequestOptions({ body: body })), options, RequestMethod.Patch, url)));\r\n    };\r\n    /**\r\n     * Performs a request with `head` http method.\r\n     * @param {?} url\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    Http.prototype.head = function (url, options) {\r\n        return this.request(new Request(mergeOptions(this._defaultOptions, options, RequestMethod.Head, url)));\r\n    };\r\n    /**\r\n     * Performs a request with `options` http method.\r\n     * @param {?} url\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    Http.prototype.options = function (url, options) {\r\n        return this.request(new Request(mergeOptions(this._defaultOptions, options, RequestMethod.Options, url)));\r\n    };\r\n    return Http;\r\n}());\r\nHttp.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nHttp.ctorParameters = function () { return [\r\n    { type: ConnectionBackend, },\r\n    { type: RequestOptions, },\r\n]; };\r\n/**\r\n * \\@experimental\r\n */\r\nvar Jsonp = (function (_super) {\r\n    __extends(Jsonp, _super);\r\n    /**\r\n     * @param {?} backend\r\n     * @param {?} defaultOptions\r\n     */\r\n    function Jsonp(backend, defaultOptions) {\r\n        return _super.call(this, backend, defaultOptions) || this;\r\n    }\r\n    /**\r\n     * Performs any type of http request. First argument is required, and can either be a url or\r\n     * a {\\@link Request} instance. If the first argument is a url, an optional {\\@link RequestOptions}\r\n     * object can be provided as the 2nd argument. The options object will be merged with the values\r\n     * of {\\@link BaseRequestOptions} before performing the request.\r\n     *\r\n     * \\@security Regular XHR is the safest alternative to JSONP for most applications, and is\r\n     * supported by all current browsers. Because JSONP creates a `<script>` element with\r\n     * contents retrieved from a remote source, attacker-controlled data introduced by an untrusted\r\n     * source could expose your application to XSS risks. Data exposed by JSONP may also be\r\n     * readable by malicious third-party websites. In addition, JSONP introduces potential risk for\r\n     * future security issues (e.g. content sniffing).  For more detail, see the\r\n     * [Security Guide](http://g.co/ng/security).\r\n     * @param {?} url\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    Jsonp.prototype.request = function (url, options) {\r\n        var /** @type {?} */ responseObservable;\r\n        if (typeof url === 'string') {\r\n            url =\r\n                new Request(mergeOptions(this._defaultOptions, options, RequestMethod.Get, /** @type {?} */ (url)));\r\n        }\r\n        if (url instanceof Request) {\r\n            if (url.method !== RequestMethod.Get) {\r\n                throw new Error('JSONP requests must use GET request method.');\r\n            }\r\n            responseObservable = httpRequest(this._backend, url);\r\n        }\r\n        else {\r\n            throw new Error('First argument must be a url string or Request instance.');\r\n        }\r\n        return responseObservable;\r\n    };\r\n    return Jsonp;\r\n}(Http));\r\nJsonp.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nJsonp.ctorParameters = function () { return [\r\n    { type: ConnectionBackend, },\r\n    { type: RequestOptions, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * The http module provides services to perform http requests. To get started, see the {@link Http}\r\n * class.\r\n */\r\n/**\r\n * @return {?}\r\n */\r\nfunction _createDefaultCookieXSRFStrategy() {\r\n    return new CookieXSRFStrategy();\r\n}\r\n/**\r\n * @param {?} xhrBackend\r\n * @param {?} requestOptions\r\n * @return {?}\r\n */\r\nfunction httpFactory(xhrBackend, requestOptions) {\r\n    return new Http(xhrBackend, requestOptions);\r\n}\r\n/**\r\n * @param {?} jsonpBackend\r\n * @param {?} requestOptions\r\n * @return {?}\r\n */\r\nfunction jsonpFactory(jsonpBackend, requestOptions) {\r\n    return new Jsonp(jsonpBackend, requestOptions);\r\n}\r\n/**\r\n * The module that includes http's providers\r\n *\r\n * \\@experimental\r\n */\r\nvar HttpModule = (function () {\r\n    function HttpModule() {\r\n    }\r\n    return HttpModule;\r\n}());\r\nHttpModule.decorators = [\r\n    { type: NgModule, args: [{\r\n                providers: [\r\n                    // TODO(pascal): use factory type annotations once supported in DI\r\n                    // issue: https://github.com/angular/angular/issues/3183\r\n                    { provide: Http, useFactory: httpFactory, deps: [XHRBackend, RequestOptions] },\r\n                    BrowserXhr,\r\n                    { provide: RequestOptions, useClass: BaseRequestOptions },\r\n                    { provide: ResponseOptions, useClass: BaseResponseOptions },\r\n                    XHRBackend,\r\n                    { provide: XSRFStrategy, useFactory: _createDefaultCookieXSRFStrategy },\r\n                ],\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nHttpModule.ctorParameters = function () { return []; };\r\n/**\r\n * The module that includes jsonp's providers\r\n *\r\n * \\@experimental\r\n */\r\nvar JsonpModule = (function () {\r\n    function JsonpModule() {\r\n    }\r\n    return JsonpModule;\r\n}());\r\nJsonpModule.decorators = [\r\n    { type: NgModule, args: [{\r\n                providers: [\r\n                    // TODO(pascal): use factory type annotations once supported in DI\r\n                    // issue: https://github.com/angular/angular/issues/3183\r\n                    { provide: Jsonp, useFactory: jsonpFactory, deps: [JSONPBackend, RequestOptions] },\r\n                    BrowserJsonp,\r\n                    { provide: RequestOptions, useClass: BaseRequestOptions },\r\n                    { provide: ResponseOptions, useClass: BaseResponseOptions },\r\n                    { provide: JSONPBackend, useClass: JSONPBackend_ },\r\n                ],\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nJsonpModule.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the common package.\r\n */\r\n/**\r\n * \\@stable\r\n */\r\nvar VERSION = new Version('4.1.3');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the http package.\r\n */\r\n// This file only reexports content of the `src` folder. Keep it that way.\r\n/**\r\n * Generated bundle index. Do not edit.\r\n */\r\nexport { BrowserXhr, JSONPBackend, JSONPConnection, CookieXSRFStrategy, XHRBackend, XHRConnection, BaseRequestOptions, RequestOptions, BaseResponseOptions, ResponseOptions, ReadyState, RequestMethod, ResponseContentType, ResponseType, Headers, Http, Jsonp, HttpModule, JsonpModule, Connection, ConnectionBackend, XSRFStrategy, Request, Response, QueryEncoder, URLSearchParams, VERSION, BrowserJsonp as ɵg, JSONPBackend_ as ɵa, Body as ɵf, _createDefaultCookieXSRFStrategy as ɵb, httpFactory as ɵc, jsonpFactory as ɵd };\r\n//# sourceMappingURL=http.es5.js.map\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angular/http/@angular/http.es5.js\n// module id = 63\n// module chunks = 2","// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\n// NOTE: These type checking functions intentionally don't use `instanceof`\r\n// because it is fragile and can be easily faked with `Object.create()`.\r\n\r\nfunction isArray(arg) {\r\n  if (Array.isArray) {\r\n    return Array.isArray(arg);\r\n  }\r\n  return objectToString(arg) === '[object Array]';\r\n}\r\nexports.isArray = isArray;\r\n\r\nfunction isBoolean(arg) {\r\n  return typeof arg === 'boolean';\r\n}\r\nexports.isBoolean = isBoolean;\r\n\r\nfunction isNull(arg) {\r\n  return arg === null;\r\n}\r\nexports.isNull = isNull;\r\n\r\nfunction isNullOrUndefined(arg) {\r\n  return arg == null;\r\n}\r\nexports.isNullOrUndefined = isNullOrUndefined;\r\n\r\nfunction isNumber(arg) {\r\n  return typeof arg === 'number';\r\n}\r\nexports.isNumber = isNumber;\r\n\r\nfunction isString(arg) {\r\n  return typeof arg === 'string';\r\n}\r\nexports.isString = isString;\r\n\r\nfunction isSymbol(arg) {\r\n  return typeof arg === 'symbol';\r\n}\r\nexports.isSymbol = isSymbol;\r\n\r\nfunction isUndefined(arg) {\r\n  return arg === void 0;\r\n}\r\nexports.isUndefined = isUndefined;\r\n\r\nfunction isRegExp(re) {\r\n  return objectToString(re) === '[object RegExp]';\r\n}\r\nexports.isRegExp = isRegExp;\r\n\r\nfunction isObject(arg) {\r\n  return typeof arg === 'object' && arg !== null;\r\n}\r\nexports.isObject = isObject;\r\n\r\nfunction isDate(d) {\r\n  return objectToString(d) === '[object Date]';\r\n}\r\nexports.isDate = isDate;\r\n\r\nfunction isError(e) {\r\n  return (objectToString(e) === '[object Error]' || e instanceof Error);\r\n}\r\nexports.isError = isError;\r\n\r\nfunction isFunction(arg) {\r\n  return typeof arg === 'function';\r\n}\r\nexports.isFunction = isFunction;\r\n\r\nfunction isPrimitive(arg) {\r\n  return arg === null ||\r\n         typeof arg === 'boolean' ||\r\n         typeof arg === 'number' ||\r\n         typeof arg === 'string' ||\r\n         typeof arg === 'symbol' ||  // ES6 symbol\r\n         typeof arg === 'undefined';\r\n}\r\nexports.isPrimitive = isPrimitive;\r\n\r\nexports.isBuffer = Buffer.isBuffer;\r\n\r\nfunction objectToString(o) {\r\n  return Object.prototype.toString.call(o);\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-util-is/lib/util.js\n// module id = 72\n// module chunks = 2","/* global Promise */\r\n'use strict';\r\n\r\n// load the global object first:\r\n// - it should be better integrated in the system (unhandledRejection in node)\r\n// - the environment may have a custom Promise implementation (see zone.js)\r\nvar ES6Promise = null;\r\nif (typeof Promise !== \"undefined\") {\r\n    ES6Promise = Promise;\r\n} else {\r\n    ES6Promise = require(\"lie\");\r\n}\r\n\r\n/**\r\n * Let the user use/change some implementations.\r\n */\r\nmodule.exports = {\r\n    Promise: ES6Promise\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/external.js\n// module id = 73\n// module chunks = 2","/*! Buttons for DataTables 1.3.1\r\n * ©2016 SpryMedia Ltd - datatables.net/license\r\n */\r\n\r\n(function( factory ){\r\n\tif ( typeof define === 'function' && define.amd ) {\r\n\t\t// AMD\r\n\t\tdefine( ['jquery', 'datatables.net'], function ( $ ) {\r\n\t\t\treturn factory( $, window, document );\r\n\t\t} );\r\n\t}\r\n\telse if ( typeof exports === 'object' ) {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = function (root, $) {\r\n\t\t\tif ( ! root ) {\r\n\t\t\t\troot = window;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $ || ! $.fn.dataTable ) {\r\n\t\t\t\t$ = require('datatables.net')(root, $).$;\r\n\t\t\t}\r\n\r\n\t\t\treturn factory( $, root, root.document );\r\n\t\t};\r\n\t}\r\n\telse {\r\n\t\t// Browser\r\n\t\tfactory( jQuery, window, document );\r\n\t}\r\n}(function( $, window, document, undefined ) {\r\n'use strict';\r\nvar DataTable = $.fn.dataTable;\r\n\r\n\r\n// Used for namespacing events added to the document by each instance, so they\r\n// can be removed on destroy\r\nvar _instCounter = 0;\r\n\r\n// Button namespacing counter for namespacing events on individual buttons\r\nvar _buttonCounter = 0;\r\n\r\nvar _dtButtons = DataTable.ext.buttons;\r\n\r\n/**\r\n * [Buttons description]\r\n * @param {[type]}\r\n * @param {[type]}\r\n */\r\nvar Buttons = function( dt, config )\r\n{\r\n\t// If there is no config set it to an empty object\r\n\tif ( typeof( config ) === 'undefined' ) {\r\n\t\tconfig = {};\t\r\n\t}\r\n\t\r\n\t// Allow a boolean true for defaults\r\n\tif ( config === true ) {\r\n\t\tconfig = {};\r\n\t}\r\n\r\n\t// For easy configuration of buttons an array can be given\r\n\tif ( $.isArray( config ) ) {\r\n\t\tconfig = { buttons: config };\r\n\t}\r\n\r\n\tthis.c = $.extend( true, {}, Buttons.defaults, config );\r\n\r\n\t// Don't want a deep copy for the buttons\r\n\tif ( config.buttons ) {\r\n\t\tthis.c.buttons = config.buttons;\r\n\t}\r\n\r\n\tthis.s = {\r\n\t\tdt: new DataTable.Api( dt ),\r\n\t\tbuttons: [],\r\n\t\tlistenKeys: '',\r\n\t\tnamespace: 'dtb'+(_instCounter++)\r\n\t};\r\n\r\n\tthis.dom = {\r\n\t\tcontainer: $('<'+this.c.dom.container.tag+'/>')\r\n\t\t\t.addClass( this.c.dom.container.className )\r\n\t};\r\n\r\n\tthis._constructor();\r\n};\r\n\r\n\r\n$.extend( Buttons.prototype, {\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Public methods\r\n\t */\r\n\r\n\t/**\r\n\t * Get the action of a button\r\n\t * @param  {int|string} Button index\r\n\t * @return {function}\r\n\t *//**\r\n\t * Set the action of a button\r\n\t * @param  {node} node Button element\r\n\t * @param  {function} action Function to set\r\n\t * @return {Buttons} Self for chaining\r\n\t */\r\n\taction: function ( node, action )\r\n\t{\r\n\t\tvar button = this._nodeToButton( node );\r\n\r\n\t\tif ( action === undefined ) {\r\n\t\t\treturn button.conf.action;\r\n\t\t}\r\n\r\n\t\tbutton.conf.action = action;\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t * Add an active class to the button to make to look active or get current\r\n\t * active state.\r\n\t * @param  {node} node Button element\r\n\t * @param  {boolean} [flag] Enable / disable flag\r\n\t * @return {Buttons} Self for chaining or boolean for getter\r\n\t */\r\n\tactive: function ( node, flag ) {\r\n\t\tvar button = this._nodeToButton( node );\r\n\t\tvar klass = this.c.dom.button.active;\r\n\t\tvar jqNode = $(button.node);\r\n\r\n\t\tif ( flag === undefined ) {\r\n\t\t\treturn jqNode.hasClass( klass );\r\n\t\t}\r\n\r\n\t\tjqNode.toggleClass( klass, flag === undefined ? true : flag );\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t * Add a new button\r\n\t * @param {object} config Button configuration object, base string name or function\r\n\t * @param {int|string} [idx] Button index for where to insert the button\r\n\t * @return {Buttons} Self for chaining\r\n\t */\r\n\tadd: function ( config, idx )\r\n\t{\r\n\t\tvar buttons = this.s.buttons;\r\n\r\n\t\tif ( typeof idx === 'string' ) {\r\n\t\t\tvar split = idx.split('-');\r\n\t\t\tvar base = this.s;\r\n\r\n\t\t\tfor ( var i=0, ien=split.length-1 ; i<ien ; i++ ) {\r\n\t\t\t\tbase = base.buttons[ split[i]*1 ];\r\n\t\t\t}\r\n\r\n\t\t\tbuttons = base.buttons;\r\n\t\t\tidx = split[ split.length-1 ]*1;\r\n\t\t}\r\n\r\n\t\tthis._expandButton( buttons, config, false, idx );\r\n\t\tthis._draw();\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t * Get the container node for the buttons\r\n\t * @return {jQuery} Buttons node\r\n\t */\r\n\tcontainer: function ()\r\n\t{\r\n\t\treturn this.dom.container;\r\n\t},\r\n\r\n\t/**\r\n\t * Disable a button\r\n\t * @param  {node} node Button node\r\n\t * @return {Buttons} Self for chaining\r\n\t */\r\n\tdisable: function ( node ) {\r\n\t\tvar button = this._nodeToButton( node );\r\n\r\n\t\t$(button.node).addClass( this.c.dom.button.disabled );\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t * Destroy the instance, cleaning up event handlers and removing DOM\r\n\t * elements\r\n\t * @return {Buttons} Self for chaining\r\n\t */\r\n\tdestroy: function ()\r\n\t{\r\n\t\t// Key event listener\r\n\t\t$('body').off( 'keyup.'+this.s.namespace );\r\n\r\n\t\t// Individual button destroy (so they can remove their own events if\r\n\t\t// needed). Take a copy as the array is modified by `remove`\r\n\t\tvar buttons = this.s.buttons.slice();\r\n\t\tvar i, ien;\r\n\t\t\r\n\t\tfor ( i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\tthis.remove( buttons[i].node );\r\n\t\t}\r\n\r\n\t\t// Container\r\n\t\tthis.dom.container.remove();\r\n\r\n\t\t// Remove from the settings object collection\r\n\t\tvar buttonInsts = this.s.dt.settings()[0];\r\n\r\n\t\tfor ( i=0, ien=buttonInsts.length ; i<ien ; i++ ) {\r\n\t\t\tif ( buttonInsts.inst === this ) {\r\n\t\t\t\tbuttonInsts.splice( i, 1 );\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t * Enable / disable a button\r\n\t * @param  {node} node Button node\r\n\t * @param  {boolean} [flag=true] Enable / disable flag\r\n\t * @return {Buttons} Self for chaining\r\n\t */\r\n\tenable: function ( node, flag )\r\n\t{\r\n\t\tif ( flag === false ) {\r\n\t\t\treturn this.disable( node );\r\n\t\t}\r\n\r\n\t\tvar button = this._nodeToButton( node );\r\n\t\t$(button.node).removeClass( this.c.dom.button.disabled );\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t * Get the instance name for the button set selector\r\n\t * @return {string} Instance name\r\n\t */\r\n\tname: function ()\r\n\t{\r\n\t\treturn this.c.name;\r\n\t},\r\n\r\n\t/**\r\n\t * Get a button's node\r\n\t * @param  {node} node Button node\r\n\t * @return {jQuery} Button element\r\n\t */\r\n\tnode: function ( node )\r\n\t{\r\n\t\tvar button = this._nodeToButton( node );\r\n\t\treturn $(button.node);\r\n\t},\r\n\r\n\t/**\r\n\t * Set / get a processing class on the selected button\r\n\t * @param  {boolean} flag true to add, false to remove, undefined to get\r\n\t * @return {boolean|Buttons} Getter value or this if a setter.\r\n\t */\r\n\tprocessing: function ( node, flag )\r\n\t{\r\n\t\tvar button = this._nodeToButton( node );\r\n\r\n\t\tif ( flag === undefined ) {\r\n\t\t\treturn $(button.node).hasClass( 'processing' );\r\n\t\t}\r\n\r\n\t\t$(button.node).toggleClass( 'processing', flag );\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t * Remove a button.\r\n\t * @param  {node} node Button node\r\n\t * @return {Buttons} Self for chaining\r\n\t */\r\n\tremove: function ( node )\r\n\t{\r\n\t\tvar button = this._nodeToButton( node );\r\n\t\tvar host = this._nodeToHost( node );\r\n\t\tvar dt = this.s.dt;\r\n\r\n\t\t// Remove any child buttons first\r\n\t\tif ( button.buttons.length ) {\r\n\t\t\tfor ( var i=button.buttons.length-1 ; i>=0 ; i-- ) {\r\n\t\t\t\tthis.remove( button.buttons[i].node );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Allow the button to remove event handlers, etc\r\n\t\tif ( button.conf.destroy ) {\r\n\t\t\tbutton.conf.destroy.call( dt.button(node), dt, $(node), button.conf );\r\n\t\t}\r\n\r\n\t\tthis._removeKey( button.conf );\r\n\r\n\t\t$(button.node).remove();\r\n\r\n\t\tvar idx = $.inArray( button, host );\r\n\t\thost.splice( idx, 1 );\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\t/**\r\n\t * Get the text for a button\r\n\t * @param  {int|string} node Button index\r\n\t * @return {string} Button text\r\n\t *//**\r\n\t * Set the text for a button\r\n\t * @param  {int|string|function} node Button index\r\n\t * @param  {string} label Text\r\n\t * @return {Buttons} Self for chaining\r\n\t */\r\n\ttext: function ( node, label )\r\n\t{\r\n\t\tvar button = this._nodeToButton( node );\r\n\t\tvar buttonLiner = this.c.dom.collection.buttonLiner;\r\n\t\tvar linerTag = button.inCollection && buttonLiner && buttonLiner.tag ?\r\n\t\t\tbuttonLiner.tag :\r\n\t\t\tthis.c.dom.buttonLiner.tag;\r\n\t\tvar dt = this.s.dt;\r\n\t\tvar jqNode = $(button.node);\r\n\t\tvar text = function ( opt ) {\r\n\t\t\treturn typeof opt === 'function' ?\r\n\t\t\t\topt( dt, jqNode, button.conf ) :\r\n\t\t\t\topt;\r\n\t\t};\r\n\r\n\t\tif ( label === undefined ) {\r\n\t\t\treturn text( button.conf.text );\r\n\t\t}\r\n\r\n\t\tbutton.conf.text = label;\r\n\r\n\t\tif ( linerTag ) {\r\n\t\t\tjqNode.children( linerTag ).html( text(label) );\r\n\t\t}\r\n\t\telse {\r\n\t\t\tjqNode.html( text(label) );\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\t},\r\n\r\n\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Constructor\r\n\t */\r\n\r\n\t/**\r\n\t * Buttons constructor\r\n\t * @private\r\n\t */\r\n\t_constructor: function ()\r\n\t{\r\n\t\tvar that = this;\r\n\t\tvar dt = this.s.dt;\r\n\t\tvar dtSettings = dt.settings()[0];\r\n\t\tvar buttons =  this.c.buttons;\r\n\r\n\t\tif ( ! dtSettings._buttons ) {\r\n\t\t\tdtSettings._buttons = [];\r\n\t\t}\r\n\r\n\t\tdtSettings._buttons.push( {\r\n\t\t\tinst: this,\r\n\t\t\tname: this.c.name\r\n\t\t} );\r\n\r\n\t\tfor ( var i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\tthis.add( buttons[i] );\r\n\t\t}\r\n\r\n\t\tdt.on( 'destroy', function () {\r\n\t\t\tthat.destroy();\r\n\t\t} );\r\n\r\n\t\t// Global key event binding to listen for button keys\r\n\t\t$('body').on( 'keyup.'+this.s.namespace, function ( e ) {\r\n\t\t\tif ( ! document.activeElement || document.activeElement === document.body ) {\r\n\t\t\t\t// SUse a string of characters for fast lookup of if we need to\r\n\t\t\t\t// handle this\r\n\t\t\t\tvar character = String.fromCharCode(e.keyCode).toLowerCase();\r\n\r\n\t\t\t\tif ( that.s.listenKeys.toLowerCase().indexOf( character ) !== -1 ) {\r\n\t\t\t\t\tthat._keypress( character, e );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t},\r\n\r\n\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Private methods\r\n\t */\r\n\r\n\t/**\r\n\t * Add a new button to the key press listener\r\n\t * @param {object} conf Resolved button configuration object\r\n\t * @private\r\n\t */\r\n\t_addKey: function ( conf )\r\n\t{\r\n\t\tif ( conf.key ) {\r\n\t\t\tthis.s.listenKeys += $.isPlainObject( conf.key ) ?\r\n\t\t\t\tconf.key.key :\r\n\t\t\t\tconf.key;\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Insert the buttons into the container. Call without parameters!\r\n\t * @param  {node} [container] Recursive only - Insert point\r\n\t * @param  {array} [buttons] Recursive only - Buttons array\r\n\t * @private\r\n\t */\r\n\t_draw: function ( container, buttons )\r\n\t{\r\n\t\tif ( ! container ) {\r\n\t\t\tcontainer = this.dom.container;\r\n\t\t\tbuttons = this.s.buttons;\r\n\t\t}\r\n\r\n\t\tcontainer.children().detach();\r\n\r\n\t\tfor ( var i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\tcontainer.append( buttons[i].inserter );\r\n\r\n\t\t\tif ( buttons[i].buttons && buttons[i].buttons.length ) {\r\n\t\t\t\tthis._draw( buttons[i].collection, buttons[i].buttons );\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Create buttons from an array of buttons\r\n\t * @param  {array} attachTo Buttons array to attach to\r\n\t * @param  {object} button Button definition\r\n\t * @param  {boolean} inCollection true if the button is in a collection\r\n\t * @private\r\n\t */\r\n\t_expandButton: function ( attachTo, button, inCollection, attachPoint )\r\n\t{\r\n\t\tvar dt = this.s.dt;\r\n\t\tvar buttonCounter = 0;\r\n\t\tvar buttons = ! $.isArray( button ) ?\r\n\t\t\t[ button ] :\r\n\t\t\tbutton;\r\n\r\n\t\tfor ( var i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\tvar conf = this._resolveExtends( buttons[i] );\r\n\r\n\t\t\tif ( ! conf ) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// If the configuration is an array, then expand the buttons at this\r\n\t\t\t// point\r\n\t\t\tif ( $.isArray( conf ) ) {\r\n\t\t\t\tthis._expandButton( attachTo, conf, inCollection, attachPoint );\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tvar built = this._buildButton( conf, inCollection );\r\n\t\t\tif ( ! built ) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tif ( attachPoint !== undefined ) {\r\n\t\t\t\tattachTo.splice( attachPoint, 0, built );\r\n\t\t\t\tattachPoint++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tattachTo.push( built );\r\n\t\t\t}\r\n\r\n\t\t\tif ( built.conf.buttons ) {\r\n\t\t\t\tvar collectionDom = this.c.dom.collection;\r\n\t\t\t\tbuilt.collection = $('<'+collectionDom.tag+'/>')\r\n\t\t\t\t\t.addClass( collectionDom.className )\r\n\t\t\t\t\t.attr( 'role', 'menu') ;\r\n\t\t\t\tbuilt.conf._collection = built.collection;\r\n\r\n\t\t\t\tthis._expandButton( built.buttons, built.conf.buttons, true, attachPoint );\r\n\t\t\t}\r\n\r\n\t\t\t// init call is made here, rather than buildButton as it needs to\r\n\t\t\t// be selectable, and for that it needs to be in the buttons array\r\n\t\t\tif ( conf.init ) {\r\n\t\t\t\tconf.init.call( dt.button( built.node ), dt, $(built.node), conf );\r\n\t\t\t}\r\n\r\n\t\t\tbuttonCounter++;\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Create an individual button\r\n\t * @param  {object} config            Resolved button configuration\r\n\t * @param  {boolean} inCollection `true` if a collection button\r\n\t * @return {jQuery} Created button node (jQuery)\r\n\t * @private\r\n\t */\r\n\t_buildButton: function ( config, inCollection )\r\n\t{\r\n\t\tvar buttonDom = this.c.dom.button;\r\n\t\tvar linerDom = this.c.dom.buttonLiner;\r\n\t\tvar collectionDom = this.c.dom.collection;\r\n\t\tvar dt = this.s.dt;\r\n\t\tvar text = function ( opt ) {\r\n\t\t\treturn typeof opt === 'function' ?\r\n\t\t\t\topt( dt, button, config ) :\r\n\t\t\t\topt;\r\n\t\t};\r\n\r\n\t\tif ( inCollection && collectionDom.button ) {\r\n\t\t\tbuttonDom = collectionDom.button;\r\n\t\t}\r\n\r\n\t\tif ( inCollection && collectionDom.buttonLiner ) {\r\n\t\t\tlinerDom = collectionDom.buttonLiner;\r\n\t\t}\r\n\r\n\t\t// Make sure that the button is available based on whatever requirements\r\n\t\t// it has. For example, Flash buttons require Flash\r\n\t\tif ( config.available && ! config.available( dt, config ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tvar action = function ( e, dt, button, config ) {\r\n\t\t\tconfig.action.call( dt.button( button ), e, dt, button, config );\r\n\r\n\t\t\t$(dt.table().node()).triggerHandler( 'buttons-action.dt', [\r\n\t\t\t\tdt.button( button ), dt, button, config \r\n\t\t\t] );\r\n\t\t};\r\n\r\n\t\tvar button = $('<'+buttonDom.tag+'/>')\r\n\t\t\t.addClass( buttonDom.className )\r\n\t\t\t.attr( 'tabindex', this.s.dt.settings()[0].iTabIndex )\r\n\t\t\t.attr( 'aria-controls', this.s.dt.table().node().id )\r\n\t\t\t.on( 'click.dtb', function (e) {\r\n\t\t\t\te.preventDefault();\r\n\r\n\t\t\t\tif ( ! button.hasClass( buttonDom.disabled ) && config.action ) {\r\n\t\t\t\t\taction( e, dt, button, config );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tbutton.blur();\r\n\t\t\t} )\r\n\t\t\t.on( 'keyup.dtb', function (e) {\r\n\t\t\t\tif ( e.keyCode === 13 ) {\r\n\t\t\t\t\tif ( ! button.hasClass( buttonDom.disabled ) && config.action ) {\r\n\t\t\t\t\t\taction( e, dt, button, config );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\r\n\t\t// Make `a` tags act like a link\r\n\t\tif ( buttonDom.tag.toLowerCase() === 'a' ) {\r\n\t\t\tbutton.attr( 'href', '#' );\r\n\t\t}\r\n\r\n\t\tif ( linerDom.tag ) {\r\n\t\t\tvar liner = $('<'+linerDom.tag+'/>')\r\n\t\t\t\t.html( text( config.text ) )\r\n\t\t\t\t.addClass( linerDom.className );\r\n\r\n\t\t\tif ( linerDom.tag.toLowerCase() === 'a' ) {\r\n\t\t\t\tliner.attr( 'href', '#' );\r\n\t\t\t}\r\n\r\n\t\t\tbutton.append( liner );\r\n\t\t}\r\n\t\telse {\r\n\t\t\tbutton.html( text( config.text ) );\r\n\t\t}\r\n\r\n\t\tif ( config.enabled === false ) {\r\n\t\t\tbutton.addClass( buttonDom.disabled );\r\n\t\t}\r\n\r\n\t\tif ( config.className ) {\r\n\t\t\tbutton.addClass( config.className );\r\n\t\t}\r\n\r\n\t\tif ( config.titleAttr ) {\r\n\t\t\tbutton.attr( 'title', text( config.titleAttr ) );\r\n\t\t}\r\n\r\n\t\tif ( ! config.namespace ) {\r\n\t\t\tconfig.namespace = '.dt-button-'+(_buttonCounter++);\r\n\t\t}\r\n\r\n\t\tvar buttonContainer = this.c.dom.buttonContainer;\r\n\t\tvar inserter;\r\n\t\tif ( buttonContainer && buttonContainer.tag ) {\r\n\t\t\tinserter = $('<'+buttonContainer.tag+'/>')\r\n\t\t\t\t.addClass( buttonContainer.className )\r\n\t\t\t\t.append( button );\r\n\t\t}\r\n\t\telse {\r\n\t\t\tinserter = button;\r\n\t\t}\r\n\r\n\t\tthis._addKey( config );\r\n\r\n\t\treturn {\r\n\t\t\tconf:         config,\r\n\t\t\tnode:         button.get(0),\r\n\t\t\tinserter:     inserter,\r\n\t\t\tbuttons:      [],\r\n\t\t\tinCollection: inCollection,\r\n\t\t\tcollection:   null\r\n\t\t};\r\n\t},\r\n\r\n\t/**\r\n\t * Get the button object from a node (recursive)\r\n\t * @param  {node} node Button node\r\n\t * @param  {array} [buttons] Button array, uses base if not defined\r\n\t * @return {object} Button object\r\n\t * @private\r\n\t */\r\n\t_nodeToButton: function ( node, buttons )\r\n\t{\r\n\t\tif ( ! buttons ) {\r\n\t\t\tbuttons = this.s.buttons;\r\n\t\t}\r\n\r\n\t\tfor ( var i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\tif ( buttons[i].node === node ) {\r\n\t\t\t\treturn buttons[i];\r\n\t\t\t}\r\n\r\n\t\t\tif ( buttons[i].buttons.length ) {\r\n\t\t\t\tvar ret = this._nodeToButton( node, buttons[i].buttons );\r\n\r\n\t\t\t\tif ( ret ) {\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Get container array for a button from a button node (recursive)\r\n\t * @param  {node} node Button node\r\n\t * @param  {array} [buttons] Button array, uses base if not defined\r\n\t * @return {array} Button's host array\r\n\t * @private\r\n\t */\r\n\t_nodeToHost: function ( node, buttons )\r\n\t{\r\n\t\tif ( ! buttons ) {\r\n\t\t\tbuttons = this.s.buttons;\r\n\t\t}\r\n\r\n\t\tfor ( var i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\tif ( buttons[i].node === node ) {\r\n\t\t\t\treturn buttons;\r\n\t\t\t}\r\n\r\n\t\t\tif ( buttons[i].buttons.length ) {\r\n\t\t\t\tvar ret = this._nodeToHost( node, buttons[i].buttons );\r\n\r\n\t\t\t\tif ( ret ) {\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Handle a key press - determine if any button's key configured matches\r\n\t * what was typed and trigger the action if so.\r\n\t * @param  {string} character The character pressed\r\n\t * @param  {object} e Key event that triggered this call\r\n\t * @private\r\n\t */\r\n\t_keypress: function ( character, e )\r\n\t{\r\n\t\tvar run = function ( conf, node ) {\r\n\t\t\tif ( ! conf.key ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif ( conf.key === character ) {\r\n\t\t\t\t$(node).click();\r\n\t\t\t}\r\n\t\t\telse if ( $.isPlainObject( conf.key ) ) {\r\n\t\t\t\tif ( conf.key.key !== character ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( conf.key.shiftKey && ! e.shiftKey ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( conf.key.altKey && ! e.altKey ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( conf.key.ctrlKey && ! e.ctrlKey ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( conf.key.metaKey && ! e.metaKey ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Made it this far - it is good\r\n\t\t\t\t$(node).click();\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tvar recurse = function ( a ) {\r\n\t\t\tfor ( var i=0, ien=a.length ; i<ien ; i++ ) {\r\n\t\t\t\trun( a[i].conf, a[i].node );\r\n\r\n\t\t\t\tif ( a[i].buttons.length ) {\r\n\t\t\t\t\trecurse( a[i].buttons );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\trecurse( this.s.buttons );\r\n\t},\r\n\r\n\t/**\r\n\t * Remove a key from the key listener for this instance (to be used when a\r\n\t * button is removed)\r\n\t * @param  {object} conf Button configuration\r\n\t * @private\r\n\t */\r\n\t_removeKey: function ( conf )\r\n\t{\r\n\t\tif ( conf.key ) {\r\n\t\t\tvar character = $.isPlainObject( conf.key ) ?\r\n\t\t\t\tconf.key.key :\r\n\t\t\t\tconf.key;\r\n\r\n\t\t\t// Remove only one character, as multiple buttons could have the\r\n\t\t\t// same listening key\r\n\t\t\tvar a = this.s.listenKeys.split('');\r\n\t\t\tvar idx = $.inArray( character, a );\r\n\t\t\ta.splice( idx, 1 );\r\n\t\t\tthis.s.listenKeys = a.join('');\r\n\t\t}\r\n\t},\r\n\r\n\t/**\r\n\t * Resolve a button configuration\r\n\t * @param  {string|function|object} conf Button config to resolve\r\n\t * @return {object} Button configuration\r\n\t * @private\r\n\t */\r\n\t_resolveExtends: function ( conf )\r\n\t{\r\n\t\tvar dt = this.s.dt;\r\n\t\tvar i, ien;\r\n\t\tvar toConfObject = function ( base ) {\r\n\t\t\tvar loop = 0;\r\n\r\n\t\t\t// Loop until we have resolved to a button configuration, or an\r\n\t\t\t// array of button configurations (which will be iterated\r\n\t\t\t// separately)\r\n\t\t\twhile ( ! $.isPlainObject(base) && ! $.isArray(base) ) {\r\n\t\t\t\tif ( base === undefined ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( typeof base === 'function' ) {\r\n\t\t\t\t\tbase = base( dt, conf );\r\n\r\n\t\t\t\t\tif ( ! base ) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ( typeof base === 'string' ) {\r\n\t\t\t\t\tif ( ! _dtButtons[ base ] ) {\r\n\t\t\t\t\t\tthrow 'Unknown button type: '+base;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbase = _dtButtons[ base ];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tloop++;\r\n\t\t\t\tif ( loop > 30 ) {\r\n\t\t\t\t\t// Protect against misconfiguration killing the browser\r\n\t\t\t\t\tthrow 'Buttons: Too many iterations';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn $.isArray( base ) ?\r\n\t\t\t\tbase :\r\n\t\t\t\t$.extend( {}, base );\r\n\t\t};\r\n\r\n\t\tconf = toConfObject( conf );\r\n\r\n\t\twhile ( conf && conf.extend ) {\r\n\t\t\t// Use `toConfObject` in case the button definition being extended\r\n\t\t\t// is itself a string or a function\r\n\t\t\tif ( ! _dtButtons[ conf.extend ] ) {\r\n\t\t\t\tthrow 'Cannot extend unknown button type: '+conf.extend;\r\n\t\t\t}\r\n\r\n\t\t\tvar objArray = toConfObject( _dtButtons[ conf.extend ] );\r\n\t\t\tif ( $.isArray( objArray ) ) {\r\n\t\t\t\treturn objArray;\r\n\t\t\t}\r\n\t\t\telse if ( ! objArray ) {\r\n\t\t\t\t// This is a little brutal as it might be possible to have a\r\n\t\t\t\t// valid button without the extend, but if there is no extend\r\n\t\t\t\t// then the host button would be acting in an undefined state\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// Stash the current class name\r\n\t\t\tvar originalClassName = objArray.className;\r\n\r\n\t\t\tconf = $.extend( {}, objArray, conf );\r\n\r\n\t\t\t// The extend will have overwritten the original class name if the\r\n\t\t\t// `conf` object also assigned a class, but we want to concatenate\r\n\t\t\t// them so they are list that is combined from all extended buttons\r\n\t\t\tif ( originalClassName && conf.className !== originalClassName ) {\r\n\t\t\t\tconf.className = originalClassName+' '+conf.className;\r\n\t\t\t}\r\n\r\n\t\t\t// Buttons to be added to a collection  -gives the ability to define\r\n\t\t\t// if buttons should be added to the start or end of a collection\r\n\t\t\tvar postfixButtons = conf.postfixButtons;\r\n\t\t\tif ( postfixButtons ) {\r\n\t\t\t\tif ( ! conf.buttons ) {\r\n\t\t\t\t\tconf.buttons = [];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor ( i=0, ien=postfixButtons.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tconf.buttons.push( postfixButtons[i] );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconf.postfixButtons = null;\r\n\t\t\t}\r\n\r\n\t\t\tvar prefixButtons = conf.prefixButtons;\r\n\t\t\tif ( prefixButtons ) {\r\n\t\t\t\tif ( ! conf.buttons ) {\r\n\t\t\t\t\tconf.buttons = [];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor ( i=0, ien=prefixButtons.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tconf.buttons.splice( i, 0, prefixButtons[i] );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconf.prefixButtons = null;\r\n\t\t\t}\r\n\r\n\t\t\t// Although we want the `conf` object to overwrite almost all of\r\n\t\t\t// the properties of the object being extended, the `extend`\r\n\t\t\t// property should come from the object being extended\r\n\t\t\tconf.extend = objArray.extend;\r\n\t\t}\r\n\r\n\t\treturn conf;\r\n\t}\r\n} );\r\n\r\n\r\n\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Statics\r\n */\r\n\r\n/**\r\n * Show / hide a background layer behind a collection\r\n * @param  {boolean} Flag to indicate if the background should be shown or\r\n *   hidden \r\n * @param  {string} Class to assign to the background\r\n * @static\r\n */\r\nButtons.background = function ( show, className, fade ) {\r\n\tif ( fade === undefined ) {\r\n\t\tfade = 400;\r\n\t}\r\n\r\n\tif ( show ) {\r\n\t\t$('<div/>')\r\n\t\t\t.addClass( className )\r\n\t\t\t.css( 'display', 'none' )\r\n\t\t\t.appendTo( 'body' )\r\n\t\t\t.fadeIn( fade );\r\n\t}\r\n\telse {\r\n\t\t$('body > div.'+className)\r\n\t\t\t.fadeOut( fade, function () {\r\n\t\t\t\t$(this)\r\n\t\t\t\t\t.removeClass( className )\r\n\t\t\t\t\t.remove();\r\n\t\t\t} );\r\n\t}\r\n};\r\n\r\n/**\r\n * Instance selector - select Buttons instances based on an instance selector\r\n * value from the buttons assigned to a DataTable. This is only useful if\r\n * multiple instances are attached to a DataTable.\r\n * @param  {string|int|array} Instance selector - see `instance-selector`\r\n *   documentation on the DataTables site\r\n * @param  {array} Button instance array that was attached to the DataTables\r\n *   settings object\r\n * @return {array} Buttons instances\r\n * @static\r\n */\r\nButtons.instanceSelector = function ( group, buttons )\r\n{\r\n\tif ( ! group ) {\r\n\t\treturn $.map( buttons, function ( v ) {\r\n\t\t\treturn v.inst;\r\n\t\t} );\r\n\t}\r\n\r\n\tvar ret = [];\r\n\tvar names = $.map( buttons, function ( v ) {\r\n\t\treturn v.name;\r\n\t} );\r\n\r\n\t// Flatten the group selector into an array of single options\r\n\tvar process = function ( input ) {\r\n\t\tif ( $.isArray( input ) ) {\r\n\t\t\tfor ( var i=0, ien=input.length ; i<ien ; i++ ) {\r\n\t\t\t\tprocess( input[i] );\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( typeof input === 'string' ) {\r\n\t\t\tif ( input.indexOf( ',' ) !== -1 ) {\r\n\t\t\t\t// String selector, list of names\r\n\t\t\t\tprocess( input.split(',') );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// String selector individual name\r\n\t\t\t\tvar idx = $.inArray( $.trim(input), names );\r\n\r\n\t\t\t\tif ( idx !== -1 ) {\r\n\t\t\t\t\tret.push( buttons[ idx ].inst );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( typeof input === 'number' ) {\r\n\t\t\t// Index selector\r\n\t\t\tret.push( buttons[ input ].inst );\r\n\t\t}\r\n\t};\r\n\t\r\n\tprocess( group );\r\n\r\n\treturn ret;\r\n};\r\n\r\n/**\r\n * Button selector - select one or more buttons from a selector input so some\r\n * operation can be performed on them.\r\n * @param  {array} Button instances array that the selector should operate on\r\n * @param  {string|int|node|jQuery|array} Button selector - see\r\n *   `button-selector` documentation on the DataTables site\r\n * @return {array} Array of objects containing `inst` and `idx` properties of\r\n *   the selected buttons so you know which instance each button belongs to.\r\n * @static\r\n */\r\nButtons.buttonSelector = function ( insts, selector )\r\n{\r\n\tvar ret = [];\r\n\tvar nodeBuilder = function ( a, buttons, baseIdx ) {\r\n\t\tvar button;\r\n\t\tvar idx;\r\n\r\n\t\tfor ( var i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\tbutton = buttons[i];\r\n\r\n\t\t\tif ( button ) {\r\n\t\t\t\tidx = baseIdx !== undefined ?\r\n\t\t\t\t\tbaseIdx+i :\r\n\t\t\t\t\ti+'';\r\n\r\n\t\t\t\ta.push( {\r\n\t\t\t\t\tnode: button.node,\r\n\t\t\t\t\tname: button.conf.name,\r\n\t\t\t\t\tidx:  idx\r\n\t\t\t\t} );\r\n\r\n\t\t\t\tif ( button.buttons ) {\r\n\t\t\t\t\tnodeBuilder( a, button.buttons, idx+'-' );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tvar run = function ( selector, inst ) {\r\n\t\tvar i, ien;\r\n\t\tvar buttons = [];\r\n\t\tnodeBuilder( buttons, inst.s.buttons );\r\n\r\n\t\tvar nodes = $.map( buttons, function (v) {\r\n\t\t\treturn v.node;\r\n\t\t} );\r\n\r\n\t\tif ( $.isArray( selector ) || selector instanceof $ ) {\r\n\t\t\tfor ( i=0, ien=selector.length ; i<ien ; i++ ) {\r\n\t\t\t\trun( selector[i], inst );\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( selector === null || selector === undefined || selector === '*' ) {\r\n\t\t\t// Select all\r\n\t\t\tfor ( i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\t\tret.push( {\r\n\t\t\t\t\tinst: inst,\r\n\t\t\t\t\tnode: buttons[i].node\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( typeof selector === 'number' ) {\r\n\t\t\t// Main button index selector\r\n\t\t\tret.push( {\r\n\t\t\t\tinst: inst,\r\n\t\t\t\tnode: inst.s.buttons[ selector ].node\r\n\t\t\t} );\r\n\t\t}\r\n\t\telse if ( typeof selector === 'string' ) {\r\n\t\t\tif ( selector.indexOf( ',' ) !== -1 ) {\r\n\t\t\t\t// Split\r\n\t\t\t\tvar a = selector.split(',');\r\n\r\n\t\t\t\tfor ( i=0, ien=a.length ; i<ien ; i++ ) {\r\n\t\t\t\t\trun( $.trim(a[i]), inst );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if ( selector.match( /^\\d+(\\-\\d+)*$/ ) ) {\r\n\t\t\t\t// Sub-button index selector\r\n\t\t\t\tvar indexes = $.map( buttons, function (v) {\r\n\t\t\t\t\treturn v.idx;\r\n\t\t\t\t} );\r\n\r\n\t\t\t\tret.push( {\r\n\t\t\t\t\tinst: inst,\r\n\t\t\t\t\tnode: buttons[ $.inArray( selector, indexes ) ].node\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t\telse if ( selector.indexOf( ':name' ) !== -1 ) {\r\n\t\t\t\t// Button name selector\r\n\t\t\t\tvar name = selector.replace( ':name', '' );\r\n\r\n\t\t\t\tfor ( i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tif ( buttons[i].name === name ) {\r\n\t\t\t\t\t\tret.push( {\r\n\t\t\t\t\t\t\tinst: inst,\r\n\t\t\t\t\t\t\tnode: buttons[i].node\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// jQuery selector on the nodes\r\n\t\t\t\t$( nodes ).filter( selector ).each( function () {\r\n\t\t\t\t\tret.push( {\r\n\t\t\t\t\t\tinst: inst,\r\n\t\t\t\t\t\tnode: this\r\n\t\t\t\t\t} );\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( typeof selector === 'object' && selector.nodeName ) {\r\n\t\t\t// Node selector\r\n\t\t\tvar idx = $.inArray( selector, nodes );\r\n\r\n\t\t\tif ( idx !== -1 ) {\r\n\t\t\t\tret.push( {\r\n\t\t\t\t\tinst: inst,\r\n\t\t\t\t\tnode: nodes[ idx ]\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\r\n\tfor ( var i=0, ien=insts.length ; i<ien ; i++ ) {\r\n\t\tvar inst = insts[i];\r\n\r\n\t\trun( selector, inst );\r\n\t}\r\n\r\n\treturn ret;\r\n};\r\n\r\n\r\n/**\r\n * Buttons defaults. For full documentation, please refer to the docs/option\r\n * directory or the DataTables site.\r\n * @type {Object}\r\n * @static\r\n */\r\nButtons.defaults = {\r\n\tbuttons: [ 'copy', 'excel', 'csv', 'pdf', 'print' ],\r\n\tname: 'main',\r\n\ttabIndex: 0,\r\n\tdom: {\r\n\t\tcontainer: {\r\n\t\t\ttag: 'div',\r\n\t\t\tclassName: 'dt-buttons'\r\n\t\t},\r\n\t\tcollection: {\r\n\t\t\ttag: 'div',\r\n\t\t\tclassName: 'dt-button-collection'\r\n\t\t},\r\n\t\tbutton: {\r\n\t\t\ttag: 'a',\r\n\t\t\tclassName: 'dt-button',\r\n\t\t\tactive: 'active',\r\n\t\t\tdisabled: 'disabled'\r\n\t\t},\r\n\t\tbuttonLiner: {\r\n\t\t\ttag: 'span',\r\n\t\t\tclassName: ''\r\n\t\t}\r\n\t}\r\n};\r\n\r\n/**\r\n * Version information\r\n * @type {string}\r\n * @static\r\n */\r\nButtons.version = '1.3.1';\r\n\r\n\r\n$.extend( _dtButtons, {\r\n\tcollection: {\r\n\t\ttext: function ( dt ) {\r\n\t\t\treturn dt.i18n( 'buttons.collection', 'Collection' );\r\n\t\t},\r\n\t\tclassName: 'buttons-collection',\r\n\t\taction: function ( e, dt, button, config ) {\r\n\t\t\tvar host = button;\r\n\t\t\tvar hostOffset = host.offset();\r\n\t\t\tvar tableContainer = $( dt.table().container() );\r\n\t\t\tvar multiLevel = false;\r\n\r\n\t\t\t// Remove any old collection\r\n\t\t\tif ( $('div.dt-button-background').length ) {\r\n\t\t\t\tmultiLevel = $('.dt-button-collection').offset();\r\n\t\t\t\t$('body').trigger( 'click.dtb-collection' );\r\n\t\t\t}\r\n\r\n\t\t\tconfig._collection\r\n\t\t\t\t.addClass( config.collectionLayout )\r\n\t\t\t\t.css( 'display', 'none' )\r\n\t\t\t\t.appendTo( 'body' )\r\n\t\t\t\t.fadeIn( config.fade );\r\n\r\n\t\t\tvar position = config._collection.css( 'position' );\r\n\r\n\t\t\tif ( multiLevel && position === 'absolute' ) {\r\n\t\t\t\tconfig._collection.css( {\r\n\t\t\t\t\ttop: multiLevel.top,\r\n\t\t\t\t\tleft: multiLevel.left\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t\telse if ( position === 'absolute' ) {\r\n\t\t\t\tconfig._collection.css( {\r\n\t\t\t\t\ttop: hostOffset.top + host.outerHeight(),\r\n\t\t\t\t\tleft: hostOffset.left\r\n\t\t\t\t} );\r\n\r\n\t\t\t\tvar listRight = hostOffset.left + config._collection.outerWidth();\r\n\t\t\t\tvar tableRight = tableContainer.offset().left + tableContainer.width();\r\n\t\t\t\tif ( listRight > tableRight ) {\r\n\t\t\t\t\tconfig._collection.css( 'left', hostOffset.left - ( listRight - tableRight ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Fix position - centre on screen\r\n\t\t\t\tvar top = config._collection.height() / 2;\r\n\t\t\t\tif ( top > $(window).height() / 2 ) {\r\n\t\t\t\t\ttop = $(window).height() / 2;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconfig._collection.css( 'marginTop', top*-1 );\r\n\t\t\t}\r\n\r\n\t\t\tif ( config.background ) {\r\n\t\t\t\tButtons.background( true, config.backgroundClassName, config.fade );\r\n\t\t\t}\r\n\r\n\t\t\t// Need to break the 'thread' for the collection button being\r\n\t\t\t// activated by a click - it would also trigger this event\r\n\t\t\tsetTimeout( function () {\r\n\t\t\t\t// This is bonkers, but if we don't have a click listener on the\r\n\t\t\t\t// background element, iOS Safari will ignore the body click\r\n\t\t\t\t// listener below. An empty function here is all that is\r\n\t\t\t\t// required to make it work...\r\n\t\t\t\t$('div.dt-button-background').on( 'click.dtb-collection', function () {} );\r\n\r\n\t\t\t\t$('body').on( 'click.dtb-collection', function (e) {\r\n\t\t\t\t\t// andSelf is deprecated in jQ1.8, but we want 1.7 compat\r\n\t\t\t\t\tvar back = $.fn.addBack ? 'addBack' : 'andSelf';\r\n\r\n\t\t\t\t\tif ( ! $(e.target).parents()[back]().filter( config._collection ).length ) {\r\n\t\t\t\t\t\tconfig._collection\r\n\t\t\t\t\t\t\t.fadeOut( config.fade, function () {\r\n\t\t\t\t\t\t\t\tconfig._collection.detach();\r\n\t\t\t\t\t\t\t} );\r\n\r\n\t\t\t\t\t\t$('div.dt-button-background').off( 'click.dtb-collection' );\r\n\t\t\t\t\t\tButtons.background( false, config.backgroundClassName, config.fade );\r\n\r\n\t\t\t\t\t\t$('body').off( 'click.dtb-collection' );\r\n\t\t\t\t\t\tdt.off( 'buttons-action.b-internal' );\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t}, 10 );\r\n\r\n\t\t\tif ( config.autoClose ) {\r\n\t\t\t\tdt.on( 'buttons-action.b-internal', function () {\r\n\t\t\t\t\t$('div.dt-button-background').click();\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t},\r\n\t\tbackground: true,\r\n\t\tcollectionLayout: '',\r\n\t\tbackgroundClassName: 'dt-button-background',\r\n\t\tautoClose: false,\r\n\t\tfade: 400\r\n\t},\r\n\tcopy: function ( dt, conf ) {\r\n\t\tif ( _dtButtons.copyHtml5 ) {\r\n\t\t\treturn 'copyHtml5';\r\n\t\t}\r\n\t\tif ( _dtButtons.copyFlash && _dtButtons.copyFlash.available( dt, conf ) ) {\r\n\t\t\treturn 'copyFlash';\r\n\t\t}\r\n\t},\r\n\tcsv: function ( dt, conf ) {\r\n\t\t// Common option that will use the HTML5 or Flash export buttons\r\n\t\tif ( _dtButtons.csvHtml5 && _dtButtons.csvHtml5.available( dt, conf ) ) {\r\n\t\t\treturn 'csvHtml5';\r\n\t\t}\r\n\t\tif ( _dtButtons.csvFlash && _dtButtons.csvFlash.available( dt, conf ) ) {\r\n\t\t\treturn 'csvFlash';\r\n\t\t}\r\n\t},\r\n\texcel: function ( dt, conf ) {\r\n\t\t// Common option that will use the HTML5 or Flash export buttons\r\n\t\tif ( _dtButtons.excelHtml5 && _dtButtons.excelHtml5.available( dt, conf ) ) {\r\n\t\t\treturn 'excelHtml5';\r\n\t\t}\r\n\t\tif ( _dtButtons.excelFlash && _dtButtons.excelFlash.available( dt, conf ) ) {\r\n\t\t\treturn 'excelFlash';\r\n\t\t}\r\n\t},\r\n\tpdf: function ( dt, conf ) {\r\n\t\t// Common option that will use the HTML5 or Flash export buttons\r\n\t\tif ( _dtButtons.pdfHtml5 && _dtButtons.pdfHtml5.available( dt, conf ) ) {\r\n\t\t\treturn 'pdfHtml5';\r\n\t\t}\r\n\t\tif ( _dtButtons.pdfFlash && _dtButtons.pdfFlash.available( dt, conf ) ) {\r\n\t\t\treturn 'pdfFlash';\r\n\t\t}\r\n\t},\r\n\tpageLength: function ( dt ) {\r\n\t\tvar lengthMenu = dt.settings()[0].aLengthMenu;\r\n\t\tvar vals = $.isArray( lengthMenu[0] ) ? lengthMenu[0] : lengthMenu;\r\n\t\tvar lang = $.isArray( lengthMenu[0] ) ? lengthMenu[1] : lengthMenu;\r\n\t\tvar text = function ( dt ) {\r\n\t\t\treturn dt.i18n( 'buttons.pageLength', {\r\n\t\t\t\t\"-1\": 'Show all rows',\r\n\t\t\t\t_:    'Show %d rows'\r\n\t\t\t}, dt.page.len() );\r\n\t\t};\r\n\r\n\t\treturn {\r\n\t\t\textend: 'collection',\r\n\t\t\ttext: text,\r\n\t\t\tclassName: 'buttons-page-length',\r\n\t\t\tautoClose: true,\r\n\t\t\tbuttons: $.map( vals, function ( val, i ) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\ttext: lang[i],\r\n\t\t\t\t\tclassName: 'button-page-length',\r\n\t\t\t\t\taction: function ( e, dt ) {\r\n\t\t\t\t\t\tdt.page.len( val ).draw();\r\n\t\t\t\t\t},\r\n\t\t\t\t\tinit: function ( dt, node, conf ) {\r\n\t\t\t\t\t\tvar that = this;\r\n\t\t\t\t\t\tvar fn = function () {\r\n\t\t\t\t\t\t\tthat.active( dt.page.len() === val );\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tdt.on( 'length.dt'+conf.namespace, fn );\r\n\t\t\t\t\t\tfn();\r\n\t\t\t\t\t},\r\n\t\t\t\t\tdestroy: function ( dt, node, conf ) {\r\n\t\t\t\t\t\tdt.off( 'length.dt'+conf.namespace );\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t} ),\r\n\t\t\tinit: function ( dt, node, conf ) {\r\n\t\t\t\tvar that = this;\r\n\t\t\t\tdt.on( 'length.dt'+conf.namespace, function () {\r\n\t\t\t\t\tthat.text( text( dt ) );\r\n\t\t\t\t} );\r\n\t\t\t},\r\n\t\t\tdestroy: function ( dt, node, conf ) {\r\n\t\t\t\tdt.off( 'length.dt'+conf.namespace );\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n} );\r\n\r\n\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * DataTables API\r\n *\r\n * For complete documentation, please refer to the docs/api directory or the\r\n * DataTables site\r\n */\r\n\r\n// Buttons group and individual button selector\r\nDataTable.Api.register( 'buttons()', function ( group, selector ) {\r\n\t// Argument shifting\r\n\tif ( selector === undefined ) {\r\n\t\tselector = group;\r\n\t\tgroup = undefined;\r\n\t}\r\n\r\n\tthis.selector.buttonGroup = group;\r\n\r\n\tvar res = this.iterator( true, 'table', function ( ctx ) {\r\n\t\tif ( ctx._buttons ) {\r\n\t\t\treturn Buttons.buttonSelector(\r\n\t\t\t\tButtons.instanceSelector( group, ctx._buttons ),\r\n\t\t\t\tselector\r\n\t\t\t);\r\n\t\t}\r\n\t}, true );\r\n\r\n\tres._groupSelector = group;\r\n\treturn res;\r\n} );\r\n\r\n// Individual button selector\r\nDataTable.Api.register( 'button()', function ( group, selector ) {\r\n\t// just run buttons() and truncate\r\n\tvar buttons = this.buttons( group, selector );\r\n\r\n\tif ( buttons.length > 1 ) {\r\n\t\tbuttons.splice( 1, buttons.length );\r\n\t}\r\n\r\n\treturn buttons;\r\n} );\r\n\r\n// Active buttons\r\nDataTable.Api.registerPlural( 'buttons().active()', 'button().active()', function ( flag ) {\r\n\tif ( flag === undefined ) {\r\n\t\treturn this.map( function ( set ) {\r\n\t\t\treturn set.inst.active( set.node );\r\n\t\t} );\r\n\t}\r\n\r\n\treturn this.each( function ( set ) {\r\n\t\tset.inst.active( set.node, flag );\r\n\t} );\r\n} );\r\n\r\n// Get / set button action\r\nDataTable.Api.registerPlural( 'buttons().action()', 'button().action()', function ( action ) {\r\n\tif ( action === undefined ) {\r\n\t\treturn this.map( function ( set ) {\r\n\t\t\treturn set.inst.action( set.node );\r\n\t\t} );\r\n\t}\r\n\r\n\treturn this.each( function ( set ) {\r\n\t\tset.inst.action( set.node, action );\r\n\t} );\r\n} );\r\n\r\n// Enable / disable buttons\r\nDataTable.Api.register( ['buttons().enable()', 'button().enable()'], function ( flag ) {\r\n\treturn this.each( function ( set ) {\r\n\t\tset.inst.enable( set.node, flag );\r\n\t} );\r\n} );\r\n\r\n// Disable buttons\r\nDataTable.Api.register( ['buttons().disable()', 'button().disable()'], function () {\r\n\treturn this.each( function ( set ) {\r\n\t\tset.inst.disable( set.node );\r\n\t} );\r\n} );\r\n\r\n// Get button nodes\r\nDataTable.Api.registerPlural( 'buttons().nodes()', 'button().node()', function () {\r\n\tvar jq = $();\r\n\r\n\t// jQuery will automatically reduce duplicates to a single entry\r\n\t$( this.each( function ( set ) {\r\n\t\tjq = jq.add( set.inst.node( set.node ) );\r\n\t} ) );\r\n\r\n\treturn jq;\r\n} );\r\n\r\n// Get / set button processing state\r\nDataTable.Api.registerPlural( 'buttons().processing()', 'button().processing()', function ( flag ) {\r\n\tif ( flag === undefined ) {\r\n\t\treturn this.map( function ( set ) {\r\n\t\t\treturn set.inst.processing( set.node );\r\n\t\t} );\r\n\t}\r\n\r\n\treturn this.each( function ( set ) {\r\n\t\tset.inst.processing( set.node, flag );\r\n\t} );\r\n} );\r\n\r\n// Get / set button text (i.e. the button labels)\r\nDataTable.Api.registerPlural( 'buttons().text()', 'button().text()', function ( label ) {\r\n\tif ( label === undefined ) {\r\n\t\treturn this.map( function ( set ) {\r\n\t\t\treturn set.inst.text( set.node );\r\n\t\t} );\r\n\t}\r\n\r\n\treturn this.each( function ( set ) {\r\n\t\tset.inst.text( set.node, label );\r\n\t} );\r\n} );\r\n\r\n// Trigger a button's action\r\nDataTable.Api.registerPlural( 'buttons().trigger()', 'button().trigger()', function () {\r\n\treturn this.each( function ( set ) {\r\n\t\tset.inst.node( set.node ).trigger( 'click' );\r\n\t} );\r\n} );\r\n\r\n// Get the container elements\r\nDataTable.Api.registerPlural( 'buttons().containers()', 'buttons().container()', function () {\r\n\tvar jq = $();\r\n\tvar groupSelector = this._groupSelector;\r\n\r\n\t// We need to use the group selector directly, since if there are no buttons\r\n\t// the result set will be empty\r\n\tthis.iterator( true, 'table', function ( ctx ) {\r\n\t\tif ( ctx._buttons ) {\r\n\t\t\tvar insts = Buttons.instanceSelector( groupSelector, ctx._buttons );\r\n\r\n\t\t\tfor ( var i=0, ien=insts.length ; i<ien ; i++ ) {\r\n\t\t\t\tjq = jq.add( insts[i].container() );\r\n\t\t\t}\r\n\t\t}\r\n\t} );\r\n\r\n\treturn jq;\r\n} );\r\n\r\n// Add a new button\r\nDataTable.Api.register( 'button().add()', function ( idx, conf ) {\r\n\tvar ctx = this.context;\r\n\r\n\t// Don't use `this` as it could be empty - select the instances directly\r\n\tif ( ctx.length ) {\r\n\t\tvar inst = Buttons.instanceSelector( this._groupSelector, ctx[0]._buttons );\r\n\r\n\t\tif ( inst.length ) {\r\n\t\t\tinst[0].add( conf, idx );\r\n\t\t}\r\n\t}\r\n\r\n\treturn this.button( this._groupSelector, idx );\r\n} );\r\n\r\n// Destroy the button sets selected\r\nDataTable.Api.register( 'buttons().destroy()', function () {\r\n\tthis.pluck( 'inst' ).unique().each( function ( inst ) {\r\n\t\tinst.destroy();\r\n\t} );\r\n\r\n\treturn this;\r\n} );\r\n\r\n// Remove a button\r\nDataTable.Api.registerPlural( 'buttons().remove()', 'buttons().remove()', function () {\r\n\tthis.each( function ( set ) {\r\n\t\tset.inst.remove( set.node );\r\n\t} );\r\n\r\n\treturn this;\r\n} );\r\n\r\n// Information box that can be used by buttons\r\nvar _infoTimer;\r\nDataTable.Api.register( 'buttons.info()', function ( title, message, time ) {\r\n\tvar that = this;\r\n\r\n\tif ( title === false ) {\r\n\t\t$('#datatables_buttons_info').fadeOut( function () {\r\n\t\t\t$(this).remove();\r\n\t\t} );\r\n\t\tclearTimeout( _infoTimer );\r\n\t\t_infoTimer = null;\r\n\r\n\t\treturn this;\r\n\t}\r\n\r\n\tif ( _infoTimer ) {\r\n\t\tclearTimeout( _infoTimer );\r\n\t}\r\n\r\n\tif ( $('#datatables_buttons_info').length ) {\r\n\t\t$('#datatables_buttons_info').remove();\r\n\t}\r\n\r\n\ttitle = title ? '<h2>'+title+'</h2>' : '';\r\n\r\n\t$('<div id=\"datatables_buttons_info\" class=\"dt-button-info\"/>')\r\n\t\t.html( title )\r\n\t\t.append( $('<div/>')[ typeof message === 'string' ? 'html' : 'append' ]( message ) )\r\n\t\t.css( 'display', 'none' )\r\n\t\t.appendTo( 'body' )\r\n\t\t.fadeIn();\r\n\r\n\tif ( time !== undefined && time !== 0 ) {\r\n\t\t_infoTimer = setTimeout( function () {\r\n\t\t\tthat.buttons.info( false );\r\n\t\t}, time );\r\n\t}\r\n\r\n\treturn this;\r\n} );\r\n\r\n// Get data from the table for export - this is common to a number of plug-in\r\n// buttons so it is included in the Buttons core library\r\nDataTable.Api.register( 'buttons.exportData()', function ( options ) {\r\n\tif ( this.context.length ) {\r\n\t\treturn _exportData( new DataTable.Api( this.context[0] ), options );\r\n\t}\r\n} );\r\n\r\n\r\nvar _exportTextarea = $('<textarea/>')[0];\r\nvar _exportData = function ( dt, inOpts )\r\n{\r\n\tvar config = $.extend( true, {}, {\r\n\t\trows:           null,\r\n\t\tcolumns:        '',\r\n\t\tmodifier:       {\r\n\t\t\tsearch: 'applied',\r\n\t\t\torder:  'applied'\r\n\t\t},\r\n\t\torthogonal:     'display',\r\n\t\tstripHtml:      true,\r\n\t\tstripNewlines:  true,\r\n\t\tdecodeEntities: true,\r\n\t\ttrim:           true,\r\n\t\tformat:         {\r\n\t\t\theader: function ( d ) {\r\n\t\t\t\treturn strip( d );\r\n\t\t\t},\r\n\t\t\tfooter: function ( d ) {\r\n\t\t\t\treturn strip( d );\r\n\t\t\t},\r\n\t\t\tbody: function ( d ) {\r\n\t\t\t\treturn strip( d );\r\n\t\t\t}\r\n\t\t}\r\n\t}, inOpts );\r\n\r\n\tvar strip = function ( str ) {\r\n\t\tif ( typeof str !== 'string' ) {\r\n\t\t\treturn str;\r\n\t\t}\r\n\r\n\t\t// Always remove script tags\r\n\t\tstr = str.replace( /<script\\b[^<]*(?:(?!<\\/script>)<[^<]*)*<\\/script>/gi, '' );\r\n\r\n\t\tif ( config.stripHtml ) {\r\n\t\t\tstr = str.replace( /<[^>]*>/g, '' );\r\n\t\t}\r\n\r\n\t\tif ( config.trim ) {\r\n\t\t\tstr = str.replace( /^\\s+|\\s+$/g, '' );\r\n\t\t}\r\n\r\n\t\tif ( config.stripNewlines ) {\r\n\t\t\tstr = str.replace( /\\n/g, ' ' );\r\n\t\t}\r\n\r\n\t\tif ( config.decodeEntities ) {\r\n\t\t\t_exportTextarea.innerHTML = str;\r\n\t\t\tstr = _exportTextarea.value;\r\n\t\t}\r\n\r\n\t\treturn str;\r\n\t};\r\n\r\n\r\n\tvar header = dt.columns( config.columns ).indexes().map( function (idx) {\r\n\t\tvar el = dt.column( idx ).header();\r\n\t\treturn config.format.header( el.innerHTML, idx, el );\r\n\t} ).toArray();\r\n\r\n\tvar footer = dt.table().footer() ?\r\n\t\tdt.columns( config.columns ).indexes().map( function (idx) {\r\n\t\t\tvar el = dt.column( idx ).footer();\r\n\t\t\treturn config.format.footer( el ? el.innerHTML : '', idx, el );\r\n\t\t} ).toArray() :\r\n\t\tnull;\r\n\r\n\tvar rowIndexes = dt.rows( config.rows, config.modifier ).indexes().toArray();\r\n\tvar selectedCells = dt.cells( rowIndexes, config.columns );\r\n\tvar cells = selectedCells\r\n\t\t.render( config.orthogonal )\r\n\t\t.toArray();\r\n\tvar cellNodes = selectedCells\r\n\t\t.nodes()\r\n\t\t.toArray();\r\n\r\n\tvar columns = header.length;\r\n\tvar rows = columns > 0 ? cells.length / columns : 0;\r\n\tvar body = new Array( rows );\r\n\tvar cellCounter = 0;\r\n\r\n\tfor ( var i=0, ien=rows ; i<ien ; i++ ) {\r\n\t\tvar row = new Array( columns );\r\n\r\n\t\tfor ( var j=0 ; j<columns ; j++ ) {\r\n\t\t\trow[j] = config.format.body( cells[ cellCounter ], i, j, cellNodes[ cellCounter ] );\r\n\t\t\tcellCounter++;\r\n\t\t}\r\n\r\n\t\tbody[i] = row;\r\n\t}\r\n\r\n\treturn {\r\n\t\theader: header,\r\n\t\tfooter: footer,\r\n\t\tbody:   body\r\n\t};\r\n};\r\n\r\n\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * DataTables interface\r\n */\r\n\r\n// Attach to DataTables objects for global access\r\n$.fn.dataTable.Buttons = Buttons;\r\n$.fn.DataTable.Buttons = Buttons;\r\n\r\n\r\n\r\n// DataTables creation - check if the buttons have been defined for this table,\r\n// they will have been if the `B` option was used in `dom`, otherwise we should\r\n// create the buttons instance here so they can be inserted into the document\r\n// using the API. Listen for `init` for compatibility with pre 1.10.10, but to\r\n// be removed in future.\r\n$(document).on( 'init.dt plugin-init.dt', function (e, settings) {\r\n\tif ( e.namespace !== 'dt' ) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tvar opts = settings.oInit.buttons || DataTable.defaults.buttons;\r\n\r\n\tif ( opts && ! settings._buttons ) {\r\n\t\tnew Buttons( settings, opts ).container();\r\n\t}\r\n} );\r\n\r\n// DataTables `dom` feature option\r\nDataTable.ext.feature.push( {\r\n\tfnInit: function( settings ) {\r\n\t\tvar api = new DataTable.Api( settings );\r\n\t\tvar opts = api.init().buttons || DataTable.defaults.buttons;\r\n\r\n\t\treturn new Buttons( api, opts ).container();\r\n\t},\r\n\tcFeature: \"B\"\r\n} );\r\n\r\n\r\nreturn Buttons;\r\n}));\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/datatables.net-buttons/js/dataTables.buttons.js\n// module id = 76\n// module chunks = 2","\"use strict\";\r\nfunction __export(m) {\r\n    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n// Hot Module Replacement\r\n__export(require('./helpers'));\r\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angularclass/hmr/dist/index.js\n// module id = 77\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subscriber_1 = require('./Subscriber');\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar OuterSubscriber = (function (_super) {\r\n    __extends(OuterSubscriber, _super);\r\n    function OuterSubscriber() {\r\n        _super.apply(this, arguments);\r\n    }\r\n    OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\r\n        this.destination.next(innerValue);\r\n    };\r\n    OuterSubscriber.prototype.notifyError = function (error, innerSub) {\r\n        this.destination.error(error);\r\n    };\r\n    OuterSubscriber.prototype.notifyComplete = function (innerSub) {\r\n        this.destination.complete();\r\n    };\r\n    return OuterSubscriber;\r\n}(Subscriber_1.Subscriber));\r\nexports.OuterSubscriber = OuterSubscriber;\r\n//# sourceMappingURL=OuterSubscriber.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/OuterSubscriber.js\n// module id = 78\n// module chunks = 2","\"use strict\";\r\nvar root_1 = require('./root');\r\nvar isArray_1 = require('./isArray');\r\nvar isPromise_1 = require('./isPromise');\r\nvar isObject_1 = require('./isObject');\r\nvar Observable_1 = require('../Observable');\r\nvar iterator_1 = require('../symbol/iterator');\r\nvar InnerSubscriber_1 = require('../InnerSubscriber');\r\nvar observable_1 = require('../symbol/observable');\r\nfunction subscribeToResult(outerSubscriber, result, outerValue, outerIndex) {\r\n    var destination = new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex);\r\n    if (destination.closed) {\r\n        return null;\r\n    }\r\n    if (result instanceof Observable_1.Observable) {\r\n        if (result._isScalar) {\r\n            destination.next(result.value);\r\n            destination.complete();\r\n            return null;\r\n        }\r\n        else {\r\n            return result.subscribe(destination);\r\n        }\r\n    }\r\n    else if (isArray_1.isArray(result)) {\r\n        for (var i = 0, len = result.length; i < len && !destination.closed; i++) {\r\n            destination.next(result[i]);\r\n        }\r\n        if (!destination.closed) {\r\n            destination.complete();\r\n        }\r\n    }\r\n    else if (isPromise_1.isPromise(result)) {\r\n        result.then(function (value) {\r\n            if (!destination.closed) {\r\n                destination.next(value);\r\n                destination.complete();\r\n            }\r\n        }, function (err) { return destination.error(err); })\r\n            .then(null, function (err) {\r\n            // Escaping the Promise trap: globally throw unhandled errors\r\n            root_1.root.setTimeout(function () { throw err; });\r\n        });\r\n        return destination;\r\n    }\r\n    else if (result && typeof result[iterator_1.$$iterator] === 'function') {\r\n        var iterator = result[iterator_1.$$iterator]();\r\n        do {\r\n            var item = iterator.next();\r\n            if (item.done) {\r\n                destination.complete();\r\n                break;\r\n            }\r\n            destination.next(item.value);\r\n            if (destination.closed) {\r\n                break;\r\n            }\r\n        } while (true);\r\n    }\r\n    else if (result && typeof result[observable_1.$$observable] === 'function') {\r\n        var obs = result[observable_1.$$observable]();\r\n        if (typeof obs.subscribe !== 'function') {\r\n            destination.error(new TypeError('Provided object does not correctly implement Symbol.observable'));\r\n        }\r\n        else {\r\n            return obs.subscribe(new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex));\r\n        }\r\n    }\r\n    else {\r\n        var value = isObject_1.isObject(result) ? 'an invalid object' : \"'\" + result + \"'\";\r\n        var msg = (\"You provided \" + value + \" where a stream was expected.\")\r\n            + ' You can provide an Observable, Promise, Array, or Iterable.';\r\n        destination.error(new TypeError(msg));\r\n    }\r\n    return null;\r\n}\r\nexports.subscribeToResult = subscribeToResult;\r\n//# sourceMappingURL=subscribeToResult.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/subscribeToResult.js\n// module id = 79\n// module chunks = 2","\"use strict\";\r\nexports.isArray = Array.isArray || (function (x) { return x && typeof x.length === 'number'; });\r\n//# sourceMappingURL=isArray.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/isArray.js\n// module id = 80\n// module chunks = 2","\"use strict\";\r\nvar Observable_1 = require('../../Observable');\r\nvar map_1 = require('../../operator/map');\r\nObservable_1.Observable.prototype.map = map_1.map;\r\n//# sourceMappingURL=map.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/map.js\n// module id = 81\n// module chunks = 2","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\r\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\r\n  ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\r\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_global.js\n// module id = 82\n// module chunks = 2","'use strict';\r\n\r\nmodule.exports = {\r\n    /**\r\n     * True if this is running in Nodejs, will be undefined in a browser.\r\n     * In a browser, browserify won't include this file and the whole module\r\n     * will be resolved an empty object.\r\n     */\r\n    isNode : typeof Buffer !== \"undefined\",\r\n    /**\r\n     * Create a new nodejs Buffer.\r\n     * @param {Object} data the data to pass to the constructor.\r\n     * @param {String} encoding the encoding to use.\r\n     * @return {Buffer} a new Buffer.\r\n     */\r\n    newBuffer : function(data, encoding){\r\n        return new Buffer(data, encoding);\r\n    },\r\n    /**\r\n     * Find out if an object is a Buffer.\r\n     * @param {Object} b the object to test.\r\n     * @return {Boolean} true if the object is a Buffer, false otherwise.\r\n     */\r\n    isBuffer : function(b){\r\n        return Buffer.isBuffer(b);\r\n    },\r\n\r\n    isStream : function (obj) {\r\n        return obj &&\r\n            typeof obj.on === \"function\" &&\r\n            typeof obj.pause === \"function\" &&\r\n            typeof obj.resume === \"function\";\r\n    }\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/nodejsUtils.js\n// module id = 93\n// module chunks = 2","var __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * @license Angular v4.1.3\r\n * (c) 2010-2017 Google, Inc. https://angular.io/\r\n * License: MIT\r\n */\r\nimport { ResourceLoader, platformCoreDynamic } from '@angular/compiler';\r\nimport { COMPILER_OPTIONS, Injectable, PLATFORM_ID, Version, createPlatformFactory, ɵglobal } from '@angular/core';\r\nimport { ɵPLATFORM_BROWSER_ID } from '@angular/common';\r\nimport { ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS } from '@angular/platform-browser';\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ResourceLoaderImpl = (function (_super) {\r\n    __extends(ResourceLoaderImpl, _super);\r\n    function ResourceLoaderImpl() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    ResourceLoaderImpl.prototype.get = function (url) {\r\n        var resolve;\r\n        var reject;\r\n        var promise = new Promise(function (res, rej) {\r\n            resolve = res;\r\n            reject = rej;\r\n        });\r\n        var xhr = new XMLHttpRequest();\r\n        xhr.open('GET', url, true);\r\n        xhr.responseType = 'text';\r\n        xhr.onload = function () {\r\n            // responseText is the old-school way of retrieving response (supported by IE8 & 9)\r\n            // response/responseType properties were introduced in ResourceLoader Level2 spec (supported\r\n            // by IE10)\r\n            var response = xhr.response || xhr.responseText;\r\n            // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\r\n            var status = xhr.status === 1223 ? 204 : xhr.status;\r\n            // fix status code when it is 0 (0 status is undocumented).\r\n            // Occurs when accessing file resources or on Android 4.1 stock browser\r\n            // while retrieving files from application cache.\r\n            if (status === 0) {\r\n                status = response ? 200 : 0;\r\n            }\r\n            if (200 <= status && status <= 300) {\r\n                resolve(response);\r\n            }\r\n            else {\r\n                reject(\"Failed to load \" + url);\r\n            }\r\n        };\r\n        xhr.onerror = function () { reject(\"Failed to load \" + url); };\r\n        xhr.send();\r\n        return promise;\r\n    };\r\n    return ResourceLoaderImpl;\r\n}(ResourceLoader));\r\nResourceLoaderImpl.decorators = [\r\n    { type: Injectable },\r\n];\r\n/** @nocollapse */\r\nResourceLoaderImpl.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [\r\n    ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,\r\n    {\r\n        provide: COMPILER_OPTIONS,\r\n        useValue: { providers: [{ provide: ResourceLoader, useClass: ResourceLoaderImpl }] },\r\n        multi: true\r\n    },\r\n    { provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },\r\n];\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * An implementation of ResourceLoader that uses a template cache to avoid doing an actual\r\n * ResourceLoader.\r\n *\r\n * The template cache needs to be built and loaded into window.$templateCache\r\n * via a separate mechanism.\r\n */\r\nvar CachedResourceLoader = (function (_super) {\r\n    __extends(CachedResourceLoader, _super);\r\n    function CachedResourceLoader() {\r\n        var _this = _super.call(this) || this;\r\n        _this._cache = ɵglobal.$templateCache;\r\n        if (_this._cache == null) {\r\n            throw new Error('CachedResourceLoader: Template cache was not found in $templateCache.');\r\n        }\r\n        return _this;\r\n    }\r\n    CachedResourceLoader.prototype.get = function (url) {\r\n        if (this._cache.hasOwnProperty(url)) {\r\n            return Promise.resolve(this._cache[url]);\r\n        }\r\n        else {\r\n            return Promise.reject('CachedResourceLoader: Did not find cached template for ' + url);\r\n        }\r\n    };\r\n    return CachedResourceLoader;\r\n}(ResourceLoader));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the common package.\r\n */\r\n/**\r\n * @stable\r\n */\r\nvar VERSION = new Version('4.1.3');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @experimental\r\n */\r\nvar RESOURCE_CACHE_PROVIDER = [{ provide: ResourceLoader, useClass: CachedResourceLoader }];\r\n/**\r\n * @stable\r\n */\r\nvar platformBrowserDynamic = createPlatformFactory(platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the platform-browser-dynamic package.\r\n */\r\n// This file only reexports content of the `src` folder. Keep it that way.\r\nexport { RESOURCE_CACHE_PROVIDER, platformBrowserDynamic, VERSION, INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS, ResourceLoaderImpl as ɵResourceLoaderImpl };\r\n//# sourceMappingURL=platform-browser-dynamic.es5.js.map\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js\n// module id = 100\n// module chunks = 2","\"use strict\";\r\n// typeof any so that it we don't have to cast when comparing a result to the error object\r\nexports.errorObject = { e: {} };\r\n//# sourceMappingURL=errorObject.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/errorObject.js\n// module id = 101\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Observable_1 = require('../Observable');\r\nvar ScalarObservable_1 = require('./ScalarObservable');\r\nvar EmptyObservable_1 = require('./EmptyObservable');\r\nvar isScheduler_1 = require('../util/isScheduler');\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @extends {Ignored}\r\n * @hide true\r\n */\r\nvar ArrayObservable = (function (_super) {\r\n    __extends(ArrayObservable, _super);\r\n    function ArrayObservable(array, scheduler) {\r\n        _super.call(this);\r\n        this.array = array;\r\n        this.scheduler = scheduler;\r\n        if (!scheduler && array.length === 1) {\r\n            this._isScalar = true;\r\n            this.value = array[0];\r\n        }\r\n    }\r\n    ArrayObservable.create = function (array, scheduler) {\r\n        return new ArrayObservable(array, scheduler);\r\n    };\r\n    /**\r\n     * Creates an Observable that emits some values you specify as arguments,\r\n     * immediately one after the other, and then emits a complete notification.\r\n     *\r\n     * <span class=\"informal\">Emits the arguments you provide, then completes.\r\n     * </span>\r\n     *\r\n     * <img src=\"./img/of.png\" width=\"100%\">\r\n     *\r\n     * This static operator is useful for creating a simple Observable that only\r\n     * emits the arguments given, and the complete notification thereafter. It can\r\n     * be used for composing with other Observables, such as with {@link concat}.\r\n     * By default, it uses a `null` Scheduler, which means the `next`\r\n     * notifications are sent synchronously, although with a different Scheduler\r\n     * it is possible to determine when those notifications will be delivered.\r\n     *\r\n     * @example <caption>Emit 10, 20, 30, then 'a', 'b', 'c', then start ticking every second.</caption>\r\n     * var numbers = Rx.Observable.of(10, 20, 30);\r\n     * var letters = Rx.Observable.of('a', 'b', 'c');\r\n     * var interval = Rx.Observable.interval(1000);\r\n     * var result = numbers.concat(letters).concat(interval);\r\n     * result.subscribe(x => console.log(x));\r\n     *\r\n     * @see {@link create}\r\n     * @see {@link empty}\r\n     * @see {@link never}\r\n     * @see {@link throw}\r\n     *\r\n     * @param {...T} values Arguments that represent `next` values to be emitted.\r\n     * @param {Scheduler} [scheduler] A {@link Scheduler} to use for scheduling\r\n     * the emissions of the `next` notifications.\r\n     * @return {Observable<T>} An Observable that emits each given input value.\r\n     * @static true\r\n     * @name of\r\n     * @owner Observable\r\n     */\r\n    ArrayObservable.of = function () {\r\n        var array = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            array[_i - 0] = arguments[_i];\r\n        }\r\n        var scheduler = array[array.length - 1];\r\n        if (isScheduler_1.isScheduler(scheduler)) {\r\n            array.pop();\r\n        }\r\n        else {\r\n            scheduler = null;\r\n        }\r\n        var len = array.length;\r\n        if (len > 1) {\r\n            return new ArrayObservable(array, scheduler);\r\n        }\r\n        else if (len === 1) {\r\n            return new ScalarObservable_1.ScalarObservable(array[0], scheduler);\r\n        }\r\n        else {\r\n            return new EmptyObservable_1.EmptyObservable(scheduler);\r\n        }\r\n    };\r\n    ArrayObservable.dispatch = function (state) {\r\n        var array = state.array, index = state.index, count = state.count, subscriber = state.subscriber;\r\n        if (index >= count) {\r\n            subscriber.complete();\r\n            return;\r\n        }\r\n        subscriber.next(array[index]);\r\n        if (subscriber.closed) {\r\n            return;\r\n        }\r\n        state.index = index + 1;\r\n        this.schedule(state);\r\n    };\r\n    ArrayObservable.prototype._subscribe = function (subscriber) {\r\n        var index = 0;\r\n        var array = this.array;\r\n        var count = array.length;\r\n        var scheduler = this.scheduler;\r\n        if (scheduler) {\r\n            return scheduler.schedule(ArrayObservable.dispatch, 0, {\r\n                array: array, index: index, count: count, subscriber: subscriber\r\n            });\r\n        }\r\n        else {\r\n            for (var i = 0; i < count && !subscriber.closed; i++) {\r\n                subscriber.next(array[i]);\r\n            }\r\n            subscriber.complete();\r\n        }\r\n    };\r\n    return ArrayObservable;\r\n}(Observable_1.Observable));\r\nexports.ArrayObservable = ArrayObservable;\r\n//# sourceMappingURL=ArrayObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/ArrayObservable.js\n// module id = 102\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Observable_1 = require('../Observable');\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @extends {Ignored}\r\n * @hide true\r\n */\r\nvar EmptyObservable = (function (_super) {\r\n    __extends(EmptyObservable, _super);\r\n    function EmptyObservable(scheduler) {\r\n        _super.call(this);\r\n        this.scheduler = scheduler;\r\n    }\r\n    /**\r\n     * Creates an Observable that emits no items to the Observer and immediately\r\n     * emits a complete notification.\r\n     *\r\n     * <span class=\"informal\">Just emits 'complete', and nothing else.\r\n     * </span>\r\n     *\r\n     * <img src=\"./img/empty.png\" width=\"100%\">\r\n     *\r\n     * This static operator is useful for creating a simple Observable that only\r\n     * emits the complete notification. It can be used for composing with other\r\n     * Observables, such as in a {@link mergeMap}.\r\n     *\r\n     * @example <caption>Emit the number 7, then complete.</caption>\r\n     * var result = Rx.Observable.empty().startWith(7);\r\n     * result.subscribe(x => console.log(x));\r\n     *\r\n     * @example <caption>Map and flatten only odd numbers to the sequence 'a', 'b', 'c'</caption>\r\n     * var interval = Rx.Observable.interval(1000);\r\n     * var result = interval.mergeMap(x =>\r\n     *   x % 2 === 1 ? Rx.Observable.of('a', 'b', 'c') : Rx.Observable.empty()\r\n     * );\r\n     * result.subscribe(x => console.log(x));\r\n     *\r\n     * // Results in the following to the console:\r\n     * // x is equal to the count on the interval eg(0,1,2,3,...)\r\n     * // x will occur every 1000ms\r\n     * // if x % 2 is equal to 1 print abc\r\n     * // if x % 2 is not equal to 1 nothing will be output\r\n     *\r\n     * @see {@link create}\r\n     * @see {@link never}\r\n     * @see {@link of}\r\n     * @see {@link throw}\r\n     *\r\n     * @param {Scheduler} [scheduler] A {@link Scheduler} to use for scheduling\r\n     * the emission of the complete notification.\r\n     * @return {Observable} An \"empty\" Observable: emits only the complete\r\n     * notification.\r\n     * @static true\r\n     * @name empty\r\n     * @owner Observable\r\n     */\r\n    EmptyObservable.create = function (scheduler) {\r\n        return new EmptyObservable(scheduler);\r\n    };\r\n    EmptyObservable.dispatch = function (arg) {\r\n        var subscriber = arg.subscriber;\r\n        subscriber.complete();\r\n    };\r\n    EmptyObservable.prototype._subscribe = function (subscriber) {\r\n        var scheduler = this.scheduler;\r\n        if (scheduler) {\r\n            return scheduler.schedule(EmptyObservable.dispatch, 0, { subscriber: subscriber });\r\n        }\r\n        else {\r\n            subscriber.complete();\r\n        }\r\n    };\r\n    return EmptyObservable;\r\n}(Observable_1.Observable));\r\nexports.EmptyObservable = EmptyObservable;\r\n//# sourceMappingURL=EmptyObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/EmptyObservable.js\n// module id = 103\n// module chunks = 2","var __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * @license Angular v4.1.3\r\n * (c) 2010-2017 Google, Inc. https://angular.io/\r\n * License: MIT\r\n */ import { APP_BASE_HREF, HashLocationStrategy, LOCATION_INITIALIZED, Location, LocationStrategy, PathLocationStrategy, PlatformLocation } from '@angular/common';\r\nimport { ANALYZE_FOR_ENTRY_COMPONENTS, APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, ApplicationRef, Attribute, ChangeDetectorRef, Compiler, ComponentFactoryResolver, ContentChildren, Directive, ElementRef, EventEmitter, HostBinding, HostListener, Inject, Injectable, InjectionToken, Injector, Input, NgModule, NgModuleFactory, NgModuleFactoryLoader, NgModuleRef, NgProbeToken, Optional, Output, ReflectiveInjector, Renderer, SkipSelf, SystemJsNgModuleLoader, Version, ViewContainerRef, isDevMode, ɵisObservable, ɵisPromise } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs/BehaviorSubject';\r\nimport { Subject } from 'rxjs/Subject';\r\nimport { from } from 'rxjs/observable/from';\r\nimport { of } from 'rxjs/observable/of';\r\nimport { concatMap } from 'rxjs/operator/concatMap';\r\nimport { every } from 'rxjs/operator/every';\r\nimport { first } from 'rxjs/operator/first';\r\nimport { map } from 'rxjs/operator/map';\r\nimport { mergeMap } from 'rxjs/operator/mergeMap';\r\nimport { reduce } from 'rxjs/operator/reduce';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport { _catch } from 'rxjs/operator/catch';\r\nimport { concatAll } from 'rxjs/operator/concatAll';\r\nimport { EmptyError } from 'rxjs/util/EmptyError';\r\nimport { fromPromise } from 'rxjs/observable/fromPromise';\r\nimport { last } from 'rxjs/operator/last';\r\nimport { mergeAll } from 'rxjs/operator/mergeAll';\r\nimport { ɵgetDOM } from '@angular/platform-browser';\r\nimport { filter } from 'rxjs/operator/filter';\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Represents an event triggered when a navigation starts.\r\n *\r\n * \\@stable\r\n */\r\nvar NavigationStart = (function () {\r\n    /**\r\n     * @param {?} id\r\n     * @param {?} url\r\n     */\r\n    function NavigationStart(id, url) {\r\n        this.id = id;\r\n        this.url = url;\r\n    }\r\n    /**\r\n     * \\@docsNotRequired\r\n     * @return {?}\r\n     */\r\n    NavigationStart.prototype.toString = function () { return \"NavigationStart(id: \" + this.id + \", url: '\" + this.url + \"')\"; };\r\n    return NavigationStart;\r\n}());\r\n/**\r\n * \\@whatItDoes Represents an event triggered when a navigation ends successfully.\r\n *\r\n * \\@stable\r\n */\r\nvar NavigationEnd = (function () {\r\n    /**\r\n     * @param {?} id\r\n     * @param {?} url\r\n     * @param {?} urlAfterRedirects\r\n     */\r\n    function NavigationEnd(id, url, urlAfterRedirects) {\r\n        this.id = id;\r\n        this.url = url;\r\n        this.urlAfterRedirects = urlAfterRedirects;\r\n    }\r\n    /**\r\n     * \\@docsNotRequired\r\n     * @return {?}\r\n     */\r\n    NavigationEnd.prototype.toString = function () {\r\n        return \"NavigationEnd(id: \" + this.id + \", url: '\" + this.url + \"', urlAfterRedirects: '\" + this.urlAfterRedirects + \"')\";\r\n    };\r\n    return NavigationEnd;\r\n}());\r\n/**\r\n * \\@whatItDoes Represents an event triggered when a navigation is canceled.\r\n *\r\n * \\@stable\r\n */\r\nvar NavigationCancel = (function () {\r\n    /**\r\n     * @param {?} id\r\n     * @param {?} url\r\n     * @param {?} reason\r\n     */\r\n    function NavigationCancel(id, url, reason) {\r\n        this.id = id;\r\n        this.url = url;\r\n        this.reason = reason;\r\n    }\r\n    /**\r\n     * \\@docsNotRequired\r\n     * @return {?}\r\n     */\r\n    NavigationCancel.prototype.toString = function () { return \"NavigationCancel(id: \" + this.id + \", url: '\" + this.url + \"')\"; };\r\n    return NavigationCancel;\r\n}());\r\n/**\r\n * \\@whatItDoes Represents an event triggered when a navigation fails due to an unexpected error.\r\n *\r\n * \\@stable\r\n */\r\nvar NavigationError = (function () {\r\n    /**\r\n     * @param {?} id\r\n     * @param {?} url\r\n     * @param {?} error\r\n     */\r\n    function NavigationError(id, url, error) {\r\n        this.id = id;\r\n        this.url = url;\r\n        this.error = error;\r\n    }\r\n    /**\r\n     * \\@docsNotRequired\r\n     * @return {?}\r\n     */\r\n    NavigationError.prototype.toString = function () {\r\n        return \"NavigationError(id: \" + this.id + \", url: '\" + this.url + \"', error: \" + this.error + \")\";\r\n    };\r\n    return NavigationError;\r\n}());\r\n/**\r\n * \\@whatItDoes Represents an event triggered when routes are recognized.\r\n *\r\n * \\@stable\r\n */\r\nvar RoutesRecognized = (function () {\r\n    /**\r\n     * @param {?} id\r\n     * @param {?} url\r\n     * @param {?} urlAfterRedirects\r\n     * @param {?} state\r\n     */\r\n    function RoutesRecognized(id, url, urlAfterRedirects, state) {\r\n        this.id = id;\r\n        this.url = url;\r\n        this.urlAfterRedirects = urlAfterRedirects;\r\n        this.state = state;\r\n    }\r\n    /**\r\n     * \\@docsNotRequired\r\n     * @return {?}\r\n     */\r\n    RoutesRecognized.prototype.toString = function () {\r\n        return \"RoutesRecognized(id: \" + this.id + \", url: '\" + this.url + \"', urlAfterRedirects: '\" + this.urlAfterRedirects + \"', state: \" + this.state + \")\";\r\n    };\r\n    return RoutesRecognized;\r\n}());\r\n/**\r\n * \\@whatItDoes Represents an event triggered before lazy loading a route config.\r\n *\r\n * \\@experimental\r\n */\r\nvar RouteConfigLoadStart = (function () {\r\n    /**\r\n     * @param {?} route\r\n     */\r\n    function RouteConfigLoadStart(route) {\r\n        this.route = route;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouteConfigLoadStart.prototype.toString = function () { return \"RouteConfigLoadStart(path: \" + this.route.path + \")\"; };\r\n    return RouteConfigLoadStart;\r\n}());\r\n/**\r\n * \\@whatItDoes Represents an event triggered when a route has been lazy loaded.\r\n *\r\n * \\@experimental\r\n */\r\nvar RouteConfigLoadEnd = (function () {\r\n    /**\r\n     * @param {?} route\r\n     */\r\n    function RouteConfigLoadEnd(route) {\r\n        this.route = route;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouteConfigLoadEnd.prototype.toString = function () { return \"RouteConfigLoadEnd(path: \" + this.route.path + \")\"; };\r\n    return RouteConfigLoadEnd;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Name of the primary outlet.\r\n *\r\n * \\@stable\r\n */\r\nvar PRIMARY_OUTLET = 'primary';\r\nvar ParamsAsMap = (function () {\r\n    /**\r\n     * @param {?} params\r\n     */\r\n    function ParamsAsMap(params) {\r\n        this.params = params || {};\r\n    }\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ParamsAsMap.prototype.has = function (name) { return this.params.hasOwnProperty(name); };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ParamsAsMap.prototype.get = function (name) {\r\n        if (this.has(name)) {\r\n            var /** @type {?} */ v = this.params[name];\r\n            return Array.isArray(v) ? v[0] : v;\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ParamsAsMap.prototype.getAll = function (name) {\r\n        if (this.has(name)) {\r\n            var /** @type {?} */ v = this.params[name];\r\n            return Array.isArray(v) ? v : [v];\r\n        }\r\n        return [];\r\n    };\r\n    Object.defineProperty(ParamsAsMap.prototype, \"keys\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return Object.keys(this.params); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return ParamsAsMap;\r\n}());\r\n/**\r\n * Convert a {\\@link Params} instance to a {\\@link ParamMap}.\r\n *\r\n * \\@stable\r\n * @param {?} params\r\n * @return {?}\r\n */\r\nfunction convertToParamMap(params) {\r\n    return new ParamsAsMap(params);\r\n}\r\nvar NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';\r\n/**\r\n * @param {?} message\r\n * @return {?}\r\n */\r\nfunction navigationCancelingError(message) {\r\n    var /** @type {?} */ error = Error('NavigationCancelingError: ' + message);\r\n    ((error))[NAVIGATION_CANCELING_ERROR] = true;\r\n    return error;\r\n}\r\n/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\nfunction isNavigationCancelingError(error) {\r\n    return ((error))[NAVIGATION_CANCELING_ERROR];\r\n}\r\n/**\r\n * @param {?} segments\r\n * @param {?} segmentGroup\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction defaultUrlMatcher(segments, segmentGroup, route) {\r\n    var /** @type {?} */ parts = ((route.path)).split('/');\r\n    if (parts.length > segments.length) {\r\n        // The actual URL is shorter than the config, no match\r\n        return null;\r\n    }\r\n    if (route.pathMatch === 'full' &&\r\n        (segmentGroup.hasChildren() || parts.length < segments.length)) {\r\n        // The config is longer than the actual URL but we are looking for a full match, return null\r\n        return null;\r\n    }\r\n    var /** @type {?} */ posParams = {};\r\n    // Check each config part against the actual URL\r\n    for (var /** @type {?} */ index = 0; index < parts.length; index++) {\r\n        var /** @type {?} */ part = parts[index];\r\n        var /** @type {?} */ segment = segments[index];\r\n        var /** @type {?} */ isParameter = part.startsWith(':');\r\n        if (isParameter) {\r\n            posParams[part.substring(1)] = segment;\r\n        }\r\n        else if (part !== segment.path) {\r\n            // The actual URL part does not match the config, no match\r\n            return null;\r\n        }\r\n    }\r\n    return { consumed: segments.slice(0, parts.length), posParams: posParams };\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar LoadedRouterConfig = (function () {\r\n    /**\r\n     * @param {?} routes\r\n     * @param {?} module\r\n     */\r\n    function LoadedRouterConfig(routes, module) {\r\n        this.routes = routes;\r\n        this.module = module;\r\n    }\r\n    return LoadedRouterConfig;\r\n}());\r\n/**\r\n * @param {?} config\r\n * @param {?=} parentPath\r\n * @return {?}\r\n */\r\nfunction validateConfig(config, parentPath) {\r\n    if (parentPath === void 0) { parentPath = ''; }\r\n    // forEach doesn't iterate undefined values\r\n    for (var /** @type {?} */ i = 0; i < config.length; i++) {\r\n        var /** @type {?} */ route = config[i];\r\n        var /** @type {?} */ fullPath = getFullPath(parentPath, route);\r\n        validateNode(route, fullPath);\r\n    }\r\n}\r\n/**\r\n * @param {?} route\r\n * @param {?} fullPath\r\n * @return {?}\r\n */\r\nfunction validateNode(route, fullPath) {\r\n    if (!route) {\r\n        throw new Error(\"\\n      Invalid configuration of route '\" + fullPath + \"': Encountered undefined route.\\n      The reason might be an extra comma.\\n\\n      Example:\\n      const routes: Routes = [\\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\\n        { path: 'detail/:id', component: HeroDetailComponent }\\n      ];\\n    \");\r\n    }\r\n    if (Array.isArray(route)) {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"': Array cannot be specified\");\r\n    }\r\n    if (!route.component && (route.outlet && route.outlet !== PRIMARY_OUTLET)) {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"': a componentless route cannot have a named outlet set\");\r\n    }\r\n    if (route.redirectTo && route.children) {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"': redirectTo and children cannot be used together\");\r\n    }\r\n    if (route.redirectTo && route.loadChildren) {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"': redirectTo and loadChildren cannot be used together\");\r\n    }\r\n    if (route.children && route.loadChildren) {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"': children and loadChildren cannot be used together\");\r\n    }\r\n    if (route.redirectTo && route.component) {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"': redirectTo and component cannot be used together\");\r\n    }\r\n    if (route.path && route.matcher) {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"': path and matcher cannot be used together\");\r\n    }\r\n    if (route.redirectTo === void 0 && !route.component && !route.children && !route.loadChildren) {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"'. One of the following must be provided: component, redirectTo, children or loadChildren\");\r\n    }\r\n    if (route.path === void 0 && route.matcher === void 0) {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"': routes must have either a path or a matcher specified\");\r\n    }\r\n    if (typeof route.path === 'string' && route.path.charAt(0) === '/') {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"': path cannot start with a slash\");\r\n    }\r\n    if (route.path === '' && route.redirectTo !== void 0 && route.pathMatch === void 0) {\r\n        var /** @type {?} */ exp = \"The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.\";\r\n        throw new Error(\"Invalid configuration of route '{path: \\\"\" + fullPath + \"\\\", redirectTo: \\\"\" + route.redirectTo + \"\\\"}': please provide 'pathMatch'. \" + exp);\r\n    }\r\n    if (route.pathMatch !== void 0 && route.pathMatch !== 'full' && route.pathMatch !== 'prefix') {\r\n        throw new Error(\"Invalid configuration of route '\" + fullPath + \"': pathMatch can only be set to 'prefix' or 'full'\");\r\n    }\r\n    if (route.children) {\r\n        validateConfig(route.children, fullPath);\r\n    }\r\n}\r\n/**\r\n * @param {?} parentPath\r\n * @param {?} currentRoute\r\n * @return {?}\r\n */\r\nfunction getFullPath(parentPath, currentRoute) {\r\n    if (!currentRoute) {\r\n        return parentPath;\r\n    }\r\n    if (!parentPath && !currentRoute.path) {\r\n        return '';\r\n    }\r\n    else if (parentPath && !currentRoute.path) {\r\n        return parentPath + \"/\";\r\n    }\r\n    else if (!parentPath && currentRoute.path) {\r\n        return currentRoute.path;\r\n    }\r\n    else {\r\n        return parentPath + \"/\" + currentRoute.path;\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} a\r\n * @param {?} b\r\n * @return {?}\r\n */\r\nfunction shallowEqualArrays(a, b) {\r\n    if (a.length !== b.length)\r\n        return false;\r\n    for (var /** @type {?} */ i = 0; i < a.length; ++i) {\r\n        if (!shallowEqual(a[i], b[i]))\r\n            return false;\r\n    }\r\n    return true;\r\n}\r\n/**\r\n * @param {?} a\r\n * @param {?} b\r\n * @return {?}\r\n */\r\nfunction shallowEqual(a, b) {\r\n    var /** @type {?} */ k1 = Object.keys(a);\r\n    var /** @type {?} */ k2 = Object.keys(b);\r\n    if (k1.length != k2.length) {\r\n        return false;\r\n    }\r\n    var /** @type {?} */ key;\r\n    for (var /** @type {?} */ i = 0; i < k1.length; i++) {\r\n        key = k1[i];\r\n        if (a[key] !== b[key]) {\r\n            return false;\r\n        }\r\n    }\r\n    return true;\r\n}\r\n/**\r\n * @template T\r\n * @param {?} arr\r\n * @return {?}\r\n */\r\nfunction flatten(arr) {\r\n    return Array.prototype.concat.apply([], arr);\r\n}\r\n/**\r\n * @template T\r\n * @param {?} a\r\n * @return {?}\r\n */\r\nfunction last$1(a) {\r\n    return a.length > 0 ? a[a.length - 1] : null;\r\n}\r\n/**\r\n * @param {?} bools\r\n * @return {?}\r\n */\r\n/**\r\n * @template K, V\r\n * @param {?} map\r\n * @param {?} callback\r\n * @return {?}\r\n */\r\nfunction forEach(map$$1, callback) {\r\n    for (var /** @type {?} */ prop in map$$1) {\r\n        if (map$$1.hasOwnProperty(prop)) {\r\n            callback(map$$1[prop], prop);\r\n        }\r\n    }\r\n}\r\n/**\r\n * @template A, B\r\n * @param {?} obj\r\n * @param {?} fn\r\n * @return {?}\r\n */\r\nfunction waitForMap(obj, fn) {\r\n    if (Object.keys(obj).length === 0) {\r\n        return of({});\r\n    }\r\n    var /** @type {?} */ waitHead = [];\r\n    var /** @type {?} */ waitTail = [];\r\n    var /** @type {?} */ res = {};\r\n    forEach(obj, function (a, k) {\r\n        var /** @type {?} */ mapped = map.call(fn(k, a), function (r) { return res[k] = r; });\r\n        if (k === PRIMARY_OUTLET) {\r\n            waitHead.push(mapped);\r\n        }\r\n        else {\r\n            waitTail.push(mapped);\r\n        }\r\n    });\r\n    var /** @type {?} */ concat$ = concatAll.call(of.apply(void 0, waitHead.concat(waitTail)));\r\n    var /** @type {?} */ last$ = last.call(concat$);\r\n    return map.call(last$, function () { return res; });\r\n}\r\n/**\r\n * @param {?} observables\r\n * @return {?}\r\n */\r\nfunction andObservables(observables) {\r\n    var /** @type {?} */ merged$ = mergeAll.call(observables);\r\n    return every.call(merged$, function (result) { return result === true; });\r\n}\r\n/**\r\n * @template T\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction wrapIntoObservable(value) {\r\n    if (ɵisObservable(value)) {\r\n        return value;\r\n    }\r\n    if (ɵisPromise(value)) {\r\n        // Use `Promise.resolve()` to wrap promise-like instances.\r\n        // Required ie when a Resolver returns a AngularJS `$q` promise to correctly trigger the\r\n        // change detection.\r\n        return fromPromise(Promise.resolve(value));\r\n    }\r\n    return of(value);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @return {?}\r\n */\r\nfunction createEmptyUrlTree() {\r\n    return new UrlTree(new UrlSegmentGroup([], {}), {}, null);\r\n}\r\n/**\r\n * @param {?} container\r\n * @param {?} containee\r\n * @param {?} exact\r\n * @return {?}\r\n */\r\nfunction containsTree(container, containee, exact) {\r\n    if (exact) {\r\n        return equalQueryParams(container.queryParams, containee.queryParams) &&\r\n            equalSegmentGroups(container.root, containee.root);\r\n    }\r\n    return containsQueryParams(container.queryParams, containee.queryParams) &&\r\n        containsSegmentGroup(container.root, containee.root);\r\n}\r\n/**\r\n * @param {?} container\r\n * @param {?} containee\r\n * @return {?}\r\n */\r\nfunction equalQueryParams(container, containee) {\r\n    return shallowEqual(container, containee);\r\n}\r\n/**\r\n * @param {?} container\r\n * @param {?} containee\r\n * @return {?}\r\n */\r\nfunction equalSegmentGroups(container, containee) {\r\n    if (!equalPath(container.segments, containee.segments))\r\n        return false;\r\n    if (container.numberOfChildren !== containee.numberOfChildren)\r\n        return false;\r\n    for (var /** @type {?} */ c in containee.children) {\r\n        if (!container.children[c])\r\n            return false;\r\n        if (!equalSegmentGroups(container.children[c], containee.children[c]))\r\n            return false;\r\n    }\r\n    return true;\r\n}\r\n/**\r\n * @param {?} container\r\n * @param {?} containee\r\n * @return {?}\r\n */\r\nfunction containsQueryParams(container, containee) {\r\n    return Object.keys(containee).length <= Object.keys(container).length &&\r\n        Object.keys(containee).every(function (key) { return containee[key] === container[key]; });\r\n}\r\n/**\r\n * @param {?} container\r\n * @param {?} containee\r\n * @return {?}\r\n */\r\nfunction containsSegmentGroup(container, containee) {\r\n    return containsSegmentGroupHelper(container, containee, containee.segments);\r\n}\r\n/**\r\n * @param {?} container\r\n * @param {?} containee\r\n * @param {?} containeePaths\r\n * @return {?}\r\n */\r\nfunction containsSegmentGroupHelper(container, containee, containeePaths) {\r\n    if (container.segments.length > containeePaths.length) {\r\n        var /** @type {?} */ current = container.segments.slice(0, containeePaths.length);\r\n        if (!equalPath(current, containeePaths))\r\n            return false;\r\n        if (containee.hasChildren())\r\n            return false;\r\n        return true;\r\n    }\r\n    else if (container.segments.length === containeePaths.length) {\r\n        if (!equalPath(container.segments, containeePaths))\r\n            return false;\r\n        for (var /** @type {?} */ c in containee.children) {\r\n            if (!container.children[c])\r\n                return false;\r\n            if (!containsSegmentGroup(container.children[c], containee.children[c]))\r\n                return false;\r\n        }\r\n        return true;\r\n    }\r\n    else {\r\n        var /** @type {?} */ current = containeePaths.slice(0, container.segments.length);\r\n        var /** @type {?} */ next = containeePaths.slice(container.segments.length);\r\n        if (!equalPath(container.segments, current))\r\n            return false;\r\n        if (!container.children[PRIMARY_OUTLET])\r\n            return false;\r\n        return containsSegmentGroupHelper(container.children[PRIMARY_OUTLET], containee, next);\r\n    }\r\n}\r\n/**\r\n * \\@whatItDoes Represents the parsed URL.\r\n *\r\n * \\@howToUse\r\n *\r\n * ```\r\n * \\@Component({templateUrl:'template.html'})\r\n * class MyComponent {\r\n *   constructor(router: Router) {\r\n *     const tree: UrlTree =\r\n *       router.parseUrl('/team/33/(user/victor//support:help)?debug=true#fragment');\r\n *     const f = tree.fragment; // return 'fragment'\r\n *     const q = tree.queryParams; // returns {debug: 'true'}\r\n *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];\r\n *     const s: UrlSegment[] = g.segments; // returns 2 segments 'team' and '33'\r\n *     g.children[PRIMARY_OUTLET].segments; // returns 2 segments 'user' and 'victor'\r\n *     g.children['support'].segments; // return 1 segment 'help'\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * \\@description\r\n *\r\n * Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a\r\n * serialized tree.\r\n * UrlTree is a data structure that provides a lot of affordances in dealing with URLs\r\n *\r\n * \\@stable\r\n */\r\nvar UrlTree = (function () {\r\n    /**\r\n     * \\@internal\r\n     * @param {?} root\r\n     * @param {?} queryParams\r\n     * @param {?} fragment\r\n     */\r\n    function UrlTree(root, queryParams, fragment) {\r\n        this.root = root;\r\n        this.queryParams = queryParams;\r\n        this.fragment = fragment;\r\n    }\r\n    Object.defineProperty(UrlTree.prototype, \"queryParamMap\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            if (!this._queryParamMap) {\r\n                this._queryParamMap = convertToParamMap(this.queryParams);\r\n            }\r\n            return this._queryParamMap;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * \\@docsNotRequired\r\n     * @return {?}\r\n     */\r\n    UrlTree.prototype.toString = function () { return DEFAULT_SERIALIZER.serialize(this); };\r\n    return UrlTree;\r\n}());\r\n/**\r\n * \\@whatItDoes Represents the parsed URL segment group.\r\n *\r\n * See {\\@link UrlTree} for more information.\r\n *\r\n * \\@stable\r\n */\r\nvar UrlSegmentGroup = (function () {\r\n    /**\r\n     * @param {?} segments\r\n     * @param {?} children\r\n     */\r\n    function UrlSegmentGroup(segments, children) {\r\n        var _this = this;\r\n        this.segments = segments;\r\n        this.children = children;\r\n        /** The parent node in the url tree */\r\n        this.parent = null;\r\n        forEach(children, function (v, k) { return v.parent = _this; });\r\n    }\r\n    /**\r\n     * Wether the segment has child segments\r\n     * @return {?}\r\n     */\r\n    UrlSegmentGroup.prototype.hasChildren = function () { return this.numberOfChildren > 0; };\r\n    Object.defineProperty(UrlSegmentGroup.prototype, \"numberOfChildren\", {\r\n        /**\r\n         * Number of child segments\r\n         * @return {?}\r\n         */\r\n        get: function () { return Object.keys(this.children).length; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * \\@docsNotRequired\r\n     * @return {?}\r\n     */\r\n    UrlSegmentGroup.prototype.toString = function () { return serializePaths(this); };\r\n    return UrlSegmentGroup;\r\n}());\r\n/**\r\n * \\@whatItDoes Represents a single URL segment.\r\n *\r\n * \\@howToUse\r\n *\r\n * ```\r\n * \\@Component({templateUrl:'template.html'})\r\n * class MyComponent {\r\n *   constructor(router: Router) {\r\n *     const tree: UrlTree = router.parseUrl('/team;id=33');\r\n *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];\r\n *     const s: UrlSegment[] = g.segments;\r\n *     s[0].path; // returns 'team'\r\n *     s[0].parameters; // returns {id: 33}\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * \\@description\r\n *\r\n * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix\r\n * parameters associated with the segment.\r\n *\r\n * \\@stable\r\n */\r\nvar UrlSegment = (function () {\r\n    /**\r\n     * @param {?} path\r\n     * @param {?} parameters\r\n     */\r\n    function UrlSegment(path, parameters) {\r\n        this.path = path;\r\n        this.parameters = parameters;\r\n    }\r\n    Object.defineProperty(UrlSegment.prototype, \"parameterMap\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            if (!this._parameterMap) {\r\n                this._parameterMap = convertToParamMap(this.parameters);\r\n            }\r\n            return this._parameterMap;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * \\@docsNotRequired\r\n     * @return {?}\r\n     */\r\n    UrlSegment.prototype.toString = function () { return serializePath(this); };\r\n    return UrlSegment;\r\n}());\r\n/**\r\n * @param {?} as\r\n * @param {?} bs\r\n * @return {?}\r\n */\r\nfunction equalSegments(as, bs) {\r\n    return equalPath(as, bs) && as.every(function (a, i) { return shallowEqual(a.parameters, bs[i].parameters); });\r\n}\r\n/**\r\n * @param {?} as\r\n * @param {?} bs\r\n * @return {?}\r\n */\r\nfunction equalPath(as, bs) {\r\n    if (as.length !== bs.length)\r\n        return false;\r\n    return as.every(function (a, i) { return a.path === bs[i].path; });\r\n}\r\n/**\r\n * @template T\r\n * @param {?} segment\r\n * @param {?} fn\r\n * @return {?}\r\n */\r\nfunction mapChildrenIntoArray(segment, fn) {\r\n    var /** @type {?} */ res = [];\r\n    forEach(segment.children, function (child, childOutlet) {\r\n        if (childOutlet === PRIMARY_OUTLET) {\r\n            res = res.concat(fn(child, childOutlet));\r\n        }\r\n    });\r\n    forEach(segment.children, function (child, childOutlet) {\r\n        if (childOutlet !== PRIMARY_OUTLET) {\r\n            res = res.concat(fn(child, childOutlet));\r\n        }\r\n    });\r\n    return res;\r\n}\r\n/**\r\n * \\@whatItDoes Serializes and deserializes a URL string into a URL tree.\r\n *\r\n * \\@description The url serialization strategy is customizable. You can\r\n * make all URLs case insensitive by providing a custom UrlSerializer.\r\n *\r\n * See {\\@link DefaultUrlSerializer} for an example of a URL serializer.\r\n *\r\n * \\@stable\r\n * @abstract\r\n */\r\nvar UrlSerializer = (function () {\r\n    function UrlSerializer() {\r\n    }\r\n    /**\r\n     * Parse a url into a {\\@link UrlTree}\r\n     * @abstract\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    UrlSerializer.prototype.parse = function (url) { };\r\n    /**\r\n     * Converts a {\\@link UrlTree} into a url\r\n     * @abstract\r\n     * @param {?} tree\r\n     * @return {?}\r\n     */\r\n    UrlSerializer.prototype.serialize = function (tree) { };\r\n    return UrlSerializer;\r\n}());\r\n/**\r\n * \\@whatItDoes A default implementation of the {\\@link UrlSerializer}.\r\n *\r\n * \\@description\r\n *\r\n * Example URLs:\r\n *\r\n * ```\r\n * /inbox/33(popup:compose)\r\n * /inbox/33;open=true/messages/44\r\n * ```\r\n *\r\n * DefaultUrlSerializer uses parentheses to serialize secondary segments (e.g., popup:compose), the\r\n * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to\r\n * specify route specific parameters.\r\n *\r\n * \\@stable\r\n */\r\nvar DefaultUrlSerializer = (function () {\r\n    function DefaultUrlSerializer() {\r\n    }\r\n    /**\r\n     * Parses a url into a {\\@link UrlTree}\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    DefaultUrlSerializer.prototype.parse = function (url) {\r\n        var /** @type {?} */ p = new UrlParser(url);\r\n        return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());\r\n    };\r\n    /**\r\n     * Converts a {\\@link UrlTree} into a url\r\n     * @param {?} tree\r\n     * @return {?}\r\n     */\r\n    DefaultUrlSerializer.prototype.serialize = function (tree) {\r\n        var /** @type {?} */ segment = \"/\" + serializeSegment(tree.root, true);\r\n        var /** @type {?} */ query = serializeQueryParams(tree.queryParams);\r\n        var /** @type {?} */ fragment = typeof tree.fragment === \"string\" ? \"#\" + encodeURI(/** @type {?} */ ((tree.fragment))) : '';\r\n        return \"\" + segment + query + fragment;\r\n    };\r\n    return DefaultUrlSerializer;\r\n}());\r\nvar DEFAULT_SERIALIZER = new DefaultUrlSerializer();\r\n/**\r\n * @param {?} segment\r\n * @return {?}\r\n */\r\nfunction serializePaths(segment) {\r\n    return segment.segments.map(function (p) { return serializePath(p); }).join('/');\r\n}\r\n/**\r\n * @param {?} segment\r\n * @param {?} root\r\n * @return {?}\r\n */\r\nfunction serializeSegment(segment, root) {\r\n    if (!segment.hasChildren()) {\r\n        return serializePaths(segment);\r\n    }\r\n    if (root) {\r\n        var /** @type {?} */ primary = segment.children[PRIMARY_OUTLET] ?\r\n            serializeSegment(segment.children[PRIMARY_OUTLET], false) :\r\n            '';\r\n        var /** @type {?} */ children_1 = [];\r\n        forEach(segment.children, function (v, k) {\r\n            if (k !== PRIMARY_OUTLET) {\r\n                children_1.push(k + \":\" + serializeSegment(v, false));\r\n            }\r\n        });\r\n        return children_1.length > 0 ? primary + \"(\" + children_1.join('//') + \")\" : primary;\r\n    }\r\n    else {\r\n        var /** @type {?} */ children = mapChildrenIntoArray(segment, function (v, k) {\r\n            if (k === PRIMARY_OUTLET) {\r\n                return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];\r\n            }\r\n            return [k + \":\" + serializeSegment(v, false)];\r\n        });\r\n        return serializePaths(segment) + \"/(\" + children.join('//') + \")\";\r\n    }\r\n}\r\n/**\r\n * @param {?} s\r\n * @return {?}\r\n */\r\nfunction encode(s) {\r\n    return encodeURIComponent(s);\r\n}\r\n/**\r\n * @param {?} s\r\n * @return {?}\r\n */\r\nfunction decode(s) {\r\n    return decodeURIComponent(s);\r\n}\r\n/**\r\n * @param {?} path\r\n * @return {?}\r\n */\r\nfunction serializePath(path) {\r\n    return \"\" + encode(path.path) + serializeParams(path.parameters);\r\n}\r\n/**\r\n * @param {?} params\r\n * @return {?}\r\n */\r\nfunction serializeParams(params) {\r\n    return Object.keys(params).map(function (key) { return \";\" + encode(key) + \"=\" + encode(params[key]); }).join('');\r\n}\r\n/**\r\n * @param {?} params\r\n * @return {?}\r\n */\r\nfunction serializeQueryParams(params) {\r\n    var /** @type {?} */ strParams = Object.keys(params).map(function (name) {\r\n        var /** @type {?} */ value = params[name];\r\n        return Array.isArray(value) ? value.map(function (v) { return encode(name) + \"=\" + encode(v); }).join('&') :\r\n            encode(name) + \"=\" + encode(value);\r\n    });\r\n    return strParams.length ? \"?\" + strParams.join(\"&\") : '';\r\n}\r\nvar SEGMENT_RE = /^[^\\/()?;=&#]+/;\r\n/**\r\n * @param {?} str\r\n * @return {?}\r\n */\r\nfunction matchSegments(str) {\r\n    var /** @type {?} */ match = str.match(SEGMENT_RE);\r\n    return match ? match[0] : '';\r\n}\r\nvar QUERY_PARAM_RE = /^[^=?&#]+/;\r\n/**\r\n * @param {?} str\r\n * @return {?}\r\n */\r\nfunction matchQueryParams(str) {\r\n    var /** @type {?} */ match = str.match(QUERY_PARAM_RE);\r\n    return match ? match[0] : '';\r\n}\r\nvar QUERY_PARAM_VALUE_RE = /^[^?&#]+/;\r\n/**\r\n * @param {?} str\r\n * @return {?}\r\n */\r\nfunction matchUrlQueryParamValue(str) {\r\n    var /** @type {?} */ match = str.match(QUERY_PARAM_VALUE_RE);\r\n    return match ? match[0] : '';\r\n}\r\nvar UrlParser = (function () {\r\n    /**\r\n     * @param {?} url\r\n     */\r\n    function UrlParser(url) {\r\n        this.url = url;\r\n        this.remaining = url;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.parseRootSegment = function () {\r\n        this.consumeOptional('/');\r\n        if (this.remaining === '' || this.peekStartsWith('?') || this.peekStartsWith('#')) {\r\n            return new UrlSegmentGroup([], {});\r\n        }\r\n        // The root segment group never has segments\r\n        return new UrlSegmentGroup([], this.parseChildren());\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.parseQueryParams = function () {\r\n        var /** @type {?} */ params = {};\r\n        if (this.consumeOptional('?')) {\r\n            do {\r\n                this.parseQueryParam(params);\r\n            } while (this.consumeOptional('&'));\r\n        }\r\n        return params;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.parseFragment = function () {\r\n        return this.consumeOptional('#') ? decodeURI(this.remaining) : null;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.parseChildren = function () {\r\n        if (this.remaining === '') {\r\n            return {};\r\n        }\r\n        this.consumeOptional('/');\r\n        var /** @type {?} */ segments = [];\r\n        if (!this.peekStartsWith('(')) {\r\n            segments.push(this.parseSegment());\r\n        }\r\n        while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {\r\n            this.capture('/');\r\n            segments.push(this.parseSegment());\r\n        }\r\n        var /** @type {?} */ children = {};\r\n        if (this.peekStartsWith('/(')) {\r\n            this.capture('/');\r\n            children = this.parseParens(true);\r\n        }\r\n        var /** @type {?} */ res = {};\r\n        if (this.peekStartsWith('(')) {\r\n            res = this.parseParens(false);\r\n        }\r\n        if (segments.length > 0 || Object.keys(children).length > 0) {\r\n            res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);\r\n        }\r\n        return res;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.parseSegment = function () {\r\n        var /** @type {?} */ path = matchSegments(this.remaining);\r\n        if (path === '' && this.peekStartsWith(';')) {\r\n            throw new Error(\"Empty path url segment cannot have parameters: '\" + this.remaining + \"'.\");\r\n        }\r\n        this.capture(path);\r\n        return new UrlSegment(decode(path), this.parseMatrixParams());\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.parseMatrixParams = function () {\r\n        var /** @type {?} */ params = {};\r\n        while (this.consumeOptional(';')) {\r\n            this.parseParam(params);\r\n        }\r\n        return params;\r\n    };\r\n    /**\r\n     * @param {?} params\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.parseParam = function (params) {\r\n        var /** @type {?} */ key = matchSegments(this.remaining);\r\n        if (!key) {\r\n            return;\r\n        }\r\n        this.capture(key);\r\n        var /** @type {?} */ value = '';\r\n        if (this.consumeOptional('=')) {\r\n            var /** @type {?} */ valueMatch = matchSegments(this.remaining);\r\n            if (valueMatch) {\r\n                value = valueMatch;\r\n                this.capture(value);\r\n            }\r\n        }\r\n        params[decode(key)] = decode(value);\r\n    };\r\n    /**\r\n     * @param {?} params\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.parseQueryParam = function (params) {\r\n        var /** @type {?} */ key = matchQueryParams(this.remaining);\r\n        if (!key) {\r\n            return;\r\n        }\r\n        this.capture(key);\r\n        var /** @type {?} */ value = '';\r\n        if (this.consumeOptional('=')) {\r\n            var /** @type {?} */ valueMatch = matchUrlQueryParamValue(this.remaining);\r\n            if (valueMatch) {\r\n                value = valueMatch;\r\n                this.capture(value);\r\n            }\r\n        }\r\n        var /** @type {?} */ decodedKey = decode(key);\r\n        var /** @type {?} */ decodedVal = decode(value);\r\n        if (params.hasOwnProperty(decodedKey)) {\r\n            // Append to existing values\r\n            var /** @type {?} */ currentVal = params[decodedKey];\r\n            if (!Array.isArray(currentVal)) {\r\n                currentVal = [currentVal];\r\n                params[decodedKey] = currentVal;\r\n            }\r\n            currentVal.push(decodedVal);\r\n        }\r\n        else {\r\n            // Create a new value\r\n            params[decodedKey] = decodedVal;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} allowPrimary\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.parseParens = function (allowPrimary) {\r\n        var /** @type {?} */ segments = {};\r\n        this.capture('(');\r\n        while (!this.consumeOptional(')') && this.remaining.length > 0) {\r\n            var /** @type {?} */ path = matchSegments(this.remaining);\r\n            var /** @type {?} */ next = this.remaining[path.length];\r\n            // if is is not one of these characters, then the segment was unescaped\r\n            // or the group was not closed\r\n            if (next !== '/' && next !== ')' && next !== ';') {\r\n                throw new Error(\"Cannot parse url '\" + this.url + \"'\");\r\n            }\r\n            var /** @type {?} */ outletName = ((undefined));\r\n            if (path.indexOf(':') > -1) {\r\n                outletName = path.substr(0, path.indexOf(':'));\r\n                this.capture(outletName);\r\n                this.capture(':');\r\n            }\r\n            else if (allowPrimary) {\r\n                outletName = PRIMARY_OUTLET;\r\n            }\r\n            var /** @type {?} */ children = this.parseChildren();\r\n            segments[outletName] = Object.keys(children).length === 1 ? children[PRIMARY_OUTLET] :\r\n                new UrlSegmentGroup([], children);\r\n            this.consumeOptional('//');\r\n        }\r\n        return segments;\r\n    };\r\n    /**\r\n     * @param {?} str\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.peekStartsWith = function (str) { return this.remaining.startsWith(str); };\r\n    /**\r\n     * @param {?} str\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.consumeOptional = function (str) {\r\n        if (this.peekStartsWith(str)) {\r\n            this.remaining = this.remaining.substring(str.length);\r\n            return true;\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * @param {?} str\r\n     * @return {?}\r\n     */\r\n    UrlParser.prototype.capture = function (str) {\r\n        if (!this.consumeOptional(str)) {\r\n            throw new Error(\"Expected \\\"\" + str + \"\\\".\");\r\n        }\r\n    };\r\n    return UrlParser;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar __assign$1 = (undefined && undefined.__assign) || Object.assign || function (t) {\r\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n        s = arguments[i];\r\n        for (var p in s)\r\n            if (Object.prototype.hasOwnProperty.call(s, p))\r\n                t[p] = s[p];\r\n    }\r\n    return t;\r\n};\r\nvar NoMatch = (function () {\r\n    /**\r\n     * @param {?=} segmentGroup\r\n     */\r\n    function NoMatch(segmentGroup) {\r\n        this.segmentGroup = segmentGroup || null;\r\n    }\r\n    return NoMatch;\r\n}());\r\nvar AbsoluteRedirect = (function () {\r\n    /**\r\n     * @param {?} urlTree\r\n     */\r\n    function AbsoluteRedirect(urlTree) {\r\n        this.urlTree = urlTree;\r\n    }\r\n    return AbsoluteRedirect;\r\n}());\r\n/**\r\n * @param {?} segmentGroup\r\n * @return {?}\r\n */\r\nfunction noMatch(segmentGroup) {\r\n    return new Observable(function (obs) { return obs.error(new NoMatch(segmentGroup)); });\r\n}\r\n/**\r\n * @param {?} newTree\r\n * @return {?}\r\n */\r\nfunction absoluteRedirect(newTree) {\r\n    return new Observable(function (obs) { return obs.error(new AbsoluteRedirect(newTree)); });\r\n}\r\n/**\r\n * @param {?} redirectTo\r\n * @return {?}\r\n */\r\nfunction namedOutletsRedirect(redirectTo) {\r\n    return new Observable(function (obs) { return obs.error(new Error(\"Only absolute redirects can have named outlets. redirectTo: '\" + redirectTo + \"'\")); });\r\n}\r\n/**\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction canLoadFails(route) {\r\n    return new Observable(function (obs) { return obs.error(navigationCancelingError(\"Cannot load children because the guard of the route \\\"path: '\" + route.path + \"'\\\" returned false\")); });\r\n}\r\n/**\r\n * Returns the `UrlTree` with the redirection applied.\r\n *\r\n * Lazy modules are loaded along the way.\r\n * @param {?} moduleInjector\r\n * @param {?} configLoader\r\n * @param {?} urlSerializer\r\n * @param {?} urlTree\r\n * @param {?} config\r\n * @return {?}\r\n */\r\nfunction applyRedirects(moduleInjector, configLoader, urlSerializer, urlTree, config) {\r\n    return new ApplyRedirects(moduleInjector, configLoader, urlSerializer, urlTree, config).apply();\r\n}\r\nvar ApplyRedirects = (function () {\r\n    /**\r\n     * @param {?} moduleInjector\r\n     * @param {?} configLoader\r\n     * @param {?} urlSerializer\r\n     * @param {?} urlTree\r\n     * @param {?} config\r\n     */\r\n    function ApplyRedirects(moduleInjector, configLoader, urlSerializer, urlTree, config) {\r\n        this.configLoader = configLoader;\r\n        this.urlSerializer = urlSerializer;\r\n        this.urlTree = urlTree;\r\n        this.config = config;\r\n        this.allowRedirects = true;\r\n        this.ngModule = moduleInjector.get(NgModuleRef);\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.apply = function () {\r\n        var _this = this;\r\n        var /** @type {?} */ expanded$ = this.expandSegmentGroup(this.ngModule, this.config, this.urlTree.root, PRIMARY_OUTLET);\r\n        var /** @type {?} */ urlTrees$ = map.call(expanded$, function (rootSegmentGroup) { return _this.createUrlTree(rootSegmentGroup, _this.urlTree.queryParams, /** @type {?} */ ((_this.urlTree.fragment))); });\r\n        return _catch.call(urlTrees$, function (e) {\r\n            if (e instanceof AbsoluteRedirect) {\r\n                // after an absolute redirect we do not apply any more redirects!\r\n                _this.allowRedirects = false;\r\n                // we need to run matching, so we can fetch all lazy-loaded modules\r\n                return _this.match(e.urlTree);\r\n            }\r\n            if (e instanceof NoMatch) {\r\n                throw _this.noMatchError(e);\r\n            }\r\n            throw e;\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} tree\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.match = function (tree) {\r\n        var _this = this;\r\n        var /** @type {?} */ expanded$ = this.expandSegmentGroup(this.ngModule, this.config, tree.root, PRIMARY_OUTLET);\r\n        var /** @type {?} */ mapped$ = map.call(expanded$, function (rootSegmentGroup) { return _this.createUrlTree(rootSegmentGroup, tree.queryParams, /** @type {?} */ ((tree.fragment))); });\r\n        return _catch.call(mapped$, function (e) {\r\n            if (e instanceof NoMatch) {\r\n                throw _this.noMatchError(e);\r\n            }\r\n            throw e;\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} e\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.noMatchError = function (e) {\r\n        return new Error(\"Cannot match any routes. URL Segment: '\" + e.segmentGroup + \"'\");\r\n    };\r\n    /**\r\n     * @param {?} rootCandidate\r\n     * @param {?} queryParams\r\n     * @param {?} fragment\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.createUrlTree = function (rootCandidate, queryParams, fragment) {\r\n        var /** @type {?} */ root = rootCandidate.segments.length > 0 ?\r\n            new UrlSegmentGroup([], (_a = {}, _a[PRIMARY_OUTLET] = rootCandidate, _a)) :\r\n            rootCandidate;\r\n        return new UrlTree(root, queryParams, fragment);\r\n        var _a;\r\n    };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} routes\r\n     * @param {?} segmentGroup\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.expandSegmentGroup = function (ngModule, routes, segmentGroup, outlet) {\r\n        if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\r\n            return map.call(this.expandChildren(ngModule, routes, segmentGroup), function (children) { return new UrlSegmentGroup([], children); });\r\n        }\r\n        return this.expandSegment(ngModule, segmentGroup, routes, segmentGroup.segments, outlet, true);\r\n    };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} routes\r\n     * @param {?} segmentGroup\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.expandChildren = function (ngModule, routes, segmentGroup) {\r\n        var _this = this;\r\n        return waitForMap(segmentGroup.children, function (childOutlet, child) { return _this.expandSegmentGroup(ngModule, routes, child, childOutlet); });\r\n    };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} segmentGroup\r\n     * @param {?} routes\r\n     * @param {?} segments\r\n     * @param {?} outlet\r\n     * @param {?} allowRedirects\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.expandSegment = function (ngModule, segmentGroup, routes, segments, outlet, allowRedirects) {\r\n        var _this = this;\r\n        var /** @type {?} */ routes$ = of.apply(void 0, routes);\r\n        var /** @type {?} */ processedRoutes$ = map.call(routes$, function (r) {\r\n            var /** @type {?} */ expanded$ = _this.expandSegmentAgainstRoute(ngModule, segmentGroup, routes, r, segments, outlet, allowRedirects);\r\n            return _catch.call(expanded$, function (e) {\r\n                if (e instanceof NoMatch) {\r\n                    return of(null);\r\n                }\r\n                throw e;\r\n            });\r\n        });\r\n        var /** @type {?} */ concattedProcessedRoutes$ = concatAll.call(processedRoutes$);\r\n        var /** @type {?} */ first$ = first.call(concattedProcessedRoutes$, function (s) { return !!s; });\r\n        return _catch.call(first$, function (e, _) {\r\n            if (e instanceof EmptyError) {\r\n                if (_this.noLeftoversInUrl(segmentGroup, segments, outlet)) {\r\n                    return of(new UrlSegmentGroup([], {}));\r\n                }\r\n                throw new NoMatch(segmentGroup);\r\n            }\r\n            throw e;\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} segmentGroup\r\n     * @param {?} segments\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.noLeftoversInUrl = function (segmentGroup, segments, outlet) {\r\n        return segments.length === 0 && !segmentGroup.children[outlet];\r\n    };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} segmentGroup\r\n     * @param {?} routes\r\n     * @param {?} route\r\n     * @param {?} paths\r\n     * @param {?} outlet\r\n     * @param {?} allowRedirects\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.expandSegmentAgainstRoute = function (ngModule, segmentGroup, routes, route, paths, outlet, allowRedirects) {\r\n        if (getOutlet$1(route) !== outlet) {\r\n            return noMatch(segmentGroup);\r\n        }\r\n        if (route.redirectTo === undefined) {\r\n            return this.matchSegmentAgainstRoute(ngModule, segmentGroup, route, paths);\r\n        }\r\n        if (allowRedirects && this.allowRedirects) {\r\n            return this.expandSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, paths, outlet);\r\n        }\r\n        return noMatch(segmentGroup);\r\n    };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} segmentGroup\r\n     * @param {?} routes\r\n     * @param {?} route\r\n     * @param {?} segments\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.expandSegmentAgainstRouteUsingRedirect = function (ngModule, segmentGroup, routes, route, segments, outlet) {\r\n        if (route.path === '**') {\r\n            return this.expandWildCardWithParamsAgainstRouteUsingRedirect(ngModule, routes, route, outlet);\r\n        }\r\n        return this.expandRegularSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet);\r\n    };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} routes\r\n     * @param {?} route\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect = function (ngModule, routes, route, outlet) {\r\n        var _this = this;\r\n        var /** @type {?} */ newTree = this.applyRedirectCommands([], /** @type {?} */ ((route.redirectTo)), {});\r\n        if (((route.redirectTo)).startsWith('/')) {\r\n            return absoluteRedirect(newTree);\r\n        }\r\n        return mergeMap.call(this.lineralizeSegments(route, newTree), function (newSegments) {\r\n            var /** @type {?} */ group = new UrlSegmentGroup(newSegments, {});\r\n            return _this.expandSegment(ngModule, group, routes, newSegments, outlet, false);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} segmentGroup\r\n     * @param {?} routes\r\n     * @param {?} route\r\n     * @param {?} segments\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.expandRegularSegmentAgainstRouteUsingRedirect = function (ngModule, segmentGroup, routes, route, segments, outlet) {\r\n        var _this = this;\r\n        var _a = match(segmentGroup, route, segments), matched = _a.matched, consumedSegments = _a.consumedSegments, lastChild = _a.lastChild, positionalParamSegments = _a.positionalParamSegments;\r\n        if (!matched)\r\n            return noMatch(segmentGroup);\r\n        var /** @type {?} */ newTree = this.applyRedirectCommands(consumedSegments, /** @type {?} */ ((route.redirectTo)), /** @type {?} */ (positionalParamSegments));\r\n        if (((route.redirectTo)).startsWith('/')) {\r\n            return absoluteRedirect(newTree);\r\n        }\r\n        return mergeMap.call(this.lineralizeSegments(route, newTree), function (newSegments) {\r\n            return _this.expandSegment(ngModule, segmentGroup, routes, newSegments.concat(segments.slice(lastChild)), outlet, false);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} rawSegmentGroup\r\n     * @param {?} route\r\n     * @param {?} segments\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.matchSegmentAgainstRoute = function (ngModule, rawSegmentGroup, route, segments) {\r\n        var _this = this;\r\n        if (route.path === '**') {\r\n            if (route.loadChildren) {\r\n                return map.call(this.configLoader.load(ngModule.injector, route), function (cfg) {\r\n                    route._loadedConfig = cfg;\r\n                    return new UrlSegmentGroup(segments, {});\r\n                });\r\n            }\r\n            return of(new UrlSegmentGroup(segments, {}));\r\n        }\r\n        var _a = match(rawSegmentGroup, route, segments), matched = _a.matched, consumedSegments = _a.consumedSegments, lastChild = _a.lastChild;\r\n        if (!matched)\r\n            return noMatch(rawSegmentGroup);\r\n        var /** @type {?} */ rawSlicedSegments = segments.slice(lastChild);\r\n        var /** @type {?} */ childConfig$ = this.getChildConfig(ngModule, route);\r\n        return mergeMap.call(childConfig$, function (routerConfig) {\r\n            var /** @type {?} */ childModule = routerConfig.module;\r\n            var /** @type {?} */ childConfig = routerConfig.routes;\r\n            var _a = split(rawSegmentGroup, consumedSegments, rawSlicedSegments, childConfig), segmentGroup = _a.segmentGroup, slicedSegments = _a.slicedSegments;\r\n            if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\r\n                var /** @type {?} */ expanded$_1 = _this.expandChildren(childModule, childConfig, segmentGroup);\r\n                return map.call(expanded$_1, function (children) { return new UrlSegmentGroup(consumedSegments, children); });\r\n            }\r\n            if (childConfig.length === 0 && slicedSegments.length === 0) {\r\n                return of(new UrlSegmentGroup(consumedSegments, {}));\r\n            }\r\n            var /** @type {?} */ expanded$ = _this.expandSegment(childModule, segmentGroup, childConfig, slicedSegments, PRIMARY_OUTLET, true);\r\n            return map.call(expanded$, function (cs) { return new UrlSegmentGroup(consumedSegments.concat(cs.segments), cs.children); });\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} route\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.getChildConfig = function (ngModule, route) {\r\n        var _this = this;\r\n        if (route.children) {\r\n            // The children belong to the same module\r\n            return of(new LoadedRouterConfig(route.children, ngModule));\r\n        }\r\n        if (route.loadChildren) {\r\n            // lazy children belong to the loaded module\r\n            if (route._loadedConfig !== undefined) {\r\n                return of(route._loadedConfig);\r\n            }\r\n            return mergeMap.call(runCanLoadGuard(ngModule.injector, route), function (shouldLoad) {\r\n                if (shouldLoad) {\r\n                    return map.call(_this.configLoader.load(ngModule.injector, route), function (cfg) {\r\n                        route._loadedConfig = cfg;\r\n                        return cfg;\r\n                    });\r\n                }\r\n                return canLoadFails(route);\r\n            });\r\n        }\r\n        return of(new LoadedRouterConfig([], ngModule));\r\n    };\r\n    /**\r\n     * @param {?} route\r\n     * @param {?} urlTree\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.lineralizeSegments = function (route, urlTree) {\r\n        var /** @type {?} */ res = [];\r\n        var /** @type {?} */ c = urlTree.root;\r\n        while (true) {\r\n            res = res.concat(c.segments);\r\n            if (c.numberOfChildren === 0) {\r\n                return of(res);\r\n            }\r\n            if (c.numberOfChildren > 1 || !c.children[PRIMARY_OUTLET]) {\r\n                return namedOutletsRedirect(/** @type {?} */ ((route.redirectTo)));\r\n            }\r\n            c = c.children[PRIMARY_OUTLET];\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} segments\r\n     * @param {?} redirectTo\r\n     * @param {?} posParams\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.applyRedirectCommands = function (segments, redirectTo, posParams) {\r\n        return this.applyRedirectCreatreUrlTree(redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);\r\n    };\r\n    /**\r\n     * @param {?} redirectTo\r\n     * @param {?} urlTree\r\n     * @param {?} segments\r\n     * @param {?} posParams\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.applyRedirectCreatreUrlTree = function (redirectTo, urlTree, segments, posParams) {\r\n        var /** @type {?} */ newRoot = this.createSegmentGroup(redirectTo, urlTree.root, segments, posParams);\r\n        return new UrlTree(newRoot, this.createQueryParams(urlTree.queryParams, this.urlTree.queryParams), urlTree.fragment);\r\n    };\r\n    /**\r\n     * @param {?} redirectToParams\r\n     * @param {?} actualParams\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.createQueryParams = function (redirectToParams, actualParams) {\r\n        var /** @type {?} */ res = {};\r\n        forEach(redirectToParams, function (v, k) {\r\n            var /** @type {?} */ copySourceValue = typeof v === 'string' && v.startsWith(':');\r\n            if (copySourceValue) {\r\n                var /** @type {?} */ sourceName = v.substring(1);\r\n                res[k] = actualParams[sourceName];\r\n            }\r\n            else {\r\n                res[k] = v;\r\n            }\r\n        });\r\n        return res;\r\n    };\r\n    /**\r\n     * @param {?} redirectTo\r\n     * @param {?} group\r\n     * @param {?} segments\r\n     * @param {?} posParams\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.createSegmentGroup = function (redirectTo, group, segments, posParams) {\r\n        var _this = this;\r\n        var /** @type {?} */ updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);\r\n        var /** @type {?} */ children = {};\r\n        forEach(group.children, function (child, name) {\r\n            children[name] = _this.createSegmentGroup(redirectTo, child, segments, posParams);\r\n        });\r\n        return new UrlSegmentGroup(updatedSegments, children);\r\n    };\r\n    /**\r\n     * @param {?} redirectTo\r\n     * @param {?} redirectToSegments\r\n     * @param {?} actualSegments\r\n     * @param {?} posParams\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.createSegments = function (redirectTo, redirectToSegments, actualSegments, posParams) {\r\n        var _this = this;\r\n        return redirectToSegments.map(function (s) { return s.path.startsWith(':') ? _this.findPosParam(redirectTo, s, posParams) :\r\n            _this.findOrReturn(s, actualSegments); });\r\n    };\r\n    /**\r\n     * @param {?} redirectTo\r\n     * @param {?} redirectToUrlSegment\r\n     * @param {?} posParams\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.findPosParam = function (redirectTo, redirectToUrlSegment, posParams) {\r\n        var /** @type {?} */ pos = posParams[redirectToUrlSegment.path.substring(1)];\r\n        if (!pos)\r\n            throw new Error(\"Cannot redirect to '\" + redirectTo + \"'. Cannot find '\" + redirectToUrlSegment.path + \"'.\");\r\n        return pos;\r\n    };\r\n    /**\r\n     * @param {?} redirectToUrlSegment\r\n     * @param {?} actualSegments\r\n     * @return {?}\r\n     */\r\n    ApplyRedirects.prototype.findOrReturn = function (redirectToUrlSegment, actualSegments) {\r\n        var /** @type {?} */ idx = 0;\r\n        for (var _i = 0, actualSegments_1 = actualSegments; _i < actualSegments_1.length; _i++) {\r\n            var s = actualSegments_1[_i];\r\n            if (s.path === redirectToUrlSegment.path) {\r\n                actualSegments.splice(idx);\r\n                return s;\r\n            }\r\n            idx++;\r\n        }\r\n        return redirectToUrlSegment;\r\n    };\r\n    return ApplyRedirects;\r\n}());\r\n/**\r\n * @param {?} moduleInjector\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction runCanLoadGuard(moduleInjector, route) {\r\n    var /** @type {?} */ canLoad = route.canLoad;\r\n    if (!canLoad || canLoad.length === 0)\r\n        return of(true);\r\n    var /** @type {?} */ obs = map.call(from(canLoad), function (injectionToken) {\r\n        var /** @type {?} */ guard = moduleInjector.get(injectionToken);\r\n        return wrapIntoObservable(guard.canLoad ? guard.canLoad(route) : guard(route));\r\n    });\r\n    return andObservables(obs);\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} route\r\n * @param {?} segments\r\n * @return {?}\r\n */\r\nfunction match(segmentGroup, route, segments) {\r\n    if (route.path === '') {\r\n        if ((route.pathMatch === 'full') && (segmentGroup.hasChildren() || segments.length > 0)) {\r\n            return { matched: false, consumedSegments: [], lastChild: 0, positionalParamSegments: {} };\r\n        }\r\n        return { matched: true, consumedSegments: [], lastChild: 0, positionalParamSegments: {} };\r\n    }\r\n    var /** @type {?} */ matcher = route.matcher || defaultUrlMatcher;\r\n    var /** @type {?} */ res = matcher(segments, segmentGroup, route);\r\n    if (!res) {\r\n        return {\r\n            matched: false, consumedSegments: /** @type {?} */ ([]), lastChild: 0, positionalParamSegments: {},\r\n        };\r\n    }\r\n    return {\r\n        matched: true,\r\n        consumedSegments: /** @type {?} */ ((res.consumed)),\r\n        lastChild: /** @type {?} */ ((res.consumed.length)),\r\n        positionalParamSegments: /** @type {?} */ ((res.posParams)),\r\n    };\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} consumedSegments\r\n * @param {?} slicedSegments\r\n * @param {?} config\r\n * @return {?}\r\n */\r\nfunction split(segmentGroup, consumedSegments, slicedSegments, config) {\r\n    if (slicedSegments.length > 0 &&\r\n        containsEmptyPathRedirectsWithNamedOutlets(segmentGroup, slicedSegments, config)) {\r\n        var /** @type {?} */ s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptySegments(config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));\r\n        return { segmentGroup: mergeTrivialChildren(s), slicedSegments: [] };\r\n    }\r\n    if (slicedSegments.length === 0 &&\r\n        containsEmptyPathRedirects(segmentGroup, slicedSegments, config)) {\r\n        var /** @type {?} */ s = new UrlSegmentGroup(segmentGroup.segments, addEmptySegmentsToChildrenIfNeeded(segmentGroup, slicedSegments, config, segmentGroup.children));\r\n        return { segmentGroup: mergeTrivialChildren(s), slicedSegments: slicedSegments };\r\n    }\r\n    return { segmentGroup: segmentGroup, slicedSegments: slicedSegments };\r\n}\r\n/**\r\n * @param {?} s\r\n * @return {?}\r\n */\r\nfunction mergeTrivialChildren(s) {\r\n    if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {\r\n        var /** @type {?} */ c = s.children[PRIMARY_OUTLET];\r\n        return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);\r\n    }\r\n    return s;\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} slicedSegments\r\n * @param {?} routes\r\n * @param {?} children\r\n * @return {?}\r\n */\r\nfunction addEmptySegmentsToChildrenIfNeeded(segmentGroup, slicedSegments, routes, children) {\r\n    var /** @type {?} */ res = {};\r\n    for (var _i = 0, routes_1 = routes; _i < routes_1.length; _i++) {\r\n        var r = routes_1[_i];\r\n        if (isEmptyPathRedirect(segmentGroup, slicedSegments, r) && !children[getOutlet$1(r)]) {\r\n            res[getOutlet$1(r)] = new UrlSegmentGroup([], {});\r\n        }\r\n    }\r\n    return __assign$1({}, children, res);\r\n}\r\n/**\r\n * @param {?} routes\r\n * @param {?} primarySegmentGroup\r\n * @return {?}\r\n */\r\nfunction createChildrenForEmptySegments(routes, primarySegmentGroup) {\r\n    var /** @type {?} */ res = {};\r\n    res[PRIMARY_OUTLET] = primarySegmentGroup;\r\n    for (var _i = 0, routes_2 = routes; _i < routes_2.length; _i++) {\r\n        var r = routes_2[_i];\r\n        if (r.path === '' && getOutlet$1(r) !== PRIMARY_OUTLET) {\r\n            res[getOutlet$1(r)] = new UrlSegmentGroup([], {});\r\n        }\r\n    }\r\n    return res;\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} segments\r\n * @param {?} routes\r\n * @return {?}\r\n */\r\nfunction containsEmptyPathRedirectsWithNamedOutlets(segmentGroup, segments, routes) {\r\n    return routes.some(function (r) { return isEmptyPathRedirect(segmentGroup, segments, r) && getOutlet$1(r) !== PRIMARY_OUTLET; });\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} segments\r\n * @param {?} routes\r\n * @return {?}\r\n */\r\nfunction containsEmptyPathRedirects(segmentGroup, segments, routes) {\r\n    return routes.some(function (r) { return isEmptyPathRedirect(segmentGroup, segments, r); });\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} segments\r\n * @param {?} r\r\n * @return {?}\r\n */\r\nfunction isEmptyPathRedirect(segmentGroup, segments, r) {\r\n    if ((segmentGroup.hasChildren() || segments.length > 0) && r.pathMatch === 'full') {\r\n        return false;\r\n    }\r\n    return r.path === '' && r.redirectTo !== undefined;\r\n}\r\n/**\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction getOutlet$1(route) {\r\n    return route.outlet || PRIMARY_OUTLET;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar Tree = (function () {\r\n    /**\r\n     * @param {?} root\r\n     */\r\n    function Tree(root) {\r\n        this._root = root;\r\n    }\r\n    Object.defineProperty(Tree.prototype, \"root\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._root.value; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * \\@internal\r\n     * @param {?} t\r\n     * @return {?}\r\n     */\r\n    Tree.prototype.parent = function (t) {\r\n        var /** @type {?} */ p = this.pathFromRoot(t);\r\n        return p.length > 1 ? p[p.length - 2] : null;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} t\r\n     * @return {?}\r\n     */\r\n    Tree.prototype.children = function (t) {\r\n        var /** @type {?} */ n = findNode(t, this._root);\r\n        return n ? n.children.map(function (t) { return t.value; }) : [];\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} t\r\n     * @return {?}\r\n     */\r\n    Tree.prototype.firstChild = function (t) {\r\n        var /** @type {?} */ n = findNode(t, this._root);\r\n        return n && n.children.length > 0 ? n.children[0].value : null;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} t\r\n     * @return {?}\r\n     */\r\n    Tree.prototype.siblings = function (t) {\r\n        var /** @type {?} */ p = findPath(t, this._root, []);\r\n        if (p.length < 2)\r\n            return [];\r\n        var /** @type {?} */ c = p[p.length - 2].children.map(function (c) { return c.value; });\r\n        return c.filter(function (cc) { return cc !== t; });\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} t\r\n     * @return {?}\r\n     */\r\n    Tree.prototype.pathFromRoot = function (t) { return findPath(t, this._root, []).map(function (s) { return s.value; }); };\r\n    return Tree;\r\n}());\r\n/**\r\n * @template T\r\n * @param {?} expected\r\n * @param {?} c\r\n * @return {?}\r\n */\r\nfunction findNode(expected, c) {\r\n    if (expected === c.value)\r\n        return c;\r\n    for (var _i = 0, _a = c.children; _i < _a.length; _i++) {\r\n        var cc = _a[_i];\r\n        var /** @type {?} */ r = findNode(expected, cc);\r\n        if (r)\r\n            return r;\r\n    }\r\n    return null;\r\n}\r\n/**\r\n * @template T\r\n * @param {?} expected\r\n * @param {?} c\r\n * @param {?} collected\r\n * @return {?}\r\n */\r\nfunction findPath(expected, c, collected) {\r\n    collected.push(c);\r\n    if (expected === c.value)\r\n        return collected;\r\n    for (var _i = 0, _a = c.children; _i < _a.length; _i++) {\r\n        var cc = _a[_i];\r\n        var /** @type {?} */ cloned = collected.slice(0);\r\n        var /** @type {?} */ r = findPath(expected, cc, cloned);\r\n        if (r.length > 0)\r\n            return r;\r\n    }\r\n    return [];\r\n}\r\nvar TreeNode = (function () {\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} children\r\n     */\r\n    function TreeNode(value, children) {\r\n        this.value = value;\r\n        this.children = children;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    TreeNode.prototype.toString = function () { return \"TreeNode(\" + this.value + \")\"; };\r\n    return TreeNode;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar __assign$2 = (undefined && undefined.__assign) || Object.assign || function (t) {\r\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n        s = arguments[i];\r\n        for (var p in s)\r\n            if (Object.prototype.hasOwnProperty.call(s, p))\r\n                t[p] = s[p];\r\n    }\r\n    return t;\r\n};\r\n/**\r\n * \\@whatItDoes Represents the state of the router.\r\n *\r\n * \\@howToUse\r\n *\r\n * ```\r\n * \\@Component({templateUrl:'template.html'})\r\n * class MyComponent {\r\n *   constructor(router: Router) {\r\n *     const state: RouterState = router.routerState;\r\n *     const root: ActivatedRoute = state.root;\r\n *     const child = root.firstChild;\r\n *     const id: Observable<string> = child.params.map(p => p.id);\r\n *     //...\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * \\@description\r\n * RouterState is a tree of activated routes. Every node in this tree knows about the \"consumed\" URL\r\n * segments, the extracted parameters, and the resolved data.\r\n *\r\n * See {\\@link ActivatedRoute} for more information.\r\n *\r\n * \\@stable\r\n */\r\nvar RouterState = (function (_super) {\r\n    __extends(RouterState, _super);\r\n    /**\r\n     * \\@internal\r\n     * @param {?} root\r\n     * @param {?} snapshot\r\n     */\r\n    function RouterState(root, snapshot) {\r\n        var _this = _super.call(this, root) || this;\r\n        _this.snapshot = snapshot;\r\n        setRouterStateSnapshot(_this, root);\r\n        return _this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterState.prototype.toString = function () { return this.snapshot.toString(); };\r\n    return RouterState;\r\n}(Tree));\r\n/**\r\n * @param {?} urlTree\r\n * @param {?} rootComponent\r\n * @return {?}\r\n */\r\nfunction createEmptyState(urlTree, rootComponent) {\r\n    var /** @type {?} */ snapshot = createEmptyStateSnapshot(urlTree, rootComponent);\r\n    var /** @type {?} */ emptyUrl = new BehaviorSubject([new UrlSegment('', {})]);\r\n    var /** @type {?} */ emptyParams = new BehaviorSubject({});\r\n    var /** @type {?} */ emptyData = new BehaviorSubject({});\r\n    var /** @type {?} */ emptyQueryParams = new BehaviorSubject({});\r\n    var /** @type {?} */ fragment = new BehaviorSubject('');\r\n    var /** @type {?} */ activated = new ActivatedRoute(emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, snapshot.root);\r\n    activated.snapshot = snapshot.root;\r\n    return new RouterState(new TreeNode(activated, []), snapshot);\r\n}\r\n/**\r\n * @param {?} urlTree\r\n * @param {?} rootComponent\r\n * @return {?}\r\n */\r\nfunction createEmptyStateSnapshot(urlTree, rootComponent) {\r\n    var /** @type {?} */ emptyParams = {};\r\n    var /** @type {?} */ emptyData = {};\r\n    var /** @type {?} */ emptyQueryParams = {};\r\n    var /** @type {?} */ fragment = '';\r\n    var /** @type {?} */ activated = new ActivatedRouteSnapshot([], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null, urlTree.root, -1, {});\r\n    return new RouterStateSnapshot('', new TreeNode(activated, []));\r\n}\r\n/**\r\n * \\@whatItDoes Contains the information about a route associated with a component loaded in an\r\n * outlet.\r\n * An `ActivatedRoute` can also be used to traverse the router state tree.\r\n *\r\n * \\@howToUse\r\n *\r\n * ```\r\n * \\@Component({...})\r\n * class MyComponent {\r\n *   constructor(route: ActivatedRoute) {\r\n *     const id: Observable<string> = route.params.map(p => p.id);\r\n *     const url: Observable<string> = route.url.map(segments => segments.join(''));\r\n *     // route.data includes both `data` and `resolve`\r\n *     const user = route.data.map(d => d.user);\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * \\@stable\r\n */\r\nvar ActivatedRoute = (function () {\r\n    /**\r\n     * \\@internal\r\n     * @param {?} url\r\n     * @param {?} params\r\n     * @param {?} queryParams\r\n     * @param {?} fragment\r\n     * @param {?} data\r\n     * @param {?} outlet\r\n     * @param {?} component\r\n     * @param {?} futureSnapshot\r\n     */\r\n    function ActivatedRoute(url, params, queryParams, fragment, data, outlet, component, futureSnapshot) {\r\n        this.url = url;\r\n        this.params = params;\r\n        this.queryParams = queryParams;\r\n        this.fragment = fragment;\r\n        this.data = data;\r\n        this.outlet = outlet;\r\n        this.component = component;\r\n        this._futureSnapshot = futureSnapshot;\r\n    }\r\n    Object.defineProperty(ActivatedRoute.prototype, \"routeConfig\", {\r\n        /**\r\n         * The configuration used to match this route\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._futureSnapshot.routeConfig; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRoute.prototype, \"root\", {\r\n        /**\r\n         * The root of the router state\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routerState.root; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRoute.prototype, \"parent\", {\r\n        /**\r\n         * The parent of this route in the router state tree\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routerState.parent(this); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRoute.prototype, \"firstChild\", {\r\n        /**\r\n         * The first child of this route in the router state tree\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routerState.firstChild(this); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRoute.prototype, \"children\", {\r\n        /**\r\n         * The children of this route in the router state tree\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routerState.children(this); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRoute.prototype, \"pathFromRoot\", {\r\n        /**\r\n         * The path from the root of the router state tree to this route\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routerState.pathFromRoot(this); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRoute.prototype, \"paramMap\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            if (!this._paramMap) {\r\n                this._paramMap = map.call(this.params, function (p) { return convertToParamMap(p); });\r\n            }\r\n            return this._paramMap;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRoute.prototype, \"queryParamMap\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            if (!this._queryParamMap) {\r\n                this._queryParamMap =\r\n                    map.call(this.queryParams, function (p) { return convertToParamMap(p); });\r\n            }\r\n            return this._queryParamMap;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ActivatedRoute.prototype.toString = function () {\r\n        return this.snapshot ? this.snapshot.toString() : \"Future(\" + this._futureSnapshot + \")\";\r\n    };\r\n    return ActivatedRoute;\r\n}());\r\n/**\r\n * \\@internal\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction inheritedParamsDataResolve(route) {\r\n    var /** @type {?} */ pathToRoot = route.pathFromRoot;\r\n    var /** @type {?} */ inhertingStartingFrom = pathToRoot.length - 1;\r\n    while (inhertingStartingFrom >= 1) {\r\n        var /** @type {?} */ current = pathToRoot[inhertingStartingFrom];\r\n        var /** @type {?} */ parent = pathToRoot[inhertingStartingFrom - 1];\r\n        // current route is an empty path => inherits its parent's params and data\r\n        if (current.routeConfig && current.routeConfig.path === '') {\r\n            inhertingStartingFrom--;\r\n        }\r\n        else if (!parent.component) {\r\n            inhertingStartingFrom--;\r\n        }\r\n        else {\r\n            break;\r\n        }\r\n    }\r\n    return pathToRoot.slice(inhertingStartingFrom).reduce(function (res, curr) {\r\n        var /** @type {?} */ params = __assign$2({}, res.params, curr.params);\r\n        var /** @type {?} */ data = __assign$2({}, res.data, curr.data);\r\n        var /** @type {?} */ resolve = __assign$2({}, res.resolve, curr._resolvedData);\r\n        return { params: params, data: data, resolve: resolve };\r\n    }, /** @type {?} */ ({ params: {}, data: {}, resolve: {} }));\r\n}\r\n/**\r\n * \\@whatItDoes Contains the information about a route associated with a component loaded in an\r\n * outlet\r\n * at a particular moment in time. ActivatedRouteSnapshot can also be used to traverse the router\r\n * state tree.\r\n *\r\n * \\@howToUse\r\n *\r\n * ```\r\n * \\@Component({templateUrl:'./my-component.html'})\r\n * class MyComponent {\r\n *   constructor(route: ActivatedRoute) {\r\n *     const id: string = route.snapshot.params.id;\r\n *     const url: string = route.snapshot.url.join('');\r\n *     const user = route.snapshot.data.user;\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * \\@stable\r\n */\r\nvar ActivatedRouteSnapshot = (function () {\r\n    /**\r\n     * \\@internal\r\n     * @param {?} url\r\n     * @param {?} params\r\n     * @param {?} queryParams\r\n     * @param {?} fragment\r\n     * @param {?} data\r\n     * @param {?} outlet\r\n     * @param {?} component\r\n     * @param {?} routeConfig\r\n     * @param {?} urlSegment\r\n     * @param {?} lastPathIndex\r\n     * @param {?} resolve\r\n     */\r\n    function ActivatedRouteSnapshot(url, params, queryParams, fragment, data, outlet, component, routeConfig, urlSegment, lastPathIndex, resolve) {\r\n        this.url = url;\r\n        this.params = params;\r\n        this.queryParams = queryParams;\r\n        this.fragment = fragment;\r\n        this.data = data;\r\n        this.outlet = outlet;\r\n        this.component = component;\r\n        this._routeConfig = routeConfig;\r\n        this._urlSegment = urlSegment;\r\n        this._lastPathIndex = lastPathIndex;\r\n        this._resolve = resolve;\r\n    }\r\n    Object.defineProperty(ActivatedRouteSnapshot.prototype, \"routeConfig\", {\r\n        /**\r\n         * The configuration used to match this route\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routeConfig; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRouteSnapshot.prototype, \"root\", {\r\n        /**\r\n         * The root of the router state\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routerState.root; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRouteSnapshot.prototype, \"parent\", {\r\n        /**\r\n         * The parent of this route in the router state tree\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routerState.parent(this); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRouteSnapshot.prototype, \"firstChild\", {\r\n        /**\r\n         * The first child of this route in the router state tree\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routerState.firstChild(this); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRouteSnapshot.prototype, \"children\", {\r\n        /**\r\n         * The children of this route in the router state tree\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routerState.children(this); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRouteSnapshot.prototype, \"pathFromRoot\", {\r\n        /**\r\n         * The path from the root of the router state tree to this route\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._routerState.pathFromRoot(this); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRouteSnapshot.prototype, \"paramMap\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            if (!this._paramMap) {\r\n                this._paramMap = convertToParamMap(this.params);\r\n            }\r\n            return this._paramMap;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ActivatedRouteSnapshot.prototype, \"queryParamMap\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            if (!this._queryParamMap) {\r\n                this._queryParamMap = convertToParamMap(this.queryParams);\r\n            }\r\n            return this._queryParamMap;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ActivatedRouteSnapshot.prototype.toString = function () {\r\n        var /** @type {?} */ url = this.url.map(function (segment) { return segment.toString(); }).join('/');\r\n        var /** @type {?} */ matched = this._routeConfig ? this._routeConfig.path : '';\r\n        return \"Route(url:'\" + url + \"', path:'\" + matched + \"')\";\r\n    };\r\n    return ActivatedRouteSnapshot;\r\n}());\r\n/**\r\n * \\@whatItDoes Represents the state of the router at a moment in time.\r\n *\r\n * \\@howToUse\r\n *\r\n * ```\r\n * \\@Component({templateUrl:'template.html'})\r\n * class MyComponent {\r\n *   constructor(router: Router) {\r\n *     const state: RouterState = router.routerState;\r\n *     const snapshot: RouterStateSnapshot = state.snapshot;\r\n *     const root: ActivatedRouteSnapshot = snapshot.root;\r\n *     const child = root.firstChild;\r\n *     const id: Observable<string> = child.params.map(p => p.id);\r\n *     //...\r\n *   }\r\n * }\r\n * ```\r\n *\r\n * \\@description\r\n * RouterStateSnapshot is a tree of activated route snapshots. Every node in this tree knows about\r\n * the \"consumed\" URL segments, the extracted parameters, and the resolved data.\r\n *\r\n * \\@stable\r\n */\r\nvar RouterStateSnapshot = (function (_super) {\r\n    __extends(RouterStateSnapshot, _super);\r\n    /**\r\n     * \\@internal\r\n     * @param {?} url\r\n     * @param {?} root\r\n     */\r\n    function RouterStateSnapshot(url, root) {\r\n        var _this = _super.call(this, root) || this;\r\n        _this.url = url;\r\n        setRouterStateSnapshot(_this, root);\r\n        return _this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterStateSnapshot.prototype.toString = function () { return serializeNode(this._root); };\r\n    return RouterStateSnapshot;\r\n}(Tree));\r\n/**\r\n * @template U, T\r\n * @param {?} state\r\n * @param {?} node\r\n * @return {?}\r\n */\r\nfunction setRouterStateSnapshot(state, node) {\r\n    node.value._routerState = state;\r\n    node.children.forEach(function (c) { return setRouterStateSnapshot(state, c); });\r\n}\r\n/**\r\n * @param {?} node\r\n * @return {?}\r\n */\r\nfunction serializeNode(node) {\r\n    var /** @type {?} */ c = node.children.length > 0 ? \" { \" + node.children.map(serializeNode).join(\", \") + \" } \" : '';\r\n    return \"\" + node.value + c;\r\n}\r\n/**\r\n * The expectation is that the activate route is created with the right set of parameters.\r\n * So we push new values into the observables only when they are not the initial values.\r\n * And we detect that by checking if the snapshot field is set.\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction advanceActivatedRoute(route) {\r\n    if (route.snapshot) {\r\n        var /** @type {?} */ currentSnapshot = route.snapshot;\r\n        route.snapshot = route._futureSnapshot;\r\n        if (!shallowEqual(currentSnapshot.queryParams, route._futureSnapshot.queryParams)) {\r\n            ((route.queryParams)).next(route._futureSnapshot.queryParams);\r\n        }\r\n        if (currentSnapshot.fragment !== route._futureSnapshot.fragment) {\r\n            ((route.fragment)).next(route._futureSnapshot.fragment);\r\n        }\r\n        if (!shallowEqual(currentSnapshot.params, route._futureSnapshot.params)) {\r\n            ((route.params)).next(route._futureSnapshot.params);\r\n        }\r\n        if (!shallowEqualArrays(currentSnapshot.url, route._futureSnapshot.url)) {\r\n            ((route.url)).next(route._futureSnapshot.url);\r\n        }\r\n        if (!shallowEqual(currentSnapshot.data, route._futureSnapshot.data)) {\r\n            ((route.data)).next(route._futureSnapshot.data);\r\n        }\r\n    }\r\n    else {\r\n        route.snapshot = route._futureSnapshot;\r\n        // this is for resolved data\r\n        ((route.data)).next(route._futureSnapshot.data);\r\n    }\r\n}\r\n/**\r\n * @param {?} a\r\n * @param {?} b\r\n * @return {?}\r\n */\r\nfunction equalParamsAndUrlSegments(a, b) {\r\n    var /** @type {?} */ equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url);\r\n    var /** @type {?} */ parentsMismatch = !a.parent !== !b.parent;\r\n    return equalUrlParams && !parentsMismatch &&\r\n        (!a.parent || equalParamsAndUrlSegments(a.parent, /** @type {?} */ ((b.parent))));\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} routeReuseStrategy\r\n * @param {?} curr\r\n * @param {?} prevState\r\n * @return {?}\r\n */\r\nfunction createRouterState(routeReuseStrategy, curr, prevState) {\r\n    var /** @type {?} */ root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);\r\n    return new RouterState(root, curr);\r\n}\r\n/**\r\n * @param {?} routeReuseStrategy\r\n * @param {?} curr\r\n * @param {?=} prevState\r\n * @return {?}\r\n */\r\nfunction createNode(routeReuseStrategy, curr, prevState) {\r\n    // reuse an activated route that is currently displayed on the screen\r\n    if (prevState && routeReuseStrategy.shouldReuseRoute(curr.value, prevState.value.snapshot)) {\r\n        var /** @type {?} */ value = prevState.value;\r\n        value._futureSnapshot = curr.value;\r\n        var /** @type {?} */ children = createOrReuseChildren(routeReuseStrategy, curr, prevState);\r\n        return new TreeNode(value, children);\r\n    }\r\n    else if (routeReuseStrategy.retrieve(curr.value)) {\r\n        var /** @type {?} */ tree_1 = ((routeReuseStrategy.retrieve(curr.value))).route;\r\n        setFutureSnapshotsOfActivatedRoutes(curr, tree_1);\r\n        return tree_1;\r\n    }\r\n    else {\r\n        var /** @type {?} */ value = createActivatedRoute(curr.value);\r\n        var /** @type {?} */ children = curr.children.map(function (c) { return createNode(routeReuseStrategy, c); });\r\n        return new TreeNode(value, children);\r\n    }\r\n}\r\n/**\r\n * @param {?} curr\r\n * @param {?} result\r\n * @return {?}\r\n */\r\nfunction setFutureSnapshotsOfActivatedRoutes(curr, result) {\r\n    if (curr.value.routeConfig !== result.value.routeConfig) {\r\n        throw new Error('Cannot reattach ActivatedRouteSnapshot created from a different route');\r\n    }\r\n    if (curr.children.length !== result.children.length) {\r\n        throw new Error('Cannot reattach ActivatedRouteSnapshot with a different number of children');\r\n    }\r\n    result.value._futureSnapshot = curr.value;\r\n    for (var /** @type {?} */ i = 0; i < curr.children.length; ++i) {\r\n        setFutureSnapshotsOfActivatedRoutes(curr.children[i], result.children[i]);\r\n    }\r\n}\r\n/**\r\n * @param {?} routeReuseStrategy\r\n * @param {?} curr\r\n * @param {?} prevState\r\n * @return {?}\r\n */\r\nfunction createOrReuseChildren(routeReuseStrategy, curr, prevState) {\r\n    return curr.children.map(function (child) {\r\n        for (var _i = 0, _a = prevState.children; _i < _a.length; _i++) {\r\n            var p = _a[_i];\r\n            if (routeReuseStrategy.shouldReuseRoute(p.value.snapshot, child.value)) {\r\n                return createNode(routeReuseStrategy, child, p);\r\n            }\r\n        }\r\n        return createNode(routeReuseStrategy, child);\r\n    });\r\n}\r\n/**\r\n * @param {?} c\r\n * @return {?}\r\n */\r\nfunction createActivatedRoute(c) {\r\n    return new ActivatedRoute(new BehaviorSubject(c.url), new BehaviorSubject(c.params), new BehaviorSubject(c.queryParams), new BehaviorSubject(c.fragment), new BehaviorSubject(c.data), c.outlet, c.component, c);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} route\r\n * @param {?} urlTree\r\n * @param {?} commands\r\n * @param {?} queryParams\r\n * @param {?} fragment\r\n * @return {?}\r\n */\r\nfunction createUrlTree(route, urlTree, commands, queryParams, fragment) {\r\n    if (commands.length === 0) {\r\n        return tree(urlTree.root, urlTree.root, urlTree, queryParams, fragment);\r\n    }\r\n    var /** @type {?} */ nav = computeNavigation(commands);\r\n    if (nav.toRoot()) {\r\n        return tree(urlTree.root, new UrlSegmentGroup([], {}), urlTree, queryParams, fragment);\r\n    }\r\n    var /** @type {?} */ startingPosition = findStartingPosition(nav, urlTree, route);\r\n    var /** @type {?} */ segmentGroup = startingPosition.processChildren ?\r\n        updateSegmentGroupChildren(startingPosition.segmentGroup, startingPosition.index, nav.commands) :\r\n        updateSegmentGroup(startingPosition.segmentGroup, startingPosition.index, nav.commands);\r\n    return tree(startingPosition.segmentGroup, segmentGroup, urlTree, queryParams, fragment);\r\n}\r\n/**\r\n * @param {?} command\r\n * @return {?}\r\n */\r\nfunction isMatrixParams(command) {\r\n    return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath;\r\n}\r\n/**\r\n * @param {?} oldSegmentGroup\r\n * @param {?} newSegmentGroup\r\n * @param {?} urlTree\r\n * @param {?} queryParams\r\n * @param {?} fragment\r\n * @return {?}\r\n */\r\nfunction tree(oldSegmentGroup, newSegmentGroup, urlTree, queryParams, fragment) {\r\n    var /** @type {?} */ qp = {};\r\n    if (queryParams) {\r\n        forEach(queryParams, function (value, name) {\r\n            qp[name] = Array.isArray(value) ? value.map(function (v) { return \"\" + v; }) : \"\" + value;\r\n        });\r\n    }\r\n    if (urlTree.root === oldSegmentGroup) {\r\n        return new UrlTree(newSegmentGroup, qp, fragment);\r\n    }\r\n    return new UrlTree(replaceSegment(urlTree.root, oldSegmentGroup, newSegmentGroup), qp, fragment);\r\n}\r\n/**\r\n * @param {?} current\r\n * @param {?} oldSegment\r\n * @param {?} newSegment\r\n * @return {?}\r\n */\r\nfunction replaceSegment(current, oldSegment, newSegment) {\r\n    var /** @type {?} */ children = {};\r\n    forEach(current.children, function (c, outletName) {\r\n        if (c === oldSegment) {\r\n            children[outletName] = newSegment;\r\n        }\r\n        else {\r\n            children[outletName] = replaceSegment(c, oldSegment, newSegment);\r\n        }\r\n    });\r\n    return new UrlSegmentGroup(current.segments, children);\r\n}\r\nvar Navigation = (function () {\r\n    /**\r\n     * @param {?} isAbsolute\r\n     * @param {?} numberOfDoubleDots\r\n     * @param {?} commands\r\n     */\r\n    function Navigation(isAbsolute, numberOfDoubleDots, commands) {\r\n        this.isAbsolute = isAbsolute;\r\n        this.numberOfDoubleDots = numberOfDoubleDots;\r\n        this.commands = commands;\r\n        if (isAbsolute && commands.length > 0 && isMatrixParams(commands[0])) {\r\n            throw new Error('Root segment cannot have matrix parameters');\r\n        }\r\n        var cmdWithOutlet = commands.find(function (c) { return typeof c === 'object' && c != null && c.outlets; });\r\n        if (cmdWithOutlet && cmdWithOutlet !== last$1(commands)) {\r\n            throw new Error('{outlets:{}} has to be the last command');\r\n        }\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Navigation.prototype.toRoot = function () {\r\n        return this.isAbsolute && this.commands.length === 1 && this.commands[0] == '/';\r\n    };\r\n    return Navigation;\r\n}());\r\n/**\r\n * Transforms commands to a normalized `Navigation`\r\n * @param {?} commands\r\n * @return {?}\r\n */\r\nfunction computeNavigation(commands) {\r\n    if ((typeof commands[0] === 'string') && commands.length === 1 && commands[0] === '/') {\r\n        return new Navigation(true, 0, commands);\r\n    }\r\n    var /** @type {?} */ numberOfDoubleDots = 0;\r\n    var /** @type {?} */ isAbsolute = false;\r\n    var /** @type {?} */ res = commands.reduce(function (res, cmd, cmdIdx) {\r\n        if (typeof cmd === 'object' && cmd != null) {\r\n            if (cmd.outlets) {\r\n                var /** @type {?} */ outlets_1 = {};\r\n                forEach(cmd.outlets, function (commands, name) {\r\n                    outlets_1[name] = typeof commands === 'string' ? commands.split('/') : commands;\r\n                });\r\n                return res.concat([{ outlets: outlets_1 }]);\r\n            }\r\n            if (cmd.segmentPath) {\r\n                return res.concat([cmd.segmentPath]);\r\n            }\r\n        }\r\n        if (!(typeof cmd === 'string')) {\r\n            return res.concat([cmd]);\r\n        }\r\n        if (cmdIdx === 0) {\r\n            cmd.split('/').forEach(function (urlPart, partIndex) {\r\n                if (partIndex == 0 && urlPart === '.') {\r\n                }\r\n                else if (partIndex == 0 && urlPart === '') {\r\n                    isAbsolute = true;\r\n                }\r\n                else if (urlPart === '..') {\r\n                    numberOfDoubleDots++;\r\n                }\r\n                else if (urlPart != '') {\r\n                    res.push(urlPart);\r\n                }\r\n            });\r\n            return res;\r\n        }\r\n        return res.concat([cmd]);\r\n    }, []);\r\n    return new Navigation(isAbsolute, numberOfDoubleDots, res);\r\n}\r\nvar Position = (function () {\r\n    /**\r\n     * @param {?} segmentGroup\r\n     * @param {?} processChildren\r\n     * @param {?} index\r\n     */\r\n    function Position(segmentGroup, processChildren, index) {\r\n        this.segmentGroup = segmentGroup;\r\n        this.processChildren = processChildren;\r\n        this.index = index;\r\n    }\r\n    return Position;\r\n}());\r\n/**\r\n * @param {?} nav\r\n * @param {?} tree\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction findStartingPosition(nav, tree, route) {\r\n    if (nav.isAbsolute) {\r\n        return new Position(tree.root, true, 0);\r\n    }\r\n    if (route.snapshot._lastPathIndex === -1) {\r\n        return new Position(route.snapshot._urlSegment, true, 0);\r\n    }\r\n    var /** @type {?} */ modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;\r\n    var /** @type {?} */ index = route.snapshot._lastPathIndex + modifier;\r\n    return createPositionApplyingDoubleDots(route.snapshot._urlSegment, index, nav.numberOfDoubleDots);\r\n}\r\n/**\r\n * @param {?} group\r\n * @param {?} index\r\n * @param {?} numberOfDoubleDots\r\n * @return {?}\r\n */\r\nfunction createPositionApplyingDoubleDots(group, index, numberOfDoubleDots) {\r\n    var /** @type {?} */ g = group;\r\n    var /** @type {?} */ ci = index;\r\n    var /** @type {?} */ dd = numberOfDoubleDots;\r\n    while (dd > ci) {\r\n        dd -= ci;\r\n        g = ((g.parent));\r\n        if (!g) {\r\n            throw new Error('Invalid number of \\'../\\'');\r\n        }\r\n        ci = g.segments.length;\r\n    }\r\n    return new Position(g, false, ci - dd);\r\n}\r\n/**\r\n * @param {?} command\r\n * @return {?}\r\n */\r\nfunction getPath(command) {\r\n    if (typeof command === 'object' && command != null && command.outlets) {\r\n        return command.outlets[PRIMARY_OUTLET];\r\n    }\r\n    return \"\" + command;\r\n}\r\n/**\r\n * @param {?} commands\r\n * @return {?}\r\n */\r\nfunction getOutlets(commands) {\r\n    if (!(typeof commands[0] === 'object'))\r\n        return _a = {}, _a[PRIMARY_OUTLET] = commands, _a;\r\n    if (commands[0].outlets === undefined)\r\n        return _b = {}, _b[PRIMARY_OUTLET] = commands, _b;\r\n    return commands[0].outlets;\r\n    var _a, _b;\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} startIndex\r\n * @param {?} commands\r\n * @return {?}\r\n */\r\nfunction updateSegmentGroup(segmentGroup, startIndex, commands) {\r\n    if (!segmentGroup) {\r\n        segmentGroup = new UrlSegmentGroup([], {});\r\n    }\r\n    if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\r\n        return updateSegmentGroupChildren(segmentGroup, startIndex, commands);\r\n    }\r\n    var /** @type {?} */ m = prefixedWith(segmentGroup, startIndex, commands);\r\n    var /** @type {?} */ slicedCommands = commands.slice(m.commandIndex);\r\n    if (m.match && m.pathIndex < segmentGroup.segments.length) {\r\n        var /** @type {?} */ g = new UrlSegmentGroup(segmentGroup.segments.slice(0, m.pathIndex), {});\r\n        g.children[PRIMARY_OUTLET] =\r\n            new UrlSegmentGroup(segmentGroup.segments.slice(m.pathIndex), segmentGroup.children);\r\n        return updateSegmentGroupChildren(g, 0, slicedCommands);\r\n    }\r\n    else if (m.match && slicedCommands.length === 0) {\r\n        return new UrlSegmentGroup(segmentGroup.segments, {});\r\n    }\r\n    else if (m.match && !segmentGroup.hasChildren()) {\r\n        return createNewSegmentGroup(segmentGroup, startIndex, commands);\r\n    }\r\n    else if (m.match) {\r\n        return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);\r\n    }\r\n    else {\r\n        return createNewSegmentGroup(segmentGroup, startIndex, commands);\r\n    }\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} startIndex\r\n * @param {?} commands\r\n * @return {?}\r\n */\r\nfunction updateSegmentGroupChildren(segmentGroup, startIndex, commands) {\r\n    if (commands.length === 0) {\r\n        return new UrlSegmentGroup(segmentGroup.segments, {});\r\n    }\r\n    else {\r\n        var /** @type {?} */ outlets_2 = getOutlets(commands);\r\n        var /** @type {?} */ children_2 = {};\r\n        forEach(outlets_2, function (commands, outlet) {\r\n            if (commands !== null) {\r\n                children_2[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);\r\n            }\r\n        });\r\n        forEach(segmentGroup.children, function (child, childOutlet) {\r\n            if (outlets_2[childOutlet] === undefined) {\r\n                children_2[childOutlet] = child;\r\n            }\r\n        });\r\n        return new UrlSegmentGroup(segmentGroup.segments, children_2);\r\n    }\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} startIndex\r\n * @param {?} commands\r\n * @return {?}\r\n */\r\nfunction prefixedWith(segmentGroup, startIndex, commands) {\r\n    var /** @type {?} */ currentCommandIndex = 0;\r\n    var /** @type {?} */ currentPathIndex = startIndex;\r\n    var /** @type {?} */ noMatch = { match: false, pathIndex: 0, commandIndex: 0 };\r\n    while (currentPathIndex < segmentGroup.segments.length) {\r\n        if (currentCommandIndex >= commands.length)\r\n            return noMatch;\r\n        var /** @type {?} */ path = segmentGroup.segments[currentPathIndex];\r\n        var /** @type {?} */ curr = getPath(commands[currentCommandIndex]);\r\n        var /** @type {?} */ next = currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;\r\n        if (currentPathIndex > 0 && curr === undefined)\r\n            break;\r\n        if (curr && next && (typeof next === 'object') && next.outlets === undefined) {\r\n            if (!compare(curr, next, path))\r\n                return noMatch;\r\n            currentCommandIndex += 2;\r\n        }\r\n        else {\r\n            if (!compare(curr, {}, path))\r\n                return noMatch;\r\n            currentCommandIndex++;\r\n        }\r\n        currentPathIndex++;\r\n    }\r\n    return { match: true, pathIndex: currentPathIndex, commandIndex: currentCommandIndex };\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} startIndex\r\n * @param {?} commands\r\n * @return {?}\r\n */\r\nfunction createNewSegmentGroup(segmentGroup, startIndex, commands) {\r\n    var /** @type {?} */ paths = segmentGroup.segments.slice(0, startIndex);\r\n    var /** @type {?} */ i = 0;\r\n    while (i < commands.length) {\r\n        if (typeof commands[i] === 'object' && commands[i].outlets !== undefined) {\r\n            var /** @type {?} */ children = createNewSegmentChildren(commands[i].outlets);\r\n            return new UrlSegmentGroup(paths, children);\r\n        }\r\n        // if we start with an object literal, we need to reuse the path part from the segment\r\n        if (i === 0 && isMatrixParams(commands[0])) {\r\n            var /** @type {?} */ p = segmentGroup.segments[startIndex];\r\n            paths.push(new UrlSegment(p.path, commands[0]));\r\n            i++;\r\n            continue;\r\n        }\r\n        var /** @type {?} */ curr = getPath(commands[i]);\r\n        var /** @type {?} */ next = (i < commands.length - 1) ? commands[i + 1] : null;\r\n        if (curr && next && isMatrixParams(next)) {\r\n            paths.push(new UrlSegment(curr, stringify(next)));\r\n            i += 2;\r\n        }\r\n        else {\r\n            paths.push(new UrlSegment(curr, {}));\r\n            i++;\r\n        }\r\n    }\r\n    return new UrlSegmentGroup(paths, {});\r\n}\r\n/**\r\n * @param {?} outlets\r\n * @return {?}\r\n */\r\nfunction createNewSegmentChildren(outlets) {\r\n    var /** @type {?} */ children = {};\r\n    forEach(outlets, function (commands, outlet) {\r\n        if (commands !== null) {\r\n            children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);\r\n        }\r\n    });\r\n    return children;\r\n}\r\n/**\r\n * @param {?} params\r\n * @return {?}\r\n */\r\nfunction stringify(params) {\r\n    var /** @type {?} */ res = {};\r\n    forEach(params, function (v, k) { return res[k] = \"\" + v; });\r\n    return res;\r\n}\r\n/**\r\n * @param {?} path\r\n * @param {?} params\r\n * @param {?} segment\r\n * @return {?}\r\n */\r\nfunction compare(path, params, segment) {\r\n    return path == segment.path && shallowEqual(params, segment.parameters);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar __assign$3 = (undefined && undefined.__assign) || Object.assign || function (t) {\r\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n        s = arguments[i];\r\n        for (var p in s)\r\n            if (Object.prototype.hasOwnProperty.call(s, p))\r\n                t[p] = s[p];\r\n    }\r\n    return t;\r\n};\r\nvar NoMatch$1 = (function () {\r\n    function NoMatch$1() {\r\n    }\r\n    return NoMatch$1;\r\n}());\r\n/**\r\n * @param {?} rootComponentType\r\n * @param {?} config\r\n * @param {?} urlTree\r\n * @param {?} url\r\n * @return {?}\r\n */\r\nfunction recognize(rootComponentType, config, urlTree, url) {\r\n    return new Recognizer(rootComponentType, config, urlTree, url).recognize();\r\n}\r\nvar Recognizer = (function () {\r\n    /**\r\n     * @param {?} rootComponentType\r\n     * @param {?} config\r\n     * @param {?} urlTree\r\n     * @param {?} url\r\n     */\r\n    function Recognizer(rootComponentType, config, urlTree, url) {\r\n        this.rootComponentType = rootComponentType;\r\n        this.config = config;\r\n        this.urlTree = urlTree;\r\n        this.url = url;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Recognizer.prototype.recognize = function () {\r\n        try {\r\n            var /** @type {?} */ rootSegmentGroup = split$1(this.urlTree.root, [], [], this.config).segmentGroup;\r\n            var /** @type {?} */ children = this.processSegmentGroup(this.config, rootSegmentGroup, PRIMARY_OUTLET);\r\n            var /** @type {?} */ root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze(this.urlTree.queryParams), /** @type {?} */ ((this.urlTree.fragment)), {}, PRIMARY_OUTLET, this.rootComponentType, null, this.urlTree.root, -1, {});\r\n            var /** @type {?} */ rootNode = new TreeNode(root, children);\r\n            var /** @type {?} */ routeState = new RouterStateSnapshot(this.url, rootNode);\r\n            this.inheriteParamsAndData(routeState._root);\r\n            return of(routeState);\r\n        }\r\n        catch (e) {\r\n            return new Observable(function (obs) { return obs.error(e); });\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} routeNode\r\n     * @return {?}\r\n     */\r\n    Recognizer.prototype.inheriteParamsAndData = function (routeNode) {\r\n        var _this = this;\r\n        var /** @type {?} */ route = routeNode.value;\r\n        var /** @type {?} */ i = inheritedParamsDataResolve(route);\r\n        route.params = Object.freeze(i.params);\r\n        route.data = Object.freeze(i.data);\r\n        routeNode.children.forEach(function (n) { return _this.inheriteParamsAndData(n); });\r\n    };\r\n    /**\r\n     * @param {?} config\r\n     * @param {?} segmentGroup\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    Recognizer.prototype.processSegmentGroup = function (config, segmentGroup, outlet) {\r\n        if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\r\n            return this.processChildren(config, segmentGroup);\r\n        }\r\n        return this.processSegment(config, segmentGroup, segmentGroup.segments, outlet);\r\n    };\r\n    /**\r\n     * @param {?} config\r\n     * @param {?} segmentGroup\r\n     * @return {?}\r\n     */\r\n    Recognizer.prototype.processChildren = function (config, segmentGroup) {\r\n        var _this = this;\r\n        var /** @type {?} */ children = mapChildrenIntoArray(segmentGroup, function (child, childOutlet) { return _this.processSegmentGroup(config, child, childOutlet); });\r\n        checkOutletNameUniqueness(children);\r\n        sortActivatedRouteSnapshots(children);\r\n        return children;\r\n    };\r\n    /**\r\n     * @param {?} config\r\n     * @param {?} segmentGroup\r\n     * @param {?} segments\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    Recognizer.prototype.processSegment = function (config, segmentGroup, segments, outlet) {\r\n        for (var _i = 0, config_1 = config; _i < config_1.length; _i++) {\r\n            var r = config_1[_i];\r\n            try {\r\n                return this.processSegmentAgainstRoute(r, segmentGroup, segments, outlet);\r\n            }\r\n            catch (e) {\r\n                if (!(e instanceof NoMatch$1))\r\n                    throw e;\r\n            }\r\n        }\r\n        if (this.noLeftoversInUrl(segmentGroup, segments, outlet)) {\r\n            return [];\r\n        }\r\n        throw new NoMatch$1();\r\n    };\r\n    /**\r\n     * @param {?} segmentGroup\r\n     * @param {?} segments\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    Recognizer.prototype.noLeftoversInUrl = function (segmentGroup, segments, outlet) {\r\n        return segments.length === 0 && !segmentGroup.children[outlet];\r\n    };\r\n    /**\r\n     * @param {?} route\r\n     * @param {?} rawSegment\r\n     * @param {?} segments\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    Recognizer.prototype.processSegmentAgainstRoute = function (route, rawSegment, segments, outlet) {\r\n        if (route.redirectTo)\r\n            throw new NoMatch$1();\r\n        if ((route.outlet || PRIMARY_OUTLET) !== outlet)\r\n            throw new NoMatch$1();\r\n        if (route.path === '**') {\r\n            var /** @type {?} */ params = segments.length > 0 ? ((last$1(segments))).parameters : {};\r\n            var /** @type {?} */ snapshot_1 = new ActivatedRouteSnapshot(segments, params, Object.freeze(this.urlTree.queryParams), /** @type {?} */ ((this.urlTree.fragment)), getData(route), outlet, /** @type {?} */ ((route.component)), route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + segments.length, getResolve(route));\r\n            return [new TreeNode(snapshot_1, [])];\r\n        }\r\n        var _a = match$1(rawSegment, route, segments), consumedSegments = _a.consumedSegments, parameters = _a.parameters, lastChild = _a.lastChild;\r\n        var /** @type {?} */ rawSlicedSegments = segments.slice(lastChild);\r\n        var /** @type {?} */ childConfig = getChildConfig(route);\r\n        var _b = split$1(rawSegment, consumedSegments, rawSlicedSegments, childConfig), segmentGroup = _b.segmentGroup, slicedSegments = _b.slicedSegments;\r\n        var /** @type {?} */ snapshot = new ActivatedRouteSnapshot(consumedSegments, parameters, Object.freeze(this.urlTree.queryParams), /** @type {?} */ ((this.urlTree.fragment)), getData(route), outlet, /** @type {?} */ ((route.component)), route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + consumedSegments.length, getResolve(route));\r\n        if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\r\n            var /** @type {?} */ children_3 = this.processChildren(childConfig, segmentGroup);\r\n            return [new TreeNode(snapshot, children_3)];\r\n        }\r\n        if (childConfig.length === 0 && slicedSegments.length === 0) {\r\n            return [new TreeNode(snapshot, [])];\r\n        }\r\n        var /** @type {?} */ children = this.processSegment(childConfig, segmentGroup, slicedSegments, PRIMARY_OUTLET);\r\n        return [new TreeNode(snapshot, children)];\r\n    };\r\n    return Recognizer;\r\n}());\r\n/**\r\n * @param {?} nodes\r\n * @return {?}\r\n */\r\nfunction sortActivatedRouteSnapshots(nodes) {\r\n    nodes.sort(function (a, b) {\r\n        if (a.value.outlet === PRIMARY_OUTLET)\r\n            return -1;\r\n        if (b.value.outlet === PRIMARY_OUTLET)\r\n            return 1;\r\n        return a.value.outlet.localeCompare(b.value.outlet);\r\n    });\r\n}\r\n/**\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction getChildConfig(route) {\r\n    if (route.children) {\r\n        return route.children;\r\n    }\r\n    if (route.loadChildren) {\r\n        return ((route._loadedConfig)).routes;\r\n    }\r\n    return [];\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} route\r\n * @param {?} segments\r\n * @return {?}\r\n */\r\nfunction match$1(segmentGroup, route, segments) {\r\n    if (route.path === '') {\r\n        if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {\r\n            throw new NoMatch$1();\r\n        }\r\n        return { consumedSegments: [], lastChild: 0, parameters: {} };\r\n    }\r\n    var /** @type {?} */ matcher = route.matcher || defaultUrlMatcher;\r\n    var /** @type {?} */ res = matcher(segments, segmentGroup, route);\r\n    if (!res)\r\n        throw new NoMatch$1();\r\n    var /** @type {?} */ posParams = {};\r\n    forEach(/** @type {?} */ ((res.posParams)), function (v, k) { posParams[k] = v.path; });\r\n    var /** @type {?} */ parameters = __assign$3({}, posParams, res.consumed[res.consumed.length - 1].parameters);\r\n    return { consumedSegments: res.consumed, lastChild: res.consumed.length, parameters: parameters };\r\n}\r\n/**\r\n * @param {?} nodes\r\n * @return {?}\r\n */\r\nfunction checkOutletNameUniqueness(nodes) {\r\n    var /** @type {?} */ names = {};\r\n    nodes.forEach(function (n) {\r\n        var /** @type {?} */ routeWithSameOutletName = names[n.value.outlet];\r\n        if (routeWithSameOutletName) {\r\n            var /** @type {?} */ p = routeWithSameOutletName.url.map(function (s) { return s.toString(); }).join('/');\r\n            var /** @type {?} */ c = n.value.url.map(function (s) { return s.toString(); }).join('/');\r\n            throw new Error(\"Two segments cannot have the same outlet name: '\" + p + \"' and '\" + c + \"'.\");\r\n        }\r\n        names[n.value.outlet] = n.value;\r\n    });\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @return {?}\r\n */\r\nfunction getSourceSegmentGroup(segmentGroup) {\r\n    var /** @type {?} */ s = segmentGroup;\r\n    while (s._sourceSegment) {\r\n        s = s._sourceSegment;\r\n    }\r\n    return s;\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @return {?}\r\n */\r\nfunction getPathIndexShift(segmentGroup) {\r\n    var /** @type {?} */ s = segmentGroup;\r\n    var /** @type {?} */ res = (s._segmentIndexShift ? s._segmentIndexShift : 0);\r\n    while (s._sourceSegment) {\r\n        s = s._sourceSegment;\r\n        res += (s._segmentIndexShift ? s._segmentIndexShift : 0);\r\n    }\r\n    return res - 1;\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} consumedSegments\r\n * @param {?} slicedSegments\r\n * @param {?} config\r\n * @return {?}\r\n */\r\nfunction split$1(segmentGroup, consumedSegments, slicedSegments, config) {\r\n    if (slicedSegments.length > 0 &&\r\n        containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {\r\n        var /** @type {?} */ s_1 = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(segmentGroup, consumedSegments, config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));\r\n        s_1._sourceSegment = segmentGroup;\r\n        s_1._segmentIndexShift = consumedSegments.length;\r\n        return { segmentGroup: s_1, slicedSegments: [] };\r\n    }\r\n    if (slicedSegments.length === 0 &&\r\n        containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {\r\n        var /** @type {?} */ s_2 = new UrlSegmentGroup(segmentGroup.segments, addEmptyPathsToChildrenIfNeeded(segmentGroup, slicedSegments, config, segmentGroup.children));\r\n        s_2._sourceSegment = segmentGroup;\r\n        s_2._segmentIndexShift = consumedSegments.length;\r\n        return { segmentGroup: s_2, slicedSegments: slicedSegments };\r\n    }\r\n    var /** @type {?} */ s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);\r\n    s._sourceSegment = segmentGroup;\r\n    s._segmentIndexShift = consumedSegments.length;\r\n    return { segmentGroup: s, slicedSegments: slicedSegments };\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} slicedSegments\r\n * @param {?} routes\r\n * @param {?} children\r\n * @return {?}\r\n */\r\nfunction addEmptyPathsToChildrenIfNeeded(segmentGroup, slicedSegments, routes, children) {\r\n    var /** @type {?} */ res = {};\r\n    for (var _i = 0, routes_3 = routes; _i < routes_3.length; _i++) {\r\n        var r = routes_3[_i];\r\n        if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet$2(r)]) {\r\n            var /** @type {?} */ s = new UrlSegmentGroup([], {});\r\n            s._sourceSegment = segmentGroup;\r\n            s._segmentIndexShift = segmentGroup.segments.length;\r\n            res[getOutlet$2(r)] = s;\r\n        }\r\n    }\r\n    return __assign$3({}, children, res);\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} consumedSegments\r\n * @param {?} routes\r\n * @param {?} primarySegment\r\n * @return {?}\r\n */\r\nfunction createChildrenForEmptyPaths(segmentGroup, consumedSegments, routes, primarySegment) {\r\n    var /** @type {?} */ res = {};\r\n    res[PRIMARY_OUTLET] = primarySegment;\r\n    primarySegment._sourceSegment = segmentGroup;\r\n    primarySegment._segmentIndexShift = consumedSegments.length;\r\n    for (var _i = 0, routes_4 = routes; _i < routes_4.length; _i++) {\r\n        var r = routes_4[_i];\r\n        if (r.path === '' && getOutlet$2(r) !== PRIMARY_OUTLET) {\r\n            var /** @type {?} */ s = new UrlSegmentGroup([], {});\r\n            s._sourceSegment = segmentGroup;\r\n            s._segmentIndexShift = consumedSegments.length;\r\n            res[getOutlet$2(r)] = s;\r\n        }\r\n    }\r\n    return res;\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} slicedSegments\r\n * @param {?} routes\r\n * @return {?}\r\n */\r\nfunction containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {\r\n    return routes.some(function (r) { return emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet$2(r) !== PRIMARY_OUTLET; });\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} slicedSegments\r\n * @param {?} routes\r\n * @return {?}\r\n */\r\nfunction containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {\r\n    return routes.some(function (r) { return emptyPathMatch(segmentGroup, slicedSegments, r); });\r\n}\r\n/**\r\n * @param {?} segmentGroup\r\n * @param {?} slicedSegments\r\n * @param {?} r\r\n * @return {?}\r\n */\r\nfunction emptyPathMatch(segmentGroup, slicedSegments, r) {\r\n    if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {\r\n        return false;\r\n    }\r\n    return r.path === '' && r.redirectTo === undefined;\r\n}\r\n/**\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction getOutlet$2(route) {\r\n    return route.outlet || PRIMARY_OUTLET;\r\n}\r\n/**\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction getData(route) {\r\n    return route.data || {};\r\n}\r\n/**\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction getResolve(route) {\r\n    return route.resolve || {};\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@docsNotRequired\r\n * \\@experimental\r\n */\r\nvar ROUTES = new InjectionToken('ROUTES');\r\nvar RouterConfigLoader = (function () {\r\n    /**\r\n     * @param {?} loader\r\n     * @param {?} compiler\r\n     * @param {?=} onLoadStartListener\r\n     * @param {?=} onLoadEndListener\r\n     */\r\n    function RouterConfigLoader(loader, compiler, onLoadStartListener, onLoadEndListener) {\r\n        this.loader = loader;\r\n        this.compiler = compiler;\r\n        this.onLoadStartListener = onLoadStartListener;\r\n        this.onLoadEndListener = onLoadEndListener;\r\n    }\r\n    /**\r\n     * @param {?} parentInjector\r\n     * @param {?} route\r\n     * @return {?}\r\n     */\r\n    RouterConfigLoader.prototype.load = function (parentInjector, route) {\r\n        var _this = this;\r\n        if (this.onLoadStartListener) {\r\n            this.onLoadStartListener(route);\r\n        }\r\n        var /** @type {?} */ moduleFactory$ = this.loadModuleFactory(/** @type {?} */ ((route.loadChildren)));\r\n        return map.call(moduleFactory$, function (factory) {\r\n            if (_this.onLoadEndListener) {\r\n                _this.onLoadEndListener(route);\r\n            }\r\n            var /** @type {?} */ module = factory.create(parentInjector);\r\n            return new LoadedRouterConfig(flatten(module.injector.get(ROUTES)), module);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} loadChildren\r\n     * @return {?}\r\n     */\r\n    RouterConfigLoader.prototype.loadModuleFactory = function (loadChildren) {\r\n        var _this = this;\r\n        if (typeof loadChildren === 'string') {\r\n            return fromPromise(this.loader.load(loadChildren));\r\n        }\r\n        else {\r\n            return mergeMap.call(wrapIntoObservable(loadChildren()), function (t) {\r\n                if (t instanceof NgModuleFactory) {\r\n                    return of(t);\r\n                }\r\n                else {\r\n                    return fromPromise(_this.compiler.compileModuleAsync(t));\r\n                }\r\n            });\r\n        }\r\n    };\r\n    return RouterConfigLoader;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Contains all the router outlets created in a component.\r\n *\r\n * \\@stable\r\n */\r\nvar RouterOutletMap = (function () {\r\n    function RouterOutletMap() {\r\n        /**\r\n         * \\@internal\r\n         */\r\n        this._outlets = {};\r\n    }\r\n    /**\r\n     * Adds an outlet to this map.\r\n     * @param {?} name\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    RouterOutletMap.prototype.registerOutlet = function (name, outlet) { this._outlets[name] = outlet; };\r\n    /**\r\n     * Removes an outlet from this map.\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    RouterOutletMap.prototype.removeOutlet = function (name) { this._outlets[name] = ((undefined)); };\r\n    return RouterOutletMap;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Provides a way to migrate AngularJS applications to Angular.\r\n *\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar UrlHandlingStrategy = (function () {\r\n    function UrlHandlingStrategy() {\r\n    }\r\n    /**\r\n     * Tells the router if this URL should be processed.\r\n     *\r\n     * When it returns true, the router will execute the regular navigation.\r\n     * When it returns false, the router will set the router state to an empty state.\r\n     * As a result, all the active components will be destroyed.\r\n     *\r\n     * @abstract\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    UrlHandlingStrategy.prototype.shouldProcessUrl = function (url) { };\r\n    /**\r\n     * Extracts the part of the URL that should be handled by the router.\r\n     * The rest of the URL will remain untouched.\r\n     * @abstract\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    UrlHandlingStrategy.prototype.extract = function (url) { };\r\n    /**\r\n     * Merges the URL fragment with the rest of the URL.\r\n     * @abstract\r\n     * @param {?} newUrlPart\r\n     * @param {?} rawUrl\r\n     * @return {?}\r\n     */\r\n    UrlHandlingStrategy.prototype.merge = function (newUrlPart, rawUrl) { };\r\n    return UrlHandlingStrategy;\r\n}());\r\n/**\r\n * \\@experimental\r\n */\r\nvar DefaultUrlHandlingStrategy = (function () {\r\n    function DefaultUrlHandlingStrategy() {\r\n    }\r\n    /**\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    DefaultUrlHandlingStrategy.prototype.shouldProcessUrl = function (url) { return true; };\r\n    /**\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    DefaultUrlHandlingStrategy.prototype.extract = function (url) { return url; };\r\n    /**\r\n     * @param {?} newUrlPart\r\n     * @param {?} wholeUrl\r\n     * @return {?}\r\n     */\r\n    DefaultUrlHandlingStrategy.prototype.merge = function (newUrlPart, wholeUrl) { return newUrlPart; };\r\n    return DefaultUrlHandlingStrategy;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar __assign = (undefined && undefined.__assign) || Object.assign || function (t) {\r\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n        s = arguments[i];\r\n        for (var p in s)\r\n            if (Object.prototype.hasOwnProperty.call(s, p))\r\n                t[p] = s[p];\r\n    }\r\n    return t;\r\n};\r\n/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\nfunction defaultErrorHandler(error) {\r\n    throw error;\r\n}\r\n/**\r\n * \\@internal\r\n * @param {?} snapshot\r\n * @return {?}\r\n */\r\nfunction defaultRouterHook(snapshot) {\r\n    return (of(null));\r\n}\r\n/**\r\n * Does not detach any subtrees. Reuses routes as long as their route config is the same.\r\n */\r\nvar DefaultRouteReuseStrategy = (function () {\r\n    function DefaultRouteReuseStrategy() {\r\n    }\r\n    /**\r\n     * @param {?} route\r\n     * @return {?}\r\n     */\r\n    DefaultRouteReuseStrategy.prototype.shouldDetach = function (route) { return false; };\r\n    /**\r\n     * @param {?} route\r\n     * @param {?} detachedTree\r\n     * @return {?}\r\n     */\r\n    DefaultRouteReuseStrategy.prototype.store = function (route, detachedTree) { };\r\n    /**\r\n     * @param {?} route\r\n     * @return {?}\r\n     */\r\n    DefaultRouteReuseStrategy.prototype.shouldAttach = function (route) { return false; };\r\n    /**\r\n     * @param {?} route\r\n     * @return {?}\r\n     */\r\n    DefaultRouteReuseStrategy.prototype.retrieve = function (route) { return null; };\r\n    /**\r\n     * @param {?} future\r\n     * @param {?} curr\r\n     * @return {?}\r\n     */\r\n    DefaultRouteReuseStrategy.prototype.shouldReuseRoute = function (future, curr) {\r\n        return future.routeConfig === curr.routeConfig;\r\n    };\r\n    return DefaultRouteReuseStrategy;\r\n}());\r\n/**\r\n * \\@whatItDoes Provides the navigation and url manipulation capabilities.\r\n *\r\n * See {\\@link Routes} for more details and examples.\r\n *\r\n * \\@ngModule RouterModule\r\n *\r\n * \\@stable\r\n */\r\nvar Router = (function () {\r\n    /**\r\n     * @param {?} rootComponentType\r\n     * @param {?} urlSerializer\r\n     * @param {?} outletMap\r\n     * @param {?} location\r\n     * @param {?} injector\r\n     * @param {?} loader\r\n     * @param {?} compiler\r\n     * @param {?} config\r\n     */\r\n    function Router(rootComponentType, urlSerializer, outletMap, location, injector, loader, compiler, config) {\r\n        var _this = this;\r\n        this.rootComponentType = rootComponentType;\r\n        this.urlSerializer = urlSerializer;\r\n        this.outletMap = outletMap;\r\n        this.location = location;\r\n        this.config = config;\r\n        this.navigations = new BehaviorSubject(/** @type {?} */ ((null)));\r\n        this.routerEvents = new Subject();\r\n        this.navigationId = 0;\r\n        /**\r\n         * Error handler that is invoked when a navigation errors.\r\n         *\r\n         * See {@link ErrorHandler} for more information.\r\n         */\r\n        this.errorHandler = defaultErrorHandler;\r\n        /**\r\n         * Indicates if at least one navigation happened.\r\n         */\r\n        this.navigated = false;\r\n        /**\r\n         * Used by RouterModule. This allows us to\r\n         * pause the navigation either before preactivation or after it.\r\n         * \\@internal\r\n         */\r\n        this.hooks = {\r\n            beforePreactivation: defaultRouterHook,\r\n            afterPreactivation: defaultRouterHook\r\n        };\r\n        /**\r\n         * Extracts and merges URLs. Used for AngularJS to Angular migrations.\r\n         */\r\n        this.urlHandlingStrategy = new DefaultUrlHandlingStrategy();\r\n        this.routeReuseStrategy = new DefaultRouteReuseStrategy();\r\n        var onLoadStart = function (r) { return _this.triggerEvent(new RouteConfigLoadStart(r)); };\r\n        var onLoadEnd = function (r) { return _this.triggerEvent(new RouteConfigLoadEnd(r)); };\r\n        this.ngModule = injector.get(NgModuleRef);\r\n        this.resetConfig(config);\r\n        this.currentUrlTree = createEmptyUrlTree();\r\n        this.rawUrlTree = this.currentUrlTree;\r\n        this.configLoader = new RouterConfigLoader(loader, compiler, onLoadStart, onLoadEnd);\r\n        this.currentRouterState = createEmptyState(this.currentUrlTree, this.rootComponentType);\r\n        this.processNavigations();\r\n    }\r\n    /**\r\n     * \\@internal\r\n     * TODO: this should be removed once the constructor of the router made internal\r\n     * @param {?} rootComponentType\r\n     * @return {?}\r\n     */\r\n    Router.prototype.resetRootComponentType = function (rootComponentType) {\r\n        this.rootComponentType = rootComponentType;\r\n        // TODO: vsavkin router 4.0 should make the root component set to null\r\n        // this will simplify the lifecycle of the router.\r\n        this.currentRouterState.root.component = this.rootComponentType;\r\n    };\r\n    /**\r\n     * Sets up the location change listener and performs the initial navigation.\r\n     * @return {?}\r\n     */\r\n    Router.prototype.initialNavigation = function () {\r\n        this.setUpLocationChangeListener();\r\n        if (this.navigationId === 0) {\r\n            this.navigateByUrl(this.location.path(true), { replaceUrl: true });\r\n        }\r\n    };\r\n    /**\r\n     * Sets up the location change listener.\r\n     * @return {?}\r\n     */\r\n    Router.prototype.setUpLocationChangeListener = function () {\r\n        var _this = this;\r\n        // Zone.current.wrap is needed because of the issue with RxJS scheduler,\r\n        // which does not work properly with zone.js in IE and Safari\r\n        if (!this.locationSubscription) {\r\n            this.locationSubscription = (this.location.subscribe(Zone.current.wrap(function (change) {\r\n                var /** @type {?} */ rawUrlTree = _this.urlSerializer.parse(change['url']);\r\n                var /** @type {?} */ source = change['type'] === 'popstate' ? 'popstate' : 'hashchange';\r\n                setTimeout(function () { _this.scheduleNavigation(rawUrlTree, source, { replaceUrl: true }); }, 0);\r\n            })));\r\n        }\r\n    };\r\n    Object.defineProperty(Router.prototype, \"routerState\", {\r\n        /**\r\n         * The current route state\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.currentRouterState; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Router.prototype, \"url\", {\r\n        /**\r\n         * The current url\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.serializeUrl(this.currentUrlTree); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(Router.prototype, \"events\", {\r\n        /**\r\n         * An observable of router events\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.routerEvents; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * \\@internal\r\n     * @param {?} e\r\n     * @return {?}\r\n     */\r\n    Router.prototype.triggerEvent = function (e) { this.routerEvents.next(e); };\r\n    /**\r\n     * Resets the configuration used for navigation and generating links.\r\n     *\r\n     * ### Usage\r\n     *\r\n     * ```\r\n     * router.resetConfig([\r\n     *  { path: 'team/:id', component: TeamCmp, children: [\r\n     *    { path: 'simple', component: SimpleCmp },\r\n     *    { path: 'user/:name', component: UserCmp }\r\n     *  ]}\r\n     * ]);\r\n     * ```\r\n     * @param {?} config\r\n     * @return {?}\r\n     */\r\n    Router.prototype.resetConfig = function (config) {\r\n        validateConfig(config);\r\n        this.config = config;\r\n    };\r\n    /**\r\n     * \\@docsNotRequired\r\n     * @return {?}\r\n     */\r\n    Router.prototype.ngOnDestroy = function () { this.dispose(); };\r\n    /**\r\n     * Disposes of the router\r\n     * @return {?}\r\n     */\r\n    Router.prototype.dispose = function () {\r\n        if (this.locationSubscription) {\r\n            this.locationSubscription.unsubscribe();\r\n            this.locationSubscription = ((null));\r\n        }\r\n    };\r\n    /**\r\n     * Applies an array of commands to the current url tree and creates a new url tree.\r\n     *\r\n     * When given an activate route, applies the given commands starting from the route.\r\n     * When not given a route, applies the given command starting from the root.\r\n     *\r\n     * ### Usage\r\n     *\r\n     * ```\r\n     * // create /team/33/user/11\r\n     * router.createUrlTree(['/team', 33, 'user', 11]);\r\n     *\r\n     * // create /team/33;expand=true/user/11\r\n     * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);\r\n     *\r\n     * // you can collapse static segments like this (this works only with the first passed-in value):\r\n     * router.createUrlTree(['/team/33/user', userId]);\r\n     *\r\n     * // If the first segment can contain slashes, and you do not want the router to split it, you\r\n     * // can do the following:\r\n     *\r\n     * router.createUrlTree([{segmentPath: '/one/two'}]);\r\n     *\r\n     * // create /team/33/(user/11//right:chat)\r\n     * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);\r\n     *\r\n     * // remove the right secondary node\r\n     * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);\r\n     *\r\n     * // assuming the current url is `/team/33/user/11` and the route points to `user/11`\r\n     *\r\n     * // navigate to /team/33/user/11/details\r\n     * router.createUrlTree(['details'], {relativeTo: route});\r\n     *\r\n     * // navigate to /team/33/user/22\r\n     * router.createUrlTree(['../22'], {relativeTo: route});\r\n     *\r\n     * // navigate to /team/44/user/22\r\n     * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});\r\n     * ```\r\n     * @param {?} commands\r\n     * @param {?=} __1\r\n     * @return {?}\r\n     */\r\n    Router.prototype.createUrlTree = function (commands, _a) {\r\n        var _b = _a === void 0 ? {} : _a, relativeTo = _b.relativeTo, queryParams = _b.queryParams, fragment = _b.fragment, preserveQueryParams = _b.preserveQueryParams, queryParamsHandling = _b.queryParamsHandling, preserveFragment = _b.preserveFragment;\r\n        if (isDevMode() && preserveQueryParams && (console) && (console.warn)) {\r\n            console.warn('preserveQueryParams is deprecated, use queryParamsHandling instead.');\r\n        }\r\n        var /** @type {?} */ a = relativeTo || this.routerState.root;\r\n        var /** @type {?} */ f = preserveFragment ? this.currentUrlTree.fragment : fragment;\r\n        var /** @type {?} */ q = null;\r\n        if (queryParamsHandling) {\r\n            switch (queryParamsHandling) {\r\n                case 'merge':\r\n                    q = __assign({}, this.currentUrlTree.queryParams, queryParams);\r\n                    break;\r\n                case 'preserve':\r\n                    q = this.currentUrlTree.queryParams;\r\n                    break;\r\n                default:\r\n                    q = queryParams || null;\r\n            }\r\n        }\r\n        else {\r\n            q = preserveQueryParams ? this.currentUrlTree.queryParams : queryParams || null;\r\n        }\r\n        return createUrlTree(a, this.currentUrlTree, commands, /** @type {?} */ ((q)), /** @type {?} */ ((f)));\r\n    };\r\n    /**\r\n     * Navigate based on the provided url. This navigation is always absolute.\r\n     *\r\n     * Returns a promise that:\r\n     * - resolves to 'true' when navigation succeeds,\r\n     * - resolves to 'false' when navigation fails,\r\n     * - is rejected when an error happens.\r\n     *\r\n     * ### Usage\r\n     *\r\n     * ```\r\n     * router.navigateByUrl(\"/team/33/user/11\");\r\n     *\r\n     * // Navigate without updating the URL\r\n     * router.navigateByUrl(\"/team/33/user/11\", { skipLocationChange: true });\r\n     * ```\r\n     *\r\n     * In opposite to `navigate`, `navigateByUrl` takes a whole URL\r\n     * and does not apply any delta to the current one.\r\n     * @param {?} url\r\n     * @param {?=} extras\r\n     * @return {?}\r\n     */\r\n    Router.prototype.navigateByUrl = function (url, extras) {\r\n        if (extras === void 0) { extras = { skipLocationChange: false }; }\r\n        var /** @type {?} */ urlTree = url instanceof UrlTree ? url : this.parseUrl(url);\r\n        var /** @type {?} */ mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);\r\n        return this.scheduleNavigation(mergedTree, 'imperative', extras);\r\n    };\r\n    /**\r\n     * Navigate based on the provided array of commands and a starting point.\r\n     * If no starting route is provided, the navigation is absolute.\r\n     *\r\n     * Returns a promise that:\r\n     * - resolves to 'true' when navigation succeeds,\r\n     * - resolves to 'false' when navigation fails,\r\n     * - is rejected when an error happens.\r\n     *\r\n     * ### Usage\r\n     *\r\n     * ```\r\n     * router.navigate(['team', 33, 'user', 11], {relativeTo: route});\r\n     *\r\n     * // Navigate without updating the URL\r\n     * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});\r\n     * ```\r\n     *\r\n     * In opposite to `navigateByUrl`, `navigate` always takes a delta that is applied to the current\r\n     * URL.\r\n     * @param {?} commands\r\n     * @param {?=} extras\r\n     * @return {?}\r\n     */\r\n    Router.prototype.navigate = function (commands, extras) {\r\n        if (extras === void 0) { extras = { skipLocationChange: false }; }\r\n        validateCommands(commands);\r\n        if (typeof extras.queryParams === 'object' && extras.queryParams !== null) {\r\n            extras.queryParams = this.removeEmptyProps(extras.queryParams);\r\n        }\r\n        return this.navigateByUrl(this.createUrlTree(commands, extras), extras);\r\n    };\r\n    /**\r\n     * Serializes a {\\@link UrlTree} into a string\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Router.prototype.serializeUrl = function (url) { return this.urlSerializer.serialize(url); };\r\n    /**\r\n     * Parses a string into a {\\@link UrlTree}\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Router.prototype.parseUrl = function (url) { return this.urlSerializer.parse(url); };\r\n    /**\r\n     * Returns whether the url is activated\r\n     * @param {?} url\r\n     * @param {?} exact\r\n     * @return {?}\r\n     */\r\n    Router.prototype.isActive = function (url, exact) {\r\n        if (url instanceof UrlTree) {\r\n            return containsTree(this.currentUrlTree, url, exact);\r\n        }\r\n        else {\r\n            var /** @type {?} */ urlTree = this.urlSerializer.parse(url);\r\n            return containsTree(this.currentUrlTree, urlTree, exact);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} params\r\n     * @return {?}\r\n     */\r\n    Router.prototype.removeEmptyProps = function (params) {\r\n        return Object.keys(params).reduce(function (result, key) {\r\n            var /** @type {?} */ value = params[key];\r\n            if (value !== null && value !== undefined) {\r\n                result[key] = value;\r\n            }\r\n            return result;\r\n        }, {});\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Router.prototype.processNavigations = function () {\r\n        var _this = this;\r\n        concatMap\r\n            .call(this.navigations, function (nav) {\r\n            if (nav) {\r\n                _this.executeScheduledNavigation(nav);\r\n                // a failed navigation should not stop the router from processing\r\n                // further navigations => the catch\r\n                return nav.promise.catch(function () { });\r\n            }\r\n            else {\r\n                return (of(null));\r\n            }\r\n        })\r\n            .subscribe(function () { });\r\n    };\r\n    /**\r\n     * @param {?} rawUrl\r\n     * @param {?} source\r\n     * @param {?} extras\r\n     * @return {?}\r\n     */\r\n    Router.prototype.scheduleNavigation = function (rawUrl, source, extras) {\r\n        var /** @type {?} */ lastNavigation = this.navigations.value;\r\n        // If the user triggers a navigation imperatively (e.g., by using navigateByUrl),\r\n        // and that navigation results in 'replaceState' that leads to the same URL,\r\n        // we should skip those.\r\n        if (lastNavigation && source !== 'imperative' && lastNavigation.source === 'imperative' &&\r\n            lastNavigation.rawUrl.toString() === rawUrl.toString()) {\r\n            return Promise.resolve(true); // return value is not used\r\n        }\r\n        // Because of a bug in IE and Edge, the location class fires two events (popstate and\r\n        // hashchange) every single time. The second one should be ignored. Otherwise, the URL will\r\n        // flicker.\r\n        if (lastNavigation && source == 'hashchange' && lastNavigation.source === 'popstate' &&\r\n            lastNavigation.rawUrl.toString() === rawUrl.toString()) {\r\n            return Promise.resolve(true); // return value is not used\r\n        }\r\n        var /** @type {?} */ resolve = null;\r\n        var /** @type {?} */ reject = null;\r\n        var /** @type {?} */ promise = new Promise(function (res, rej) {\r\n            resolve = res;\r\n            reject = rej;\r\n        });\r\n        var /** @type {?} */ id = ++this.navigationId;\r\n        this.navigations.next({ id: id, source: source, rawUrl: rawUrl, extras: extras, resolve: resolve, reject: reject, promise: promise });\r\n        // Make sure that the error is propagated even though `processNavigations` catch\r\n        // handler does not rethrow\r\n        return promise.catch(function (e) { return Promise.reject(e); });\r\n    };\r\n    /**\r\n     * @param {?} __0\r\n     * @return {?}\r\n     */\r\n    Router.prototype.executeScheduledNavigation = function (_a) {\r\n        var _this = this;\r\n        var id = _a.id, rawUrl = _a.rawUrl, extras = _a.extras, resolve = _a.resolve, reject = _a.reject;\r\n        var /** @type {?} */ url = this.urlHandlingStrategy.extract(rawUrl);\r\n        var /** @type {?} */ urlTransition = !this.navigated || url.toString() !== this.currentUrlTree.toString();\r\n        if (urlTransition && this.urlHandlingStrategy.shouldProcessUrl(rawUrl)) {\r\n            this.routerEvents.next(new NavigationStart(id, this.serializeUrl(url)));\r\n            Promise.resolve()\r\n                .then(function (_) { return _this.runNavigate(url, rawUrl, !!extras.skipLocationChange, !!extras.replaceUrl, id, null); })\r\n                .then(resolve, reject);\r\n        }\r\n        else if (urlTransition && this.rawUrlTree &&\r\n            this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)) {\r\n            this.routerEvents.next(new NavigationStart(id, this.serializeUrl(url)));\r\n            Promise.resolve()\r\n                .then(function (_) { return _this.runNavigate(url, rawUrl, false, false, id, createEmptyState(url, _this.rootComponentType).snapshot); })\r\n                .then(resolve, reject);\r\n        }\r\n        else {\r\n            this.rawUrlTree = rawUrl;\r\n            resolve(null);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} url\r\n     * @param {?} rawUrl\r\n     * @param {?} shouldPreventPushState\r\n     * @param {?} shouldReplaceUrl\r\n     * @param {?} id\r\n     * @param {?} precreatedState\r\n     * @return {?}\r\n     */\r\n    Router.prototype.runNavigate = function (url, rawUrl, shouldPreventPushState, shouldReplaceUrl, id, precreatedState) {\r\n        var _this = this;\r\n        if (id !== this.navigationId) {\r\n            this.location.go(this.urlSerializer.serialize(this.currentUrlTree));\r\n            this.routerEvents.next(new NavigationCancel(id, this.serializeUrl(url), \"Navigation ID \" + id + \" is not equal to the current navigation id \" + this.navigationId));\r\n            return Promise.resolve(false);\r\n        }\r\n        return new Promise(function (resolvePromise, rejectPromise) {\r\n            // create an observable of the url and route state snapshot\r\n            // this operation do not result in any side effects\r\n            var /** @type {?} */ urlAndSnapshot$;\r\n            if (!precreatedState) {\r\n                var /** @type {?} */ moduleInjector = _this.ngModule.injector;\r\n                var /** @type {?} */ redirectsApplied$ = applyRedirects(moduleInjector, _this.configLoader, _this.urlSerializer, url, _this.config);\r\n                urlAndSnapshot$ = mergeMap.call(redirectsApplied$, function (appliedUrl) {\r\n                    return map.call(recognize(_this.rootComponentType, _this.config, appliedUrl, _this.serializeUrl(appliedUrl)), function (snapshot) {\r\n                        _this.routerEvents.next(new RoutesRecognized(id, _this.serializeUrl(url), _this.serializeUrl(appliedUrl), snapshot));\r\n                        return { appliedUrl: appliedUrl, snapshot: snapshot };\r\n                    });\r\n                });\r\n            }\r\n            else {\r\n                urlAndSnapshot$ = of({ appliedUrl: url, snapshot: precreatedState });\r\n            }\r\n            var /** @type {?} */ beforePreactivationDone$ = mergeMap.call(urlAndSnapshot$, function (p) {\r\n                return map.call(_this.hooks.beforePreactivation(p.snapshot), function () { return p; });\r\n            });\r\n            // run preactivation: guards and data resolvers\r\n            var /** @type {?} */ preActivation;\r\n            var /** @type {?} */ preactivationTraverse$ = map.call(beforePreactivationDone$, function (_a) {\r\n                var appliedUrl = _a.appliedUrl, snapshot = _a.snapshot;\r\n                var /** @type {?} */ moduleInjector = _this.ngModule.injector;\r\n                preActivation =\r\n                    new PreActivation(snapshot, _this.currentRouterState.snapshot, moduleInjector);\r\n                preActivation.traverse(_this.outletMap);\r\n                return { appliedUrl: appliedUrl, snapshot: snapshot };\r\n            });\r\n            var /** @type {?} */ preactivationCheckGuards$ = mergeMap.call(preactivationTraverse$, function (_a) {\r\n                var appliedUrl = _a.appliedUrl, snapshot = _a.snapshot;\r\n                if (_this.navigationId !== id)\r\n                    return of(false);\r\n                return map.call(preActivation.checkGuards(), function (shouldActivate) {\r\n                    return { appliedUrl: appliedUrl, snapshot: snapshot, shouldActivate: shouldActivate };\r\n                });\r\n            });\r\n            var /** @type {?} */ preactivationResolveData$ = mergeMap.call(preactivationCheckGuards$, function (p) {\r\n                if (_this.navigationId !== id)\r\n                    return of(false);\r\n                if (p.shouldActivate) {\r\n                    return map.call(preActivation.resolveData(), function () { return p; });\r\n                }\r\n                else {\r\n                    return of(p);\r\n                }\r\n            });\r\n            var /** @type {?} */ preactivationDone$ = mergeMap.call(preactivationResolveData$, function (p) {\r\n                return map.call(_this.hooks.afterPreactivation(p.snapshot), function () { return p; });\r\n            });\r\n            // create router state\r\n            // this operation has side effects => route state is being affected\r\n            var /** @type {?} */ routerState$ = map.call(preactivationDone$, function (_a) {\r\n                var appliedUrl = _a.appliedUrl, snapshot = _a.snapshot, shouldActivate = _a.shouldActivate;\r\n                if (shouldActivate) {\r\n                    var /** @type {?} */ state = createRouterState(_this.routeReuseStrategy, snapshot, _this.currentRouterState);\r\n                    return { appliedUrl: appliedUrl, state: state, shouldActivate: shouldActivate };\r\n                }\r\n                else {\r\n                    return { appliedUrl: appliedUrl, state: null, shouldActivate: shouldActivate };\r\n                }\r\n            });\r\n            // applied the new router state\r\n            // this operation has side effects\r\n            var /** @type {?} */ navigationIsSuccessful;\r\n            var /** @type {?} */ storedState = _this.currentRouterState;\r\n            var /** @type {?} */ storedUrl = _this.currentUrlTree;\r\n            routerState$\r\n                .forEach(function (_a) {\r\n                var appliedUrl = _a.appliedUrl, state = _a.state, shouldActivate = _a.shouldActivate;\r\n                if (!shouldActivate || id !== _this.navigationId) {\r\n                    navigationIsSuccessful = false;\r\n                    return;\r\n                }\r\n                _this.currentUrlTree = appliedUrl;\r\n                _this.rawUrlTree = _this.urlHandlingStrategy.merge(_this.currentUrlTree, rawUrl);\r\n                _this.currentRouterState = state;\r\n                if (!shouldPreventPushState) {\r\n                    var /** @type {?} */ path = _this.urlSerializer.serialize(_this.rawUrlTree);\r\n                    if (_this.location.isCurrentPathEqualTo(path) || shouldReplaceUrl) {\r\n                        _this.location.replaceState(path);\r\n                    }\r\n                    else {\r\n                        _this.location.go(path);\r\n                    }\r\n                }\r\n                new ActivateRoutes(_this.routeReuseStrategy, state, storedState)\r\n                    .activate(_this.outletMap);\r\n                navigationIsSuccessful = true;\r\n            })\r\n                .then(function () {\r\n                if (navigationIsSuccessful) {\r\n                    _this.navigated = true;\r\n                    _this.routerEvents.next(new NavigationEnd(id, _this.serializeUrl(url), _this.serializeUrl(_this.currentUrlTree)));\r\n                    resolvePromise(true);\r\n                }\r\n                else {\r\n                    _this.resetUrlToCurrentUrlTree();\r\n                    _this.routerEvents.next(new NavigationCancel(id, _this.serializeUrl(url), ''));\r\n                    resolvePromise(false);\r\n                }\r\n            }, function (e) {\r\n                if (isNavigationCancelingError(e)) {\r\n                    _this.resetUrlToCurrentUrlTree();\r\n                    _this.navigated = true;\r\n                    _this.routerEvents.next(new NavigationCancel(id, _this.serializeUrl(url), e.message));\r\n                    resolvePromise(false);\r\n                }\r\n                else {\r\n                    _this.routerEvents.next(new NavigationError(id, _this.serializeUrl(url), e));\r\n                    try {\r\n                        resolvePromise(_this.errorHandler(e));\r\n                    }\r\n                    catch (ee) {\r\n                        rejectPromise(ee);\r\n                    }\r\n                }\r\n                _this.currentRouterState = storedState;\r\n                _this.currentUrlTree = storedUrl;\r\n                _this.rawUrlTree = _this.urlHandlingStrategy.merge(_this.currentUrlTree, rawUrl);\r\n                _this.location.replaceState(_this.serializeUrl(_this.rawUrlTree));\r\n            });\r\n        });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Router.prototype.resetUrlToCurrentUrlTree = function () {\r\n        var /** @type {?} */ path = this.urlSerializer.serialize(this.rawUrlTree);\r\n        this.location.replaceState(path);\r\n    };\r\n    return Router;\r\n}());\r\nvar CanActivate = (function () {\r\n    /**\r\n     * @param {?} path\r\n     */\r\n    function CanActivate(path) {\r\n        this.path = path;\r\n    }\r\n    Object.defineProperty(CanActivate.prototype, \"route\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.path[this.path.length - 1]; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return CanActivate;\r\n}());\r\nvar CanDeactivate = (function () {\r\n    /**\r\n     * @param {?} component\r\n     * @param {?} route\r\n     */\r\n    function CanDeactivate(component, route) {\r\n        this.component = component;\r\n        this.route = route;\r\n    }\r\n    return CanDeactivate;\r\n}());\r\nvar PreActivation = (function () {\r\n    /**\r\n     * @param {?} future\r\n     * @param {?} curr\r\n     * @param {?} moduleInjector\r\n     */\r\n    function PreActivation(future, curr, moduleInjector) {\r\n        this.future = future;\r\n        this.curr = curr;\r\n        this.moduleInjector = moduleInjector;\r\n        this.canActivateChecks = [];\r\n        this.canDeactivateChecks = [];\r\n    }\r\n    /**\r\n     * @param {?} parentOutletMap\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.traverse = function (parentOutletMap) {\r\n        var /** @type {?} */ futureRoot = this.future._root;\r\n        var /** @type {?} */ currRoot = this.curr ? this.curr._root : null;\r\n        this.traverseChildRoutes(futureRoot, currRoot, parentOutletMap, [futureRoot.value]);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.checkGuards = function () {\r\n        var _this = this;\r\n        if (this.canDeactivateChecks.length === 0 && this.canActivateChecks.length === 0) {\r\n            return of(true);\r\n        }\r\n        var /** @type {?} */ canDeactivate$ = this.runCanDeactivateChecks();\r\n        return mergeMap.call(canDeactivate$, function (canDeactivate) { return canDeactivate ? _this.runCanActivateChecks() : of(false); });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.resolveData = function () {\r\n        var _this = this;\r\n        if (this.canActivateChecks.length === 0)\r\n            return of(null);\r\n        var /** @type {?} */ checks$ = from(this.canActivateChecks);\r\n        var /** @type {?} */ runningChecks$ = concatMap.call(checks$, function (check) { return _this.runResolve(check.route); });\r\n        return reduce.call(runningChecks$, function (_, __) { return _; });\r\n    };\r\n    /**\r\n     * @param {?} futureNode\r\n     * @param {?} currNode\r\n     * @param {?} outletMap\r\n     * @param {?} futurePath\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.traverseChildRoutes = function (futureNode, currNode, outletMap, futurePath) {\r\n        var _this = this;\r\n        var /** @type {?} */ prevChildren = nodeChildrenAsMap(currNode);\r\n        futureNode.children.forEach(function (c) {\r\n            _this.traverseRoutes(c, prevChildren[c.value.outlet], outletMap, futurePath.concat([c.value]));\r\n            delete prevChildren[c.value.outlet];\r\n        });\r\n        forEach(prevChildren, function (v, k) { return _this.deactiveRouteAndItsChildren(v, /** @type {?} */ ((outletMap))._outlets[k]); });\r\n    };\r\n    /**\r\n     * @param {?} futureNode\r\n     * @param {?} currNode\r\n     * @param {?} parentOutletMap\r\n     * @param {?} futurePath\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.traverseRoutes = function (futureNode, currNode, parentOutletMap, futurePath) {\r\n        var /** @type {?} */ future = futureNode.value;\r\n        var /** @type {?} */ curr = currNode ? currNode.value : null;\r\n        var /** @type {?} */ outlet = parentOutletMap ? parentOutletMap._outlets[futureNode.value.outlet] : null;\r\n        // reusing the node\r\n        if (curr && future._routeConfig === curr._routeConfig) {\r\n            if (this.shouldRunGuardsAndResolvers(curr, future, /** @type {?} */ ((future._routeConfig)).runGuardsAndResolvers)) {\r\n                this.canActivateChecks.push(new CanActivate(futurePath));\r\n                this.canDeactivateChecks.push(new CanDeactivate(/** @type {?} */ ((outlet)).component, curr));\r\n            }\r\n            else {\r\n                // we need to set the data\r\n                future.data = curr.data;\r\n                future._resolvedData = curr._resolvedData;\r\n            }\r\n            // If we have a component, we need to go through an outlet.\r\n            if (future.component) {\r\n                this.traverseChildRoutes(futureNode, currNode, outlet ? outlet.outletMap : null, futurePath);\r\n            }\r\n            else {\r\n                this.traverseChildRoutes(futureNode, currNode, parentOutletMap, futurePath);\r\n            }\r\n        }\r\n        else {\r\n            if (curr) {\r\n                this.deactiveRouteAndItsChildren(currNode, outlet);\r\n            }\r\n            this.canActivateChecks.push(new CanActivate(futurePath));\r\n            // If we have a component, we need to go through an outlet.\r\n            if (future.component) {\r\n                this.traverseChildRoutes(futureNode, null, outlet ? outlet.outletMap : null, futurePath);\r\n            }\r\n            else {\r\n                this.traverseChildRoutes(futureNode, null, parentOutletMap, futurePath);\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} curr\r\n     * @param {?} future\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.shouldRunGuardsAndResolvers = function (curr, future, mode) {\r\n        switch (mode) {\r\n            case 'always':\r\n                return true;\r\n            case 'paramsOrQueryParamsChange':\r\n                return !equalParamsAndUrlSegments(curr, future) ||\r\n                    !shallowEqual(curr.queryParams, future.queryParams);\r\n            case 'paramsChange':\r\n            default:\r\n                return !equalParamsAndUrlSegments(curr, future);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} route\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.deactiveRouteAndItsChildren = function (route, outlet) {\r\n        var _this = this;\r\n        var /** @type {?} */ prevChildren = nodeChildrenAsMap(route);\r\n        var /** @type {?} */ r = route.value;\r\n        forEach(prevChildren, function (v, k) {\r\n            if (!r.component) {\r\n                _this.deactiveRouteAndItsChildren(v, outlet);\r\n            }\r\n            else if (!!outlet) {\r\n                _this.deactiveRouteAndItsChildren(v, outlet.outletMap._outlets[k]);\r\n            }\r\n            else {\r\n                _this.deactiveRouteAndItsChildren(v, null);\r\n            }\r\n        });\r\n        if (!r.component) {\r\n            this.canDeactivateChecks.push(new CanDeactivate(null, r));\r\n        }\r\n        else if (outlet && outlet.isActivated) {\r\n            this.canDeactivateChecks.push(new CanDeactivate(outlet.component, r));\r\n        }\r\n        else {\r\n            this.canDeactivateChecks.push(new CanDeactivate(null, r));\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.runCanDeactivateChecks = function () {\r\n        var _this = this;\r\n        var /** @type {?} */ checks$ = from(this.canDeactivateChecks);\r\n        var /** @type {?} */ runningChecks$ = mergeMap.call(checks$, function (check) { return _this.runCanDeactivate(check.component, check.route); });\r\n        return every.call(runningChecks$, function (result) { return result === true; });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.runCanActivateChecks = function () {\r\n        var _this = this;\r\n        var /** @type {?} */ checks$ = from(this.canActivateChecks);\r\n        var /** @type {?} */ runningChecks$ = mergeMap.call(checks$, function (check) { return andObservables(from([_this.runCanActivateChild(check.path), _this.runCanActivate(check.route)])); });\r\n        return every.call(runningChecks$, function (result) { return result === true; });\r\n    };\r\n    /**\r\n     * @param {?} future\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.runCanActivate = function (future) {\r\n        var _this = this;\r\n        var /** @type {?} */ canActivate = future._routeConfig ? future._routeConfig.canActivate : null;\r\n        if (!canActivate || canActivate.length === 0)\r\n            return of(true);\r\n        var /** @type {?} */ obs = map.call(from(canActivate), function (c) {\r\n            var /** @type {?} */ guard = _this.getToken(c, future);\r\n            var /** @type {?} */ observable;\r\n            if (guard.canActivate) {\r\n                observable = wrapIntoObservable(guard.canActivate(future, _this.future));\r\n            }\r\n            else {\r\n                observable = wrapIntoObservable(guard(future, _this.future));\r\n            }\r\n            return first.call(observable);\r\n        });\r\n        return andObservables(obs);\r\n    };\r\n    /**\r\n     * @param {?} path\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.runCanActivateChild = function (path) {\r\n        var _this = this;\r\n        var /** @type {?} */ future = path[path.length - 1];\r\n        var /** @type {?} */ canActivateChildGuards = path.slice(0, path.length - 1)\r\n            .reverse()\r\n            .map(function (p) { return _this.extractCanActivateChild(p); })\r\n            .filter(function (_) { return _ !== null; });\r\n        return andObservables(map.call(from(canActivateChildGuards), function (d) {\r\n            var /** @type {?} */ obs = map.call(from(d.guards), function (c) {\r\n                var /** @type {?} */ guard = _this.getToken(c, d.node);\r\n                var /** @type {?} */ observable;\r\n                if (guard.canActivateChild) {\r\n                    observable = wrapIntoObservable(guard.canActivateChild(future, _this.future));\r\n                }\r\n                else {\r\n                    observable = wrapIntoObservable(guard(future, _this.future));\r\n                }\r\n                return first.call(observable);\r\n            });\r\n            return andObservables(obs);\r\n        }));\r\n    };\r\n    /**\r\n     * @param {?} p\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.extractCanActivateChild = function (p) {\r\n        var /** @type {?} */ canActivateChild = p._routeConfig ? p._routeConfig.canActivateChild : null;\r\n        if (!canActivateChild || canActivateChild.length === 0)\r\n            return null;\r\n        return { node: p, guards: canActivateChild };\r\n    };\r\n    /**\r\n     * @param {?} component\r\n     * @param {?} curr\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.runCanDeactivate = function (component, curr) {\r\n        var _this = this;\r\n        var /** @type {?} */ canDeactivate = curr && curr._routeConfig ? curr._routeConfig.canDeactivate : null;\r\n        if (!canDeactivate || canDeactivate.length === 0)\r\n            return of(true);\r\n        var /** @type {?} */ canDeactivate$ = mergeMap.call(from(canDeactivate), function (c) {\r\n            var /** @type {?} */ guard = _this.getToken(c, curr);\r\n            var /** @type {?} */ observable;\r\n            if (guard.canDeactivate) {\r\n                observable =\r\n                    wrapIntoObservable(guard.canDeactivate(component, curr, _this.curr, _this.future));\r\n            }\r\n            else {\r\n                observable = wrapIntoObservable(guard(component, curr, _this.curr, _this.future));\r\n            }\r\n            return first.call(observable);\r\n        });\r\n        return every.call(canDeactivate$, function (result) { return result === true; });\r\n    };\r\n    /**\r\n     * @param {?} future\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.runResolve = function (future) {\r\n        var /** @type {?} */ resolve = future._resolve;\r\n        return map.call(this.resolveNode(resolve, future), function (resolvedData) {\r\n            future._resolvedData = resolvedData;\r\n            future.data = __assign({}, future.data, inheritedParamsDataResolve(future).resolve);\r\n            return null;\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} resolve\r\n     * @param {?} future\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.resolveNode = function (resolve, future) {\r\n        var _this = this;\r\n        return waitForMap(resolve, function (k, v) {\r\n            var /** @type {?} */ resolver = _this.getToken(v, future);\r\n            return resolver.resolve ? wrapIntoObservable(resolver.resolve(future, _this.future)) :\r\n                wrapIntoObservable(resolver(future, _this.future));\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} token\r\n     * @param {?} snapshot\r\n     * @return {?}\r\n     */\r\n    PreActivation.prototype.getToken = function (token, snapshot) {\r\n        var /** @type {?} */ config = closestLoadedConfig(snapshot);\r\n        var /** @type {?} */ injector = config ? config.module.injector : this.moduleInjector;\r\n        return injector.get(token);\r\n    };\r\n    return PreActivation;\r\n}());\r\nvar ActivateRoutes = (function () {\r\n    /**\r\n     * @param {?} routeReuseStrategy\r\n     * @param {?} futureState\r\n     * @param {?} currState\r\n     */\r\n    function ActivateRoutes(routeReuseStrategy, futureState, currState) {\r\n        this.routeReuseStrategy = routeReuseStrategy;\r\n        this.futureState = futureState;\r\n        this.currState = currState;\r\n    }\r\n    /**\r\n     * @param {?} parentOutletMap\r\n     * @return {?}\r\n     */\r\n    ActivateRoutes.prototype.activate = function (parentOutletMap) {\r\n        var /** @type {?} */ futureRoot = this.futureState._root;\r\n        var /** @type {?} */ currRoot = this.currState ? this.currState._root : null;\r\n        this.deactivateChildRoutes(futureRoot, currRoot, parentOutletMap);\r\n        advanceActivatedRoute(this.futureState.root);\r\n        this.activateChildRoutes(futureRoot, currRoot, parentOutletMap);\r\n    };\r\n    /**\r\n     * @param {?} futureNode\r\n     * @param {?} currNode\r\n     * @param {?} outletMap\r\n     * @return {?}\r\n     */\r\n    ActivateRoutes.prototype.deactivateChildRoutes = function (futureNode, currNode, outletMap) {\r\n        var _this = this;\r\n        var /** @type {?} */ prevChildren = nodeChildrenAsMap(currNode);\r\n        futureNode.children.forEach(function (c) {\r\n            _this.deactivateRoutes(c, prevChildren[c.value.outlet], outletMap);\r\n            delete prevChildren[c.value.outlet];\r\n        });\r\n        forEach(prevChildren, function (v, k) { return _this.deactiveRouteAndItsChildren(v, outletMap); });\r\n    };\r\n    /**\r\n     * @param {?} futureNode\r\n     * @param {?} currNode\r\n     * @param {?} outletMap\r\n     * @return {?}\r\n     */\r\n    ActivateRoutes.prototype.activateChildRoutes = function (futureNode, currNode, outletMap) {\r\n        var _this = this;\r\n        var /** @type {?} */ prevChildren = nodeChildrenAsMap(currNode);\r\n        futureNode.children.forEach(function (c) { _this.activateRoutes(c, prevChildren[c.value.outlet], outletMap); });\r\n    };\r\n    /**\r\n     * @param {?} futureNode\r\n     * @param {?} currNode\r\n     * @param {?} parentOutletMap\r\n     * @return {?}\r\n     */\r\n    ActivateRoutes.prototype.deactivateRoutes = function (futureNode, currNode, parentOutletMap) {\r\n        var /** @type {?} */ future = futureNode.value;\r\n        var /** @type {?} */ curr = currNode ? currNode.value : null;\r\n        // reusing the node\r\n        if (future === curr) {\r\n            // If we have a normal route, we need to go through an outlet.\r\n            if (future.component) {\r\n                var /** @type {?} */ outlet = getOutlet(parentOutletMap, future);\r\n                this.deactivateChildRoutes(futureNode, currNode, outlet.outletMap);\r\n            }\r\n            else {\r\n                this.deactivateChildRoutes(futureNode, currNode, parentOutletMap);\r\n            }\r\n        }\r\n        else {\r\n            if (curr) {\r\n                this.deactiveRouteAndItsChildren(currNode, parentOutletMap);\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} futureNode\r\n     * @param {?} currNode\r\n     * @param {?} parentOutletMap\r\n     * @return {?}\r\n     */\r\n    ActivateRoutes.prototype.activateRoutes = function (futureNode, currNode, parentOutletMap) {\r\n        var /** @type {?} */ future = futureNode.value;\r\n        var /** @type {?} */ curr = currNode ? currNode.value : null;\r\n        // reusing the node\r\n        if (future === curr) {\r\n            // advance the route to push the parameters\r\n            advanceActivatedRoute(future);\r\n            // If we have a normal route, we need to go through an outlet.\r\n            if (future.component) {\r\n                var /** @type {?} */ outlet = getOutlet(parentOutletMap, future);\r\n                this.activateChildRoutes(futureNode, currNode, outlet.outletMap);\r\n            }\r\n            else {\r\n                this.activateChildRoutes(futureNode, currNode, parentOutletMap);\r\n            }\r\n        }\r\n        else {\r\n            // if we have a normal route, we need to advance the route\r\n            // and place the component into the outlet. After that recurse.\r\n            if (future.component) {\r\n                advanceActivatedRoute(future);\r\n                var /** @type {?} */ outlet = getOutlet(parentOutletMap, futureNode.value);\r\n                if (this.routeReuseStrategy.shouldAttach(future.snapshot)) {\r\n                    var /** @type {?} */ stored = ((this.routeReuseStrategy.retrieve(future.snapshot)));\r\n                    this.routeReuseStrategy.store(future.snapshot, null);\r\n                    outlet.attach(stored.componentRef, stored.route.value);\r\n                    advanceActivatedRouteNodeAndItsChildren(stored.route);\r\n                }\r\n                else {\r\n                    var /** @type {?} */ outletMap = new RouterOutletMap();\r\n                    this.placeComponentIntoOutlet(outletMap, future, outlet);\r\n                    this.activateChildRoutes(futureNode, null, outletMap);\r\n                }\r\n            }\r\n            else {\r\n                advanceActivatedRoute(future);\r\n                this.activateChildRoutes(futureNode, null, parentOutletMap);\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} outletMap\r\n     * @param {?} future\r\n     * @param {?} outlet\r\n     * @return {?}\r\n     */\r\n    ActivateRoutes.prototype.placeComponentIntoOutlet = function (outletMap, future, outlet) {\r\n        var /** @type {?} */ config = parentLoadedConfig(future.snapshot);\r\n        var /** @type {?} */ cmpFactoryResolver = config ? config.module.componentFactoryResolver : null;\r\n        outlet.activateWith(future, cmpFactoryResolver, outletMap);\r\n    };\r\n    /**\r\n     * @param {?} route\r\n     * @param {?} parentOutletMap\r\n     * @return {?}\r\n     */\r\n    ActivateRoutes.prototype.deactiveRouteAndItsChildren = function (route, parentOutletMap) {\r\n        if (this.routeReuseStrategy.shouldDetach(route.value.snapshot)) {\r\n            this.detachAndStoreRouteSubtree(route, parentOutletMap);\r\n        }\r\n        else {\r\n            this.deactiveRouteAndOutlet(route, parentOutletMap);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} route\r\n     * @param {?} parentOutletMap\r\n     * @return {?}\r\n     */\r\n    ActivateRoutes.prototype.detachAndStoreRouteSubtree = function (route, parentOutletMap) {\r\n        var /** @type {?} */ outlet = getOutlet(parentOutletMap, route.value);\r\n        var /** @type {?} */ componentRef = outlet.detach();\r\n        this.routeReuseStrategy.store(route.value.snapshot, { componentRef: componentRef, route: route });\r\n    };\r\n    /**\r\n     * @param {?} route\r\n     * @param {?} parentOutletMap\r\n     * @return {?}\r\n     */\r\n    ActivateRoutes.prototype.deactiveRouteAndOutlet = function (route, parentOutletMap) {\r\n        var _this = this;\r\n        var /** @type {?} */ prevChildren = nodeChildrenAsMap(route);\r\n        var /** @type {?} */ outlet = null;\r\n        // getOutlet throws when cannot find the right outlet,\r\n        // which can happen if an outlet was in an NgIf and was removed\r\n        try {\r\n            outlet = getOutlet(parentOutletMap, route.value);\r\n        }\r\n        catch (e) {\r\n            return;\r\n        }\r\n        var /** @type {?} */ childOutletMap = outlet.outletMap;\r\n        forEach(prevChildren, function (v, k) {\r\n            if (route.value.component) {\r\n                _this.deactiveRouteAndItsChildren(v, childOutletMap);\r\n            }\r\n            else {\r\n                _this.deactiveRouteAndItsChildren(v, parentOutletMap);\r\n            }\r\n        });\r\n        if (outlet && outlet.isActivated) {\r\n            outlet.deactivate();\r\n        }\r\n    };\r\n    return ActivateRoutes;\r\n}());\r\n/**\r\n * @param {?} node\r\n * @return {?}\r\n */\r\nfunction advanceActivatedRouteNodeAndItsChildren(node) {\r\n    advanceActivatedRoute(node.value);\r\n    node.children.forEach(advanceActivatedRouteNodeAndItsChildren);\r\n}\r\n/**\r\n * @param {?} snapshot\r\n * @return {?}\r\n */\r\nfunction parentLoadedConfig(snapshot) {\r\n    for (var /** @type {?} */ s = snapshot.parent; s; s = s.parent) {\r\n        var /** @type {?} */ route = s._routeConfig;\r\n        if (route && route._loadedConfig)\r\n            return route._loadedConfig;\r\n        if (route && route.component)\r\n            return null;\r\n    }\r\n    return null;\r\n}\r\n/**\r\n * @param {?} snapshot\r\n * @return {?}\r\n */\r\nfunction closestLoadedConfig(snapshot) {\r\n    if (!snapshot)\r\n        return null;\r\n    for (var /** @type {?} */ s = snapshot.parent; s; s = s.parent) {\r\n        var /** @type {?} */ route = s._routeConfig;\r\n        if (route && route._loadedConfig)\r\n            return route._loadedConfig;\r\n    }\r\n    return null;\r\n}\r\n/**\r\n * @template T\r\n * @param {?} node\r\n * @return {?}\r\n */\r\nfunction nodeChildrenAsMap(node) {\r\n    var /** @type {?} */ map$$1 = {};\r\n    if (node) {\r\n        node.children.forEach(function (child) { return map$$1[child.value.outlet] = child; });\r\n    }\r\n    return map$$1;\r\n}\r\n/**\r\n * @param {?} outletMap\r\n * @param {?} route\r\n * @return {?}\r\n */\r\nfunction getOutlet(outletMap, route) {\r\n    var /** @type {?} */ outlet = outletMap._outlets[route.outlet];\r\n    if (!outlet) {\r\n        var /** @type {?} */ componentName = ((route.component)).name;\r\n        if (route.outlet === PRIMARY_OUTLET) {\r\n            throw new Error(\"Cannot find primary outlet to load '\" + componentName + \"'\");\r\n        }\r\n        else {\r\n            throw new Error(\"Cannot find the outlet \" + route.outlet + \" to load '\" + componentName + \"'\");\r\n        }\r\n    }\r\n    return outlet;\r\n}\r\n/**\r\n * @param {?} commands\r\n * @return {?}\r\n */\r\nfunction validateCommands(commands) {\r\n    for (var /** @type {?} */ i = 0; i < commands.length; i++) {\r\n        var /** @type {?} */ cmd = commands[i];\r\n        if (cmd == null) {\r\n            throw new Error(\"The requested path contains \" + cmd + \" segment at index \" + i);\r\n        }\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Lets you link to specific parts of your app.\r\n *\r\n * \\@howToUse\r\n *\r\n * Consider the following route configuration:\r\n * `[{ path: 'user/:name', component: UserCmp }]`\r\n *\r\n * When linking to this `user/:name` route, you can write:\r\n * `<a routerLink='/user/bob'>link to user component</a>`\r\n *\r\n * \\@description\r\n *\r\n * The RouterLink directives let you link to specific parts of your app.\r\n *\r\n * When the link is static, you can use the directive as follows:\r\n * `<a routerLink=\"/user/bob\">link to user component</a>`\r\n *\r\n * If you use dynamic values to generate the link, you can pass an array of path\r\n * segments, followed by the params for each segment.\r\n *\r\n * For instance `['/team', teamId, 'user', userName, {details: true}]`\r\n * means that we want to generate a link to `/team/11/user/bob;details=true`.\r\n *\r\n * Multiple static segments can be merged into one\r\n * (e.g., `['/team/11/user', userName, {details: true}]`).\r\n *\r\n * The first segment name can be prepended with `/`, `./`, or `../`:\r\n * * If the first segment begins with `/`, the router will look up the route from the root of the\r\n *   app.\r\n * * If the first segment begins with `./`, or doesn't begin with a slash, the router will\r\n *   instead look in the children of the current activated route.\r\n * * And if the first segment begins with `../`, the router will go up one level.\r\n *\r\n * You can set query params and fragment as follows:\r\n *\r\n * ```\r\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" fragment=\"education\">\r\n *   link to user component\r\n * </a>\r\n * ```\r\n * RouterLink will use these to generate this link: `/user/bob#education?debug=true`.\r\n *\r\n * (Deprecated in v4.0.0 use `queryParamsHandling` instead) You can also tell the\r\n * directive to preserve the current query params and fragment:\r\n *\r\n * ```\r\n * <a [routerLink]=\"['/user/bob']\" preserveQueryParams preserveFragment>\r\n *   link to user component\r\n * </a>\r\n * ```\r\n *\r\n * You can tell the directive to how to handle queryParams, available options are:\r\n *  - 'merge' merge the queryParams into the current queryParams\r\n *  - 'preserve' prserve the current queryParams\r\n *  - default / '' use the queryParams only\r\n *  same options for {\\@link NavigationExtras#queryParamsHandling}\r\n *\r\n * ```\r\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" queryParamsHandling=\"merge\">\r\n *   link to user component\r\n * </a>\r\n * ```\r\n *\r\n * The router link directive always treats the provided input as a delta to the current url.\r\n *\r\n * For instance, if the current url is `/user/(box//aux:team)`.\r\n *\r\n * Then the following link `<a [routerLink]=\"['/user/jim']\">Jim</a>` will generate the link\r\n * `/user/(jim//aux:team)`.\r\n *\r\n * \\@ngModule RouterModule\r\n *\r\n * See {\\@link Router#createUrlTree} for more information.\r\n *\r\n * \\@stable\r\n */\r\nvar RouterLink = (function () {\r\n    /**\r\n     * @param {?} router\r\n     * @param {?} route\r\n     * @param {?} tabIndex\r\n     * @param {?} renderer\r\n     * @param {?} el\r\n     */\r\n    function RouterLink(router, route, tabIndex, renderer, el) {\r\n        this.router = router;\r\n        this.route = route;\r\n        this.commands = [];\r\n        if (tabIndex == null) {\r\n            renderer.setElementAttribute(el.nativeElement, 'tabindex', '0');\r\n        }\r\n    }\r\n    Object.defineProperty(RouterLink.prototype, \"routerLink\", {\r\n        /**\r\n         * @param {?} commands\r\n         * @return {?}\r\n         */\r\n        set: function (commands) {\r\n            if (commands != null) {\r\n                this.commands = Array.isArray(commands) ? commands : [commands];\r\n            }\r\n            else {\r\n                this.commands = [];\r\n            }\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(RouterLink.prototype, \"preserveQueryParams\", {\r\n        /**\r\n         * @deprecated 4.0.0 use `queryParamsHandling` instead.\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) {\r\n            if (isDevMode() && (console) && (console.warn)) {\r\n                console.warn('preserveQueryParams is deprecated!, use queryParamsHandling instead.');\r\n            }\r\n            this.preserve = value;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterLink.prototype.onClick = function () {\r\n        var /** @type {?} */ extras = {\r\n            skipLocationChange: attrBoolValue(this.skipLocationChange),\r\n            replaceUrl: attrBoolValue(this.replaceUrl),\r\n        };\r\n        this.router.navigateByUrl(this.urlTree, extras);\r\n        return true;\r\n    };\r\n    Object.defineProperty(RouterLink.prototype, \"urlTree\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this.router.createUrlTree(this.commands, {\r\n                relativeTo: this.route,\r\n                queryParams: this.queryParams,\r\n                fragment: this.fragment,\r\n                preserveQueryParams: attrBoolValue(this.preserve),\r\n                queryParamsHandling: this.queryParamsHandling,\r\n                preserveFragment: attrBoolValue(this.preserveFragment),\r\n            });\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return RouterLink;\r\n}());\r\nRouterLink.decorators = [\r\n    { type: Directive, args: [{ selector: ':not(a)[routerLink]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRouterLink.ctorParameters = function () { return [\r\n    { type: Router, },\r\n    { type: ActivatedRoute, },\r\n    { type: undefined, decorators: [{ type: Attribute, args: ['tabindex',] },] },\r\n    { type: Renderer, },\r\n    { type: ElementRef, },\r\n]; };\r\nRouterLink.propDecorators = {\r\n    'queryParams': [{ type: Input },],\r\n    'fragment': [{ type: Input },],\r\n    'queryParamsHandling': [{ type: Input },],\r\n    'preserveFragment': [{ type: Input },],\r\n    'skipLocationChange': [{ type: Input },],\r\n    'replaceUrl': [{ type: Input },],\r\n    'routerLink': [{ type: Input },],\r\n    'preserveQueryParams': [{ type: Input },],\r\n    'onClick': [{ type: HostListener, args: ['click',] },],\r\n};\r\n/**\r\n * \\@whatItDoes Lets you link to specific parts of your app.\r\n *\r\n * See {\\@link RouterLink} for more information.\r\n *\r\n * \\@ngModule RouterModule\r\n *\r\n * \\@stable\r\n */\r\nvar RouterLinkWithHref = (function () {\r\n    /**\r\n     * @param {?} router\r\n     * @param {?} route\r\n     * @param {?} locationStrategy\r\n     */\r\n    function RouterLinkWithHref(router, route, locationStrategy) {\r\n        var _this = this;\r\n        this.router = router;\r\n        this.route = route;\r\n        this.locationStrategy = locationStrategy;\r\n        this.commands = [];\r\n        this.subscription = router.events.subscribe(function (s) {\r\n            if (s instanceof NavigationEnd) {\r\n                _this.updateTargetUrlAndHref();\r\n            }\r\n        });\r\n    }\r\n    Object.defineProperty(RouterLinkWithHref.prototype, \"routerLink\", {\r\n        /**\r\n         * @param {?} commands\r\n         * @return {?}\r\n         */\r\n        set: function (commands) {\r\n            if (commands != null) {\r\n                this.commands = Array.isArray(commands) ? commands : [commands];\r\n            }\r\n            else {\r\n                this.commands = [];\r\n            }\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(RouterLinkWithHref.prototype, \"preserveQueryParams\", {\r\n        /**\r\n         * @param {?} value\r\n         * @return {?}\r\n         */\r\n        set: function (value) {\r\n            if (isDevMode() && (console) && (console.warn)) {\r\n                console.warn('preserveQueryParams is deprecated, use queryParamsHandling instead.');\r\n            }\r\n            this.preserve = value;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    RouterLinkWithHref.prototype.ngOnChanges = function (changes) { this.updateTargetUrlAndHref(); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterLinkWithHref.prototype.ngOnDestroy = function () { this.subscription.unsubscribe(); };\r\n    /**\r\n     * @param {?} button\r\n     * @param {?} ctrlKey\r\n     * @param {?} metaKey\r\n     * @return {?}\r\n     */\r\n    RouterLinkWithHref.prototype.onClick = function (button, ctrlKey, metaKey) {\r\n        if (button !== 0 || ctrlKey || metaKey) {\r\n            return true;\r\n        }\r\n        if (typeof this.target === 'string' && this.target != '_self') {\r\n            return true;\r\n        }\r\n        var /** @type {?} */ extras = {\r\n            skipLocationChange: attrBoolValue(this.skipLocationChange),\r\n            replaceUrl: attrBoolValue(this.replaceUrl),\r\n        };\r\n        this.router.navigateByUrl(this.urlTree, extras);\r\n        return false;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterLinkWithHref.prototype.updateTargetUrlAndHref = function () {\r\n        this.href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree));\r\n    };\r\n    Object.defineProperty(RouterLinkWithHref.prototype, \"urlTree\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this.router.createUrlTree(this.commands, {\r\n                relativeTo: this.route,\r\n                queryParams: this.queryParams,\r\n                fragment: this.fragment,\r\n                preserveQueryParams: attrBoolValue(this.preserve),\r\n                queryParamsHandling: this.queryParamsHandling,\r\n                preserveFragment: attrBoolValue(this.preserveFragment),\r\n            });\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return RouterLinkWithHref;\r\n}());\r\nRouterLinkWithHref.decorators = [\r\n    { type: Directive, args: [{ selector: 'a[routerLink]' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRouterLinkWithHref.ctorParameters = function () { return [\r\n    { type: Router, },\r\n    { type: ActivatedRoute, },\r\n    { type: LocationStrategy, },\r\n]; };\r\nRouterLinkWithHref.propDecorators = {\r\n    'target': [{ type: HostBinding, args: ['attr.target',] }, { type: Input },],\r\n    'queryParams': [{ type: Input },],\r\n    'fragment': [{ type: Input },],\r\n    'queryParamsHandling': [{ type: Input },],\r\n    'preserveFragment': [{ type: Input },],\r\n    'skipLocationChange': [{ type: Input },],\r\n    'replaceUrl': [{ type: Input },],\r\n    'href': [{ type: HostBinding },],\r\n    'routerLink': [{ type: Input },],\r\n    'preserveQueryParams': [{ type: Input },],\r\n    'onClick': [{ type: HostListener, args: ['click', ['$event.button', '$event.ctrlKey', '$event.metaKey'],] },],\r\n};\r\n/**\r\n * @param {?} s\r\n * @return {?}\r\n */\r\nfunction attrBoolValue(s) {\r\n    return s === '' || !!s;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Lets you add a CSS class to an element when the link's route becomes active.\r\n *\r\n * \\@howToUse\r\n *\r\n * ```\r\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\">Bob</a>\r\n * ```\r\n *\r\n * \\@description\r\n *\r\n * The RouterLinkActive directive lets you add a CSS class to an element when the link's route\r\n * becomes active.\r\n *\r\n * Consider the following example:\r\n *\r\n * ```\r\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\">Bob</a>\r\n * ```\r\n *\r\n * When the url is either '/user' or '/user/bob', the active-link class will\r\n * be added to the `a` tag. If the url changes, the class will be removed.\r\n *\r\n * You can set more than one class, as follows:\r\n *\r\n * ```\r\n * <a routerLink=\"/user/bob\" routerLinkActive=\"class1 class2\">Bob</a>\r\n * <a routerLink=\"/user/bob\" [routerLinkActive]=\"['class1', 'class2']\">Bob</a>\r\n * ```\r\n *\r\n * You can configure RouterLinkActive by passing `exact: true`. This will add the classes\r\n * only when the url matches the link exactly.\r\n *\r\n * ```\r\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact:\r\n * true}\">Bob</a>\r\n * ```\r\n *\r\n * You can assign the RouterLinkActive instance to a template variable and directly check\r\n * the `isActive` status.\r\n * ```\r\n * <a routerLink=\"/user/bob\" routerLinkActive #rla=\"routerLinkActive\">\r\n *   Bob {{ rla.isActive ? '(already open)' : ''}}\r\n * </a>\r\n * ```\r\n *\r\n * Finally, you can apply the RouterLinkActive directive to an ancestor of a RouterLink.\r\n *\r\n * ```\r\n * <div routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact: true}\">\r\n *   <a routerLink=\"/user/jim\">Jim</a>\r\n *   <a routerLink=\"/user/bob\">Bob</a>\r\n * </div>\r\n * ```\r\n *\r\n * This will set the active-link class on the div tag if the url is either '/user/jim' or\r\n * '/user/bob'.\r\n *\r\n * \\@ngModule RouterModule\r\n *\r\n * \\@stable\r\n */\r\nvar RouterLinkActive = (function () {\r\n    /**\r\n     * @param {?} router\r\n     * @param {?} element\r\n     * @param {?} renderer\r\n     * @param {?} cdr\r\n     */\r\n    function RouterLinkActive(router, element, renderer, cdr) {\r\n        var _this = this;\r\n        this.router = router;\r\n        this.element = element;\r\n        this.renderer = renderer;\r\n        this.cdr = cdr;\r\n        this.classes = [];\r\n        this.active = false;\r\n        this.routerLinkActiveOptions = { exact: false };\r\n        this.subscription = router.events.subscribe(function (s) {\r\n            if (s instanceof NavigationEnd) {\r\n                _this.update();\r\n            }\r\n        });\r\n    }\r\n    Object.defineProperty(RouterLinkActive.prototype, \"isActive\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.active; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterLinkActive.prototype.ngAfterContentInit = function () {\r\n        var _this = this;\r\n        this.links.changes.subscribe(function (_) { return _this.update(); });\r\n        this.linksWithHrefs.changes.subscribe(function (_) { return _this.update(); });\r\n        this.update();\r\n    };\r\n    Object.defineProperty(RouterLinkActive.prototype, \"routerLinkActive\", {\r\n        /**\r\n         * @param {?} data\r\n         * @return {?}\r\n         */\r\n        set: function (data) {\r\n            var /** @type {?} */ classes = Array.isArray(data) ? data : data.split(' ');\r\n            this.classes = classes.filter(function (c) { return !!c; });\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} changes\r\n     * @return {?}\r\n     */\r\n    RouterLinkActive.prototype.ngOnChanges = function (changes) { this.update(); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterLinkActive.prototype.ngOnDestroy = function () { this.subscription.unsubscribe(); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterLinkActive.prototype.update = function () {\r\n        var _this = this;\r\n        if (!this.links || !this.linksWithHrefs || !this.router.navigated)\r\n            return;\r\n        var /** @type {?} */ hasActiveLinks = this.hasActiveLinks();\r\n        // react only when status has changed to prevent unnecessary dom updates\r\n        if (this.active !== hasActiveLinks) {\r\n            this.classes.forEach(function (c) { return _this.renderer.setElementClass(_this.element.nativeElement, c, hasActiveLinks); });\r\n            Promise.resolve(hasActiveLinks).then(function (active) { return _this.active = active; });\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} router\r\n     * @return {?}\r\n     */\r\n    RouterLinkActive.prototype.isLinkActive = function (router) {\r\n        var _this = this;\r\n        return function (link) { return router.isActive(link.urlTree, _this.routerLinkActiveOptions.exact); };\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterLinkActive.prototype.hasActiveLinks = function () {\r\n        return this.links.some(this.isLinkActive(this.router)) ||\r\n            this.linksWithHrefs.some(this.isLinkActive(this.router));\r\n    };\r\n    return RouterLinkActive;\r\n}());\r\nRouterLinkActive.decorators = [\r\n    { type: Directive, args: [{\r\n                selector: '[routerLinkActive]',\r\n                exportAs: 'routerLinkActive',\r\n            },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRouterLinkActive.ctorParameters = function () { return [\r\n    { type: Router, },\r\n    { type: ElementRef, },\r\n    { type: Renderer, },\r\n    { type: ChangeDetectorRef, },\r\n]; };\r\nRouterLinkActive.propDecorators = {\r\n    'links': [{ type: ContentChildren, args: [RouterLink, { descendants: true },] },],\r\n    'linksWithHrefs': [{ type: ContentChildren, args: [RouterLinkWithHref, { descendants: true },] },],\r\n    'routerLinkActiveOptions': [{ type: Input },],\r\n    'routerLinkActive': [{ type: Input },],\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Acts as a placeholder that Angular dynamically fills based on the current router\r\n * state.\r\n *\r\n * \\@howToUse\r\n *\r\n * ```\r\n * <router-outlet></router-outlet>\r\n * <router-outlet name='left'></router-outlet>\r\n * <router-outlet name='right'></router-outlet>\r\n * ```\r\n *\r\n * A router outlet will emit an activate event any time a new component is being instantiated,\r\n * and a deactivate event when it is being destroyed.\r\n *\r\n * ```\r\n * <router-outlet\r\n *   (activate)='onActivate($event)'\r\n *   (deactivate)='onDeactivate($event)'></router-outlet>\r\n * ```\r\n * \\@ngModule RouterModule\r\n *\r\n * \\@stable\r\n */\r\nvar RouterOutlet = (function () {\r\n    /**\r\n     * @param {?} parentOutletMap\r\n     * @param {?} location\r\n     * @param {?} resolver\r\n     * @param {?} name\r\n     */\r\n    function RouterOutlet(parentOutletMap, location, resolver, name) {\r\n        this.parentOutletMap = parentOutletMap;\r\n        this.location = location;\r\n        this.resolver = resolver;\r\n        this.name = name;\r\n        this.activateEvents = new EventEmitter();\r\n        this.deactivateEvents = new EventEmitter();\r\n        parentOutletMap.registerOutlet(name ? name : PRIMARY_OUTLET, this);\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterOutlet.prototype.ngOnDestroy = function () { this.parentOutletMap.removeOutlet(this.name ? this.name : PRIMARY_OUTLET); };\r\n    Object.defineProperty(RouterOutlet.prototype, \"locationInjector\", {\r\n        /**\r\n         * @deprecated since v4 *\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.location.injector; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(RouterOutlet.prototype, \"locationFactoryResolver\", {\r\n        /**\r\n         * @deprecated since v4 *\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.resolver; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(RouterOutlet.prototype, \"isActivated\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return !!this.activated; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(RouterOutlet.prototype, \"component\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            if (!this.activated)\r\n                throw new Error('Outlet is not activated');\r\n            return this.activated.instance;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(RouterOutlet.prototype, \"activatedRoute\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            if (!this.activated)\r\n                throw new Error('Outlet is not activated');\r\n            return this._activatedRoute;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterOutlet.prototype.detach = function () {\r\n        if (!this.activated)\r\n            throw new Error('Outlet is not activated');\r\n        this.location.detach();\r\n        var /** @type {?} */ r = this.activated;\r\n        this.activated = ((null));\r\n        this._activatedRoute = ((null));\r\n        return r;\r\n    };\r\n    /**\r\n     * @param {?} ref\r\n     * @param {?} activatedRoute\r\n     * @return {?}\r\n     */\r\n    RouterOutlet.prototype.attach = function (ref, activatedRoute) {\r\n        this.activated = ref;\r\n        this._activatedRoute = activatedRoute;\r\n        this.location.insert(ref.hostView);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterOutlet.prototype.deactivate = function () {\r\n        if (this.activated) {\r\n            var /** @type {?} */ c = this.component;\r\n            this.activated.destroy();\r\n            this.activated = ((null));\r\n            this._activatedRoute = ((null));\r\n            this.deactivateEvents.emit(c);\r\n        }\r\n    };\r\n    /**\r\n     * @deprecated since v4, use {\\@link #activateWith}\r\n     * @param {?} activatedRoute\r\n     * @param {?} resolver\r\n     * @param {?} injector\r\n     * @param {?} providers\r\n     * @param {?} outletMap\r\n     * @return {?}\r\n     */\r\n    RouterOutlet.prototype.activate = function (activatedRoute, resolver, injector, providers, outletMap) {\r\n        if (this.isActivated) {\r\n            throw new Error('Cannot activate an already activated outlet');\r\n        }\r\n        this.outletMap = outletMap;\r\n        this._activatedRoute = activatedRoute;\r\n        var /** @type {?} */ snapshot = activatedRoute._futureSnapshot;\r\n        var /** @type {?} */ component = (((snapshot._routeConfig)).component);\r\n        var /** @type {?} */ factory = ((resolver.resolveComponentFactory(component)));\r\n        var /** @type {?} */ inj = ReflectiveInjector.fromResolvedProviders(providers, injector);\r\n        this.activated = this.location.createComponent(factory, this.location.length, inj, []);\r\n        this.activated.changeDetectorRef.detectChanges();\r\n        this.activateEvents.emit(this.activated.instance);\r\n    };\r\n    /**\r\n     * @param {?} activatedRoute\r\n     * @param {?} resolver\r\n     * @param {?} outletMap\r\n     * @return {?}\r\n     */\r\n    RouterOutlet.prototype.activateWith = function (activatedRoute, resolver, outletMap) {\r\n        if (this.isActivated) {\r\n            throw new Error('Cannot activate an already activated outlet');\r\n        }\r\n        this.outletMap = outletMap;\r\n        this._activatedRoute = activatedRoute;\r\n        var /** @type {?} */ snapshot = activatedRoute._futureSnapshot;\r\n        var /** @type {?} */ component = (((snapshot._routeConfig)).component);\r\n        resolver = resolver || this.resolver;\r\n        var /** @type {?} */ factory = ((resolver.resolveComponentFactory(component)));\r\n        var /** @type {?} */ injector = new OutletInjector(activatedRoute, outletMap, this.location.injector);\r\n        this.activated = this.location.createComponent(factory, this.location.length, injector, []);\r\n        this.activated.changeDetectorRef.detectChanges();\r\n        this.activateEvents.emit(this.activated.instance);\r\n    };\r\n    return RouterOutlet;\r\n}());\r\nRouterOutlet.decorators = [\r\n    { type: Directive, args: [{ selector: 'router-outlet' },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRouterOutlet.ctorParameters = function () { return [\r\n    { type: RouterOutletMap, },\r\n    { type: ViewContainerRef, },\r\n    { type: ComponentFactoryResolver, },\r\n    { type: undefined, decorators: [{ type: Attribute, args: ['name',] },] },\r\n]; };\r\nRouterOutlet.propDecorators = {\r\n    'activateEvents': [{ type: Output, args: ['activate',] },],\r\n    'deactivateEvents': [{ type: Output, args: ['deactivate',] },],\r\n};\r\nvar OutletInjector = (function () {\r\n    /**\r\n     * @param {?} route\r\n     * @param {?} map\r\n     * @param {?} parent\r\n     */\r\n    function OutletInjector(route, map$$1, parent) {\r\n        this.route = route;\r\n        this.map = map$$1;\r\n        this.parent = parent;\r\n    }\r\n    /**\r\n     * @param {?} token\r\n     * @param {?=} notFoundValue\r\n     * @return {?}\r\n     */\r\n    OutletInjector.prototype.get = function (token, notFoundValue) {\r\n        if (token === ActivatedRoute) {\r\n            return this.route;\r\n        }\r\n        if (token === RouterOutletMap) {\r\n            return this.map;\r\n        }\r\n        return this.parent.get(token, notFoundValue);\r\n    };\r\n    return OutletInjector;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Provides a way to customize when activated routes get reused.\r\n *\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar RouteReuseStrategy = (function () {\r\n    function RouteReuseStrategy() {\r\n    }\r\n    /**\r\n     * Determines if this route (and its subtree) should be detached to be reused later\r\n     * @abstract\r\n     * @param {?} route\r\n     * @return {?}\r\n     */\r\n    RouteReuseStrategy.prototype.shouldDetach = function (route) { };\r\n    /**\r\n     * Stores the detached route\r\n     * @abstract\r\n     * @param {?} route\r\n     * @param {?} handle\r\n     * @return {?}\r\n     */\r\n    RouteReuseStrategy.prototype.store = function (route, handle) { };\r\n    /**\r\n     * Determines if this route (and its subtree) should be reattached\r\n     * @abstract\r\n     * @param {?} route\r\n     * @return {?}\r\n     */\r\n    RouteReuseStrategy.prototype.shouldAttach = function (route) { };\r\n    /**\r\n     * Retrieves the previously stored route\r\n     * @abstract\r\n     * @param {?} route\r\n     * @return {?}\r\n     */\r\n    RouteReuseStrategy.prototype.retrieve = function (route) { };\r\n    /**\r\n     * Determines if a route should be reused\r\n     * @abstract\r\n     * @param {?} future\r\n     * @param {?} curr\r\n     * @return {?}\r\n     */\r\n    RouteReuseStrategy.prototype.shouldReuseRoute = function (future, curr) { };\r\n    return RouteReuseStrategy;\r\n}());\r\n/**\r\n*@license\r\n*Copyright Google Inc. All Rights Reserved.\r\n*\r\n*Use of this source code is governed by an MIT-style license that can be\r\n*found in the LICENSE file at https://angular.io/license\r\n*/\r\n/**\r\n * \\@whatItDoes Provides a preloading strategy.\r\n *\r\n * \\@experimental\r\n * @abstract\r\n */\r\nvar PreloadingStrategy = (function () {\r\n    function PreloadingStrategy() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} route\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    PreloadingStrategy.prototype.preload = function (route, fn) { };\r\n    return PreloadingStrategy;\r\n}());\r\n/**\r\n * \\@whatItDoes Provides a preloading strategy that preloads all modules as quickly as possible.\r\n *\r\n * \\@howToUse\r\n *\r\n * ```\r\n * RouteModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})\r\n * ```\r\n *\r\n * \\@experimental\r\n */\r\nvar PreloadAllModules = (function () {\r\n    function PreloadAllModules() {\r\n    }\r\n    /**\r\n     * @param {?} route\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    PreloadAllModules.prototype.preload = function (route, fn) {\r\n        return _catch.call(fn(), function () { return of(null); });\r\n    };\r\n    return PreloadAllModules;\r\n}());\r\n/**\r\n * \\@whatItDoes Provides a preloading strategy that does not preload any modules.\r\n *\r\n * \\@description\r\n *\r\n * This strategy is enabled by default.\r\n *\r\n * \\@experimental\r\n */\r\nvar NoPreloading = (function () {\r\n    function NoPreloading() {\r\n    }\r\n    /**\r\n     * @param {?} route\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    NoPreloading.prototype.preload = function (route, fn) { return of(null); };\r\n    return NoPreloading;\r\n}());\r\n/**\r\n * The preloader optimistically loads all router configurations to\r\n * make navigations into lazily-loaded sections of the application faster.\r\n *\r\n * The preloader runs in the background. When the router bootstraps, the preloader\r\n * starts listening to all navigation events. After every such event, the preloader\r\n * will check if any configurations can be loaded lazily.\r\n *\r\n * If a route is protected by `canLoad` guards, the preloaded will not load it.\r\n *\r\n * \\@stable\r\n */\r\nvar RouterPreloader = (function () {\r\n    /**\r\n     * @param {?} router\r\n     * @param {?} moduleLoader\r\n     * @param {?} compiler\r\n     * @param {?} injector\r\n     * @param {?} preloadingStrategy\r\n     */\r\n    function RouterPreloader(router, moduleLoader, compiler, injector, preloadingStrategy) {\r\n        this.router = router;\r\n        this.injector = injector;\r\n        this.preloadingStrategy = preloadingStrategy;\r\n        var onStartLoad = function (r) { return router.triggerEvent(new RouteConfigLoadStart(r)); };\r\n        var onEndLoad = function (r) { return router.triggerEvent(new RouteConfigLoadEnd(r)); };\r\n        this.loader = new RouterConfigLoader(moduleLoader, compiler, onStartLoad, onEndLoad);\r\n    }\r\n    ;\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterPreloader.prototype.setUpPreloading = function () {\r\n        var _this = this;\r\n        var /** @type {?} */ navigations$ = filter.call(this.router.events, function (e) { return e instanceof NavigationEnd; });\r\n        this.subscription = concatMap.call(navigations$, function () { return _this.preload(); }).subscribe(function () { });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterPreloader.prototype.preload = function () {\r\n        var /** @type {?} */ ngModule = this.injector.get(NgModuleRef);\r\n        return this.processRoutes(ngModule, this.router.config);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterPreloader.prototype.ngOnDestroy = function () { this.subscription.unsubscribe(); };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} routes\r\n     * @return {?}\r\n     */\r\n    RouterPreloader.prototype.processRoutes = function (ngModule, routes) {\r\n        var /** @type {?} */ res = [];\r\n        for (var _i = 0, routes_5 = routes; _i < routes_5.length; _i++) {\r\n            var route = routes_5[_i];\r\n            // we already have the config loaded, just recurse\r\n            if (route.loadChildren && !route.canLoad && route._loadedConfig) {\r\n                var /** @type {?} */ childConfig = route._loadedConfig;\r\n                res.push(this.processRoutes(childConfig.module, childConfig.routes));\r\n            }\r\n            else if (route.loadChildren && !route.canLoad) {\r\n                res.push(this.preloadConfig(ngModule, route));\r\n            }\r\n            else if (route.children) {\r\n                res.push(this.processRoutes(ngModule, route.children));\r\n            }\r\n        }\r\n        return mergeAll.call(from(res));\r\n    };\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} route\r\n     * @return {?}\r\n     */\r\n    RouterPreloader.prototype.preloadConfig = function (ngModule, route) {\r\n        var _this = this;\r\n        return this.preloadingStrategy.preload(route, function () {\r\n            var /** @type {?} */ loaded$ = _this.loader.load(ngModule.injector, route);\r\n            return mergeMap.call(loaded$, function (config) {\r\n                route._loadedConfig = config;\r\n                return _this.processRoutes(config.module, config.routes);\r\n            });\r\n        });\r\n    };\r\n    return RouterPreloader;\r\n}());\r\nRouterPreloader.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRouterPreloader.ctorParameters = function () { return [\r\n    { type: Router, },\r\n    { type: NgModuleFactoryLoader, },\r\n    { type: Compiler, },\r\n    { type: Injector, },\r\n    { type: PreloadingStrategy, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * \\@whatItDoes Contains a list of directives\r\n * \\@stable\r\n */\r\nvar ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive];\r\n/**\r\n * \\@whatItDoes Is used in DI to configure the router.\r\n * \\@stable\r\n */\r\nvar ROUTER_CONFIGURATION = new InjectionToken('ROUTER_CONFIGURATION');\r\n/**\r\n * \\@docsNotRequired\r\n */\r\nvar ROUTER_FORROOT_GUARD = new InjectionToken('ROUTER_FORROOT_GUARD');\r\nvar ROUTER_PROVIDERS = [\r\n    Location,\r\n    { provide: UrlSerializer, useClass: DefaultUrlSerializer },\r\n    {\r\n        provide: Router,\r\n        useFactory: setupRouter,\r\n        deps: [\r\n            ApplicationRef, UrlSerializer, RouterOutletMap, Location, Injector, NgModuleFactoryLoader,\r\n            Compiler, ROUTES, ROUTER_CONFIGURATION, [UrlHandlingStrategy, new Optional()],\r\n            [RouteReuseStrategy, new Optional()]\r\n        ]\r\n    },\r\n    RouterOutletMap,\r\n    { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },\r\n    { provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader },\r\n    RouterPreloader,\r\n    NoPreloading,\r\n    PreloadAllModules,\r\n    { provide: ROUTER_CONFIGURATION, useValue: { enableTracing: false } },\r\n];\r\n/**\r\n * @return {?}\r\n */\r\nfunction routerNgProbeToken() {\r\n    return new NgProbeToken('Router', Router);\r\n}\r\n/**\r\n * \\@whatItDoes Adds router directives and providers.\r\n *\r\n * \\@howToUse\r\n *\r\n * RouterModule can be imported multiple times: once per lazily-loaded bundle.\r\n * Since the router deals with a global shared resource--location, we cannot have\r\n * more than one router service active.\r\n *\r\n * That is why there are two ways to create the module: `RouterModule.forRoot` and\r\n * `RouterModule.forChild`.\r\n *\r\n * * `forRoot` creates a module that contains all the directives, the given routes, and the router\r\n *   service itself.\r\n * * `forChild` creates a module that contains all the directives and the given routes, but does not\r\n *   include the router service.\r\n *\r\n * When registered at the root, the module should be used as follows\r\n *\r\n * ```\r\n * \\@NgModule({\r\n *   imports: [RouterModule.forRoot(ROUTES)]\r\n * })\r\n * class MyNgModule {}\r\n * ```\r\n *\r\n * For submodules and lazy loaded submodules the module should be used as follows:\r\n *\r\n * ```\r\n * \\@NgModule({\r\n *   imports: [RouterModule.forChild(ROUTES)]\r\n * })\r\n * class MyNgModule {}\r\n * ```\r\n *\r\n * \\@description\r\n *\r\n * Managing state transitions is one of the hardest parts of building applications. This is\r\n * especially true on the web, where you also need to ensure that the state is reflected in the URL.\r\n * In addition, we often want to split applications into multiple bundles and load them on demand.\r\n * Doing this transparently is not trivial.\r\n *\r\n * The Angular router solves these problems. Using the router, you can declaratively specify\r\n * application states, manage state transitions while taking care of the URL, and load bundles on\r\n * demand.\r\n *\r\n * [Read this developer guide](https://angular.io/docs/ts/latest/guide/router.html) to get an\r\n * overview of how the router should be used.\r\n *\r\n * \\@stable\r\n */\r\nvar RouterModule = (function () {\r\n    /**\r\n     * @param {?} guard\r\n     * @param {?} router\r\n     */\r\n    function RouterModule(guard, router) {\r\n    }\r\n    /**\r\n     * Creates a module with all the router providers and directives. It also optionally sets up an\r\n     * application listener to perform an initial navigation.\r\n     *\r\n     * Options:\r\n     * * `enableTracing` makes the router log all its internal events to the console.\r\n     * * `useHash` enables the location strategy that uses the URL fragment instead of the history\r\n     * API.\r\n     * * `initialNavigation` disables the initial navigation.\r\n     * * `errorHandler` provides a custom error handler.\r\n     * @param {?} routes\r\n     * @param {?=} config\r\n     * @return {?}\r\n     */\r\n    RouterModule.forRoot = function (routes, config) {\r\n        return {\r\n            ngModule: RouterModule,\r\n            providers: [\r\n                ROUTER_PROVIDERS,\r\n                provideRoutes(routes),\r\n                {\r\n                    provide: ROUTER_FORROOT_GUARD,\r\n                    useFactory: provideForRootGuard,\r\n                    deps: [[Router, new Optional(), new SkipSelf()]]\r\n                },\r\n                { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} },\r\n                {\r\n                    provide: LocationStrategy,\r\n                    useFactory: provideLocationStrategy,\r\n                    deps: [\r\n                        PlatformLocation, [new Inject(APP_BASE_HREF), new Optional()], ROUTER_CONFIGURATION\r\n                    ]\r\n                },\r\n                {\r\n                    provide: PreloadingStrategy,\r\n                    useExisting: config && config.preloadingStrategy ? config.preloadingStrategy :\r\n                        NoPreloading\r\n                },\r\n                { provide: NgProbeToken, multi: true, useFactory: routerNgProbeToken },\r\n                provideRouterInitializer(),\r\n            ],\r\n        };\r\n    };\r\n    /**\r\n     * Creates a module with all the router directives and a provider registering routes.\r\n     * @param {?} routes\r\n     * @return {?}\r\n     */\r\n    RouterModule.forChild = function (routes) {\r\n        return { ngModule: RouterModule, providers: [provideRoutes(routes)] };\r\n    };\r\n    return RouterModule;\r\n}());\r\nRouterModule.decorators = [\r\n    { type: NgModule, args: [{ declarations: ROUTER_DIRECTIVES, exports: ROUTER_DIRECTIVES },] },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRouterModule.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [ROUTER_FORROOT_GUARD,] },] },\r\n    { type: Router, decorators: [{ type: Optional },] },\r\n]; };\r\n/**\r\n * @param {?} platformLocationStrategy\r\n * @param {?} baseHref\r\n * @param {?=} options\r\n * @return {?}\r\n */\r\nfunction provideLocationStrategy(platformLocationStrategy, baseHref, options) {\r\n    if (options === void 0) { options = {}; }\r\n    return options.useHash ? new HashLocationStrategy(platformLocationStrategy, baseHref) :\r\n        new PathLocationStrategy(platformLocationStrategy, baseHref);\r\n}\r\n/**\r\n * @param {?} router\r\n * @return {?}\r\n */\r\nfunction provideForRootGuard(router) {\r\n    if (router) {\r\n        throw new Error(\"RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.\");\r\n    }\r\n    return 'guarded';\r\n}\r\n/**\r\n * \\@whatItDoes Registers routes.\r\n *\r\n * \\@howToUse\r\n *\r\n * ```\r\n * \\@NgModule({\r\n *   imports: [RouterModule.forChild(ROUTES)],\r\n *   providers: [provideRoutes(EXTRA_ROUTES)]\r\n * })\r\n * class MyNgModule {}\r\n * ```\r\n *\r\n * \\@stable\r\n * @param {?} routes\r\n * @return {?}\r\n */\r\nfunction provideRoutes(routes) {\r\n    return [\r\n        { provide: ANALYZE_FOR_ENTRY_COMPONENTS, multi: true, useValue: routes },\r\n        { provide: ROUTES, multi: true, useValue: routes },\r\n    ];\r\n}\r\n/**\r\n * @param {?} ref\r\n * @param {?} urlSerializer\r\n * @param {?} outletMap\r\n * @param {?} location\r\n * @param {?} injector\r\n * @param {?} loader\r\n * @param {?} compiler\r\n * @param {?} config\r\n * @param {?=} opts\r\n * @param {?=} urlHandlingStrategy\r\n * @param {?=} routeReuseStrategy\r\n * @return {?}\r\n */\r\nfunction setupRouter(ref, urlSerializer, outletMap, location, injector, loader, compiler, config, opts, urlHandlingStrategy, routeReuseStrategy) {\r\n    if (opts === void 0) { opts = {}; }\r\n    var /** @type {?} */ router = new Router(null, urlSerializer, outletMap, location, injector, loader, compiler, flatten(config));\r\n    if (urlHandlingStrategy) {\r\n        router.urlHandlingStrategy = urlHandlingStrategy;\r\n    }\r\n    if (routeReuseStrategy) {\r\n        router.routeReuseStrategy = routeReuseStrategy;\r\n    }\r\n    if (opts.errorHandler) {\r\n        router.errorHandler = opts.errorHandler;\r\n    }\r\n    if (opts.enableTracing) {\r\n        var /** @type {?} */ dom_1 = ɵgetDOM();\r\n        router.events.subscribe(function (e) {\r\n            dom_1.logGroup(\"Router Event: \" + ((e.constructor)).name);\r\n            dom_1.log(e.toString());\r\n            dom_1.log(e);\r\n            dom_1.logGroupEnd();\r\n        });\r\n    }\r\n    return router;\r\n}\r\n/**\r\n * @param {?} router\r\n * @return {?}\r\n */\r\nfunction rootRoute(router) {\r\n    return router.routerState.root;\r\n}\r\n/**\r\n * To initialize the router properly we need to do in two steps:\r\n *\r\n * We need to start the navigation in a APP_INITIALIZER to block the bootstrap if\r\n * a resolver or a guards executes asynchronously. Second, we need to actually run\r\n * activation in a BOOTSTRAP_LISTENER. We utilize the afterPreactivation\r\n * hook provided by the router to do that.\r\n *\r\n * The router navigation starts, reaches the point when preactivation is done, and then\r\n * pauses. It waits for the hook to be resolved. We then resolve it only in a bootstrap listener.\r\n */\r\nvar RouterInitializer = (function () {\r\n    /**\r\n     * @param {?} injector\r\n     */\r\n    function RouterInitializer(injector) {\r\n        this.injector = injector;\r\n        this.initNavigation = false;\r\n        this.resultOfPreactivationDone = new Subject();\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    RouterInitializer.prototype.appInitializer = function () {\r\n        var _this = this;\r\n        var /** @type {?} */ p = this.injector.get(LOCATION_INITIALIZED, Promise.resolve(null));\r\n        return p.then(function () {\r\n            var /** @type {?} */ resolve = ((null));\r\n            var /** @type {?} */ res = new Promise(function (r) { return resolve = r; });\r\n            var /** @type {?} */ router = _this.injector.get(Router);\r\n            var /** @type {?} */ opts = _this.injector.get(ROUTER_CONFIGURATION);\r\n            if (_this.isLegacyDisabled(opts) || _this.isLegacyEnabled(opts)) {\r\n                resolve(true);\r\n            }\r\n            else if (opts.initialNavigation === 'disabled') {\r\n                router.setUpLocationChangeListener();\r\n                resolve(true);\r\n            }\r\n            else if (opts.initialNavigation === 'enabled') {\r\n                router.hooks.afterPreactivation = function () {\r\n                    // only the initial navigation should be delayed\r\n                    if (!_this.initNavigation) {\r\n                        _this.initNavigation = true;\r\n                        resolve(true);\r\n                        return _this.resultOfPreactivationDone;\r\n                    }\r\n                    else {\r\n                        return (of(null));\r\n                    }\r\n                };\r\n                router.initialNavigation();\r\n            }\r\n            else {\r\n                throw new Error(\"Invalid initialNavigation options: '\" + opts.initialNavigation + \"'\");\r\n            }\r\n            return res;\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} bootstrappedComponentRef\r\n     * @return {?}\r\n     */\r\n    RouterInitializer.prototype.bootstrapListener = function (bootstrappedComponentRef) {\r\n        var /** @type {?} */ opts = this.injector.get(ROUTER_CONFIGURATION);\r\n        var /** @type {?} */ preloader = this.injector.get(RouterPreloader);\r\n        var /** @type {?} */ router = this.injector.get(Router);\r\n        var /** @type {?} */ ref = this.injector.get(ApplicationRef);\r\n        if (bootstrappedComponentRef !== ref.components[0]) {\r\n            return;\r\n        }\r\n        if (this.isLegacyEnabled(opts)) {\r\n            router.initialNavigation();\r\n        }\r\n        else if (this.isLegacyDisabled(opts)) {\r\n            router.setUpLocationChangeListener();\r\n        }\r\n        preloader.setUpPreloading();\r\n        router.resetRootComponentType(ref.componentTypes[0]);\r\n        this.resultOfPreactivationDone.next(/** @type {?} */ ((null)));\r\n        this.resultOfPreactivationDone.complete();\r\n    };\r\n    /**\r\n     * @param {?} opts\r\n     * @return {?}\r\n     */\r\n    RouterInitializer.prototype.isLegacyEnabled = function (opts) {\r\n        return opts.initialNavigation === 'legacy_enabled' || opts.initialNavigation === true ||\r\n            opts.initialNavigation === undefined;\r\n    };\r\n    /**\r\n     * @param {?} opts\r\n     * @return {?}\r\n     */\r\n    RouterInitializer.prototype.isLegacyDisabled = function (opts) {\r\n        return opts.initialNavigation === 'legacy_disabled' || opts.initialNavigation === false;\r\n    };\r\n    return RouterInitializer;\r\n}());\r\nRouterInitializer.decorators = [\r\n    { type: Injectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nRouterInitializer.ctorParameters = function () { return [\r\n    { type: Injector, },\r\n]; };\r\n/**\r\n * @param {?} r\r\n * @return {?}\r\n */\r\nfunction getAppInitializer(r) {\r\n    return r.appInitializer.bind(r);\r\n}\r\n/**\r\n * @param {?} r\r\n * @return {?}\r\n */\r\nfunction getBootstrapListener(r) {\r\n    return r.bootstrapListener.bind(r);\r\n}\r\n/**\r\n * A token for the router initializer that will be called after the app is bootstrapped.\r\n *\r\n * \\@experimental\r\n */\r\nvar ROUTER_INITIALIZER = new InjectionToken('Router Initializer');\r\n/**\r\n * @return {?}\r\n */\r\nfunction provideRouterInitializer() {\r\n    return [\r\n        RouterInitializer,\r\n        {\r\n            provide: APP_INITIALIZER,\r\n            multi: true,\r\n            useFactory: getAppInitializer,\r\n            deps: [RouterInitializer]\r\n        },\r\n        { provide: ROUTER_INITIALIZER, useFactory: getBootstrapListener, deps: [RouterInitializer] },\r\n        { provide: APP_BOOTSTRAP_LISTENER, multi: true, useExisting: ROUTER_INITIALIZER },\r\n    ];\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the common package.\r\n */\r\n/**\r\n * \\@stable\r\n */\r\nvar VERSION = new Version('4.1.3');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the router package.\r\n */\r\n// This file only reexports content of the `src` folder. Keep it that way.\r\n/**\r\n * Generated bundle index. Do not edit.\r\n */\r\nexport { RouterLink, RouterLinkWithHref, RouterLinkActive, RouterOutlet, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, RouteConfigLoadEnd, RouteConfigLoadStart, RoutesRecognized, RouteReuseStrategy, Router, ROUTES, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, RouterModule, provideRoutes, RouterOutletMap, NoPreloading, PreloadAllModules, PreloadingStrategy, RouterPreloader, ActivatedRoute, ActivatedRouteSnapshot, RouterState, RouterStateSnapshot, PRIMARY_OUTLET, convertToParamMap, UrlHandlingStrategy, DefaultUrlSerializer, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VERSION, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, flatten as ɵflatten, ROUTER_FORROOT_GUARD as ɵa, RouterInitializer as ɵg, getAppInitializer as ɵh, getBootstrapListener as ɵi, provideForRootGuard as ɵd, provideLocationStrategy as ɵc, provideRouterInitializer as ɵj, rootRoute as ɵf, routerNgProbeToken as ɵb, setupRouter as ɵe, Tree as ɵk, TreeNode as ɵl };\r\n//# sourceMappingURL=router.es5.js.map\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angular/router/@angular/router.es5.js\n// module id = 104\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subscriber_1 = require('../Subscriber');\r\n/**\r\n * Applies a given `project` function to each value emitted by the source\r\n * Observable, and emits the resulting values as an Observable.\r\n *\r\n * <span class=\"informal\">Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map),\r\n * it passes each source value through a transformation function to get\r\n * corresponding output values.</span>\r\n *\r\n * <img src=\"./img/map.png\" width=\"100%\">\r\n *\r\n * Similar to the well known `Array.prototype.map` function, this operator\r\n * applies a projection to each value and emits that projection in the output\r\n * Observable.\r\n *\r\n * @example <caption>Map every every click to the clientX position of that click</caption>\r\n * var clicks = Rx.Observable.fromEvent(document, 'click');\r\n * var positions = clicks.map(ev => ev.clientX);\r\n * positions.subscribe(x => console.log(x));\r\n *\r\n * @see {@link mapTo}\r\n * @see {@link pluck}\r\n *\r\n * @param {function(value: T, index: number): R} project The function to apply\r\n * to each `value` emitted by the source Observable. The `index` parameter is\r\n * the number `i` for the i-th emission that has happened since the\r\n * subscription, starting from the number `0`.\r\n * @param {any} [thisArg] An optional argument to define what `this` is in the\r\n * `project` function.\r\n * @return {Observable<R>} An Observable that emits the values from the source\r\n * Observable transformed by the given `project` function.\r\n * @method map\r\n * @owner Observable\r\n */\r\nfunction map(project, thisArg) {\r\n    if (typeof project !== 'function') {\r\n        throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');\r\n    }\r\n    return this.lift(new MapOperator(project, thisArg));\r\n}\r\nexports.map = map;\r\nvar MapOperator = (function () {\r\n    function MapOperator(project, thisArg) {\r\n        this.project = project;\r\n        this.thisArg = thisArg;\r\n    }\r\n    MapOperator.prototype.call = function (subscriber, source) {\r\n        return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));\r\n    };\r\n    return MapOperator;\r\n}());\r\nexports.MapOperator = MapOperator;\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar MapSubscriber = (function (_super) {\r\n    __extends(MapSubscriber, _super);\r\n    function MapSubscriber(destination, project, thisArg) {\r\n        _super.call(this, destination);\r\n        this.project = project;\r\n        this.count = 0;\r\n        this.thisArg = thisArg || this;\r\n    }\r\n    // NOTE: This looks unoptimized, but it's actually purposefully NOT\r\n    // using try/catch optimizations.\r\n    MapSubscriber.prototype._next = function (value) {\r\n        var result;\r\n        try {\r\n            result = this.project.call(this.thisArg, value, this.count++);\r\n        }\r\n        catch (err) {\r\n            this.destination.error(err);\r\n            return;\r\n        }\r\n        this.destination.next(result);\r\n    };\r\n    return MapSubscriber;\r\n}(Subscriber_1.Subscriber));\r\n//# sourceMappingURL=map.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/map.js\n// module id = 105\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar OuterSubscriber_1 = require('../OuterSubscriber');\r\nvar subscribeToResult_1 = require('../util/subscribeToResult');\r\n/**\r\n * Converts a higher-order Observable into a first-order Observable which\r\n * concurrently delivers all values that are emitted on the inner Observables.\r\n *\r\n * <span class=\"informal\">Flattens an Observable-of-Observables.</span>\r\n *\r\n * <img src=\"./img/mergeAll.png\" width=\"100%\">\r\n *\r\n * `mergeAll` subscribes to an Observable that emits Observables, also known as\r\n * a higher-order Observable. Each time it observes one of these emitted inner\r\n * Observables, it subscribes to that and delivers all the values from the\r\n * inner Observable on the output Observable. The output Observable only\r\n * completes once all inner Observables have completed. Any error delivered by\r\n * a inner Observable will be immediately emitted on the output Observable.\r\n *\r\n * @example <caption>Spawn a new interval Observable for each click event, and blend their outputs as one Observable</caption>\r\n * var clicks = Rx.Observable.fromEvent(document, 'click');\r\n * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000));\r\n * var firstOrder = higherOrder.mergeAll();\r\n * firstOrder.subscribe(x => console.log(x));\r\n *\r\n * @example <caption>Count from 0 to 9 every second for each click, but only allow 2 concurrent timers</caption>\r\n * var clicks = Rx.Observable.fromEvent(document, 'click');\r\n * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000).take(10));\r\n * var firstOrder = higherOrder.mergeAll(2);\r\n * firstOrder.subscribe(x => console.log(x));\r\n *\r\n * @see {@link combineAll}\r\n * @see {@link concatAll}\r\n * @see {@link exhaust}\r\n * @see {@link merge}\r\n * @see {@link mergeMap}\r\n * @see {@link mergeMapTo}\r\n * @see {@link mergeScan}\r\n * @see {@link switch}\r\n * @see {@link zipAll}\r\n *\r\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of inner\r\n * Observables being subscribed to concurrently.\r\n * @return {Observable} An Observable that emits values coming from all the\r\n * inner Observables emitted by the source Observable.\r\n * @method mergeAll\r\n * @owner Observable\r\n */\r\nfunction mergeAll(concurrent) {\r\n    if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\r\n    return this.lift(new MergeAllOperator(concurrent));\r\n}\r\nexports.mergeAll = mergeAll;\r\nvar MergeAllOperator = (function () {\r\n    function MergeAllOperator(concurrent) {\r\n        this.concurrent = concurrent;\r\n    }\r\n    MergeAllOperator.prototype.call = function (observer, source) {\r\n        return source.subscribe(new MergeAllSubscriber(observer, this.concurrent));\r\n    };\r\n    return MergeAllOperator;\r\n}());\r\nexports.MergeAllOperator = MergeAllOperator;\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar MergeAllSubscriber = (function (_super) {\r\n    __extends(MergeAllSubscriber, _super);\r\n    function MergeAllSubscriber(destination, concurrent) {\r\n        _super.call(this, destination);\r\n        this.concurrent = concurrent;\r\n        this.hasCompleted = false;\r\n        this.buffer = [];\r\n        this.active = 0;\r\n    }\r\n    MergeAllSubscriber.prototype._next = function (observable) {\r\n        if (this.active < this.concurrent) {\r\n            this.active++;\r\n            this.add(subscribeToResult_1.subscribeToResult(this, observable));\r\n        }\r\n        else {\r\n            this.buffer.push(observable);\r\n        }\r\n    };\r\n    MergeAllSubscriber.prototype._complete = function () {\r\n        this.hasCompleted = true;\r\n        if (this.active === 0 && this.buffer.length === 0) {\r\n            this.destination.complete();\r\n        }\r\n    };\r\n    MergeAllSubscriber.prototype.notifyComplete = function (innerSub) {\r\n        var buffer = this.buffer;\r\n        this.remove(innerSub);\r\n        this.active--;\r\n        if (buffer.length > 0) {\r\n            this._next(buffer.shift());\r\n        }\r\n        else if (this.active === 0 && this.hasCompleted) {\r\n            this.destination.complete();\r\n        }\r\n    };\r\n    return MergeAllSubscriber;\r\n}(OuterSubscriber_1.OuterSubscriber));\r\nexports.MergeAllSubscriber = MergeAllSubscriber;\r\n//# sourceMappingURL=mergeAll.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/mergeAll.js\n// module id = 106\n// module chunks = 2","\"use strict\";\r\nvar root_1 = require('../util/root');\r\nfunction symbolIteratorPonyfill(root) {\r\n    var Symbol = root.Symbol;\r\n    if (typeof Symbol === 'function') {\r\n        if (!Symbol.iterator) {\r\n            Symbol.iterator = Symbol('iterator polyfill');\r\n        }\r\n        return Symbol.iterator;\r\n    }\r\n    else {\r\n        // [for Mozilla Gecko 27-35:](https://mzl.la/2ewE1zC)\r\n        var Set_1 = root.Set;\r\n        if (Set_1 && typeof new Set_1()['@@iterator'] === 'function') {\r\n            return '@@iterator';\r\n        }\r\n        var Map_1 = root.Map;\r\n        // required for compatability with es6-shim\r\n        if (Map_1) {\r\n            var keys = Object.getOwnPropertyNames(Map_1.prototype);\r\n            for (var i = 0; i < keys.length; ++i) {\r\n                var key = keys[i];\r\n                // according to spec, Map.prototype[@@iterator] and Map.orototype.entries must be equal.\r\n                if (key !== 'entries' && key !== 'size' && Map_1.prototype[key] === Map_1.prototype['entries']) {\r\n                    return key;\r\n                }\r\n            }\r\n        }\r\n        return '@@iterator';\r\n    }\r\n}\r\nexports.symbolIteratorPonyfill = symbolIteratorPonyfill;\r\nexports.$$iterator = symbolIteratorPonyfill(root_1.root);\r\n//# sourceMappingURL=iterator.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/symbol/iterator.js\n// module id = 107\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * An error thrown when an Observable or a sequence was queried but has no\r\n * elements.\r\n *\r\n * @see {@link first}\r\n * @see {@link last}\r\n * @see {@link single}\r\n *\r\n * @class EmptyError\r\n */\r\nvar EmptyError = (function (_super) {\r\n    __extends(EmptyError, _super);\r\n    function EmptyError() {\r\n        var err = _super.call(this, 'no elements in sequence');\r\n        this.name = err.name = 'EmptyError';\r\n        this.stack = err.stack;\r\n        this.message = err.message;\r\n    }\r\n    return EmptyError;\r\n}(Error));\r\nexports.EmptyError = EmptyError;\r\n//# sourceMappingURL=EmptyError.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/EmptyError.js\n// module id = 108\n// module chunks = 2","\"use strict\";\r\nvar root_1 = require('../util/root');\r\nfunction getSymbolObservable(context) {\r\n    var $$observable;\r\n    var Symbol = context.Symbol;\r\n    if (typeof Symbol === 'function') {\r\n        if (Symbol.observable) {\r\n            $$observable = Symbol.observable;\r\n        }\r\n        else {\r\n            $$observable = Symbol('observable');\r\n            Symbol.observable = $$observable;\r\n        }\r\n    }\r\n    else {\r\n        $$observable = '@@observable';\r\n    }\r\n    return $$observable;\r\n}\r\nexports.getSymbolObservable = getSymbolObservable;\r\nexports.$$observable = getSymbolObservable(root_1.root);\r\n//# sourceMappingURL=observable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/symbol/observable.js\n// module id = 109\n// module chunks = 2","\"use strict\";\r\nvar root_1 = require('../util/root');\r\nvar Symbol = root_1.root.Symbol;\r\nexports.$$rxSubscriber = (typeof Symbol === 'function' && typeof Symbol.for === 'function') ?\r\n    Symbol.for('rxSubscriber') : '@@rxSubscriber';\r\n//# sourceMappingURL=rxSubscriber.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/symbol/rxSubscriber.js\n// module id = 110\n// module chunks = 2","\"use strict\";\r\nvar Observable_1 = require('../../Observable');\r\nvar mergeMap_1 = require('../../operator/mergeMap');\r\nObservable_1.Observable.prototype.mergeMap = mergeMap_1.mergeMap;\r\nObservable_1.Observable.prototype.flatMap = mergeMap_1.mergeMap;\r\n//# sourceMappingURL=mergeMap.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/add/operator/mergeMap.js\n// module id = 111\n// module chunks = 2","// Thank's IE8 for his funny defineProperty\r\nmodule.exports = !require('./_fails')(function(){\r\n  return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\r\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_descriptors.js\n// module id = 115\n// module chunks = 2","module.exports = function(it){\r\n  return typeof it === 'object' ? it !== null : typeof it === 'function';\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_is-object.js\n// module id = 116\n// module chunks = 2","// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\nfunction EventEmitter() {\r\n  this._events = this._events || {};\r\n  this._maxListeners = this._maxListeners || undefined;\r\n}\r\nmodule.exports = EventEmitter;\r\n\r\n// Backwards-compat with node 0.10.x\r\nEventEmitter.EventEmitter = EventEmitter;\r\n\r\nEventEmitter.prototype._events = undefined;\r\nEventEmitter.prototype._maxListeners = undefined;\r\n\r\n// By default EventEmitters will print a warning if more than 10 listeners are\r\n// added to it. This is a useful default which helps finding memory leaks.\r\nEventEmitter.defaultMaxListeners = 10;\r\n\r\n// Obviously not all Emitters should be limited to 10. This function allows\r\n// that to be increased. Set to zero for unlimited.\r\nEventEmitter.prototype.setMaxListeners = function(n) {\r\n  if (!isNumber(n) || n < 0 || isNaN(n))\r\n    throw TypeError('n must be a positive number');\r\n  this._maxListeners = n;\r\n  return this;\r\n};\r\n\r\nEventEmitter.prototype.emit = function(type) {\r\n  var er, handler, len, args, i, listeners;\r\n\r\n  if (!this._events)\r\n    this._events = {};\r\n\r\n  // If there is no 'error' event listener then throw.\r\n  if (type === 'error') {\r\n    if (!this._events.error ||\r\n        (isObject(this._events.error) && !this._events.error.length)) {\r\n      er = arguments[1];\r\n      if (er instanceof Error) {\r\n        throw er; // Unhandled 'error' event\r\n      } else {\r\n        // At least give some kind of context to the user\r\n        var err = new Error('Uncaught, unspecified \"error\" event. (' + er + ')');\r\n        err.context = er;\r\n        throw err;\r\n      }\r\n    }\r\n  }\r\n\r\n  handler = this._events[type];\r\n\r\n  if (isUndefined(handler))\r\n    return false;\r\n\r\n  if (isFunction(handler)) {\r\n    switch (arguments.length) {\r\n      // fast cases\r\n      case 1:\r\n        handler.call(this);\r\n        break;\r\n      case 2:\r\n        handler.call(this, arguments[1]);\r\n        break;\r\n      case 3:\r\n        handler.call(this, arguments[1], arguments[2]);\r\n        break;\r\n      // slower\r\n      default:\r\n        args = Array.prototype.slice.call(arguments, 1);\r\n        handler.apply(this, args);\r\n    }\r\n  } else if (isObject(handler)) {\r\n    args = Array.prototype.slice.call(arguments, 1);\r\n    listeners = handler.slice();\r\n    len = listeners.length;\r\n    for (i = 0; i < len; i++)\r\n      listeners[i].apply(this, args);\r\n  }\r\n\r\n  return true;\r\n};\r\n\r\nEventEmitter.prototype.addListener = function(type, listener) {\r\n  var m;\r\n\r\n  if (!isFunction(listener))\r\n    throw TypeError('listener must be a function');\r\n\r\n  if (!this._events)\r\n    this._events = {};\r\n\r\n  // To avoid recursion in the case that type === \"newListener\"! Before\r\n  // adding it to the listeners, first emit \"newListener\".\r\n  if (this._events.newListener)\r\n    this.emit('newListener', type,\r\n              isFunction(listener.listener) ?\r\n              listener.listener : listener);\r\n\r\n  if (!this._events[type])\r\n    // Optimize the case of one listener. Don't need the extra array object.\r\n    this._events[type] = listener;\r\n  else if (isObject(this._events[type]))\r\n    // If we've already got an array, just append.\r\n    this._events[type].push(listener);\r\n  else\r\n    // Adding the second element, need to change to array.\r\n    this._events[type] = [this._events[type], listener];\r\n\r\n  // Check for listener leak\r\n  if (isObject(this._events[type]) && !this._events[type].warned) {\r\n    if (!isUndefined(this._maxListeners)) {\r\n      m = this._maxListeners;\r\n    } else {\r\n      m = EventEmitter.defaultMaxListeners;\r\n    }\r\n\r\n    if (m && m > 0 && this._events[type].length > m) {\r\n      this._events[type].warned = true;\r\n      console.error('(node) warning: possible EventEmitter memory ' +\r\n                    'leak detected. %d listeners added. ' +\r\n                    'Use emitter.setMaxListeners() to increase limit.',\r\n                    this._events[type].length);\r\n      if (typeof console.trace === 'function') {\r\n        // not supported in IE 10\r\n        console.trace();\r\n      }\r\n    }\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\r\n\r\nEventEmitter.prototype.once = function(type, listener) {\r\n  if (!isFunction(listener))\r\n    throw TypeError('listener must be a function');\r\n\r\n  var fired = false;\r\n\r\n  function g() {\r\n    this.removeListener(type, g);\r\n\r\n    if (!fired) {\r\n      fired = true;\r\n      listener.apply(this, arguments);\r\n    }\r\n  }\r\n\r\n  g.listener = listener;\r\n  this.on(type, g);\r\n\r\n  return this;\r\n};\r\n\r\n// emits a 'removeListener' event iff the listener was removed\r\nEventEmitter.prototype.removeListener = function(type, listener) {\r\n  var list, position, length, i;\r\n\r\n  if (!isFunction(listener))\r\n    throw TypeError('listener must be a function');\r\n\r\n  if (!this._events || !this._events[type])\r\n    return this;\r\n\r\n  list = this._events[type];\r\n  length = list.length;\r\n  position = -1;\r\n\r\n  if (list === listener ||\r\n      (isFunction(list.listener) && list.listener === listener)) {\r\n    delete this._events[type];\r\n    if (this._events.removeListener)\r\n      this.emit('removeListener', type, listener);\r\n\r\n  } else if (isObject(list)) {\r\n    for (i = length; i-- > 0;) {\r\n      if (list[i] === listener ||\r\n          (list[i].listener && list[i].listener === listener)) {\r\n        position = i;\r\n        break;\r\n      }\r\n    }\r\n\r\n    if (position < 0)\r\n      return this;\r\n\r\n    if (list.length === 1) {\r\n      list.length = 0;\r\n      delete this._events[type];\r\n    } else {\r\n      list.splice(position, 1);\r\n    }\r\n\r\n    if (this._events.removeListener)\r\n      this.emit('removeListener', type, listener);\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\nEventEmitter.prototype.removeAllListeners = function(type) {\r\n  var key, listeners;\r\n\r\n  if (!this._events)\r\n    return this;\r\n\r\n  // not listening for removeListener, no need to emit\r\n  if (!this._events.removeListener) {\r\n    if (arguments.length === 0)\r\n      this._events = {};\r\n    else if (this._events[type])\r\n      delete this._events[type];\r\n    return this;\r\n  }\r\n\r\n  // emit removeListener for all listeners on all events\r\n  if (arguments.length === 0) {\r\n    for (key in this._events) {\r\n      if (key === 'removeListener') continue;\r\n      this.removeAllListeners(key);\r\n    }\r\n    this.removeAllListeners('removeListener');\r\n    this._events = {};\r\n    return this;\r\n  }\r\n\r\n  listeners = this._events[type];\r\n\r\n  if (isFunction(listeners)) {\r\n    this.removeListener(type, listeners);\r\n  } else if (listeners) {\r\n    // LIFO order\r\n    while (listeners.length)\r\n      this.removeListener(type, listeners[listeners.length - 1]);\r\n  }\r\n  delete this._events[type];\r\n\r\n  return this;\r\n};\r\n\r\nEventEmitter.prototype.listeners = function(type) {\r\n  var ret;\r\n  if (!this._events || !this._events[type])\r\n    ret = [];\r\n  else if (isFunction(this._events[type]))\r\n    ret = [this._events[type]];\r\n  else\r\n    ret = this._events[type].slice();\r\n  return ret;\r\n};\r\n\r\nEventEmitter.prototype.listenerCount = function(type) {\r\n  if (this._events) {\r\n    var evlistener = this._events[type];\r\n\r\n    if (isFunction(evlistener))\r\n      return 1;\r\n    else if (evlistener)\r\n      return evlistener.length;\r\n  }\r\n  return 0;\r\n};\r\n\r\nEventEmitter.listenerCount = function(emitter, type) {\r\n  return emitter.listenerCount(type);\r\n};\r\n\r\nfunction isFunction(arg) {\r\n  return typeof arg === 'function';\r\n}\r\n\r\nfunction isNumber(arg) {\r\n  return typeof arg === 'number';\r\n}\r\n\r\nfunction isObject(arg) {\r\n  return typeof arg === 'object' && arg !== null;\r\n}\r\n\r\nfunction isUndefined(arg) {\r\n  return arg === void 0;\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/events/events.js\n// module id = 138\n// module chunks = 2","'use strict';\r\n\r\nvar external = require(\"./external\");\r\nvar DataWorker = require('./stream/DataWorker');\r\nvar DataLengthProbe = require('./stream/DataLengthProbe');\r\nvar Crc32Probe = require('./stream/Crc32Probe');\r\nvar DataLengthProbe = require('./stream/DataLengthProbe');\r\n\r\n/**\r\n * Represent a compressed object, with everything needed to decompress it.\r\n * @constructor\r\n * @param {number} compressedSize the size of the data compressed.\r\n * @param {number} uncompressedSize the size of the data after decompression.\r\n * @param {number} crc32 the crc32 of the decompressed file.\r\n * @param {object} compression the type of compression, see lib/compressions.js.\r\n * @param {String|ArrayBuffer|Uint8Array|Buffer} data the compressed data.\r\n */\r\nfunction CompressedObject(compressedSize, uncompressedSize, crc32, compression, data) {\r\n    this.compressedSize = compressedSize;\r\n    this.uncompressedSize = uncompressedSize;\r\n    this.crc32 = crc32;\r\n    this.compression = compression;\r\n    this.compressedContent = data;\r\n}\r\n\r\nCompressedObject.prototype = {\r\n    /**\r\n     * Create a worker to get the uncompressed content.\r\n     * @return {GenericWorker} the worker.\r\n     */\r\n    getContentWorker : function () {\r\n        var worker = new DataWorker(external.Promise.resolve(this.compressedContent))\r\n        .pipe(this.compression.uncompressWorker())\r\n        .pipe(new DataLengthProbe(\"data_length\"));\r\n\r\n        var that = this;\r\n        worker.on(\"end\", function () {\r\n            if(this.streamInfo['data_length'] !== that.uncompressedSize) {\r\n                throw new Error(\"Bug : uncompressed data size mismatch\");\r\n            }\r\n        });\r\n        return worker;\r\n    },\r\n    /**\r\n     * Create a worker to get the compressed content.\r\n     * @return {GenericWorker} the worker.\r\n     */\r\n    getCompressedWorker : function () {\r\n        return new DataWorker(external.Promise.resolve(this.compressedContent))\r\n        .withStreamInfo(\"compressedSize\", this.compressedSize)\r\n        .withStreamInfo(\"uncompressedSize\", this.uncompressedSize)\r\n        .withStreamInfo(\"crc32\", this.crc32)\r\n        .withStreamInfo(\"compression\", this.compression)\r\n        ;\r\n    }\r\n};\r\n\r\n/**\r\n * Chain the given worker with other workers to compress the content with the\r\n * given compresion.\r\n * @param {GenericWorker} uncompressedWorker the worker to pipe.\r\n * @param {Object} compression the compression object.\r\n * @param {Object} compressionOptions the options to use when compressing.\r\n * @return {GenericWorker} the new worker compressing the content.\r\n */\r\nCompressedObject.createWorkerFrom = function (uncompressedWorker, compression, compressionOptions) {\r\n    return uncompressedWorker\r\n    .pipe(new Crc32Probe())\r\n    .pipe(new DataLengthProbe(\"uncompressedSize\"))\r\n    .pipe(compression.compressWorker(compressionOptions))\r\n    .pipe(new DataLengthProbe(\"compressedSize\"))\r\n    .withStreamInfo(\"compression\", compression);\r\n};\r\n\r\nmodule.exports = CompressedObject;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/compressedObject.js\n// module id = 139\n// module chunks = 2","'use strict';\r\n\r\nvar utils = require('./utils');\r\n\r\n/**\r\n * The following functions come from pako, from pako/lib/zlib/crc32.js\r\n * released under the MIT license, see pako https://github.com/nodeca/pako/\r\n */\r\n\r\n// Use ordinary array, since untyped makes no boost here\r\nfunction makeTable() {\r\n    var c, table = [];\r\n\r\n    for(var n =0; n < 256; n++){\r\n        c = n;\r\n        for(var k =0; k < 8; k++){\r\n            c = ((c&1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));\r\n        }\r\n        table[n] = c;\r\n    }\r\n\r\n    return table;\r\n}\r\n\r\n// Create table on load. Just 255 signed longs. Not a problem.\r\nvar crcTable = makeTable();\r\n\r\n\r\nfunction crc32(crc, buf, len, pos) {\r\n    var t = crcTable, end = pos + len;\r\n\r\n    crc = crc ^ (-1);\r\n\r\n    for (var i = pos; i < end; i++ ) {\r\n        crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];\r\n    }\r\n\r\n    return (crc ^ (-1)); // >>> 0;\r\n}\r\n\r\n// That's all for the pako functions.\r\n\r\n/**\r\n * Compute the crc32 of a string.\r\n * This is almost the same as the function crc32, but for strings. Using the\r\n * same function for the two use cases leads to horrible performances.\r\n * @param {Number} crc the starting value of the crc.\r\n * @param {String} str the string to use.\r\n * @param {Number} len the length of the string.\r\n * @param {Number} pos the starting position for the crc32 computation.\r\n * @return {Number} the computed crc32.\r\n */\r\nfunction crc32str(crc, str, len, pos) {\r\n    var t = crcTable, end = pos + len;\r\n\r\n    crc = crc ^ (-1);\r\n\r\n    for (var i = pos; i < end; i++ ) {\r\n        crc = (crc >>> 8) ^ t[(crc ^ str.charCodeAt(i)) & 0xFF];\r\n    }\r\n\r\n    return (crc ^ (-1)); // >>> 0;\r\n}\r\n\r\nmodule.exports = function crc32wrapper(input, crc) {\r\n    if (typeof input === \"undefined\" || !input.length) {\r\n        return 0;\r\n    }\r\n\r\n    var isArray = utils.getTypeOf(input) !== \"string\";\r\n\r\n    if(isArray) {\r\n        return crc32(crc|0, input, input.length, 0);\r\n    } else {\r\n        return crc32str(crc|0, input, input.length, 0);\r\n    }\r\n};\r\n// vim: set shiftwidth=4 softtabstop=4:\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/crc32.js\n// module id = 140\n// module chunks = 2","'use strict';\r\n\r\nmodule.exports = {\r\n  2:      'need dictionary',     /* Z_NEED_DICT       2  */\r\n  1:      'stream end',          /* Z_STREAM_END      1  */\r\n  0:      '',                    /* Z_OK              0  */\r\n  '-1':   'file error',          /* Z_ERRNO         (-1) */\r\n  '-2':   'stream error',        /* Z_STREAM_ERROR  (-2) */\r\n  '-3':   'data error',          /* Z_DATA_ERROR    (-3) */\r\n  '-4':   'insufficient memory', /* Z_MEM_ERROR     (-4) */\r\n  '-5':   'buffer error',        /* Z_BUF_ERROR     (-5) */\r\n  '-6':   'incompatible version' /* Z_VERSION_ERROR (-6) */\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/messages.js\n// module id = 162\n// module chunks = 2","'use strict';\r\n\r\nif (!process.version ||\r\n    process.version.indexOf('v0.') === 0 ||\r\n    process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\r\n  module.exports = nextTick;\r\n} else {\r\n  module.exports = process.nextTick;\r\n}\r\n\r\nfunction nextTick(fn, arg1, arg2, arg3) {\r\n  if (typeof fn !== 'function') {\r\n    throw new TypeError('\"callback\" argument must be a function');\r\n  }\r\n  var len = arguments.length;\r\n  var args, i;\r\n  switch (len) {\r\n  case 0:\r\n  case 1:\r\n    return process.nextTick(fn);\r\n  case 2:\r\n    return process.nextTick(function afterTickOne() {\r\n      fn.call(null, arg1);\r\n    });\r\n  case 3:\r\n    return process.nextTick(function afterTickTwo() {\r\n      fn.call(null, arg1, arg2);\r\n    });\r\n  case 4:\r\n    return process.nextTick(function afterTickThree() {\r\n      fn.call(null, arg1, arg2, arg3);\r\n    });\r\n  default:\r\n    args = new Array(len - 1);\r\n    i = 0;\r\n    while (i < args.length) {\r\n      args[i++] = arguments[i];\r\n    }\r\n    return process.nextTick(function afterTick() {\r\n      fn.apply(null, args);\r\n    });\r\n  }\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/process-nextick-args/index.js\n// module id = 163\n// module chunks = 2","// A bit simpler than readable streams.\r\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\r\n// the drain event emission and buffering.\r\n\r\n'use strict';\r\n\r\nmodule.exports = Writable;\r\n\r\n/*<replacement>*/\r\nvar processNextTick = require('process-nextick-args');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick;\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar Duplex;\r\n/*</replacement>*/\r\n\r\nWritable.WritableState = WritableState;\r\n\r\n/*<replacement>*/\r\nvar util = require('core-util-is');\r\nutil.inherits = require('inherits');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar internalUtil = {\r\n  deprecate: require('util-deprecate')\r\n};\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar Stream = require('./internal/streams/stream');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar Buffer = require('safe-buffer').Buffer;\r\n/*</replacement>*/\r\n\r\nutil.inherits(Writable, Stream);\r\n\r\nfunction nop() {}\r\n\r\nfunction WriteReq(chunk, encoding, cb) {\r\n  this.chunk = chunk;\r\n  this.encoding = encoding;\r\n  this.callback = cb;\r\n  this.next = null;\r\n}\r\n\r\nfunction WritableState(options, stream) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n\r\n  options = options || {};\r\n\r\n  // object stream flag to indicate whether or not this stream\r\n  // contains buffers or objects.\r\n  this.objectMode = !!options.objectMode;\r\n\r\n  if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\r\n\r\n  // the point at which write() starts returning false\r\n  // Note: 0 is a valid value, means that we always return false if\r\n  // the entire buffer is not flushed immediately on write()\r\n  var hwm = options.highWaterMark;\r\n  var defaultHwm = this.objectMode ? 16 : 16 * 1024;\r\n  this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;\r\n\r\n  // cast to ints.\r\n  this.highWaterMark = ~~this.highWaterMark;\r\n\r\n  // drain event flag.\r\n  this.needDrain = false;\r\n  // at the start of calling end()\r\n  this.ending = false;\r\n  // when end() has been called, and returned\r\n  this.ended = false;\r\n  // when 'finish' is emitted\r\n  this.finished = false;\r\n\r\n  // should we decode strings into buffers before passing to _write?\r\n  // this is here so that some node-core streams can optimize string\r\n  // handling at a lower level.\r\n  var noDecode = options.decodeStrings === false;\r\n  this.decodeStrings = !noDecode;\r\n\r\n  // Crypto is kind of old and crusty.  Historically, its default string\r\n  // encoding is 'binary' so we have to make this configurable.\r\n  // Everything else in the universe uses 'utf8', though.\r\n  this.defaultEncoding = options.defaultEncoding || 'utf8';\r\n\r\n  // not an actual buffer we keep track of, but a measurement\r\n  // of how much we're waiting to get pushed to some underlying\r\n  // socket or file.\r\n  this.length = 0;\r\n\r\n  // a flag to see when we're in the middle of a write.\r\n  this.writing = false;\r\n\r\n  // when true all writes will be buffered until .uncork() call\r\n  this.corked = 0;\r\n\r\n  // a flag to be able to tell if the onwrite cb is called immediately,\r\n  // or on a later tick.  We set this to true at first, because any\r\n  // actions that shouldn't happen until \"later\" should generally also\r\n  // not happen before the first write call.\r\n  this.sync = true;\r\n\r\n  // a flag to know if we're processing previously buffered items, which\r\n  // may call the _write() callback in the same tick, so that we don't\r\n  // end up in an overlapped onwrite situation.\r\n  this.bufferProcessing = false;\r\n\r\n  // the callback that's passed to _write(chunk,cb)\r\n  this.onwrite = function (er) {\r\n    onwrite(stream, er);\r\n  };\r\n\r\n  // the callback that the user supplies to write(chunk,encoding,cb)\r\n  this.writecb = null;\r\n\r\n  // the amount that is being written when _write is called.\r\n  this.writelen = 0;\r\n\r\n  this.bufferedRequest = null;\r\n  this.lastBufferedRequest = null;\r\n\r\n  // number of pending user-supplied write callbacks\r\n  // this must be 0 before 'finish' can be emitted\r\n  this.pendingcb = 0;\r\n\r\n  // emit prefinish if the only thing we're waiting for is _write cbs\r\n  // This is relevant for synchronous Transform streams\r\n  this.prefinished = false;\r\n\r\n  // True if the error was already emitted and should not be thrown again\r\n  this.errorEmitted = false;\r\n\r\n  // count buffered requests\r\n  this.bufferedRequestCount = 0;\r\n\r\n  // allocate the first CorkedRequest, there is always\r\n  // one allocated and free to use, and we maintain at most two\r\n  this.corkedRequestsFree = new CorkedRequest(this);\r\n}\r\n\r\nWritableState.prototype.getBuffer = function getBuffer() {\r\n  var current = this.bufferedRequest;\r\n  var out = [];\r\n  while (current) {\r\n    out.push(current);\r\n    current = current.next;\r\n  }\r\n  return out;\r\n};\r\n\r\n(function () {\r\n  try {\r\n    Object.defineProperty(WritableState.prototype, 'buffer', {\r\n      get: internalUtil.deprecate(function () {\r\n        return this.getBuffer();\r\n      }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.')\r\n    });\r\n  } catch (_) {}\r\n})();\r\n\r\n// Test _writableState for inheritance to account for Duplex streams,\r\n// whose prototype chain only points to Readable.\r\nvar realHasInstance;\r\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\r\n  realHasInstance = Function.prototype[Symbol.hasInstance];\r\n  Object.defineProperty(Writable, Symbol.hasInstance, {\r\n    value: function (object) {\r\n      if (realHasInstance.call(this, object)) return true;\r\n\r\n      return object && object._writableState instanceof WritableState;\r\n    }\r\n  });\r\n} else {\r\n  realHasInstance = function (object) {\r\n    return object instanceof this;\r\n  };\r\n}\r\n\r\nfunction Writable(options) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n\r\n  // Writable ctor is applied to Duplexes, too.\r\n  // `realHasInstance` is necessary because using plain `instanceof`\r\n  // would return false, as no `_writableState` property is attached.\r\n\r\n  // Trying to use the custom `instanceof` for Writable here will also break the\r\n  // Node.js LazyTransform implementation, which has a non-trivial getter for\r\n  // `_writableState` that would lead to infinite recursion.\r\n  if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\r\n    return new Writable(options);\r\n  }\r\n\r\n  this._writableState = new WritableState(options, this);\r\n\r\n  // legacy.\r\n  this.writable = true;\r\n\r\n  if (options) {\r\n    if (typeof options.write === 'function') this._write = options.write;\r\n\r\n    if (typeof options.writev === 'function') this._writev = options.writev;\r\n  }\r\n\r\n  Stream.call(this);\r\n}\r\n\r\n// Otherwise people can pipe Writable streams, which is just wrong.\r\nWritable.prototype.pipe = function () {\r\n  this.emit('error', new Error('Cannot pipe, not readable'));\r\n};\r\n\r\nfunction writeAfterEnd(stream, cb) {\r\n  var er = new Error('write after end');\r\n  // TODO: defer error events consistently everywhere, not just the cb\r\n  stream.emit('error', er);\r\n  processNextTick(cb, er);\r\n}\r\n\r\n// Checks that a user-supplied chunk is valid, especially for the particular\r\n// mode the stream is in. Currently this means that `null` is never accepted\r\n// and undefined/non-string values are only allowed in object mode.\r\nfunction validChunk(stream, state, chunk, cb) {\r\n  var valid = true;\r\n  var er = false;\r\n\r\n  if (chunk === null) {\r\n    er = new TypeError('May not write null values to stream');\r\n  } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\r\n    er = new TypeError('Invalid non-string/buffer chunk');\r\n  }\r\n  if (er) {\r\n    stream.emit('error', er);\r\n    processNextTick(cb, er);\r\n    valid = false;\r\n  }\r\n  return valid;\r\n}\r\n\r\nWritable.prototype.write = function (chunk, encoding, cb) {\r\n  var state = this._writableState;\r\n  var ret = false;\r\n  var isBuf = Buffer.isBuffer(chunk);\r\n\r\n  if (typeof encoding === 'function') {\r\n    cb = encoding;\r\n    encoding = null;\r\n  }\r\n\r\n  if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\r\n\r\n  if (typeof cb !== 'function') cb = nop;\r\n\r\n  if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\r\n    state.pendingcb++;\r\n    ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\r\n  }\r\n\r\n  return ret;\r\n};\r\n\r\nWritable.prototype.cork = function () {\r\n  var state = this._writableState;\r\n\r\n  state.corked++;\r\n};\r\n\r\nWritable.prototype.uncork = function () {\r\n  var state = this._writableState;\r\n\r\n  if (state.corked) {\r\n    state.corked--;\r\n\r\n    if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\r\n  }\r\n};\r\n\r\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\r\n  // node::ParseEncoding() requires lower case.\r\n  if (typeof encoding === 'string') encoding = encoding.toLowerCase();\r\n  if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\r\n  this._writableState.defaultEncoding = encoding;\r\n  return this;\r\n};\r\n\r\nfunction decodeChunk(state, chunk, encoding) {\r\n  if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\r\n    chunk = Buffer.from(chunk, encoding);\r\n  }\r\n  return chunk;\r\n}\r\n\r\n// if we're already writing something, then just put this\r\n// in the queue, and wait our turn.  Otherwise, call _write\r\n// If we return false, then we need a drain event, so set that flag.\r\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\r\n  if (!isBuf) {\r\n    chunk = decodeChunk(state, chunk, encoding);\r\n    if (Buffer.isBuffer(chunk)) encoding = 'buffer';\r\n  }\r\n  var len = state.objectMode ? 1 : chunk.length;\r\n\r\n  state.length += len;\r\n\r\n  var ret = state.length < state.highWaterMark;\r\n  // we must ensure that previous needDrain will not be reset to false.\r\n  if (!ret) state.needDrain = true;\r\n\r\n  if (state.writing || state.corked) {\r\n    var last = state.lastBufferedRequest;\r\n    state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\r\n    if (last) {\r\n      last.next = state.lastBufferedRequest;\r\n    } else {\r\n      state.bufferedRequest = state.lastBufferedRequest;\r\n    }\r\n    state.bufferedRequestCount += 1;\r\n  } else {\r\n    doWrite(stream, state, false, len, chunk, encoding, cb);\r\n  }\r\n\r\n  return ret;\r\n}\r\n\r\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\r\n  state.writelen = len;\r\n  state.writecb = cb;\r\n  state.writing = true;\r\n  state.sync = true;\r\n  if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\r\n  state.sync = false;\r\n}\r\n\r\nfunction onwriteError(stream, state, sync, er, cb) {\r\n  --state.pendingcb;\r\n  if (sync) processNextTick(cb, er);else cb(er);\r\n\r\n  stream._writableState.errorEmitted = true;\r\n  stream.emit('error', er);\r\n}\r\n\r\nfunction onwriteStateUpdate(state) {\r\n  state.writing = false;\r\n  state.writecb = null;\r\n  state.length -= state.writelen;\r\n  state.writelen = 0;\r\n}\r\n\r\nfunction onwrite(stream, er) {\r\n  var state = stream._writableState;\r\n  var sync = state.sync;\r\n  var cb = state.writecb;\r\n\r\n  onwriteStateUpdate(state);\r\n\r\n  if (er) onwriteError(stream, state, sync, er, cb);else {\r\n    // Check if we're actually ready to finish, but don't emit yet\r\n    var finished = needFinish(state);\r\n\r\n    if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\r\n      clearBuffer(stream, state);\r\n    }\r\n\r\n    if (sync) {\r\n      /*<replacement>*/\r\n      asyncWrite(afterWrite, stream, state, finished, cb);\r\n      /*</replacement>*/\r\n    } else {\r\n      afterWrite(stream, state, finished, cb);\r\n    }\r\n  }\r\n}\r\n\r\nfunction afterWrite(stream, state, finished, cb) {\r\n  if (!finished) onwriteDrain(stream, state);\r\n  state.pendingcb--;\r\n  cb();\r\n  finishMaybe(stream, state);\r\n}\r\n\r\n// Must force callback to be called on nextTick, so that we don't\r\n// emit 'drain' before the write() consumer gets the 'false' return\r\n// value, and has a chance to attach a 'drain' listener.\r\nfunction onwriteDrain(stream, state) {\r\n  if (state.length === 0 && state.needDrain) {\r\n    state.needDrain = false;\r\n    stream.emit('drain');\r\n  }\r\n}\r\n\r\n// if there's something in the buffer waiting, then process it\r\nfunction clearBuffer(stream, state) {\r\n  state.bufferProcessing = true;\r\n  var entry = state.bufferedRequest;\r\n\r\n  if (stream._writev && entry && entry.next) {\r\n    // Fast case, write everything using _writev()\r\n    var l = state.bufferedRequestCount;\r\n    var buffer = new Array(l);\r\n    var holder = state.corkedRequestsFree;\r\n    holder.entry = entry;\r\n\r\n    var count = 0;\r\n    while (entry) {\r\n      buffer[count] = entry;\r\n      entry = entry.next;\r\n      count += 1;\r\n    }\r\n\r\n    doWrite(stream, state, true, state.length, buffer, '', holder.finish);\r\n\r\n    // doWrite is almost always async, defer these to save a bit of time\r\n    // as the hot path ends with doWrite\r\n    state.pendingcb++;\r\n    state.lastBufferedRequest = null;\r\n    if (holder.next) {\r\n      state.corkedRequestsFree = holder.next;\r\n      holder.next = null;\r\n    } else {\r\n      state.corkedRequestsFree = new CorkedRequest(state);\r\n    }\r\n  } else {\r\n    // Slow case, write chunks one-by-one\r\n    while (entry) {\r\n      var chunk = entry.chunk;\r\n      var encoding = entry.encoding;\r\n      var cb = entry.callback;\r\n      var len = state.objectMode ? 1 : chunk.length;\r\n\r\n      doWrite(stream, state, false, len, chunk, encoding, cb);\r\n      entry = entry.next;\r\n      // if we didn't call the onwrite immediately, then\r\n      // it means that we need to wait until it does.\r\n      // also, that means that the chunk and cb are currently\r\n      // being processed, so move the buffer counter past them.\r\n      if (state.writing) {\r\n        break;\r\n      }\r\n    }\r\n\r\n    if (entry === null) state.lastBufferedRequest = null;\r\n  }\r\n\r\n  state.bufferedRequestCount = 0;\r\n  state.bufferedRequest = entry;\r\n  state.bufferProcessing = false;\r\n}\r\n\r\nWritable.prototype._write = function (chunk, encoding, cb) {\r\n  cb(new Error('_write() is not implemented'));\r\n};\r\n\r\nWritable.prototype._writev = null;\r\n\r\nWritable.prototype.end = function (chunk, encoding, cb) {\r\n  var state = this._writableState;\r\n\r\n  if (typeof chunk === 'function') {\r\n    cb = chunk;\r\n    chunk = null;\r\n    encoding = null;\r\n  } else if (typeof encoding === 'function') {\r\n    cb = encoding;\r\n    encoding = null;\r\n  }\r\n\r\n  if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\r\n\r\n  // .end() fully uncorks\r\n  if (state.corked) {\r\n    state.corked = 1;\r\n    this.uncork();\r\n  }\r\n\r\n  // ignore unnecessary end() calls.\r\n  if (!state.ending && !state.finished) endWritable(this, state, cb);\r\n};\r\n\r\nfunction needFinish(state) {\r\n  return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\r\n}\r\n\r\nfunction prefinish(stream, state) {\r\n  if (!state.prefinished) {\r\n    state.prefinished = true;\r\n    stream.emit('prefinish');\r\n  }\r\n}\r\n\r\nfunction finishMaybe(stream, state) {\r\n  var need = needFinish(state);\r\n  if (need) {\r\n    if (state.pendingcb === 0) {\r\n      prefinish(stream, state);\r\n      state.finished = true;\r\n      stream.emit('finish');\r\n    } else {\r\n      prefinish(stream, state);\r\n    }\r\n  }\r\n  return need;\r\n}\r\n\r\nfunction endWritable(stream, state, cb) {\r\n  state.ending = true;\r\n  finishMaybe(stream, state);\r\n  if (cb) {\r\n    if (state.finished) processNextTick(cb);else stream.once('finish', cb);\r\n  }\r\n  state.ended = true;\r\n  stream.writable = false;\r\n}\r\n\r\n// It seems a linked list but it is not\r\n// there will be only 2 of these for each stream\r\nfunction CorkedRequest(state) {\r\n  var _this = this;\r\n\r\n  this.next = null;\r\n  this.entry = null;\r\n  this.finish = function (err) {\r\n    var entry = _this.entry;\r\n    _this.entry = null;\r\n    while (entry) {\r\n      var cb = entry.callback;\r\n      state.pendingcb--;\r\n      cb(err);\r\n      entry = entry.next;\r\n    }\r\n    if (state.corkedRequestsFree) {\r\n      state.corkedRequestsFree.next = _this;\r\n    } else {\r\n      state.corkedRequestsFree = _this;\r\n    }\r\n  };\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/lib/_stream_writable.js\n// module id = 164\n// module chunks = 2","exports = module.exports = require('./lib/_stream_readable.js');\r\nexports.Stream = exports;\r\nexports.Readable = exports;\r\nexports.Writable = require('./lib/_stream_writable.js');\r\nexports.Duplex = require('./lib/_stream_duplex.js');\r\nexports.Transform = require('./lib/_stream_transform.js');\r\nexports.PassThrough = require('./lib/_stream_passthrough.js');\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/readable-browser.js\n// module id = 165\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar subscribeToResult_1 = require('../util/subscribeToResult');\r\nvar OuterSubscriber_1 = require('../OuterSubscriber');\r\n/* tslint:disable:max-line-length */\r\n/**\r\n * Projects each source value to an Observable which is merged in the output\r\n * Observable.\r\n *\r\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\r\n * these inner Observables using {@link mergeAll}.</span>\r\n *\r\n * <img src=\"./img/mergeMap.png\" width=\"100%\">\r\n *\r\n * Returns an Observable that emits items based on applying a function that you\r\n * supply to each item emitted by the source Observable, where that function\r\n * returns an Observable, and then merging those resulting Observables and\r\n * emitting the results of this merger.\r\n *\r\n * @example <caption>Map and flatten each letter to an Observable ticking every 1 second</caption>\r\n * var letters = Rx.Observable.of('a', 'b', 'c');\r\n * var result = letters.mergeMap(x =>\r\n *   Rx.Observable.interval(1000).map(i => x+i)\r\n * );\r\n * result.subscribe(x => console.log(x));\r\n *\r\n * // Results in the following:\r\n * // a0\r\n * // b0\r\n * // c0\r\n * // a1\r\n * // b1\r\n * // c1\r\n * // continues to list a,b,c with respective ascending integers\r\n *\r\n * @see {@link concatMap}\r\n * @see {@link exhaustMap}\r\n * @see {@link merge}\r\n * @see {@link mergeAll}\r\n * @see {@link mergeMapTo}\r\n * @see {@link mergeScan}\r\n * @see {@link switchMap}\r\n *\r\n * @param {function(value: T, ?index: number): Observable} project A function\r\n * that, when applied to an item emitted by the source Observable, returns an\r\n * Observable.\r\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\r\n * A function to produce the value on the output Observable based on the values\r\n * and the indices of the source (outer) emission and the inner Observable\r\n * emission. The arguments passed to this function are:\r\n * - `outerValue`: the value that came from the source\r\n * - `innerValue`: the value that came from the projected Observable\r\n * - `outerIndex`: the \"index\" of the value that came from the source\r\n * - `innerIndex`: the \"index\" of the value from the projected Observable\r\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\r\n * Observables being subscribed to concurrently.\r\n * @return {Observable} An Observable that emits the result of applying the\r\n * projection function (and the optional `resultSelector`) to each item emitted\r\n * by the source Observable and merging the results of the Observables obtained\r\n * from this transformation.\r\n * @method mergeMap\r\n * @owner Observable\r\n */\r\nfunction mergeMap(project, resultSelector, concurrent) {\r\n    if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\r\n    if (typeof resultSelector === 'number') {\r\n        concurrent = resultSelector;\r\n        resultSelector = null;\r\n    }\r\n    return this.lift(new MergeMapOperator(project, resultSelector, concurrent));\r\n}\r\nexports.mergeMap = mergeMap;\r\nvar MergeMapOperator = (function () {\r\n    function MergeMapOperator(project, resultSelector, concurrent) {\r\n        if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\r\n        this.project = project;\r\n        this.resultSelector = resultSelector;\r\n        this.concurrent = concurrent;\r\n    }\r\n    MergeMapOperator.prototype.call = function (observer, source) {\r\n        return source.subscribe(new MergeMapSubscriber(observer, this.project, this.resultSelector, this.concurrent));\r\n    };\r\n    return MergeMapOperator;\r\n}());\r\nexports.MergeMapOperator = MergeMapOperator;\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar MergeMapSubscriber = (function (_super) {\r\n    __extends(MergeMapSubscriber, _super);\r\n    function MergeMapSubscriber(destination, project, resultSelector, concurrent) {\r\n        if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\r\n        _super.call(this, destination);\r\n        this.project = project;\r\n        this.resultSelector = resultSelector;\r\n        this.concurrent = concurrent;\r\n        this.hasCompleted = false;\r\n        this.buffer = [];\r\n        this.active = 0;\r\n        this.index = 0;\r\n    }\r\n    MergeMapSubscriber.prototype._next = function (value) {\r\n        if (this.active < this.concurrent) {\r\n            this._tryNext(value);\r\n        }\r\n        else {\r\n            this.buffer.push(value);\r\n        }\r\n    };\r\n    MergeMapSubscriber.prototype._tryNext = function (value) {\r\n        var result;\r\n        var index = this.index++;\r\n        try {\r\n            result = this.project(value, index);\r\n        }\r\n        catch (err) {\r\n            this.destination.error(err);\r\n            return;\r\n        }\r\n        this.active++;\r\n        this._innerSub(result, value, index);\r\n    };\r\n    MergeMapSubscriber.prototype._innerSub = function (ish, value, index) {\r\n        this.add(subscribeToResult_1.subscribeToResult(this, ish, value, index));\r\n    };\r\n    MergeMapSubscriber.prototype._complete = function () {\r\n        this.hasCompleted = true;\r\n        if (this.active === 0 && this.buffer.length === 0) {\r\n            this.destination.complete();\r\n        }\r\n    };\r\n    MergeMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\r\n        if (this.resultSelector) {\r\n            this._notifyResultSelector(outerValue, innerValue, outerIndex, innerIndex);\r\n        }\r\n        else {\r\n            this.destination.next(innerValue);\r\n        }\r\n    };\r\n    MergeMapSubscriber.prototype._notifyResultSelector = function (outerValue, innerValue, outerIndex, innerIndex) {\r\n        var result;\r\n        try {\r\n            result = this.resultSelector(outerValue, innerValue, outerIndex, innerIndex);\r\n        }\r\n        catch (err) {\r\n            this.destination.error(err);\r\n            return;\r\n        }\r\n        this.destination.next(result);\r\n    };\r\n    MergeMapSubscriber.prototype.notifyComplete = function (innerSub) {\r\n        var buffer = this.buffer;\r\n        this.remove(innerSub);\r\n        this.active--;\r\n        if (buffer.length > 0) {\r\n            this._next(buffer.shift());\r\n        }\r\n        else if (this.active === 0 && this.hasCompleted) {\r\n            this.destination.complete();\r\n        }\r\n    };\r\n    return MergeMapSubscriber;\r\n}(OuterSubscriber_1.OuterSubscriber));\r\nexports.MergeMapSubscriber = MergeMapSubscriber;\r\n//# sourceMappingURL=mergeMap.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/mergeMap.js\n// module id = 166\n// module chunks = 2","\"use strict\";\r\nfunction isFunction(x) {\r\n    return typeof x === 'function';\r\n}\r\nexports.isFunction = isFunction;\r\n//# sourceMappingURL=isFunction.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/isFunction.js\n// module id = 167\n// module chunks = 2","module.exports = require('buffer')\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/safe-buffer/browser.js\n// module id = 168\n// module chunks = 2","/*! tether 1.4.0 */\r\n\r\n(function(root, factory) {\r\n  if (typeof define === 'function' && define.amd) {\r\n    define(factory);\r\n  } else if (typeof exports === 'object') {\r\n    module.exports = factory(require, exports, module);\r\n  } else {\r\n    root.Tether = factory();\r\n  }\r\n}(this, function(require, exports, module) {\r\n\r\n'use strict';\r\n\r\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\r\n\r\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\r\n\r\nvar TetherBase = undefined;\r\nif (typeof TetherBase === 'undefined') {\r\n  TetherBase = { modules: [] };\r\n}\r\n\r\nvar zeroElement = null;\r\n\r\n// Same as native getBoundingClientRect, except it takes into account parent <frame> offsets\r\n// if the element lies within a nested document (<frame> or <iframe>-like).\r\nfunction getActualBoundingClientRect(node) {\r\n  var boundingRect = node.getBoundingClientRect();\r\n\r\n  // The original object returned by getBoundingClientRect is immutable, so we clone it\r\n  // We can't use extend because the properties are not considered part of the object by hasOwnProperty in IE9\r\n  var rect = {};\r\n  for (var k in boundingRect) {\r\n    rect[k] = boundingRect[k];\r\n  }\r\n\r\n  if (node.ownerDocument !== document) {\r\n    var _frameElement = node.ownerDocument.defaultView.frameElement;\r\n    if (_frameElement) {\r\n      var frameRect = getActualBoundingClientRect(_frameElement);\r\n      rect.top += frameRect.top;\r\n      rect.bottom += frameRect.top;\r\n      rect.left += frameRect.left;\r\n      rect.right += frameRect.left;\r\n    }\r\n  }\r\n\r\n  return rect;\r\n}\r\n\r\nfunction getScrollParents(el) {\r\n  // In firefox if the el is inside an iframe with display: none; window.getComputedStyle() will return null;\r\n  // https://bugzilla.mozilla.org/show_bug.cgi?id=548397\r\n  var computedStyle = getComputedStyle(el) || {};\r\n  var position = computedStyle.position;\r\n  var parents = [];\r\n\r\n  if (position === 'fixed') {\r\n    return [el];\r\n  }\r\n\r\n  var parent = el;\r\n  while ((parent = parent.parentNode) && parent && parent.nodeType === 1) {\r\n    var style = undefined;\r\n    try {\r\n      style = getComputedStyle(parent);\r\n    } catch (err) {}\r\n\r\n    if (typeof style === 'undefined' || style === null) {\r\n      parents.push(parent);\r\n      return parents;\r\n    }\r\n\r\n    var _style = style;\r\n    var overflow = _style.overflow;\r\n    var overflowX = _style.overflowX;\r\n    var overflowY = _style.overflowY;\r\n\r\n    if (/(auto|scroll)/.test(overflow + overflowY + overflowX)) {\r\n      if (position !== 'absolute' || ['relative', 'absolute', 'fixed'].indexOf(style.position) >= 0) {\r\n        parents.push(parent);\r\n      }\r\n    }\r\n  }\r\n\r\n  parents.push(el.ownerDocument.body);\r\n\r\n  // If the node is within a frame, account for the parent window scroll\r\n  if (el.ownerDocument !== document) {\r\n    parents.push(el.ownerDocument.defaultView);\r\n  }\r\n\r\n  return parents;\r\n}\r\n\r\nvar uniqueId = (function () {\r\n  var id = 0;\r\n  return function () {\r\n    return ++id;\r\n  };\r\n})();\r\n\r\nvar zeroPosCache = {};\r\nvar getOrigin = function getOrigin() {\r\n  // getBoundingClientRect is unfortunately too accurate.  It introduces a pixel or two of\r\n  // jitter as the user scrolls that messes with our ability to detect if two positions\r\n  // are equivilant or not.  We place an element at the top left of the page that will\r\n  // get the same jitter, so we can cancel the two out.\r\n  var node = zeroElement;\r\n  if (!node || !document.body.contains(node)) {\r\n    node = document.createElement('div');\r\n    node.setAttribute('data-tether-id', uniqueId());\r\n    extend(node.style, {\r\n      top: 0,\r\n      left: 0,\r\n      position: 'absolute'\r\n    });\r\n\r\n    document.body.appendChild(node);\r\n\r\n    zeroElement = node;\r\n  }\r\n\r\n  var id = node.getAttribute('data-tether-id');\r\n  if (typeof zeroPosCache[id] === 'undefined') {\r\n    zeroPosCache[id] = getActualBoundingClientRect(node);\r\n\r\n    // Clear the cache when this position call is done\r\n    defer(function () {\r\n      delete zeroPosCache[id];\r\n    });\r\n  }\r\n\r\n  return zeroPosCache[id];\r\n};\r\n\r\nfunction removeUtilElements() {\r\n  if (zeroElement) {\r\n    document.body.removeChild(zeroElement);\r\n  }\r\n  zeroElement = null;\r\n};\r\n\r\nfunction getBounds(el) {\r\n  var doc = undefined;\r\n  if (el === document) {\r\n    doc = document;\r\n    el = document.documentElement;\r\n  } else {\r\n    doc = el.ownerDocument;\r\n  }\r\n\r\n  var docEl = doc.documentElement;\r\n\r\n  var box = getActualBoundingClientRect(el);\r\n\r\n  var origin = getOrigin();\r\n\r\n  box.top -= origin.top;\r\n  box.left -= origin.left;\r\n\r\n  if (typeof box.width === 'undefined') {\r\n    box.width = document.body.scrollWidth - box.left - box.right;\r\n  }\r\n  if (typeof box.height === 'undefined') {\r\n    box.height = document.body.scrollHeight - box.top - box.bottom;\r\n  }\r\n\r\n  box.top = box.top - docEl.clientTop;\r\n  box.left = box.left - docEl.clientLeft;\r\n  box.right = doc.body.clientWidth - box.width - box.left;\r\n  box.bottom = doc.body.clientHeight - box.height - box.top;\r\n\r\n  return box;\r\n}\r\n\r\nfunction getOffsetParent(el) {\r\n  return el.offsetParent || document.documentElement;\r\n}\r\n\r\nvar _scrollBarSize = null;\r\nfunction getScrollBarSize() {\r\n  if (_scrollBarSize) {\r\n    return _scrollBarSize;\r\n  }\r\n  var inner = document.createElement('div');\r\n  inner.style.width = '100%';\r\n  inner.style.height = '200px';\r\n\r\n  var outer = document.createElement('div');\r\n  extend(outer.style, {\r\n    position: 'absolute',\r\n    top: 0,\r\n    left: 0,\r\n    pointerEvents: 'none',\r\n    visibility: 'hidden',\r\n    width: '200px',\r\n    height: '150px',\r\n    overflow: 'hidden'\r\n  });\r\n\r\n  outer.appendChild(inner);\r\n\r\n  document.body.appendChild(outer);\r\n\r\n  var widthContained = inner.offsetWidth;\r\n  outer.style.overflow = 'scroll';\r\n  var widthScroll = inner.offsetWidth;\r\n\r\n  if (widthContained === widthScroll) {\r\n    widthScroll = outer.clientWidth;\r\n  }\r\n\r\n  document.body.removeChild(outer);\r\n\r\n  var width = widthContained - widthScroll;\r\n\r\n  _scrollBarSize = { width: width, height: width };\r\n  return _scrollBarSize;\r\n}\r\n\r\nfunction extend() {\r\n  var out = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\r\n\r\n  var args = [];\r\n\r\n  Array.prototype.push.apply(args, arguments);\r\n\r\n  args.slice(1).forEach(function (obj) {\r\n    if (obj) {\r\n      for (var key in obj) {\r\n        if (({}).hasOwnProperty.call(obj, key)) {\r\n          out[key] = obj[key];\r\n        }\r\n      }\r\n    }\r\n  });\r\n\r\n  return out;\r\n}\r\n\r\nfunction removeClass(el, name) {\r\n  if (typeof el.classList !== 'undefined') {\r\n    name.split(' ').forEach(function (cls) {\r\n      if (cls.trim()) {\r\n        el.classList.remove(cls);\r\n      }\r\n    });\r\n  } else {\r\n    var regex = new RegExp('(^| )' + name.split(' ').join('|') + '( |$)', 'gi');\r\n    var className = getClassName(el).replace(regex, ' ');\r\n    setClassName(el, className);\r\n  }\r\n}\r\n\r\nfunction addClass(el, name) {\r\n  if (typeof el.classList !== 'undefined') {\r\n    name.split(' ').forEach(function (cls) {\r\n      if (cls.trim()) {\r\n        el.classList.add(cls);\r\n      }\r\n    });\r\n  } else {\r\n    removeClass(el, name);\r\n    var cls = getClassName(el) + (' ' + name);\r\n    setClassName(el, cls);\r\n  }\r\n}\r\n\r\nfunction hasClass(el, name) {\r\n  if (typeof el.classList !== 'undefined') {\r\n    return el.classList.contains(name);\r\n  }\r\n  var className = getClassName(el);\r\n  return new RegExp('(^| )' + name + '( |$)', 'gi').test(className);\r\n}\r\n\r\nfunction getClassName(el) {\r\n  // Can't use just SVGAnimatedString here since nodes within a Frame in IE have\r\n  // completely separately SVGAnimatedString base classes\r\n  if (el.className instanceof el.ownerDocument.defaultView.SVGAnimatedString) {\r\n    return el.className.baseVal;\r\n  }\r\n  return el.className;\r\n}\r\n\r\nfunction setClassName(el, className) {\r\n  el.setAttribute('class', className);\r\n}\r\n\r\nfunction updateClasses(el, add, all) {\r\n  // Of the set of 'all' classes, we need the 'add' classes, and only the\r\n  // 'add' classes to be set.\r\n  all.forEach(function (cls) {\r\n    if (add.indexOf(cls) === -1 && hasClass(el, cls)) {\r\n      removeClass(el, cls);\r\n    }\r\n  });\r\n\r\n  add.forEach(function (cls) {\r\n    if (!hasClass(el, cls)) {\r\n      addClass(el, cls);\r\n    }\r\n  });\r\n}\r\n\r\nvar deferred = [];\r\n\r\nvar defer = function defer(fn) {\r\n  deferred.push(fn);\r\n};\r\n\r\nvar flush = function flush() {\r\n  var fn = undefined;\r\n  while (fn = deferred.pop()) {\r\n    fn();\r\n  }\r\n};\r\n\r\nvar Evented = (function () {\r\n  function Evented() {\r\n    _classCallCheck(this, Evented);\r\n  }\r\n\r\n  _createClass(Evented, [{\r\n    key: 'on',\r\n    value: function on(event, handler, ctx) {\r\n      var once = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3];\r\n\r\n      if (typeof this.bindings === 'undefined') {\r\n        this.bindings = {};\r\n      }\r\n      if (typeof this.bindings[event] === 'undefined') {\r\n        this.bindings[event] = [];\r\n      }\r\n      this.bindings[event].push({ handler: handler, ctx: ctx, once: once });\r\n    }\r\n  }, {\r\n    key: 'once',\r\n    value: function once(event, handler, ctx) {\r\n      this.on(event, handler, ctx, true);\r\n    }\r\n  }, {\r\n    key: 'off',\r\n    value: function off(event, handler) {\r\n      if (typeof this.bindings === 'undefined' || typeof this.bindings[event] === 'undefined') {\r\n        return;\r\n      }\r\n\r\n      if (typeof handler === 'undefined') {\r\n        delete this.bindings[event];\r\n      } else {\r\n        var i = 0;\r\n        while (i < this.bindings[event].length) {\r\n          if (this.bindings[event][i].handler === handler) {\r\n            this.bindings[event].splice(i, 1);\r\n          } else {\r\n            ++i;\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }, {\r\n    key: 'trigger',\r\n    value: function trigger(event) {\r\n      if (typeof this.bindings !== 'undefined' && this.bindings[event]) {\r\n        var i = 0;\r\n\r\n        for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\r\n          args[_key - 1] = arguments[_key];\r\n        }\r\n\r\n        while (i < this.bindings[event].length) {\r\n          var _bindings$event$i = this.bindings[event][i];\r\n          var handler = _bindings$event$i.handler;\r\n          var ctx = _bindings$event$i.ctx;\r\n          var once = _bindings$event$i.once;\r\n\r\n          var context = ctx;\r\n          if (typeof context === 'undefined') {\r\n            context = this;\r\n          }\r\n\r\n          handler.apply(context, args);\r\n\r\n          if (once) {\r\n            this.bindings[event].splice(i, 1);\r\n          } else {\r\n            ++i;\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }]);\r\n\r\n  return Evented;\r\n})();\r\n\r\nTetherBase.Utils = {\r\n  getActualBoundingClientRect: getActualBoundingClientRect,\r\n  getScrollParents: getScrollParents,\r\n  getBounds: getBounds,\r\n  getOffsetParent: getOffsetParent,\r\n  extend: extend,\r\n  addClass: addClass,\r\n  removeClass: removeClass,\r\n  hasClass: hasClass,\r\n  updateClasses: updateClasses,\r\n  defer: defer,\r\n  flush: flush,\r\n  uniqueId: uniqueId,\r\n  Evented: Evented,\r\n  getScrollBarSize: getScrollBarSize,\r\n  removeUtilElements: removeUtilElements\r\n};\r\n/* globals TetherBase, performance */\r\n\r\n'use strict';\r\n\r\nvar _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\r\n\r\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\r\n\r\nvar _get = function get(_x6, _x7, _x8) { var _again = true; _function: while (_again) { var object = _x6, property = _x7, receiver = _x8; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x6 = parent; _x7 = property; _x8 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\r\n\r\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\r\n\r\nfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\r\n\r\nif (typeof TetherBase === 'undefined') {\r\n  throw new Error('You must include the utils.js file before tether.js');\r\n}\r\n\r\nvar _TetherBase$Utils = TetherBase.Utils;\r\nvar getScrollParents = _TetherBase$Utils.getScrollParents;\r\nvar getBounds = _TetherBase$Utils.getBounds;\r\nvar getOffsetParent = _TetherBase$Utils.getOffsetParent;\r\nvar extend = _TetherBase$Utils.extend;\r\nvar addClass = _TetherBase$Utils.addClass;\r\nvar removeClass = _TetherBase$Utils.removeClass;\r\nvar updateClasses = _TetherBase$Utils.updateClasses;\r\nvar defer = _TetherBase$Utils.defer;\r\nvar flush = _TetherBase$Utils.flush;\r\nvar getScrollBarSize = _TetherBase$Utils.getScrollBarSize;\r\nvar removeUtilElements = _TetherBase$Utils.removeUtilElements;\r\n\r\nfunction within(a, b) {\r\n  var diff = arguments.length <= 2 || arguments[2] === undefined ? 1 : arguments[2];\r\n\r\n  return a + diff >= b && b >= a - diff;\r\n}\r\n\r\nvar transformKey = (function () {\r\n  if (typeof document === 'undefined') {\r\n    return '';\r\n  }\r\n  var el = document.createElement('div');\r\n\r\n  var transforms = ['transform', 'WebkitTransform', 'OTransform', 'MozTransform', 'msTransform'];\r\n  for (var i = 0; i < transforms.length; ++i) {\r\n    var key = transforms[i];\r\n    if (el.style[key] !== undefined) {\r\n      return key;\r\n    }\r\n  }\r\n})();\r\n\r\nvar tethers = [];\r\n\r\nvar position = function position() {\r\n  tethers.forEach(function (tether) {\r\n    tether.position(false);\r\n  });\r\n  flush();\r\n};\r\n\r\nfunction now() {\r\n  if (typeof performance !== 'undefined' && typeof performance.now !== 'undefined') {\r\n    return performance.now();\r\n  }\r\n  return +new Date();\r\n}\r\n\r\n(function () {\r\n  var lastCall = null;\r\n  var lastDuration = null;\r\n  var pendingTimeout = null;\r\n\r\n  var tick = function tick() {\r\n    if (typeof lastDuration !== 'undefined' && lastDuration > 16) {\r\n      // We voluntarily throttle ourselves if we can't manage 60fps\r\n      lastDuration = Math.min(lastDuration - 16, 250);\r\n\r\n      // Just in case this is the last event, remember to position just once more\r\n      pendingTimeout = setTimeout(tick, 250);\r\n      return;\r\n    }\r\n\r\n    if (typeof lastCall !== 'undefined' && now() - lastCall < 10) {\r\n      // Some browsers call events a little too frequently, refuse to run more than is reasonable\r\n      return;\r\n    }\r\n\r\n    if (pendingTimeout != null) {\r\n      clearTimeout(pendingTimeout);\r\n      pendingTimeout = null;\r\n    }\r\n\r\n    lastCall = now();\r\n    position();\r\n    lastDuration = now() - lastCall;\r\n  };\r\n\r\n  if (typeof window !== 'undefined' && typeof window.addEventListener !== 'undefined') {\r\n    ['resize', 'scroll', 'touchmove'].forEach(function (event) {\r\n      window.addEventListener(event, tick);\r\n    });\r\n  }\r\n})();\r\n\r\nvar MIRROR_LR = {\r\n  center: 'center',\r\n  left: 'right',\r\n  right: 'left'\r\n};\r\n\r\nvar MIRROR_TB = {\r\n  middle: 'middle',\r\n  top: 'bottom',\r\n  bottom: 'top'\r\n};\r\n\r\nvar OFFSET_MAP = {\r\n  top: 0,\r\n  left: 0,\r\n  middle: '50%',\r\n  center: '50%',\r\n  bottom: '100%',\r\n  right: '100%'\r\n};\r\n\r\nvar autoToFixedAttachment = function autoToFixedAttachment(attachment, relativeToAttachment) {\r\n  var left = attachment.left;\r\n  var top = attachment.top;\r\n\r\n  if (left === 'auto') {\r\n    left = MIRROR_LR[relativeToAttachment.left];\r\n  }\r\n\r\n  if (top === 'auto') {\r\n    top = MIRROR_TB[relativeToAttachment.top];\r\n  }\r\n\r\n  return { left: left, top: top };\r\n};\r\n\r\nvar attachmentToOffset = function attachmentToOffset(attachment) {\r\n  var left = attachment.left;\r\n  var top = attachment.top;\r\n\r\n  if (typeof OFFSET_MAP[attachment.left] !== 'undefined') {\r\n    left = OFFSET_MAP[attachment.left];\r\n  }\r\n\r\n  if (typeof OFFSET_MAP[attachment.top] !== 'undefined') {\r\n    top = OFFSET_MAP[attachment.top];\r\n  }\r\n\r\n  return { left: left, top: top };\r\n};\r\n\r\nfunction addOffset() {\r\n  var out = { top: 0, left: 0 };\r\n\r\n  for (var _len = arguments.length, offsets = Array(_len), _key = 0; _key < _len; _key++) {\r\n    offsets[_key] = arguments[_key];\r\n  }\r\n\r\n  offsets.forEach(function (_ref) {\r\n    var top = _ref.top;\r\n    var left = _ref.left;\r\n\r\n    if (typeof top === 'string') {\r\n      top = parseFloat(top, 10);\r\n    }\r\n    if (typeof left === 'string') {\r\n      left = parseFloat(left, 10);\r\n    }\r\n\r\n    out.top += top;\r\n    out.left += left;\r\n  });\r\n\r\n  return out;\r\n}\r\n\r\nfunction offsetToPx(offset, size) {\r\n  if (typeof offset.left === 'string' && offset.left.indexOf('%') !== -1) {\r\n    offset.left = parseFloat(offset.left, 10) / 100 * size.width;\r\n  }\r\n  if (typeof offset.top === 'string' && offset.top.indexOf('%') !== -1) {\r\n    offset.top = parseFloat(offset.top, 10) / 100 * size.height;\r\n  }\r\n\r\n  return offset;\r\n}\r\n\r\nvar parseOffset = function parseOffset(value) {\r\n  var _value$split = value.split(' ');\r\n\r\n  var _value$split2 = _slicedToArray(_value$split, 2);\r\n\r\n  var top = _value$split2[0];\r\n  var left = _value$split2[1];\r\n\r\n  return { top: top, left: left };\r\n};\r\nvar parseAttachment = parseOffset;\r\n\r\nvar TetherClass = (function (_Evented) {\r\n  _inherits(TetherClass, _Evented);\r\n\r\n  function TetherClass(options) {\r\n    var _this = this;\r\n\r\n    _classCallCheck(this, TetherClass);\r\n\r\n    _get(Object.getPrototypeOf(TetherClass.prototype), 'constructor', this).call(this);\r\n    this.position = this.position.bind(this);\r\n\r\n    tethers.push(this);\r\n\r\n    this.history = [];\r\n\r\n    this.setOptions(options, false);\r\n\r\n    TetherBase.modules.forEach(function (module) {\r\n      if (typeof module.initialize !== 'undefined') {\r\n        module.initialize.call(_this);\r\n      }\r\n    });\r\n\r\n    this.position();\r\n  }\r\n\r\n  _createClass(TetherClass, [{\r\n    key: 'getClass',\r\n    value: function getClass() {\r\n      var key = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];\r\n      var classes = this.options.classes;\r\n\r\n      if (typeof classes !== 'undefined' && classes[key]) {\r\n        return this.options.classes[key];\r\n      } else if (this.options.classPrefix) {\r\n        return this.options.classPrefix + '-' + key;\r\n      } else {\r\n        return key;\r\n      }\r\n    }\r\n  }, {\r\n    key: 'setOptions',\r\n    value: function setOptions(options) {\r\n      var _this2 = this;\r\n\r\n      var pos = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1];\r\n\r\n      var defaults = {\r\n        offset: '0 0',\r\n        targetOffset: '0 0',\r\n        targetAttachment: 'auto auto',\r\n        classPrefix: 'tether'\r\n      };\r\n\r\n      this.options = extend(defaults, options);\r\n\r\n      var _options = this.options;\r\n      var element = _options.element;\r\n      var target = _options.target;\r\n      var targetModifier = _options.targetModifier;\r\n\r\n      this.element = element;\r\n      this.target = target;\r\n      this.targetModifier = targetModifier;\r\n\r\n      if (this.target === 'viewport') {\r\n        this.target = document.body;\r\n        this.targetModifier = 'visible';\r\n      } else if (this.target === 'scroll-handle') {\r\n        this.target = document.body;\r\n        this.targetModifier = 'scroll-handle';\r\n      }\r\n\r\n      ['element', 'target'].forEach(function (key) {\r\n        if (typeof _this2[key] === 'undefined') {\r\n          throw new Error('Tether Error: Both element and target must be defined');\r\n        }\r\n\r\n        if (typeof _this2[key].jquery !== 'undefined') {\r\n          _this2[key] = _this2[key][0];\r\n        } else if (typeof _this2[key] === 'string') {\r\n          _this2[key] = document.querySelector(_this2[key]);\r\n        }\r\n      });\r\n\r\n      addClass(this.element, this.getClass('element'));\r\n      if (!(this.options.addTargetClasses === false)) {\r\n        addClass(this.target, this.getClass('target'));\r\n      }\r\n\r\n      if (!this.options.attachment) {\r\n        throw new Error('Tether Error: You must provide an attachment');\r\n      }\r\n\r\n      this.targetAttachment = parseAttachment(this.options.targetAttachment);\r\n      this.attachment = parseAttachment(this.options.attachment);\r\n      this.offset = parseOffset(this.options.offset);\r\n      this.targetOffset = parseOffset(this.options.targetOffset);\r\n\r\n      if (typeof this.scrollParents !== 'undefined') {\r\n        this.disable();\r\n      }\r\n\r\n      if (this.targetModifier === 'scroll-handle') {\r\n        this.scrollParents = [this.target];\r\n      } else {\r\n        this.scrollParents = getScrollParents(this.target);\r\n      }\r\n\r\n      if (!(this.options.enabled === false)) {\r\n        this.enable(pos);\r\n      }\r\n    }\r\n  }, {\r\n    key: 'getTargetBounds',\r\n    value: function getTargetBounds() {\r\n      if (typeof this.targetModifier !== 'undefined') {\r\n        if (this.targetModifier === 'visible') {\r\n          if (this.target === document.body) {\r\n            return { top: pageYOffset, left: pageXOffset, height: innerHeight, width: innerWidth };\r\n          } else {\r\n            var bounds = getBounds(this.target);\r\n\r\n            var out = {\r\n              height: bounds.height,\r\n              width: bounds.width,\r\n              top: bounds.top,\r\n              left: bounds.left\r\n            };\r\n\r\n            out.height = Math.min(out.height, bounds.height - (pageYOffset - bounds.top));\r\n            out.height = Math.min(out.height, bounds.height - (bounds.top + bounds.height - (pageYOffset + innerHeight)));\r\n            out.height = Math.min(innerHeight, out.height);\r\n            out.height -= 2;\r\n\r\n            out.width = Math.min(out.width, bounds.width - (pageXOffset - bounds.left));\r\n            out.width = Math.min(out.width, bounds.width - (bounds.left + bounds.width - (pageXOffset + innerWidth)));\r\n            out.width = Math.min(innerWidth, out.width);\r\n            out.width -= 2;\r\n\r\n            if (out.top < pageYOffset) {\r\n              out.top = pageYOffset;\r\n            }\r\n            if (out.left < pageXOffset) {\r\n              out.left = pageXOffset;\r\n            }\r\n\r\n            return out;\r\n          }\r\n        } else if (this.targetModifier === 'scroll-handle') {\r\n          var bounds = undefined;\r\n          var target = this.target;\r\n          if (target === document.body) {\r\n            target = document.documentElement;\r\n\r\n            bounds = {\r\n              left: pageXOffset,\r\n              top: pageYOffset,\r\n              height: innerHeight,\r\n              width: innerWidth\r\n            };\r\n          } else {\r\n            bounds = getBounds(target);\r\n          }\r\n\r\n          var style = getComputedStyle(target);\r\n\r\n          var hasBottomScroll = target.scrollWidth > target.clientWidth || [style.overflow, style.overflowX].indexOf('scroll') >= 0 || this.target !== document.body;\r\n\r\n          var scrollBottom = 0;\r\n          if (hasBottomScroll) {\r\n            scrollBottom = 15;\r\n          }\r\n\r\n          var height = bounds.height - parseFloat(style.borderTopWidth) - parseFloat(style.borderBottomWidth) - scrollBottom;\r\n\r\n          var out = {\r\n            width: 15,\r\n            height: height * 0.975 * (height / target.scrollHeight),\r\n            left: bounds.left + bounds.width - parseFloat(style.borderLeftWidth) - 15\r\n          };\r\n\r\n          var fitAdj = 0;\r\n          if (height < 408 && this.target === document.body) {\r\n            fitAdj = -0.00011 * Math.pow(height, 2) - 0.00727 * height + 22.58;\r\n          }\r\n\r\n          if (this.target !== document.body) {\r\n            out.height = Math.max(out.height, 24);\r\n          }\r\n\r\n          var scrollPercentage = this.target.scrollTop / (target.scrollHeight - height);\r\n          out.top = scrollPercentage * (height - out.height - fitAdj) + bounds.top + parseFloat(style.borderTopWidth);\r\n\r\n          if (this.target === document.body) {\r\n            out.height = Math.max(out.height, 24);\r\n          }\r\n\r\n          return out;\r\n        }\r\n      } else {\r\n        return getBounds(this.target);\r\n      }\r\n    }\r\n  }, {\r\n    key: 'clearCache',\r\n    value: function clearCache() {\r\n      this._cache = {};\r\n    }\r\n  }, {\r\n    key: 'cache',\r\n    value: function cache(k, getter) {\r\n      // More than one module will often need the same DOM info, so\r\n      // we keep a cache which is cleared on each position call\r\n      if (typeof this._cache === 'undefined') {\r\n        this._cache = {};\r\n      }\r\n\r\n      if (typeof this._cache[k] === 'undefined') {\r\n        this._cache[k] = getter.call(this);\r\n      }\r\n\r\n      return this._cache[k];\r\n    }\r\n  }, {\r\n    key: 'enable',\r\n    value: function enable() {\r\n      var _this3 = this;\r\n\r\n      var pos = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0];\r\n\r\n      if (!(this.options.addTargetClasses === false)) {\r\n        addClass(this.target, this.getClass('enabled'));\r\n      }\r\n      addClass(this.element, this.getClass('enabled'));\r\n      this.enabled = true;\r\n\r\n      this.scrollParents.forEach(function (parent) {\r\n        if (parent !== _this3.target.ownerDocument) {\r\n          parent.addEventListener('scroll', _this3.position);\r\n        }\r\n      });\r\n\r\n      if (pos) {\r\n        this.position();\r\n      }\r\n    }\r\n  }, {\r\n    key: 'disable',\r\n    value: function disable() {\r\n      var _this4 = this;\r\n\r\n      removeClass(this.target, this.getClass('enabled'));\r\n      removeClass(this.element, this.getClass('enabled'));\r\n      this.enabled = false;\r\n\r\n      if (typeof this.scrollParents !== 'undefined') {\r\n        this.scrollParents.forEach(function (parent) {\r\n          parent.removeEventListener('scroll', _this4.position);\r\n        });\r\n      }\r\n    }\r\n  }, {\r\n    key: 'destroy',\r\n    value: function destroy() {\r\n      var _this5 = this;\r\n\r\n      this.disable();\r\n\r\n      tethers.forEach(function (tether, i) {\r\n        if (tether === _this5) {\r\n          tethers.splice(i, 1);\r\n        }\r\n      });\r\n\r\n      // Remove any elements we were using for convenience from the DOM\r\n      if (tethers.length === 0) {\r\n        removeUtilElements();\r\n      }\r\n    }\r\n  }, {\r\n    key: 'updateAttachClasses',\r\n    value: function updateAttachClasses(elementAttach, targetAttach) {\r\n      var _this6 = this;\r\n\r\n      elementAttach = elementAttach || this.attachment;\r\n      targetAttach = targetAttach || this.targetAttachment;\r\n      var sides = ['left', 'top', 'bottom', 'right', 'middle', 'center'];\r\n\r\n      if (typeof this._addAttachClasses !== 'undefined' && this._addAttachClasses.length) {\r\n        // updateAttachClasses can be called more than once in a position call, so\r\n        // we need to clean up after ourselves such that when the last defer gets\r\n        // ran it doesn't add any extra classes from previous calls.\r\n        this._addAttachClasses.splice(0, this._addAttachClasses.length);\r\n      }\r\n\r\n      if (typeof this._addAttachClasses === 'undefined') {\r\n        this._addAttachClasses = [];\r\n      }\r\n      var add = this._addAttachClasses;\r\n\r\n      if (elementAttach.top) {\r\n        add.push(this.getClass('element-attached') + '-' + elementAttach.top);\r\n      }\r\n      if (elementAttach.left) {\r\n        add.push(this.getClass('element-attached') + '-' + elementAttach.left);\r\n      }\r\n      if (targetAttach.top) {\r\n        add.push(this.getClass('target-attached') + '-' + targetAttach.top);\r\n      }\r\n      if (targetAttach.left) {\r\n        add.push(this.getClass('target-attached') + '-' + targetAttach.left);\r\n      }\r\n\r\n      var all = [];\r\n      sides.forEach(function (side) {\r\n        all.push(_this6.getClass('element-attached') + '-' + side);\r\n        all.push(_this6.getClass('target-attached') + '-' + side);\r\n      });\r\n\r\n      defer(function () {\r\n        if (!(typeof _this6._addAttachClasses !== 'undefined')) {\r\n          return;\r\n        }\r\n\r\n        updateClasses(_this6.element, _this6._addAttachClasses, all);\r\n        if (!(_this6.options.addTargetClasses === false)) {\r\n          updateClasses(_this6.target, _this6._addAttachClasses, all);\r\n        }\r\n\r\n        delete _this6._addAttachClasses;\r\n      });\r\n    }\r\n  }, {\r\n    key: 'position',\r\n    value: function position() {\r\n      var _this7 = this;\r\n\r\n      var flushChanges = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0];\r\n\r\n      // flushChanges commits the changes immediately, leave true unless you are positioning multiple\r\n      // tethers (in which case call Tether.Utils.flush yourself when you're done)\r\n\r\n      if (!this.enabled) {\r\n        return;\r\n      }\r\n\r\n      this.clearCache();\r\n\r\n      // Turn 'auto' attachments into the appropriate corner or edge\r\n      var targetAttachment = autoToFixedAttachment(this.targetAttachment, this.attachment);\r\n\r\n      this.updateAttachClasses(this.attachment, targetAttachment);\r\n\r\n      var elementPos = this.cache('element-bounds', function () {\r\n        return getBounds(_this7.element);\r\n      });\r\n\r\n      var width = elementPos.width;\r\n      var height = elementPos.height;\r\n\r\n      if (width === 0 && height === 0 && typeof this.lastSize !== 'undefined') {\r\n        var _lastSize = this.lastSize;\r\n\r\n        // We cache the height and width to make it possible to position elements that are\r\n        // getting hidden.\r\n        width = _lastSize.width;\r\n        height = _lastSize.height;\r\n      } else {\r\n        this.lastSize = { width: width, height: height };\r\n      }\r\n\r\n      var targetPos = this.cache('target-bounds', function () {\r\n        return _this7.getTargetBounds();\r\n      });\r\n      var targetSize = targetPos;\r\n\r\n      // Get an actual px offset from the attachment\r\n      var offset = offsetToPx(attachmentToOffset(this.attachment), { width: width, height: height });\r\n      var targetOffset = offsetToPx(attachmentToOffset(targetAttachment), targetSize);\r\n\r\n      var manualOffset = offsetToPx(this.offset, { width: width, height: height });\r\n      var manualTargetOffset = offsetToPx(this.targetOffset, targetSize);\r\n\r\n      // Add the manually provided offset\r\n      offset = addOffset(offset, manualOffset);\r\n      targetOffset = addOffset(targetOffset, manualTargetOffset);\r\n\r\n      // It's now our goal to make (element position + offset) == (target position + target offset)\r\n      var left = targetPos.left + targetOffset.left - offset.left;\r\n      var top = targetPos.top + targetOffset.top - offset.top;\r\n\r\n      for (var i = 0; i < TetherBase.modules.length; ++i) {\r\n        var _module2 = TetherBase.modules[i];\r\n        var ret = _module2.position.call(this, {\r\n          left: left,\r\n          top: top,\r\n          targetAttachment: targetAttachment,\r\n          targetPos: targetPos,\r\n          elementPos: elementPos,\r\n          offset: offset,\r\n          targetOffset: targetOffset,\r\n          manualOffset: manualOffset,\r\n          manualTargetOffset: manualTargetOffset,\r\n          scrollbarSize: scrollbarSize,\r\n          attachment: this.attachment\r\n        });\r\n\r\n        if (ret === false) {\r\n          return false;\r\n        } else if (typeof ret === 'undefined' || typeof ret !== 'object') {\r\n          continue;\r\n        } else {\r\n          top = ret.top;\r\n          left = ret.left;\r\n        }\r\n      }\r\n\r\n      // We describe the position three different ways to give the optimizer\r\n      // a chance to decide the best possible way to position the element\r\n      // with the fewest repaints.\r\n      var next = {\r\n        // It's position relative to the page (absolute positioning when\r\n        // the element is a child of the body)\r\n        page: {\r\n          top: top,\r\n          left: left\r\n        },\r\n\r\n        // It's position relative to the viewport (fixed positioning)\r\n        viewport: {\r\n          top: top - pageYOffset,\r\n          bottom: pageYOffset - top - height + innerHeight,\r\n          left: left - pageXOffset,\r\n          right: pageXOffset - left - width + innerWidth\r\n        }\r\n      };\r\n\r\n      var doc = this.target.ownerDocument;\r\n      var win = doc.defaultView;\r\n\r\n      var scrollbarSize = undefined;\r\n      if (win.innerHeight > doc.documentElement.clientHeight) {\r\n        scrollbarSize = this.cache('scrollbar-size', getScrollBarSize);\r\n        next.viewport.bottom -= scrollbarSize.height;\r\n      }\r\n\r\n      if (win.innerWidth > doc.documentElement.clientWidth) {\r\n        scrollbarSize = this.cache('scrollbar-size', getScrollBarSize);\r\n        next.viewport.right -= scrollbarSize.width;\r\n      }\r\n\r\n      if (['', 'static'].indexOf(doc.body.style.position) === -1 || ['', 'static'].indexOf(doc.body.parentElement.style.position) === -1) {\r\n        // Absolute positioning in the body will be relative to the page, not the 'initial containing block'\r\n        next.page.bottom = doc.body.scrollHeight - top - height;\r\n        next.page.right = doc.body.scrollWidth - left - width;\r\n      }\r\n\r\n      if (typeof this.options.optimizations !== 'undefined' && this.options.optimizations.moveElement !== false && !(typeof this.targetModifier !== 'undefined')) {\r\n        (function () {\r\n          var offsetParent = _this7.cache('target-offsetparent', function () {\r\n            return getOffsetParent(_this7.target);\r\n          });\r\n          var offsetPosition = _this7.cache('target-offsetparent-bounds', function () {\r\n            return getBounds(offsetParent);\r\n          });\r\n          var offsetParentStyle = getComputedStyle(offsetParent);\r\n          var offsetParentSize = offsetPosition;\r\n\r\n          var offsetBorder = {};\r\n          ['Top', 'Left', 'Bottom', 'Right'].forEach(function (side) {\r\n            offsetBorder[side.toLowerCase()] = parseFloat(offsetParentStyle['border' + side + 'Width']);\r\n          });\r\n\r\n          offsetPosition.right = doc.body.scrollWidth - offsetPosition.left - offsetParentSize.width + offsetBorder.right;\r\n          offsetPosition.bottom = doc.body.scrollHeight - offsetPosition.top - offsetParentSize.height + offsetBorder.bottom;\r\n\r\n          if (next.page.top >= offsetPosition.top + offsetBorder.top && next.page.bottom >= offsetPosition.bottom) {\r\n            if (next.page.left >= offsetPosition.left + offsetBorder.left && next.page.right >= offsetPosition.right) {\r\n              // We're within the visible part of the target's scroll parent\r\n              var scrollTop = offsetParent.scrollTop;\r\n              var scrollLeft = offsetParent.scrollLeft;\r\n\r\n              // It's position relative to the target's offset parent (absolute positioning when\r\n              // the element is moved to be a child of the target's offset parent).\r\n              next.offset = {\r\n                top: next.page.top - offsetPosition.top + scrollTop - offsetBorder.top,\r\n                left: next.page.left - offsetPosition.left + scrollLeft - offsetBorder.left\r\n              };\r\n            }\r\n          }\r\n        })();\r\n      }\r\n\r\n      // We could also travel up the DOM and try each containing context, rather than only\r\n      // looking at the body, but we're gonna get diminishing returns.\r\n\r\n      this.move(next);\r\n\r\n      this.history.unshift(next);\r\n\r\n      if (this.history.length > 3) {\r\n        this.history.pop();\r\n      }\r\n\r\n      if (flushChanges) {\r\n        flush();\r\n      }\r\n\r\n      return true;\r\n    }\r\n\r\n    // THE ISSUE\r\n  }, {\r\n    key: 'move',\r\n    value: function move(pos) {\r\n      var _this8 = this;\r\n\r\n      if (!(typeof this.element.parentNode !== 'undefined')) {\r\n        return;\r\n      }\r\n\r\n      var same = {};\r\n\r\n      for (var type in pos) {\r\n        same[type] = {};\r\n\r\n        for (var key in pos[type]) {\r\n          var found = false;\r\n\r\n          for (var i = 0; i < this.history.length; ++i) {\r\n            var point = this.history[i];\r\n            if (typeof point[type] !== 'undefined' && !within(point[type][key], pos[type][key])) {\r\n              found = true;\r\n              break;\r\n            }\r\n          }\r\n\r\n          if (!found) {\r\n            same[type][key] = true;\r\n          }\r\n        }\r\n      }\r\n\r\n      var css = { top: '', left: '', right: '', bottom: '' };\r\n\r\n      var transcribe = function transcribe(_same, _pos) {\r\n        var hasOptimizations = typeof _this8.options.optimizations !== 'undefined';\r\n        var gpu = hasOptimizations ? _this8.options.optimizations.gpu : null;\r\n        if (gpu !== false) {\r\n          var yPos = undefined,\r\n              xPos = undefined;\r\n          if (_same.top) {\r\n            css.top = 0;\r\n            yPos = _pos.top;\r\n          } else {\r\n            css.bottom = 0;\r\n            yPos = -_pos.bottom;\r\n          }\r\n\r\n          if (_same.left) {\r\n            css.left = 0;\r\n            xPos = _pos.left;\r\n          } else {\r\n            css.right = 0;\r\n            xPos = -_pos.right;\r\n          }\r\n\r\n          if (window.matchMedia) {\r\n            // HubSpot/tether#207\r\n            var retina = window.matchMedia('only screen and (min-resolution: 1.3dppx)').matches || window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 1.3)').matches;\r\n            if (!retina) {\r\n              xPos = Math.round(xPos);\r\n              yPos = Math.round(yPos);\r\n            }\r\n          }\r\n\r\n          css[transformKey] = 'translateX(' + xPos + 'px) translateY(' + yPos + 'px)';\r\n\r\n          if (transformKey !== 'msTransform') {\r\n            // The Z transform will keep this in the GPU (faster, and prevents artifacts),\r\n            // but IE9 doesn't support 3d transforms and will choke.\r\n            css[transformKey] += \" translateZ(0)\";\r\n          }\r\n        } else {\r\n          if (_same.top) {\r\n            css.top = _pos.top + 'px';\r\n          } else {\r\n            css.bottom = _pos.bottom + 'px';\r\n          }\r\n\r\n          if (_same.left) {\r\n            css.left = _pos.left + 'px';\r\n          } else {\r\n            css.right = _pos.right + 'px';\r\n          }\r\n        }\r\n      };\r\n\r\n      var moved = false;\r\n      if ((same.page.top || same.page.bottom) && (same.page.left || same.page.right)) {\r\n        css.position = 'absolute';\r\n        transcribe(same.page, pos.page);\r\n      } else if ((same.viewport.top || same.viewport.bottom) && (same.viewport.left || same.viewport.right)) {\r\n        css.position = 'fixed';\r\n        transcribe(same.viewport, pos.viewport);\r\n      } else if (typeof same.offset !== 'undefined' && same.offset.top && same.offset.left) {\r\n        (function () {\r\n          css.position = 'absolute';\r\n          var offsetParent = _this8.cache('target-offsetparent', function () {\r\n            return getOffsetParent(_this8.target);\r\n          });\r\n\r\n          if (getOffsetParent(_this8.element) !== offsetParent) {\r\n            defer(function () {\r\n              _this8.element.parentNode.removeChild(_this8.element);\r\n              offsetParent.appendChild(_this8.element);\r\n            });\r\n          }\r\n\r\n          transcribe(same.offset, pos.offset);\r\n          moved = true;\r\n        })();\r\n      } else {\r\n        css.position = 'absolute';\r\n        transcribe({ top: true, left: true }, pos.page);\r\n      }\r\n\r\n      if (!moved) {\r\n        if (this.options.bodyElement) {\r\n          this.options.bodyElement.appendChild(this.element);\r\n        } else {\r\n          var offsetParentIsBody = true;\r\n          var currentNode = this.element.parentNode;\r\n          while (currentNode && currentNode.nodeType === 1 && currentNode.tagName !== 'BODY') {\r\n            if (getComputedStyle(currentNode).position !== 'static') {\r\n              offsetParentIsBody = false;\r\n              break;\r\n            }\r\n\r\n            currentNode = currentNode.parentNode;\r\n          }\r\n\r\n          if (!offsetParentIsBody) {\r\n            this.element.parentNode.removeChild(this.element);\r\n            this.element.ownerDocument.body.appendChild(this.element);\r\n          }\r\n        }\r\n      }\r\n\r\n      // Any css change will trigger a repaint, so let's avoid one if nothing changed\r\n      var writeCSS = {};\r\n      var write = false;\r\n      for (var key in css) {\r\n        var val = css[key];\r\n        var elVal = this.element.style[key];\r\n\r\n        if (elVal !== val) {\r\n          write = true;\r\n          writeCSS[key] = val;\r\n        }\r\n      }\r\n\r\n      if (write) {\r\n        defer(function () {\r\n          extend(_this8.element.style, writeCSS);\r\n          _this8.trigger('repositioned');\r\n        });\r\n      }\r\n    }\r\n  }]);\r\n\r\n  return TetherClass;\r\n})(Evented);\r\n\r\nTetherClass.modules = [];\r\n\r\nTetherBase.position = position;\r\n\r\nvar Tether = extend(TetherClass, TetherBase);\r\n/* globals TetherBase */\r\n\r\n'use strict';\r\n\r\nvar _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\r\n\r\nvar _TetherBase$Utils = TetherBase.Utils;\r\nvar getBounds = _TetherBase$Utils.getBounds;\r\nvar extend = _TetherBase$Utils.extend;\r\nvar updateClasses = _TetherBase$Utils.updateClasses;\r\nvar defer = _TetherBase$Utils.defer;\r\n\r\nvar BOUNDS_FORMAT = ['left', 'top', 'right', 'bottom'];\r\n\r\nfunction getBoundingRect(tether, to) {\r\n  if (to === 'scrollParent') {\r\n    to = tether.scrollParents[0];\r\n  } else if (to === 'window') {\r\n    to = [pageXOffset, pageYOffset, innerWidth + pageXOffset, innerHeight + pageYOffset];\r\n  }\r\n\r\n  if (to === document) {\r\n    to = to.documentElement;\r\n  }\r\n\r\n  if (typeof to.nodeType !== 'undefined') {\r\n    (function () {\r\n      var node = to;\r\n      var size = getBounds(to);\r\n      var pos = size;\r\n      var style = getComputedStyle(to);\r\n\r\n      to = [pos.left, pos.top, size.width + pos.left, size.height + pos.top];\r\n\r\n      // Account any parent Frames scroll offset\r\n      if (node.ownerDocument !== document) {\r\n        var win = node.ownerDocument.defaultView;\r\n        to[0] += win.pageXOffset;\r\n        to[1] += win.pageYOffset;\r\n        to[2] += win.pageXOffset;\r\n        to[3] += win.pageYOffset;\r\n      }\r\n\r\n      BOUNDS_FORMAT.forEach(function (side, i) {\r\n        side = side[0].toUpperCase() + side.substr(1);\r\n        if (side === 'Top' || side === 'Left') {\r\n          to[i] += parseFloat(style['border' + side + 'Width']);\r\n        } else {\r\n          to[i] -= parseFloat(style['border' + side + 'Width']);\r\n        }\r\n      });\r\n    })();\r\n  }\r\n\r\n  return to;\r\n}\r\n\r\nTetherBase.modules.push({\r\n  position: function position(_ref) {\r\n    var _this = this;\r\n\r\n    var top = _ref.top;\r\n    var left = _ref.left;\r\n    var targetAttachment = _ref.targetAttachment;\r\n\r\n    if (!this.options.constraints) {\r\n      return true;\r\n    }\r\n\r\n    var _cache = this.cache('element-bounds', function () {\r\n      return getBounds(_this.element);\r\n    });\r\n\r\n    var height = _cache.height;\r\n    var width = _cache.width;\r\n\r\n    if (width === 0 && height === 0 && typeof this.lastSize !== 'undefined') {\r\n      var _lastSize = this.lastSize;\r\n\r\n      // Handle the item getting hidden as a result of our positioning without glitching\r\n      // the classes in and out\r\n      width = _lastSize.width;\r\n      height = _lastSize.height;\r\n    }\r\n\r\n    var targetSize = this.cache('target-bounds', function () {\r\n      return _this.getTargetBounds();\r\n    });\r\n\r\n    var targetHeight = targetSize.height;\r\n    var targetWidth = targetSize.width;\r\n\r\n    var allClasses = [this.getClass('pinned'), this.getClass('out-of-bounds')];\r\n\r\n    this.options.constraints.forEach(function (constraint) {\r\n      var outOfBoundsClass = constraint.outOfBoundsClass;\r\n      var pinnedClass = constraint.pinnedClass;\r\n\r\n      if (outOfBoundsClass) {\r\n        allClasses.push(outOfBoundsClass);\r\n      }\r\n      if (pinnedClass) {\r\n        allClasses.push(pinnedClass);\r\n      }\r\n    });\r\n\r\n    allClasses.forEach(function (cls) {\r\n      ['left', 'top', 'right', 'bottom'].forEach(function (side) {\r\n        allClasses.push(cls + '-' + side);\r\n      });\r\n    });\r\n\r\n    var addClasses = [];\r\n\r\n    var tAttachment = extend({}, targetAttachment);\r\n    var eAttachment = extend({}, this.attachment);\r\n\r\n    this.options.constraints.forEach(function (constraint) {\r\n      var to = constraint.to;\r\n      var attachment = constraint.attachment;\r\n      var pin = constraint.pin;\r\n\r\n      if (typeof attachment === 'undefined') {\r\n        attachment = '';\r\n      }\r\n\r\n      var changeAttachX = undefined,\r\n          changeAttachY = undefined;\r\n      if (attachment.indexOf(' ') >= 0) {\r\n        var _attachment$split = attachment.split(' ');\r\n\r\n        var _attachment$split2 = _slicedToArray(_attachment$split, 2);\r\n\r\n        changeAttachY = _attachment$split2[0];\r\n        changeAttachX = _attachment$split2[1];\r\n      } else {\r\n        changeAttachX = changeAttachY = attachment;\r\n      }\r\n\r\n      var bounds = getBoundingRect(_this, to);\r\n\r\n      if (changeAttachY === 'target' || changeAttachY === 'both') {\r\n        if (top < bounds[1] && tAttachment.top === 'top') {\r\n          top += targetHeight;\r\n          tAttachment.top = 'bottom';\r\n        }\r\n\r\n        if (top + height > bounds[3] && tAttachment.top === 'bottom') {\r\n          top -= targetHeight;\r\n          tAttachment.top = 'top';\r\n        }\r\n      }\r\n\r\n      if (changeAttachY === 'together') {\r\n        if (tAttachment.top === 'top') {\r\n          if (eAttachment.top === 'bottom' && top < bounds[1]) {\r\n            top += targetHeight;\r\n            tAttachment.top = 'bottom';\r\n\r\n            top += height;\r\n            eAttachment.top = 'top';\r\n          } else if (eAttachment.top === 'top' && top + height > bounds[3] && top - (height - targetHeight) >= bounds[1]) {\r\n            top -= height - targetHeight;\r\n            tAttachment.top = 'bottom';\r\n\r\n            eAttachment.top = 'bottom';\r\n          }\r\n        }\r\n\r\n        if (tAttachment.top === 'bottom') {\r\n          if (eAttachment.top === 'top' && top + height > bounds[3]) {\r\n            top -= targetHeight;\r\n            tAttachment.top = 'top';\r\n\r\n            top -= height;\r\n            eAttachment.top = 'bottom';\r\n          } else if (eAttachment.top === 'bottom' && top < bounds[1] && top + (height * 2 - targetHeight) <= bounds[3]) {\r\n            top += height - targetHeight;\r\n            tAttachment.top = 'top';\r\n\r\n            eAttachment.top = 'top';\r\n          }\r\n        }\r\n\r\n        if (tAttachment.top === 'middle') {\r\n          if (top + height > bounds[3] && eAttachment.top === 'top') {\r\n            top -= height;\r\n            eAttachment.top = 'bottom';\r\n          } else if (top < bounds[1] && eAttachment.top === 'bottom') {\r\n            top += height;\r\n            eAttachment.top = 'top';\r\n          }\r\n        }\r\n      }\r\n\r\n      if (changeAttachX === 'target' || changeAttachX === 'both') {\r\n        if (left < bounds[0] && tAttachment.left === 'left') {\r\n          left += targetWidth;\r\n          tAttachment.left = 'right';\r\n        }\r\n\r\n        if (left + width > bounds[2] && tAttachment.left === 'right') {\r\n          left -= targetWidth;\r\n          tAttachment.left = 'left';\r\n        }\r\n      }\r\n\r\n      if (changeAttachX === 'together') {\r\n        if (left < bounds[0] && tAttachment.left === 'left') {\r\n          if (eAttachment.left === 'right') {\r\n            left += targetWidth;\r\n            tAttachment.left = 'right';\r\n\r\n            left += width;\r\n            eAttachment.left = 'left';\r\n          } else if (eAttachment.left === 'left') {\r\n            left += targetWidth;\r\n            tAttachment.left = 'right';\r\n\r\n            left -= width;\r\n            eAttachment.left = 'right';\r\n          }\r\n        } else if (left + width > bounds[2] && tAttachment.left === 'right') {\r\n          if (eAttachment.left === 'left') {\r\n            left -= targetWidth;\r\n            tAttachment.left = 'left';\r\n\r\n            left -= width;\r\n            eAttachment.left = 'right';\r\n          } else if (eAttachment.left === 'right') {\r\n            left -= targetWidth;\r\n            tAttachment.left = 'left';\r\n\r\n            left += width;\r\n            eAttachment.left = 'left';\r\n          }\r\n        } else if (tAttachment.left === 'center') {\r\n          if (left + width > bounds[2] && eAttachment.left === 'left') {\r\n            left -= width;\r\n            eAttachment.left = 'right';\r\n          } else if (left < bounds[0] && eAttachment.left === 'right') {\r\n            left += width;\r\n            eAttachment.left = 'left';\r\n          }\r\n        }\r\n      }\r\n\r\n      if (changeAttachY === 'element' || changeAttachY === 'both') {\r\n        if (top < bounds[1] && eAttachment.top === 'bottom') {\r\n          top += height;\r\n          eAttachment.top = 'top';\r\n        }\r\n\r\n        if (top + height > bounds[3] && eAttachment.top === 'top') {\r\n          top -= height;\r\n          eAttachment.top = 'bottom';\r\n        }\r\n      }\r\n\r\n      if (changeAttachX === 'element' || changeAttachX === 'both') {\r\n        if (left < bounds[0]) {\r\n          if (eAttachment.left === 'right') {\r\n            left += width;\r\n            eAttachment.left = 'left';\r\n          } else if (eAttachment.left === 'center') {\r\n            left += width / 2;\r\n            eAttachment.left = 'left';\r\n          }\r\n        }\r\n\r\n        if (left + width > bounds[2]) {\r\n          if (eAttachment.left === 'left') {\r\n            left -= width;\r\n            eAttachment.left = 'right';\r\n          } else if (eAttachment.left === 'center') {\r\n            left -= width / 2;\r\n            eAttachment.left = 'right';\r\n          }\r\n        }\r\n      }\r\n\r\n      if (typeof pin === 'string') {\r\n        pin = pin.split(',').map(function (p) {\r\n          return p.trim();\r\n        });\r\n      } else if (pin === true) {\r\n        pin = ['top', 'left', 'right', 'bottom'];\r\n      }\r\n\r\n      pin = pin || [];\r\n\r\n      var pinned = [];\r\n      var oob = [];\r\n\r\n      if (top < bounds[1]) {\r\n        if (pin.indexOf('top') >= 0) {\r\n          top = bounds[1];\r\n          pinned.push('top');\r\n        } else {\r\n          oob.push('top');\r\n        }\r\n      }\r\n\r\n      if (top + height > bounds[3]) {\r\n        if (pin.indexOf('bottom') >= 0) {\r\n          top = bounds[3] - height;\r\n          pinned.push('bottom');\r\n        } else {\r\n          oob.push('bottom');\r\n        }\r\n      }\r\n\r\n      if (left < bounds[0]) {\r\n        if (pin.indexOf('left') >= 0) {\r\n          left = bounds[0];\r\n          pinned.push('left');\r\n        } else {\r\n          oob.push('left');\r\n        }\r\n      }\r\n\r\n      if (left + width > bounds[2]) {\r\n        if (pin.indexOf('right') >= 0) {\r\n          left = bounds[2] - width;\r\n          pinned.push('right');\r\n        } else {\r\n          oob.push('right');\r\n        }\r\n      }\r\n\r\n      if (pinned.length) {\r\n        (function () {\r\n          var pinnedClass = undefined;\r\n          if (typeof _this.options.pinnedClass !== 'undefined') {\r\n            pinnedClass = _this.options.pinnedClass;\r\n          } else {\r\n            pinnedClass = _this.getClass('pinned');\r\n          }\r\n\r\n          addClasses.push(pinnedClass);\r\n          pinned.forEach(function (side) {\r\n            addClasses.push(pinnedClass + '-' + side);\r\n          });\r\n        })();\r\n      }\r\n\r\n      if (oob.length) {\r\n        (function () {\r\n          var oobClass = undefined;\r\n          if (typeof _this.options.outOfBoundsClass !== 'undefined') {\r\n            oobClass = _this.options.outOfBoundsClass;\r\n          } else {\r\n            oobClass = _this.getClass('out-of-bounds');\r\n          }\r\n\r\n          addClasses.push(oobClass);\r\n          oob.forEach(function (side) {\r\n            addClasses.push(oobClass + '-' + side);\r\n          });\r\n        })();\r\n      }\r\n\r\n      if (pinned.indexOf('left') >= 0 || pinned.indexOf('right') >= 0) {\r\n        eAttachment.left = tAttachment.left = false;\r\n      }\r\n      if (pinned.indexOf('top') >= 0 || pinned.indexOf('bottom') >= 0) {\r\n        eAttachment.top = tAttachment.top = false;\r\n      }\r\n\r\n      if (tAttachment.top !== targetAttachment.top || tAttachment.left !== targetAttachment.left || eAttachment.top !== _this.attachment.top || eAttachment.left !== _this.attachment.left) {\r\n        _this.updateAttachClasses(eAttachment, tAttachment);\r\n        _this.trigger('update', {\r\n          attachment: eAttachment,\r\n          targetAttachment: tAttachment\r\n        });\r\n      }\r\n    });\r\n\r\n    defer(function () {\r\n      if (!(_this.options.addTargetClasses === false)) {\r\n        updateClasses(_this.target, addClasses, allClasses);\r\n      }\r\n      updateClasses(_this.element, addClasses, allClasses);\r\n    });\r\n\r\n    return { top: top, left: left };\r\n  }\r\n});\r\n/* globals TetherBase */\r\n\r\n'use strict';\r\n\r\nvar _TetherBase$Utils = TetherBase.Utils;\r\nvar getBounds = _TetherBase$Utils.getBounds;\r\nvar updateClasses = _TetherBase$Utils.updateClasses;\r\nvar defer = _TetherBase$Utils.defer;\r\n\r\nTetherBase.modules.push({\r\n  position: function position(_ref) {\r\n    var _this = this;\r\n\r\n    var top = _ref.top;\r\n    var left = _ref.left;\r\n\r\n    var _cache = this.cache('element-bounds', function () {\r\n      return getBounds(_this.element);\r\n    });\r\n\r\n    var height = _cache.height;\r\n    var width = _cache.width;\r\n\r\n    var targetPos = this.getTargetBounds();\r\n\r\n    var bottom = top + height;\r\n    var right = left + width;\r\n\r\n    var abutted = [];\r\n    if (top <= targetPos.bottom && bottom >= targetPos.top) {\r\n      ['left', 'right'].forEach(function (side) {\r\n        var targetPosSide = targetPos[side];\r\n        if (targetPosSide === left || targetPosSide === right) {\r\n          abutted.push(side);\r\n        }\r\n      });\r\n    }\r\n\r\n    if (left <= targetPos.right && right >= targetPos.left) {\r\n      ['top', 'bottom'].forEach(function (side) {\r\n        var targetPosSide = targetPos[side];\r\n        if (targetPosSide === top || targetPosSide === bottom) {\r\n          abutted.push(side);\r\n        }\r\n      });\r\n    }\r\n\r\n    var allClasses = [];\r\n    var addClasses = [];\r\n\r\n    var sides = ['left', 'top', 'right', 'bottom'];\r\n    allClasses.push(this.getClass('abutted'));\r\n    sides.forEach(function (side) {\r\n      allClasses.push(_this.getClass('abutted') + '-' + side);\r\n    });\r\n\r\n    if (abutted.length) {\r\n      addClasses.push(this.getClass('abutted'));\r\n    }\r\n\r\n    abutted.forEach(function (side) {\r\n      addClasses.push(_this.getClass('abutted') + '-' + side);\r\n    });\r\n\r\n    defer(function () {\r\n      if (!(_this.options.addTargetClasses === false)) {\r\n        updateClasses(_this.target, addClasses, allClasses);\r\n      }\r\n      updateClasses(_this.element, addClasses, allClasses);\r\n    });\r\n\r\n    return true;\r\n  }\r\n});\r\n/* globals TetherBase */\r\n\r\n'use strict';\r\n\r\nvar _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();\r\n\r\nTetherBase.modules.push({\r\n  position: function position(_ref) {\r\n    var top = _ref.top;\r\n    var left = _ref.left;\r\n\r\n    if (!this.options.shift) {\r\n      return;\r\n    }\r\n\r\n    var shift = this.options.shift;\r\n    if (typeof this.options.shift === 'function') {\r\n      shift = this.options.shift.call(this, { top: top, left: left });\r\n    }\r\n\r\n    var shiftTop = undefined,\r\n        shiftLeft = undefined;\r\n    if (typeof shift === 'string') {\r\n      shift = shift.split(' ');\r\n      shift[1] = shift[1] || shift[0];\r\n\r\n      var _shift = shift;\r\n\r\n      var _shift2 = _slicedToArray(_shift, 2);\r\n\r\n      shiftTop = _shift2[0];\r\n      shiftLeft = _shift2[1];\r\n\r\n      shiftTop = parseFloat(shiftTop, 10);\r\n      shiftLeft = parseFloat(shiftLeft, 10);\r\n    } else {\r\n      shiftTop = shift.top;\r\n      shiftLeft = shift.left;\r\n    }\r\n\r\n    top += shiftTop;\r\n    left += shiftLeft;\r\n\r\n    return { top: top, left: left };\r\n  }\r\n});\r\nreturn Tether;\r\n\r\n}));\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/tether/dist/js/tether.js\n// module id = 170\n// module chunks = 2","\"use strict\";\r\nvar errorObject_1 = require('./errorObject');\r\nvar tryCatchTarget;\r\nfunction tryCatcher() {\r\n    try {\r\n        return tryCatchTarget.apply(this, arguments);\r\n    }\r\n    catch (e) {\r\n        errorObject_1.errorObject.e = e;\r\n        return errorObject_1.errorObject;\r\n    }\r\n}\r\nfunction tryCatch(fn) {\r\n    tryCatchTarget = fn;\r\n    return tryCatcher;\r\n}\r\nexports.tryCatch = tryCatch;\r\n;\r\n//# sourceMappingURL=tryCatch.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/tryCatch.js\n// module id = 171\n// module chunks = 2","\"use strict\";\r\nfunction isScheduler(value) {\r\n    return value && typeof value.schedule === 'function';\r\n}\r\nexports.isScheduler = isScheduler;\r\n//# sourceMappingURL=isScheduler.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/isScheduler.js\n// module id = 173\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * An error thrown when an action is invalid because the object has been\r\n * unsubscribed.\r\n *\r\n * @see {@link Subject}\r\n * @see {@link BehaviorSubject}\r\n *\r\n * @class ObjectUnsubscribedError\r\n */\r\nvar ObjectUnsubscribedError = (function (_super) {\r\n    __extends(ObjectUnsubscribedError, _super);\r\n    function ObjectUnsubscribedError() {\r\n        var err = _super.call(this, 'object unsubscribed');\r\n        this.name = err.name = 'ObjectUnsubscribedError';\r\n        this.stack = err.stack;\r\n        this.message = err.message;\r\n    }\r\n    return ObjectUnsubscribedError;\r\n}(Error));\r\nexports.ObjectUnsubscribedError = ObjectUnsubscribedError;\r\n//# sourceMappingURL=ObjectUnsubscribedError.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/ObjectUnsubscribedError.js\n// module id = 176\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Observable_1 = require('../Observable');\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @extends {Ignored}\r\n * @hide true\r\n */\r\nvar ScalarObservable = (function (_super) {\r\n    __extends(ScalarObservable, _super);\r\n    function ScalarObservable(value, scheduler) {\r\n        _super.call(this);\r\n        this.value = value;\r\n        this.scheduler = scheduler;\r\n        this._isScalar = true;\r\n        if (scheduler) {\r\n            this._isScalar = false;\r\n        }\r\n    }\r\n    ScalarObservable.create = function (value, scheduler) {\r\n        return new ScalarObservable(value, scheduler);\r\n    };\r\n    ScalarObservable.dispatch = function (state) {\r\n        var done = state.done, value = state.value, subscriber = state.subscriber;\r\n        if (done) {\r\n            subscriber.complete();\r\n            return;\r\n        }\r\n        subscriber.next(value);\r\n        if (subscriber.closed) {\r\n            return;\r\n        }\r\n        state.done = true;\r\n        this.schedule(state);\r\n    };\r\n    ScalarObservable.prototype._subscribe = function (subscriber) {\r\n        var value = this.value;\r\n        var scheduler = this.scheduler;\r\n        if (scheduler) {\r\n            return scheduler.schedule(ScalarObservable.dispatch, 0, {\r\n                done: false, value: value, subscriber: subscriber\r\n            });\r\n        }\r\n        else {\r\n            subscriber.next(value);\r\n            if (!subscriber.closed) {\r\n                subscriber.complete();\r\n            }\r\n        }\r\n    };\r\n    return ScalarObservable;\r\n}(Observable_1.Observable));\r\nexports.ScalarObservable = ScalarObservable;\r\n//# sourceMappingURL=ScalarObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/ScalarObservable.js\n// module id = 177\n// module chunks = 2","\"use strict\";\r\nvar PromiseObservable_1 = require('./PromiseObservable');\r\nexports.fromPromise = PromiseObservable_1.PromiseObservable.create;\r\n//# sourceMappingURL=fromPromise.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/fromPromise.js\n// module id = 178\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subscriber_1 = require('../Subscriber');\r\n/* tslint:disable:max-line-length */\r\n/**\r\n * Filter items emitted by the source Observable by only emitting those that\r\n * satisfy a specified predicate.\r\n *\r\n * <span class=\"informal\">Like\r\n * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter),\r\n * it only emits a value from the source if it passes a criterion function.</span>\r\n *\r\n * <img src=\"./img/filter.png\" width=\"100%\">\r\n *\r\n * Similar to the well-known `Array.prototype.filter` method, this operator\r\n * takes values from the source Observable, passes them through a `predicate`\r\n * function and only emits those values that yielded `true`.\r\n *\r\n * @example <caption>Emit only click events whose target was a DIV element</caption>\r\n * var clicks = Rx.Observable.fromEvent(document, 'click');\r\n * var clicksOnDivs = clicks.filter(ev => ev.target.tagName === 'DIV');\r\n * clicksOnDivs.subscribe(x => console.log(x));\r\n *\r\n * @see {@link distinct}\r\n * @see {@link distinctUntilChanged}\r\n * @see {@link distinctUntilKeyChanged}\r\n * @see {@link ignoreElements}\r\n * @see {@link partition}\r\n * @see {@link skip}\r\n *\r\n * @param {function(value: T, index: number): boolean} predicate A function that\r\n * evaluates each value emitted by the source Observable. If it returns `true`,\r\n * the value is emitted, if `false` the value is not passed to the output\r\n * Observable. The `index` parameter is the number `i` for the i-th source\r\n * emission that has happened since the subscription, starting from the number\r\n * `0`.\r\n * @param {any} [thisArg] An optional argument to determine the value of `this`\r\n * in the `predicate` function.\r\n * @return {Observable} An Observable of values from the source that were\r\n * allowed by the `predicate` function.\r\n * @method filter\r\n * @owner Observable\r\n */\r\nfunction filter(predicate, thisArg) {\r\n    return this.lift(new FilterOperator(predicate, thisArg));\r\n}\r\nexports.filter = filter;\r\nvar FilterOperator = (function () {\r\n    function FilterOperator(predicate, thisArg) {\r\n        this.predicate = predicate;\r\n        this.thisArg = thisArg;\r\n    }\r\n    FilterOperator.prototype.call = function (subscriber, source) {\r\n        return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));\r\n    };\r\n    return FilterOperator;\r\n}());\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar FilterSubscriber = (function (_super) {\r\n    __extends(FilterSubscriber, _super);\r\n    function FilterSubscriber(destination, predicate, thisArg) {\r\n        _super.call(this, destination);\r\n        this.predicate = predicate;\r\n        this.thisArg = thisArg;\r\n        this.count = 0;\r\n        this.predicate = predicate;\r\n    }\r\n    // the try catch block below is left specifically for\r\n    // optimization and perf reasons. a tryCatcher is not necessary here.\r\n    FilterSubscriber.prototype._next = function (value) {\r\n        var result;\r\n        try {\r\n            result = this.predicate.call(this.thisArg, value, this.count++);\r\n        }\r\n        catch (err) {\r\n            this.destination.error(err);\r\n            return;\r\n        }\r\n        if (result) {\r\n            this.destination.next(value);\r\n        }\r\n    };\r\n    return FilterSubscriber;\r\n}(Subscriber_1.Subscriber));\r\n//# sourceMappingURL=filter.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/filter.js\n// module id = 179\n// module chunks = 2","\"use strict\";\r\nvar ArrayObservable_1 = require('./ArrayObservable');\r\nexports.of = ArrayObservable_1.ArrayObservable.of;\r\n//# sourceMappingURL=of.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/of.js\n// module id = 182\n// module chunks = 2","function webpackEmptyContext(req) {\n\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 183;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angular/core/@angular async\n// module id = 183\n// module chunks = 2","var core = module.exports = {version: '2.4.0'};\r\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_core.js\n// module id = 193\n// module chunks = 2","// optional / simple context binding\r\nvar aFunction = require('./_a-function');\r\nmodule.exports = function(fn, that, length){\r\n  aFunction(fn);\r\n  if(that === undefined)return fn;\r\n  switch(length){\r\n    case 1: return function(a){\r\n      return fn.call(that, a);\r\n    };\r\n    case 2: return function(a, b){\r\n      return fn.call(that, a, b);\r\n    };\r\n    case 3: return function(a, b, c){\r\n      return fn.call(that, a, b, c);\r\n    };\r\n  }\r\n  return function(/* ...args */){\r\n    return fn.apply(that, arguments);\r\n  };\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_ctx.js\n// module id = 194\n// module chunks = 2","var isObject = require('./_is-object')\r\n  , document = require('./_global').document\r\n  // in old IE typeof document.createElement is 'object'\r\n  , is = isObject(document) && isObject(document.createElement);\r\nmodule.exports = function(it){\r\n  return is ? document.createElement(it) : {};\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_dom-create.js\n// module id = 195\n// module chunks = 2","module.exports = function(exec){\r\n  try {\r\n    return !!exec();\r\n  } catch(e){\r\n    return true;\r\n  }\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_fails.js\n// module id = 196\n// module chunks = 2","var toString = {}.toString;\r\n\r\nmodule.exports = Array.isArray || function (arr) {\r\n  return toString.call(arr) == '[object Array]';\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/isarray/index.js\n// module id = 234\n// module chunks = 2","'use strict';\r\nvar utils = require('./utils');\r\nvar support = require('./support');\r\n// private property\r\nvar _keyStr = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\r\n\r\n\r\n// public method for encoding\r\nexports.encode = function(input) {\r\n    var output = [];\r\n    var chr1, chr2, chr3, enc1, enc2, enc3, enc4;\r\n    var i = 0, len = input.length, remainingBytes = len;\r\n\r\n    var isArray = utils.getTypeOf(input) !== \"string\";\r\n    while (i < input.length) {\r\n        remainingBytes = len - i;\r\n\r\n        if (!isArray) {\r\n            chr1 = input.charCodeAt(i++);\r\n            chr2 = i < len ? input.charCodeAt(i++) : 0;\r\n            chr3 = i < len ? input.charCodeAt(i++) : 0;\r\n        } else {\r\n            chr1 = input[i++];\r\n            chr2 = i < len ? input[i++] : 0;\r\n            chr3 = i < len ? input[i++] : 0;\r\n        }\r\n\r\n        enc1 = chr1 >> 2;\r\n        enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\r\n        enc3 = remainingBytes > 1 ? (((chr2 & 15) << 2) | (chr3 >> 6)) : 64;\r\n        enc4 = remainingBytes > 2 ? (chr3 & 63) : 64;\r\n\r\n        output.push(_keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4));\r\n\r\n    }\r\n\r\n    return output.join(\"\");\r\n};\r\n\r\n// public method for decoding\r\nexports.decode = function(input) {\r\n    var chr1, chr2, chr3;\r\n    var enc1, enc2, enc3, enc4;\r\n    var i = 0, resultIndex = 0;\r\n\r\n    var dataUrlPrefix = \"data:\";\r\n\r\n    if (input.substr(0, dataUrlPrefix.length) === dataUrlPrefix) {\r\n        // This is a common error: people give a data url\r\n        // (data:image/png;base64,iVBOR...) with a {base64: true} and\r\n        // wonders why things don't work.\r\n        // We can detect that the string input looks like a data url but we\r\n        // *can't* be sure it is one: removing everything up to the comma would\r\n        // be too dangerous.\r\n        throw new Error(\"Invalid base64 input, it looks like a data url.\");\r\n    }\r\n\r\n    input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\r\n\r\n    var totalLength = input.length * 3 / 4;\r\n    if(input.charAt(input.length - 1) === _keyStr.charAt(64)) {\r\n        totalLength--;\r\n    }\r\n    if(input.charAt(input.length - 2) === _keyStr.charAt(64)) {\r\n        totalLength--;\r\n    }\r\n    if (totalLength % 1 !== 0) {\r\n        // totalLength is not an integer, the length does not match a valid\r\n        // base64 content. That can happen if:\r\n        // - the input is not a base64 content\r\n        // - the input is *almost* a base64 content, with a extra chars at the\r\n        //   beginning or at the end\r\n        // - the input uses a base64 variant (base64url for example)\r\n        throw new Error(\"Invalid base64 input, bad content length.\");\r\n    }\r\n    var output;\r\n    if (support.uint8array) {\r\n        output = new Uint8Array(totalLength|0);\r\n    } else {\r\n        output = new Array(totalLength|0);\r\n    }\r\n\r\n    while (i < input.length) {\r\n\r\n        enc1 = _keyStr.indexOf(input.charAt(i++));\r\n        enc2 = _keyStr.indexOf(input.charAt(i++));\r\n        enc3 = _keyStr.indexOf(input.charAt(i++));\r\n        enc4 = _keyStr.indexOf(input.charAt(i++));\r\n\r\n        chr1 = (enc1 << 2) | (enc2 >> 4);\r\n        chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\r\n        chr3 = ((enc3 & 3) << 6) | enc4;\r\n\r\n        output[resultIndex++] = chr1;\r\n\r\n        if (enc3 !== 64) {\r\n            output[resultIndex++] = chr2;\r\n        }\r\n        if (enc4 !== 64) {\r\n            output[resultIndex++] = chr3;\r\n        }\r\n\r\n    }\r\n\r\n    return output;\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/base64.js\n// module id = 236\n// module chunks = 2","'use strict';\r\n\r\nvar GenericWorker = require(\"./stream/GenericWorker\");\r\n\r\nexports.STORE = {\r\n    magic: \"\\x00\\x00\",\r\n    compressWorker : function (compressionOptions) {\r\n        return new GenericWorker(\"STORE compression\");\r\n    },\r\n    uncompressWorker : function () {\r\n        return new GenericWorker(\"STORE decompression\");\r\n    }\r\n};\r\nexports.DEFLATE = require('./flate');\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/compressions.js\n// module id = 237\n// module chunks = 2","'use strict';\r\nexports.base64 = false;\r\nexports.binary = false;\r\nexports.dir = false;\r\nexports.createFolders = true;\r\nexports.date = null;\r\nexports.compression = null;\r\nexports.compressionOptions = null;\r\nexports.comment = null;\r\nexports.unixPermissions = null;\r\nexports.dosPermissions = null;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/defaults.js\n// module id = 238\n// module chunks = 2","/*\r\n * This file is used by module bundlers (browserify/webpack/etc) when\r\n * including a stream implementation. We use \"readable-stream\" to get a\r\n * consistent behavior between nodejs versions but bundlers often have a shim\r\n * for \"stream\". Using this shim greatly improve the compatibility and greatly\r\n * reduce the final size of the bundle (only one stream implementation, not\r\n * two).\r\n */\r\nmodule.exports = require(\"stream\");\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/readable-stream-browser.js\n// module id = 239\n// module chunks = 2","'use strict';\r\nvar DataReader = require('./DataReader');\r\nvar utils = require('../utils');\r\n\r\nfunction ArrayReader(data) {\r\n    DataReader.call(this, data);\r\n\tfor(var i = 0; i < this.data.length; i++) {\r\n\t\tdata[i] = data[i] & 0xFF;\r\n\t}\r\n}\r\nutils.inherits(ArrayReader, DataReader);\r\n/**\r\n * @see DataReader.byteAt\r\n */\r\nArrayReader.prototype.byteAt = function(i) {\r\n    return this.data[this.zero + i];\r\n};\r\n/**\r\n * @see DataReader.lastIndexOfSignature\r\n */\r\nArrayReader.prototype.lastIndexOfSignature = function(sig) {\r\n    var sig0 = sig.charCodeAt(0),\r\n        sig1 = sig.charCodeAt(1),\r\n        sig2 = sig.charCodeAt(2),\r\n        sig3 = sig.charCodeAt(3);\r\n    for (var i = this.length - 4; i >= 0; --i) {\r\n        if (this.data[i] === sig0 && this.data[i + 1] === sig1 && this.data[i + 2] === sig2 && this.data[i + 3] === sig3) {\r\n            return i - this.zero;\r\n        }\r\n    }\r\n\r\n    return -1;\r\n};\r\n/**\r\n * @see DataReader.readAndCheckSignature\r\n */\r\nArrayReader.prototype.readAndCheckSignature = function (sig) {\r\n    var sig0 = sig.charCodeAt(0),\r\n        sig1 = sig.charCodeAt(1),\r\n        sig2 = sig.charCodeAt(2),\r\n        sig3 = sig.charCodeAt(3),\r\n        data = this.readData(4);\r\n    return sig0 === data[0] && sig1 === data[1] && sig2 === data[2] && sig3 === data[3];\r\n};\r\n/**\r\n * @see DataReader.readData\r\n */\r\nArrayReader.prototype.readData = function(size) {\r\n    this.checkOffset(size);\r\n    if(size === 0) {\r\n        return [];\r\n    }\r\n    var result = this.data.slice(this.zero + this.index, this.zero + this.index + size);\r\n    this.index += size;\r\n    return result;\r\n};\r\nmodule.exports = ArrayReader;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/reader/ArrayReader.js\n// module id = 240\n// module chunks = 2","'use strict';\r\nvar utils = require('../utils');\r\n\r\nfunction DataReader(data) {\r\n    this.data = data; // type : see implementation\r\n    this.length = data.length;\r\n    this.index = 0;\r\n    this.zero = 0;\r\n}\r\nDataReader.prototype = {\r\n    /**\r\n     * Check that the offset will not go too far.\r\n     * @param {string} offset the additional offset to check.\r\n     * @throws {Error} an Error if the offset is out of bounds.\r\n     */\r\n    checkOffset: function(offset) {\r\n        this.checkIndex(this.index + offset);\r\n    },\r\n    /**\r\n     * Check that the specifed index will not be too far.\r\n     * @param {string} newIndex the index to check.\r\n     * @throws {Error} an Error if the index is out of bounds.\r\n     */\r\n    checkIndex: function(newIndex) {\r\n        if (this.length < this.zero + newIndex || newIndex < 0) {\r\n            throw new Error(\"End of data reached (data length = \" + this.length + \", asked index = \" + (newIndex) + \"). Corrupted zip ?\");\r\n        }\r\n    },\r\n    /**\r\n     * Change the index.\r\n     * @param {number} newIndex The new index.\r\n     * @throws {Error} if the new index is out of the data.\r\n     */\r\n    setIndex: function(newIndex) {\r\n        this.checkIndex(newIndex);\r\n        this.index = newIndex;\r\n    },\r\n    /**\r\n     * Skip the next n bytes.\r\n     * @param {number} n the number of bytes to skip.\r\n     * @throws {Error} if the new index is out of the data.\r\n     */\r\n    skip: function(n) {\r\n        this.setIndex(this.index + n);\r\n    },\r\n    /**\r\n     * Get the byte at the specified index.\r\n     * @param {number} i the index to use.\r\n     * @return {number} a byte.\r\n     */\r\n    byteAt: function(i) {\r\n        // see implementations\r\n    },\r\n    /**\r\n     * Get the next number with a given byte size.\r\n     * @param {number} size the number of bytes to read.\r\n     * @return {number} the corresponding number.\r\n     */\r\n    readInt: function(size) {\r\n        var result = 0,\r\n            i;\r\n        this.checkOffset(size);\r\n        for (i = this.index + size - 1; i >= this.index; i--) {\r\n            result = (result << 8) + this.byteAt(i);\r\n        }\r\n        this.index += size;\r\n        return result;\r\n    },\r\n    /**\r\n     * Get the next string with a given byte size.\r\n     * @param {number} size the number of bytes to read.\r\n     * @return {string} the corresponding string.\r\n     */\r\n    readString: function(size) {\r\n        return utils.transformTo(\"string\", this.readData(size));\r\n    },\r\n    /**\r\n     * Get raw data without conversion, <size> bytes.\r\n     * @param {number} size the number of bytes to read.\r\n     * @return {Object} the raw data, implementation specific.\r\n     */\r\n    readData: function(size) {\r\n        // see implementations\r\n    },\r\n    /**\r\n     * Find the last occurence of a zip signature (4 bytes).\r\n     * @param {string} sig the signature to find.\r\n     * @return {number} the index of the last occurence, -1 if not found.\r\n     */\r\n    lastIndexOfSignature: function(sig) {\r\n        // see implementations\r\n    },\r\n    /**\r\n     * Read the signature (4 bytes) at the current position and compare it with sig.\r\n     * @param {string} sig the expected signature\r\n     * @return {boolean} true if the signature matches, false otherwise.\r\n     */\r\n    readAndCheckSignature: function(sig) {\r\n        // see implementations\r\n    },\r\n    /**\r\n     * Get the next date.\r\n     * @return {Date} the date.\r\n     */\r\n    readDate: function() {\r\n        var dostime = this.readInt(4);\r\n        return new Date(Date.UTC(\r\n        ((dostime >> 25) & 0x7f) + 1980, // year\r\n        ((dostime >> 21) & 0x0f) - 1, // month\r\n        (dostime >> 16) & 0x1f, // day\r\n        (dostime >> 11) & 0x1f, // hour\r\n        (dostime >> 5) & 0x3f, // minute\r\n        (dostime & 0x1f) << 1)); // second\r\n    }\r\n};\r\nmodule.exports = DataReader;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/reader/DataReader.js\n// module id = 241\n// module chunks = 2","'use strict';\r\nvar ArrayReader = require('./ArrayReader');\r\nvar utils = require('../utils');\r\n\r\nfunction Uint8ArrayReader(data) {\r\n    ArrayReader.call(this, data);\r\n}\r\nutils.inherits(Uint8ArrayReader, ArrayReader);\r\n/**\r\n * @see DataReader.readData\r\n */\r\nUint8ArrayReader.prototype.readData = function(size) {\r\n    this.checkOffset(size);\r\n    if(size === 0) {\r\n        // in IE10, when using subarray(idx, idx), we get the array [0x00] instead of [].\r\n        return new Uint8Array(0);\r\n    }\r\n    var result = this.data.subarray(this.zero + this.index, this.zero + this.index + size);\r\n    this.index += size;\r\n    return result;\r\n};\r\nmodule.exports = Uint8ArrayReader;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/reader/Uint8ArrayReader.js\n// module id = 242\n// module chunks = 2","'use strict';\r\n\r\nvar utils = require('../utils');\r\nvar support = require('../support');\r\nvar ArrayReader = require('./ArrayReader');\r\nvar StringReader = require('./StringReader');\r\nvar NodeBufferReader = require('./NodeBufferReader');\r\nvar Uint8ArrayReader = require('./Uint8ArrayReader');\r\n\r\n/**\r\n * Create a reader adapted to the data.\r\n * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data to read.\r\n * @return {DataReader} the data reader.\r\n */\r\nmodule.exports = function (data) {\r\n    var type = utils.getTypeOf(data);\r\n    utils.checkSupport(type);\r\n    if (type === \"string\" && !support.uint8array) {\r\n        return new StringReader(data);\r\n    }\r\n    if (type === \"nodebuffer\") {\r\n        return new NodeBufferReader(data);\r\n    }\r\n    if (support.uint8array) {\r\n        return new Uint8ArrayReader(utils.transformTo(\"uint8array\", data));\r\n    }\r\n    return new ArrayReader(utils.transformTo(\"array\", data));\r\n};\r\n\r\n// vim: set shiftwidth=4 softtabstop=4:\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/reader/readerFor.js\n// module id = 243\n// module chunks = 2","'use strict';\r\nexports.LOCAL_FILE_HEADER = \"PK\\x03\\x04\";\r\nexports.CENTRAL_FILE_HEADER = \"PK\\x01\\x02\";\r\nexports.CENTRAL_DIRECTORY_END = \"PK\\x05\\x06\";\r\nexports.ZIP64_CENTRAL_DIRECTORY_LOCATOR = \"PK\\x06\\x07\";\r\nexports.ZIP64_CENTRAL_DIRECTORY_END = \"PK\\x06\\x06\";\r\nexports.DATA_DESCRIPTOR = \"PK\\x07\\x08\";\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/signature.js\n// module id = 244\n// module chunks = 2","'use strict';\r\n\r\nvar GenericWorker = require('./GenericWorker');\r\nvar crc32 = require('../crc32');\r\nvar utils = require('../utils');\r\n\r\n/**\r\n * A worker which calculate the crc32 of the data flowing through.\r\n * @constructor\r\n */\r\nfunction Crc32Probe() {\r\n    GenericWorker.call(this, \"Crc32Probe\");\r\n    this.withStreamInfo(\"crc32\", 0);\r\n}\r\nutils.inherits(Crc32Probe, GenericWorker);\r\n\r\n/**\r\n * @see GenericWorker.processChunk\r\n */\r\nCrc32Probe.prototype.processChunk = function (chunk) {\r\n    this.streamInfo.crc32 = crc32(chunk.data, this.streamInfo.crc32 || 0);\r\n    this.push(chunk);\r\n};\r\nmodule.exports = Crc32Probe;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/stream/Crc32Probe.js\n// module id = 245\n// module chunks = 2","'use strict';\r\n\r\nvar utils = require('../utils');\r\nvar GenericWorker = require('./GenericWorker');\r\n\r\n/**\r\n * A worker which calculate the total length of the data flowing through.\r\n * @constructor\r\n * @param {String} propName the name used to expose the length\r\n */\r\nfunction DataLengthProbe(propName) {\r\n    GenericWorker.call(this, \"DataLengthProbe for \" + propName);\r\n    this.propName = propName;\r\n    this.withStreamInfo(propName, 0);\r\n}\r\nutils.inherits(DataLengthProbe, GenericWorker);\r\n\r\n/**\r\n * @see GenericWorker.processChunk\r\n */\r\nDataLengthProbe.prototype.processChunk = function (chunk) {\r\n    if(chunk) {\r\n        var length = this.streamInfo[this.propName] || 0;\r\n        this.streamInfo[this.propName] = length + chunk.data.length;\r\n    }\r\n    GenericWorker.prototype.processChunk.call(this, chunk);\r\n};\r\nmodule.exports = DataLengthProbe;\r\n\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/stream/DataLengthProbe.js\n// module id = 246\n// module chunks = 2","'use strict';\r\n\r\nvar utils = require('../utils');\r\nvar GenericWorker = require('./GenericWorker');\r\n\r\n// the size of the generated chunks\r\n// TODO expose this as a public variable\r\nvar DEFAULT_BLOCK_SIZE = 16 * 1024;\r\n\r\n/**\r\n * A worker that reads a content and emits chunks.\r\n * @constructor\r\n * @param {Promise} dataP the promise of the data to split\r\n */\r\nfunction DataWorker(dataP) {\r\n    GenericWorker.call(this, \"DataWorker\");\r\n    var self = this;\r\n    this.dataIsReady = false;\r\n    this.index = 0;\r\n    this.max = 0;\r\n    this.data = null;\r\n    this.type = \"\";\r\n\r\n    this._tickScheduled = false;\r\n\r\n    dataP.then(function (data) {\r\n        self.dataIsReady = true;\r\n        self.data = data;\r\n        self.max = data && data.length || 0;\r\n        self.type = utils.getTypeOf(data);\r\n        if(!self.isPaused) {\r\n            self._tickAndRepeat();\r\n        }\r\n    }, function (e) {\r\n        self.error(e);\r\n    });\r\n}\r\n\r\nutils.inherits(DataWorker, GenericWorker);\r\n\r\n/**\r\n * @see GenericWorker.cleanUp\r\n */\r\nDataWorker.prototype.cleanUp = function () {\r\n    GenericWorker.prototype.cleanUp.call(this);\r\n    this.data = null;\r\n};\r\n\r\n/**\r\n * @see GenericWorker.resume\r\n */\r\nDataWorker.prototype.resume = function () {\r\n    if(!GenericWorker.prototype.resume.call(this)) {\r\n        return false;\r\n    }\r\n\r\n    if (!this._tickScheduled && this.dataIsReady) {\r\n        this._tickScheduled = true;\r\n        utils.delay(this._tickAndRepeat, [], this);\r\n    }\r\n    return true;\r\n};\r\n\r\n/**\r\n * Trigger a tick a schedule an other call to this function.\r\n */\r\nDataWorker.prototype._tickAndRepeat = function() {\r\n    this._tickScheduled = false;\r\n    if(this.isPaused || this.isFinished) {\r\n        return;\r\n    }\r\n    this._tick();\r\n    if(!this.isFinished) {\r\n        utils.delay(this._tickAndRepeat, [], this);\r\n        this._tickScheduled = true;\r\n    }\r\n};\r\n\r\n/**\r\n * Read and push a chunk.\r\n */\r\nDataWorker.prototype._tick = function() {\r\n\r\n    if(this.isPaused || this.isFinished) {\r\n        return false;\r\n    }\r\n\r\n    var size = DEFAULT_BLOCK_SIZE;\r\n    var data = null, nextIndex = Math.min(this.max, this.index + size);\r\n    if (this.index >= this.max) {\r\n        // EOF\r\n        return this.end();\r\n    } else {\r\n        switch(this.type) {\r\n            case \"string\":\r\n                data = this.data.substring(this.index, nextIndex);\r\n            break;\r\n            case \"uint8array\":\r\n                data = this.data.subarray(this.index, nextIndex);\r\n            break;\r\n            case \"array\":\r\n            case \"nodebuffer\":\r\n                data = this.data.slice(this.index, nextIndex);\r\n            break;\r\n        }\r\n        this.index = nextIndex;\r\n        return this.push({\r\n            data : data,\r\n            meta : {\r\n                percent : this.max ? this.index / this.max * 100 : 0\r\n            }\r\n        });\r\n    }\r\n};\r\n\r\nmodule.exports = DataWorker;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/stream/DataWorker.js\n// module id = 247\n// module chunks = 2","'use strict';\r\n\r\nvar utils = require('../utils');\r\nvar ConvertWorker = require('./ConvertWorker');\r\nvar GenericWorker = require('./GenericWorker');\r\nvar base64 = require('../base64');\r\nvar support = require(\"../support\");\r\nvar external = require(\"../external\");\r\n\r\nvar NodejsStreamOutputAdapter = null;\r\nif (support.nodestream) {\r\n    try {\r\n        NodejsStreamOutputAdapter = require('../nodejs/NodejsStreamOutputAdapter');\r\n    } catch(e) {}\r\n}\r\n\r\n/**\r\n * Apply the final transformation of the data. If the user wants a Blob for\r\n * example, it's easier to work with an U8intArray and finally do the\r\n * ArrayBuffer/Blob conversion.\r\n * @param {String} resultType the name of the final type\r\n * @param {String} chunkType the type of the data in the given array.\r\n * @param {Array} dataArray the array containing the data chunks to concatenate\r\n * @param {String|Uint8Array|Buffer} content the content to transform\r\n * @param {String} mimeType the mime type of the content, if applicable.\r\n * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the content in the right format.\r\n */\r\nfunction transformZipOutput(resultType, chunkType, dataArray, mimeType) {\r\n    var content = null;\r\n    switch(resultType) {\r\n        case \"blob\" :\r\n            return utils.newBlob(dataArray, mimeType);\r\n        case \"base64\" :\r\n            content = concat(chunkType, dataArray);\r\n            return base64.encode(content);\r\n        default :\r\n            content = concat(chunkType, dataArray);\r\n            return utils.transformTo(resultType, content);\r\n    }\r\n}\r\n\r\n/**\r\n * Concatenate an array of data of the given type.\r\n * @param {String} type the type of the data in the given array.\r\n * @param {Array} dataArray the array containing the data chunks to concatenate\r\n * @return {String|Uint8Array|Buffer} the concatenated data\r\n * @throws Error if the asked type is unsupported\r\n */\r\nfunction concat (type, dataArray) {\r\n    var i, index = 0, res = null, totalLength = 0;\r\n    for(i = 0; i < dataArray.length; i++) {\r\n        totalLength += dataArray[i].length;\r\n    }\r\n    switch(type) {\r\n        case \"string\":\r\n            return dataArray.join(\"\");\r\n          case \"array\":\r\n            return Array.prototype.concat.apply([], dataArray);\r\n        case \"uint8array\":\r\n            res = new Uint8Array(totalLength);\r\n            for(i = 0; i < dataArray.length; i++) {\r\n                res.set(dataArray[i], index);\r\n                index += dataArray[i].length;\r\n            }\r\n            return res;\r\n        case \"nodebuffer\":\r\n            return Buffer.concat(dataArray);\r\n        default:\r\n            throw new Error(\"concat : unsupported type '\"  + type + \"'\");\r\n    }\r\n}\r\n\r\n/**\r\n * Listen a StreamHelper, accumulate its content and concatenate it into a\r\n * complete block.\r\n * @param {StreamHelper} helper the helper to use.\r\n * @param {Function} updateCallback a callback called on each update. Called\r\n * with one arg :\r\n * - the metadata linked to the update received.\r\n * @return Promise the promise for the accumulation.\r\n */\r\nfunction accumulate(helper, updateCallback) {\r\n    return new external.Promise(function (resolve, reject){\r\n        var dataArray = [];\r\n        var chunkType = helper._internalType,\r\n            resultType = helper._outputType,\r\n            mimeType = helper._mimeType;\r\n        helper\r\n        .on('data', function (data, meta) {\r\n            dataArray.push(data);\r\n            if(updateCallback) {\r\n                updateCallback(meta);\r\n            }\r\n        })\r\n        .on('error', function(err) {\r\n            dataArray = [];\r\n            reject(err);\r\n        })\r\n        .on('end', function (){\r\n            try {\r\n                var result = transformZipOutput(resultType, chunkType, dataArray, mimeType);\r\n                resolve(result);\r\n            } catch (e) {\r\n                reject(e);\r\n            }\r\n            dataArray = [];\r\n        })\r\n        .resume();\r\n    });\r\n}\r\n\r\n/**\r\n * An helper to easily use workers outside of JSZip.\r\n * @constructor\r\n * @param {Worker} worker the worker to wrap\r\n * @param {String} outputType the type of data expected by the use\r\n * @param {String} mimeType the mime type of the content, if applicable.\r\n */\r\nfunction StreamHelper(worker, outputType, mimeType) {\r\n    var internalType = outputType;\r\n    switch(outputType) {\r\n        case \"blob\":\r\n            internalType = \"arraybuffer\";\r\n        break;\r\n        case \"arraybuffer\":\r\n            internalType = \"uint8array\";\r\n        break;\r\n        case \"base64\":\r\n            internalType = \"string\";\r\n        break;\r\n    }\r\n\r\n    try {\r\n        // the type used internally\r\n        this._internalType = internalType;\r\n        // the type used to output results\r\n        this._outputType = outputType;\r\n        // the mime type\r\n        this._mimeType = mimeType;\r\n        utils.checkSupport(internalType);\r\n        this._worker = worker.pipe(new ConvertWorker(internalType));\r\n        // the last workers can be rewired without issues but we need to\r\n        // prevent any updates on previous workers.\r\n        worker.lock();\r\n    } catch(e) {\r\n        this._worker = new GenericWorker(\"error\");\r\n        this._worker.error(e);\r\n    }\r\n}\r\n\r\nStreamHelper.prototype = {\r\n    /**\r\n     * Listen a StreamHelper, accumulate its content and concatenate it into a\r\n     * complete block.\r\n     * @param {Function} updateCb the update callback.\r\n     * @return Promise the promise for the accumulation.\r\n     */\r\n    accumulate : function (updateCb) {\r\n        return accumulate(this, updateCb);\r\n    },\r\n    /**\r\n     * Add a listener on an event triggered on a stream.\r\n     * @param {String} evt the name of the event\r\n     * @param {Function} fn the listener\r\n     * @return {StreamHelper} the current helper.\r\n     */\r\n    on : function (evt, fn) {\r\n        var self = this;\r\n\r\n        if(evt === \"data\") {\r\n            this._worker.on(evt, function (chunk) {\r\n                fn.call(self, chunk.data, chunk.meta);\r\n            });\r\n        } else {\r\n            this._worker.on(evt, function () {\r\n                utils.delay(fn, arguments, self);\r\n            });\r\n        }\r\n        return this;\r\n    },\r\n    /**\r\n     * Resume the flow of chunks.\r\n     * @return {StreamHelper} the current helper.\r\n     */\r\n    resume : function () {\r\n        utils.delay(this._worker.resume, [], this._worker);\r\n        return this;\r\n    },\r\n    /**\r\n     * Pause the flow of chunks.\r\n     * @return {StreamHelper} the current helper.\r\n     */\r\n    pause : function () {\r\n        this._worker.pause();\r\n        return this;\r\n    },\r\n    /**\r\n     * Return a nodejs stream for this helper.\r\n     * @param {Function} updateCb the update callback.\r\n     * @return {NodejsStreamOutputAdapter} the nodejs stream.\r\n     */\r\n    toNodejsStream : function (updateCb) {\r\n        utils.checkSupport(\"nodestream\");\r\n        if (this._outputType !== \"nodebuffer\") {\r\n            // an object stream containing blob/arraybuffer/uint8array/string\r\n            // is strange and I don't know if it would be useful.\r\n            // I you find this comment and have a good usecase, please open a\r\n            // bug report !\r\n            throw new Error(this._outputType + \" is not supported by this method\");\r\n        }\r\n\r\n        return new NodejsStreamOutputAdapter(this, {\r\n            objectMode : this._outputType !== \"nodebuffer\"\r\n        }, updateCb);\r\n    }\r\n};\r\n\r\n\r\nmodule.exports = StreamHelper;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/stream/StreamHelper.js\n// module id = 248\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Afrikaans [af]\r\n//! author : Werner Mollentze : https://github.com/wernerm\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var af = moment.defineLocale('af', {\r\n        months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),\r\n        weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),\r\n        weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),\r\n        weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),\r\n        meridiemParse: /vm|nm/i,\r\n        isPM : function (input) {\r\n            return /^nm$/i.test(input);\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours < 12) {\r\n                return isLower ? 'vm' : 'VM';\r\n            } else {\r\n                return isLower ? 'nm' : 'NM';\r\n            }\r\n        },\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Vandag om] LT',\r\n            nextDay : '[Môre om] LT',\r\n            nextWeek : 'dddd [om] LT',\r\n            lastDay : '[Gister om] LT',\r\n            lastWeek : '[Laas] dddd [om] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'oor %s',\r\n            past : '%s gelede',\r\n            s : '\\'n paar sekondes',\r\n            m : '\\'n minuut',\r\n            mm : '%d minute',\r\n            h : '\\'n uur',\r\n            hh : '%d ure',\r\n            d : '\\'n dag',\r\n            dd : '%d dae',\r\n            M : '\\'n maand',\r\n            MM : '%d maande',\r\n            y : '\\'n jaar',\r\n            yy : '%d jaar'\r\n        },\r\n        ordinalParse: /\\d{1,2}(ste|de)/,\r\n        ordinal : function (number) {\r\n            return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter\r\n        },\r\n        week : {\r\n            dow : 1, // Maandag is die eerste dag van die week.\r\n            doy : 4  // Die week wat die 4de Januarie bevat is die eerste week van die jaar.\r\n        }\r\n    });\r\n\r\n    return af;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/af.js\n// module id = 249\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Arabic (Lybia) [ar-ly]\r\n//! author : Ali Hmer: https://github.com/kikoanis\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '1',\r\n        '2': '2',\r\n        '3': '3',\r\n        '4': '4',\r\n        '5': '5',\r\n        '6': '6',\r\n        '7': '7',\r\n        '8': '8',\r\n        '9': '9',\r\n        '0': '0'\r\n    }, pluralForm = function (n) {\r\n        return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;\r\n    }, plurals = {\r\n        s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],\r\n        m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],\r\n        h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],\r\n        d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],\r\n        M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],\r\n        y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']\r\n    }, pluralize = function (u) {\r\n        return function (number, withoutSuffix, string, isFuture) {\r\n            var f = pluralForm(number),\r\n                str = plurals[u][pluralForm(number)];\r\n            if (f === 2) {\r\n                str = str[withoutSuffix ? 0 : 1];\r\n            }\r\n            return str.replace(/%d/i, number);\r\n        };\r\n    }, months = [\r\n        'يناير',\r\n        'فبراير',\r\n        'مارس',\r\n        'أبريل',\r\n        'مايو',\r\n        'يونيو',\r\n        'يوليو',\r\n        'أغسطس',\r\n        'سبتمبر',\r\n        'أكتوبر',\r\n        'نوفمبر',\r\n        'ديسمبر'\r\n    ];\r\n\r\n    var ar_ly = moment.defineLocale('ar-ly', {\r\n        months : months,\r\n        monthsShort : months,\r\n        weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\r\n        weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\r\n        weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'D/\\u200FM/\\u200FYYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        meridiemParse: /ص|م/,\r\n        isPM : function (input) {\r\n            return 'م' === input;\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 12) {\r\n                return 'ص';\r\n            } else {\r\n                return 'م';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay: '[اليوم عند الساعة] LT',\r\n            nextDay: '[غدًا عند الساعة] LT',\r\n            nextWeek: 'dddd [عند الساعة] LT',\r\n            lastDay: '[أمس عند الساعة] LT',\r\n            lastWeek: 'dddd [عند الساعة] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'بعد %s',\r\n            past : 'منذ %s',\r\n            s : pluralize('s'),\r\n            m : pluralize('m'),\r\n            mm : pluralize('m'),\r\n            h : pluralize('h'),\r\n            hh : pluralize('h'),\r\n            d : pluralize('d'),\r\n            dd : pluralize('d'),\r\n            M : pluralize('M'),\r\n            MM : pluralize('M'),\r\n            y : pluralize('y'),\r\n            yy : pluralize('y')\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/\\u200f/g, '').replace(/،/g, ',');\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            }).replace(/,/g, '،');\r\n        },\r\n        week : {\r\n            dow : 6, // Saturday is the first day of the week.\r\n            doy : 12  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ar_ly;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-ly.js\n// module id = 250\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Arabic (Morocco) [ar-ma]\r\n//! author : ElFadili Yassine : https://github.com/ElFadiliY\r\n//! author : Abdel Said : https://github.com/abdelsaid\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var ar_ma = moment.defineLocale('ar-ma', {\r\n        months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\r\n        monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\r\n        weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\r\n        weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\r\n        weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[اليوم على الساعة] LT',\r\n            nextDay: '[غدا على الساعة] LT',\r\n            nextWeek: 'dddd [على الساعة] LT',\r\n            lastDay: '[أمس على الساعة] LT',\r\n            lastWeek: 'dddd [على الساعة] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'في %s',\r\n            past : 'منذ %s',\r\n            s : 'ثوان',\r\n            m : 'دقيقة',\r\n            mm : '%d دقائق',\r\n            h : 'ساعة',\r\n            hh : '%d ساعات',\r\n            d : 'يوم',\r\n            dd : '%d أيام',\r\n            M : 'شهر',\r\n            MM : '%d أشهر',\r\n            y : 'سنة',\r\n            yy : '%d سنوات'\r\n        },\r\n        week : {\r\n            dow : 6, // Saturday is the first day of the week.\r\n            doy : 12  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ar_ma;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-ma.js\n// module id = 251\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Arabic (Saudi Arabia) [ar-sa]\r\n//! author : Suhail Alkowaileet : https://github.com/xsoh\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '١',\r\n        '2': '٢',\r\n        '3': '٣',\r\n        '4': '٤',\r\n        '5': '٥',\r\n        '6': '٦',\r\n        '7': '٧',\r\n        '8': '٨',\r\n        '9': '٩',\r\n        '0': '٠'\r\n    }, numberMap = {\r\n        '١': '1',\r\n        '٢': '2',\r\n        '٣': '3',\r\n        '٤': '4',\r\n        '٥': '5',\r\n        '٦': '6',\r\n        '٧': '7',\r\n        '٨': '8',\r\n        '٩': '9',\r\n        '٠': '0'\r\n    };\r\n\r\n    var ar_sa = moment.defineLocale('ar-sa', {\r\n        months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\r\n        monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\r\n        weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\r\n        weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\r\n        weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        meridiemParse: /ص|م/,\r\n        isPM : function (input) {\r\n            return 'م' === input;\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 12) {\r\n                return 'ص';\r\n            } else {\r\n                return 'م';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay: '[اليوم على الساعة] LT',\r\n            nextDay: '[غدا على الساعة] LT',\r\n            nextWeek: 'dddd [على الساعة] LT',\r\n            lastDay: '[أمس على الساعة] LT',\r\n            lastWeek: 'dddd [على الساعة] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'في %s',\r\n            past : 'منذ %s',\r\n            s : 'ثوان',\r\n            m : 'دقيقة',\r\n            mm : '%d دقائق',\r\n            h : 'ساعة',\r\n            hh : '%d ساعات',\r\n            d : 'يوم',\r\n            dd : '%d أيام',\r\n            M : 'شهر',\r\n            MM : '%d أشهر',\r\n            y : 'سنة',\r\n            yy : '%d سنوات'\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\r\n                return numberMap[match];\r\n            }).replace(/،/g, ',');\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            }).replace(/,/g, '،');\r\n        },\r\n        week : {\r\n            dow : 6, // Saturday is the first day of the week.\r\n            doy : 12  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ar_sa;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-sa.js\n// module id = 252\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale  :  Arabic (Tunisia) [ar-tn]\r\n//! author : Nader Toukabri : https://github.com/naderio\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var ar_tn = moment.defineLocale('ar-tn', {\r\n        months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\r\n        monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\r\n        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\r\n        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\r\n        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat: {\r\n            LT: 'HH:mm',\r\n            LTS: 'HH:mm:ss',\r\n            L: 'DD/MM/YYYY',\r\n            LL: 'D MMMM YYYY',\r\n            LLL: 'D MMMM YYYY HH:mm',\r\n            LLLL: 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar: {\r\n            sameDay: '[اليوم على الساعة] LT',\r\n            nextDay: '[غدا على الساعة] LT',\r\n            nextWeek: 'dddd [على الساعة] LT',\r\n            lastDay: '[أمس على الساعة] LT',\r\n            lastWeek: 'dddd [على الساعة] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime: {\r\n            future: 'في %s',\r\n            past: 'منذ %s',\r\n            s: 'ثوان',\r\n            m: 'دقيقة',\r\n            mm: '%d دقائق',\r\n            h: 'ساعة',\r\n            hh: '%d ساعات',\r\n            d: 'يوم',\r\n            dd: '%d أيام',\r\n            M: 'شهر',\r\n            MM: '%d أشهر',\r\n            y: 'سنة',\r\n            yy: '%d سنوات'\r\n        },\r\n        week: {\r\n            dow: 1, // Monday is the first day of the week.\r\n            doy: 4 // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ar_tn;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar-tn.js\n// module id = 253\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Arabic [ar]\r\n//! author : Abdel Said: https://github.com/abdelsaid\r\n//! author : Ahmed Elkhatib\r\n//! author : forabi https://github.com/forabi\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '١',\r\n        '2': '٢',\r\n        '3': '٣',\r\n        '4': '٤',\r\n        '5': '٥',\r\n        '6': '٦',\r\n        '7': '٧',\r\n        '8': '٨',\r\n        '9': '٩',\r\n        '0': '٠'\r\n    }, numberMap = {\r\n        '١': '1',\r\n        '٢': '2',\r\n        '٣': '3',\r\n        '٤': '4',\r\n        '٥': '5',\r\n        '٦': '6',\r\n        '٧': '7',\r\n        '٨': '8',\r\n        '٩': '9',\r\n        '٠': '0'\r\n    }, pluralForm = function (n) {\r\n        return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;\r\n    }, plurals = {\r\n        s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],\r\n        m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],\r\n        h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],\r\n        d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],\r\n        M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],\r\n        y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']\r\n    }, pluralize = function (u) {\r\n        return function (number, withoutSuffix, string, isFuture) {\r\n            var f = pluralForm(number),\r\n                str = plurals[u][pluralForm(number)];\r\n            if (f === 2) {\r\n                str = str[withoutSuffix ? 0 : 1];\r\n            }\r\n            return str.replace(/%d/i, number);\r\n        };\r\n    }, months = [\r\n        'كانون الثاني يناير',\r\n        'شباط فبراير',\r\n        'آذار مارس',\r\n        'نيسان أبريل',\r\n        'أيار مايو',\r\n        'حزيران يونيو',\r\n        'تموز يوليو',\r\n        'آب أغسطس',\r\n        'أيلول سبتمبر',\r\n        'تشرين الأول أكتوبر',\r\n        'تشرين الثاني نوفمبر',\r\n        'كانون الأول ديسمبر'\r\n    ];\r\n\r\n    var ar = moment.defineLocale('ar', {\r\n        months : months,\r\n        monthsShort : months,\r\n        weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\r\n        weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\r\n        weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'D/\\u200FM/\\u200FYYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        meridiemParse: /ص|م/,\r\n        isPM : function (input) {\r\n            return 'م' === input;\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 12) {\r\n                return 'ص';\r\n            } else {\r\n                return 'م';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay: '[اليوم عند الساعة] LT',\r\n            nextDay: '[غدًا عند الساعة] LT',\r\n            nextWeek: 'dddd [عند الساعة] LT',\r\n            lastDay: '[أمس عند الساعة] LT',\r\n            lastWeek: 'dddd [عند الساعة] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'بعد %s',\r\n            past : 'منذ %s',\r\n            s : pluralize('s'),\r\n            m : pluralize('m'),\r\n            mm : pluralize('m'),\r\n            h : pluralize('h'),\r\n            hh : pluralize('h'),\r\n            d : pluralize('d'),\r\n            dd : pluralize('d'),\r\n            M : pluralize('M'),\r\n            MM : pluralize('M'),\r\n            y : pluralize('y'),\r\n            yy : pluralize('y')\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/\\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\r\n                return numberMap[match];\r\n            }).replace(/،/g, ',');\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            }).replace(/,/g, '،');\r\n        },\r\n        week : {\r\n            dow : 6, // Saturday is the first day of the week.\r\n            doy : 12  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ar;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ar.js\n// module id = 254\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Azerbaijani [az]\r\n//! author : topchiyev : https://github.com/topchiyev\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var suffixes = {\r\n        1: '-inci',\r\n        5: '-inci',\r\n        8: '-inci',\r\n        70: '-inci',\r\n        80: '-inci',\r\n        2: '-nci',\r\n        7: '-nci',\r\n        20: '-nci',\r\n        50: '-nci',\r\n        3: '-üncü',\r\n        4: '-üncü',\r\n        100: '-üncü',\r\n        6: '-ncı',\r\n        9: '-uncu',\r\n        10: '-uncu',\r\n        30: '-uncu',\r\n        60: '-ıncı',\r\n        90: '-ıncı'\r\n    };\r\n\r\n    var az = moment.defineLocale('az', {\r\n        months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),\r\n        monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),\r\n        weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),\r\n        weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),\r\n        weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[bugün saat] LT',\r\n            nextDay : '[sabah saat] LT',\r\n            nextWeek : '[gələn həftə] dddd [saat] LT',\r\n            lastDay : '[dünən] LT',\r\n            lastWeek : '[keçən həftə] dddd [saat] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s sonra',\r\n            past : '%s əvvəl',\r\n            s : 'birneçə saniyyə',\r\n            m : 'bir dəqiqə',\r\n            mm : '%d dəqiqə',\r\n            h : 'bir saat',\r\n            hh : '%d saat',\r\n            d : 'bir gün',\r\n            dd : '%d gün',\r\n            M : 'bir ay',\r\n            MM : '%d ay',\r\n            y : 'bir il',\r\n            yy : '%d il'\r\n        },\r\n        meridiemParse: /gecə|səhər|gündüz|axşam/,\r\n        isPM : function (input) {\r\n            return /^(gündüz|axşam)$/.test(input);\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'gecə';\r\n            } else if (hour < 12) {\r\n                return 'səhər';\r\n            } else if (hour < 17) {\r\n                return 'gündüz';\r\n            } else {\r\n                return 'axşam';\r\n            }\r\n        },\r\n        ordinalParse: /\\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,\r\n        ordinal : function (number) {\r\n            if (number === 0) {  // special case for zero\r\n                return number + '-ıncı';\r\n            }\r\n            var a = number % 10,\r\n                b = number % 100 - a,\r\n                c = number >= 100 ? 100 : null;\r\n            return number + (suffixes[a] || suffixes[b] || suffixes[c]);\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return az;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/az.js\n// module id = 255\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Belarusian [be]\r\n//! author : Dmitry Demidov : https://github.com/demidov91\r\n//! author: Praleska: http://praleska.pro/\r\n//! Author : Menelion Elensúle : https://github.com/Oire\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function plural(word, num) {\r\n        var forms = word.split('_');\r\n        return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);\r\n    }\r\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\r\n        var format = {\r\n            'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',\r\n            'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',\r\n            'dd': 'дзень_дні_дзён',\r\n            'MM': 'месяц_месяцы_месяцаў',\r\n            'yy': 'год_гады_гадоў'\r\n        };\r\n        if (key === 'm') {\r\n            return withoutSuffix ? 'хвіліна' : 'хвіліну';\r\n        }\r\n        else if (key === 'h') {\r\n            return withoutSuffix ? 'гадзіна' : 'гадзіну';\r\n        }\r\n        else {\r\n            return number + ' ' + plural(format[key], +number);\r\n        }\r\n    }\r\n\r\n    var be = moment.defineLocale('be', {\r\n        months : {\r\n            format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),\r\n            standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')\r\n        },\r\n        monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),\r\n        weekdays : {\r\n            format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),\r\n            standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),\r\n            isFormat: /\\[ ?[Вв] ?(?:мінулую|наступную)? ?\\] ?dddd/\r\n        },\r\n        weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\r\n        weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY г.',\r\n            LLL : 'D MMMM YYYY г., HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY г., HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Сёння ў] LT',\r\n            nextDay: '[Заўтра ў] LT',\r\n            lastDay: '[Учора ў] LT',\r\n            nextWeek: function () {\r\n                return '[У] dddd [ў] LT';\r\n            },\r\n            lastWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                    case 3:\r\n                    case 5:\r\n                    case 6:\r\n                        return '[У мінулую] dddd [ў] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                        return '[У мінулы] dddd [ў] LT';\r\n                }\r\n            },\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'праз %s',\r\n            past : '%s таму',\r\n            s : 'некалькі секунд',\r\n            m : relativeTimeWithPlural,\r\n            mm : relativeTimeWithPlural,\r\n            h : relativeTimeWithPlural,\r\n            hh : relativeTimeWithPlural,\r\n            d : 'дзень',\r\n            dd : relativeTimeWithPlural,\r\n            M : 'месяц',\r\n            MM : relativeTimeWithPlural,\r\n            y : 'год',\r\n            yy : relativeTimeWithPlural\r\n        },\r\n        meridiemParse: /ночы|раніцы|дня|вечара/,\r\n        isPM : function (input) {\r\n            return /^(дня|вечара)$/.test(input);\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'ночы';\r\n            } else if (hour < 12) {\r\n                return 'раніцы';\r\n            } else if (hour < 17) {\r\n                return 'дня';\r\n            } else {\r\n                return 'вечара';\r\n            }\r\n        },\r\n        ordinalParse: /\\d{1,2}-(і|ы|га)/,\r\n        ordinal: function (number, period) {\r\n            switch (period) {\r\n                case 'M':\r\n                case 'd':\r\n                case 'DDD':\r\n                case 'w':\r\n                case 'W':\r\n                    return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';\r\n                case 'D':\r\n                    return number + '-га';\r\n                default:\r\n                    return number;\r\n            }\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return be;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/be.js\n// module id = 256\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Bulgarian [bg]\r\n//! author : Krasen Borisov : https://github.com/kraz\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var bg = moment.defineLocale('bg', {\r\n        months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),\r\n        monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),\r\n        weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),\r\n        weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),\r\n        weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'D.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY H:mm',\r\n            LLLL : 'dddd, D MMMM YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Днес в] LT',\r\n            nextDay : '[Утре в] LT',\r\n            nextWeek : 'dddd [в] LT',\r\n            lastDay : '[Вчера в] LT',\r\n            lastWeek : function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                    case 3:\r\n                    case 6:\r\n                        return '[В изминалата] dddd [в] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[В изминалия] dddd [в] LT';\r\n                }\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'след %s',\r\n            past : 'преди %s',\r\n            s : 'няколко секунди',\r\n            m : 'минута',\r\n            mm : '%d минути',\r\n            h : 'час',\r\n            hh : '%d часа',\r\n            d : 'ден',\r\n            dd : '%d дни',\r\n            M : 'месец',\r\n            MM : '%d месеца',\r\n            y : 'година',\r\n            yy : '%d години'\r\n        },\r\n        ordinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\r\n        ordinal : function (number) {\r\n            var lastDigit = number % 10,\r\n                last2Digits = number % 100;\r\n            if (number === 0) {\r\n                return number + '-ев';\r\n            } else if (last2Digits === 0) {\r\n                return number + '-ен';\r\n            } else if (last2Digits > 10 && last2Digits < 20) {\r\n                return number + '-ти';\r\n            } else if (lastDigit === 1) {\r\n                return number + '-ви';\r\n            } else if (lastDigit === 2) {\r\n                return number + '-ри';\r\n            } else if (lastDigit === 7 || lastDigit === 8) {\r\n                return number + '-ми';\r\n            } else {\r\n                return number + '-ти';\r\n            }\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return bg;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bg.js\n// module id = 257\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Bengali [bn]\r\n//! author : Kaushik Gandhi : https://github.com/kaushikgandhi\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '১',\r\n        '2': '২',\r\n        '3': '৩',\r\n        '4': '৪',\r\n        '5': '৫',\r\n        '6': '৬',\r\n        '7': '৭',\r\n        '8': '৮',\r\n        '9': '৯',\r\n        '0': '০'\r\n    },\r\n    numberMap = {\r\n        '১': '1',\r\n        '২': '2',\r\n        '৩': '3',\r\n        '৪': '4',\r\n        '৫': '5',\r\n        '৬': '6',\r\n        '৭': '7',\r\n        '৮': '8',\r\n        '৯': '9',\r\n        '০': '0'\r\n    };\r\n\r\n    var bn = moment.defineLocale('bn', {\r\n        months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),\r\n        monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),\r\n        weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),\r\n        weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\r\n        weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'A h:mm সময়',\r\n            LTS : 'A h:mm:ss সময়',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY, A h:mm সময়',\r\n            LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'\r\n        },\r\n        calendar : {\r\n            sameDay : '[আজ] LT',\r\n            nextDay : '[আগামীকাল] LT',\r\n            nextWeek : 'dddd, LT',\r\n            lastDay : '[গতকাল] LT',\r\n            lastWeek : '[গত] dddd, LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s পরে',\r\n            past : '%s আগে',\r\n            s : 'কয়েক সেকেন্ড',\r\n            m : 'এক মিনিট',\r\n            mm : '%d মিনিট',\r\n            h : 'এক ঘন্টা',\r\n            hh : '%d ঘন্টা',\r\n            d : 'এক দিন',\r\n            dd : '%d দিন',\r\n            M : 'এক মাস',\r\n            MM : '%d মাস',\r\n            y : 'এক বছর',\r\n            yy : '%d বছর'\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\r\n                return numberMap[match];\r\n            });\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            });\r\n        },\r\n        meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if ((meridiem === 'রাত' && hour >= 4) ||\r\n                    (meridiem === 'দুপুর' && hour < 5) ||\r\n                    meridiem === 'বিকাল') {\r\n                return hour + 12;\r\n            } else {\r\n                return hour;\r\n            }\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'রাত';\r\n            } else if (hour < 10) {\r\n                return 'সকাল';\r\n            } else if (hour < 17) {\r\n                return 'দুপুর';\r\n            } else if (hour < 20) {\r\n                return 'বিকাল';\r\n            } else {\r\n                return 'রাত';\r\n            }\r\n        },\r\n        week : {\r\n            dow : 0, // Sunday is the first day of the week.\r\n            doy : 6  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return bn;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bn.js\n// module id = 258\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Tibetan [bo]\r\n//! author : Thupten N. Chakrishar : https://github.com/vajradog\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '༡',\r\n        '2': '༢',\r\n        '3': '༣',\r\n        '4': '༤',\r\n        '5': '༥',\r\n        '6': '༦',\r\n        '7': '༧',\r\n        '8': '༨',\r\n        '9': '༩',\r\n        '0': '༠'\r\n    },\r\n    numberMap = {\r\n        '༡': '1',\r\n        '༢': '2',\r\n        '༣': '3',\r\n        '༤': '4',\r\n        '༥': '5',\r\n        '༦': '6',\r\n        '༧': '7',\r\n        '༨': '8',\r\n        '༩': '9',\r\n        '༠': '0'\r\n    };\r\n\r\n    var bo = moment.defineLocale('bo', {\r\n        months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),\r\n        monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),\r\n        weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),\r\n        weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),\r\n        weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'A h:mm',\r\n            LTS : 'A h:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY, A h:mm',\r\n            LLLL : 'dddd, D MMMM YYYY, A h:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[དི་རིང] LT',\r\n            nextDay : '[སང་ཉིན] LT',\r\n            nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',\r\n            lastDay : '[ཁ་སང] LT',\r\n            lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s ལ་',\r\n            past : '%s སྔན་ལ',\r\n            s : 'ལམ་སང',\r\n            m : 'སྐར་མ་གཅིག',\r\n            mm : '%d སྐར་མ',\r\n            h : 'ཆུ་ཚོད་གཅིག',\r\n            hh : '%d ཆུ་ཚོད',\r\n            d : 'ཉིན་གཅིག',\r\n            dd : '%d ཉིན་',\r\n            M : 'ཟླ་བ་གཅིག',\r\n            MM : '%d ཟླ་བ',\r\n            y : 'ལོ་གཅིག',\r\n            yy : '%d ལོ'\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {\r\n                return numberMap[match];\r\n            });\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            });\r\n        },\r\n        meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if ((meridiem === 'མཚན་མོ' && hour >= 4) ||\r\n                    (meridiem === 'ཉིན་གུང' && hour < 5) ||\r\n                    meridiem === 'དགོང་དག') {\r\n                return hour + 12;\r\n            } else {\r\n                return hour;\r\n            }\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'མཚན་མོ';\r\n            } else if (hour < 10) {\r\n                return 'ཞོགས་ཀས';\r\n            } else if (hour < 17) {\r\n                return 'ཉིན་གུང';\r\n            } else if (hour < 20) {\r\n                return 'དགོང་དག';\r\n            } else {\r\n                return 'མཚན་མོ';\r\n            }\r\n        },\r\n        week : {\r\n            dow : 0, // Sunday is the first day of the week.\r\n            doy : 6  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return bo;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bo.js\n// module id = 259\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Breton [br]\r\n//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function relativeTimeWithMutation(number, withoutSuffix, key) {\r\n        var format = {\r\n            'mm': 'munutenn',\r\n            'MM': 'miz',\r\n            'dd': 'devezh'\r\n        };\r\n        return number + ' ' + mutation(format[key], number);\r\n    }\r\n    function specialMutationForYears(number) {\r\n        switch (lastNumber(number)) {\r\n            case 1:\r\n            case 3:\r\n            case 4:\r\n            case 5:\r\n            case 9:\r\n                return number + ' bloaz';\r\n            default:\r\n                return number + ' vloaz';\r\n        }\r\n    }\r\n    function lastNumber(number) {\r\n        if (number > 9) {\r\n            return lastNumber(number % 10);\r\n        }\r\n        return number;\r\n    }\r\n    function mutation(text, number) {\r\n        if (number === 2) {\r\n            return softMutation(text);\r\n        }\r\n        return text;\r\n    }\r\n    function softMutation(text) {\r\n        var mutationTable = {\r\n            'm': 'v',\r\n            'b': 'v',\r\n            'd': 'z'\r\n        };\r\n        if (mutationTable[text.charAt(0)] === undefined) {\r\n            return text;\r\n        }\r\n        return mutationTable[text.charAt(0)] + text.substring(1);\r\n    }\r\n\r\n    var br = moment.defineLocale('br', {\r\n        months : 'Genver_C\\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),\r\n        monthsShort : 'Gen_C\\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),\r\n        weekdays : 'Sul_Lun_Meurzh_Merc\\'her_Yaou_Gwener_Sadorn'.split('_'),\r\n        weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),\r\n        weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'h[e]mm A',\r\n            LTS : 'h[e]mm:ss A',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D [a viz] MMMM YYYY',\r\n            LLL : 'D [a viz] MMMM YYYY h[e]mm A',\r\n            LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Hiziv da] LT',\r\n            nextDay : '[Warc\\'hoazh da] LT',\r\n            nextWeek : 'dddd [da] LT',\r\n            lastDay : '[Dec\\'h da] LT',\r\n            lastWeek : 'dddd [paset da] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'a-benn %s',\r\n            past : '%s \\'zo',\r\n            s : 'un nebeud segondennoù',\r\n            m : 'ur vunutenn',\r\n            mm : relativeTimeWithMutation,\r\n            h : 'un eur',\r\n            hh : '%d eur',\r\n            d : 'un devezh',\r\n            dd : relativeTimeWithMutation,\r\n            M : 'ur miz',\r\n            MM : relativeTimeWithMutation,\r\n            y : 'ur bloaz',\r\n            yy : specialMutationForYears\r\n        },\r\n        ordinalParse: /\\d{1,2}(añ|vet)/,\r\n        ordinal : function (number) {\r\n            var output = (number === 1) ? 'añ' : 'vet';\r\n            return number + output;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return br;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/br.js\n// module id = 260\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Bosnian [bs]\r\n//! author : Nedim Cholich : https://github.com/frontyard\r\n//! based on (hr) translation by Bojan Marković\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function translate(number, withoutSuffix, key) {\r\n        var result = number + ' ';\r\n        switch (key) {\r\n            case 'm':\r\n                return withoutSuffix ? 'jedna minuta' : 'jedne minute';\r\n            case 'mm':\r\n                if (number === 1) {\r\n                    result += 'minuta';\r\n                } else if (number === 2 || number === 3 || number === 4) {\r\n                    result += 'minute';\r\n                } else {\r\n                    result += 'minuta';\r\n                }\r\n                return result;\r\n            case 'h':\r\n                return withoutSuffix ? 'jedan sat' : 'jednog sata';\r\n            case 'hh':\r\n                if (number === 1) {\r\n                    result += 'sat';\r\n                } else if (number === 2 || number === 3 || number === 4) {\r\n                    result += 'sata';\r\n                } else {\r\n                    result += 'sati';\r\n                }\r\n                return result;\r\n            case 'dd':\r\n                if (number === 1) {\r\n                    result += 'dan';\r\n                } else {\r\n                    result += 'dana';\r\n                }\r\n                return result;\r\n            case 'MM':\r\n                if (number === 1) {\r\n                    result += 'mjesec';\r\n                } else if (number === 2 || number === 3 || number === 4) {\r\n                    result += 'mjeseca';\r\n                } else {\r\n                    result += 'mjeseci';\r\n                }\r\n                return result;\r\n            case 'yy':\r\n                if (number === 1) {\r\n                    result += 'godina';\r\n                } else if (number === 2 || number === 3 || number === 4) {\r\n                    result += 'godine';\r\n                } else {\r\n                    result += 'godina';\r\n                }\r\n                return result;\r\n        }\r\n    }\r\n\r\n    var bs = moment.defineLocale('bs', {\r\n        months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),\r\n        monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),\r\n        monthsParseExact: true,\r\n        weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\r\n        weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\r\n        weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY H:mm',\r\n            LLLL : 'dddd, D. MMMM YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay  : '[danas u] LT',\r\n            nextDay  : '[sutra u] LT',\r\n            nextWeek : function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[u] [nedjelju] [u] LT';\r\n                    case 3:\r\n                        return '[u] [srijedu] [u] LT';\r\n                    case 6:\r\n                        return '[u] [subotu] [u] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[u] dddd [u] LT';\r\n                }\r\n            },\r\n            lastDay  : '[jučer u] LT',\r\n            lastWeek : function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                    case 3:\r\n                        return '[prošlu] dddd [u] LT';\r\n                    case 6:\r\n                        return '[prošle] [subote] [u] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[prošli] dddd [u] LT';\r\n                }\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'za %s',\r\n            past   : 'prije %s',\r\n            s      : 'par sekundi',\r\n            m      : translate,\r\n            mm     : translate,\r\n            h      : translate,\r\n            hh     : translate,\r\n            d      : 'dan',\r\n            dd     : translate,\r\n            M      : 'mjesec',\r\n            MM     : translate,\r\n            y      : 'godinu',\r\n            yy     : translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return bs;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/bs.js\n// module id = 261\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Catalan [ca]\r\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var ca = moment.defineLocale('ca', {\r\n        months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),\r\n        monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),\r\n        weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),\r\n        weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY H:mm',\r\n            LLLL : 'dddd D MMMM YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : function () {\r\n                return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';\r\n            },\r\n            nextDay : function () {\r\n                return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';\r\n            },\r\n            nextWeek : function () {\r\n                return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';\r\n            },\r\n            lastDay : function () {\r\n                return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';\r\n            },\r\n            lastWeek : function () {\r\n                return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'en %s',\r\n            past : 'fa %s',\r\n            s : 'uns segons',\r\n            m : 'un minut',\r\n            mm : '%d minuts',\r\n            h : 'una hora',\r\n            hh : '%d hores',\r\n            d : 'un dia',\r\n            dd : '%d dies',\r\n            M : 'un mes',\r\n            MM : '%d mesos',\r\n            y : 'un any',\r\n            yy : '%d anys'\r\n        },\r\n        ordinalParse: /\\d{1,2}(r|n|t|è|a)/,\r\n        ordinal : function (number, period) {\r\n            var output = (number === 1) ? 'r' :\r\n                (number === 2) ? 'n' :\r\n                (number === 3) ? 'r' :\r\n                (number === 4) ? 't' : 'è';\r\n            if (period === 'w' || period === 'W') {\r\n                output = 'a';\r\n            }\r\n            return number + output;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ca;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ca.js\n// module id = 262\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Czech [cs]\r\n//! author : petrbela : https://github.com/petrbela\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),\r\n        monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');\r\n    function plural(n) {\r\n        return (n > 1) && (n < 5) && (~~(n / 10) !== 1);\r\n    }\r\n    function translate(number, withoutSuffix, key, isFuture) {\r\n        var result = number + ' ';\r\n        switch (key) {\r\n            case 's':  // a few seconds / in a few seconds / a few seconds ago\r\n                return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';\r\n            case 'm':  // a minute / in a minute / a minute ago\r\n                return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');\r\n            case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\r\n                if (withoutSuffix || isFuture) {\r\n                    return result + (plural(number) ? 'minuty' : 'minut');\r\n                } else {\r\n                    return result + 'minutami';\r\n                }\r\n                break;\r\n            case 'h':  // an hour / in an hour / an hour ago\r\n                return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');\r\n            case 'hh': // 9 hours / in 9 hours / 9 hours ago\r\n                if (withoutSuffix || isFuture) {\r\n                    return result + (plural(number) ? 'hodiny' : 'hodin');\r\n                } else {\r\n                    return result + 'hodinami';\r\n                }\r\n                break;\r\n            case 'd':  // a day / in a day / a day ago\r\n                return (withoutSuffix || isFuture) ? 'den' : 'dnem';\r\n            case 'dd': // 9 days / in 9 days / 9 days ago\r\n                if (withoutSuffix || isFuture) {\r\n                    return result + (plural(number) ? 'dny' : 'dní');\r\n                } else {\r\n                    return result + 'dny';\r\n                }\r\n                break;\r\n            case 'M':  // a month / in a month / a month ago\r\n                return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';\r\n            case 'MM': // 9 months / in 9 months / 9 months ago\r\n                if (withoutSuffix || isFuture) {\r\n                    return result + (plural(number) ? 'měsíce' : 'měsíců');\r\n                } else {\r\n                    return result + 'měsíci';\r\n                }\r\n                break;\r\n            case 'y':  // a year / in a year / a year ago\r\n                return (withoutSuffix || isFuture) ? 'rok' : 'rokem';\r\n            case 'yy': // 9 years / in 9 years / 9 years ago\r\n                if (withoutSuffix || isFuture) {\r\n                    return result + (plural(number) ? 'roky' : 'let');\r\n                } else {\r\n                    return result + 'lety';\r\n                }\r\n                break;\r\n        }\r\n    }\r\n\r\n    var cs = moment.defineLocale('cs', {\r\n        months : months,\r\n        monthsShort : monthsShort,\r\n        monthsParse : (function (months, monthsShort) {\r\n            var i, _monthsParse = [];\r\n            for (i = 0; i < 12; i++) {\r\n                // use custom parser to solve problem with July (červenec)\r\n                _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');\r\n            }\r\n            return _monthsParse;\r\n        }(months, monthsShort)),\r\n        shortMonthsParse : (function (monthsShort) {\r\n            var i, _shortMonthsParse = [];\r\n            for (i = 0; i < 12; i++) {\r\n                _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');\r\n            }\r\n            return _shortMonthsParse;\r\n        }(monthsShort)),\r\n        longMonthsParse : (function (months) {\r\n            var i, _longMonthsParse = [];\r\n            for (i = 0; i < 12; i++) {\r\n                _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');\r\n            }\r\n            return _longMonthsParse;\r\n        }(months)),\r\n        weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),\r\n        weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),\r\n        weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),\r\n        longDateFormat : {\r\n            LT: 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY H:mm',\r\n            LLLL : 'dddd D. MMMM YYYY H:mm',\r\n            l : 'D. M. YYYY'\r\n        },\r\n        calendar : {\r\n            sameDay: '[dnes v] LT',\r\n            nextDay: '[zítra v] LT',\r\n            nextWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[v neděli v] LT';\r\n                    case 1:\r\n                    case 2:\r\n                        return '[v] dddd [v] LT';\r\n                    case 3:\r\n                        return '[ve středu v] LT';\r\n                    case 4:\r\n                        return '[ve čtvrtek v] LT';\r\n                    case 5:\r\n                        return '[v pátek v] LT';\r\n                    case 6:\r\n                        return '[v sobotu v] LT';\r\n                }\r\n            },\r\n            lastDay: '[včera v] LT',\r\n            lastWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[minulou neděli v] LT';\r\n                    case 1:\r\n                    case 2:\r\n                        return '[minulé] dddd [v] LT';\r\n                    case 3:\r\n                        return '[minulou středu v] LT';\r\n                    case 4:\r\n                    case 5:\r\n                        return '[minulý] dddd [v] LT';\r\n                    case 6:\r\n                        return '[minulou sobotu v] LT';\r\n                }\r\n            },\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'za %s',\r\n            past : 'před %s',\r\n            s : translate,\r\n            m : translate,\r\n            mm : translate,\r\n            h : translate,\r\n            hh : translate,\r\n            d : translate,\r\n            dd : translate,\r\n            M : translate,\r\n            MM : translate,\r\n            y : translate,\r\n            yy : translate\r\n        },\r\n        ordinalParse : /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return cs;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/cs.js\n// module id = 263\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Chuvash [cv]\r\n//! author : Anatoly Mironov : https://github.com/mirontoli\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var cv = moment.defineLocale('cv', {\r\n        months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),\r\n        monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),\r\n        weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),\r\n        weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),\r\n        weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD-MM-YYYY',\r\n            LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',\r\n            LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\r\n            LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Паян] LT [сехетре]',\r\n            nextDay: '[Ыран] LT [сехетре]',\r\n            lastDay: '[Ӗнер] LT [сехетре]',\r\n            nextWeek: '[Ҫитес] dddd LT [сехетре]',\r\n            lastWeek: '[Иртнӗ] dddd LT [сехетре]',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : function (output) {\r\n                var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';\r\n                return output + affix;\r\n            },\r\n            past : '%s каялла',\r\n            s : 'пӗр-ик ҫеккунт',\r\n            m : 'пӗр минут',\r\n            mm : '%d минут',\r\n            h : 'пӗр сехет',\r\n            hh : '%d сехет',\r\n            d : 'пӗр кун',\r\n            dd : '%d кун',\r\n            M : 'пӗр уйӑх',\r\n            MM : '%d уйӑх',\r\n            y : 'пӗр ҫул',\r\n            yy : '%d ҫул'\r\n        },\r\n        ordinalParse: /\\d{1,2}-мӗш/,\r\n        ordinal : '%d-мӗш',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return cv;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/cv.js\n// module id = 264\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Welsh [cy]\r\n//! author : Robert Allen : https://github.com/robgallen\r\n//! author : https://github.com/ryangreaves\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var cy = moment.defineLocale('cy', {\r\n        months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),\r\n        monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),\r\n        weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),\r\n        weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),\r\n        weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),\r\n        weekdaysParseExact : true,\r\n        // time formats are the same as en-gb\r\n        longDateFormat: {\r\n            LT: 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L: 'DD/MM/YYYY',\r\n            LL: 'D MMMM YYYY',\r\n            LLL: 'D MMMM YYYY HH:mm',\r\n            LLLL: 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar: {\r\n            sameDay: '[Heddiw am] LT',\r\n            nextDay: '[Yfory am] LT',\r\n            nextWeek: 'dddd [am] LT',\r\n            lastDay: '[Ddoe am] LT',\r\n            lastWeek: 'dddd [diwethaf am] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime: {\r\n            future: 'mewn %s',\r\n            past: '%s yn ôl',\r\n            s: 'ychydig eiliadau',\r\n            m: 'munud',\r\n            mm: '%d munud',\r\n            h: 'awr',\r\n            hh: '%d awr',\r\n            d: 'diwrnod',\r\n            dd: '%d diwrnod',\r\n            M: 'mis',\r\n            MM: '%d mis',\r\n            y: 'blwyddyn',\r\n            yy: '%d flynedd'\r\n        },\r\n        ordinalParse: /\\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,\r\n        // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh\r\n        ordinal: function (number) {\r\n            var b = number,\r\n                output = '',\r\n                lookup = [\r\n                    '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed\r\n                    'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed\r\n                ];\r\n            if (b > 20) {\r\n                if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {\r\n                    output = 'fed'; // not 30ain, 70ain or 90ain\r\n                } else {\r\n                    output = 'ain';\r\n                }\r\n            } else if (b > 0) {\r\n                output = lookup[b];\r\n            }\r\n            return number + output;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return cy;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/cy.js\n// module id = 265\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Danish [da]\r\n//! author : Ulrik Nielsen : https://github.com/mrbase\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var da = moment.defineLocale('da', {\r\n        months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),\r\n        monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\r\n        weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\r\n        weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),\r\n        weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY HH:mm',\r\n            LLLL : 'dddd [d.] D. MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[I dag kl.] LT',\r\n            nextDay : '[I morgen kl.] LT',\r\n            nextWeek : 'dddd [kl.] LT',\r\n            lastDay : '[I går kl.] LT',\r\n            lastWeek : '[sidste] dddd [kl] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'om %s',\r\n            past : '%s siden',\r\n            s : 'få sekunder',\r\n            m : 'et minut',\r\n            mm : '%d minutter',\r\n            h : 'en time',\r\n            hh : '%d timer',\r\n            d : 'en dag',\r\n            dd : '%d dage',\r\n            M : 'en måned',\r\n            MM : '%d måneder',\r\n            y : 'et år',\r\n            yy : '%d år'\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return da;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/da.js\n// module id = 266\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : German (Austria) [de-at]\r\n//! author : lluchs : https://github.com/lluchs\r\n//! author: Menelion Elensúle: https://github.com/Oire\r\n//! author : Martin Groller : https://github.com/MadMG\r\n//! author : Mikolaj Dadela : https://github.com/mik01aj\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\r\n        var format = {\r\n            'm': ['eine Minute', 'einer Minute'],\r\n            'h': ['eine Stunde', 'einer Stunde'],\r\n            'd': ['ein Tag', 'einem Tag'],\r\n            'dd': [number + ' Tage', number + ' Tagen'],\r\n            'M': ['ein Monat', 'einem Monat'],\r\n            'MM': [number + ' Monate', number + ' Monaten'],\r\n            'y': ['ein Jahr', 'einem Jahr'],\r\n            'yy': [number + ' Jahre', number + ' Jahren']\r\n        };\r\n        return withoutSuffix ? format[key][0] : format[key][1];\r\n    }\r\n\r\n    var de_at = moment.defineLocale('de-at', {\r\n        months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\r\n        monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),\r\n        weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\r\n        weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT: 'HH:mm',\r\n            LTS: 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D. MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[heute um] LT [Uhr]',\r\n            sameElse: 'L',\r\n            nextDay: '[morgen um] LT [Uhr]',\r\n            nextWeek: 'dddd [um] LT [Uhr]',\r\n            lastDay: '[gestern um] LT [Uhr]',\r\n            lastWeek: '[letzten] dddd [um] LT [Uhr]'\r\n        },\r\n        relativeTime : {\r\n            future : 'in %s',\r\n            past : 'vor %s',\r\n            s : 'ein paar Sekunden',\r\n            m : processRelativeTime,\r\n            mm : '%d Minuten',\r\n            h : processRelativeTime,\r\n            hh : '%d Stunden',\r\n            d : processRelativeTime,\r\n            dd : processRelativeTime,\r\n            M : processRelativeTime,\r\n            MM : processRelativeTime,\r\n            y : processRelativeTime,\r\n            yy : processRelativeTime\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return de_at;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/de-at.js\n// module id = 267\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : German [de]\r\n//! author : lluchs : https://github.com/lluchs\r\n//! author: Menelion Elensúle: https://github.com/Oire\r\n//! author : Mikolaj Dadela : https://github.com/mik01aj\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\r\n        var format = {\r\n            'm': ['eine Minute', 'einer Minute'],\r\n            'h': ['eine Stunde', 'einer Stunde'],\r\n            'd': ['ein Tag', 'einem Tag'],\r\n            'dd': [number + ' Tage', number + ' Tagen'],\r\n            'M': ['ein Monat', 'einem Monat'],\r\n            'MM': [number + ' Monate', number + ' Monaten'],\r\n            'y': ['ein Jahr', 'einem Jahr'],\r\n            'yy': [number + ' Jahre', number + ' Jahren']\r\n        };\r\n        return withoutSuffix ? format[key][0] : format[key][1];\r\n    }\r\n\r\n    var de = moment.defineLocale('de', {\r\n        months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\r\n        monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),\r\n        weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\r\n        weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT: 'HH:mm',\r\n            LTS: 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D. MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[heute um] LT [Uhr]',\r\n            sameElse: 'L',\r\n            nextDay: '[morgen um] LT [Uhr]',\r\n            nextWeek: 'dddd [um] LT [Uhr]',\r\n            lastDay: '[gestern um] LT [Uhr]',\r\n            lastWeek: '[letzten] dddd [um] LT [Uhr]'\r\n        },\r\n        relativeTime : {\r\n            future : 'in %s',\r\n            past : 'vor %s',\r\n            s : 'ein paar Sekunden',\r\n            m : processRelativeTime,\r\n            mm : '%d Minuten',\r\n            h : processRelativeTime,\r\n            hh : '%d Stunden',\r\n            d : processRelativeTime,\r\n            dd : processRelativeTime,\r\n            M : processRelativeTime,\r\n            MM : processRelativeTime,\r\n            y : processRelativeTime,\r\n            yy : processRelativeTime\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return de;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/de.js\n// module id = 268\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Maldivian [dv]\r\n//! author : Jawish Hameed : https://github.com/jawish\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var months = [\r\n        'ޖެނުއަރީ',\r\n        'ފެބްރުއަރީ',\r\n        'މާރިޗު',\r\n        'އޭޕްރީލު',\r\n        'މޭ',\r\n        'ޖޫން',\r\n        'ޖުލައި',\r\n        'އޯގަސްޓު',\r\n        'ސެޕްޓެމްބަރު',\r\n        'އޮކްޓޯބަރު',\r\n        'ނޮވެމްބަރު',\r\n        'ޑިސެމްބަރު'\r\n    ], weekdays = [\r\n        'އާދިއްތަ',\r\n        'ހޯމަ',\r\n        'އަންގާރަ',\r\n        'ބުދަ',\r\n        'ބުރާސްފަތި',\r\n        'ހުކުރު',\r\n        'ހޮނިހިރު'\r\n    ];\r\n\r\n    var dv = moment.defineLocale('dv', {\r\n        months : months,\r\n        monthsShort : months,\r\n        weekdays : weekdays,\r\n        weekdaysShort : weekdays,\r\n        weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),\r\n        longDateFormat : {\r\n\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'D/M/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        meridiemParse: /މކ|މފ/,\r\n        isPM : function (input) {\r\n            return 'މފ' === input;\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 12) {\r\n                return 'މކ';\r\n            } else {\r\n                return 'މފ';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[މިއަދު] LT',\r\n            nextDay : '[މާދަމާ] LT',\r\n            nextWeek : 'dddd LT',\r\n            lastDay : '[އިއްޔެ] LT',\r\n            lastWeek : '[ފާއިތުވި] dddd LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'ތެރޭގައި %s',\r\n            past : 'ކުރިން %s',\r\n            s : 'ސިކުންތުކޮޅެއް',\r\n            m : 'މިނިޓެއް',\r\n            mm : 'މިނިޓު %d',\r\n            h : 'ގަޑިއިރެއް',\r\n            hh : 'ގަޑިއިރު %d',\r\n            d : 'ދުވަހެއް',\r\n            dd : 'ދުވަސް %d',\r\n            M : 'މަހެއް',\r\n            MM : 'މަސް %d',\r\n            y : 'އަހަރެއް',\r\n            yy : 'އަހަރު %d'\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/،/g, ',');\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/,/g, '،');\r\n        },\r\n        week : {\r\n            dow : 7,  // Sunday is the first day of the week.\r\n            doy : 12  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return dv;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/dv.js\n// module id = 269\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Greek [el]\r\n//! author : Aggelos Karalias : https://github.com/mehiel\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n    function isFunction(input) {\r\n        return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';\r\n    }\r\n\r\n\r\n    var el = moment.defineLocale('el', {\r\n        monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),\r\n        monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),\r\n        months : function (momentToFormat, format) {\r\n            if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'\r\n                return this._monthsGenitiveEl[momentToFormat.month()];\r\n            } else {\r\n                return this._monthsNominativeEl[momentToFormat.month()];\r\n            }\r\n        },\r\n        monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),\r\n        weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),\r\n        weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),\r\n        weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours > 11) {\r\n                return isLower ? 'μμ' : 'ΜΜ';\r\n            } else {\r\n                return isLower ? 'πμ' : 'ΠΜ';\r\n            }\r\n        },\r\n        isPM : function (input) {\r\n            return ((input + '').toLowerCase()[0] === 'μ');\r\n        },\r\n        meridiemParse : /[ΠΜ]\\.?Μ?\\.?/i,\r\n        longDateFormat : {\r\n            LT : 'h:mm A',\r\n            LTS : 'h:mm:ss A',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY h:mm A',\r\n            LLLL : 'dddd, D MMMM YYYY h:mm A'\r\n        },\r\n        calendarEl : {\r\n            sameDay : '[Σήμερα {}] LT',\r\n            nextDay : '[Αύριο {}] LT',\r\n            nextWeek : 'dddd [{}] LT',\r\n            lastDay : '[Χθες {}] LT',\r\n            lastWeek : function () {\r\n                switch (this.day()) {\r\n                    case 6:\r\n                        return '[το προηγούμενο] dddd [{}] LT';\r\n                    default:\r\n                        return '[την προηγούμενη] dddd [{}] LT';\r\n                }\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        calendar : function (key, mom) {\r\n            var output = this._calendarEl[key],\r\n                hours = mom && mom.hours();\r\n            if (isFunction(output)) {\r\n                output = output.apply(mom);\r\n            }\r\n            return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));\r\n        },\r\n        relativeTime : {\r\n            future : 'σε %s',\r\n            past : '%s πριν',\r\n            s : 'λίγα δευτερόλεπτα',\r\n            m : 'ένα λεπτό',\r\n            mm : '%d λεπτά',\r\n            h : 'μία ώρα',\r\n            hh : '%d ώρες',\r\n            d : 'μία μέρα',\r\n            dd : '%d μέρες',\r\n            M : 'ένας μήνας',\r\n            MM : '%d μήνες',\r\n            y : 'ένας χρόνος',\r\n            yy : '%d χρόνια'\r\n        },\r\n        ordinalParse: /\\d{1,2}η/,\r\n        ordinal: '%dη',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return el;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/el.js\n// module id = 270\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : English (Australia) [en-au]\r\n//! author : Jared Morse : https://github.com/jarcoal\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var en_au = moment.defineLocale('en-au', {\r\n        months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\r\n        weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\r\n        weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\r\n        weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'h:mm A',\r\n            LTS : 'h:mm:ss A',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY h:mm A',\r\n            LLLL : 'dddd, D MMMM YYYY h:mm A'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Today at] LT',\r\n            nextDay : '[Tomorrow at] LT',\r\n            nextWeek : 'dddd [at] LT',\r\n            lastDay : '[Yesterday at] LT',\r\n            lastWeek : '[Last] dddd [at] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'in %s',\r\n            past : '%s ago',\r\n            s : 'a few seconds',\r\n            m : 'a minute',\r\n            mm : '%d minutes',\r\n            h : 'an hour',\r\n            hh : '%d hours',\r\n            d : 'a day',\r\n            dd : '%d days',\r\n            M : 'a month',\r\n            MM : '%d months',\r\n            y : 'a year',\r\n            yy : '%d years'\r\n        },\r\n        ordinalParse: /\\d{1,2}(st|nd|rd|th)/,\r\n        ordinal : function (number) {\r\n            var b = number % 10,\r\n                output = (~~(number % 100 / 10) === 1) ? 'th' :\r\n                (b === 1) ? 'st' :\r\n                (b === 2) ? 'nd' :\r\n                (b === 3) ? 'rd' : 'th';\r\n            return number + output;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return en_au;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-au.js\n// module id = 271\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : English (Canada) [en-ca]\r\n//! author : Jonathan Abourbih : https://github.com/jonbca\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var en_ca = moment.defineLocale('en-ca', {\r\n        months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\r\n        weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\r\n        weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\r\n        weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'h:mm A',\r\n            LTS : 'h:mm:ss A',\r\n            L : 'YYYY-MM-DD',\r\n            LL : 'MMMM D, YYYY',\r\n            LLL : 'MMMM D, YYYY h:mm A',\r\n            LLLL : 'dddd, MMMM D, YYYY h:mm A'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Today at] LT',\r\n            nextDay : '[Tomorrow at] LT',\r\n            nextWeek : 'dddd [at] LT',\r\n            lastDay : '[Yesterday at] LT',\r\n            lastWeek : '[Last] dddd [at] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'in %s',\r\n            past : '%s ago',\r\n            s : 'a few seconds',\r\n            m : 'a minute',\r\n            mm : '%d minutes',\r\n            h : 'an hour',\r\n            hh : '%d hours',\r\n            d : 'a day',\r\n            dd : '%d days',\r\n            M : 'a month',\r\n            MM : '%d months',\r\n            y : 'a year',\r\n            yy : '%d years'\r\n        },\r\n        ordinalParse: /\\d{1,2}(st|nd|rd|th)/,\r\n        ordinal : function (number) {\r\n            var b = number % 10,\r\n                output = (~~(number % 100 / 10) === 1) ? 'th' :\r\n                (b === 1) ? 'st' :\r\n                (b === 2) ? 'nd' :\r\n                (b === 3) ? 'rd' : 'th';\r\n            return number + output;\r\n        }\r\n    });\r\n\r\n    return en_ca;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-ca.js\n// module id = 272\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : English (United Kingdom) [en-gb]\r\n//! author : Chris Gedrim : https://github.com/chrisgedrim\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var en_gb = moment.defineLocale('en-gb', {\r\n        months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\r\n        weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\r\n        weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\r\n        weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Today at] LT',\r\n            nextDay : '[Tomorrow at] LT',\r\n            nextWeek : 'dddd [at] LT',\r\n            lastDay : '[Yesterday at] LT',\r\n            lastWeek : '[Last] dddd [at] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'in %s',\r\n            past : '%s ago',\r\n            s : 'a few seconds',\r\n            m : 'a minute',\r\n            mm : '%d minutes',\r\n            h : 'an hour',\r\n            hh : '%d hours',\r\n            d : 'a day',\r\n            dd : '%d days',\r\n            M : 'a month',\r\n            MM : '%d months',\r\n            y : 'a year',\r\n            yy : '%d years'\r\n        },\r\n        ordinalParse: /\\d{1,2}(st|nd|rd|th)/,\r\n        ordinal : function (number) {\r\n            var b = number % 10,\r\n                output = (~~(number % 100 / 10) === 1) ? 'th' :\r\n                (b === 1) ? 'st' :\r\n                (b === 2) ? 'nd' :\r\n                (b === 3) ? 'rd' : 'th';\r\n            return number + output;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return en_gb;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-gb.js\n// module id = 273\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : English (Ireland) [en-ie]\r\n//! author : Chris Cartlidge : https://github.com/chriscartlidge\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var en_ie = moment.defineLocale('en-ie', {\r\n        months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\r\n        weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\r\n        weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\r\n        weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD-MM-YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Today at] LT',\r\n            nextDay : '[Tomorrow at] LT',\r\n            nextWeek : 'dddd [at] LT',\r\n            lastDay : '[Yesterday at] LT',\r\n            lastWeek : '[Last] dddd [at] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'in %s',\r\n            past : '%s ago',\r\n            s : 'a few seconds',\r\n            m : 'a minute',\r\n            mm : '%d minutes',\r\n            h : 'an hour',\r\n            hh : '%d hours',\r\n            d : 'a day',\r\n            dd : '%d days',\r\n            M : 'a month',\r\n            MM : '%d months',\r\n            y : 'a year',\r\n            yy : '%d years'\r\n        },\r\n        ordinalParse: /\\d{1,2}(st|nd|rd|th)/,\r\n        ordinal : function (number) {\r\n            var b = number % 10,\r\n                output = (~~(number % 100 / 10) === 1) ? 'th' :\r\n                (b === 1) ? 'st' :\r\n                (b === 2) ? 'nd' :\r\n                (b === 3) ? 'rd' : 'th';\r\n            return number + output;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return en_ie;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-ie.js\n// module id = 274\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : English (New Zealand) [en-nz]\r\n//! author : Luke McGregor : https://github.com/lukemcgregor\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var en_nz = moment.defineLocale('en-nz', {\r\n        months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\r\n        weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\r\n        weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\r\n        weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'h:mm A',\r\n            LTS : 'h:mm:ss A',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY h:mm A',\r\n            LLLL : 'dddd, D MMMM YYYY h:mm A'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Today at] LT',\r\n            nextDay : '[Tomorrow at] LT',\r\n            nextWeek : 'dddd [at] LT',\r\n            lastDay : '[Yesterday at] LT',\r\n            lastWeek : '[Last] dddd [at] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'in %s',\r\n            past : '%s ago',\r\n            s : 'a few seconds',\r\n            m : 'a minute',\r\n            mm : '%d minutes',\r\n            h : 'an hour',\r\n            hh : '%d hours',\r\n            d : 'a day',\r\n            dd : '%d days',\r\n            M : 'a month',\r\n            MM : '%d months',\r\n            y : 'a year',\r\n            yy : '%d years'\r\n        },\r\n        ordinalParse: /\\d{1,2}(st|nd|rd|th)/,\r\n        ordinal : function (number) {\r\n            var b = number % 10,\r\n                output = (~~(number % 100 / 10) === 1) ? 'th' :\r\n                (b === 1) ? 'st' :\r\n                (b === 2) ? 'nd' :\r\n                (b === 3) ? 'rd' : 'th';\r\n            return number + output;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return en_nz;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/en-nz.js\n// module id = 275\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Esperanto [eo]\r\n//! author : Colin Dean : https://github.com/colindean\r\n//! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.\r\n//!          Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var eo = moment.defineLocale('eo', {\r\n        months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),\r\n        monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),\r\n        weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),\r\n        weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),\r\n        weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'YYYY-MM-DD',\r\n            LL : 'D[-an de] MMMM, YYYY',\r\n            LLL : 'D[-an de] MMMM, YYYY HH:mm',\r\n            LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'\r\n        },\r\n        meridiemParse: /[ap]\\.t\\.m/i,\r\n        isPM: function (input) {\r\n            return input.charAt(0).toLowerCase() === 'p';\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours > 11) {\r\n                return isLower ? 'p.t.m.' : 'P.T.M.';\r\n            } else {\r\n                return isLower ? 'a.t.m.' : 'A.T.M.';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[Hodiaŭ je] LT',\r\n            nextDay : '[Morgaŭ je] LT',\r\n            nextWeek : 'dddd [je] LT',\r\n            lastDay : '[Hieraŭ je] LT',\r\n            lastWeek : '[pasinta] dddd [je] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'je %s',\r\n            past : 'antaŭ %s',\r\n            s : 'sekundoj',\r\n            m : 'minuto',\r\n            mm : '%d minutoj',\r\n            h : 'horo',\r\n            hh : '%d horoj',\r\n            d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo\r\n            dd : '%d tagoj',\r\n            M : 'monato',\r\n            MM : '%d monatoj',\r\n            y : 'jaro',\r\n            yy : '%d jaroj'\r\n        },\r\n        ordinalParse: /\\d{1,2}a/,\r\n        ordinal : '%da',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return eo;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/eo.js\n// module id = 276\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Spanish (Dominican Republic) [es-do]\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\r\n        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');\r\n\r\n    var es_do = moment.defineLocale('es-do', {\r\n        months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\r\n        monthsShort : function (m, format) {\r\n            if (/-MMM-/.test(format)) {\r\n                return monthsShort[m.month()];\r\n            } else {\r\n                return monthsShortDot[m.month()];\r\n            }\r\n        },\r\n        monthsParseExact : true,\r\n        weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\r\n        weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\r\n        weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'h:mm A',\r\n            LTS : 'h:mm:ss A',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D [de] MMMM [de] YYYY',\r\n            LLL : 'D [de] MMMM [de] YYYY h:mm A',\r\n            LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'\r\n        },\r\n        calendar : {\r\n            sameDay : function () {\r\n                return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n            },\r\n            nextDay : function () {\r\n                return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n            },\r\n            nextWeek : function () {\r\n                return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n            },\r\n            lastDay : function () {\r\n                return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n            },\r\n            lastWeek : function () {\r\n                return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'en %s',\r\n            past : 'hace %s',\r\n            s : 'unos segundos',\r\n            m : 'un minuto',\r\n            mm : '%d minutos',\r\n            h : 'una hora',\r\n            hh : '%d horas',\r\n            d : 'un día',\r\n            dd : '%d días',\r\n            M : 'un mes',\r\n            MM : '%d meses',\r\n            y : 'un año',\r\n            yy : '%d años'\r\n        },\r\n        ordinalParse : /\\d{1,2}º/,\r\n        ordinal : '%dº',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return es_do;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/es-do.js\n// module id = 277\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Spanish [es]\r\n//! author : Julio Napurí : https://github.com/julionc\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\r\n        monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');\r\n\r\n    var es = moment.defineLocale('es', {\r\n        months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\r\n        monthsShort : function (m, format) {\r\n            if (/-MMM-/.test(format)) {\r\n                return monthsShort[m.month()];\r\n            } else {\r\n                return monthsShortDot[m.month()];\r\n            }\r\n        },\r\n        monthsParseExact : true,\r\n        weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\r\n        weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\r\n        weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D [de] MMMM [de] YYYY',\r\n            LLL : 'D [de] MMMM [de] YYYY H:mm',\r\n            LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : function () {\r\n                return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n            },\r\n            nextDay : function () {\r\n                return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n            },\r\n            nextWeek : function () {\r\n                return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n            },\r\n            lastDay : function () {\r\n                return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n            },\r\n            lastWeek : function () {\r\n                return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'en %s',\r\n            past : 'hace %s',\r\n            s : 'unos segundos',\r\n            m : 'un minuto',\r\n            mm : '%d minutos',\r\n            h : 'una hora',\r\n            hh : '%d horas',\r\n            d : 'un día',\r\n            dd : '%d días',\r\n            M : 'un mes',\r\n            MM : '%d meses',\r\n            y : 'un año',\r\n            yy : '%d años'\r\n        },\r\n        ordinalParse : /\\d{1,2}º/,\r\n        ordinal : '%dº',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return es;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/es.js\n// module id = 278\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Estonian [et]\r\n//! author : Henry Kehlmann : https://github.com/madhenry\r\n//! improvements : Illimar Tambek : https://github.com/ragulka\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\r\n        var format = {\r\n            's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],\r\n            'm' : ['ühe minuti', 'üks minut'],\r\n            'mm': [number + ' minuti', number + ' minutit'],\r\n            'h' : ['ühe tunni', 'tund aega', 'üks tund'],\r\n            'hh': [number + ' tunni', number + ' tundi'],\r\n            'd' : ['ühe päeva', 'üks päev'],\r\n            'M' : ['kuu aja', 'kuu aega', 'üks kuu'],\r\n            'MM': [number + ' kuu', number + ' kuud'],\r\n            'y' : ['ühe aasta', 'aasta', 'üks aasta'],\r\n            'yy': [number + ' aasta', number + ' aastat']\r\n        };\r\n        if (withoutSuffix) {\r\n            return format[key][2] ? format[key][2] : format[key][1];\r\n        }\r\n        return isFuture ? format[key][0] : format[key][1];\r\n    }\r\n\r\n    var et = moment.defineLocale('et', {\r\n        months        : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),\r\n        monthsShort   : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),\r\n        weekdays      : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),\r\n        weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),\r\n        weekdaysMin   : 'P_E_T_K_N_R_L'.split('_'),\r\n        longDateFormat : {\r\n            LT   : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L    : 'DD.MM.YYYY',\r\n            LL   : 'D. MMMM YYYY',\r\n            LLL  : 'D. MMMM YYYY H:mm',\r\n            LLLL : 'dddd, D. MMMM YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay  : '[Täna,] LT',\r\n            nextDay  : '[Homme,] LT',\r\n            nextWeek : '[Järgmine] dddd LT',\r\n            lastDay  : '[Eile,] LT',\r\n            lastWeek : '[Eelmine] dddd LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s pärast',\r\n            past   : '%s tagasi',\r\n            s      : processRelativeTime,\r\n            m      : processRelativeTime,\r\n            mm     : processRelativeTime,\r\n            h      : processRelativeTime,\r\n            hh     : processRelativeTime,\r\n            d      : processRelativeTime,\r\n            dd     : '%d päeva',\r\n            M      : processRelativeTime,\r\n            MM     : processRelativeTime,\r\n            y      : processRelativeTime,\r\n            yy     : processRelativeTime\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return et;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/et.js\n// module id = 279\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Basque [eu]\r\n//! author : Eneko Illarramendi : https://github.com/eillarra\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var eu = moment.defineLocale('eu', {\r\n        months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),\r\n        monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),\r\n        weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),\r\n        weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'YYYY-MM-DD',\r\n            LL : 'YYYY[ko] MMMM[ren] D[a]',\r\n            LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',\r\n            LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',\r\n            l : 'YYYY-M-D',\r\n            ll : 'YYYY[ko] MMM D[a]',\r\n            lll : 'YYYY[ko] MMM D[a] HH:mm',\r\n            llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[gaur] LT[etan]',\r\n            nextDay : '[bihar] LT[etan]',\r\n            nextWeek : 'dddd LT[etan]',\r\n            lastDay : '[atzo] LT[etan]',\r\n            lastWeek : '[aurreko] dddd LT[etan]',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s barru',\r\n            past : 'duela %s',\r\n            s : 'segundo batzuk',\r\n            m : 'minutu bat',\r\n            mm : '%d minutu',\r\n            h : 'ordu bat',\r\n            hh : '%d ordu',\r\n            d : 'egun bat',\r\n            dd : '%d egun',\r\n            M : 'hilabete bat',\r\n            MM : '%d hilabete',\r\n            y : 'urte bat',\r\n            yy : '%d urte'\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return eu;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/eu.js\n// module id = 280\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Persian [fa]\r\n//! author : Ebrahim Byagowi : https://github.com/ebraminio\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '۱',\r\n        '2': '۲',\r\n        '3': '۳',\r\n        '4': '۴',\r\n        '5': '۵',\r\n        '6': '۶',\r\n        '7': '۷',\r\n        '8': '۸',\r\n        '9': '۹',\r\n        '0': '۰'\r\n    }, numberMap = {\r\n        '۱': '1',\r\n        '۲': '2',\r\n        '۳': '3',\r\n        '۴': '4',\r\n        '۵': '5',\r\n        '۶': '6',\r\n        '۷': '7',\r\n        '۸': '8',\r\n        '۹': '9',\r\n        '۰': '0'\r\n    };\r\n\r\n    var fa = moment.defineLocale('fa', {\r\n        months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),\r\n        monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),\r\n        weekdays : 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split('_'),\r\n        weekdaysShort : 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split('_'),\r\n        weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        meridiemParse: /قبل از ظهر|بعد از ظهر/,\r\n        isPM: function (input) {\r\n            return /بعد از ظهر/.test(input);\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 12) {\r\n                return 'قبل از ظهر';\r\n            } else {\r\n                return 'بعد از ظهر';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[امروز ساعت] LT',\r\n            nextDay : '[فردا ساعت] LT',\r\n            nextWeek : 'dddd [ساعت] LT',\r\n            lastDay : '[دیروز ساعت] LT',\r\n            lastWeek : 'dddd [پیش] [ساعت] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'در %s',\r\n            past : '%s پیش',\r\n            s : 'چندین ثانیه',\r\n            m : 'یک دقیقه',\r\n            mm : '%d دقیقه',\r\n            h : 'یک ساعت',\r\n            hh : '%d ساعت',\r\n            d : 'یک روز',\r\n            dd : '%d روز',\r\n            M : 'یک ماه',\r\n            MM : '%d ماه',\r\n            y : 'یک سال',\r\n            yy : '%d سال'\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/[۰-۹]/g, function (match) {\r\n                return numberMap[match];\r\n            }).replace(/،/g, ',');\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            }).replace(/,/g, '،');\r\n        },\r\n        ordinalParse: /\\d{1,2}م/,\r\n        ordinal : '%dم',\r\n        week : {\r\n            dow : 6, // Saturday is the first day of the week.\r\n            doy : 12 // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return fa;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fa.js\n// module id = 281\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Finnish [fi]\r\n//! author : Tarmo Aidantausta : https://github.com/bleadof\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),\r\n        numbersFuture = [\r\n            'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',\r\n            numbersPast[7], numbersPast[8], numbersPast[9]\r\n        ];\r\n    function translate(number, withoutSuffix, key, isFuture) {\r\n        var result = '';\r\n        switch (key) {\r\n            case 's':\r\n                return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';\r\n            case 'm':\r\n                return isFuture ? 'minuutin' : 'minuutti';\r\n            case 'mm':\r\n                result = isFuture ? 'minuutin' : 'minuuttia';\r\n                break;\r\n            case 'h':\r\n                return isFuture ? 'tunnin' : 'tunti';\r\n            case 'hh':\r\n                result = isFuture ? 'tunnin' : 'tuntia';\r\n                break;\r\n            case 'd':\r\n                return isFuture ? 'päivän' : 'päivä';\r\n            case 'dd':\r\n                result = isFuture ? 'päivän' : 'päivää';\r\n                break;\r\n            case 'M':\r\n                return isFuture ? 'kuukauden' : 'kuukausi';\r\n            case 'MM':\r\n                result = isFuture ? 'kuukauden' : 'kuukautta';\r\n                break;\r\n            case 'y':\r\n                return isFuture ? 'vuoden' : 'vuosi';\r\n            case 'yy':\r\n                result = isFuture ? 'vuoden' : 'vuotta';\r\n                break;\r\n        }\r\n        result = verbalNumber(number, isFuture) + ' ' + result;\r\n        return result;\r\n    }\r\n    function verbalNumber(number, isFuture) {\r\n        return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;\r\n    }\r\n\r\n    var fi = moment.defineLocale('fi', {\r\n        months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),\r\n        monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),\r\n        weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),\r\n        weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),\r\n        weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH.mm',\r\n            LTS : 'HH.mm.ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'Do MMMM[ta] YYYY',\r\n            LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',\r\n            LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',\r\n            l : 'D.M.YYYY',\r\n            ll : 'Do MMM YYYY',\r\n            lll : 'Do MMM YYYY, [klo] HH.mm',\r\n            llll : 'ddd, Do MMM YYYY, [klo] HH.mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[tänään] [klo] LT',\r\n            nextDay : '[huomenna] [klo] LT',\r\n            nextWeek : 'dddd [klo] LT',\r\n            lastDay : '[eilen] [klo] LT',\r\n            lastWeek : '[viime] dddd[na] [klo] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s päästä',\r\n            past : '%s sitten',\r\n            s : translate,\r\n            m : translate,\r\n            mm : translate,\r\n            h : translate,\r\n            hh : translate,\r\n            d : translate,\r\n            dd : translate,\r\n            M : translate,\r\n            MM : translate,\r\n            y : translate,\r\n            yy : translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return fi;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fi.js\n// module id = 282\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Faroese [fo]\r\n//! author : Ragnar Johannesen : https://github.com/ragnar123\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var fo = moment.defineLocale('fo', {\r\n        months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\r\n        monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\r\n        weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),\r\n        weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),\r\n        weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D. MMMM, YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Í dag kl.] LT',\r\n            nextDay : '[Í morgin kl.] LT',\r\n            nextWeek : 'dddd [kl.] LT',\r\n            lastDay : '[Í gjár kl.] LT',\r\n            lastWeek : '[síðstu] dddd [kl] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'um %s',\r\n            past : '%s síðani',\r\n            s : 'fá sekund',\r\n            m : 'ein minutt',\r\n            mm : '%d minuttir',\r\n            h : 'ein tími',\r\n            hh : '%d tímar',\r\n            d : 'ein dagur',\r\n            dd : '%d dagar',\r\n            M : 'ein mánaði',\r\n            MM : '%d mánaðir',\r\n            y : 'eitt ár',\r\n            yy : '%d ár'\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return fo;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fo.js\n// module id = 283\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : French (Canada) [fr-ca]\r\n//! author : Jonathan Abourbih : https://github.com/jonbca\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var fr_ca = moment.defineLocale('fr-ca', {\r\n        months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\r\n        monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\r\n        weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\r\n        weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'YYYY-MM-DD',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Aujourd\\'hui à] LT',\r\n            nextDay: '[Demain à] LT',\r\n            nextWeek: 'dddd [à] LT',\r\n            lastDay: '[Hier à] LT',\r\n            lastWeek: 'dddd [dernier à] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'dans %s',\r\n            past : 'il y a %s',\r\n            s : 'quelques secondes',\r\n            m : 'une minute',\r\n            mm : '%d minutes',\r\n            h : 'une heure',\r\n            hh : '%d heures',\r\n            d : 'un jour',\r\n            dd : '%d jours',\r\n            M : 'un mois',\r\n            MM : '%d mois',\r\n            y : 'un an',\r\n            yy : '%d ans'\r\n        },\r\n        ordinalParse: /\\d{1,2}(er|e)/,\r\n        ordinal : function (number) {\r\n            return number + (number === 1 ? 'er' : 'e');\r\n        }\r\n    });\r\n\r\n    return fr_ca;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fr-ca.js\n// module id = 284\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : French (Switzerland) [fr-ch]\r\n//! author : Gaspard Bucher : https://github.com/gaspard\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var fr_ch = moment.defineLocale('fr-ch', {\r\n        months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\r\n        monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\r\n        weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\r\n        weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Aujourd\\'hui à] LT',\r\n            nextDay: '[Demain à] LT',\r\n            nextWeek: 'dddd [à] LT',\r\n            lastDay: '[Hier à] LT',\r\n            lastWeek: 'dddd [dernier à] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'dans %s',\r\n            past : 'il y a %s',\r\n            s : 'quelques secondes',\r\n            m : 'une minute',\r\n            mm : '%d minutes',\r\n            h : 'une heure',\r\n            hh : '%d heures',\r\n            d : 'un jour',\r\n            dd : '%d jours',\r\n            M : 'un mois',\r\n            MM : '%d mois',\r\n            y : 'un an',\r\n            yy : '%d ans'\r\n        },\r\n        ordinalParse: /\\d{1,2}(er|e)/,\r\n        ordinal : function (number) {\r\n            return number + (number === 1 ? 'er' : 'e');\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return fr_ch;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fr-ch.js\n// module id = 285\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : French [fr]\r\n//! author : John Fischer : https://github.com/jfroffice\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var fr = moment.defineLocale('fr', {\r\n        months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\r\n        monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\r\n        weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\r\n        weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Aujourd\\'hui à] LT',\r\n            nextDay: '[Demain à] LT',\r\n            nextWeek: 'dddd [à] LT',\r\n            lastDay: '[Hier à] LT',\r\n            lastWeek: 'dddd [dernier à] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'dans %s',\r\n            past : 'il y a %s',\r\n            s : 'quelques secondes',\r\n            m : 'une minute',\r\n            mm : '%d minutes',\r\n            h : 'une heure',\r\n            hh : '%d heures',\r\n            d : 'un jour',\r\n            dd : '%d jours',\r\n            M : 'un mois',\r\n            MM : '%d mois',\r\n            y : 'un an',\r\n            yy : '%d ans'\r\n        },\r\n        ordinalParse: /\\d{1,2}(er|)/,\r\n        ordinal : function (number) {\r\n            return number + (number === 1 ? 'er' : '');\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return fr;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fr.js\n// module id = 286\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Frisian [fy]\r\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),\r\n        monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');\r\n\r\n    var fy = moment.defineLocale('fy', {\r\n        months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),\r\n        monthsShort : function (m, format) {\r\n            if (/-MMM-/.test(format)) {\r\n                return monthsShortWithoutDots[m.month()];\r\n            } else {\r\n                return monthsShortWithDots[m.month()];\r\n            }\r\n        },\r\n        monthsParseExact : true,\r\n        weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),\r\n        weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),\r\n        weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD-MM-YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[hjoed om] LT',\r\n            nextDay: '[moarn om] LT',\r\n            nextWeek: 'dddd [om] LT',\r\n            lastDay: '[juster om] LT',\r\n            lastWeek: '[ôfrûne] dddd [om] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'oer %s',\r\n            past : '%s lyn',\r\n            s : 'in pear sekonden',\r\n            m : 'ien minút',\r\n            mm : '%d minuten',\r\n            h : 'ien oere',\r\n            hh : '%d oeren',\r\n            d : 'ien dei',\r\n            dd : '%d dagen',\r\n            M : 'ien moanne',\r\n            MM : '%d moannen',\r\n            y : 'ien jier',\r\n            yy : '%d jierren'\r\n        },\r\n        ordinalParse: /\\d{1,2}(ste|de)/,\r\n        ordinal : function (number) {\r\n            return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return fy;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/fy.js\n// module id = 287\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Scottish Gaelic [gd]\r\n//! author : Jon Ashdown : https://github.com/jonashdown\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var months = [\r\n        'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'\r\n    ];\r\n\r\n    var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];\r\n\r\n    var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];\r\n\r\n    var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];\r\n\r\n    var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];\r\n\r\n    var gd = moment.defineLocale('gd', {\r\n        months : months,\r\n        monthsShort : monthsShort,\r\n        monthsParseExact : true,\r\n        weekdays : weekdays,\r\n        weekdaysShort : weekdaysShort,\r\n        weekdaysMin : weekdaysMin,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[An-diugh aig] LT',\r\n            nextDay : '[A-màireach aig] LT',\r\n            nextWeek : 'dddd [aig] LT',\r\n            lastDay : '[An-dè aig] LT',\r\n            lastWeek : 'dddd [seo chaidh] [aig] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'ann an %s',\r\n            past : 'bho chionn %s',\r\n            s : 'beagan diogan',\r\n            m : 'mionaid',\r\n            mm : '%d mionaidean',\r\n            h : 'uair',\r\n            hh : '%d uairean',\r\n            d : 'latha',\r\n            dd : '%d latha',\r\n            M : 'mìos',\r\n            MM : '%d mìosan',\r\n            y : 'bliadhna',\r\n            yy : '%d bliadhna'\r\n        },\r\n        ordinalParse : /\\d{1,2}(d|na|mh)/,\r\n        ordinal : function (number) {\r\n            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\r\n            return number + output;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return gd;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gd.js\n// module id = 288\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Galician [gl]\r\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var gl = moment.defineLocale('gl', {\r\n        months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),\r\n        monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),\r\n        monthsParseExact: true,\r\n        weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),\r\n        weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),\r\n        weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D [de] MMMM [de] YYYY',\r\n            LLL : 'D [de] MMMM [de] YYYY H:mm',\r\n            LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : function () {\r\n                return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';\r\n            },\r\n            nextDay : function () {\r\n                return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';\r\n            },\r\n            nextWeek : function () {\r\n                return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';\r\n            },\r\n            lastDay : function () {\r\n                return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';\r\n            },\r\n            lastWeek : function () {\r\n                return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : function (str) {\r\n                if (str.indexOf('un') === 0) {\r\n                    return 'n' + str;\r\n                }\r\n                return 'en ' + str;\r\n            },\r\n            past : 'hai %s',\r\n            s : 'uns segundos',\r\n            m : 'un minuto',\r\n            mm : '%d minutos',\r\n            h : 'unha hora',\r\n            hh : '%d horas',\r\n            d : 'un día',\r\n            dd : '%d días',\r\n            M : 'un mes',\r\n            MM : '%d meses',\r\n            y : 'un ano',\r\n            yy : '%d anos'\r\n        },\r\n        ordinalParse : /\\d{1,2}º/,\r\n        ordinal : '%dº',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return gl;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/gl.js\n// module id = 289\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Hebrew [he]\r\n//! author : Tomer Cohen : https://github.com/tomer\r\n//! author : Moshe Simantov : https://github.com/DevelopmentIL\r\n//! author : Tal Ater : https://github.com/TalAter\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var he = moment.defineLocale('he', {\r\n        months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),\r\n        monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),\r\n        weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),\r\n        weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),\r\n        weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D [ב]MMMM YYYY',\r\n            LLL : 'D [ב]MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',\r\n            l : 'D/M/YYYY',\r\n            ll : 'D MMM YYYY',\r\n            lll : 'D MMM YYYY HH:mm',\r\n            llll : 'ddd, D MMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[היום ב־]LT',\r\n            nextDay : '[מחר ב־]LT',\r\n            nextWeek : 'dddd [בשעה] LT',\r\n            lastDay : '[אתמול ב־]LT',\r\n            lastWeek : '[ביום] dddd [האחרון בשעה] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'בעוד %s',\r\n            past : 'לפני %s',\r\n            s : 'מספר שניות',\r\n            m : 'דקה',\r\n            mm : '%d דקות',\r\n            h : 'שעה',\r\n            hh : function (number) {\r\n                if (number === 2) {\r\n                    return 'שעתיים';\r\n                }\r\n                return number + ' שעות';\r\n            },\r\n            d : 'יום',\r\n            dd : function (number) {\r\n                if (number === 2) {\r\n                    return 'יומיים';\r\n                }\r\n                return number + ' ימים';\r\n            },\r\n            M : 'חודש',\r\n            MM : function (number) {\r\n                if (number === 2) {\r\n                    return 'חודשיים';\r\n                }\r\n                return number + ' חודשים';\r\n            },\r\n            y : 'שנה',\r\n            yy : function (number) {\r\n                if (number === 2) {\r\n                    return 'שנתיים';\r\n                } else if (number % 10 === 0 && number !== 10) {\r\n                    return number + ' שנה';\r\n                }\r\n                return number + ' שנים';\r\n            }\r\n        },\r\n        meridiemParse: /אחה\"צ|לפנה\"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,\r\n        isPM : function (input) {\r\n            return /^(אחה\"צ|אחרי הצהריים|בערב)$/.test(input);\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 5) {\r\n                return 'לפנות בוקר';\r\n            } else if (hour < 10) {\r\n                return 'בבוקר';\r\n            } else if (hour < 12) {\r\n                return isLower ? 'לפנה\"צ' : 'לפני הצהריים';\r\n            } else if (hour < 18) {\r\n                return isLower ? 'אחה\"צ' : 'אחרי הצהריים';\r\n            } else {\r\n                return 'בערב';\r\n            }\r\n        }\r\n    });\r\n\r\n    return he;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/he.js\n// module id = 290\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Hindi [hi]\r\n//! author : Mayank Singhal : https://github.com/mayanksinghal\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '१',\r\n        '2': '२',\r\n        '3': '३',\r\n        '4': '४',\r\n        '5': '५',\r\n        '6': '६',\r\n        '7': '७',\r\n        '8': '८',\r\n        '9': '९',\r\n        '0': '०'\r\n    },\r\n    numberMap = {\r\n        '१': '1',\r\n        '२': '2',\r\n        '३': '3',\r\n        '४': '4',\r\n        '५': '5',\r\n        '६': '6',\r\n        '७': '7',\r\n        '८': '8',\r\n        '९': '9',\r\n        '०': '0'\r\n    };\r\n\r\n    var hi = moment.defineLocale('hi', {\r\n        months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),\r\n        monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),\r\n        monthsParseExact: true,\r\n        weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\r\n        weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),\r\n        weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'A h:mm बजे',\r\n            LTS : 'A h:mm:ss बजे',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY, A h:mm बजे',\r\n            LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'\r\n        },\r\n        calendar : {\r\n            sameDay : '[आज] LT',\r\n            nextDay : '[कल] LT',\r\n            nextWeek : 'dddd, LT',\r\n            lastDay : '[कल] LT',\r\n            lastWeek : '[पिछले] dddd, LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s में',\r\n            past : '%s पहले',\r\n            s : 'कुछ ही क्षण',\r\n            m : 'एक मिनट',\r\n            mm : '%d मिनट',\r\n            h : 'एक घंटा',\r\n            hh : '%d घंटे',\r\n            d : 'एक दिन',\r\n            dd : '%d दिन',\r\n            M : 'एक महीने',\r\n            MM : '%d महीने',\r\n            y : 'एक वर्ष',\r\n            yy : '%d वर्ष'\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/[१२३४५६७८९०]/g, function (match) {\r\n                return numberMap[match];\r\n            });\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            });\r\n        },\r\n        // Hindi notation for meridiems are quite fuzzy in practice. While there exists\r\n        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.\r\n        meridiemParse: /रात|सुबह|दोपहर|शाम/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'रात') {\r\n                return hour < 4 ? hour : hour + 12;\r\n            } else if (meridiem === 'सुबह') {\r\n                return hour;\r\n            } else if (meridiem === 'दोपहर') {\r\n                return hour >= 10 ? hour : hour + 12;\r\n            } else if (meridiem === 'शाम') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'रात';\r\n            } else if (hour < 10) {\r\n                return 'सुबह';\r\n            } else if (hour < 17) {\r\n                return 'दोपहर';\r\n            } else if (hour < 20) {\r\n                return 'शाम';\r\n            } else {\r\n                return 'रात';\r\n            }\r\n        },\r\n        week : {\r\n            dow : 0, // Sunday is the first day of the week.\r\n            doy : 6  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return hi;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hi.js\n// module id = 291\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Croatian [hr]\r\n//! author : Bojan Marković : https://github.com/bmarkovic\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function translate(number, withoutSuffix, key) {\r\n        var result = number + ' ';\r\n        switch (key) {\r\n            case 'm':\r\n                return withoutSuffix ? 'jedna minuta' : 'jedne minute';\r\n            case 'mm':\r\n                if (number === 1) {\r\n                    result += 'minuta';\r\n                } else if (number === 2 || number === 3 || number === 4) {\r\n                    result += 'minute';\r\n                } else {\r\n                    result += 'minuta';\r\n                }\r\n                return result;\r\n            case 'h':\r\n                return withoutSuffix ? 'jedan sat' : 'jednog sata';\r\n            case 'hh':\r\n                if (number === 1) {\r\n                    result += 'sat';\r\n                } else if (number === 2 || number === 3 || number === 4) {\r\n                    result += 'sata';\r\n                } else {\r\n                    result += 'sati';\r\n                }\r\n                return result;\r\n            case 'dd':\r\n                if (number === 1) {\r\n                    result += 'dan';\r\n                } else {\r\n                    result += 'dana';\r\n                }\r\n                return result;\r\n            case 'MM':\r\n                if (number === 1) {\r\n                    result += 'mjesec';\r\n                } else if (number === 2 || number === 3 || number === 4) {\r\n                    result += 'mjeseca';\r\n                } else {\r\n                    result += 'mjeseci';\r\n                }\r\n                return result;\r\n            case 'yy':\r\n                if (number === 1) {\r\n                    result += 'godina';\r\n                } else if (number === 2 || number === 3 || number === 4) {\r\n                    result += 'godine';\r\n                } else {\r\n                    result += 'godina';\r\n                }\r\n                return result;\r\n        }\r\n    }\r\n\r\n    var hr = moment.defineLocale('hr', {\r\n        months : {\r\n            format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),\r\n            standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')\r\n        },\r\n        monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),\r\n        monthsParseExact: true,\r\n        weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\r\n        weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\r\n        weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY H:mm',\r\n            LLLL : 'dddd, D. MMMM YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay  : '[danas u] LT',\r\n            nextDay  : '[sutra u] LT',\r\n            nextWeek : function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[u] [nedjelju] [u] LT';\r\n                    case 3:\r\n                        return '[u] [srijedu] [u] LT';\r\n                    case 6:\r\n                        return '[u] [subotu] [u] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[u] dddd [u] LT';\r\n                }\r\n            },\r\n            lastDay  : '[jučer u] LT',\r\n            lastWeek : function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                    case 3:\r\n                        return '[prošlu] dddd [u] LT';\r\n                    case 6:\r\n                        return '[prošle] [subote] [u] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[prošli] dddd [u] LT';\r\n                }\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'za %s',\r\n            past   : 'prije %s',\r\n            s      : 'par sekundi',\r\n            m      : translate,\r\n            mm     : translate,\r\n            h      : translate,\r\n            hh     : translate,\r\n            d      : 'dan',\r\n            dd     : translate,\r\n            M      : 'mjesec',\r\n            MM     : translate,\r\n            y      : 'godinu',\r\n            yy     : translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return hr;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hr.js\n// module id = 292\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Hungarian [hu]\r\n//! author : Adam Brunner : https://github.com/adambrunner\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');\r\n    function translate(number, withoutSuffix, key, isFuture) {\r\n        var num = number,\r\n            suffix;\r\n        switch (key) {\r\n            case 's':\r\n                return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';\r\n            case 'm':\r\n                return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');\r\n            case 'mm':\r\n                return num + (isFuture || withoutSuffix ? ' perc' : ' perce');\r\n            case 'h':\r\n                return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');\r\n            case 'hh':\r\n                return num + (isFuture || withoutSuffix ? ' óra' : ' órája');\r\n            case 'd':\r\n                return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');\r\n            case 'dd':\r\n                return num + (isFuture || withoutSuffix ? ' nap' : ' napja');\r\n            case 'M':\r\n                return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\r\n            case 'MM':\r\n                return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\r\n            case 'y':\r\n                return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');\r\n            case 'yy':\r\n                return num + (isFuture || withoutSuffix ? ' év' : ' éve');\r\n        }\r\n        return '';\r\n    }\r\n    function week(isFuture) {\r\n        return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';\r\n    }\r\n\r\n    var hu = moment.defineLocale('hu', {\r\n        months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),\r\n        monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),\r\n        weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),\r\n        weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),\r\n        weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'YYYY.MM.DD.',\r\n            LL : 'YYYY. MMMM D.',\r\n            LLL : 'YYYY. MMMM D. H:mm',\r\n            LLLL : 'YYYY. MMMM D., dddd H:mm'\r\n        },\r\n        meridiemParse: /de|du/i,\r\n        isPM: function (input) {\r\n            return input.charAt(1).toLowerCase() === 'u';\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours < 12) {\r\n                return isLower === true ? 'de' : 'DE';\r\n            } else {\r\n                return isLower === true ? 'du' : 'DU';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[ma] LT[-kor]',\r\n            nextDay : '[holnap] LT[-kor]',\r\n            nextWeek : function () {\r\n                return week.call(this, true);\r\n            },\r\n            lastDay : '[tegnap] LT[-kor]',\r\n            lastWeek : function () {\r\n                return week.call(this, false);\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s múlva',\r\n            past : '%s',\r\n            s : translate,\r\n            m : translate,\r\n            mm : translate,\r\n            h : translate,\r\n            hh : translate,\r\n            d : translate,\r\n            dd : translate,\r\n            M : translate,\r\n            MM : translate,\r\n            y : translate,\r\n            yy : translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return hu;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hu.js\n// module id = 293\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Armenian [hy-am]\r\n//! author : Armendarabyan : https://github.com/armendarabyan\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var hy_am = moment.defineLocale('hy-am', {\r\n        months : {\r\n            format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),\r\n            standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')\r\n        },\r\n        monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),\r\n        weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),\r\n        weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\r\n        weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY թ.',\r\n            LLL : 'D MMMM YYYY թ., HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY թ., HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[այսօր] LT',\r\n            nextDay: '[վաղը] LT',\r\n            lastDay: '[երեկ] LT',\r\n            nextWeek: function () {\r\n                return 'dddd [օրը ժամը] LT';\r\n            },\r\n            lastWeek: function () {\r\n                return '[անցած] dddd [օրը ժամը] LT';\r\n            },\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s հետո',\r\n            past : '%s առաջ',\r\n            s : 'մի քանի վայրկյան',\r\n            m : 'րոպե',\r\n            mm : '%d րոպե',\r\n            h : 'ժամ',\r\n            hh : '%d ժամ',\r\n            d : 'օր',\r\n            dd : '%d օր',\r\n            M : 'ամիս',\r\n            MM : '%d ամիս',\r\n            y : 'տարի',\r\n            yy : '%d տարի'\r\n        },\r\n        meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,\r\n        isPM: function (input) {\r\n            return /^(ցերեկվա|երեկոյան)$/.test(input);\r\n        },\r\n        meridiem : function (hour) {\r\n            if (hour < 4) {\r\n                return 'գիշերվա';\r\n            } else if (hour < 12) {\r\n                return 'առավոտվա';\r\n            } else if (hour < 17) {\r\n                return 'ցերեկվա';\r\n            } else {\r\n                return 'երեկոյան';\r\n            }\r\n        },\r\n        ordinalParse: /\\d{1,2}|\\d{1,2}-(ին|րդ)/,\r\n        ordinal: function (number, period) {\r\n            switch (period) {\r\n                case 'DDD':\r\n                case 'w':\r\n                case 'W':\r\n                case 'DDDo':\r\n                    if (number === 1) {\r\n                        return number + '-ին';\r\n                    }\r\n                    return number + '-րդ';\r\n                default:\r\n                    return number;\r\n            }\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return hy_am;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/hy-am.js\n// module id = 294\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Indonesian [id]\r\n//! author : Mohammad Satrio Utomo : https://github.com/tyok\r\n//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var id = moment.defineLocale('id', {\r\n        months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),\r\n        weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),\r\n        weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),\r\n        weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH.mm',\r\n            LTS : 'HH.mm.ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY [pukul] HH.mm',\r\n            LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'\r\n        },\r\n        meridiemParse: /pagi|siang|sore|malam/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'pagi') {\r\n                return hour;\r\n            } else if (meridiem === 'siang') {\r\n                return hour >= 11 ? hour : hour + 12;\r\n            } else if (meridiem === 'sore' || meridiem === 'malam') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours < 11) {\r\n                return 'pagi';\r\n            } else if (hours < 15) {\r\n                return 'siang';\r\n            } else if (hours < 19) {\r\n                return 'sore';\r\n            } else {\r\n                return 'malam';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[Hari ini pukul] LT',\r\n            nextDay : '[Besok pukul] LT',\r\n            nextWeek : 'dddd [pukul] LT',\r\n            lastDay : '[Kemarin pukul] LT',\r\n            lastWeek : 'dddd [lalu pukul] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'dalam %s',\r\n            past : '%s yang lalu',\r\n            s : 'beberapa detik',\r\n            m : 'semenit',\r\n            mm : '%d menit',\r\n            h : 'sejam',\r\n            hh : '%d jam',\r\n            d : 'sehari',\r\n            dd : '%d hari',\r\n            M : 'sebulan',\r\n            MM : '%d bulan',\r\n            y : 'setahun',\r\n            yy : '%d tahun'\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return id;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/id.js\n// module id = 295\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Icelandic [is]\r\n//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function plural(n) {\r\n        if (n % 100 === 11) {\r\n            return true;\r\n        } else if (n % 10 === 1) {\r\n            return false;\r\n        }\r\n        return true;\r\n    }\r\n    function translate(number, withoutSuffix, key, isFuture) {\r\n        var result = number + ' ';\r\n        switch (key) {\r\n            case 's':\r\n                return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';\r\n            case 'm':\r\n                return withoutSuffix ? 'mínúta' : 'mínútu';\r\n            case 'mm':\r\n                if (plural(number)) {\r\n                    return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');\r\n                } else if (withoutSuffix) {\r\n                    return result + 'mínúta';\r\n                }\r\n                return result + 'mínútu';\r\n            case 'hh':\r\n                if (plural(number)) {\r\n                    return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');\r\n                }\r\n                return result + 'klukkustund';\r\n            case 'd':\r\n                if (withoutSuffix) {\r\n                    return 'dagur';\r\n                }\r\n                return isFuture ? 'dag' : 'degi';\r\n            case 'dd':\r\n                if (plural(number)) {\r\n                    if (withoutSuffix) {\r\n                        return result + 'dagar';\r\n                    }\r\n                    return result + (isFuture ? 'daga' : 'dögum');\r\n                } else if (withoutSuffix) {\r\n                    return result + 'dagur';\r\n                }\r\n                return result + (isFuture ? 'dag' : 'degi');\r\n            case 'M':\r\n                if (withoutSuffix) {\r\n                    return 'mánuður';\r\n                }\r\n                return isFuture ? 'mánuð' : 'mánuði';\r\n            case 'MM':\r\n                if (plural(number)) {\r\n                    if (withoutSuffix) {\r\n                        return result + 'mánuðir';\r\n                    }\r\n                    return result + (isFuture ? 'mánuði' : 'mánuðum');\r\n                } else if (withoutSuffix) {\r\n                    return result + 'mánuður';\r\n                }\r\n                return result + (isFuture ? 'mánuð' : 'mánuði');\r\n            case 'y':\r\n                return withoutSuffix || isFuture ? 'ár' : 'ári';\r\n            case 'yy':\r\n                if (plural(number)) {\r\n                    return result + (withoutSuffix || isFuture ? 'ár' : 'árum');\r\n                }\r\n                return result + (withoutSuffix || isFuture ? 'ár' : 'ári');\r\n        }\r\n    }\r\n\r\n    var is = moment.defineLocale('is', {\r\n        months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),\r\n        monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),\r\n        weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),\r\n        weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),\r\n        weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY [kl.] H:mm',\r\n            LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[í dag kl.] LT',\r\n            nextDay : '[á morgun kl.] LT',\r\n            nextWeek : 'dddd [kl.] LT',\r\n            lastDay : '[í gær kl.] LT',\r\n            lastWeek : '[síðasta] dddd [kl.] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'eftir %s',\r\n            past : 'fyrir %s síðan',\r\n            s : translate,\r\n            m : translate,\r\n            mm : translate,\r\n            h : 'klukkustund',\r\n            hh : translate,\r\n            d : translate,\r\n            dd : translate,\r\n            M : translate,\r\n            MM : translate,\r\n            y : translate,\r\n            yy : translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return is;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/is.js\n// module id = 296\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Italian [it]\r\n//! author : Lorenzo : https://github.com/aliem\r\n//! author: Mattia Larentis: https://github.com/nostalgiaz\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var it = moment.defineLocale('it', {\r\n        months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),\r\n        monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\r\n        weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),\r\n        weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),\r\n        weekdaysMin : 'Do_Lu_Ma_Me_Gi_Ve_Sa'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Oggi alle] LT',\r\n            nextDay: '[Domani alle] LT',\r\n            nextWeek: 'dddd [alle] LT',\r\n            lastDay: '[Ieri alle] LT',\r\n            lastWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[la scorsa] dddd [alle] LT';\r\n                    default:\r\n                        return '[lo scorso] dddd [alle] LT';\r\n                }\r\n            },\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : function (s) {\r\n                return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;\r\n            },\r\n            past : '%s fa',\r\n            s : 'alcuni secondi',\r\n            m : 'un minuto',\r\n            mm : '%d minuti',\r\n            h : 'un\\'ora',\r\n            hh : '%d ore',\r\n            d : 'un giorno',\r\n            dd : '%d giorni',\r\n            M : 'un mese',\r\n            MM : '%d mesi',\r\n            y : 'un anno',\r\n            yy : '%d anni'\r\n        },\r\n        ordinalParse : /\\d{1,2}º/,\r\n        ordinal: '%dº',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return it;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/it.js\n// module id = 297\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Japanese [ja]\r\n//! author : LI Long : https://github.com/baryon\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var ja = moment.defineLocale('ja', {\r\n        months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\r\n        monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\r\n        weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),\r\n        weekdaysShort : '日_月_火_水_木_金_土'.split('_'),\r\n        weekdaysMin : '日_月_火_水_木_金_土'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'Ah時m分',\r\n            LTS : 'Ah時m分s秒',\r\n            L : 'YYYY/MM/DD',\r\n            LL : 'YYYY年M月D日',\r\n            LLL : 'YYYY年M月D日Ah時m分',\r\n            LLLL : 'YYYY年M月D日Ah時m分 dddd'\r\n        },\r\n        meridiemParse: /午前|午後/i,\r\n        isPM : function (input) {\r\n            return input === '午後';\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 12) {\r\n                return '午前';\r\n            } else {\r\n                return '午後';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[今日] LT',\r\n            nextDay : '[明日] LT',\r\n            nextWeek : '[来週]dddd LT',\r\n            lastDay : '[昨日] LT',\r\n            lastWeek : '[前週]dddd LT',\r\n            sameElse : 'L'\r\n        },\r\n        ordinalParse : /\\d{1,2}日/,\r\n        ordinal : function (number, period) {\r\n            switch (period) {\r\n                case 'd':\r\n                case 'D':\r\n                case 'DDD':\r\n                    return number + '日';\r\n                default:\r\n                    return number;\r\n            }\r\n        },\r\n        relativeTime : {\r\n            future : '%s後',\r\n            past : '%s前',\r\n            s : '数秒',\r\n            m : '1分',\r\n            mm : '%d分',\r\n            h : '1時間',\r\n            hh : '%d時間',\r\n            d : '1日',\r\n            dd : '%d日',\r\n            M : '1ヶ月',\r\n            MM : '%dヶ月',\r\n            y : '1年',\r\n            yy : '%d年'\r\n        }\r\n    });\r\n\r\n    return ja;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ja.js\n// module id = 298\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Japanese [jv]\r\n//! author : Rony Lantip : https://github.com/lantip\r\n//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var jv = moment.defineLocale('jv', {\r\n        months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),\r\n        weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),\r\n        weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),\r\n        weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH.mm',\r\n            LTS : 'HH.mm.ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY [pukul] HH.mm',\r\n            LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'\r\n        },\r\n        meridiemParse: /enjing|siyang|sonten|ndalu/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'enjing') {\r\n                return hour;\r\n            } else if (meridiem === 'siyang') {\r\n                return hour >= 11 ? hour : hour + 12;\r\n            } else if (meridiem === 'sonten' || meridiem === 'ndalu') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours < 11) {\r\n                return 'enjing';\r\n            } else if (hours < 15) {\r\n                return 'siyang';\r\n            } else if (hours < 19) {\r\n                return 'sonten';\r\n            } else {\r\n                return 'ndalu';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[Dinten puniko pukul] LT',\r\n            nextDay : '[Mbenjang pukul] LT',\r\n            nextWeek : 'dddd [pukul] LT',\r\n            lastDay : '[Kala wingi pukul] LT',\r\n            lastWeek : 'dddd [kepengker pukul] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'wonten ing %s',\r\n            past : '%s ingkang kepengker',\r\n            s : 'sawetawis detik',\r\n            m : 'setunggal menit',\r\n            mm : '%d menit',\r\n            h : 'setunggal jam',\r\n            hh : '%d jam',\r\n            d : 'sedinten',\r\n            dd : '%d dinten',\r\n            M : 'sewulan',\r\n            MM : '%d wulan',\r\n            y : 'setaun',\r\n            yy : '%d taun'\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return jv;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/jv.js\n// module id = 299\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Georgian [ka]\r\n//! author : Irakli Janiashvili : https://github.com/irakli-janiashvili\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var ka = moment.defineLocale('ka', {\r\n        months : {\r\n            standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),\r\n            format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')\r\n        },\r\n        monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),\r\n        weekdays : {\r\n            standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),\r\n            format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),\r\n            isFormat: /(წინა|შემდეგ)/\r\n        },\r\n        weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),\r\n        weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'h:mm A',\r\n            LTS : 'h:mm:ss A',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY h:mm A',\r\n            LLLL : 'dddd, D MMMM YYYY h:mm A'\r\n        },\r\n        calendar : {\r\n            sameDay : '[დღეს] LT[-ზე]',\r\n            nextDay : '[ხვალ] LT[-ზე]',\r\n            lastDay : '[გუშინ] LT[-ზე]',\r\n            nextWeek : '[შემდეგ] dddd LT[-ზე]',\r\n            lastWeek : '[წინა] dddd LT-ზე',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : function (s) {\r\n                return (/(წამი|წუთი|საათი|წელი)/).test(s) ?\r\n                    s.replace(/ი$/, 'ში') :\r\n                    s + 'ში';\r\n            },\r\n            past : function (s) {\r\n                if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {\r\n                    return s.replace(/(ი|ე)$/, 'ის წინ');\r\n                }\r\n                if ((/წელი/).test(s)) {\r\n                    return s.replace(/წელი$/, 'წლის წინ');\r\n                }\r\n            },\r\n            s : 'რამდენიმე წამი',\r\n            m : 'წუთი',\r\n            mm : '%d წუთი',\r\n            h : 'საათი',\r\n            hh : '%d საათი',\r\n            d : 'დღე',\r\n            dd : '%d დღე',\r\n            M : 'თვე',\r\n            MM : '%d თვე',\r\n            y : 'წელი',\r\n            yy : '%d წელი'\r\n        },\r\n        ordinalParse: /0|1-ლი|მე-\\d{1,2}|\\d{1,2}-ე/,\r\n        ordinal : function (number) {\r\n            if (number === 0) {\r\n                return number;\r\n            }\r\n            if (number === 1) {\r\n                return number + '-ლი';\r\n            }\r\n            if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {\r\n                return 'მე-' + number;\r\n            }\r\n            return number + '-ე';\r\n        },\r\n        week : {\r\n            dow : 1,\r\n            doy : 7\r\n        }\r\n    });\r\n\r\n    return ka;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ka.js\n// module id = 300\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Kazakh [kk]\r\n//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var suffixes = {\r\n        0: '-ші',\r\n        1: '-ші',\r\n        2: '-ші',\r\n        3: '-ші',\r\n        4: '-ші',\r\n        5: '-ші',\r\n        6: '-шы',\r\n        7: '-ші',\r\n        8: '-ші',\r\n        9: '-шы',\r\n        10: '-шы',\r\n        20: '-шы',\r\n        30: '-шы',\r\n        40: '-шы',\r\n        50: '-ші',\r\n        60: '-шы',\r\n        70: '-ші',\r\n        80: '-ші',\r\n        90: '-шы',\r\n        100: '-ші'\r\n    };\r\n\r\n    var kk = moment.defineLocale('kk', {\r\n        months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),\r\n        monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),\r\n        weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),\r\n        weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),\r\n        weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Бүгін сағат] LT',\r\n            nextDay : '[Ертең сағат] LT',\r\n            nextWeek : 'dddd [сағат] LT',\r\n            lastDay : '[Кеше сағат] LT',\r\n            lastWeek : '[Өткен аптаның] dddd [сағат] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s ішінде',\r\n            past : '%s бұрын',\r\n            s : 'бірнеше секунд',\r\n            m : 'бір минут',\r\n            mm : '%d минут',\r\n            h : 'бір сағат',\r\n            hh : '%d сағат',\r\n            d : 'бір күн',\r\n            dd : '%d күн',\r\n            M : 'бір ай',\r\n            MM : '%d ай',\r\n            y : 'бір жыл',\r\n            yy : '%d жыл'\r\n        },\r\n        ordinalParse: /\\d{1,2}-(ші|шы)/,\r\n        ordinal : function (number) {\r\n            var a = number % 10,\r\n                b = number >= 100 ? 100 : null;\r\n            return number + (suffixes[number] || suffixes[a] || suffixes[b]);\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return kk;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/kk.js\n// module id = 301\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Cambodian [km]\r\n//! author : Kruy Vanna : https://github.com/kruyvanna\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var km = moment.defineLocale('km', {\r\n        months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),\r\n        monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),\r\n        weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\r\n        weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\r\n        weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\r\n        longDateFormat: {\r\n            LT: 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L: 'DD/MM/YYYY',\r\n            LL: 'D MMMM YYYY',\r\n            LLL: 'D MMMM YYYY HH:mm',\r\n            LLLL: 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar: {\r\n            sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',\r\n            nextDay: '[ស្អែក ម៉ោង] LT',\r\n            nextWeek: 'dddd [ម៉ោង] LT',\r\n            lastDay: '[ម្សិលមិញ ម៉ោង] LT',\r\n            lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime: {\r\n            future: '%sទៀត',\r\n            past: '%sមុន',\r\n            s: 'ប៉ុន្មានវិនាទី',\r\n            m: 'មួយនាទី',\r\n            mm: '%d នាទី',\r\n            h: 'មួយម៉ោង',\r\n            hh: '%d ម៉ោង',\r\n            d: 'មួយថ្ងៃ',\r\n            dd: '%d ថ្ងៃ',\r\n            M: 'មួយខែ',\r\n            MM: '%d ខែ',\r\n            y: 'មួយឆ្នាំ',\r\n            yy: '%d ឆ្នាំ'\r\n        },\r\n        week: {\r\n            dow: 1, // Monday is the first day of the week.\r\n            doy: 4 // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return km;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/km.js\n// module id = 302\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Korean [ko]\r\n//! author : Kyungwook, Park : https://github.com/kyungw00k\r\n//! author : Jeeeyul Lee <jeeeyul@gmail.com>\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var ko = moment.defineLocale('ko', {\r\n        months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\r\n        monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\r\n        weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),\r\n        weekdaysShort : '일_월_화_수_목_금_토'.split('_'),\r\n        weekdaysMin : '일_월_화_수_목_금_토'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'A h시 m분',\r\n            LTS : 'A h시 m분 s초',\r\n            L : 'YYYY.MM.DD',\r\n            LL : 'YYYY년 MMMM D일',\r\n            LLL : 'YYYY년 MMMM D일 A h시 m분',\r\n            LLLL : 'YYYY년 MMMM D일 dddd A h시 m분'\r\n        },\r\n        calendar : {\r\n            sameDay : '오늘 LT',\r\n            nextDay : '내일 LT',\r\n            nextWeek : 'dddd LT',\r\n            lastDay : '어제 LT',\r\n            lastWeek : '지난주 dddd LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s 후',\r\n            past : '%s 전',\r\n            s : '몇 초',\r\n            ss : '%d초',\r\n            m : '일분',\r\n            mm : '%d분',\r\n            h : '한 시간',\r\n            hh : '%d시간',\r\n            d : '하루',\r\n            dd : '%d일',\r\n            M : '한 달',\r\n            MM : '%d달',\r\n            y : '일 년',\r\n            yy : '%d년'\r\n        },\r\n        ordinalParse : /\\d{1,2}일/,\r\n        ordinal : '%d일',\r\n        meridiemParse : /오전|오후/,\r\n        isPM : function (token) {\r\n            return token === '오후';\r\n        },\r\n        meridiem : function (hour, minute, isUpper) {\r\n            return hour < 12 ? '오전' : '오후';\r\n        }\r\n    });\r\n\r\n    return ko;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ko.js\n// module id = 303\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Kyrgyz [ky]\r\n//! author : Chyngyz Arystan uulu : https://github.com/chyngyz\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n\r\n    var suffixes = {\r\n        0: '-чү',\r\n        1: '-чи',\r\n        2: '-чи',\r\n        3: '-чү',\r\n        4: '-чү',\r\n        5: '-чи',\r\n        6: '-чы',\r\n        7: '-чи',\r\n        8: '-чи',\r\n        9: '-чу',\r\n        10: '-чу',\r\n        20: '-чы',\r\n        30: '-чу',\r\n        40: '-чы',\r\n        50: '-чү',\r\n        60: '-чы',\r\n        70: '-чи',\r\n        80: '-чи',\r\n        90: '-чу',\r\n        100: '-чү'\r\n    };\r\n\r\n    var ky = moment.defineLocale('ky', {\r\n        months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),\r\n        monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),\r\n        weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),\r\n        weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),\r\n        weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Бүгүн саат] LT',\r\n            nextDay : '[Эртең саат] LT',\r\n            nextWeek : 'dddd [саат] LT',\r\n            lastDay : '[Кече саат] LT',\r\n            lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s ичинде',\r\n            past : '%s мурун',\r\n            s : 'бирнече секунд',\r\n            m : 'бир мүнөт',\r\n            mm : '%d мүнөт',\r\n            h : 'бир саат',\r\n            hh : '%d саат',\r\n            d : 'бир күн',\r\n            dd : '%d күн',\r\n            M : 'бир ай',\r\n            MM : '%d ай',\r\n            y : 'бир жыл',\r\n            yy : '%d жыл'\r\n        },\r\n        ordinalParse: /\\d{1,2}-(чи|чы|чү|чу)/,\r\n        ordinal : function (number) {\r\n            var a = number % 10,\r\n                b = number >= 100 ? 100 : null;\r\n            return number + (suffixes[number] || suffixes[a] || suffixes[b]);\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ky;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ky.js\n// module id = 304\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Luxembourgish [lb]\r\n//! author : mweimerskirch : https://github.com/mweimerskirch\r\n//! author : David Raison : https://github.com/kwisatz\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\r\n        var format = {\r\n            'm': ['eng Minutt', 'enger Minutt'],\r\n            'h': ['eng Stonn', 'enger Stonn'],\r\n            'd': ['een Dag', 'engem Dag'],\r\n            'M': ['ee Mount', 'engem Mount'],\r\n            'y': ['ee Joer', 'engem Joer']\r\n        };\r\n        return withoutSuffix ? format[key][0] : format[key][1];\r\n    }\r\n    function processFutureTime(string) {\r\n        var number = string.substr(0, string.indexOf(' '));\r\n        if (eifelerRegelAppliesToNumber(number)) {\r\n            return 'a ' + string;\r\n        }\r\n        return 'an ' + string;\r\n    }\r\n    function processPastTime(string) {\r\n        var number = string.substr(0, string.indexOf(' '));\r\n        if (eifelerRegelAppliesToNumber(number)) {\r\n            return 'viru ' + string;\r\n        }\r\n        return 'virun ' + string;\r\n    }\r\n    /**\r\n     * Returns true if the word before the given number loses the '-n' ending.\r\n     * e.g. 'an 10 Deeg' but 'a 5 Deeg'\r\n     *\r\n     * @param number {integer}\r\n     * @returns {boolean}\r\n     */\r\n    function eifelerRegelAppliesToNumber(number) {\r\n        number = parseInt(number, 10);\r\n        if (isNaN(number)) {\r\n            return false;\r\n        }\r\n        if (number < 0) {\r\n            // Negative Number --> always true\r\n            return true;\r\n        } else if (number < 10) {\r\n            // Only 1 digit\r\n            if (4 <= number && number <= 7) {\r\n                return true;\r\n            }\r\n            return false;\r\n        } else if (number < 100) {\r\n            // 2 digits\r\n            var lastDigit = number % 10, firstDigit = number / 10;\r\n            if (lastDigit === 0) {\r\n                return eifelerRegelAppliesToNumber(firstDigit);\r\n            }\r\n            return eifelerRegelAppliesToNumber(lastDigit);\r\n        } else if (number < 10000) {\r\n            // 3 or 4 digits --> recursively check first digit\r\n            while (number >= 10) {\r\n                number = number / 10;\r\n            }\r\n            return eifelerRegelAppliesToNumber(number);\r\n        } else {\r\n            // Anything larger than 4 digits: recursively check first n-3 digits\r\n            number = number / 1000;\r\n            return eifelerRegelAppliesToNumber(number);\r\n        }\r\n    }\r\n\r\n    var lb = moment.defineLocale('lb', {\r\n        months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\r\n        monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),\r\n        weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),\r\n        weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat: {\r\n            LT: 'H:mm [Auer]',\r\n            LTS: 'H:mm:ss [Auer]',\r\n            L: 'DD.MM.YYYY',\r\n            LL: 'D. MMMM YYYY',\r\n            LLL: 'D. MMMM YYYY H:mm [Auer]',\r\n            LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'\r\n        },\r\n        calendar: {\r\n            sameDay: '[Haut um] LT',\r\n            sameElse: 'L',\r\n            nextDay: '[Muer um] LT',\r\n            nextWeek: 'dddd [um] LT',\r\n            lastDay: '[Gëschter um] LT',\r\n            lastWeek: function () {\r\n                // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule\r\n                switch (this.day()) {\r\n                    case 2:\r\n                    case 4:\r\n                        return '[Leschten] dddd [um] LT';\r\n                    default:\r\n                        return '[Leschte] dddd [um] LT';\r\n                }\r\n            }\r\n        },\r\n        relativeTime : {\r\n            future : processFutureTime,\r\n            past : processPastTime,\r\n            s : 'e puer Sekonnen',\r\n            m : processRelativeTime,\r\n            mm : '%d Minutten',\r\n            h : processRelativeTime,\r\n            hh : '%d Stonnen',\r\n            d : processRelativeTime,\r\n            dd : '%d Deeg',\r\n            M : processRelativeTime,\r\n            MM : '%d Méint',\r\n            y : processRelativeTime,\r\n            yy : '%d Joer'\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal: '%d.',\r\n        week: {\r\n            dow: 1, // Monday is the first day of the week.\r\n            doy: 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return lb;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lb.js\n// module id = 305\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Lao [lo]\r\n//! author : Ryan Hart : https://github.com/ryanhart2\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var lo = moment.defineLocale('lo', {\r\n        months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),\r\n        monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),\r\n        weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\r\n        weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\r\n        weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'ວັນdddd D MMMM YYYY HH:mm'\r\n        },\r\n        meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,\r\n        isPM: function (input) {\r\n            return input === 'ຕອນແລງ';\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 12) {\r\n                return 'ຕອນເຊົ້າ';\r\n            } else {\r\n                return 'ຕອນແລງ';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[ມື້ນີ້ເວລາ] LT',\r\n            nextDay : '[ມື້ອື່ນເວລາ] LT',\r\n            nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',\r\n            lastDay : '[ມື້ວານນີ້ເວລາ] LT',\r\n            lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'ອີກ %s',\r\n            past : '%sຜ່ານມາ',\r\n            s : 'ບໍ່ເທົ່າໃດວິນາທີ',\r\n            m : '1 ນາທີ',\r\n            mm : '%d ນາທີ',\r\n            h : '1 ຊົ່ວໂມງ',\r\n            hh : '%d ຊົ່ວໂມງ',\r\n            d : '1 ມື້',\r\n            dd : '%d ມື້',\r\n            M : '1 ເດືອນ',\r\n            MM : '%d ເດືອນ',\r\n            y : '1 ປີ',\r\n            yy : '%d ປີ'\r\n        },\r\n        ordinalParse: /(ທີ່)\\d{1,2}/,\r\n        ordinal : function (number) {\r\n            return 'ທີ່' + number;\r\n        }\r\n    });\r\n\r\n    return lo;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lo.js\n// module id = 306\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Lithuanian [lt]\r\n//! author : Mindaugas Mozūras : https://github.com/mmozuras\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var units = {\r\n        'm' : 'minutė_minutės_minutę',\r\n        'mm': 'minutės_minučių_minutes',\r\n        'h' : 'valanda_valandos_valandą',\r\n        'hh': 'valandos_valandų_valandas',\r\n        'd' : 'diena_dienos_dieną',\r\n        'dd': 'dienos_dienų_dienas',\r\n        'M' : 'mėnuo_mėnesio_mėnesį',\r\n        'MM': 'mėnesiai_mėnesių_mėnesius',\r\n        'y' : 'metai_metų_metus',\r\n        'yy': 'metai_metų_metus'\r\n    };\r\n    function translateSeconds(number, withoutSuffix, key, isFuture) {\r\n        if (withoutSuffix) {\r\n            return 'kelios sekundės';\r\n        } else {\r\n            return isFuture ? 'kelių sekundžių' : 'kelias sekundes';\r\n        }\r\n    }\r\n    function translateSingular(number, withoutSuffix, key, isFuture) {\r\n        return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);\r\n    }\r\n    function special(number) {\r\n        return number % 10 === 0 || (number > 10 && number < 20);\r\n    }\r\n    function forms(key) {\r\n        return units[key].split('_');\r\n    }\r\n    function translate(number, withoutSuffix, key, isFuture) {\r\n        var result = number + ' ';\r\n        if (number === 1) {\r\n            return result + translateSingular(number, withoutSuffix, key[0], isFuture);\r\n        } else if (withoutSuffix) {\r\n            return result + (special(number) ? forms(key)[1] : forms(key)[0]);\r\n        } else {\r\n            if (isFuture) {\r\n                return result + forms(key)[1];\r\n            } else {\r\n                return result + (special(number) ? forms(key)[1] : forms(key)[2]);\r\n            }\r\n        }\r\n    }\r\n    var lt = moment.defineLocale('lt', {\r\n        months : {\r\n            format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),\r\n            standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),\r\n            isFormat: /D[oD]?(\\[[^\\[\\]]*\\]|\\s+)+MMMM?|MMMM?(\\[[^\\[\\]]*\\]|\\s+)+D[oD]?/\r\n        },\r\n        monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),\r\n        weekdays : {\r\n            format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),\r\n            standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),\r\n            isFormat: /dddd HH:mm/\r\n        },\r\n        weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),\r\n        weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'YYYY-MM-DD',\r\n            LL : 'YYYY [m.] MMMM D [d.]',\r\n            LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\r\n            LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',\r\n            l : 'YYYY-MM-DD',\r\n            ll : 'YYYY [m.] MMMM D [d.]',\r\n            lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\r\n            llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Šiandien] LT',\r\n            nextDay : '[Rytoj] LT',\r\n            nextWeek : 'dddd LT',\r\n            lastDay : '[Vakar] LT',\r\n            lastWeek : '[Praėjusį] dddd LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'po %s',\r\n            past : 'prieš %s',\r\n            s : translateSeconds,\r\n            m : translateSingular,\r\n            mm : translate,\r\n            h : translateSingular,\r\n            hh : translate,\r\n            d : translateSingular,\r\n            dd : translate,\r\n            M : translateSingular,\r\n            MM : translate,\r\n            y : translateSingular,\r\n            yy : translate\r\n        },\r\n        ordinalParse: /\\d{1,2}-oji/,\r\n        ordinal : function (number) {\r\n            return number + '-oji';\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return lt;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lt.js\n// module id = 307\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Latvian [lv]\r\n//! author : Kristaps Karlsons : https://github.com/skakri\r\n//! author : Jānis Elmeris : https://github.com/JanisE\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var units = {\r\n        'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),\r\n        'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),\r\n        'h': 'stundas_stundām_stunda_stundas'.split('_'),\r\n        'hh': 'stundas_stundām_stunda_stundas'.split('_'),\r\n        'd': 'dienas_dienām_diena_dienas'.split('_'),\r\n        'dd': 'dienas_dienām_diena_dienas'.split('_'),\r\n        'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\r\n        'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\r\n        'y': 'gada_gadiem_gads_gadi'.split('_'),\r\n        'yy': 'gada_gadiem_gads_gadi'.split('_')\r\n    };\r\n    /**\r\n     * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.\r\n     */\r\n    function format(forms, number, withoutSuffix) {\r\n        if (withoutSuffix) {\r\n            // E.g. \"21 minūte\", \"3 minūtes\".\r\n            return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];\r\n        } else {\r\n            // E.g. \"21 minūtes\" as in \"pēc 21 minūtes\".\r\n            // E.g. \"3 minūtēm\" as in \"pēc 3 minūtēm\".\r\n            return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];\r\n        }\r\n    }\r\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\r\n        return number + ' ' + format(units[key], number, withoutSuffix);\r\n    }\r\n    function relativeTimeWithSingular(number, withoutSuffix, key) {\r\n        return format(units[key], number, withoutSuffix);\r\n    }\r\n    function relativeSeconds(number, withoutSuffix) {\r\n        return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';\r\n    }\r\n\r\n    var lv = moment.defineLocale('lv', {\r\n        months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),\r\n        monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),\r\n        weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),\r\n        weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),\r\n        weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY.',\r\n            LL : 'YYYY. [gada] D. MMMM',\r\n            LLL : 'YYYY. [gada] D. MMMM, HH:mm',\r\n            LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Šodien pulksten] LT',\r\n            nextDay : '[Rīt pulksten] LT',\r\n            nextWeek : 'dddd [pulksten] LT',\r\n            lastDay : '[Vakar pulksten] LT',\r\n            lastWeek : '[Pagājušā] dddd [pulksten] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'pēc %s',\r\n            past : 'pirms %s',\r\n            s : relativeSeconds,\r\n            m : relativeTimeWithSingular,\r\n            mm : relativeTimeWithPlural,\r\n            h : relativeTimeWithSingular,\r\n            hh : relativeTimeWithPlural,\r\n            d : relativeTimeWithSingular,\r\n            dd : relativeTimeWithPlural,\r\n            M : relativeTimeWithSingular,\r\n            MM : relativeTimeWithPlural,\r\n            y : relativeTimeWithSingular,\r\n            yy : relativeTimeWithPlural\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return lv;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/lv.js\n// module id = 308\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Montenegrin [me]\r\n//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var translator = {\r\n        words: { //Different grammatical cases\r\n            m: ['jedan minut', 'jednog minuta'],\r\n            mm: ['minut', 'minuta', 'minuta'],\r\n            h: ['jedan sat', 'jednog sata'],\r\n            hh: ['sat', 'sata', 'sati'],\r\n            dd: ['dan', 'dana', 'dana'],\r\n            MM: ['mjesec', 'mjeseca', 'mjeseci'],\r\n            yy: ['godina', 'godine', 'godina']\r\n        },\r\n        correctGrammaticalCase: function (number, wordKey) {\r\n            return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);\r\n        },\r\n        translate: function (number, withoutSuffix, key) {\r\n            var wordKey = translator.words[key];\r\n            if (key.length === 1) {\r\n                return withoutSuffix ? wordKey[0] : wordKey[1];\r\n            } else {\r\n                return number + ' ' + translator.correctGrammaticalCase(number, wordKey);\r\n            }\r\n        }\r\n    };\r\n\r\n    var me = moment.defineLocale('me', {\r\n        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),\r\n        monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\r\n        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\r\n        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat: {\r\n            LT: 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L: 'DD.MM.YYYY',\r\n            LL: 'D. MMMM YYYY',\r\n            LLL: 'D. MMMM YYYY H:mm',\r\n            LLLL: 'dddd, D. MMMM YYYY H:mm'\r\n        },\r\n        calendar: {\r\n            sameDay: '[danas u] LT',\r\n            nextDay: '[sjutra u] LT',\r\n\r\n            nextWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[u] [nedjelju] [u] LT';\r\n                    case 3:\r\n                        return '[u] [srijedu] [u] LT';\r\n                    case 6:\r\n                        return '[u] [subotu] [u] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[u] dddd [u] LT';\r\n                }\r\n            },\r\n            lastDay  : '[juče u] LT',\r\n            lastWeek : function () {\r\n                var lastWeekDays = [\r\n                    '[prošle] [nedjelje] [u] LT',\r\n                    '[prošlog] [ponedjeljka] [u] LT',\r\n                    '[prošlog] [utorka] [u] LT',\r\n                    '[prošle] [srijede] [u] LT',\r\n                    '[prošlog] [četvrtka] [u] LT',\r\n                    '[prošlog] [petka] [u] LT',\r\n                    '[prošle] [subote] [u] LT'\r\n                ];\r\n                return lastWeekDays[this.day()];\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'za %s',\r\n            past   : 'prije %s',\r\n            s      : 'nekoliko sekundi',\r\n            m      : translator.translate,\r\n            mm     : translator.translate,\r\n            h      : translator.translate,\r\n            hh     : translator.translate,\r\n            d      : 'dan',\r\n            dd     : translator.translate,\r\n            M      : 'mjesec',\r\n            MM     : translator.translate,\r\n            y      : 'godinu',\r\n            yy     : translator.translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return me;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/me.js\n// module id = 309\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Maori [mi]\r\n//! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var mi = moment.defineLocale('mi', {\r\n        months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),\r\n        monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),\r\n        monthsRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\r\n        monthsStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\r\n        monthsShortRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\r\n        monthsShortStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,2}/i,\r\n        weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),\r\n        weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\r\n        weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\r\n        longDateFormat: {\r\n            LT: 'HH:mm',\r\n            LTS: 'HH:mm:ss',\r\n            L: 'DD/MM/YYYY',\r\n            LL: 'D MMMM YYYY',\r\n            LLL: 'D MMMM YYYY [i] HH:mm',\r\n            LLLL: 'dddd, D MMMM YYYY [i] HH:mm'\r\n        },\r\n        calendar: {\r\n            sameDay: '[i teie mahana, i] LT',\r\n            nextDay: '[apopo i] LT',\r\n            nextWeek: 'dddd [i] LT',\r\n            lastDay: '[inanahi i] LT',\r\n            lastWeek: 'dddd [whakamutunga i] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime: {\r\n            future: 'i roto i %s',\r\n            past: '%s i mua',\r\n            s: 'te hēkona ruarua',\r\n            m: 'he meneti',\r\n            mm: '%d meneti',\r\n            h: 'te haora',\r\n            hh: '%d haora',\r\n            d: 'he ra',\r\n            dd: '%d ra',\r\n            M: 'he marama',\r\n            MM: '%d marama',\r\n            y: 'he tau',\r\n            yy: '%d tau'\r\n        },\r\n        ordinalParse: /\\d{1,2}º/,\r\n        ordinal: '%dº',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return mi;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mi.js\n// module id = 310\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Macedonian [mk]\r\n//! author : Borislav Mickov : https://github.com/B0k0\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var mk = moment.defineLocale('mk', {\r\n        months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),\r\n        monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),\r\n        weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),\r\n        weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),\r\n        weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'D.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY H:mm',\r\n            LLLL : 'dddd, D MMMM YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Денес во] LT',\r\n            nextDay : '[Утре во] LT',\r\n            nextWeek : '[Во] dddd [во] LT',\r\n            lastDay : '[Вчера во] LT',\r\n            lastWeek : function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                    case 3:\r\n                    case 6:\r\n                        return '[Изминатата] dddd [во] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[Изминатиот] dddd [во] LT';\r\n                }\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'после %s',\r\n            past : 'пред %s',\r\n            s : 'неколку секунди',\r\n            m : 'минута',\r\n            mm : '%d минути',\r\n            h : 'час',\r\n            hh : '%d часа',\r\n            d : 'ден',\r\n            dd : '%d дена',\r\n            M : 'месец',\r\n            MM : '%d месеци',\r\n            y : 'година',\r\n            yy : '%d години'\r\n        },\r\n        ordinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\r\n        ordinal : function (number) {\r\n            var lastDigit = number % 10,\r\n                last2Digits = number % 100;\r\n            if (number === 0) {\r\n                return number + '-ев';\r\n            } else if (last2Digits === 0) {\r\n                return number + '-ен';\r\n            } else if (last2Digits > 10 && last2Digits < 20) {\r\n                return number + '-ти';\r\n            } else if (lastDigit === 1) {\r\n                return number + '-ви';\r\n            } else if (lastDigit === 2) {\r\n                return number + '-ри';\r\n            } else if (lastDigit === 7 || lastDigit === 8) {\r\n                return number + '-ми';\r\n            } else {\r\n                return number + '-ти';\r\n            }\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return mk;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mk.js\n// module id = 311\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Malayalam [ml]\r\n//! author : Floyd Pink : https://github.com/floydpink\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var ml = moment.defineLocale('ml', {\r\n        months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),\r\n        monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),\r\n        weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),\r\n        weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'A h:mm -നു',\r\n            LTS : 'A h:mm:ss -നു',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY, A h:mm -നു',\r\n            LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'\r\n        },\r\n        calendar : {\r\n            sameDay : '[ഇന്ന്] LT',\r\n            nextDay : '[നാളെ] LT',\r\n            nextWeek : 'dddd, LT',\r\n            lastDay : '[ഇന്നലെ] LT',\r\n            lastWeek : '[കഴിഞ്ഞ] dddd, LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s കഴിഞ്ഞ്',\r\n            past : '%s മുൻപ്',\r\n            s : 'അൽപ നിമിഷങ്ങൾ',\r\n            m : 'ഒരു മിനിറ്റ്',\r\n            mm : '%d മിനിറ്റ്',\r\n            h : 'ഒരു മണിക്കൂർ',\r\n            hh : '%d മണിക്കൂർ',\r\n            d : 'ഒരു ദിവസം',\r\n            dd : '%d ദിവസം',\r\n            M : 'ഒരു മാസം',\r\n            MM : '%d മാസം',\r\n            y : 'ഒരു വർഷം',\r\n            yy : '%d വർഷം'\r\n        },\r\n        meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if ((meridiem === 'രാത്രി' && hour >= 4) ||\r\n                    meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||\r\n                    meridiem === 'വൈകുന്നേരം') {\r\n                return hour + 12;\r\n            } else {\r\n                return hour;\r\n            }\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'രാത്രി';\r\n            } else if (hour < 12) {\r\n                return 'രാവിലെ';\r\n            } else if (hour < 17) {\r\n                return 'ഉച്ച കഴിഞ്ഞ്';\r\n            } else if (hour < 20) {\r\n                return 'വൈകുന്നേരം';\r\n            } else {\r\n                return 'രാത്രി';\r\n            }\r\n        }\r\n    });\r\n\r\n    return ml;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ml.js\n// module id = 312\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Marathi [mr]\r\n//! author : Harshad Kale : https://github.com/kalehv\r\n//! author : Vivek Athalye : https://github.com/vnathalye\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '१',\r\n        '2': '२',\r\n        '3': '३',\r\n        '4': '४',\r\n        '5': '५',\r\n        '6': '६',\r\n        '7': '७',\r\n        '8': '८',\r\n        '9': '९',\r\n        '0': '०'\r\n    },\r\n    numberMap = {\r\n        '१': '1',\r\n        '२': '2',\r\n        '३': '3',\r\n        '४': '4',\r\n        '५': '5',\r\n        '६': '6',\r\n        '७': '7',\r\n        '८': '8',\r\n        '९': '9',\r\n        '०': '0'\r\n    };\r\n\r\n    function relativeTimeMr(number, withoutSuffix, string, isFuture)\r\n    {\r\n        var output = '';\r\n        if (withoutSuffix) {\r\n            switch (string) {\r\n                case 's': output = 'काही सेकंद'; break;\r\n                case 'm': output = 'एक मिनिट'; break;\r\n                case 'mm': output = '%d मिनिटे'; break;\r\n                case 'h': output = 'एक तास'; break;\r\n                case 'hh': output = '%d तास'; break;\r\n                case 'd': output = 'एक दिवस'; break;\r\n                case 'dd': output = '%d दिवस'; break;\r\n                case 'M': output = 'एक महिना'; break;\r\n                case 'MM': output = '%d महिने'; break;\r\n                case 'y': output = 'एक वर्ष'; break;\r\n                case 'yy': output = '%d वर्षे'; break;\r\n            }\r\n        }\r\n        else {\r\n            switch (string) {\r\n                case 's': output = 'काही सेकंदां'; break;\r\n                case 'm': output = 'एका मिनिटा'; break;\r\n                case 'mm': output = '%d मिनिटां'; break;\r\n                case 'h': output = 'एका तासा'; break;\r\n                case 'hh': output = '%d तासां'; break;\r\n                case 'd': output = 'एका दिवसा'; break;\r\n                case 'dd': output = '%d दिवसां'; break;\r\n                case 'M': output = 'एका महिन्या'; break;\r\n                case 'MM': output = '%d महिन्यां'; break;\r\n                case 'y': output = 'एका वर्षा'; break;\r\n                case 'yy': output = '%d वर्षां'; break;\r\n            }\r\n        }\r\n        return output.replace(/%d/i, number);\r\n    }\r\n\r\n    var mr = moment.defineLocale('mr', {\r\n        months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),\r\n        monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\r\n        weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),\r\n        weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'A h:mm वाजता',\r\n            LTS : 'A h:mm:ss वाजता',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY, A h:mm वाजता',\r\n            LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'\r\n        },\r\n        calendar : {\r\n            sameDay : '[आज] LT',\r\n            nextDay : '[उद्या] LT',\r\n            nextWeek : 'dddd, LT',\r\n            lastDay : '[काल] LT',\r\n            lastWeek: '[मागील] dddd, LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future: '%sमध्ये',\r\n            past: '%sपूर्वी',\r\n            s: relativeTimeMr,\r\n            m: relativeTimeMr,\r\n            mm: relativeTimeMr,\r\n            h: relativeTimeMr,\r\n            hh: relativeTimeMr,\r\n            d: relativeTimeMr,\r\n            dd: relativeTimeMr,\r\n            M: relativeTimeMr,\r\n            MM: relativeTimeMr,\r\n            y: relativeTimeMr,\r\n            yy: relativeTimeMr\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/[१२३४५६७८९०]/g, function (match) {\r\n                return numberMap[match];\r\n            });\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            });\r\n        },\r\n        meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'रात्री') {\r\n                return hour < 4 ? hour : hour + 12;\r\n            } else if (meridiem === 'सकाळी') {\r\n                return hour;\r\n            } else if (meridiem === 'दुपारी') {\r\n                return hour >= 10 ? hour : hour + 12;\r\n            } else if (meridiem === 'सायंकाळी') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem: function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'रात्री';\r\n            } else if (hour < 10) {\r\n                return 'सकाळी';\r\n            } else if (hour < 17) {\r\n                return 'दुपारी';\r\n            } else if (hour < 20) {\r\n                return 'सायंकाळी';\r\n            } else {\r\n                return 'रात्री';\r\n            }\r\n        },\r\n        week : {\r\n            dow : 0, // Sunday is the first day of the week.\r\n            doy : 6  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return mr;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/mr.js\n// module id = 313\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Malay [ms-my]\r\n//! note : DEPRECATED, the correct one is [ms]\r\n//! author : Weldan Jamili : https://github.com/weldan\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var ms_my = moment.defineLocale('ms-my', {\r\n        months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\r\n        weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\r\n        weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\r\n        weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH.mm',\r\n            LTS : 'HH.mm.ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY [pukul] HH.mm',\r\n            LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'\r\n        },\r\n        meridiemParse: /pagi|tengahari|petang|malam/,\r\n        meridiemHour: function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'pagi') {\r\n                return hour;\r\n            } else if (meridiem === 'tengahari') {\r\n                return hour >= 11 ? hour : hour + 12;\r\n            } else if (meridiem === 'petang' || meridiem === 'malam') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours < 11) {\r\n                return 'pagi';\r\n            } else if (hours < 15) {\r\n                return 'tengahari';\r\n            } else if (hours < 19) {\r\n                return 'petang';\r\n            } else {\r\n                return 'malam';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[Hari ini pukul] LT',\r\n            nextDay : '[Esok pukul] LT',\r\n            nextWeek : 'dddd [pukul] LT',\r\n            lastDay : '[Kelmarin pukul] LT',\r\n            lastWeek : 'dddd [lepas pukul] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'dalam %s',\r\n            past : '%s yang lepas',\r\n            s : 'beberapa saat',\r\n            m : 'seminit',\r\n            mm : '%d minit',\r\n            h : 'sejam',\r\n            hh : '%d jam',\r\n            d : 'sehari',\r\n            dd : '%d hari',\r\n            M : 'sebulan',\r\n            MM : '%d bulan',\r\n            y : 'setahun',\r\n            yy : '%d tahun'\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ms_my;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ms-my.js\n// module id = 314\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Malay [ms]\r\n//! author : Weldan Jamili : https://github.com/weldan\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var ms = moment.defineLocale('ms', {\r\n        months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\r\n        weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\r\n        weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\r\n        weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH.mm',\r\n            LTS : 'HH.mm.ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY [pukul] HH.mm',\r\n            LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'\r\n        },\r\n        meridiemParse: /pagi|tengahari|petang|malam/,\r\n        meridiemHour: function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'pagi') {\r\n                return hour;\r\n            } else if (meridiem === 'tengahari') {\r\n                return hour >= 11 ? hour : hour + 12;\r\n            } else if (meridiem === 'petang' || meridiem === 'malam') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours < 11) {\r\n                return 'pagi';\r\n            } else if (hours < 15) {\r\n                return 'tengahari';\r\n            } else if (hours < 19) {\r\n                return 'petang';\r\n            } else {\r\n                return 'malam';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[Hari ini pukul] LT',\r\n            nextDay : '[Esok pukul] LT',\r\n            nextWeek : 'dddd [pukul] LT',\r\n            lastDay : '[Kelmarin pukul] LT',\r\n            lastWeek : 'dddd [lepas pukul] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'dalam %s',\r\n            past : '%s yang lepas',\r\n            s : 'beberapa saat',\r\n            m : 'seminit',\r\n            mm : '%d minit',\r\n            h : 'sejam',\r\n            hh : '%d jam',\r\n            d : 'sehari',\r\n            dd : '%d hari',\r\n            M : 'sebulan',\r\n            MM : '%d bulan',\r\n            y : 'setahun',\r\n            yy : '%d tahun'\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ms;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ms.js\n// module id = 315\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Burmese [my]\r\n//! author : Squar team, mysquar.com\r\n//! author : David Rossellat : https://github.com/gholadr\r\n//! author : Tin Aung Lin : https://github.com/thanyawzinmin\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '၁',\r\n        '2': '၂',\r\n        '3': '၃',\r\n        '4': '၄',\r\n        '5': '၅',\r\n        '6': '၆',\r\n        '7': '၇',\r\n        '8': '၈',\r\n        '9': '၉',\r\n        '0': '၀'\r\n    }, numberMap = {\r\n        '၁': '1',\r\n        '၂': '2',\r\n        '၃': '3',\r\n        '၄': '4',\r\n        '၅': '5',\r\n        '၆': '6',\r\n        '၇': '7',\r\n        '၈': '8',\r\n        '၉': '9',\r\n        '၀': '0'\r\n    };\r\n\r\n    var my = moment.defineLocale('my', {\r\n        months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),\r\n        monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),\r\n        weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),\r\n        weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\r\n        weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\r\n\r\n        longDateFormat: {\r\n            LT: 'HH:mm',\r\n            LTS: 'HH:mm:ss',\r\n            L: 'DD/MM/YYYY',\r\n            LL: 'D MMMM YYYY',\r\n            LLL: 'D MMMM YYYY HH:mm',\r\n            LLLL: 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar: {\r\n            sameDay: '[ယနေ.] LT [မှာ]',\r\n            nextDay: '[မနက်ဖြန်] LT [မှာ]',\r\n            nextWeek: 'dddd LT [မှာ]',\r\n            lastDay: '[မနေ.က] LT [မှာ]',\r\n            lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime: {\r\n            future: 'လာမည့် %s မှာ',\r\n            past: 'လွန်ခဲ့သော %s က',\r\n            s: 'စက္ကန်.အနည်းငယ်',\r\n            m: 'တစ်မိနစ်',\r\n            mm: '%d မိနစ်',\r\n            h: 'တစ်နာရီ',\r\n            hh: '%d နာရီ',\r\n            d: 'တစ်ရက်',\r\n            dd: '%d ရက်',\r\n            M: 'တစ်လ',\r\n            MM: '%d လ',\r\n            y: 'တစ်နှစ်',\r\n            yy: '%d နှစ်'\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {\r\n                return numberMap[match];\r\n            });\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            });\r\n        },\r\n        week: {\r\n            dow: 1, // Monday is the first day of the week.\r\n            doy: 4 // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return my;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/my.js\n// module id = 316\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Norwegian Bokmål [nb]\r\n//! authors : Espen Hovlandsdal : https://github.com/rexxars\r\n//!           Sigurd Gartmann : https://github.com/sigurdga\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var nb = moment.defineLocale('nb', {\r\n        months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\r\n        monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\r\n        weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),\r\n        weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY [kl.] HH:mm',\r\n            LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[i dag kl.] LT',\r\n            nextDay: '[i morgen kl.] LT',\r\n            nextWeek: 'dddd [kl.] LT',\r\n            lastDay: '[i går kl.] LT',\r\n            lastWeek: '[forrige] dddd [kl.] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'om %s',\r\n            past : '%s siden',\r\n            s : 'noen sekunder',\r\n            m : 'ett minutt',\r\n            mm : '%d minutter',\r\n            h : 'en time',\r\n            hh : '%d timer',\r\n            d : 'en dag',\r\n            dd : '%d dager',\r\n            M : 'en måned',\r\n            MM : '%d måneder',\r\n            y : 'ett år',\r\n            yy : '%d år'\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return nb;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nb.js\n// module id = 317\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Nepalese [ne]\r\n//! author : suvash : https://github.com/suvash\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '१',\r\n        '2': '२',\r\n        '3': '३',\r\n        '4': '४',\r\n        '5': '५',\r\n        '6': '६',\r\n        '7': '७',\r\n        '8': '८',\r\n        '9': '९',\r\n        '0': '०'\r\n    },\r\n    numberMap = {\r\n        '१': '1',\r\n        '२': '2',\r\n        '३': '3',\r\n        '४': '4',\r\n        '५': '5',\r\n        '६': '6',\r\n        '७': '7',\r\n        '८': '8',\r\n        '९': '9',\r\n        '०': '0'\r\n    };\r\n\r\n    var ne = moment.defineLocale('ne', {\r\n        months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),\r\n        monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),\r\n        weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),\r\n        weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'Aको h:mm बजे',\r\n            LTS : 'Aको h:mm:ss बजे',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY, Aको h:mm बजे',\r\n            LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/[१२३४५६७८९०]/g, function (match) {\r\n                return numberMap[match];\r\n            });\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            });\r\n        },\r\n        meridiemParse: /राति|बिहान|दिउँसो|साँझ/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'राति') {\r\n                return hour < 4 ? hour : hour + 12;\r\n            } else if (meridiem === 'बिहान') {\r\n                return hour;\r\n            } else if (meridiem === 'दिउँसो') {\r\n                return hour >= 10 ? hour : hour + 12;\r\n            } else if (meridiem === 'साँझ') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 3) {\r\n                return 'राति';\r\n            } else if (hour < 12) {\r\n                return 'बिहान';\r\n            } else if (hour < 16) {\r\n                return 'दिउँसो';\r\n            } else if (hour < 20) {\r\n                return 'साँझ';\r\n            } else {\r\n                return 'राति';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[आज] LT',\r\n            nextDay : '[भोलि] LT',\r\n            nextWeek : '[आउँदो] dddd[,] LT',\r\n            lastDay : '[हिजो] LT',\r\n            lastWeek : '[गएको] dddd[,] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%sमा',\r\n            past : '%s अगाडि',\r\n            s : 'केही क्षण',\r\n            m : 'एक मिनेट',\r\n            mm : '%d मिनेट',\r\n            h : 'एक घण्टा',\r\n            hh : '%d घण्टा',\r\n            d : 'एक दिन',\r\n            dd : '%d दिन',\r\n            M : 'एक महिना',\r\n            MM : '%d महिना',\r\n            y : 'एक बर्ष',\r\n            yy : '%d बर्ष'\r\n        },\r\n        week : {\r\n            dow : 0, // Sunday is the first day of the week.\r\n            doy : 6  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ne;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ne.js\n// module id = 318\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Dutch [nl]\r\n//! author : Joris Röling : https://github.com/jorisroling\r\n//! author : Jacob Middag : https://github.com/middagj\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),\r\n        monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');\r\n\r\n    var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];\r\n    var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\r\n\r\n    var nl = moment.defineLocale('nl', {\r\n        months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),\r\n        monthsShort : function (m, format) {\r\n            if (/-MMM-/.test(format)) {\r\n                return monthsShortWithoutDots[m.month()];\r\n            } else {\r\n                return monthsShortWithDots[m.month()];\r\n            }\r\n        },\r\n\r\n        monthsRegex: monthsRegex,\r\n        monthsShortRegex: monthsRegex,\r\n        monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,\r\n        monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\r\n\r\n        monthsParse : monthsParse,\r\n        longMonthsParse : monthsParse,\r\n        shortMonthsParse : monthsParse,\r\n\r\n        weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),\r\n        weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),\r\n        weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD-MM-YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[vandaag om] LT',\r\n            nextDay: '[morgen om] LT',\r\n            nextWeek: 'dddd [om] LT',\r\n            lastDay: '[gisteren om] LT',\r\n            lastWeek: '[afgelopen] dddd [om] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'over %s',\r\n            past : '%s geleden',\r\n            s : 'een paar seconden',\r\n            m : 'één minuut',\r\n            mm : '%d minuten',\r\n            h : 'één uur',\r\n            hh : '%d uur',\r\n            d : 'één dag',\r\n            dd : '%d dagen',\r\n            M : 'één maand',\r\n            MM : '%d maanden',\r\n            y : 'één jaar',\r\n            yy : '%d jaar'\r\n        },\r\n        ordinalParse: /\\d{1,2}(ste|de)/,\r\n        ordinal : function (number) {\r\n            return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return nl;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nl.js\n// module id = 319\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Nynorsk [nn]\r\n//! author : https://github.com/mechuwind\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var nn = moment.defineLocale('nn', {\r\n        months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\r\n        monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\r\n        weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),\r\n        weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),\r\n        weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY [kl.] H:mm',\r\n            LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[I dag klokka] LT',\r\n            nextDay: '[I morgon klokka] LT',\r\n            nextWeek: 'dddd [klokka] LT',\r\n            lastDay: '[I går klokka] LT',\r\n            lastWeek: '[Føregåande] dddd [klokka] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'om %s',\r\n            past : '%s sidan',\r\n            s : 'nokre sekund',\r\n            m : 'eit minutt',\r\n            mm : '%d minutt',\r\n            h : 'ein time',\r\n            hh : '%d timar',\r\n            d : 'ein dag',\r\n            dd : '%d dagar',\r\n            M : 'ein månad',\r\n            MM : '%d månader',\r\n            y : 'eit år',\r\n            yy : '%d år'\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return nn;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/nn.js\n// module id = 320\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Punjabi (India) [pa-in]\r\n//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '੧',\r\n        '2': '੨',\r\n        '3': '੩',\r\n        '4': '੪',\r\n        '5': '੫',\r\n        '6': '੬',\r\n        '7': '੭',\r\n        '8': '੮',\r\n        '9': '੯',\r\n        '0': '੦'\r\n    },\r\n    numberMap = {\r\n        '੧': '1',\r\n        '੨': '2',\r\n        '੩': '3',\r\n        '੪': '4',\r\n        '੫': '5',\r\n        '੬': '6',\r\n        '੭': '7',\r\n        '੮': '8',\r\n        '੯': '9',\r\n        '੦': '0'\r\n    };\r\n\r\n    var pa_in = moment.defineLocale('pa-in', {\r\n        // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.\r\n        months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),\r\n        monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),\r\n        weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),\r\n        weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\r\n        weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'A h:mm ਵਜੇ',\r\n            LTS : 'A h:mm:ss ਵਜੇ',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',\r\n            LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'\r\n        },\r\n        calendar : {\r\n            sameDay : '[ਅਜ] LT',\r\n            nextDay : '[ਕਲ] LT',\r\n            nextWeek : 'dddd, LT',\r\n            lastDay : '[ਕਲ] LT',\r\n            lastWeek : '[ਪਿਛਲੇ] dddd, LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s ਵਿੱਚ',\r\n            past : '%s ਪਿਛਲੇ',\r\n            s : 'ਕੁਝ ਸਕਿੰਟ',\r\n            m : 'ਇਕ ਮਿੰਟ',\r\n            mm : '%d ਮਿੰਟ',\r\n            h : 'ਇੱਕ ਘੰਟਾ',\r\n            hh : '%d ਘੰਟੇ',\r\n            d : 'ਇੱਕ ਦਿਨ',\r\n            dd : '%d ਦਿਨ',\r\n            M : 'ਇੱਕ ਮਹੀਨਾ',\r\n            MM : '%d ਮਹੀਨੇ',\r\n            y : 'ਇੱਕ ਸਾਲ',\r\n            yy : '%d ਸਾਲ'\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {\r\n                return numberMap[match];\r\n            });\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            });\r\n        },\r\n        // Punjabi notation for meridiems are quite fuzzy in practice. While there exists\r\n        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.\r\n        meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'ਰਾਤ') {\r\n                return hour < 4 ? hour : hour + 12;\r\n            } else if (meridiem === 'ਸਵੇਰ') {\r\n                return hour;\r\n            } else if (meridiem === 'ਦੁਪਹਿਰ') {\r\n                return hour >= 10 ? hour : hour + 12;\r\n            } else if (meridiem === 'ਸ਼ਾਮ') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'ਰਾਤ';\r\n            } else if (hour < 10) {\r\n                return 'ਸਵੇਰ';\r\n            } else if (hour < 17) {\r\n                return 'ਦੁਪਹਿਰ';\r\n            } else if (hour < 20) {\r\n                return 'ਸ਼ਾਮ';\r\n            } else {\r\n                return 'ਰਾਤ';\r\n            }\r\n        },\r\n        week : {\r\n            dow : 0, // Sunday is the first day of the week.\r\n            doy : 6  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return pa_in;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pa-in.js\n// module id = 321\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Polish [pl]\r\n//! author : Rafal Hirsz : https://github.com/evoL\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),\r\n        monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');\r\n    function plural(n) {\r\n        return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);\r\n    }\r\n    function translate(number, withoutSuffix, key) {\r\n        var result = number + ' ';\r\n        switch (key) {\r\n            case 'm':\r\n                return withoutSuffix ? 'minuta' : 'minutę';\r\n            case 'mm':\r\n                return result + (plural(number) ? 'minuty' : 'minut');\r\n            case 'h':\r\n                return withoutSuffix  ? 'godzina'  : 'godzinę';\r\n            case 'hh':\r\n                return result + (plural(number) ? 'godziny' : 'godzin');\r\n            case 'MM':\r\n                return result + (plural(number) ? 'miesiące' : 'miesięcy');\r\n            case 'yy':\r\n                return result + (plural(number) ? 'lata' : 'lat');\r\n        }\r\n    }\r\n\r\n    var pl = moment.defineLocale('pl', {\r\n        months : function (momentToFormat, format) {\r\n            if (format === '') {\r\n                // Hack: if format empty we know this is used to generate\r\n                // RegExp by moment. Give then back both valid forms of months\r\n                // in RegExp ready format.\r\n                return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';\r\n            } else if (/D MMMM/.test(format)) {\r\n                return monthsSubjective[momentToFormat.month()];\r\n            } else {\r\n                return monthsNominative[momentToFormat.month()];\r\n            }\r\n        },\r\n        monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),\r\n        weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),\r\n        weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),\r\n        weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Dziś o] LT',\r\n            nextDay: '[Jutro o] LT',\r\n            nextWeek: '[W] dddd [o] LT',\r\n            lastDay: '[Wczoraj o] LT',\r\n            lastWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[W zeszłą niedzielę o] LT';\r\n                    case 3:\r\n                        return '[W zeszłą środę o] LT';\r\n                    case 6:\r\n                        return '[W zeszłą sobotę o] LT';\r\n                    default:\r\n                        return '[W zeszły] dddd [o] LT';\r\n                }\r\n            },\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'za %s',\r\n            past : '%s temu',\r\n            s : 'kilka sekund',\r\n            m : translate,\r\n            mm : translate,\r\n            h : translate,\r\n            hh : translate,\r\n            d : '1 dzień',\r\n            dd : '%d dni',\r\n            M : 'miesiąc',\r\n            MM : translate,\r\n            y : 'rok',\r\n            yy : translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return pl;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pl.js\n// module id = 322\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Portuguese (Brazil) [pt-br]\r\n//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var pt_br = moment.defineLocale('pt-br', {\r\n        months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),\r\n        monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\r\n        weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),\r\n        weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\r\n        weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D [de] MMMM [de] YYYY',\r\n            LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',\r\n            LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Hoje às] LT',\r\n            nextDay: '[Amanhã às] LT',\r\n            nextWeek: 'dddd [às] LT',\r\n            lastDay: '[Ontem às] LT',\r\n            lastWeek: function () {\r\n                return (this.day() === 0 || this.day() === 6) ?\r\n                    '[Último] dddd [às] LT' : // Saturday + Sunday\r\n                    '[Última] dddd [às] LT'; // Monday - Friday\r\n            },\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'em %s',\r\n            past : '%s atrás',\r\n            s : 'poucos segundos',\r\n            m : 'um minuto',\r\n            mm : '%d minutos',\r\n            h : 'uma hora',\r\n            hh : '%d horas',\r\n            d : 'um dia',\r\n            dd : '%d dias',\r\n            M : 'um mês',\r\n            MM : '%d meses',\r\n            y : 'um ano',\r\n            yy : '%d anos'\r\n        },\r\n        ordinalParse: /\\d{1,2}º/,\r\n        ordinal : '%dº'\r\n    });\r\n\r\n    return pt_br;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pt-br.js\n// module id = 323\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Portuguese [pt]\r\n//! author : Jefferson : https://github.com/jalex79\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var pt = moment.defineLocale('pt', {\r\n        months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),\r\n        monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\r\n        weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),\r\n        weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\r\n        weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D [de] MMMM [de] YYYY',\r\n            LLL : 'D [de] MMMM [de] YYYY HH:mm',\r\n            LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Hoje às] LT',\r\n            nextDay: '[Amanhã às] LT',\r\n            nextWeek: 'dddd [às] LT',\r\n            lastDay: '[Ontem às] LT',\r\n            lastWeek: function () {\r\n                return (this.day() === 0 || this.day() === 6) ?\r\n                    '[Último] dddd [às] LT' : // Saturday + Sunday\r\n                    '[Última] dddd [às] LT'; // Monday - Friday\r\n            },\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'em %s',\r\n            past : 'há %s',\r\n            s : 'segundos',\r\n            m : 'um minuto',\r\n            mm : '%d minutos',\r\n            h : 'uma hora',\r\n            hh : '%d horas',\r\n            d : 'um dia',\r\n            dd : '%d dias',\r\n            M : 'um mês',\r\n            MM : '%d meses',\r\n            y : 'um ano',\r\n            yy : '%d anos'\r\n        },\r\n        ordinalParse: /\\d{1,2}º/,\r\n        ordinal : '%dº',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return pt;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/pt.js\n// module id = 324\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Romanian [ro]\r\n//! author : Vlad Gurdiga : https://github.com/gurdiga\r\n//! author : Valentin Agachi : https://github.com/avaly\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\r\n        var format = {\r\n                'mm': 'minute',\r\n                'hh': 'ore',\r\n                'dd': 'zile',\r\n                'MM': 'luni',\r\n                'yy': 'ani'\r\n            },\r\n            separator = ' ';\r\n        if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {\r\n            separator = ' de ';\r\n        }\r\n        return number + separator + format[key];\r\n    }\r\n\r\n    var ro = moment.defineLocale('ro', {\r\n        months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),\r\n        monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),\r\n        monthsParseExact: true,\r\n        weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),\r\n        weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),\r\n        weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY H:mm',\r\n            LLLL : 'dddd, D MMMM YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[azi la] LT',\r\n            nextDay: '[mâine la] LT',\r\n            nextWeek: 'dddd [la] LT',\r\n            lastDay: '[ieri la] LT',\r\n            lastWeek: '[fosta] dddd [la] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'peste %s',\r\n            past : '%s în urmă',\r\n            s : 'câteva secunde',\r\n            m : 'un minut',\r\n            mm : relativeTimeWithPlural,\r\n            h : 'o oră',\r\n            hh : relativeTimeWithPlural,\r\n            d : 'o zi',\r\n            dd : relativeTimeWithPlural,\r\n            M : 'o lună',\r\n            MM : relativeTimeWithPlural,\r\n            y : 'un an',\r\n            yy : relativeTimeWithPlural\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ro;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ro.js\n// module id = 325\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Russian [ru]\r\n//! author : Viktorminator : https://github.com/Viktorminator\r\n//! Author : Menelion Elensúle : https://github.com/Oire\r\n//! author : Коренберг Марк : https://github.com/socketpair\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function plural(word, num) {\r\n        var forms = word.split('_');\r\n        return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);\r\n    }\r\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\r\n        var format = {\r\n            'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',\r\n            'hh': 'час_часа_часов',\r\n            'dd': 'день_дня_дней',\r\n            'MM': 'месяц_месяца_месяцев',\r\n            'yy': 'год_года_лет'\r\n        };\r\n        if (key === 'm') {\r\n            return withoutSuffix ? 'минута' : 'минуту';\r\n        }\r\n        else {\r\n            return number + ' ' + plural(format[key], +number);\r\n        }\r\n    }\r\n    var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];\r\n\r\n    // http://new.gramota.ru/spravka/rules/139-prop : § 103\r\n    // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637\r\n    // CLDR data:          http://www.unicode.org/cldr/charts/28/summary/ru.html#1753\r\n    var ru = moment.defineLocale('ru', {\r\n        months : {\r\n            format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),\r\n            standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')\r\n        },\r\n        monthsShort : {\r\n            // по CLDR именно \"июл.\" и \"июн.\", но какой смысл менять букву на точку ?\r\n            format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),\r\n            standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')\r\n        },\r\n        weekdays : {\r\n            standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),\r\n            format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),\r\n            isFormat: /\\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\\] ?dddd/\r\n        },\r\n        weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\r\n        weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\r\n        monthsParse : monthsParse,\r\n        longMonthsParse : monthsParse,\r\n        shortMonthsParse : monthsParse,\r\n\r\n        // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки\r\n        monthsRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\r\n\r\n        // копия предыдущего\r\n        monthsShortRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\r\n\r\n        // полные названия с падежами\r\n        monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,\r\n\r\n        // Выражение, которое соотвествует только сокращённым формам\r\n        monthsShortStrictRegex: /^(янв\\.|февр?\\.|мар[т.]|апр\\.|ма[яй]|июн[ья.]|июл[ья.]|авг\\.|сент?\\.|окт\\.|нояб?\\.|дек\\.)/i,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY г.',\r\n            LLL : 'D MMMM YYYY г., HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY г., HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Сегодня в] LT',\r\n            nextDay: '[Завтра в] LT',\r\n            lastDay: '[Вчера в] LT',\r\n            nextWeek: function (now) {\r\n                if (now.week() !== this.week()) {\r\n                    switch (this.day()) {\r\n                        case 0:\r\n                            return '[В следующее] dddd [в] LT';\r\n                        case 1:\r\n                        case 2:\r\n                        case 4:\r\n                            return '[В следующий] dddd [в] LT';\r\n                        case 3:\r\n                        case 5:\r\n                        case 6:\r\n                            return '[В следующую] dddd [в] LT';\r\n                    }\r\n                } else {\r\n                    if (this.day() === 2) {\r\n                        return '[Во] dddd [в] LT';\r\n                    } else {\r\n                        return '[В] dddd [в] LT';\r\n                    }\r\n                }\r\n            },\r\n            lastWeek: function (now) {\r\n                if (now.week() !== this.week()) {\r\n                    switch (this.day()) {\r\n                        case 0:\r\n                            return '[В прошлое] dddd [в] LT';\r\n                        case 1:\r\n                        case 2:\r\n                        case 4:\r\n                            return '[В прошлый] dddd [в] LT';\r\n                        case 3:\r\n                        case 5:\r\n                        case 6:\r\n                            return '[В прошлую] dddd [в] LT';\r\n                    }\r\n                } else {\r\n                    if (this.day() === 2) {\r\n                        return '[Во] dddd [в] LT';\r\n                    } else {\r\n                        return '[В] dddd [в] LT';\r\n                    }\r\n                }\r\n            },\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'через %s',\r\n            past : '%s назад',\r\n            s : 'несколько секунд',\r\n            m : relativeTimeWithPlural,\r\n            mm : relativeTimeWithPlural,\r\n            h : 'час',\r\n            hh : relativeTimeWithPlural,\r\n            d : 'день',\r\n            dd : relativeTimeWithPlural,\r\n            M : 'месяц',\r\n            MM : relativeTimeWithPlural,\r\n            y : 'год',\r\n            yy : relativeTimeWithPlural\r\n        },\r\n        meridiemParse: /ночи|утра|дня|вечера/i,\r\n        isPM : function (input) {\r\n            return /^(дня|вечера)$/.test(input);\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'ночи';\r\n            } else if (hour < 12) {\r\n                return 'утра';\r\n            } else if (hour < 17) {\r\n                return 'дня';\r\n            } else {\r\n                return 'вечера';\r\n            }\r\n        },\r\n        ordinalParse: /\\d{1,2}-(й|го|я)/,\r\n        ordinal: function (number, period) {\r\n            switch (period) {\r\n                case 'M':\r\n                case 'd':\r\n                case 'DDD':\r\n                    return number + '-й';\r\n                case 'D':\r\n                    return number + '-го';\r\n                case 'w':\r\n                case 'W':\r\n                    return number + '-я';\r\n                default:\r\n                    return number;\r\n            }\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ru;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ru.js\n// module id = 326\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Northern Sami [se]\r\n//! authors : Bård Rolstad Henriksen : https://github.com/karamell\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n\r\n    var se = moment.defineLocale('se', {\r\n        months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),\r\n        monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),\r\n        weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),\r\n        weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),\r\n        weekdaysMin : 's_v_m_g_d_b_L'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'MMMM D. [b.] YYYY',\r\n            LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',\r\n            LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[otne ti] LT',\r\n            nextDay: '[ihttin ti] LT',\r\n            nextWeek: 'dddd [ti] LT',\r\n            lastDay: '[ikte ti] LT',\r\n            lastWeek: '[ovddit] dddd [ti] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s geažes',\r\n            past : 'maŋit %s',\r\n            s : 'moadde sekunddat',\r\n            m : 'okta minuhta',\r\n            mm : '%d minuhtat',\r\n            h : 'okta diimmu',\r\n            hh : '%d diimmut',\r\n            d : 'okta beaivi',\r\n            dd : '%d beaivvit',\r\n            M : 'okta mánnu',\r\n            MM : '%d mánut',\r\n            y : 'okta jahki',\r\n            yy : '%d jagit'\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return se;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/se.js\n// module id = 327\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Sinhalese [si]\r\n//! author : Sampath Sitinamaluwa : https://github.com/sampathsris\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    /*jshint -W100*/\r\n    var si = moment.defineLocale('si', {\r\n        months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),\r\n        monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),\r\n        weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),\r\n        weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),\r\n        weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'a h:mm',\r\n            LTS : 'a h:mm:ss',\r\n            L : 'YYYY/MM/DD',\r\n            LL : 'YYYY MMMM D',\r\n            LLL : 'YYYY MMMM D, a h:mm',\r\n            LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'\r\n        },\r\n        calendar : {\r\n            sameDay : '[අද] LT[ට]',\r\n            nextDay : '[හෙට] LT[ට]',\r\n            nextWeek : 'dddd LT[ට]',\r\n            lastDay : '[ඊයේ] LT[ට]',\r\n            lastWeek : '[පසුගිය] dddd LT[ට]',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%sකින්',\r\n            past : '%sකට පෙර',\r\n            s : 'තත්පර කිහිපය',\r\n            m : 'මිනිත්තුව',\r\n            mm : 'මිනිත්තු %d',\r\n            h : 'පැය',\r\n            hh : 'පැය %d',\r\n            d : 'දිනය',\r\n            dd : 'දින %d',\r\n            M : 'මාසය',\r\n            MM : 'මාස %d',\r\n            y : 'වසර',\r\n            yy : 'වසර %d'\r\n        },\r\n        ordinalParse: /\\d{1,2} වැනි/,\r\n        ordinal : function (number) {\r\n            return number + ' වැනි';\r\n        },\r\n        meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,\r\n        isPM : function (input) {\r\n            return input === 'ප.ව.' || input === 'පස් වරු';\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours > 11) {\r\n                return isLower ? 'ප.ව.' : 'පස් වරු';\r\n            } else {\r\n                return isLower ? 'පෙ.ව.' : 'පෙර වරු';\r\n            }\r\n        }\r\n    });\r\n\r\n    return si;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/si.js\n// module id = 328\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Slovak [sk]\r\n//! author : Martin Minka : https://github.com/k2s\r\n//! based on work of petrbela : https://github.com/petrbela\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),\r\n        monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');\r\n    function plural(n) {\r\n        return (n > 1) && (n < 5);\r\n    }\r\n    function translate(number, withoutSuffix, key, isFuture) {\r\n        var result = number + ' ';\r\n        switch (key) {\r\n            case 's':  // a few seconds / in a few seconds / a few seconds ago\r\n                return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';\r\n            case 'm':  // a minute / in a minute / a minute ago\r\n                return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');\r\n            case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\r\n                if (withoutSuffix || isFuture) {\r\n                    return result + (plural(number) ? 'minúty' : 'minút');\r\n                } else {\r\n                    return result + 'minútami';\r\n                }\r\n                break;\r\n            case 'h':  // an hour / in an hour / an hour ago\r\n                return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');\r\n            case 'hh': // 9 hours / in 9 hours / 9 hours ago\r\n                if (withoutSuffix || isFuture) {\r\n                    return result + (plural(number) ? 'hodiny' : 'hodín');\r\n                } else {\r\n                    return result + 'hodinami';\r\n                }\r\n                break;\r\n            case 'd':  // a day / in a day / a day ago\r\n                return (withoutSuffix || isFuture) ? 'deň' : 'dňom';\r\n            case 'dd': // 9 days / in 9 days / 9 days ago\r\n                if (withoutSuffix || isFuture) {\r\n                    return result + (plural(number) ? 'dni' : 'dní');\r\n                } else {\r\n                    return result + 'dňami';\r\n                }\r\n                break;\r\n            case 'M':  // a month / in a month / a month ago\r\n                return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';\r\n            case 'MM': // 9 months / in 9 months / 9 months ago\r\n                if (withoutSuffix || isFuture) {\r\n                    return result + (plural(number) ? 'mesiace' : 'mesiacov');\r\n                } else {\r\n                    return result + 'mesiacmi';\r\n                }\r\n                break;\r\n            case 'y':  // a year / in a year / a year ago\r\n                return (withoutSuffix || isFuture) ? 'rok' : 'rokom';\r\n            case 'yy': // 9 years / in 9 years / 9 years ago\r\n                if (withoutSuffix || isFuture) {\r\n                    return result + (plural(number) ? 'roky' : 'rokov');\r\n                } else {\r\n                    return result + 'rokmi';\r\n                }\r\n                break;\r\n        }\r\n    }\r\n\r\n    var sk = moment.defineLocale('sk', {\r\n        months : months,\r\n        monthsShort : monthsShort,\r\n        weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),\r\n        weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),\r\n        weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),\r\n        longDateFormat : {\r\n            LT: 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY H:mm',\r\n            LLLL : 'dddd D. MMMM YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[dnes o] LT',\r\n            nextDay: '[zajtra o] LT',\r\n            nextWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[v nedeľu o] LT';\r\n                    case 1:\r\n                    case 2:\r\n                        return '[v] dddd [o] LT';\r\n                    case 3:\r\n                        return '[v stredu o] LT';\r\n                    case 4:\r\n                        return '[vo štvrtok o] LT';\r\n                    case 5:\r\n                        return '[v piatok o] LT';\r\n                    case 6:\r\n                        return '[v sobotu o] LT';\r\n                }\r\n            },\r\n            lastDay: '[včera o] LT',\r\n            lastWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[minulú nedeľu o] LT';\r\n                    case 1:\r\n                    case 2:\r\n                        return '[minulý] dddd [o] LT';\r\n                    case 3:\r\n                        return '[minulú stredu o] LT';\r\n                    case 4:\r\n                    case 5:\r\n                        return '[minulý] dddd [o] LT';\r\n                    case 6:\r\n                        return '[minulú sobotu o] LT';\r\n                }\r\n            },\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'za %s',\r\n            past : 'pred %s',\r\n            s : translate,\r\n            m : translate,\r\n            mm : translate,\r\n            h : translate,\r\n            hh : translate,\r\n            d : translate,\r\n            dd : translate,\r\n            M : translate,\r\n            MM : translate,\r\n            y : translate,\r\n            yy : translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return sk;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sk.js\n// module id = 329\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Slovenian [sl]\r\n//! author : Robert Sedovšek : https://github.com/sedovsek\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\r\n        var result = number + ' ';\r\n        switch (key) {\r\n            case 's':\r\n                return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';\r\n            case 'm':\r\n                return withoutSuffix ? 'ena minuta' : 'eno minuto';\r\n            case 'mm':\r\n                if (number === 1) {\r\n                    result += withoutSuffix ? 'minuta' : 'minuto';\r\n                } else if (number === 2) {\r\n                    result += withoutSuffix || isFuture ? 'minuti' : 'minutama';\r\n                } else if (number < 5) {\r\n                    result += withoutSuffix || isFuture ? 'minute' : 'minutami';\r\n                } else {\r\n                    result += withoutSuffix || isFuture ? 'minut' : 'minutami';\r\n                }\r\n                return result;\r\n            case 'h':\r\n                return withoutSuffix ? 'ena ura' : 'eno uro';\r\n            case 'hh':\r\n                if (number === 1) {\r\n                    result += withoutSuffix ? 'ura' : 'uro';\r\n                } else if (number === 2) {\r\n                    result += withoutSuffix || isFuture ? 'uri' : 'urama';\r\n                } else if (number < 5) {\r\n                    result += withoutSuffix || isFuture ? 'ure' : 'urami';\r\n                } else {\r\n                    result += withoutSuffix || isFuture ? 'ur' : 'urami';\r\n                }\r\n                return result;\r\n            case 'd':\r\n                return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';\r\n            case 'dd':\r\n                if (number === 1) {\r\n                    result += withoutSuffix || isFuture ? 'dan' : 'dnem';\r\n                } else if (number === 2) {\r\n                    result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';\r\n                } else {\r\n                    result += withoutSuffix || isFuture ? 'dni' : 'dnevi';\r\n                }\r\n                return result;\r\n            case 'M':\r\n                return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';\r\n            case 'MM':\r\n                if (number === 1) {\r\n                    result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';\r\n                } else if (number === 2) {\r\n                    result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';\r\n                } else if (number < 5) {\r\n                    result += withoutSuffix || isFuture ? 'mesece' : 'meseci';\r\n                } else {\r\n                    result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';\r\n                }\r\n                return result;\r\n            case 'y':\r\n                return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';\r\n            case 'yy':\r\n                if (number === 1) {\r\n                    result += withoutSuffix || isFuture ? 'leto' : 'letom';\r\n                } else if (number === 2) {\r\n                    result += withoutSuffix || isFuture ? 'leti' : 'letoma';\r\n                } else if (number < 5) {\r\n                    result += withoutSuffix || isFuture ? 'leta' : 'leti';\r\n                } else {\r\n                    result += withoutSuffix || isFuture ? 'let' : 'leti';\r\n                }\r\n                return result;\r\n        }\r\n    }\r\n\r\n    var sl = moment.defineLocale('sl', {\r\n        months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),\r\n        monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),\r\n        monthsParseExact: true,\r\n        weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),\r\n        weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),\r\n        weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM YYYY',\r\n            LLL : 'D. MMMM YYYY H:mm',\r\n            LLLL : 'dddd, D. MMMM YYYY H:mm'\r\n        },\r\n        calendar : {\r\n            sameDay  : '[danes ob] LT',\r\n            nextDay  : '[jutri ob] LT',\r\n\r\n            nextWeek : function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[v] [nedeljo] [ob] LT';\r\n                    case 3:\r\n                        return '[v] [sredo] [ob] LT';\r\n                    case 6:\r\n                        return '[v] [soboto] [ob] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[v] dddd [ob] LT';\r\n                }\r\n            },\r\n            lastDay  : '[včeraj ob] LT',\r\n            lastWeek : function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[prejšnjo] [nedeljo] [ob] LT';\r\n                    case 3:\r\n                        return '[prejšnjo] [sredo] [ob] LT';\r\n                    case 6:\r\n                        return '[prejšnjo] [soboto] [ob] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[prejšnji] dddd [ob] LT';\r\n                }\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'čez %s',\r\n            past   : 'pred %s',\r\n            s      : processRelativeTime,\r\n            m      : processRelativeTime,\r\n            mm     : processRelativeTime,\r\n            h      : processRelativeTime,\r\n            hh     : processRelativeTime,\r\n            d      : processRelativeTime,\r\n            dd     : processRelativeTime,\r\n            M      : processRelativeTime,\r\n            MM     : processRelativeTime,\r\n            y      : processRelativeTime,\r\n            yy     : processRelativeTime\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return sl;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sl.js\n// module id = 330\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Albanian [sq]\r\n//! author : Flakërim Ismani : https://github.com/flakerimi\r\n//! author : Menelion Elensúle : https://github.com/Oire\r\n//! author : Oerd Cukalla : https://github.com/oerd\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var sq = moment.defineLocale('sq', {\r\n        months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),\r\n        monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),\r\n        weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),\r\n        weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),\r\n        weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),\r\n        weekdaysParseExact : true,\r\n        meridiemParse: /PD|MD/,\r\n        isPM: function (input) {\r\n            return input.charAt(0) === 'M';\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            return hours < 12 ? 'PD' : 'MD';\r\n        },\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Sot në] LT',\r\n            nextDay : '[Nesër në] LT',\r\n            nextWeek : 'dddd [në] LT',\r\n            lastDay : '[Dje në] LT',\r\n            lastWeek : 'dddd [e kaluar në] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'në %s',\r\n            past : '%s më parë',\r\n            s : 'disa sekonda',\r\n            m : 'një minutë',\r\n            mm : '%d minuta',\r\n            h : 'një orë',\r\n            hh : '%d orë',\r\n            d : 'një ditë',\r\n            dd : '%d ditë',\r\n            M : 'një muaj',\r\n            MM : '%d muaj',\r\n            y : 'një vit',\r\n            yy : '%d vite'\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return sq;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sq.js\n// module id = 331\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Serbian Cyrillic [sr-cyrl]\r\n//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var translator = {\r\n        words: { //Different grammatical cases\r\n            m: ['један минут', 'једне минуте'],\r\n            mm: ['минут', 'минуте', 'минута'],\r\n            h: ['један сат', 'једног сата'],\r\n            hh: ['сат', 'сата', 'сати'],\r\n            dd: ['дан', 'дана', 'дана'],\r\n            MM: ['месец', 'месеца', 'месеци'],\r\n            yy: ['година', 'године', 'година']\r\n        },\r\n        correctGrammaticalCase: function (number, wordKey) {\r\n            return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);\r\n        },\r\n        translate: function (number, withoutSuffix, key) {\r\n            var wordKey = translator.words[key];\r\n            if (key.length === 1) {\r\n                return withoutSuffix ? wordKey[0] : wordKey[1];\r\n            } else {\r\n                return number + ' ' + translator.correctGrammaticalCase(number, wordKey);\r\n            }\r\n        }\r\n    };\r\n\r\n    var sr_cyrl = moment.defineLocale('sr-cyrl', {\r\n        months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),\r\n        monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),\r\n        monthsParseExact: true,\r\n        weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),\r\n        weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),\r\n        weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat: {\r\n            LT: 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L: 'DD.MM.YYYY',\r\n            LL: 'D. MMMM YYYY',\r\n            LLL: 'D. MMMM YYYY H:mm',\r\n            LLLL: 'dddd, D. MMMM YYYY H:mm'\r\n        },\r\n        calendar: {\r\n            sameDay: '[данас у] LT',\r\n            nextDay: '[сутра у] LT',\r\n            nextWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[у] [недељу] [у] LT';\r\n                    case 3:\r\n                        return '[у] [среду] [у] LT';\r\n                    case 6:\r\n                        return '[у] [суботу] [у] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[у] dddd [у] LT';\r\n                }\r\n            },\r\n            lastDay  : '[јуче у] LT',\r\n            lastWeek : function () {\r\n                var lastWeekDays = [\r\n                    '[прошле] [недеље] [у] LT',\r\n                    '[прошлог] [понедељка] [у] LT',\r\n                    '[прошлог] [уторка] [у] LT',\r\n                    '[прошле] [среде] [у] LT',\r\n                    '[прошлог] [четвртка] [у] LT',\r\n                    '[прошлог] [петка] [у] LT',\r\n                    '[прошле] [суботе] [у] LT'\r\n                ];\r\n                return lastWeekDays[this.day()];\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'за %s',\r\n            past   : 'пре %s',\r\n            s      : 'неколико секунди',\r\n            m      : translator.translate,\r\n            mm     : translator.translate,\r\n            h      : translator.translate,\r\n            hh     : translator.translate,\r\n            d      : 'дан',\r\n            dd     : translator.translate,\r\n            M      : 'месец',\r\n            MM     : translator.translate,\r\n            y      : 'годину',\r\n            yy     : translator.translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return sr_cyrl;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sr-cyrl.js\n// module id = 332\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Serbian [sr]\r\n//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var translator = {\r\n        words: { //Different grammatical cases\r\n            m: ['jedan minut', 'jedne minute'],\r\n            mm: ['minut', 'minute', 'minuta'],\r\n            h: ['jedan sat', 'jednog sata'],\r\n            hh: ['sat', 'sata', 'sati'],\r\n            dd: ['dan', 'dana', 'dana'],\r\n            MM: ['mesec', 'meseca', 'meseci'],\r\n            yy: ['godina', 'godine', 'godina']\r\n        },\r\n        correctGrammaticalCase: function (number, wordKey) {\r\n            return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);\r\n        },\r\n        translate: function (number, withoutSuffix, key) {\r\n            var wordKey = translator.words[key];\r\n            if (key.length === 1) {\r\n                return withoutSuffix ? wordKey[0] : wordKey[1];\r\n            } else {\r\n                return number + ' ' + translator.correctGrammaticalCase(number, wordKey);\r\n            }\r\n        }\r\n    };\r\n\r\n    var sr = moment.defineLocale('sr', {\r\n        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),\r\n        monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),\r\n        monthsParseExact: true,\r\n        weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),\r\n        weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),\r\n        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat: {\r\n            LT: 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L: 'DD.MM.YYYY',\r\n            LL: 'D. MMMM YYYY',\r\n            LLL: 'D. MMMM YYYY H:mm',\r\n            LLLL: 'dddd, D. MMMM YYYY H:mm'\r\n        },\r\n        calendar: {\r\n            sameDay: '[danas u] LT',\r\n            nextDay: '[sutra u] LT',\r\n            nextWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                        return '[u] [nedelju] [u] LT';\r\n                    case 3:\r\n                        return '[u] [sredu] [u] LT';\r\n                    case 6:\r\n                        return '[u] [subotu] [u] LT';\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                    case 5:\r\n                        return '[u] dddd [u] LT';\r\n                }\r\n            },\r\n            lastDay  : '[juče u] LT',\r\n            lastWeek : function () {\r\n                var lastWeekDays = [\r\n                    '[prošle] [nedelje] [u] LT',\r\n                    '[prošlog] [ponedeljka] [u] LT',\r\n                    '[prošlog] [utorka] [u] LT',\r\n                    '[prošle] [srede] [u] LT',\r\n                    '[prošlog] [četvrtka] [u] LT',\r\n                    '[prošlog] [petka] [u] LT',\r\n                    '[prošle] [subote] [u] LT'\r\n                ];\r\n                return lastWeekDays[this.day()];\r\n            },\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'za %s',\r\n            past   : 'pre %s',\r\n            s      : 'nekoliko sekundi',\r\n            m      : translator.translate,\r\n            mm     : translator.translate,\r\n            h      : translator.translate,\r\n            hh     : translator.translate,\r\n            d      : 'dan',\r\n            dd     : translator.translate,\r\n            M      : 'mesec',\r\n            MM     : translator.translate,\r\n            y      : 'godinu',\r\n            yy     : translator.translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return sr;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sr.js\n// module id = 333\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : siSwati [ss]\r\n//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n\r\n    var ss = moment.defineLocale('ss', {\r\n        months : \"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni\".split('_'),\r\n        monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),\r\n        weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),\r\n        weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),\r\n        weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'h:mm A',\r\n            LTS : 'h:mm:ss A',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY h:mm A',\r\n            LLLL : 'dddd, D MMMM YYYY h:mm A'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Namuhla nga] LT',\r\n            nextDay : '[Kusasa nga] LT',\r\n            nextWeek : 'dddd [nga] LT',\r\n            lastDay : '[Itolo nga] LT',\r\n            lastWeek : 'dddd [leliphelile] [nga] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'nga %s',\r\n            past : 'wenteka nga %s',\r\n            s : 'emizuzwana lomcane',\r\n            m : 'umzuzu',\r\n            mm : '%d emizuzu',\r\n            h : 'lihora',\r\n            hh : '%d emahora',\r\n            d : 'lilanga',\r\n            dd : '%d emalanga',\r\n            M : 'inyanga',\r\n            MM : '%d tinyanga',\r\n            y : 'umnyaka',\r\n            yy : '%d iminyaka'\r\n        },\r\n        meridiemParse: /ekuseni|emini|entsambama|ebusuku/,\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours < 11) {\r\n                return 'ekuseni';\r\n            } else if (hours < 15) {\r\n                return 'emini';\r\n            } else if (hours < 19) {\r\n                return 'entsambama';\r\n            } else {\r\n                return 'ebusuku';\r\n            }\r\n        },\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'ekuseni') {\r\n                return hour;\r\n            } else if (meridiem === 'emini') {\r\n                return hour >= 11 ? hour : hour + 12;\r\n            } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {\r\n                if (hour === 0) {\r\n                    return 0;\r\n                }\r\n                return hour + 12;\r\n            }\r\n        },\r\n        ordinalParse: /\\d{1,2}/,\r\n        ordinal : '%d',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ss;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ss.js\n// module id = 334\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Swedish [sv]\r\n//! author : Jens Alm : https://github.com/ulmus\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var sv = moment.defineLocale('sv', {\r\n        months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),\r\n        monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\r\n        weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),\r\n        weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),\r\n        weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'YYYY-MM-DD',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY [kl.] HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',\r\n            lll : 'D MMM YYYY HH:mm',\r\n            llll : 'ddd D MMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Idag] LT',\r\n            nextDay: '[Imorgon] LT',\r\n            lastDay: '[Igår] LT',\r\n            nextWeek: '[På] dddd LT',\r\n            lastWeek: '[I] dddd[s] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'om %s',\r\n            past : 'för %s sedan',\r\n            s : 'några sekunder',\r\n            m : 'en minut',\r\n            mm : '%d minuter',\r\n            h : 'en timme',\r\n            hh : '%d timmar',\r\n            d : 'en dag',\r\n            dd : '%d dagar',\r\n            M : 'en månad',\r\n            MM : '%d månader',\r\n            y : 'ett år',\r\n            yy : '%d år'\r\n        },\r\n        ordinalParse: /\\d{1,2}(e|a)/,\r\n        ordinal : function (number) {\r\n            var b = number % 10,\r\n                output = (~~(number % 100 / 10) === 1) ? 'e' :\r\n                (b === 1) ? 'a' :\r\n                (b === 2) ? 'a' :\r\n                (b === 3) ? 'e' : 'e';\r\n            return number + output;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return sv;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sv.js\n// module id = 335\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Swahili [sw]\r\n//! author : Fahad Kassim : https://github.com/fadsel\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var sw = moment.defineLocale('sw', {\r\n        months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),\r\n        monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),\r\n        weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),\r\n        weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),\r\n        weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[leo saa] LT',\r\n            nextDay : '[kesho saa] LT',\r\n            nextWeek : '[wiki ijayo] dddd [saat] LT',\r\n            lastDay : '[jana] LT',\r\n            lastWeek : '[wiki iliyopita] dddd [saat] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s baadaye',\r\n            past : 'tokea %s',\r\n            s : 'hivi punde',\r\n            m : 'dakika moja',\r\n            mm : 'dakika %d',\r\n            h : 'saa limoja',\r\n            hh : 'masaa %d',\r\n            d : 'siku moja',\r\n            dd : 'masiku %d',\r\n            M : 'mwezi mmoja',\r\n            MM : 'miezi %d',\r\n            y : 'mwaka mmoja',\r\n            yy : 'miaka %d'\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return sw;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/sw.js\n// module id = 336\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Tamil [ta]\r\n//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var symbolMap = {\r\n        '1': '௧',\r\n        '2': '௨',\r\n        '3': '௩',\r\n        '4': '௪',\r\n        '5': '௫',\r\n        '6': '௬',\r\n        '7': '௭',\r\n        '8': '௮',\r\n        '9': '௯',\r\n        '0': '௦'\r\n    }, numberMap = {\r\n        '௧': '1',\r\n        '௨': '2',\r\n        '௩': '3',\r\n        '௪': '4',\r\n        '௫': '5',\r\n        '௬': '6',\r\n        '௭': '7',\r\n        '௮': '8',\r\n        '௯': '9',\r\n        '௦': '0'\r\n    };\r\n\r\n    var ta = moment.defineLocale('ta', {\r\n        months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),\r\n        monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),\r\n        weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),\r\n        weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),\r\n        weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY, HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY, HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[இன்று] LT',\r\n            nextDay : '[நாளை] LT',\r\n            nextWeek : 'dddd, LT',\r\n            lastDay : '[நேற்று] LT',\r\n            lastWeek : '[கடந்த வாரம்] dddd, LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s இல்',\r\n            past : '%s முன்',\r\n            s : 'ஒரு சில விநாடிகள்',\r\n            m : 'ஒரு நிமிடம்',\r\n            mm : '%d நிமிடங்கள்',\r\n            h : 'ஒரு மணி நேரம்',\r\n            hh : '%d மணி நேரம்',\r\n            d : 'ஒரு நாள்',\r\n            dd : '%d நாட்கள்',\r\n            M : 'ஒரு மாதம்',\r\n            MM : '%d மாதங்கள்',\r\n            y : 'ஒரு வருடம்',\r\n            yy : '%d ஆண்டுகள்'\r\n        },\r\n        ordinalParse: /\\d{1,2}வது/,\r\n        ordinal : function (number) {\r\n            return number + 'வது';\r\n        },\r\n        preparse: function (string) {\r\n            return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {\r\n                return numberMap[match];\r\n            });\r\n        },\r\n        postformat: function (string) {\r\n            return string.replace(/\\d/g, function (match) {\r\n                return symbolMap[match];\r\n            });\r\n        },\r\n        // refer http://ta.wikipedia.org/s/1er1\r\n        meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 2) {\r\n                return ' யாமம்';\r\n            } else if (hour < 6) {\r\n                return ' வைகறை';  // வைகறை\r\n            } else if (hour < 10) {\r\n                return ' காலை'; // காலை\r\n            } else if (hour < 14) {\r\n                return ' நண்பகல்'; // நண்பகல்\r\n            } else if (hour < 18) {\r\n                return ' எற்பாடு'; // எற்பாடு\r\n            } else if (hour < 22) {\r\n                return ' மாலை'; // மாலை\r\n            } else {\r\n                return ' யாமம்';\r\n            }\r\n        },\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'யாமம்') {\r\n                return hour < 2 ? hour : hour + 12;\r\n            } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {\r\n                return hour;\r\n            } else if (meridiem === 'நண்பகல்') {\r\n                return hour >= 10 ? hour : hour + 12;\r\n            } else {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        week : {\r\n            dow : 0, // Sunday is the first day of the week.\r\n            doy : 6  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return ta;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/ta.js\n// module id = 337\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Telugu [te]\r\n//! author : Krishna Chaitanya Thota : https://github.com/kcthota\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var te = moment.defineLocale('te', {\r\n        months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),\r\n        monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),\r\n        weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),\r\n        weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'A h:mm',\r\n            LTS : 'A h:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY, A h:mm',\r\n            LLLL : 'dddd, D MMMM YYYY, A h:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[నేడు] LT',\r\n            nextDay : '[రేపు] LT',\r\n            nextWeek : 'dddd, LT',\r\n            lastDay : '[నిన్న] LT',\r\n            lastWeek : '[గత] dddd, LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s లో',\r\n            past : '%s క్రితం',\r\n            s : 'కొన్ని క్షణాలు',\r\n            m : 'ఒక నిమిషం',\r\n            mm : '%d నిమిషాలు',\r\n            h : 'ఒక గంట',\r\n            hh : '%d గంటలు',\r\n            d : 'ఒక రోజు',\r\n            dd : '%d రోజులు',\r\n            M : 'ఒక నెల',\r\n            MM : '%d నెలలు',\r\n            y : 'ఒక సంవత్సరం',\r\n            yy : '%d సంవత్సరాలు'\r\n        },\r\n        ordinalParse : /\\d{1,2}వ/,\r\n        ordinal : '%dవ',\r\n        meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === 'రాత్రి') {\r\n                return hour < 4 ? hour : hour + 12;\r\n            } else if (meridiem === 'ఉదయం') {\r\n                return hour;\r\n            } else if (meridiem === 'మధ్యాహ్నం') {\r\n                return hour >= 10 ? hour : hour + 12;\r\n            } else if (meridiem === 'సాయంత్రం') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'రాత్రి';\r\n            } else if (hour < 10) {\r\n                return 'ఉదయం';\r\n            } else if (hour < 17) {\r\n                return 'మధ్యాహ్నం';\r\n            } else if (hour < 20) {\r\n                return 'సాయంత్రం';\r\n            } else {\r\n                return 'రాత్రి';\r\n            }\r\n        },\r\n        week : {\r\n            dow : 0, // Sunday is the first day of the week.\r\n            doy : 6  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return te;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/te.js\n// module id = 338\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Thai [th]\r\n//! author : Kridsada Thanabulpong : https://github.com/sirn\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var th = moment.defineLocale('th', {\r\n        months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),\r\n        monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),\r\n        monthsParseExact: true,\r\n        weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),\r\n        weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference\r\n        weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'H:mm',\r\n            LTS : 'H:mm:ss',\r\n            L : 'YYYY/MM/DD',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY เวลา H:mm',\r\n            LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'\r\n        },\r\n        meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,\r\n        isPM: function (input) {\r\n            return input === 'หลังเที่ยง';\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 12) {\r\n                return 'ก่อนเที่ยง';\r\n            } else {\r\n                return 'หลังเที่ยง';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[วันนี้ เวลา] LT',\r\n            nextDay : '[พรุ่งนี้ เวลา] LT',\r\n            nextWeek : 'dddd[หน้า เวลา] LT',\r\n            lastDay : '[เมื่อวานนี้ เวลา] LT',\r\n            lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'อีก %s',\r\n            past : '%sที่แล้ว',\r\n            s : 'ไม่กี่วินาที',\r\n            m : '1 นาที',\r\n            mm : '%d นาที',\r\n            h : '1 ชั่วโมง',\r\n            hh : '%d ชั่วโมง',\r\n            d : '1 วัน',\r\n            dd : '%d วัน',\r\n            M : '1 เดือน',\r\n            MM : '%d เดือน',\r\n            y : '1 ปี',\r\n            yy : '%d ปี'\r\n        }\r\n    });\r\n\r\n    return th;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/th.js\n// module id = 339\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Tagalog (Philippines) [tl-ph]\r\n//! author : Dan Hagman : https://github.com/hagmandan\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var tl_ph = moment.defineLocale('tl-ph', {\r\n        months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),\r\n        monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\r\n        weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),\r\n        weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\r\n        weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'MM/D/YYYY',\r\n            LL : 'MMMM D, YYYY',\r\n            LLL : 'MMMM D, YYYY HH:mm',\r\n            LLLL : 'dddd, MMMM DD, YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Ngayon sa] LT',\r\n            nextDay: '[Bukas sa] LT',\r\n            nextWeek: 'dddd [sa] LT',\r\n            lastDay: '[Kahapon sa] LT',\r\n            lastWeek: 'dddd [huling linggo] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'sa loob ng %s',\r\n            past : '%s ang nakalipas',\r\n            s : 'ilang segundo',\r\n            m : 'isang minuto',\r\n            mm : '%d minuto',\r\n            h : 'isang oras',\r\n            hh : '%d oras',\r\n            d : 'isang araw',\r\n            dd : '%d araw',\r\n            M : 'isang buwan',\r\n            MM : '%d buwan',\r\n            y : 'isang taon',\r\n            yy : '%d taon'\r\n        },\r\n        ordinalParse: /\\d{1,2}/,\r\n        ordinal : function (number) {\r\n            return number;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return tl_ph;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tl-ph.js\n// module id = 340\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Klingon [tlh]\r\n//! author : Dominika Kruk : https://github.com/amaranthrose\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');\r\n\r\n    function translateFuture(output) {\r\n        var time = output;\r\n        time = (output.indexOf('jaj') !== -1) ?\r\n        time.slice(0, -3) + 'leS' :\r\n        (output.indexOf('jar') !== -1) ?\r\n        time.slice(0, -3) + 'waQ' :\r\n        (output.indexOf('DIS') !== -1) ?\r\n        time.slice(0, -3) + 'nem' :\r\n        time + ' pIq';\r\n        return time;\r\n    }\r\n\r\n    function translatePast(output) {\r\n        var time = output;\r\n        time = (output.indexOf('jaj') !== -1) ?\r\n        time.slice(0, -3) + 'Hu’' :\r\n        (output.indexOf('jar') !== -1) ?\r\n        time.slice(0, -3) + 'wen' :\r\n        (output.indexOf('DIS') !== -1) ?\r\n        time.slice(0, -3) + 'ben' :\r\n        time + ' ret';\r\n        return time;\r\n    }\r\n\r\n    function translate(number, withoutSuffix, string, isFuture) {\r\n        var numberNoun = numberAsNoun(number);\r\n        switch (string) {\r\n            case 'mm':\r\n                return numberNoun + ' tup';\r\n            case 'hh':\r\n                return numberNoun + ' rep';\r\n            case 'dd':\r\n                return numberNoun + ' jaj';\r\n            case 'MM':\r\n                return numberNoun + ' jar';\r\n            case 'yy':\r\n                return numberNoun + ' DIS';\r\n        }\r\n    }\r\n\r\n    function numberAsNoun(number) {\r\n        var hundred = Math.floor((number % 1000) / 100),\r\n        ten = Math.floor((number % 100) / 10),\r\n        one = number % 10,\r\n        word = '';\r\n        if (hundred > 0) {\r\n            word += numbersNouns[hundred] + 'vatlh';\r\n        }\r\n        if (ten > 0) {\r\n            word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';\r\n        }\r\n        if (one > 0) {\r\n            word += ((word !== '') ? ' ' : '') + numbersNouns[one];\r\n        }\r\n        return (word === '') ? 'pagh' : word;\r\n    }\r\n\r\n    var tlh = moment.defineLocale('tlh', {\r\n        months : 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),\r\n        monthsShort : 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\r\n        weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\r\n        weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[DaHjaj] LT',\r\n            nextDay: '[wa’leS] LT',\r\n            nextWeek: 'LLL',\r\n            lastDay: '[wa’Hu’] LT',\r\n            lastWeek: 'LLL',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : translateFuture,\r\n            past : translatePast,\r\n            s : 'puS lup',\r\n            m : 'wa’ tup',\r\n            mm : translate,\r\n            h : 'wa’ rep',\r\n            hh : translate,\r\n            d : 'wa’ jaj',\r\n            dd : translate,\r\n            M : 'wa’ jar',\r\n            MM : translate,\r\n            y : 'wa’ DIS',\r\n            yy : translate\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return tlh;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tlh.js\n// module id = 341\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Turkish [tr]\r\n//! authors : Erhan Gundogan : https://github.com/erhangundogan,\r\n//!           Burak Yiğit Kaya: https://github.com/BYK\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var suffixes = {\r\n        1: '\\'inci',\r\n        5: '\\'inci',\r\n        8: '\\'inci',\r\n        70: '\\'inci',\r\n        80: '\\'inci',\r\n        2: '\\'nci',\r\n        7: '\\'nci',\r\n        20: '\\'nci',\r\n        50: '\\'nci',\r\n        3: '\\'üncü',\r\n        4: '\\'üncü',\r\n        100: '\\'üncü',\r\n        6: '\\'ncı',\r\n        9: '\\'uncu',\r\n        10: '\\'uncu',\r\n        30: '\\'uncu',\r\n        60: '\\'ıncı',\r\n        90: '\\'ıncı'\r\n    };\r\n\r\n    var tr = moment.defineLocale('tr', {\r\n        months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),\r\n        monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),\r\n        weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),\r\n        weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),\r\n        weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[bugün saat] LT',\r\n            nextDay : '[yarın saat] LT',\r\n            nextWeek : '[haftaya] dddd [saat] LT',\r\n            lastDay : '[dün] LT',\r\n            lastWeek : '[geçen hafta] dddd [saat] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s sonra',\r\n            past : '%s önce',\r\n            s : 'birkaç saniye',\r\n            m : 'bir dakika',\r\n            mm : '%d dakika',\r\n            h : 'bir saat',\r\n            hh : '%d saat',\r\n            d : 'bir gün',\r\n            dd : '%d gün',\r\n            M : 'bir ay',\r\n            MM : '%d ay',\r\n            y : 'bir yıl',\r\n            yy : '%d yıl'\r\n        },\r\n        ordinalParse: /\\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,\r\n        ordinal : function (number) {\r\n            if (number === 0) {  // special case for zero\r\n                return number + '\\'ıncı';\r\n            }\r\n            var a = number % 10,\r\n                b = number % 100 - a,\r\n                c = number >= 100 ? 100 : null;\r\n            return number + (suffixes[a] || suffixes[b] || suffixes[c]);\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return tr;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tr.js\n// module id = 342\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Talossan [tzl]\r\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\r\n//! author : Iustì Canun\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.\r\n    // This is currently too difficult (maybe even impossible) to add.\r\n    var tzl = moment.defineLocale('tzl', {\r\n        months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),\r\n        monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),\r\n        weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),\r\n        weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),\r\n        weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH.mm',\r\n            LTS : 'HH.mm.ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D. MMMM [dallas] YYYY',\r\n            LLL : 'D. MMMM [dallas] YYYY HH.mm',\r\n            LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'\r\n        },\r\n        meridiemParse: /d\\'o|d\\'a/i,\r\n        isPM : function (input) {\r\n            return 'd\\'o' === input.toLowerCase();\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours > 11) {\r\n                return isLower ? 'd\\'o' : 'D\\'O';\r\n            } else {\r\n                return isLower ? 'd\\'a' : 'D\\'A';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[oxhi à] LT',\r\n            nextDay : '[demà à] LT',\r\n            nextWeek : 'dddd [à] LT',\r\n            lastDay : '[ieiri à] LT',\r\n            lastWeek : '[sür el] dddd [lasteu à] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'osprei %s',\r\n            past : 'ja%s',\r\n            s : processRelativeTime,\r\n            m : processRelativeTime,\r\n            mm : processRelativeTime,\r\n            h : processRelativeTime,\r\n            hh : processRelativeTime,\r\n            d : processRelativeTime,\r\n            dd : processRelativeTime,\r\n            M : processRelativeTime,\r\n            MM : processRelativeTime,\r\n            y : processRelativeTime,\r\n            yy : processRelativeTime\r\n        },\r\n        ordinalParse: /\\d{1,2}\\./,\r\n        ordinal : '%d.',\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    function processRelativeTime(number, withoutSuffix, key, isFuture) {\r\n        var format = {\r\n            's': ['viensas secunds', '\\'iensas secunds'],\r\n            'm': ['\\'n míut', '\\'iens míut'],\r\n            'mm': [number + ' míuts', '' + number + ' míuts'],\r\n            'h': ['\\'n þora', '\\'iensa þora'],\r\n            'hh': [number + ' þoras', '' + number + ' þoras'],\r\n            'd': ['\\'n ziua', '\\'iensa ziua'],\r\n            'dd': [number + ' ziuas', '' + number + ' ziuas'],\r\n            'M': ['\\'n mes', '\\'iens mes'],\r\n            'MM': [number + ' mesen', '' + number + ' mesen'],\r\n            'y': ['\\'n ar', '\\'iens ar'],\r\n            'yy': [number + ' ars', '' + number + ' ars']\r\n        };\r\n        return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);\r\n    }\r\n\r\n    return tzl;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tzl.js\n// module id = 343\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Central Atlas Tamazight Latin [tzm-latn]\r\n//! author : Abdel Said : https://github.com/abdelsaid\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var tzm_latn = moment.defineLocale('tzm-latn', {\r\n        months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),\r\n        monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),\r\n        weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\r\n        weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\r\n        weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[asdkh g] LT',\r\n            nextDay: '[aska g] LT',\r\n            nextWeek: 'dddd [g] LT',\r\n            lastDay: '[assant g] LT',\r\n            lastWeek: 'dddd [g] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'dadkh s yan %s',\r\n            past : 'yan %s',\r\n            s : 'imik',\r\n            m : 'minuḍ',\r\n            mm : '%d minuḍ',\r\n            h : 'saɛa',\r\n            hh : '%d tassaɛin',\r\n            d : 'ass',\r\n            dd : '%d ossan',\r\n            M : 'ayowr',\r\n            MM : '%d iyyirn',\r\n            y : 'asgas',\r\n            yy : '%d isgasn'\r\n        },\r\n        week : {\r\n            dow : 6, // Saturday is the first day of the week.\r\n            doy : 12  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return tzm_latn;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tzm-latn.js\n// module id = 344\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Central Atlas Tamazight [tzm]\r\n//! author : Abdel Said : https://github.com/abdelsaid\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var tzm = moment.defineLocale('tzm', {\r\n        months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),\r\n        monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),\r\n        weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\r\n        weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\r\n        weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS: 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',\r\n            nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',\r\n            nextWeek: 'dddd [ⴴ] LT',\r\n            lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',\r\n            lastWeek: 'dddd [ⴴ] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',\r\n            past : 'ⵢⴰⵏ %s',\r\n            s : 'ⵉⵎⵉⴽ',\r\n            m : 'ⵎⵉⵏⵓⴺ',\r\n            mm : '%d ⵎⵉⵏⵓⴺ',\r\n            h : 'ⵙⴰⵄⴰ',\r\n            hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',\r\n            d : 'ⴰⵙⵙ',\r\n            dd : '%d oⵙⵙⴰⵏ',\r\n            M : 'ⴰⵢoⵓⵔ',\r\n            MM : '%d ⵉⵢⵢⵉⵔⵏ',\r\n            y : 'ⴰⵙⴳⴰⵙ',\r\n            yy : '%d ⵉⵙⴳⴰⵙⵏ'\r\n        },\r\n        week : {\r\n            dow : 6, // Saturday is the first day of the week.\r\n            doy : 12  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return tzm;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/tzm.js\n// module id = 345\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Ukrainian [uk]\r\n//! author : zemlanin : https://github.com/zemlanin\r\n//! Author : Menelion Elensúle : https://github.com/Oire\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    function plural(word, num) {\r\n        var forms = word.split('_');\r\n        return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);\r\n    }\r\n    function relativeTimeWithPlural(number, withoutSuffix, key) {\r\n        var format = {\r\n            'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',\r\n            'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',\r\n            'dd': 'день_дні_днів',\r\n            'MM': 'місяць_місяці_місяців',\r\n            'yy': 'рік_роки_років'\r\n        };\r\n        if (key === 'm') {\r\n            return withoutSuffix ? 'хвилина' : 'хвилину';\r\n        }\r\n        else if (key === 'h') {\r\n            return withoutSuffix ? 'година' : 'годину';\r\n        }\r\n        else {\r\n            return number + ' ' + plural(format[key], +number);\r\n        }\r\n    }\r\n    function weekdaysCaseReplace(m, format) {\r\n        var weekdays = {\r\n            'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),\r\n            'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),\r\n            'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')\r\n        },\r\n        nounCase = (/(\\[[ВвУу]\\]) ?dddd/).test(format) ?\r\n            'accusative' :\r\n            ((/\\[?(?:минулої|наступної)? ?\\] ?dddd/).test(format) ?\r\n                'genitive' :\r\n                'nominative');\r\n        return weekdays[nounCase][m.day()];\r\n    }\r\n    function processHoursFunction(str) {\r\n        return function () {\r\n            return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';\r\n        };\r\n    }\r\n\r\n    var uk = moment.defineLocale('uk', {\r\n        months : {\r\n            'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),\r\n            'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')\r\n        },\r\n        monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),\r\n        weekdays : weekdaysCaseReplace,\r\n        weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\r\n        weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD.MM.YYYY',\r\n            LL : 'D MMMM YYYY р.',\r\n            LLL : 'D MMMM YYYY р., HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY р., HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: processHoursFunction('[Сьогодні '),\r\n            nextDay: processHoursFunction('[Завтра '),\r\n            lastDay: processHoursFunction('[Вчора '),\r\n            nextWeek: processHoursFunction('[У] dddd ['),\r\n            lastWeek: function () {\r\n                switch (this.day()) {\r\n                    case 0:\r\n                    case 3:\r\n                    case 5:\r\n                    case 6:\r\n                        return processHoursFunction('[Минулої] dddd [').call(this);\r\n                    case 1:\r\n                    case 2:\r\n                    case 4:\r\n                        return processHoursFunction('[Минулого] dddd [').call(this);\r\n                }\r\n            },\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'за %s',\r\n            past : '%s тому',\r\n            s : 'декілька секунд',\r\n            m : relativeTimeWithPlural,\r\n            mm : relativeTimeWithPlural,\r\n            h : 'годину',\r\n            hh : relativeTimeWithPlural,\r\n            d : 'день',\r\n            dd : relativeTimeWithPlural,\r\n            M : 'місяць',\r\n            MM : relativeTimeWithPlural,\r\n            y : 'рік',\r\n            yy : relativeTimeWithPlural\r\n        },\r\n        // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason\r\n        meridiemParse: /ночі|ранку|дня|вечора/,\r\n        isPM: function (input) {\r\n            return /^(дня|вечора)$/.test(input);\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            if (hour < 4) {\r\n                return 'ночі';\r\n            } else if (hour < 12) {\r\n                return 'ранку';\r\n            } else if (hour < 17) {\r\n                return 'дня';\r\n            } else {\r\n                return 'вечора';\r\n            }\r\n        },\r\n        ordinalParse: /\\d{1,2}-(й|го)/,\r\n        ordinal: function (number, period) {\r\n            switch (period) {\r\n                case 'M':\r\n                case 'd':\r\n                case 'DDD':\r\n                case 'w':\r\n                case 'W':\r\n                    return number + '-й';\r\n                case 'D':\r\n                    return number + '-го';\r\n                default:\r\n                    return number;\r\n            }\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 1st is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return uk;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/uk.js\n// module id = 346\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Uzbek [uz]\r\n//! author : Sardor Muminov : https://github.com/muminoff\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var uz = moment.defineLocale('uz', {\r\n        months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),\r\n        monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\r\n        weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),\r\n        weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),\r\n        weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'D MMMM YYYY, dddd HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[Бугун соат] LT [да]',\r\n            nextDay : '[Эртага] LT [да]',\r\n            nextWeek : 'dddd [куни соат] LT [да]',\r\n            lastDay : '[Кеча соат] LT [да]',\r\n            lastWeek : '[Утган] dddd [куни соат] LT [да]',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'Якин %s ичида',\r\n            past : 'Бир неча %s олдин',\r\n            s : 'фурсат',\r\n            m : 'бир дакика',\r\n            mm : '%d дакика',\r\n            h : 'бир соат',\r\n            hh : '%d соат',\r\n            d : 'бир кун',\r\n            dd : '%d кун',\r\n            M : 'бир ой',\r\n            MM : '%d ой',\r\n            y : 'бир йил',\r\n            yy : '%d йил'\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 7  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return uz;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/uz.js\n// module id = 347\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Vietnamese [vi]\r\n//! author : Bang Nguyen : https://github.com/bangnk\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var vi = moment.defineLocale('vi', {\r\n        months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),\r\n        monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),\r\n        weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\r\n        weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\r\n        weekdaysParseExact : true,\r\n        meridiemParse: /sa|ch/i,\r\n        isPM : function (input) {\r\n            return /^ch$/i.test(input);\r\n        },\r\n        meridiem : function (hours, minutes, isLower) {\r\n            if (hours < 12) {\r\n                return isLower ? 'sa' : 'SA';\r\n            } else {\r\n                return isLower ? 'ch' : 'CH';\r\n            }\r\n        },\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            LTS : 'HH:mm:ss',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM [năm] YYYY',\r\n            LLL : 'D MMMM [năm] YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',\r\n            l : 'DD/M/YYYY',\r\n            ll : 'D MMM YYYY',\r\n            lll : 'D MMM YYYY HH:mm',\r\n            llll : 'ddd, D MMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay: '[Hôm nay lúc] LT',\r\n            nextDay: '[Ngày mai lúc] LT',\r\n            nextWeek: 'dddd [tuần tới lúc] LT',\r\n            lastDay: '[Hôm qua lúc] LT',\r\n            lastWeek: 'dddd [tuần rồi lúc] LT',\r\n            sameElse: 'L'\r\n        },\r\n        relativeTime : {\r\n            future : '%s tới',\r\n            past : '%s trước',\r\n            s : 'vài giây',\r\n            m : 'một phút',\r\n            mm : '%d phút',\r\n            h : 'một giờ',\r\n            hh : '%d giờ',\r\n            d : 'một ngày',\r\n            dd : '%d ngày',\r\n            M : 'một tháng',\r\n            MM : '%d tháng',\r\n            y : 'một năm',\r\n            yy : '%d năm'\r\n        },\r\n        ordinalParse: /\\d{1,2}/,\r\n        ordinal : function (number) {\r\n            return number;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return vi;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/vi.js\n// module id = 348\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Pseudo [x-pseudo]\r\n//! author : Andrew Hood : https://github.com/andrewhood125\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var x_pseudo = moment.defineLocale('x-pseudo', {\r\n        months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),\r\n        monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),\r\n        monthsParseExact : true,\r\n        weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),\r\n        weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),\r\n        weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),\r\n        weekdaysParseExact : true,\r\n        longDateFormat : {\r\n            LT : 'HH:mm',\r\n            L : 'DD/MM/YYYY',\r\n            LL : 'D MMMM YYYY',\r\n            LLL : 'D MMMM YYYY HH:mm',\r\n            LLLL : 'dddd, D MMMM YYYY HH:mm'\r\n        },\r\n        calendar : {\r\n            sameDay : '[T~ódá~ý át] LT',\r\n            nextDay : '[T~ómó~rró~w át] LT',\r\n            nextWeek : 'dddd [át] LT',\r\n            lastDay : '[Ý~ést~érdá~ý át] LT',\r\n            lastWeek : '[L~ást] dddd [át] LT',\r\n            sameElse : 'L'\r\n        },\r\n        relativeTime : {\r\n            future : 'í~ñ %s',\r\n            past : '%s á~gó',\r\n            s : 'á ~féw ~sécó~ñds',\r\n            m : 'á ~míñ~úté',\r\n            mm : '%d m~íñú~tés',\r\n            h : 'á~ñ hó~úr',\r\n            hh : '%d h~óúrs',\r\n            d : 'á ~dáý',\r\n            dd : '%d d~áýs',\r\n            M : 'á ~móñ~th',\r\n            MM : '%d m~óñt~hs',\r\n            y : 'á ~ýéár',\r\n            yy : '%d ý~éárs'\r\n        },\r\n        ordinalParse: /\\d{1,2}(th|st|nd|rd)/,\r\n        ordinal : function (number) {\r\n            var b = number % 10,\r\n                output = (~~(number % 100 / 10) === 1) ? 'th' :\r\n                (b === 1) ? 'st' :\r\n                (b === 2) ? 'nd' :\r\n                (b === 3) ? 'rd' : 'th';\r\n            return number + output;\r\n        },\r\n        week : {\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return x_pseudo;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/x-pseudo.js\n// module id = 349\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Chinese (China) [zh-cn]\r\n//! author : suupic : https://github.com/suupic\r\n//! author : Zeno Zeng : https://github.com/zenozeng\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var zh_cn = moment.defineLocale('zh-cn', {\r\n        months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\r\n        monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\r\n        weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\r\n        weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),\r\n        weekdaysMin : '日_一_二_三_四_五_六'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'Ah点mm分',\r\n            LTS : 'Ah点m分s秒',\r\n            L : 'YYYY-MM-DD',\r\n            LL : 'YYYY年MMMD日',\r\n            LLL : 'YYYY年MMMD日Ah点mm分',\r\n            LLLL : 'YYYY年MMMD日ddddAh点mm分',\r\n            l : 'YYYY-MM-DD',\r\n            ll : 'YYYY年MMMD日',\r\n            lll : 'YYYY年MMMD日Ah点mm分',\r\n            llll : 'YYYY年MMMD日ddddAh点mm分'\r\n        },\r\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\r\n        meridiemHour: function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === '凌晨' || meridiem === '早上' ||\r\n                    meridiem === '上午') {\r\n                return hour;\r\n            } else if (meridiem === '下午' || meridiem === '晚上') {\r\n                return hour + 12;\r\n            } else {\r\n                // '中午'\r\n                return hour >= 11 ? hour : hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            var hm = hour * 100 + minute;\r\n            if (hm < 600) {\r\n                return '凌晨';\r\n            } else if (hm < 900) {\r\n                return '早上';\r\n            } else if (hm < 1130) {\r\n                return '上午';\r\n            } else if (hm < 1230) {\r\n                return '中午';\r\n            } else if (hm < 1800) {\r\n                return '下午';\r\n            } else {\r\n                return '晚上';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : function () {\r\n                return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';\r\n            },\r\n            nextDay : function () {\r\n                return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';\r\n            },\r\n            lastDay : function () {\r\n                return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';\r\n            },\r\n            nextWeek : function () {\r\n                var startOfWeek, prefix;\r\n                startOfWeek = moment().startOf('week');\r\n                prefix = this.diff(startOfWeek, 'days') >= 7 ? '[下]' : '[本]';\r\n                return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';\r\n            },\r\n            lastWeek : function () {\r\n                var startOfWeek, prefix;\r\n                startOfWeek = moment().startOf('week');\r\n                prefix = this.unix() < startOfWeek.unix()  ? '[上]' : '[本]';\r\n                return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';\r\n            },\r\n            sameElse : 'LL'\r\n        },\r\n        ordinalParse: /\\d{1,2}(日|月|周)/,\r\n        ordinal : function (number, period) {\r\n            switch (period) {\r\n                case 'd':\r\n                case 'D':\r\n                case 'DDD':\r\n                    return number + '日';\r\n                case 'M':\r\n                    return number + '月';\r\n                case 'w':\r\n                case 'W':\r\n                    return number + '周';\r\n                default:\r\n                    return number;\r\n            }\r\n        },\r\n        relativeTime : {\r\n            future : '%s内',\r\n            past : '%s前',\r\n            s : '几秒',\r\n            m : '1 分钟',\r\n            mm : '%d 分钟',\r\n            h : '1 小时',\r\n            hh : '%d 小时',\r\n            d : '1 天',\r\n            dd : '%d 天',\r\n            M : '1 个月',\r\n            MM : '%d 个月',\r\n            y : '1 年',\r\n            yy : '%d 年'\r\n        },\r\n        week : {\r\n            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\r\n            dow : 1, // Monday is the first day of the week.\r\n            doy : 4  // The week that contains Jan 4th is the first week of the year.\r\n        }\r\n    });\r\n\r\n    return zh_cn;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-cn.js\n// module id = 350\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Chinese (Hong Kong) [zh-hk]\r\n//! author : Ben : https://github.com/ben-lin\r\n//! author : Chris Lam : https://github.com/hehachris\r\n//! author : Konstantin : https://github.com/skfd\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var zh_hk = moment.defineLocale('zh-hk', {\r\n        months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\r\n        monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\r\n        weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\r\n        weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),\r\n        weekdaysMin : '日_一_二_三_四_五_六'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'Ah點mm分',\r\n            LTS : 'Ah點m分s秒',\r\n            L : 'YYYY年MMMD日',\r\n            LL : 'YYYY年MMMD日',\r\n            LLL : 'YYYY年MMMD日Ah點mm分',\r\n            LLLL : 'YYYY年MMMD日ddddAh點mm分',\r\n            l : 'YYYY年MMMD日',\r\n            ll : 'YYYY年MMMD日',\r\n            lll : 'YYYY年MMMD日Ah點mm分',\r\n            llll : 'YYYY年MMMD日ddddAh點mm分'\r\n        },\r\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\r\n                return hour;\r\n            } else if (meridiem === '中午') {\r\n                return hour >= 11 ? hour : hour + 12;\r\n            } else if (meridiem === '下午' || meridiem === '晚上') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            var hm = hour * 100 + minute;\r\n            if (hm < 600) {\r\n                return '凌晨';\r\n            } else if (hm < 900) {\r\n                return '早上';\r\n            } else if (hm < 1130) {\r\n                return '上午';\r\n            } else if (hm < 1230) {\r\n                return '中午';\r\n            } else if (hm < 1800) {\r\n                return '下午';\r\n            } else {\r\n                return '晚上';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[今天]LT',\r\n            nextDay : '[明天]LT',\r\n            nextWeek : '[下]ddddLT',\r\n            lastDay : '[昨天]LT',\r\n            lastWeek : '[上]ddddLT',\r\n            sameElse : 'L'\r\n        },\r\n        ordinalParse: /\\d{1,2}(日|月|週)/,\r\n        ordinal : function (number, period) {\r\n            switch (period) {\r\n                case 'd' :\r\n                case 'D' :\r\n                case 'DDD' :\r\n                    return number + '日';\r\n                case 'M' :\r\n                    return number + '月';\r\n                case 'w' :\r\n                case 'W' :\r\n                    return number + '週';\r\n                default :\r\n                    return number;\r\n            }\r\n        },\r\n        relativeTime : {\r\n            future : '%s內',\r\n            past : '%s前',\r\n            s : '幾秒',\r\n            m : '1 分鐘',\r\n            mm : '%d 分鐘',\r\n            h : '1 小時',\r\n            hh : '%d 小時',\r\n            d : '1 天',\r\n            dd : '%d 天',\r\n            M : '1 個月',\r\n            MM : '%d 個月',\r\n            y : '1 年',\r\n            yy : '%d 年'\r\n        }\r\n    });\r\n\r\n    return zh_hk;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-hk.js\n// module id = 351\n// module chunks = 2","//! moment.js locale configuration\r\n//! locale : Chinese (Taiwan) [zh-tw]\r\n//! author : Ben : https://github.com/ben-lin\r\n//! author : Chris Lam : https://github.com/hehachris\r\n\r\n;(function (global, factory) {\r\n   typeof exports === 'object' && typeof module !== 'undefined'\r\n       && typeof require === 'function' ? factory(require('../moment')) :\r\n   typeof define === 'function' && define.amd ? define(['../moment'], factory) :\r\n   factory(global.moment)\r\n}(this, function (moment) { 'use strict';\r\n\r\n\r\n    var zh_tw = moment.defineLocale('zh-tw', {\r\n        months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\r\n        monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\r\n        weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\r\n        weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),\r\n        weekdaysMin : '日_一_二_三_四_五_六'.split('_'),\r\n        longDateFormat : {\r\n            LT : 'Ah點mm分',\r\n            LTS : 'Ah點m分s秒',\r\n            L : 'YYYY年MMMD日',\r\n            LL : 'YYYY年MMMD日',\r\n            LLL : 'YYYY年MMMD日Ah點mm分',\r\n            LLLL : 'YYYY年MMMD日ddddAh點mm分',\r\n            l : 'YYYY年MMMD日',\r\n            ll : 'YYYY年MMMD日',\r\n            lll : 'YYYY年MMMD日Ah點mm分',\r\n            llll : 'YYYY年MMMD日ddddAh點mm分'\r\n        },\r\n        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\r\n        meridiemHour : function (hour, meridiem) {\r\n            if (hour === 12) {\r\n                hour = 0;\r\n            }\r\n            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\r\n                return hour;\r\n            } else if (meridiem === '中午') {\r\n                return hour >= 11 ? hour : hour + 12;\r\n            } else if (meridiem === '下午' || meridiem === '晚上') {\r\n                return hour + 12;\r\n            }\r\n        },\r\n        meridiem : function (hour, minute, isLower) {\r\n            var hm = hour * 100 + minute;\r\n            if (hm < 600) {\r\n                return '凌晨';\r\n            } else if (hm < 900) {\r\n                return '早上';\r\n            } else if (hm < 1130) {\r\n                return '上午';\r\n            } else if (hm < 1230) {\r\n                return '中午';\r\n            } else if (hm < 1800) {\r\n                return '下午';\r\n            } else {\r\n                return '晚上';\r\n            }\r\n        },\r\n        calendar : {\r\n            sameDay : '[今天]LT',\r\n            nextDay : '[明天]LT',\r\n            nextWeek : '[下]ddddLT',\r\n            lastDay : '[昨天]LT',\r\n            lastWeek : '[上]ddddLT',\r\n            sameElse : 'L'\r\n        },\r\n        ordinalParse: /\\d{1,2}(日|月|週)/,\r\n        ordinal : function (number, period) {\r\n            switch (period) {\r\n                case 'd' :\r\n                case 'D' :\r\n                case 'DDD' :\r\n                    return number + '日';\r\n                case 'M' :\r\n                    return number + '月';\r\n                case 'w' :\r\n                case 'W' :\r\n                    return number + '週';\r\n                default :\r\n                    return number;\r\n            }\r\n        },\r\n        relativeTime : {\r\n            future : '%s內',\r\n            past : '%s前',\r\n            s : '幾秒',\r\n            m : '1 分鐘',\r\n            mm : '%d 分鐘',\r\n            h : '1 小時',\r\n            hh : '%d 小時',\r\n            d : '1 天',\r\n            dd : '%d 天',\r\n            M : '1 個月',\r\n            MM : '%d 個月',\r\n            y : '1 年',\r\n            yy : '%d 年'\r\n        }\r\n    });\r\n\r\n    return zh_tw;\r\n\r\n}));\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale/zh-tw.js\n// module id = 352\n// module chunks = 2","// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\nvar Buffer = require('buffer').Buffer;\r\n\r\nvar isBufferEncoding = Buffer.isEncoding\r\n  || function(encoding) {\r\n       switch (encoding && encoding.toLowerCase()) {\r\n         case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\r\n         default: return false;\r\n       }\r\n     }\r\n\r\n\r\nfunction assertEncoding(encoding) {\r\n  if (encoding && !isBufferEncoding(encoding)) {\r\n    throw new Error('Unknown encoding: ' + encoding);\r\n  }\r\n}\r\n\r\n// StringDecoder provides an interface for efficiently splitting a series of\r\n// buffers into a series of JS strings without breaking apart multi-byte\r\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\r\n//\r\n// @TODO Handling all encodings inside a single object makes it very difficult\r\n// to reason about this code, so it should be split up in the future.\r\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\r\n// points as used by CESU-8.\r\nvar StringDecoder = exports.StringDecoder = function(encoding) {\r\n  this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\r\n  assertEncoding(encoding);\r\n  switch (this.encoding) {\r\n    case 'utf8':\r\n      // CESU-8 represents each of Surrogate Pair by 3-bytes\r\n      this.surrogateSize = 3;\r\n      break;\r\n    case 'ucs2':\r\n    case 'utf16le':\r\n      // UTF-16 represents each of Surrogate Pair by 2-bytes\r\n      this.surrogateSize = 2;\r\n      this.detectIncompleteChar = utf16DetectIncompleteChar;\r\n      break;\r\n    case 'base64':\r\n      // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\r\n      this.surrogateSize = 3;\r\n      this.detectIncompleteChar = base64DetectIncompleteChar;\r\n      break;\r\n    default:\r\n      this.write = passThroughWrite;\r\n      return;\r\n  }\r\n\r\n  // Enough space to store all bytes of a single character. UTF-8 needs 4\r\n  // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\r\n  this.charBuffer = new Buffer(6);\r\n  // Number of bytes received for the current incomplete multi-byte character.\r\n  this.charReceived = 0;\r\n  // Number of bytes expected for the current incomplete multi-byte character.\r\n  this.charLength = 0;\r\n};\r\n\r\n\r\n// write decodes the given buffer and returns it as JS string that is\r\n// guaranteed to not contain any partial multi-byte characters. Any partial\r\n// character found at the end of the buffer is buffered up, and will be\r\n// returned when calling write again with the remaining bytes.\r\n//\r\n// Note: Converting a Buffer containing an orphan surrogate to a String\r\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\r\n// Buffer#write) will replace incomplete surrogates with the unicode\r\n// replacement character. See https://codereview.chromium.org/121173009/ .\r\nStringDecoder.prototype.write = function(buffer) {\r\n  var charStr = '';\r\n  // if our last write ended with an incomplete multibyte character\r\n  while (this.charLength) {\r\n    // determine how many remaining bytes this buffer has to offer for this char\r\n    var available = (buffer.length >= this.charLength - this.charReceived) ?\r\n        this.charLength - this.charReceived :\r\n        buffer.length;\r\n\r\n    // add the new bytes to the char buffer\r\n    buffer.copy(this.charBuffer, this.charReceived, 0, available);\r\n    this.charReceived += available;\r\n\r\n    if (this.charReceived < this.charLength) {\r\n      // still not enough chars in this buffer? wait for more ...\r\n      return '';\r\n    }\r\n\r\n    // remove bytes belonging to the current character from the buffer\r\n    buffer = buffer.slice(available, buffer.length);\r\n\r\n    // get the character that was split\r\n    charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\r\n\r\n    // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\r\n    var charCode = charStr.charCodeAt(charStr.length - 1);\r\n    if (charCode >= 0xD800 && charCode <= 0xDBFF) {\r\n      this.charLength += this.surrogateSize;\r\n      charStr = '';\r\n      continue;\r\n    }\r\n    this.charReceived = this.charLength = 0;\r\n\r\n    // if there are no more bytes in this buffer, just emit our char\r\n    if (buffer.length === 0) {\r\n      return charStr;\r\n    }\r\n    break;\r\n  }\r\n\r\n  // determine and set charLength / charReceived\r\n  this.detectIncompleteChar(buffer);\r\n\r\n  var end = buffer.length;\r\n  if (this.charLength) {\r\n    // buffer the incomplete character bytes we got\r\n    buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\r\n    end -= this.charReceived;\r\n  }\r\n\r\n  charStr += buffer.toString(this.encoding, 0, end);\r\n\r\n  var end = charStr.length - 1;\r\n  var charCode = charStr.charCodeAt(end);\r\n  // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\r\n  if (charCode >= 0xD800 && charCode <= 0xDBFF) {\r\n    var size = this.surrogateSize;\r\n    this.charLength += size;\r\n    this.charReceived += size;\r\n    this.charBuffer.copy(this.charBuffer, size, 0, size);\r\n    buffer.copy(this.charBuffer, 0, 0, size);\r\n    return charStr.substring(0, end);\r\n  }\r\n\r\n  // or just emit the charStr\r\n  return charStr;\r\n};\r\n\r\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\r\n// the end of the given buffer. If so, it sets this.charLength to the byte\r\n// length that character, and sets this.charReceived to the number of bytes\r\n// that are available for this character.\r\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\r\n  // determine how many bytes we have to check at the end of this buffer\r\n  var i = (buffer.length >= 3) ? 3 : buffer.length;\r\n\r\n  // Figure out if one of the last i bytes of our buffer announces an\r\n  // incomplete char.\r\n  for (; i > 0; i--) {\r\n    var c = buffer[buffer.length - i];\r\n\r\n    // See http://en.wikipedia.org/wiki/UTF-8#Description\r\n\r\n    // 110XXXXX\r\n    if (i == 1 && c >> 5 == 0x06) {\r\n      this.charLength = 2;\r\n      break;\r\n    }\r\n\r\n    // 1110XXXX\r\n    if (i <= 2 && c >> 4 == 0x0E) {\r\n      this.charLength = 3;\r\n      break;\r\n    }\r\n\r\n    // 11110XXX\r\n    if (i <= 3 && c >> 3 == 0x1E) {\r\n      this.charLength = 4;\r\n      break;\r\n    }\r\n  }\r\n  this.charReceived = i;\r\n};\r\n\r\nStringDecoder.prototype.end = function(buffer) {\r\n  var res = '';\r\n  if (buffer && buffer.length)\r\n    res = this.write(buffer);\r\n\r\n  if (this.charReceived) {\r\n    var cr = this.charReceived;\r\n    var buf = this.charBuffer;\r\n    var enc = this.encoding;\r\n    res += buf.slice(0, cr).toString(enc);\r\n  }\r\n\r\n  return res;\r\n};\r\n\r\nfunction passThroughWrite(buffer) {\r\n  return buffer.toString(this.encoding);\r\n}\r\n\r\nfunction utf16DetectIncompleteChar(buffer) {\r\n  this.charReceived = buffer.length % 2;\r\n  this.charLength = this.charReceived ? 2 : 0;\r\n}\r\n\r\nfunction base64DetectIncompleteChar(buffer) {\r\n  this.charReceived = buffer.length % 3;\r\n  this.charLength = this.charReceived ? 3 : 0;\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/node-libs-browser/~/string_decoder/index.js\n// module id = 405\n// module chunks = 2","// String encode/decode helpers\r\n'use strict';\r\n\r\n\r\nvar utils = require('./common');\r\n\r\n\r\n// Quick check if we can use fast array to bin string conversion\r\n//\r\n// - apply(Array) can fail on Android 2.2\r\n// - apply(Uint8Array) can fail on iOS 5.1 Safary\r\n//\r\nvar STR_APPLY_OK = true;\r\nvar STR_APPLY_UIA_OK = true;\r\n\r\ntry { String.fromCharCode.apply(null, [ 0 ]); } catch (__) { STR_APPLY_OK = false; }\r\ntry { String.fromCharCode.apply(null, new Uint8Array(1)); } catch (__) { STR_APPLY_UIA_OK = false; }\r\n\r\n\r\n// Table with utf8 lengths (calculated by first byte of sequence)\r\n// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,\r\n// because max possible codepoint is 0x10ffff\r\nvar _utf8len = new utils.Buf8(256);\r\nfor (var q = 0; q < 256; q++) {\r\n  _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1);\r\n}\r\n_utf8len[254] = _utf8len[254] = 1; // Invalid sequence start\r\n\r\n\r\n// convert string to array (typed, when possible)\r\nexports.string2buf = function (str) {\r\n  var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;\r\n\r\n  // count binary size\r\n  for (m_pos = 0; m_pos < str_len; m_pos++) {\r\n    c = str.charCodeAt(m_pos);\r\n    if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\r\n      c2 = str.charCodeAt(m_pos + 1);\r\n      if ((c2 & 0xfc00) === 0xdc00) {\r\n        c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\r\n        m_pos++;\r\n      }\r\n    }\r\n    buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;\r\n  }\r\n\r\n  // allocate buffer\r\n  buf = new utils.Buf8(buf_len);\r\n\r\n  // convert\r\n  for (i = 0, m_pos = 0; i < buf_len; m_pos++) {\r\n    c = str.charCodeAt(m_pos);\r\n    if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\r\n      c2 = str.charCodeAt(m_pos + 1);\r\n      if ((c2 & 0xfc00) === 0xdc00) {\r\n        c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\r\n        m_pos++;\r\n      }\r\n    }\r\n    if (c < 0x80) {\r\n      /* one byte */\r\n      buf[i++] = c;\r\n    } else if (c < 0x800) {\r\n      /* two bytes */\r\n      buf[i++] = 0xC0 | (c >>> 6);\r\n      buf[i++] = 0x80 | (c & 0x3f);\r\n    } else if (c < 0x10000) {\r\n      /* three bytes */\r\n      buf[i++] = 0xE0 | (c >>> 12);\r\n      buf[i++] = 0x80 | (c >>> 6 & 0x3f);\r\n      buf[i++] = 0x80 | (c & 0x3f);\r\n    } else {\r\n      /* four bytes */\r\n      buf[i++] = 0xf0 | (c >>> 18);\r\n      buf[i++] = 0x80 | (c >>> 12 & 0x3f);\r\n      buf[i++] = 0x80 | (c >>> 6 & 0x3f);\r\n      buf[i++] = 0x80 | (c & 0x3f);\r\n    }\r\n  }\r\n\r\n  return buf;\r\n};\r\n\r\n// Helper (used in 2 places)\r\nfunction buf2binstring(buf, len) {\r\n  // use fallback for big arrays to avoid stack overflow\r\n  if (len < 65537) {\r\n    if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) {\r\n      return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));\r\n    }\r\n  }\r\n\r\n  var result = '';\r\n  for (var i = 0; i < len; i++) {\r\n    result += String.fromCharCode(buf[i]);\r\n  }\r\n  return result;\r\n}\r\n\r\n\r\n// Convert byte array to binary string\r\nexports.buf2binstring = function (buf) {\r\n  return buf2binstring(buf, buf.length);\r\n};\r\n\r\n\r\n// Convert binary string (typed, when possible)\r\nexports.binstring2buf = function (str) {\r\n  var buf = new utils.Buf8(str.length);\r\n  for (var i = 0, len = buf.length; i < len; i++) {\r\n    buf[i] = str.charCodeAt(i);\r\n  }\r\n  return buf;\r\n};\r\n\r\n\r\n// convert array to string\r\nexports.buf2string = function (buf, max) {\r\n  var i, out, c, c_len;\r\n  var len = max || buf.length;\r\n\r\n  // Reserve max possible length (2 words per char)\r\n  // NB: by unknown reasons, Array is significantly faster for\r\n  //     String.fromCharCode.apply than Uint16Array.\r\n  var utf16buf = new Array(len * 2);\r\n\r\n  for (out = 0, i = 0; i < len;) {\r\n    c = buf[i++];\r\n    // quick process ascii\r\n    if (c < 0x80) { utf16buf[out++] = c; continue; }\r\n\r\n    c_len = _utf8len[c];\r\n    // skip 5 & 6 byte codes\r\n    if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len - 1; continue; }\r\n\r\n    // apply mask on first byte\r\n    c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;\r\n    // join the rest\r\n    while (c_len > 1 && i < len) {\r\n      c = (c << 6) | (buf[i++] & 0x3f);\r\n      c_len--;\r\n    }\r\n\r\n    // terminated by end of string?\r\n    if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }\r\n\r\n    if (c < 0x10000) {\r\n      utf16buf[out++] = c;\r\n    } else {\r\n      c -= 0x10000;\r\n      utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);\r\n      utf16buf[out++] = 0xdc00 | (c & 0x3ff);\r\n    }\r\n  }\r\n\r\n  return buf2binstring(utf16buf, out);\r\n};\r\n\r\n\r\n// Calculate max possible position in utf8 buffer,\r\n// that will not break sequence. If that's not possible\r\n// - (very small limits) return max size as is.\r\n//\r\n// buf[] - utf8 bytes array\r\n// max   - length limit (mandatory);\r\nexports.utf8border = function (buf, max) {\r\n  var pos;\r\n\r\n  max = max || buf.length;\r\n  if (max > buf.length) { max = buf.length; }\r\n\r\n  // go back from last position, until start of sequence found\r\n  pos = max - 1;\r\n  while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }\r\n\r\n  // Fuckup - very small and broken sequence,\r\n  // return max, because we should return something anyway.\r\n  if (pos < 0) { return max; }\r\n\r\n  // If we came to start of buffer - that means vuffer is too small,\r\n  // return max too.\r\n  if (pos === 0) { return max; }\r\n\r\n  return (pos + _utf8len[buf[pos]] > max) ? pos : max;\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/utils/strings.js\n// module id = 406\n// module chunks = 2","'use strict';\r\n\r\n// Note: adler32 takes 12% for level 0 and 2% for level 6.\r\n// It doesn't worth to make additional optimizationa as in original.\r\n// Small size is preferable.\r\n\r\nfunction adler32(adler, buf, len, pos) {\r\n  var s1 = (adler & 0xffff) |0,\r\n      s2 = ((adler >>> 16) & 0xffff) |0,\r\n      n = 0;\r\n\r\n  while (len !== 0) {\r\n    // Set limit ~ twice less than 5552, to keep\r\n    // s2 in 31-bits, because we force signed ints.\r\n    // in other case %= will fail.\r\n    n = len > 2000 ? 2000 : len;\r\n    len -= n;\r\n\r\n    do {\r\n      s1 = (s1 + buf[pos++]) |0;\r\n      s2 = (s2 + s1) |0;\r\n    } while (--n);\r\n\r\n    s1 %= 65521;\r\n    s2 %= 65521;\r\n  }\r\n\r\n  return (s1 | (s2 << 16)) |0;\r\n}\r\n\r\n\r\nmodule.exports = adler32;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/adler32.js\n// module id = 407\n// module chunks = 2","'use strict';\r\n\r\n\r\nmodule.exports = {\r\n\r\n  /* Allowed flush values; see deflate() and inflate() below for details */\r\n  Z_NO_FLUSH:         0,\r\n  Z_PARTIAL_FLUSH:    1,\r\n  Z_SYNC_FLUSH:       2,\r\n  Z_FULL_FLUSH:       3,\r\n  Z_FINISH:           4,\r\n  Z_BLOCK:            5,\r\n  Z_TREES:            6,\r\n\r\n  /* Return codes for the compression/decompression functions. Negative values\r\n  * are errors, positive values are used for special but normal events.\r\n  */\r\n  Z_OK:               0,\r\n  Z_STREAM_END:       1,\r\n  Z_NEED_DICT:        2,\r\n  Z_ERRNO:           -1,\r\n  Z_STREAM_ERROR:    -2,\r\n  Z_DATA_ERROR:      -3,\r\n  //Z_MEM_ERROR:     -4,\r\n  Z_BUF_ERROR:       -5,\r\n  //Z_VERSION_ERROR: -6,\r\n\r\n  /* compression levels */\r\n  Z_NO_COMPRESSION:         0,\r\n  Z_BEST_SPEED:             1,\r\n  Z_BEST_COMPRESSION:       9,\r\n  Z_DEFAULT_COMPRESSION:   -1,\r\n\r\n\r\n  Z_FILTERED:               1,\r\n  Z_HUFFMAN_ONLY:           2,\r\n  Z_RLE:                    3,\r\n  Z_FIXED:                  4,\r\n  Z_DEFAULT_STRATEGY:       0,\r\n\r\n  /* Possible values of the data_type field (though see inflate()) */\r\n  Z_BINARY:                 0,\r\n  Z_TEXT:                   1,\r\n  //Z_ASCII:                1, // = Z_TEXT (deprecated)\r\n  Z_UNKNOWN:                2,\r\n\r\n  /* The deflate compression method */\r\n  Z_DEFLATED:               8\r\n  //Z_NULL:                 null // Use -1 or null inline, depending on var type\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/constants.js\n// module id = 408\n// module chunks = 2","'use strict';\r\n\r\n// Note: we can't get significant speed boost here.\r\n// So write code to minimize size - no pregenerated tables\r\n// and array tools dependencies.\r\n\r\n\r\n// Use ordinary array, since untyped makes no boost here\r\nfunction makeTable() {\r\n  var c, table = [];\r\n\r\n  for (var n = 0; n < 256; n++) {\r\n    c = n;\r\n    for (var k = 0; k < 8; k++) {\r\n      c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));\r\n    }\r\n    table[n] = c;\r\n  }\r\n\r\n  return table;\r\n}\r\n\r\n// Create table on load. Just 255 signed longs. Not a problem.\r\nvar crcTable = makeTable();\r\n\r\n\r\nfunction crc32(crc, buf, len, pos) {\r\n  var t = crcTable,\r\n      end = pos + len;\r\n\r\n  crc ^= -1;\r\n\r\n  for (var i = pos; i < end; i++) {\r\n    crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];\r\n  }\r\n\r\n  return (crc ^ (-1)); // >>> 0;\r\n}\r\n\r\n\r\nmodule.exports = crc32;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/crc32.js\n// module id = 409\n// module chunks = 2","'use strict';\r\n\r\n\r\nfunction ZStream() {\r\n  /* next input byte */\r\n  this.input = null; // JS specific, because we have no pointers\r\n  this.next_in = 0;\r\n  /* number of bytes available at input */\r\n  this.avail_in = 0;\r\n  /* total number of input bytes read so far */\r\n  this.total_in = 0;\r\n  /* next output byte should be put there */\r\n  this.output = null; // JS specific, because we have no pointers\r\n  this.next_out = 0;\r\n  /* remaining free space at output */\r\n  this.avail_out = 0;\r\n  /* total number of bytes output so far */\r\n  this.total_out = 0;\r\n  /* last error message, NULL if no error */\r\n  this.msg = ''/*Z_NULL*/;\r\n  /* not visible by applications */\r\n  this.state = null;\r\n  /* best guess about the data type: binary or text */\r\n  this.data_type = 2/*Z_UNKNOWN*/;\r\n  /* adler32 value of the uncompressed data */\r\n  this.adler = 0;\r\n}\r\n\r\nmodule.exports = ZStream;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/zstream.js\n// module id = 410\n// module chunks = 2","'use strict';\r\n\r\nmodule.exports = Readable;\r\n\r\n/*<replacement>*/\r\nvar processNextTick = require('process-nextick-args');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar isArray = require('isarray');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar Duplex;\r\n/*</replacement>*/\r\n\r\nReadable.ReadableState = ReadableState;\r\n\r\n/*<replacement>*/\r\nvar EE = require('events').EventEmitter;\r\n\r\nvar EElistenerCount = function (emitter, type) {\r\n  return emitter.listeners(type).length;\r\n};\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar Stream = require('./internal/streams/stream');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar Buffer = require('safe-buffer').Buffer;\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar util = require('core-util-is');\r\nutil.inherits = require('inherits');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar debugUtil = require('util');\r\nvar debug = void 0;\r\nif (debugUtil && debugUtil.debuglog) {\r\n  debug = debugUtil.debuglog('stream');\r\n} else {\r\n  debug = function () {};\r\n}\r\n/*</replacement>*/\r\n\r\nvar BufferList = require('./internal/streams/BufferList');\r\nvar StringDecoder;\r\n\r\nutil.inherits(Readable, Stream);\r\n\r\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\r\n\r\nfunction prependListener(emitter, event, fn) {\r\n  // Sadly this is not cacheable as some libraries bundle their own\r\n  // event emitter implementation with them.\r\n  if (typeof emitter.prependListener === 'function') {\r\n    return emitter.prependListener(event, fn);\r\n  } else {\r\n    // This is a hack to make sure that our error handler is attached before any\r\n    // userland ones.  NEVER DO THIS. This is here only because this code needs\r\n    // to continue to work with older versions of Node.js that do not include\r\n    // the prependListener() method. The goal is to eventually remove this hack.\r\n    if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\r\n  }\r\n}\r\n\r\nfunction ReadableState(options, stream) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n\r\n  options = options || {};\r\n\r\n  // object stream flag. Used to make read(n) ignore n and to\r\n  // make all the buffer merging and length checks go away\r\n  this.objectMode = !!options.objectMode;\r\n\r\n  if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\r\n\r\n  // the point at which it stops calling _read() to fill the buffer\r\n  // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\r\n  var hwm = options.highWaterMark;\r\n  var defaultHwm = this.objectMode ? 16 : 16 * 1024;\r\n  this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;\r\n\r\n  // cast to ints.\r\n  this.highWaterMark = ~~this.highWaterMark;\r\n\r\n  // A linked list is used to store data chunks instead of an array because the\r\n  // linked list can remove elements from the beginning faster than\r\n  // array.shift()\r\n  this.buffer = new BufferList();\r\n  this.length = 0;\r\n  this.pipes = null;\r\n  this.pipesCount = 0;\r\n  this.flowing = null;\r\n  this.ended = false;\r\n  this.endEmitted = false;\r\n  this.reading = false;\r\n\r\n  // a flag to be able to tell if the onwrite cb is called immediately,\r\n  // or on a later tick.  We set this to true at first, because any\r\n  // actions that shouldn't happen until \"later\" should generally also\r\n  // not happen before the first write call.\r\n  this.sync = true;\r\n\r\n  // whenever we return null, then we set a flag to say\r\n  // that we're awaiting a 'readable' event emission.\r\n  this.needReadable = false;\r\n  this.emittedReadable = false;\r\n  this.readableListening = false;\r\n  this.resumeScheduled = false;\r\n\r\n  // Crypto is kind of old and crusty.  Historically, its default string\r\n  // encoding is 'binary' so we have to make this configurable.\r\n  // Everything else in the universe uses 'utf8', though.\r\n  this.defaultEncoding = options.defaultEncoding || 'utf8';\r\n\r\n  // when piping, we only care about 'readable' events that happen\r\n  // after read()ing all the bytes and not getting any pushback.\r\n  this.ranOut = false;\r\n\r\n  // the number of writers that are awaiting a drain event in .pipe()s\r\n  this.awaitDrain = 0;\r\n\r\n  // if true, a maybeReadMore has been scheduled\r\n  this.readingMore = false;\r\n\r\n  this.decoder = null;\r\n  this.encoding = null;\r\n  if (options.encoding) {\r\n    if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\r\n    this.decoder = new StringDecoder(options.encoding);\r\n    this.encoding = options.encoding;\r\n  }\r\n}\r\n\r\nfunction Readable(options) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n\r\n  if (!(this instanceof Readable)) return new Readable(options);\r\n\r\n  this._readableState = new ReadableState(options, this);\r\n\r\n  // legacy\r\n  this.readable = true;\r\n\r\n  if (options && typeof options.read === 'function') this._read = options.read;\r\n\r\n  Stream.call(this);\r\n}\r\n\r\n// Manually shove something into the read() buffer.\r\n// This returns true if the highWaterMark has not been hit yet,\r\n// similar to how Writable.write() returns true if you should\r\n// write() some more.\r\nReadable.prototype.push = function (chunk, encoding) {\r\n  var state = this._readableState;\r\n\r\n  if (!state.objectMode && typeof chunk === 'string') {\r\n    encoding = encoding || state.defaultEncoding;\r\n    if (encoding !== state.encoding) {\r\n      chunk = Buffer.from(chunk, encoding);\r\n      encoding = '';\r\n    }\r\n  }\r\n\r\n  return readableAddChunk(this, state, chunk, encoding, false);\r\n};\r\n\r\n// Unshift should *always* be something directly out of read()\r\nReadable.prototype.unshift = function (chunk) {\r\n  var state = this._readableState;\r\n  return readableAddChunk(this, state, chunk, '', true);\r\n};\r\n\r\nReadable.prototype.isPaused = function () {\r\n  return this._readableState.flowing === false;\r\n};\r\n\r\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\r\n  var er = chunkInvalid(state, chunk);\r\n  if (er) {\r\n    stream.emit('error', er);\r\n  } else if (chunk === null) {\r\n    state.reading = false;\r\n    onEofChunk(stream, state);\r\n  } else if (state.objectMode || chunk && chunk.length > 0) {\r\n    if (state.ended && !addToFront) {\r\n      var e = new Error('stream.push() after EOF');\r\n      stream.emit('error', e);\r\n    } else if (state.endEmitted && addToFront) {\r\n      var _e = new Error('stream.unshift() after end event');\r\n      stream.emit('error', _e);\r\n    } else {\r\n      var skipAdd;\r\n      if (state.decoder && !addToFront && !encoding) {\r\n        chunk = state.decoder.write(chunk);\r\n        skipAdd = !state.objectMode && chunk.length === 0;\r\n      }\r\n\r\n      if (!addToFront) state.reading = false;\r\n\r\n      // Don't add to the buffer if we've decoded to an empty string chunk and\r\n      // we're not in object mode\r\n      if (!skipAdd) {\r\n        // if we want the data now, just emit it.\r\n        if (state.flowing && state.length === 0 && !state.sync) {\r\n          stream.emit('data', chunk);\r\n          stream.read(0);\r\n        } else {\r\n          // update the buffer info.\r\n          state.length += state.objectMode ? 1 : chunk.length;\r\n          if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\r\n\r\n          if (state.needReadable) emitReadable(stream);\r\n        }\r\n      }\r\n\r\n      maybeReadMore(stream, state);\r\n    }\r\n  } else if (!addToFront) {\r\n    state.reading = false;\r\n  }\r\n\r\n  return needMoreData(state);\r\n}\r\n\r\n// if it's past the high water mark, we can push in some more.\r\n// Also, if we have no data yet, we can stand some\r\n// more bytes.  This is to work around cases where hwm=0,\r\n// such as the repl.  Also, if the push() triggered a\r\n// readable event, and the user called read(largeNumber) such that\r\n// needReadable was set, then we ought to push more, so that another\r\n// 'readable' event will be triggered.\r\nfunction needMoreData(state) {\r\n  return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\r\n}\r\n\r\n// backwards compatibility.\r\nReadable.prototype.setEncoding = function (enc) {\r\n  if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\r\n  this._readableState.decoder = new StringDecoder(enc);\r\n  this._readableState.encoding = enc;\r\n  return this;\r\n};\r\n\r\n// Don't raise the hwm > 8MB\r\nvar MAX_HWM = 0x800000;\r\nfunction computeNewHighWaterMark(n) {\r\n  if (n >= MAX_HWM) {\r\n    n = MAX_HWM;\r\n  } else {\r\n    // Get the next highest power of 2 to prevent increasing hwm excessively in\r\n    // tiny amounts\r\n    n--;\r\n    n |= n >>> 1;\r\n    n |= n >>> 2;\r\n    n |= n >>> 4;\r\n    n |= n >>> 8;\r\n    n |= n >>> 16;\r\n    n++;\r\n  }\r\n  return n;\r\n}\r\n\r\n// This function is designed to be inlinable, so please take care when making\r\n// changes to the function body.\r\nfunction howMuchToRead(n, state) {\r\n  if (n <= 0 || state.length === 0 && state.ended) return 0;\r\n  if (state.objectMode) return 1;\r\n  if (n !== n) {\r\n    // Only flow one buffer at a time\r\n    if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\r\n  }\r\n  // If we're asking for more than the current hwm, then raise the hwm.\r\n  if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\r\n  if (n <= state.length) return n;\r\n  // Don't have enough\r\n  if (!state.ended) {\r\n    state.needReadable = true;\r\n    return 0;\r\n  }\r\n  return state.length;\r\n}\r\n\r\n// you can override either this method, or the async _read(n) below.\r\nReadable.prototype.read = function (n) {\r\n  debug('read', n);\r\n  n = parseInt(n, 10);\r\n  var state = this._readableState;\r\n  var nOrig = n;\r\n\r\n  if (n !== 0) state.emittedReadable = false;\r\n\r\n  // if we're doing read(0) to trigger a readable event, but we\r\n  // already have a bunch of data in the buffer, then just trigger\r\n  // the 'readable' event and move on.\r\n  if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\r\n    debug('read: emitReadable', state.length, state.ended);\r\n    if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\r\n    return null;\r\n  }\r\n\r\n  n = howMuchToRead(n, state);\r\n\r\n  // if we've ended, and we're now clear, then finish it up.\r\n  if (n === 0 && state.ended) {\r\n    if (state.length === 0) endReadable(this);\r\n    return null;\r\n  }\r\n\r\n  // All the actual chunk generation logic needs to be\r\n  // *below* the call to _read.  The reason is that in certain\r\n  // synthetic stream cases, such as passthrough streams, _read\r\n  // may be a completely synchronous operation which may change\r\n  // the state of the read buffer, providing enough data when\r\n  // before there was *not* enough.\r\n  //\r\n  // So, the steps are:\r\n  // 1. Figure out what the state of things will be after we do\r\n  // a read from the buffer.\r\n  //\r\n  // 2. If that resulting state will trigger a _read, then call _read.\r\n  // Note that this may be asynchronous, or synchronous.  Yes, it is\r\n  // deeply ugly to write APIs this way, but that still doesn't mean\r\n  // that the Readable class should behave improperly, as streams are\r\n  // designed to be sync/async agnostic.\r\n  // Take note if the _read call is sync or async (ie, if the read call\r\n  // has returned yet), so that we know whether or not it's safe to emit\r\n  // 'readable' etc.\r\n  //\r\n  // 3. Actually pull the requested chunks out of the buffer and return.\r\n\r\n  // if we need a readable event, then we need to do some reading.\r\n  var doRead = state.needReadable;\r\n  debug('need readable', doRead);\r\n\r\n  // if we currently have less than the highWaterMark, then also read some\r\n  if (state.length === 0 || state.length - n < state.highWaterMark) {\r\n    doRead = true;\r\n    debug('length less than watermark', doRead);\r\n  }\r\n\r\n  // however, if we've ended, then there's no point, and if we're already\r\n  // reading, then it's unnecessary.\r\n  if (state.ended || state.reading) {\r\n    doRead = false;\r\n    debug('reading or ended', doRead);\r\n  } else if (doRead) {\r\n    debug('do read');\r\n    state.reading = true;\r\n    state.sync = true;\r\n    // if the length is currently zero, then we *need* a readable event.\r\n    if (state.length === 0) state.needReadable = true;\r\n    // call internal read method\r\n    this._read(state.highWaterMark);\r\n    state.sync = false;\r\n    // If _read pushed data synchronously, then `reading` will be false,\r\n    // and we need to re-evaluate how much data we can return to the user.\r\n    if (!state.reading) n = howMuchToRead(nOrig, state);\r\n  }\r\n\r\n  var ret;\r\n  if (n > 0) ret = fromList(n, state);else ret = null;\r\n\r\n  if (ret === null) {\r\n    state.needReadable = true;\r\n    n = 0;\r\n  } else {\r\n    state.length -= n;\r\n  }\r\n\r\n  if (state.length === 0) {\r\n    // If we have nothing in the buffer, then we want to know\r\n    // as soon as we *do* get something into the buffer.\r\n    if (!state.ended) state.needReadable = true;\r\n\r\n    // If we tried to read() past the EOF, then emit end on the next tick.\r\n    if (nOrig !== n && state.ended) endReadable(this);\r\n  }\r\n\r\n  if (ret !== null) this.emit('data', ret);\r\n\r\n  return ret;\r\n};\r\n\r\nfunction chunkInvalid(state, chunk) {\r\n  var er = null;\r\n  if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) {\r\n    er = new TypeError('Invalid non-string/buffer chunk');\r\n  }\r\n  return er;\r\n}\r\n\r\nfunction onEofChunk(stream, state) {\r\n  if (state.ended) return;\r\n  if (state.decoder) {\r\n    var chunk = state.decoder.end();\r\n    if (chunk && chunk.length) {\r\n      state.buffer.push(chunk);\r\n      state.length += state.objectMode ? 1 : chunk.length;\r\n    }\r\n  }\r\n  state.ended = true;\r\n\r\n  // emit 'readable' now to make sure it gets picked up.\r\n  emitReadable(stream);\r\n}\r\n\r\n// Don't emit readable right away in sync mode, because this can trigger\r\n// another read() call => stack overflow.  This way, it might trigger\r\n// a nextTick recursion warning, but that's not so bad.\r\nfunction emitReadable(stream) {\r\n  var state = stream._readableState;\r\n  state.needReadable = false;\r\n  if (!state.emittedReadable) {\r\n    debug('emitReadable', state.flowing);\r\n    state.emittedReadable = true;\r\n    if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream);\r\n  }\r\n}\r\n\r\nfunction emitReadable_(stream) {\r\n  debug('emit readable');\r\n  stream.emit('readable');\r\n  flow(stream);\r\n}\r\n\r\n// at this point, the user has presumably seen the 'readable' event,\r\n// and called read() to consume some data.  that may have triggered\r\n// in turn another _read(n) call, in which case reading = true if\r\n// it's in progress.\r\n// However, if we're not ended, or reading, and the length < hwm,\r\n// then go ahead and try to read some more preemptively.\r\nfunction maybeReadMore(stream, state) {\r\n  if (!state.readingMore) {\r\n    state.readingMore = true;\r\n    processNextTick(maybeReadMore_, stream, state);\r\n  }\r\n}\r\n\r\nfunction maybeReadMore_(stream, state) {\r\n  var len = state.length;\r\n  while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\r\n    debug('maybeReadMore read 0');\r\n    stream.read(0);\r\n    if (len === state.length)\r\n      // didn't get any data, stop spinning.\r\n      break;else len = state.length;\r\n  }\r\n  state.readingMore = false;\r\n}\r\n\r\n// abstract method.  to be overridden in specific implementation classes.\r\n// call cb(er, data) where data is <= n in length.\r\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\r\n// arbitrary, and perhaps not very meaningful.\r\nReadable.prototype._read = function (n) {\r\n  this.emit('error', new Error('_read() is not implemented'));\r\n};\r\n\r\nReadable.prototype.pipe = function (dest, pipeOpts) {\r\n  var src = this;\r\n  var state = this._readableState;\r\n\r\n  switch (state.pipesCount) {\r\n    case 0:\r\n      state.pipes = dest;\r\n      break;\r\n    case 1:\r\n      state.pipes = [state.pipes, dest];\r\n      break;\r\n    default:\r\n      state.pipes.push(dest);\r\n      break;\r\n  }\r\n  state.pipesCount += 1;\r\n  debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\r\n\r\n  var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\r\n\r\n  var endFn = doEnd ? onend : unpipe;\r\n  if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn);\r\n\r\n  dest.on('unpipe', onunpipe);\r\n  function onunpipe(readable) {\r\n    debug('onunpipe');\r\n    if (readable === src) {\r\n      cleanup();\r\n    }\r\n  }\r\n\r\n  function onend() {\r\n    debug('onend');\r\n    dest.end();\r\n  }\r\n\r\n  // when the dest drains, it reduces the awaitDrain counter\r\n  // on the source.  This would be more elegant with a .once()\r\n  // handler in flow(), but adding and removing repeatedly is\r\n  // too slow.\r\n  var ondrain = pipeOnDrain(src);\r\n  dest.on('drain', ondrain);\r\n\r\n  var cleanedUp = false;\r\n  function cleanup() {\r\n    debug('cleanup');\r\n    // cleanup event handlers once the pipe is broken\r\n    dest.removeListener('close', onclose);\r\n    dest.removeListener('finish', onfinish);\r\n    dest.removeListener('drain', ondrain);\r\n    dest.removeListener('error', onerror);\r\n    dest.removeListener('unpipe', onunpipe);\r\n    src.removeListener('end', onend);\r\n    src.removeListener('end', unpipe);\r\n    src.removeListener('data', ondata);\r\n\r\n    cleanedUp = true;\r\n\r\n    // if the reader is waiting for a drain event from this\r\n    // specific writer, then it would cause it to never start\r\n    // flowing again.\r\n    // So, if this is awaiting a drain, then we just call it now.\r\n    // If we don't know, then assume that we are waiting for one.\r\n    if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\r\n  }\r\n\r\n  // If the user pushes more data while we're writing to dest then we'll end up\r\n  // in ondata again. However, we only want to increase awaitDrain once because\r\n  // dest will only emit one 'drain' event for the multiple writes.\r\n  // => Introduce a guard on increasing awaitDrain.\r\n  var increasedAwaitDrain = false;\r\n  src.on('data', ondata);\r\n  function ondata(chunk) {\r\n    debug('ondata');\r\n    increasedAwaitDrain = false;\r\n    var ret = dest.write(chunk);\r\n    if (false === ret && !increasedAwaitDrain) {\r\n      // If the user unpiped during `dest.write()`, it is possible\r\n      // to get stuck in a permanently paused state if that write\r\n      // also returned false.\r\n      // => Check whether `dest` is still a piping destination.\r\n      if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\r\n        debug('false write response, pause', src._readableState.awaitDrain);\r\n        src._readableState.awaitDrain++;\r\n        increasedAwaitDrain = true;\r\n      }\r\n      src.pause();\r\n    }\r\n  }\r\n\r\n  // if the dest has an error, then stop piping into it.\r\n  // however, don't suppress the throwing behavior for this.\r\n  function onerror(er) {\r\n    debug('onerror', er);\r\n    unpipe();\r\n    dest.removeListener('error', onerror);\r\n    if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\r\n  }\r\n\r\n  // Make sure our error handler is attached before userland ones.\r\n  prependListener(dest, 'error', onerror);\r\n\r\n  // Both close and finish should trigger unpipe, but only once.\r\n  function onclose() {\r\n    dest.removeListener('finish', onfinish);\r\n    unpipe();\r\n  }\r\n  dest.once('close', onclose);\r\n  function onfinish() {\r\n    debug('onfinish');\r\n    dest.removeListener('close', onclose);\r\n    unpipe();\r\n  }\r\n  dest.once('finish', onfinish);\r\n\r\n  function unpipe() {\r\n    debug('unpipe');\r\n    src.unpipe(dest);\r\n  }\r\n\r\n  // tell the dest that it's being piped to\r\n  dest.emit('pipe', src);\r\n\r\n  // start the flow if it hasn't been started already.\r\n  if (!state.flowing) {\r\n    debug('pipe resume');\r\n    src.resume();\r\n  }\r\n\r\n  return dest;\r\n};\r\n\r\nfunction pipeOnDrain(src) {\r\n  return function () {\r\n    var state = src._readableState;\r\n    debug('pipeOnDrain', state.awaitDrain);\r\n    if (state.awaitDrain) state.awaitDrain--;\r\n    if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\r\n      state.flowing = true;\r\n      flow(src);\r\n    }\r\n  };\r\n}\r\n\r\nReadable.prototype.unpipe = function (dest) {\r\n  var state = this._readableState;\r\n\r\n  // if we're not piping anywhere, then do nothing.\r\n  if (state.pipesCount === 0) return this;\r\n\r\n  // just one destination.  most common case.\r\n  if (state.pipesCount === 1) {\r\n    // passed in one, but it's not the right one.\r\n    if (dest && dest !== state.pipes) return this;\r\n\r\n    if (!dest) dest = state.pipes;\r\n\r\n    // got a match.\r\n    state.pipes = null;\r\n    state.pipesCount = 0;\r\n    state.flowing = false;\r\n    if (dest) dest.emit('unpipe', this);\r\n    return this;\r\n  }\r\n\r\n  // slow case. multiple pipe destinations.\r\n\r\n  if (!dest) {\r\n    // remove all.\r\n    var dests = state.pipes;\r\n    var len = state.pipesCount;\r\n    state.pipes = null;\r\n    state.pipesCount = 0;\r\n    state.flowing = false;\r\n\r\n    for (var i = 0; i < len; i++) {\r\n      dests[i].emit('unpipe', this);\r\n    }return this;\r\n  }\r\n\r\n  // try to find the right one.\r\n  var index = indexOf(state.pipes, dest);\r\n  if (index === -1) return this;\r\n\r\n  state.pipes.splice(index, 1);\r\n  state.pipesCount -= 1;\r\n  if (state.pipesCount === 1) state.pipes = state.pipes[0];\r\n\r\n  dest.emit('unpipe', this);\r\n\r\n  return this;\r\n};\r\n\r\n// set up data events if they are asked for\r\n// Ensure readable listeners eventually get something\r\nReadable.prototype.on = function (ev, fn) {\r\n  var res = Stream.prototype.on.call(this, ev, fn);\r\n\r\n  if (ev === 'data') {\r\n    // Start flowing on next tick if stream isn't explicitly paused\r\n    if (this._readableState.flowing !== false) this.resume();\r\n  } else if (ev === 'readable') {\r\n    var state = this._readableState;\r\n    if (!state.endEmitted && !state.readableListening) {\r\n      state.readableListening = state.needReadable = true;\r\n      state.emittedReadable = false;\r\n      if (!state.reading) {\r\n        processNextTick(nReadingNextTick, this);\r\n      } else if (state.length) {\r\n        emitReadable(this, state);\r\n      }\r\n    }\r\n  }\r\n\r\n  return res;\r\n};\r\nReadable.prototype.addListener = Readable.prototype.on;\r\n\r\nfunction nReadingNextTick(self) {\r\n  debug('readable nexttick read 0');\r\n  self.read(0);\r\n}\r\n\r\n// pause() and resume() are remnants of the legacy readable stream API\r\n// If the user uses them, then switch into old mode.\r\nReadable.prototype.resume = function () {\r\n  var state = this._readableState;\r\n  if (!state.flowing) {\r\n    debug('resume');\r\n    state.flowing = true;\r\n    resume(this, state);\r\n  }\r\n  return this;\r\n};\r\n\r\nfunction resume(stream, state) {\r\n  if (!state.resumeScheduled) {\r\n    state.resumeScheduled = true;\r\n    processNextTick(resume_, stream, state);\r\n  }\r\n}\r\n\r\nfunction resume_(stream, state) {\r\n  if (!state.reading) {\r\n    debug('resume read 0');\r\n    stream.read(0);\r\n  }\r\n\r\n  state.resumeScheduled = false;\r\n  state.awaitDrain = 0;\r\n  stream.emit('resume');\r\n  flow(stream);\r\n  if (state.flowing && !state.reading) stream.read(0);\r\n}\r\n\r\nReadable.prototype.pause = function () {\r\n  debug('call pause flowing=%j', this._readableState.flowing);\r\n  if (false !== this._readableState.flowing) {\r\n    debug('pause');\r\n    this._readableState.flowing = false;\r\n    this.emit('pause');\r\n  }\r\n  return this;\r\n};\r\n\r\nfunction flow(stream) {\r\n  var state = stream._readableState;\r\n  debug('flow', state.flowing);\r\n  while (state.flowing && stream.read() !== null) {}\r\n}\r\n\r\n// wrap an old-style stream as the async data source.\r\n// This is *not* part of the readable stream interface.\r\n// It is an ugly unfortunate mess of history.\r\nReadable.prototype.wrap = function (stream) {\r\n  var state = this._readableState;\r\n  var paused = false;\r\n\r\n  var self = this;\r\n  stream.on('end', function () {\r\n    debug('wrapped end');\r\n    if (state.decoder && !state.ended) {\r\n      var chunk = state.decoder.end();\r\n      if (chunk && chunk.length) self.push(chunk);\r\n    }\r\n\r\n    self.push(null);\r\n  });\r\n\r\n  stream.on('data', function (chunk) {\r\n    debug('wrapped data');\r\n    if (state.decoder) chunk = state.decoder.write(chunk);\r\n\r\n    // don't skip over falsy values in objectMode\r\n    if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\r\n\r\n    var ret = self.push(chunk);\r\n    if (!ret) {\r\n      paused = true;\r\n      stream.pause();\r\n    }\r\n  });\r\n\r\n  // proxy all the other methods.\r\n  // important when wrapping filters and duplexes.\r\n  for (var i in stream) {\r\n    if (this[i] === undefined && typeof stream[i] === 'function') {\r\n      this[i] = function (method) {\r\n        return function () {\r\n          return stream[method].apply(stream, arguments);\r\n        };\r\n      }(i);\r\n    }\r\n  }\r\n\r\n  // proxy certain important events.\r\n  for (var n = 0; n < kProxyEvents.length; n++) {\r\n    stream.on(kProxyEvents[n], self.emit.bind(self, kProxyEvents[n]));\r\n  }\r\n\r\n  // when we try to consume some more bytes, simply unpause the\r\n  // underlying stream.\r\n  self._read = function (n) {\r\n    debug('wrapped _read', n);\r\n    if (paused) {\r\n      paused = false;\r\n      stream.resume();\r\n    }\r\n  };\r\n\r\n  return self;\r\n};\r\n\r\n// exposed for testing purposes only.\r\nReadable._fromList = fromList;\r\n\r\n// Pluck off n bytes from an array of buffers.\r\n// Length is the combined lengths of all the buffers in the list.\r\n// This function is designed to be inlinable, so please take care when making\r\n// changes to the function body.\r\nfunction fromList(n, state) {\r\n  // nothing buffered\r\n  if (state.length === 0) return null;\r\n\r\n  var ret;\r\n  if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\r\n    // read it all, truncate the list\r\n    if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\r\n    state.buffer.clear();\r\n  } else {\r\n    // read part of list\r\n    ret = fromListPartial(n, state.buffer, state.decoder);\r\n  }\r\n\r\n  return ret;\r\n}\r\n\r\n// Extracts only enough buffered data to satisfy the amount requested.\r\n// This function is designed to be inlinable, so please take care when making\r\n// changes to the function body.\r\nfunction fromListPartial(n, list, hasStrings) {\r\n  var ret;\r\n  if (n < list.head.data.length) {\r\n    // slice is the same for buffers and strings\r\n    ret = list.head.data.slice(0, n);\r\n    list.head.data = list.head.data.slice(n);\r\n  } else if (n === list.head.data.length) {\r\n    // first chunk is a perfect match\r\n    ret = list.shift();\r\n  } else {\r\n    // result spans more than one buffer\r\n    ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\r\n  }\r\n  return ret;\r\n}\r\n\r\n// Copies a specified amount of characters from the list of buffered data\r\n// chunks.\r\n// This function is designed to be inlinable, so please take care when making\r\n// changes to the function body.\r\nfunction copyFromBufferString(n, list) {\r\n  var p = list.head;\r\n  var c = 1;\r\n  var ret = p.data;\r\n  n -= ret.length;\r\n  while (p = p.next) {\r\n    var str = p.data;\r\n    var nb = n > str.length ? str.length : n;\r\n    if (nb === str.length) ret += str;else ret += str.slice(0, n);\r\n    n -= nb;\r\n    if (n === 0) {\r\n      if (nb === str.length) {\r\n        ++c;\r\n        if (p.next) list.head = p.next;else list.head = list.tail = null;\r\n      } else {\r\n        list.head = p;\r\n        p.data = str.slice(nb);\r\n      }\r\n      break;\r\n    }\r\n    ++c;\r\n  }\r\n  list.length -= c;\r\n  return ret;\r\n}\r\n\r\n// Copies a specified amount of bytes from the list of buffered data chunks.\r\n// This function is designed to be inlinable, so please take care when making\r\n// changes to the function body.\r\nfunction copyFromBuffer(n, list) {\r\n  var ret = Buffer.allocUnsafe(n);\r\n  var p = list.head;\r\n  var c = 1;\r\n  p.data.copy(ret);\r\n  n -= p.data.length;\r\n  while (p = p.next) {\r\n    var buf = p.data;\r\n    var nb = n > buf.length ? buf.length : n;\r\n    buf.copy(ret, ret.length - n, 0, nb);\r\n    n -= nb;\r\n    if (n === 0) {\r\n      if (nb === buf.length) {\r\n        ++c;\r\n        if (p.next) list.head = p.next;else list.head = list.tail = null;\r\n      } else {\r\n        list.head = p;\r\n        p.data = buf.slice(nb);\r\n      }\r\n      break;\r\n    }\r\n    ++c;\r\n  }\r\n  list.length -= c;\r\n  return ret;\r\n}\r\n\r\nfunction endReadable(stream) {\r\n  var state = stream._readableState;\r\n\r\n  // If we get here before consuming all the bytes, then that is a\r\n  // bug in node.  Should never happen.\r\n  if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\r\n\r\n  if (!state.endEmitted) {\r\n    state.ended = true;\r\n    processNextTick(endReadableNT, state, stream);\r\n  }\r\n}\r\n\r\nfunction endReadableNT(state, stream) {\r\n  // Check that we didn't get one last unshift.\r\n  if (!state.endEmitted && state.length === 0) {\r\n    state.endEmitted = true;\r\n    stream.readable = false;\r\n    stream.emit('end');\r\n  }\r\n}\r\n\r\nfunction forEach(xs, f) {\r\n  for (var i = 0, l = xs.length; i < l; i++) {\r\n    f(xs[i], i);\r\n  }\r\n}\r\n\r\nfunction indexOf(xs, x) {\r\n  for (var i = 0, l = xs.length; i < l; i++) {\r\n    if (xs[i] === x) return i;\r\n  }\r\n  return -1;\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/lib/_stream_readable.js\n// module id = 411\n// module chunks = 2","// a transform stream is a readable/writable stream where you do\r\n// something with the data.  Sometimes it's called a \"filter\",\r\n// but that's not a great name for it, since that implies a thing where\r\n// some bits pass through, and others are simply ignored.  (That would\r\n// be a valid example of a transform, of course.)\r\n//\r\n// While the output is causally related to the input, it's not a\r\n// necessarily symmetric or synchronous transformation.  For example,\r\n// a zlib stream might take multiple plain-text writes(), and then\r\n// emit a single compressed chunk some time in the future.\r\n//\r\n// Here's how this works:\r\n//\r\n// The Transform stream has all the aspects of the readable and writable\r\n// stream classes.  When you write(chunk), that calls _write(chunk,cb)\r\n// internally, and returns false if there's a lot of pending writes\r\n// buffered up.  When you call read(), that calls _read(n) until\r\n// there's enough pending readable data buffered up.\r\n//\r\n// In a transform stream, the written data is placed in a buffer.  When\r\n// _read(n) is called, it transforms the queued up data, calling the\r\n// buffered _write cb's as it consumes chunks.  If consuming a single\r\n// written chunk would result in multiple output chunks, then the first\r\n// outputted bit calls the readcb, and subsequent chunks just go into\r\n// the read buffer, and will cause it to emit 'readable' if necessary.\r\n//\r\n// This way, back-pressure is actually determined by the reading side,\r\n// since _read has to be called to start processing a new chunk.  However,\r\n// a pathological inflate type of transform can cause excessive buffering\r\n// here.  For example, imagine a stream where every byte of input is\r\n// interpreted as an integer from 0-255, and then results in that many\r\n// bytes of output.  Writing the 4 bytes {ff,ff,ff,ff} would result in\r\n// 1kb of data being output.  In this case, you could write a very small\r\n// amount of input, and end up with a very large amount of output.  In\r\n// such a pathological inflating mechanism, there'd be no way to tell\r\n// the system to stop doing the transform.  A single 4MB write could\r\n// cause the system to run out of memory.\r\n//\r\n// However, even in such a pathological case, only a single written chunk\r\n// would be consumed, and then the rest would wait (un-transformed) until\r\n// the results of the previous transformed chunk were consumed.\r\n\r\n'use strict';\r\n\r\nmodule.exports = Transform;\r\n\r\nvar Duplex = require('./_stream_duplex');\r\n\r\n/*<replacement>*/\r\nvar util = require('core-util-is');\r\nutil.inherits = require('inherits');\r\n/*</replacement>*/\r\n\r\nutil.inherits(Transform, Duplex);\r\n\r\nfunction TransformState(stream) {\r\n  this.afterTransform = function (er, data) {\r\n    return afterTransform(stream, er, data);\r\n  };\r\n\r\n  this.needTransform = false;\r\n  this.transforming = false;\r\n  this.writecb = null;\r\n  this.writechunk = null;\r\n  this.writeencoding = null;\r\n}\r\n\r\nfunction afterTransform(stream, er, data) {\r\n  var ts = stream._transformState;\r\n  ts.transforming = false;\r\n\r\n  var cb = ts.writecb;\r\n\r\n  if (!cb) return stream.emit('error', new Error('no writecb in Transform class'));\r\n\r\n  ts.writechunk = null;\r\n  ts.writecb = null;\r\n\r\n  if (data !== null && data !== undefined) stream.push(data);\r\n\r\n  cb(er);\r\n\r\n  var rs = stream._readableState;\r\n  rs.reading = false;\r\n  if (rs.needReadable || rs.length < rs.highWaterMark) {\r\n    stream._read(rs.highWaterMark);\r\n  }\r\n}\r\n\r\nfunction Transform(options) {\r\n  if (!(this instanceof Transform)) return new Transform(options);\r\n\r\n  Duplex.call(this, options);\r\n\r\n  this._transformState = new TransformState(this);\r\n\r\n  var stream = this;\r\n\r\n  // start out asking for a readable event once data is transformed.\r\n  this._readableState.needReadable = true;\r\n\r\n  // we have implemented the _read method, and done the other things\r\n  // that Readable wants before the first _read call, so unset the\r\n  // sync guard flag.\r\n  this._readableState.sync = false;\r\n\r\n  if (options) {\r\n    if (typeof options.transform === 'function') this._transform = options.transform;\r\n\r\n    if (typeof options.flush === 'function') this._flush = options.flush;\r\n  }\r\n\r\n  // When the writable side finishes, then flush out anything remaining.\r\n  this.once('prefinish', function () {\r\n    if (typeof this._flush === 'function') this._flush(function (er, data) {\r\n      done(stream, er, data);\r\n    });else done(stream);\r\n  });\r\n}\r\n\r\nTransform.prototype.push = function (chunk, encoding) {\r\n  this._transformState.needTransform = false;\r\n  return Duplex.prototype.push.call(this, chunk, encoding);\r\n};\r\n\r\n// This is the part where you do stuff!\r\n// override this function in implementation classes.\r\n// 'chunk' is an input chunk.\r\n//\r\n// Call `push(newChunk)` to pass along transformed output\r\n// to the readable side.  You may call 'push' zero or more times.\r\n//\r\n// Call `cb(err)` when you are done with this chunk.  If you pass\r\n// an error, then that'll put the hurt on the whole operation.  If you\r\n// never call cb(), then you'll never get another chunk.\r\nTransform.prototype._transform = function (chunk, encoding, cb) {\r\n  throw new Error('_transform() is not implemented');\r\n};\r\n\r\nTransform.prototype._write = function (chunk, encoding, cb) {\r\n  var ts = this._transformState;\r\n  ts.writecb = cb;\r\n  ts.writechunk = chunk;\r\n  ts.writeencoding = encoding;\r\n  if (!ts.transforming) {\r\n    var rs = this._readableState;\r\n    if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\r\n  }\r\n};\r\n\r\n// Doesn't matter what the args are here.\r\n// _transform does all the work.\r\n// That we got here means that the readable side wants more data.\r\nTransform.prototype._read = function (n) {\r\n  var ts = this._transformState;\r\n\r\n  if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\r\n    ts.transforming = true;\r\n    this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\r\n  } else {\r\n    // mark that we need a transform, so that any data that comes in\r\n    // will get processed, now that we've asked for it.\r\n    ts.needTransform = true;\r\n  }\r\n};\r\n\r\nfunction done(stream, er, data) {\r\n  if (er) return stream.emit('error', er);\r\n\r\n  if (data !== null && data !== undefined) stream.push(data);\r\n\r\n  // if there's nothing in the write buffer, then that means\r\n  // that nothing more will ever be provided\r\n  var ws = stream._writableState;\r\n  var ts = stream._transformState;\r\n\r\n  if (ws.length) throw new Error('Calling transform done when ws.length != 0');\r\n\r\n  if (ts.transforming) throw new Error('Calling transform done when still transforming');\r\n\r\n  return stream.push(null);\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/lib/_stream_transform.js\n// module id = 412\n// module chunks = 2","module.exports = require('events').EventEmitter;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/lib/internal/streams/stream-browser.js\n// module id = 413\n// module chunks = 2","\"use strict\";\r\nexports.empty = {\r\n    closed: true,\r\n    next: function (value) { },\r\n    error: function (err) { throw err; },\r\n    complete: function () { }\r\n};\r\n//# sourceMappingURL=Observer.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/Observer.js\n// module id = 414\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar root_1 = require('../util/root');\r\nvar Observable_1 = require('../Observable');\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @extends {Ignored}\r\n * @hide true\r\n */\r\nvar PromiseObservable = (function (_super) {\r\n    __extends(PromiseObservable, _super);\r\n    function PromiseObservable(promise, scheduler) {\r\n        _super.call(this);\r\n        this.promise = promise;\r\n        this.scheduler = scheduler;\r\n    }\r\n    /**\r\n     * Converts a Promise to an Observable.\r\n     *\r\n     * <span class=\"informal\">Returns an Observable that just emits the Promise's\r\n     * resolved value, then completes.</span>\r\n     *\r\n     * Converts an ES2015 Promise or a Promises/A+ spec compliant Promise to an\r\n     * Observable. If the Promise resolves with a value, the output Observable\r\n     * emits that resolved value as a `next`, and then completes. If the Promise\r\n     * is rejected, then the output Observable emits the corresponding Error.\r\n     *\r\n     * @example <caption>Convert the Promise returned by Fetch to an Observable</caption>\r\n     * var result = Rx.Observable.fromPromise(fetch('http://myserver.com/'));\r\n     * result.subscribe(x => console.log(x), e => console.error(e));\r\n     *\r\n     * @see {@link bindCallback}\r\n     * @see {@link from}\r\n     *\r\n     * @param {Promise<T>} promise The promise to be converted.\r\n     * @param {Scheduler} [scheduler] An optional Scheduler to use for scheduling\r\n     * the delivery of the resolved value (or the rejection).\r\n     * @return {Observable<T>} An Observable which wraps the Promise.\r\n     * @static true\r\n     * @name fromPromise\r\n     * @owner Observable\r\n     */\r\n    PromiseObservable.create = function (promise, scheduler) {\r\n        return new PromiseObservable(promise, scheduler);\r\n    };\r\n    PromiseObservable.prototype._subscribe = function (subscriber) {\r\n        var _this = this;\r\n        var promise = this.promise;\r\n        var scheduler = this.scheduler;\r\n        if (scheduler == null) {\r\n            if (this._isScalar) {\r\n                if (!subscriber.closed) {\r\n                    subscriber.next(this.value);\r\n                    subscriber.complete();\r\n                }\r\n            }\r\n            else {\r\n                promise.then(function (value) {\r\n                    _this.value = value;\r\n                    _this._isScalar = true;\r\n                    if (!subscriber.closed) {\r\n                        subscriber.next(value);\r\n                        subscriber.complete();\r\n                    }\r\n                }, function (err) {\r\n                    if (!subscriber.closed) {\r\n                        subscriber.error(err);\r\n                    }\r\n                })\r\n                    .then(null, function (err) {\r\n                    // escape the promise trap, throw unhandled errors\r\n                    root_1.root.setTimeout(function () { throw err; });\r\n                });\r\n            }\r\n        }\r\n        else {\r\n            if (this._isScalar) {\r\n                if (!subscriber.closed) {\r\n                    return scheduler.schedule(dispatchNext, 0, { value: this.value, subscriber: subscriber });\r\n                }\r\n            }\r\n            else {\r\n                promise.then(function (value) {\r\n                    _this.value = value;\r\n                    _this._isScalar = true;\r\n                    if (!subscriber.closed) {\r\n                        subscriber.add(scheduler.schedule(dispatchNext, 0, { value: value, subscriber: subscriber }));\r\n                    }\r\n                }, function (err) {\r\n                    if (!subscriber.closed) {\r\n                        subscriber.add(scheduler.schedule(dispatchError, 0, { err: err, subscriber: subscriber }));\r\n                    }\r\n                })\r\n                    .then(null, function (err) {\r\n                    // escape the promise trap, throw unhandled errors\r\n                    root_1.root.setTimeout(function () { throw err; });\r\n                });\r\n            }\r\n        }\r\n    };\r\n    return PromiseObservable;\r\n}(Observable_1.Observable));\r\nexports.PromiseObservable = PromiseObservable;\r\nfunction dispatchNext(arg) {\r\n    var value = arg.value, subscriber = arg.subscriber;\r\n    if (!subscriber.closed) {\r\n        subscriber.next(value);\r\n        subscriber.complete();\r\n    }\r\n}\r\nfunction dispatchError(arg) {\r\n    var err = arg.err, subscriber = arg.subscriber;\r\n    if (!subscriber.closed) {\r\n        subscriber.error(err);\r\n    }\r\n}\r\n//# sourceMappingURL=PromiseObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/PromiseObservable.js\n// module id = 415\n// module chunks = 2","\"use strict\";\r\nvar FromObservable_1 = require('./FromObservable');\r\nexports.from = FromObservable_1.FromObservable.create;\r\n//# sourceMappingURL=from.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/from.js\n// module id = 416\n// module chunks = 2","\"use strict\";\r\nfunction isObject(x) {\r\n    return x != null && typeof x === 'object';\r\n}\r\nexports.isObject = isObject;\r\n//# sourceMappingURL=isObject.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/isObject.js\n// module id = 417\n// module chunks = 2","\"use strict\";\r\nfunction isPromise(value) {\r\n    return value && typeof value.subscribe !== 'function' && typeof value.then === 'function';\r\n}\r\nexports.isPromise = isPromise;\r\n//# sourceMappingURL=isPromise.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/isPromise.js\n// module id = 418\n// module chunks = 2","/*!\r\n * Bootstrap-select v1.11.2 (http://silviomoreto.github.io/bootstrap-select)\r\n *\r\n * Copyright 2013-2016 bootstrap-select\r\n * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)\r\n */\r\n\r\n(function (root, factory) {\r\n  if (typeof define === 'function' && define.amd) {\r\n    // AMD. Register as an anonymous module unless amdModuleId is set\r\n    define([\"jquery\"], function (a0) {\r\n      return (factory(a0));\r\n    });\r\n  } else if (typeof exports === 'object') {\r\n    // Node. Does not work with strict CommonJS, but\r\n    // only CommonJS-like environments that support module.exports,\r\n    // like Node.\r\n    module.exports = factory(require(\"jquery\"));\r\n  } else {\r\n    factory(jQuery);\r\n  }\r\n}(this, function (jQuery) {\r\n\r\n(function ($) {\r\n  'use strict';\r\n\r\n  //<editor-fold desc=\"Shims\">\r\n  if (!String.prototype.includes) {\r\n    (function () {\r\n      'use strict'; // needed to support `apply`/`call` with `undefined`/`null`\r\n      var toString = {}.toString;\r\n      var defineProperty = (function () {\r\n        // IE 8 only supports `Object.defineProperty` on DOM elements\r\n        try {\r\n          var object = {};\r\n          var $defineProperty = Object.defineProperty;\r\n          var result = $defineProperty(object, object, object) && $defineProperty;\r\n        } catch (error) {\r\n        }\r\n        return result;\r\n      }());\r\n      var indexOf = ''.indexOf;\r\n      var includes = function (search) {\r\n        if (this == null) {\r\n          throw new TypeError();\r\n        }\r\n        var string = String(this);\r\n        if (search && toString.call(search) == '[object RegExp]') {\r\n          throw new TypeError();\r\n        }\r\n        var stringLength = string.length;\r\n        var searchString = String(search);\r\n        var searchLength = searchString.length;\r\n        var position = arguments.length > 1 ? arguments[1] : undefined;\r\n        // `ToInteger`\r\n        var pos = position ? Number(position) : 0;\r\n        if (pos != pos) { // better `isNaN`\r\n          pos = 0;\r\n        }\r\n        var start = Math.min(Math.max(pos, 0), stringLength);\r\n        // Avoid the `indexOf` call if no match is possible\r\n        if (searchLength + start > stringLength) {\r\n          return false;\r\n        }\r\n        return indexOf.call(string, searchString, pos) != -1;\r\n      };\r\n      if (defineProperty) {\r\n        defineProperty(String.prototype, 'includes', {\r\n          'value': includes,\r\n          'configurable': true,\r\n          'writable': true\r\n        });\r\n      } else {\r\n        String.prototype.includes = includes;\r\n      }\r\n    }());\r\n  }\r\n\r\n  if (!String.prototype.startsWith) {\r\n    (function () {\r\n      'use strict'; // needed to support `apply`/`call` with `undefined`/`null`\r\n      var defineProperty = (function () {\r\n        // IE 8 only supports `Object.defineProperty` on DOM elements\r\n        try {\r\n          var object = {};\r\n          var $defineProperty = Object.defineProperty;\r\n          var result = $defineProperty(object, object, object) && $defineProperty;\r\n        } catch (error) {\r\n        }\r\n        return result;\r\n      }());\r\n      var toString = {}.toString;\r\n      var startsWith = function (search) {\r\n        if (this == null) {\r\n          throw new TypeError();\r\n        }\r\n        var string = String(this);\r\n        if (search && toString.call(search) == '[object RegExp]') {\r\n          throw new TypeError();\r\n        }\r\n        var stringLength = string.length;\r\n        var searchString = String(search);\r\n        var searchLength = searchString.length;\r\n        var position = arguments.length > 1 ? arguments[1] : undefined;\r\n        // `ToInteger`\r\n        var pos = position ? Number(position) : 0;\r\n        if (pos != pos) { // better `isNaN`\r\n          pos = 0;\r\n        }\r\n        var start = Math.min(Math.max(pos, 0), stringLength);\r\n        // Avoid the `indexOf` call if no match is possible\r\n        if (searchLength + start > stringLength) {\r\n          return false;\r\n        }\r\n        var index = -1;\r\n        while (++index < searchLength) {\r\n          if (string.charCodeAt(start + index) != searchString.charCodeAt(index)) {\r\n            return false;\r\n          }\r\n        }\r\n        return true;\r\n      };\r\n      if (defineProperty) {\r\n        defineProperty(String.prototype, 'startsWith', {\r\n          'value': startsWith,\r\n          'configurable': true,\r\n          'writable': true\r\n        });\r\n      } else {\r\n        String.prototype.startsWith = startsWith;\r\n      }\r\n    }());\r\n  }\r\n\r\n  if (!Object.keys) {\r\n    Object.keys = function (\r\n      o, // object\r\n      k, // key\r\n      r  // result array\r\n      ){\r\n      // initialize object and result\r\n      r=[];\r\n      // iterate over object keys\r\n      for (k in o)\r\n          // fill result array with non-prototypical keys\r\n        r.hasOwnProperty.call(o, k) && r.push(k);\r\n      // return result\r\n      return r;\r\n    };\r\n  }\r\n\r\n  // set data-selected on select element if the value has been programmatically selected\r\n  // prior to initialization of bootstrap-select\r\n  // * consider removing or replacing an alternative method *\r\n  var valHooks = {\r\n    useDefault: false,\r\n    _set: $.valHooks.select.set\r\n  };\r\n\r\n  $.valHooks.select.set = function(elem, value) {\r\n    if (value && !valHooks.useDefault) $(elem).data('selected', true);\r\n\r\n    return valHooks._set.apply(this, arguments);\r\n  };\r\n\r\n  var changed_arguments = null;\r\n  $.fn.triggerNative = function (eventName) {\r\n    var el = this[0],\r\n        event;\r\n\r\n    if (el.dispatchEvent) { // for modern browsers & IE9+\r\n      if (typeof Event === 'function') {\r\n        // For modern browsers\r\n        event = new Event(eventName, {\r\n          bubbles: true\r\n        });\r\n      } else {\r\n        // For IE since it doesn't support Event constructor\r\n        event = document.createEvent('Event');\r\n        event.initEvent(eventName, true, false);\r\n      }\r\n\r\n      el.dispatchEvent(event);\r\n    } else if (el.fireEvent) { // for IE8\r\n      event = document.createEventObject();\r\n      event.eventType = eventName;\r\n      el.fireEvent('on' + eventName, event);\r\n    } else {\r\n      // fall back to jQuery.trigger\r\n      this.trigger(eventName);\r\n    }\r\n  };\r\n  //</editor-fold>\r\n\r\n  // Case insensitive contains search\r\n  $.expr.pseudos.icontains = function (obj, index, meta) {\r\n    var $obj = $(obj);\r\n    var haystack = ($obj.data('tokens') || $obj.text()).toString().toUpperCase();\r\n    return haystack.includes(meta[3].toUpperCase());\r\n  };\r\n\r\n  // Case insensitive begins search\r\n  $.expr.pseudos.ibegins = function (obj, index, meta) {\r\n    var $obj = $(obj);\r\n    var haystack = ($obj.data('tokens') || $obj.text()).toString().toUpperCase();\r\n    return haystack.startsWith(meta[3].toUpperCase());\r\n  };\r\n\r\n  // Case and accent insensitive contains search\r\n  $.expr.pseudos.aicontains = function (obj, index, meta) {\r\n    var $obj = $(obj);\r\n    var haystack = ($obj.data('tokens') || $obj.data('normalizedText') || $obj.text()).toString().toUpperCase();\r\n    return haystack.includes(meta[3].toUpperCase());\r\n  };\r\n\r\n  // Case and accent insensitive begins search\r\n  $.expr.pseudos.aibegins = function (obj, index, meta) {\r\n    var $obj = $(obj);\r\n    var haystack = ($obj.data('tokens') || $obj.data('normalizedText') || $obj.text()).toString().toUpperCase();\r\n    return haystack.startsWith(meta[3].toUpperCase());\r\n  };\r\n\r\n  /**\r\n   * Remove all diatrics from the given text.\r\n   * @access private\r\n   * @param {String} text\r\n   * @returns {String}\r\n   */\r\n  function normalizeToBase(text) {\r\n    var rExps = [\r\n      {re: /[\\xC0-\\xC6]/g, ch: \"A\"},\r\n      {re: /[\\xE0-\\xE6]/g, ch: \"a\"},\r\n      {re: /[\\xC8-\\xCB]/g, ch: \"E\"},\r\n      {re: /[\\xE8-\\xEB]/g, ch: \"e\"},\r\n      {re: /[\\xCC-\\xCF]/g, ch: \"I\"},\r\n      {re: /[\\xEC-\\xEF]/g, ch: \"i\"},\r\n      {re: /[\\xD2-\\xD6]/g, ch: \"O\"},\r\n      {re: /[\\xF2-\\xF6]/g, ch: \"o\"},\r\n      {re: /[\\xD9-\\xDC]/g, ch: \"U\"},\r\n      {re: /[\\xF9-\\xFC]/g, ch: \"u\"},\r\n      {re: /[\\xC7-\\xE7]/g, ch: \"c\"},\r\n      {re: /[\\xD1]/g, ch: \"N\"},\r\n      {re: /[\\xF1]/g, ch: \"n\"}\r\n    ];\r\n    $.each(rExps, function () {\r\n      text = text.replace(this.re, this.ch);\r\n    });\r\n    return text;\r\n  }\r\n\r\n\r\n  function htmlEscape(html) {\r\n    var escapeMap = {\r\n      '&': '&amp;',\r\n      '<': '&lt;',\r\n      '>': '&gt;',\r\n      '\"': '&quot;',\r\n      \"'\": '&#x27;',\r\n      '`': '&#x60;'\r\n    };\r\n    var source = '(?:' + Object.keys(escapeMap).join('|') + ')',\r\n        testRegexp = new RegExp(source),\r\n        replaceRegexp = new RegExp(source, 'g'),\r\n        string = html == null ? '' : '' + html;\r\n    return testRegexp.test(string) ? string.replace(replaceRegexp, function (match) {\r\n      return escapeMap[match];\r\n    }) : string;\r\n  }\r\n\r\n  var Selectpicker = function (element, options, e) {\r\n    // bootstrap-select has been initialized - revert valHooks.select.set back to its original function\r\n    if (!valHooks.useDefault) {\r\n      $.valHooks.select.set = valHooks._set;\r\n      valHooks.useDefault = true;\r\n    }\r\n\r\n    if (e) {\r\n      e.stopPropagation();\r\n      e.preventDefault();\r\n    }\r\n\r\n    this.$element = $(element);\r\n    this.$newElement = null;\r\n    this.$button = null;\r\n    this.$menu = null;\r\n    this.$lis = null;\r\n    this.options = options;\r\n\r\n    // If we have no title yet, try to pull it from the html title attribute (jQuery doesnt' pick it up as it's not a\r\n    // data-attribute)\r\n    if (this.options.title === null) {\r\n      this.options.title = this.$element.attr('title');\r\n    }\r\n\r\n    //Expose public methods\r\n    this.val = Selectpicker.prototype.val;\r\n    this.render = Selectpicker.prototype.render;\r\n    this.refresh = Selectpicker.prototype.refresh;\r\n    this.setStyle = Selectpicker.prototype.setStyle;\r\n    this.selectAll = Selectpicker.prototype.selectAll;\r\n    this.deselectAll = Selectpicker.prototype.deselectAll;\r\n    this.destroy = Selectpicker.prototype.destroy;\r\n    this.remove = Selectpicker.prototype.remove;\r\n    this.show = Selectpicker.prototype.show;\r\n    this.hide = Selectpicker.prototype.hide;\r\n\r\n    this.init();\r\n  };\r\n\r\n  Selectpicker.VERSION = '1.11.2';\r\n\r\n  // part of this is duplicated in i18n/defaults-en_US.js. Make sure to update both.\r\n  Selectpicker.DEFAULTS = {\r\n    noneSelectedText: 'Nothing selected',\r\n    noneResultsText: 'No results matched {0}',\r\n    countSelectedText: function (numSelected, numTotal) {\r\n      return (numSelected == 1) ? \"{0} item selected\" : \"{0} items selected\";\r\n    },\r\n    maxOptionsText: function (numAll, numGroup) {\r\n      return [\r\n        (numAll == 1) ? 'Limit reached ({n} item max)' : 'Limit reached ({n} items max)',\r\n        (numGroup == 1) ? 'Group limit reached ({n} item max)' : 'Group limit reached ({n} items max)'\r\n      ];\r\n    },\r\n    selectAllText: 'Select All',\r\n    deselectAllText: 'Deselect All',\r\n    doneButton: false,\r\n    doneButtonText: 'Close',\r\n    multipleSeparator: ', ',\r\n    styleBase: 'btn',\r\n    style: 'btn-default',\r\n    size: 'auto',\r\n    title: null,\r\n    selectedTextFormat: 'values',\r\n    width: false,\r\n    container: false,\r\n    hideDisabled: false,\r\n    showSubtext: false,\r\n    showIcon: true,\r\n    showContent: true,\r\n    dropupAuto: true,\r\n    header: false,\r\n    liveSearch: false,\r\n    liveSearchPlaceholder: null,\r\n    liveSearchNormalize: false,\r\n    liveSearchStyle: 'contains',\r\n    actionsBox: false,\r\n    iconBase: 'glyphicon',\r\n    tickIcon: 'glyphicon-ok',\r\n    showTick: false,\r\n    template: {\r\n      caret: '<span class=\"caret\"></span>'\r\n    },\r\n    maxOptions: false,\r\n    mobile: false,\r\n    selectOnTab: false,\r\n    dropdownAlignRight: false\r\n  };\r\n\r\n  Selectpicker.prototype = {\r\n\r\n    constructor: Selectpicker,\r\n\r\n    init: function () {\r\n      var that = this,\r\n          id = this.$element.attr('id');\r\n\r\n      this.$element.addClass('bs-select-hidden');\r\n\r\n      // store originalIndex (key) and newIndex (value) in this.liObj for fast accessibility\r\n      // allows us to do this.$lis.eq(that.liObj[index]) instead of this.$lis.filter('[data-original-index=\"' + index + '\"]')\r\n      this.liObj = {};\r\n      this.multiple = this.$element.prop('multiple');\r\n      this.autofocus = this.$element.prop('autofocus');\r\n      this.$newElement = this.createView();\r\n      this.$element\r\n        .after(this.$newElement)\r\n        .appendTo(this.$newElement);\r\n      this.$button = this.$newElement.children('button');\r\n      this.$menu = this.$newElement.children('.dropdown-menu');\r\n      this.$menuInner = this.$menu.children('.inner');\r\n      this.$searchbox = this.$menu.find('input');\r\n\r\n      this.$element.removeClass('bs-select-hidden');\r\n\r\n      if (this.options.dropdownAlignRight === true) this.$menu.addClass('dropdown-menu-right');\r\n\r\n      if (typeof id !== 'undefined') {\r\n        this.$button.attr('data-id', id);\r\n        $('label[for=\"' + id + '\"]').click(function (e) {\r\n          e.preventDefault();\r\n          that.$button.focus();\r\n        });\r\n      }\r\n\r\n      this.checkDisabled();\r\n      this.clickListener();\r\n      if (this.options.liveSearch) this.liveSearchListener();\r\n      this.render();\r\n      this.setStyle();\r\n      this.setWidth();\r\n      if (this.options.container) this.selectPosition();\r\n      this.$menu.data('this', this);\r\n      this.$newElement.data('this', this);\r\n      if (this.options.mobile) this.mobile();\r\n\r\n      this.$newElement.on({\r\n        'hide.bs.dropdown': function (e) {\r\n          that.$menuInner.attr('aria-expanded', false);\r\n          that.$element.trigger('hide.bs.select', e);\r\n        },\r\n        'hidden.bs.dropdown': function (e) {\r\n          that.$element.trigger('hidden.bs.select', e);\r\n        },\r\n        'show.bs.dropdown': function (e) {\r\n          that.$menuInner.attr('aria-expanded', true);\r\n          that.$element.trigger('show.bs.select', e);\r\n        },\r\n        'shown.bs.dropdown': function (e) {\r\n          that.$element.trigger('shown.bs.select', e);\r\n        }\r\n      });\r\n\r\n      if (that.$element[0].hasAttribute('required')) {\r\n        this.$element.on('invalid', function () {\r\n          that.$button\r\n            .addClass('bs-invalid')\r\n            .focus();\r\n\r\n          that.$element.on({\r\n            'focus.bs.select': function () {\r\n              that.$button.focus();\r\n              that.$element.off('focus.bs.select');\r\n            },\r\n            'shown.bs.select': function () {\r\n              that.$element\r\n                .val(that.$element.val()) // set the value to hide the validation message in Chrome when menu is opened\r\n                .off('shown.bs.select');\r\n            },\r\n            'rendered.bs.select': function () {\r\n              // if select is no longer invalid, remove the bs-invalid class\r\n              if (this.validity.valid) that.$button.removeClass('bs-invalid');\r\n              that.$element.off('rendered.bs.select');\r\n            }\r\n          });\r\n        });\r\n      }\r\n\r\n      setTimeout(function () {\r\n        that.$element.trigger('loaded.bs.select');\r\n      });\r\n    },\r\n\r\n    createDropdown: function () {\r\n      // Options\r\n      // If we are multiple or showTick option is set, then add the show-tick class\r\n      var showTick = (this.multiple || this.options.showTick) ? ' show-tick' : '',\r\n          inputGroup = this.$element.parent().hasClass('input-group') ? ' input-group-btn' : '',\r\n          autofocus = this.autofocus ? ' autofocus' : '';\r\n      // Elements\r\n      var header = this.options.header ? '<div class=\"popover-title\"><button type=\"button\" class=\"close\" aria-hidden=\"true\">&times;</button>' + this.options.header + '</div>' : '';\r\n      var searchbox = this.options.liveSearch ?\r\n      '<div class=\"bs-searchbox\">' +\r\n      '<input type=\"text\" class=\"form-control\" autocomplete=\"off\"' +\r\n      (null === this.options.liveSearchPlaceholder ? '' : ' placeholder=\"' + htmlEscape(this.options.liveSearchPlaceholder) + '\"') + ' role=\"textbox\" aria-label=\"Search\">' +\r\n      '</div>'\r\n          : '';\r\n      var actionsbox = this.multiple && this.options.actionsBox ?\r\n      '<div class=\"bs-actionsbox\">' +\r\n      '<div class=\"btn-group btn-group-sm btn-block\">' +\r\n      '<button type=\"button\" class=\"actions-btn bs-select-all btn btn-default\">' +\r\n      this.options.selectAllText +\r\n      '</button>' +\r\n      '<button type=\"button\" class=\"actions-btn bs-deselect-all btn btn-default\">' +\r\n      this.options.deselectAllText +\r\n      '</button>' +\r\n      '</div>' +\r\n      '</div>'\r\n          : '';\r\n      var donebutton = this.multiple && this.options.doneButton ?\r\n      '<div class=\"bs-donebutton\">' +\r\n      '<div class=\"btn-group btn-block\">' +\r\n      '<button type=\"button\" class=\"btn btn-sm btn-default\">' +\r\n      this.options.doneButtonText +\r\n      '</button>' +\r\n      '</div>' +\r\n      '</div>'\r\n          : '';\r\n      var drop =\r\n          '<div class=\"btn-group bootstrap-select' + showTick + inputGroup + '\">' +\r\n          '<button type=\"button\" class=\"' + this.options.styleBase + ' dropdown-toggle\" data-toggle=\"dropdown\"' + autofocus + ' role=\"button\">' +\r\n          '<span class=\"filter-option pull-left\"></span>&nbsp;' +\r\n          '<span class=\"bs-caret\">' +\r\n          this.options.template.caret +\r\n          '</span>' +\r\n          '</button>' +\r\n          '<div class=\"dropdown-menu open\" role=\"combobox\">' +\r\n          header +\r\n          searchbox +\r\n          actionsbox +\r\n          '<ul class=\"dropdown-menu inner\" role=\"listbox\" aria-expanded=\"false\">' +\r\n          '</ul>' +\r\n          donebutton +\r\n          '</div>' +\r\n          '</div>';\r\n\r\n      return $(drop);\r\n    },\r\n\r\n    createView: function () {\r\n      var $drop = this.createDropdown(),\r\n          li = this.createLi();\r\n\r\n      $drop.find('ul')[0].innerHTML = li;\r\n      return $drop;\r\n    },\r\n\r\n    reloadLi: function () {\r\n      //Remove all children.\r\n      this.destroyLi();\r\n      //Re build\r\n      var li = this.createLi();\r\n      this.$menuInner[0].innerHTML = li;\r\n    },\r\n\r\n    destroyLi: function () {\r\n      this.$menu.find('li').remove();\r\n    },\r\n\r\n    createLi: function () {\r\n      var that = this,\r\n          _li = [],\r\n          optID = 0,\r\n          titleOption = document.createElement('option'),\r\n          liIndex = -1; // increment liIndex whenever a new <li> element is created to ensure liObj is correct\r\n\r\n      // Helper functions\r\n      /**\r\n       * @param content\r\n       * @param [index]\r\n       * @param [classes]\r\n       * @param [optgroup]\r\n       * @returns {string}\r\n       */\r\n      var generateLI = function (content, index, classes, optgroup) {\r\n        return '<li' +\r\n            ((typeof classes !== 'undefined' & '' !== classes) ? ' class=\"' + classes + '\"' : '') +\r\n            ((typeof index !== 'undefined' & null !== index) ? ' data-original-index=\"' + index + '\"' : '') +\r\n            ((typeof optgroup !== 'undefined' & null !== optgroup) ? 'data-optgroup=\"' + optgroup + '\"' : '') +\r\n            '>' + content + '</li>';\r\n      };\r\n\r\n      /**\r\n       * @param text\r\n       * @param [classes]\r\n       * @param [inline]\r\n       * @param [tokens]\r\n       * @returns {string}\r\n       */\r\n      var generateA = function (text, classes, inline, tokens) {\r\n        return '<a tabindex=\"0\"' +\r\n            (typeof classes !== 'undefined' ? ' class=\"' + classes + '\"' : '') +\r\n            (typeof inline !== 'undefined' ? ' style=\"' + inline + '\"' : '') +\r\n            (that.options.liveSearchNormalize ? ' data-normalized-text=\"' + normalizeToBase(htmlEscape(text)) + '\"' : '') +\r\n            (typeof tokens !== 'undefined' || tokens !== null ? ' data-tokens=\"' + tokens + '\"' : '') +\r\n            ' role=\"option\">' + text +\r\n            '<span class=\"' + that.options.iconBase + ' ' + that.options.tickIcon + ' check-mark\"></span>' +\r\n            '</a>';\r\n      };\r\n\r\n      if (this.options.title && !this.multiple) {\r\n        // this option doesn't create a new <li> element, but does add a new option, so liIndex is decreased\r\n        // since liObj is recalculated on every refresh, liIndex needs to be decreased even if the titleOption is already appended\r\n        liIndex--;\r\n\r\n        if (!this.$element.find('.bs-title-option').length) {\r\n          // Use native JS to prepend option (faster)\r\n          var element = this.$element[0];\r\n          titleOption.className = 'bs-title-option';\r\n          titleOption.appendChild(document.createTextNode(this.options.title));\r\n          titleOption.value = '';\r\n          element.insertBefore(titleOption, element.firstChild);\r\n          // Check if selected or data-selected attribute is already set on an option. If not, select the titleOption option.\r\n          // the selected item may have been changed by user or programmatically before the bootstrap select plugin runs,\r\n          // if so, the select will have the data-selected attribute\r\n          var $opt = $(element.options[element.selectedIndex]);\r\n          if ($opt.attr('selected') === undefined && this.$element.data('selected') === undefined) {\r\n            titleOption.selected = true;\r\n          }\r\n        }\r\n      }\r\n\r\n      this.$element.find('option').each(function (index) {\r\n        var $this = $(this);\r\n\r\n        liIndex++;\r\n\r\n        if ($this.hasClass('bs-title-option')) return;\r\n\r\n        // Get the class and text for the option\r\n        var optionClass = this.className || '',\r\n            inline = this.style.cssText,\r\n            text = $this.data('content') ? $this.data('content') : $this.html(),\r\n            tokens = $this.data('tokens') ? $this.data('tokens') : null,\r\n            subtext = typeof $this.data('subtext') !== 'undefined' ? '<small class=\"text-muted\">' + $this.data('subtext') + '</small>' : '',\r\n            icon = typeof $this.data('icon') !== 'undefined' ? '<span class=\"' + that.options.iconBase + ' ' + $this.data('icon') + '\"></span> ' : '',\r\n            $parent = $this.parent(),\r\n            isOptgroup = $parent[0].tagName === 'OPTGROUP',\r\n            isOptgroupDisabled = isOptgroup && $parent[0].disabled,\r\n            isDisabled = this.disabled || isOptgroupDisabled;\r\n\r\n        if (icon !== '' && isDisabled) {\r\n          icon = '<span>' + icon + '</span>';\r\n        }\r\n\r\n        if (that.options.hideDisabled && (isDisabled && !isOptgroup || isOptgroupDisabled)) {\r\n          liIndex--;\r\n          return;\r\n        }\r\n\r\n        if (!$this.data('content')) {\r\n          // Prepend any icon and append any subtext to the main text.\r\n          text = icon + '<span class=\"text\">' + text + subtext + '</span>';\r\n        }\r\n\r\n        if (isOptgroup && $this.data('divider') !== true) {\r\n          if (that.options.hideDisabled && isDisabled) {\r\n            if ($parent.data('allOptionsDisabled') === undefined) {\r\n              var $options = $parent.children();\r\n              $parent.data('allOptionsDisabled', $options.filter(':disabled').length === $options.length);\r\n            }\r\n\r\n            if ($parent.data('allOptionsDisabled')) {\r\n              liIndex--;\r\n              return;\r\n            }\r\n          }\r\n\r\n          var optGroupClass = ' ' + $parent[0].className || '';\r\n\r\n          if ($this.index() === 0) { // Is it the first option of the optgroup?\r\n            optID += 1;\r\n\r\n            // Get the opt group label\r\n            var label = $parent[0].label,\r\n                labelSubtext = typeof $parent.data('subtext') !== 'undefined' ? '<small class=\"text-muted\">' + $parent.data('subtext') + '</small>' : '',\r\n                labelIcon = $parent.data('icon') ? '<span class=\"' + that.options.iconBase + ' ' + $parent.data('icon') + '\"></span> ' : '';\r\n\r\n            label = labelIcon + '<span class=\"text\">' + label + labelSubtext + '</span>';\r\n\r\n            if (index !== 0 && _li.length > 0) { // Is it NOT the first option of the select && are there elements in the dropdown?\r\n              liIndex++;\r\n              _li.push(generateLI('', null, 'divider', optID + 'div'));\r\n            }\r\n            liIndex++;\r\n            _li.push(generateLI(label, null, 'dropdown-header' + optGroupClass, optID));\r\n          }\r\n\r\n          if (that.options.hideDisabled && isDisabled) {\r\n            liIndex--;\r\n            return;\r\n          }\r\n\r\n          _li.push(generateLI(generateA(text, 'opt ' + optionClass + optGroupClass, inline, tokens), index, '', optID));\r\n        } else if ($this.data('divider') === true) {\r\n          _li.push(generateLI('', index, 'divider'));\r\n        } else if ($this.data('hidden') === true) {\r\n          _li.push(generateLI(generateA(text, optionClass, inline, tokens), index, 'hidden is-hidden'));\r\n        } else {\r\n          var showDivider = this.previousElementSibling && this.previousElementSibling.tagName === 'OPTGROUP';\r\n\r\n          // if previous element is not an optgroup and hideDisabled is true\r\n          if (!showDivider && that.options.hideDisabled) {\r\n            // get previous elements\r\n            var $prev = $(this).prevAll();\r\n\r\n            for (var i = 0; i < $prev.length; i++) {\r\n              // find the first element in the previous elements that is an optgroup\r\n              if ($prev[i].tagName === 'OPTGROUP') {\r\n                var optGroupDistance = 0;\r\n\r\n                // loop through the options in between the current option and the optgroup\r\n                // and check if they are hidden or disabled\r\n                for (var d = 0; d < i; d++) {\r\n                  var prevOption = $prev[d];\r\n                  if (prevOption.disabled || $(prevOption).data('hidden') === true) optGroupDistance++;\r\n                }\r\n\r\n                // if all of the options between the current option and the optgroup are hidden or disabled, show the divider\r\n                if (optGroupDistance === i) showDivider = true;\r\n\r\n                break;\r\n              }\r\n            }\r\n          }\r\n\r\n          if (showDivider) {\r\n            liIndex++;\r\n            _li.push(generateLI('', null, 'divider', optID + 'div'));\r\n          }\r\n          _li.push(generateLI(generateA(text, optionClass, inline, tokens), index));\r\n        }\r\n\r\n        that.liObj[index] = liIndex;\r\n      });\r\n\r\n      //If we are not multiple, we don't have a selected item, and we don't have a title, select the first element so something is set in the button\r\n      if (!this.multiple && this.$element.find('option:selected').length === 0 && !this.options.title) {\r\n        this.$element.find('option').eq(0).prop('selected', true).attr('selected', 'selected');\r\n      }\r\n\r\n      return _li.join('');\r\n    },\r\n\r\n    findLis: function () {\r\n      if (this.$lis == null) this.$lis = this.$menu.find('li');\r\n      return this.$lis;\r\n    },\r\n\r\n    /**\r\n     * @param [updateLi] defaults to true\r\n     */\r\n    render: function (updateLi) {\r\n      var that = this,\r\n          notDisabled;\r\n\r\n      //Update the LI to match the SELECT\r\n      if (updateLi !== false) {\r\n        this.$element.find('option').each(function (index) {\r\n          var $lis = that.findLis().eq(that.liObj[index]);\r\n\r\n          that.setDisabled(index, this.disabled || this.parentNode.tagName === 'OPTGROUP' && this.parentNode.disabled, $lis);\r\n          that.setSelected(index, this.selected, $lis);\r\n        });\r\n      }\r\n\r\n      this.togglePlaceholder();\r\n\r\n      this.tabIndex();\r\n\r\n      var selectedItems = this.$element.find('option').map(function () {\r\n        if (this.selected) {\r\n          if (that.options.hideDisabled && (this.disabled || this.parentNode.tagName === 'OPTGROUP' && this.parentNode.disabled)) return;\r\n\r\n          var $this = $(this),\r\n              icon = $this.data('icon') && that.options.showIcon ? '<i class=\"' + that.options.iconBase + ' ' + $this.data('icon') + '\"></i> ' : '',\r\n              subtext;\r\n\r\n          if (that.options.showSubtext && $this.data('subtext') && !that.multiple) {\r\n            subtext = ' <small class=\"text-muted\">' + $this.data('subtext') + '</small>';\r\n          } else {\r\n            subtext = '';\r\n          }\r\n          if (typeof $this.attr('title') !== 'undefined') {\r\n            return $this.attr('title');\r\n          } else if ($this.data('content') && that.options.showContent) {\r\n            return $this.data('content');\r\n          } else {\r\n            return icon + $this.html() + subtext;\r\n          }\r\n        }\r\n      }).toArray();\r\n\r\n      //Fixes issue in IE10 occurring when no default option is selected and at least one option is disabled\r\n      //Convert all the values into a comma delimited string\r\n      var title = !this.multiple ? selectedItems[0] : selectedItems.join(this.options.multipleSeparator);\r\n\r\n      //If this is multi select, and the selectText type is count, the show 1 of 2 selected etc..\r\n      if (this.multiple && this.options.selectedTextFormat.indexOf('count') > -1) {\r\n        var max = this.options.selectedTextFormat.split('>');\r\n        if ((max.length > 1 && selectedItems.length > max[1]) || (max.length == 1 && selectedItems.length >= 2)) {\r\n          notDisabled = this.options.hideDisabled ? ', [disabled]' : '';\r\n          var totalCount = this.$element.find('option').not('[data-divider=\"true\"], [data-hidden=\"true\"]' + notDisabled).length,\r\n              tr8nText = (typeof this.options.countSelectedText === 'function') ? this.options.countSelectedText(selectedItems.length, totalCount) : this.options.countSelectedText;\r\n          title = tr8nText.replace('{0}', selectedItems.length.toString()).replace('{1}', totalCount.toString());\r\n        }\r\n      }\r\n\r\n      if (this.options.title == undefined) {\r\n        this.options.title = this.$element.attr('title');\r\n      }\r\n\r\n      if (this.options.selectedTextFormat == 'static') {\r\n        title = this.options.title;\r\n      }\r\n\r\n      //If we dont have a title, then use the default, or if nothing is set at all, use the not selected text\r\n      if (!title) {\r\n        title = typeof this.options.title !== 'undefined' ? this.options.title : this.options.noneSelectedText;\r\n      }\r\n\r\n      //strip all html-tags and trim the result\r\n      this.$button.attr('title', $.trim(title.replace(/<[^>]*>?/g, '')));\r\n      this.$button.children('.filter-option').html(title);\r\n\r\n      this.$element.trigger('rendered.bs.select');\r\n    },\r\n\r\n    /**\r\n     * @param [style]\r\n     * @param [status]\r\n     */\r\n    setStyle: function (style, status) {\r\n      if (this.$element.attr('class')) {\r\n        this.$newElement.addClass(this.$element.attr('class').replace(/selectpicker|mobile-device|bs-select-hidden|validate\\[.*\\]/gi, ''));\r\n      }\r\n\r\n      var buttonClass = style ? style : this.options.style;\r\n\r\n      if (status == 'add') {\r\n        this.$button.addClass(buttonClass);\r\n      } else if (status == 'remove') {\r\n        this.$button.removeClass(buttonClass);\r\n      } else {\r\n        this.$button.removeClass(this.options.style);\r\n        this.$button.addClass(buttonClass);\r\n      }\r\n    },\r\n\r\n    liHeight: function (refresh) {\r\n      if (!refresh && (this.options.size === false || this.sizeInfo)) return;\r\n\r\n      var newElement = document.createElement('div'),\r\n          menu = document.createElement('div'),\r\n          menuInner = document.createElement('ul'),\r\n          divider = document.createElement('li'),\r\n          li = document.createElement('li'),\r\n          a = document.createElement('a'),\r\n          text = document.createElement('span'),\r\n          header = this.options.header && this.$menu.find('.popover-title').length > 0 ? this.$menu.find('.popover-title')[0].cloneNode(true) : null,\r\n          search = this.options.liveSearch ? document.createElement('div') : null,\r\n          actions = this.options.actionsBox && this.multiple && this.$menu.find('.bs-actionsbox').length > 0 ? this.$menu.find('.bs-actionsbox')[0].cloneNode(true) : null,\r\n          doneButton = this.options.doneButton && this.multiple && this.$menu.find('.bs-donebutton').length > 0 ? this.$menu.find('.bs-donebutton')[0].cloneNode(true) : null;\r\n\r\n      text.className = 'text';\r\n      newElement.className = this.$menu[0].parentNode.className + ' open';\r\n      menu.className = 'dropdown-menu open';\r\n      menuInner.className = 'dropdown-menu inner';\r\n      divider.className = 'divider';\r\n\r\n      text.appendChild(document.createTextNode('Inner text'));\r\n      a.appendChild(text);\r\n      li.appendChild(a);\r\n      menuInner.appendChild(li);\r\n      menuInner.appendChild(divider);\r\n      if (header) menu.appendChild(header);\r\n      if (search) {\r\n        // create a span instead of input as creating an input element is slower\r\n        var input = document.createElement('span');\r\n        search.className = 'bs-searchbox';\r\n        input.className = 'form-control';\r\n        search.appendChild(input);\r\n        menu.appendChild(search);\r\n      }\r\n      if (actions) menu.appendChild(actions);\r\n      menu.appendChild(menuInner);\r\n      if (doneButton) menu.appendChild(doneButton);\r\n      newElement.appendChild(menu);\r\n\r\n      document.body.appendChild(newElement);\r\n\r\n      var liHeight = a.offsetHeight,\r\n          headerHeight = header ? header.offsetHeight : 0,\r\n          searchHeight = search ? search.offsetHeight : 0,\r\n          actionsHeight = actions ? actions.offsetHeight : 0,\r\n          doneButtonHeight = doneButton ? doneButton.offsetHeight : 0,\r\n          dividerHeight = $(divider).outerHeight(true),\r\n          // fall back to jQuery if getComputedStyle is not supported\r\n          menuStyle = typeof getComputedStyle === 'function' ? getComputedStyle(menu) : false,\r\n          $menu = menuStyle ? null : $(menu),\r\n          menuPadding = {\r\n            vert: parseInt(menuStyle ? menuStyle.paddingTop : $menu.css('paddingTop')) +\r\n                  parseInt(menuStyle ? menuStyle.paddingBottom : $menu.css('paddingBottom')) +\r\n                  parseInt(menuStyle ? menuStyle.borderTopWidth : $menu.css('borderTopWidth')) +\r\n                  parseInt(menuStyle ? menuStyle.borderBottomWidth : $menu.css('borderBottomWidth')),\r\n            horiz: parseInt(menuStyle ? menuStyle.paddingLeft : $menu.css('paddingLeft')) +\r\n                  parseInt(menuStyle ? menuStyle.paddingRight : $menu.css('paddingRight')) +\r\n                  parseInt(menuStyle ? menuStyle.borderLeftWidth : $menu.css('borderLeftWidth')) +\r\n                  parseInt(menuStyle ? menuStyle.borderRightWidth : $menu.css('borderRightWidth'))\r\n          },\r\n          menuExtras =  {\r\n            vert: menuPadding.vert +\r\n                  parseInt(menuStyle ? menuStyle.marginTop : $menu.css('marginTop')) +\r\n                  parseInt(menuStyle ? menuStyle.marginBottom : $menu.css('marginBottom')) + 2,\r\n            horiz: menuPadding.horiz +\r\n                  parseInt(menuStyle ? menuStyle.marginLeft : $menu.css('marginLeft')) +\r\n                  parseInt(menuStyle ? menuStyle.marginRight : $menu.css('marginRight')) + 2\r\n          }\r\n\r\n      document.body.removeChild(newElement);\r\n\r\n      this.sizeInfo = {\r\n        liHeight: liHeight,\r\n        headerHeight: headerHeight,\r\n        searchHeight: searchHeight,\r\n        actionsHeight: actionsHeight,\r\n        doneButtonHeight: doneButtonHeight,\r\n        dividerHeight: dividerHeight,\r\n        menuPadding: menuPadding,\r\n        menuExtras: menuExtras\r\n      };\r\n    },\r\n\r\n    setSize: function () {\r\n      this.findLis();\r\n      this.liHeight();\r\n\r\n      if (this.options.header) this.$menu.css('padding-top', 0);\r\n      if (this.options.size === false) return;\r\n\r\n      var that = this,\r\n          $menu = this.$menu,\r\n          $menuInner = this.$menuInner,\r\n          $window = $(window),\r\n          selectHeight = this.$newElement[0].offsetHeight,\r\n          selectWidth = this.$newElement[0].offsetWidth,\r\n          liHeight = this.sizeInfo['liHeight'],\r\n          headerHeight = this.sizeInfo['headerHeight'],\r\n          searchHeight = this.sizeInfo['searchHeight'],\r\n          actionsHeight = this.sizeInfo['actionsHeight'],\r\n          doneButtonHeight = this.sizeInfo['doneButtonHeight'],\r\n          divHeight = this.sizeInfo['dividerHeight'],\r\n          menuPadding = this.sizeInfo['menuPadding'],\r\n          menuExtras = this.sizeInfo['menuExtras'],\r\n          notDisabled = this.options.hideDisabled ? '.disabled' : '',\r\n          menuHeight,\r\n          menuWidth,\r\n          getHeight,\r\n          getWidth,\r\n          selectOffsetTop,\r\n          selectOffsetBot,\r\n          selectOffsetLeft,\r\n          selectOffsetRight,\r\n          getPos = function() {\r\n            var pos = that.$newElement.offset(),\r\n                $container = $(that.options.container),\r\n                containerPos;\r\n\r\n            if (that.options.container && !$container.is('body')) {\r\n              containerPos = $container.offset();\r\n              containerPos.top += parseInt($container.css('borderTopWidth'));\r\n              containerPos.left += parseInt($container.css('borderLeftWidth'));\r\n            } else {\r\n              containerPos = { top: 0, left: 0 };\r\n            }\r\n\r\n            selectOffsetTop = pos.top - containerPos.top - $window.scrollTop();\r\n            selectOffsetBot = $window.height() - selectOffsetTop - selectHeight - containerPos.top;\r\n            selectOffsetLeft = pos.left - containerPos.left - $window.scrollLeft();\r\n            selectOffsetRight = $window.width() - selectOffsetLeft - selectWidth - containerPos.left;\r\n          };\r\n\r\n      getPos();\r\n\r\n      if (this.options.size === 'auto') {\r\n        var getSize = function () {\r\n          var minHeight,\r\n              hasClass = function (className, include) {\r\n                return function (element) {\r\n                    if (include) {\r\n                        return (element.classList ? element.classList.contains(className) : $(element).hasClass(className));\r\n                    } else {\r\n                        return !(element.classList ? element.classList.contains(className) : $(element).hasClass(className));\r\n                    }\r\n                };\r\n              },\r\n              lis = that.$menuInner[0].getElementsByTagName('li'),\r\n              lisVisible = Array.prototype.filter ? Array.prototype.filter.call(lis, hasClass('hidden', false)) : that.$lis.not('.hidden'),\r\n              optGroup = Array.prototype.filter ? Array.prototype.filter.call(lisVisible, hasClass('dropdown-header', true)) : lisVisible.filter('.dropdown-header');\r\n\r\n          getPos();\r\n          menuHeight = selectOffsetBot - menuExtras.vert;\r\n          menuWidth = selectOffsetRight - menuExtras.horiz;\r\n\r\n          if (that.options.container) {\r\n            if (!$menu.data('height')) $menu.data('height', $menu.height());\r\n            getHeight = $menu.data('height');\r\n\r\n            if (!$menu.data('width')) $menu.data('width', $menu.width());\r\n            getWidth = $menu.data('width');\r\n          } else {\r\n            getHeight = $menu.height();\r\n            getWidth = $menu.width();\r\n          }\r\n\r\n          if (that.options.dropupAuto) {\r\n            that.$newElement.toggleClass('dropup', selectOffsetTop > selectOffsetBot && (menuHeight - menuExtras.vert) < getHeight);\r\n          }\r\n\r\n          if (that.$newElement.hasClass('dropup')) {\r\n            menuHeight = selectOffsetTop - menuExtras.vert;\r\n          }\r\n\r\n          if (that.options.dropdownAlignRight === 'auto') {\r\n            $menu.toggleClass('dropdown-menu-right', selectOffsetLeft > selectOffsetRight && (menuWidth - menuExtras.horiz) < (getWidth - selectWidth));\r\n          }\r\n\r\n          if ((lisVisible.length + optGroup.length) > 3) {\r\n            minHeight = liHeight * 3 + menuExtras.vert - 2;\r\n          } else {\r\n            minHeight = 0;\r\n          }\r\n\r\n          $menu.css({\r\n            'max-height': menuHeight + 'px',\r\n            'overflow': 'hidden',\r\n            'min-height': minHeight + headerHeight + searchHeight + actionsHeight + doneButtonHeight + 'px'\r\n          });\r\n          $menuInner.css({\r\n            'max-height': menuHeight - headerHeight - searchHeight - actionsHeight - doneButtonHeight - menuPadding.vert + 'px',\r\n            'overflow-y': 'auto',\r\n            'min-height': Math.max(minHeight - menuPadding.vert, 0) + 'px'\r\n          });\r\n        };\r\n        getSize();\r\n        this.$searchbox.off('input.getSize propertychange.getSize').on('input.getSize propertychange.getSize', getSize);\r\n        $window.off('resize.getSize scroll.getSize').on('resize.getSize scroll.getSize', getSize);\r\n      } else if (this.options.size && this.options.size != 'auto' && this.$lis.not(notDisabled).length > this.options.size) {\r\n        var optIndex = this.$lis.not('.divider').not(notDisabled).children().slice(0, this.options.size).last().parent().index(),\r\n            divLength = this.$lis.slice(0, optIndex + 1).filter('.divider').length;\r\n        menuHeight = liHeight * this.options.size + divLength * divHeight + menuPadding.vert;\r\n\r\n        if (that.options.container) {\r\n          if (!$menu.data('height')) $menu.data('height', $menu.height());\r\n          getHeight = $menu.data('height');\r\n        } else {\r\n          getHeight = $menu.height();\r\n        }\r\n\r\n        if (that.options.dropupAuto) {\r\n          //noinspection JSUnusedAssignment\r\n          this.$newElement.toggleClass('dropup', selectOffsetTop > selectOffsetBot && (menuHeight - menuExtras.vert) < getHeight);\r\n        }\r\n        $menu.css({\r\n          'max-height': menuHeight + headerHeight + searchHeight + actionsHeight + doneButtonHeight + 'px',\r\n          'overflow': 'hidden',\r\n          'min-height': ''\r\n        });\r\n        $menuInner.css({\r\n          'max-height': menuHeight - menuPadding.vert + 'px',\r\n          'overflow-y': 'auto',\r\n          'min-height': ''\r\n        });\r\n      }\r\n    },\r\n\r\n    setWidth: function () {\r\n      if (this.options.width === 'auto') {\r\n        this.$menu.css('min-width', '0');\r\n\r\n        // Get correct width if element is hidden\r\n        var $selectClone = this.$menu.parent().clone().appendTo('body'),\r\n            $selectClone2 = this.options.container ? this.$newElement.clone().appendTo('body') : $selectClone,\r\n            ulWidth = $selectClone.children('.dropdown-menu').outerWidth(),\r\n            btnWidth = $selectClone2.css('width', 'auto').children('button').outerWidth();\r\n\r\n        $selectClone.remove();\r\n        $selectClone2.remove();\r\n\r\n        // Set width to whatever's larger, button title or longest option\r\n        this.$newElement.css('width', Math.max(ulWidth, btnWidth) + 'px');\r\n      } else if (this.options.width === 'fit') {\r\n        // Remove inline min-width so width can be changed from 'auto'\r\n        this.$menu.css('min-width', '');\r\n        this.$newElement.css('width', '').addClass('fit-width');\r\n      } else if (this.options.width) {\r\n        // Remove inline min-width so width can be changed from 'auto'\r\n        this.$menu.css('min-width', '');\r\n        this.$newElement.css('width', this.options.width);\r\n      } else {\r\n        // Remove inline min-width/width so width can be changed\r\n        this.$menu.css('min-width', '');\r\n        this.$newElement.css('width', '');\r\n      }\r\n      // Remove fit-width class if width is changed programmatically\r\n      if (this.$newElement.hasClass('fit-width') && this.options.width !== 'fit') {\r\n        this.$newElement.removeClass('fit-width');\r\n      }\r\n    },\r\n\r\n    selectPosition: function () {\r\n      this.$bsContainer = $('<div class=\"bs-container\" />');\r\n\r\n      var that = this,\r\n          $container = $(this.options.container),\r\n          pos,\r\n          containerPos,\r\n          actualHeight,\r\n          getPlacement = function ($element) {\r\n            that.$bsContainer.addClass($element.attr('class').replace(/form-control|fit-width/gi, '')).toggleClass('dropup', $element.hasClass('dropup'));\r\n            pos = $element.offset();\r\n\r\n            if (!$container.is('body')) {\r\n              containerPos = $container.offset();\r\n              containerPos.top += parseInt($container.css('borderTopWidth')) - $container.scrollTop();\r\n              containerPos.left += parseInt($container.css('borderLeftWidth')) - $container.scrollLeft();\r\n            } else {\r\n              containerPos = { top: 0, left: 0 };\r\n            }\r\n\r\n            actualHeight = $element.hasClass('dropup') ? 0 : $element[0].offsetHeight;\r\n\r\n            that.$bsContainer.css({\r\n              'top': pos.top - containerPos.top + actualHeight,\r\n              'left': pos.left - containerPos.left,\r\n              'width': $element[0].offsetWidth\r\n            });\r\n          };\r\n\r\n      this.$button.on('click', function () {\r\n        var $this = $(this);\r\n\r\n        if (that.isDisabled()) {\r\n          return;\r\n        }\r\n\r\n        getPlacement(that.$newElement);\r\n\r\n        that.$bsContainer\r\n          .appendTo(that.options.container)\r\n          .toggleClass('open', !$this.hasClass('open'))\r\n          .append(that.$menu);\r\n      });\r\n\r\n      $(window).on('resize scroll', function () {\r\n        getPlacement(that.$newElement);\r\n      });\r\n\r\n      this.$element.on('hide.bs.select', function () {\r\n        that.$menu.data('height', that.$menu.height());\r\n        that.$bsContainer.detach();\r\n      });\r\n    },\r\n\r\n    /**\r\n     * @param {number} index - the index of the option that is being changed\r\n     * @param {boolean} selected - true if the option is being selected, false if being deselected\r\n     * @param {JQuery} $lis - the 'li' element that is being modified\r\n     */\r\n    setSelected: function (index, selected, $lis) {\r\n      if (!$lis) {\r\n        this.togglePlaceholder(); // check if setSelected is being called by changing the value of the select\r\n        $lis = this.findLis().eq(this.liObj[index]);\r\n      }\r\n\r\n      $lis.toggleClass('selected', selected).find('a').attr('aria-selected', selected);\r\n    },\r\n\r\n    /**\r\n     * @param {number} index - the index of the option that is being disabled\r\n     * @param {boolean} disabled - true if the option is being disabled, false if being enabled\r\n     * @param {JQuery} $lis - the 'li' element that is being modified\r\n     */\r\n    setDisabled: function (index, disabled, $lis) {\r\n      if (!$lis) {\r\n        $lis = this.findLis().eq(this.liObj[index]);\r\n      }\r\n\r\n      if (disabled) {\r\n        $lis.addClass('disabled').children('a').attr('href', '#').attr('tabindex', -1).attr('aria-disabled', true);\r\n      } else {\r\n        $lis.removeClass('disabled').children('a').removeAttr('href').attr('tabindex', 0).attr('aria-disabled', false);\r\n      }\r\n    },\r\n\r\n    isDisabled: function () {\r\n      return this.$element[0].disabled;\r\n    },\r\n\r\n    checkDisabled: function () {\r\n      var that = this;\r\n\r\n      if (this.isDisabled()) {\r\n        this.$newElement.addClass('disabled');\r\n        this.$button.addClass('disabled').attr('tabindex', -1);\r\n      } else {\r\n        if (this.$button.hasClass('disabled')) {\r\n          this.$newElement.removeClass('disabled');\r\n          this.$button.removeClass('disabled');\r\n        }\r\n\r\n        if (this.$button.attr('tabindex') == -1 && !this.$element.data('tabindex')) {\r\n          this.$button.removeAttr('tabindex');\r\n        }\r\n      }\r\n\r\n      this.$button.click(function () {\r\n        return !that.isDisabled();\r\n      });\r\n    },\r\n\r\n    togglePlaceholder: function () {\r\n      var value = this.$element.val();\r\n      this.$button.toggleClass('bs-placeholder', value === null || value === '');\r\n    },\r\n\r\n    tabIndex: function () {\r\n      if (this.$element.data('tabindex') !== this.$element.attr('tabindex') && \r\n        (this.$element.attr('tabindex') !== -98 && this.$element.attr('tabindex') !== '-98')) {\r\n        this.$element.data('tabindex', this.$element.attr('tabindex'));\r\n        this.$button.attr('tabindex', this.$element.data('tabindex'));\r\n      }\r\n\r\n      this.$element.attr('tabindex', -98);\r\n    },\r\n\r\n    clickListener: function () {\r\n      var that = this,\r\n          $document = $(document);\r\n\r\n      this.$newElement.on('touchstart.dropdown', '.dropdown-menu', function (e) {\r\n        e.stopPropagation();\r\n      });\r\n\r\n      $document.data('spaceSelect', false);\r\n\r\n      this.$button.on('keyup', function (e) {\r\n        if (/(32)/.test(e.keyCode.toString(10)) && $document.data('spaceSelect')) {\r\n            e.preventDefault();\r\n            $document.data('spaceSelect', false);\r\n        }\r\n      });\r\n\r\n      this.$button.on('click', function () {\r\n        that.setSize();\r\n      });\r\n\r\n      this.$element.on('shown.bs.select', function () {\r\n        if (!that.options.liveSearch && !that.multiple) {\r\n          that.$menuInner.find('.selected a').focus();\r\n        } else if (!that.multiple) {\r\n          var selectedIndex = that.liObj[that.$element[0].selectedIndex];\r\n\r\n          if (typeof selectedIndex !== 'number' || that.options.size === false) return;\r\n\r\n          // scroll to selected option\r\n          var offset = that.$lis.eq(selectedIndex)[0].offsetTop - that.$menuInner[0].offsetTop;\r\n          offset = offset - that.$menuInner[0].offsetHeight/2 + that.sizeInfo.liHeight/2;\r\n          that.$menuInner[0].scrollTop = offset;\r\n        }\r\n      });\r\n\r\n      this.$menuInner.on('click', 'li a', function (e) {\r\n        var $this = $(this),\r\n            clickedIndex = $this.parent().data('originalIndex'),\r\n            prevValue = that.$element.val(),\r\n            prevIndex = that.$element.prop('selectedIndex'),\r\n            triggerChange = true;\r\n\r\n        // Don't close on multi choice menu\r\n        if (that.multiple && that.options.maxOptions !== 1) {\r\n          e.stopPropagation();\r\n        }\r\n\r\n        e.preventDefault();\r\n\r\n        //Don't run if we have been disabled\r\n        if (!that.isDisabled() && !$this.parent().hasClass('disabled')) {\r\n          var $options = that.$element.find('option'),\r\n              $option = $options.eq(clickedIndex),\r\n              state = $option.prop('selected'),\r\n              $optgroup = $option.parent('optgroup'),\r\n              maxOptions = that.options.maxOptions,\r\n              maxOptionsGrp = $optgroup.data('maxOptions') || false;\r\n\r\n          if (!that.multiple) { // Deselect all others if not multi select box\r\n            $options.prop('selected', false);\r\n            $option.prop('selected', true);\r\n            that.$menuInner.find('.selected').removeClass('selected').find('a').attr('aria-selected', false);\r\n            that.setSelected(clickedIndex, true);\r\n          } else { // Toggle the one we have chosen if we are multi select.\r\n            $option.prop('selected', !state);\r\n            that.setSelected(clickedIndex, !state);\r\n            $this.blur();\r\n\r\n            if (maxOptions !== false || maxOptionsGrp !== false) {\r\n              var maxReached = maxOptions < $options.filter(':selected').length,\r\n                  maxReachedGrp = maxOptionsGrp < $optgroup.find('option:selected').length;\r\n\r\n              if ((maxOptions && maxReached) || (maxOptionsGrp && maxReachedGrp)) {\r\n                if (maxOptions && maxOptions == 1) {\r\n                  $options.prop('selected', false);\r\n                  $option.prop('selected', true);\r\n                  that.$menuInner.find('.selected').removeClass('selected');\r\n                  that.setSelected(clickedIndex, true);\r\n                } else if (maxOptionsGrp && maxOptionsGrp == 1) {\r\n                  $optgroup.find('option:selected').prop('selected', false);\r\n                  $option.prop('selected', true);\r\n                  var optgroupID = $this.parent().data('optgroup');\r\n                  that.$menuInner.find('[data-optgroup=\"' + optgroupID + '\"]').removeClass('selected');\r\n                  that.setSelected(clickedIndex, true);\r\n                } else {\r\n                  var maxOptionsText = typeof that.options.maxOptionsText === 'string' ? [that.options.maxOptionsText, that.options.maxOptionsText] : that.options.maxOptionsText,\r\n                      maxOptionsArr = typeof maxOptionsText === 'function' ? maxOptionsText(maxOptions, maxOptionsGrp) : maxOptionsText,\r\n                      maxTxt = maxOptionsArr[0].replace('{n}', maxOptions),\r\n                      maxTxtGrp = maxOptionsArr[1].replace('{n}', maxOptionsGrp),\r\n                      $notify = $('<div class=\"notify\"></div>');\r\n                  // If {var} is set in array, replace it\r\n                  /** @deprecated */\r\n                  if (maxOptionsArr[2]) {\r\n                    maxTxt = maxTxt.replace('{var}', maxOptionsArr[2][maxOptions > 1 ? 0 : 1]);\r\n                    maxTxtGrp = maxTxtGrp.replace('{var}', maxOptionsArr[2][maxOptionsGrp > 1 ? 0 : 1]);\r\n                  }\r\n\r\n                  $option.prop('selected', false);\r\n\r\n                  that.$menu.append($notify);\r\n\r\n                  if (maxOptions && maxReached) {\r\n                    $notify.append($('<div>' + maxTxt + '</div>'));\r\n                    triggerChange = false;\r\n                    that.$element.trigger('maxReached.bs.select');\r\n                  }\r\n\r\n                  if (maxOptionsGrp && maxReachedGrp) {\r\n                    $notify.append($('<div>' + maxTxtGrp + '</div>'));\r\n                    triggerChange = false;\r\n                    that.$element.trigger('maxReachedGrp.bs.select');\r\n                  }\r\n\r\n                  setTimeout(function () {\r\n                    that.setSelected(clickedIndex, false);\r\n                  }, 10);\r\n\r\n                  $notify.delay(750).fadeOut(300, function () {\r\n                    $(this).remove();\r\n                  });\r\n                }\r\n              }\r\n            }\r\n          }\r\n\r\n          if (!that.multiple || (that.multiple && that.options.maxOptions === 1)) {\r\n            that.$button.focus();\r\n          } else if (that.options.liveSearch) {\r\n            that.$searchbox.focus();\r\n          }\r\n\r\n          // Trigger select 'change'\r\n          if (triggerChange) {\r\n            if ((prevValue != that.$element.val() && that.multiple) || (prevIndex != that.$element.prop('selectedIndex') && !that.multiple)) {\r\n              // $option.prop('selected') is current option state (selected/unselected). state is previous option state.\r\n              changed_arguments = [clickedIndex, $option.prop('selected'), state];\r\n              that.$element\r\n                .triggerNative('change');\r\n            }\r\n          }\r\n        }\r\n      });\r\n\r\n      this.$menu.on('click', 'li.disabled a, .popover-title, .popover-title :not(.close)', function (e) {\r\n        if (e.currentTarget == this) {\r\n          e.preventDefault();\r\n          e.stopPropagation();\r\n          if (that.options.liveSearch && !$(e.target).hasClass('close')) {\r\n            that.$searchbox.focus();\r\n          } else {\r\n            that.$button.focus();\r\n          }\r\n        }\r\n      });\r\n\r\n      this.$menuInner.on('click', '.divider, .dropdown-header', function (e) {\r\n        e.preventDefault();\r\n        e.stopPropagation();\r\n        if (that.options.liveSearch) {\r\n          that.$searchbox.focus();\r\n        } else {\r\n          that.$button.focus();\r\n        }\r\n      });\r\n\r\n      this.$menu.on('click', '.popover-title .close', function () {\r\n        that.$button.click();\r\n      });\r\n\r\n      this.$searchbox.on('click', function (e) {\r\n        e.stopPropagation();\r\n      });\r\n\r\n      this.$menu.on('click', '.actions-btn', function (e) {\r\n        if (that.options.liveSearch) {\r\n          that.$searchbox.focus();\r\n        } else {\r\n          that.$button.focus();\r\n        }\r\n\r\n        e.preventDefault();\r\n        e.stopPropagation();\r\n\r\n        if ($(this).hasClass('bs-select-all')) {\r\n          that.selectAll();\r\n        } else {\r\n          that.deselectAll();\r\n        }\r\n      });\r\n\r\n      this.$element.change(function () {\r\n        that.render(false);\r\n        that.$element.trigger('changed.bs.select', changed_arguments);\r\n        changed_arguments = null;\r\n      });\r\n    },\r\n\r\n    liveSearchListener: function () {\r\n      var that = this,\r\n          $no_results = $('<li class=\"no-results\"></li>');\r\n\r\n      this.$button.on('click.dropdown.data-api touchstart.dropdown.data-api', function () {\r\n        that.$menuInner.find('.active').removeClass('active');\r\n        if (!!that.$searchbox.val()) {\r\n          that.$searchbox.val('');\r\n          that.$lis.not('.is-hidden').removeClass('hidden');\r\n          if (!!$no_results.parent().length) $no_results.remove();\r\n        }\r\n        if (!that.multiple) that.$menuInner.find('.selected').addClass('active');\r\n        setTimeout(function () {\r\n          that.$searchbox.focus();\r\n        }, 10);\r\n      });\r\n\r\n      this.$searchbox.on('click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api', function (e) {\r\n        e.stopPropagation();\r\n      });\r\n\r\n      this.$searchbox.on('input propertychange', function () {\r\n        if (that.$searchbox.val()) {\r\n          var $searchBase = that.$lis.not('.is-hidden').removeClass('hidden').children('a');\r\n          if (that.options.liveSearchNormalize) {\r\n            $searchBase = $searchBase.not(':a' + that._searchStyle() + '(\"' + normalizeToBase(that.$searchbox.val()) + '\")');\r\n          } else {\r\n            $searchBase = $searchBase.not(':' + that._searchStyle() + '(\"' + that.$searchbox.val() + '\")');\r\n          }\r\n          $searchBase.parent().addClass('hidden');\r\n\r\n          that.$lis.filter('.dropdown-header').each(function () {\r\n            var $this = $(this),\r\n                optgroup = $this.data('optgroup');\r\n\r\n            if (that.$lis.filter('[data-optgroup=' + optgroup + ']').not($this).not('.hidden').length === 0) {\r\n              $this.addClass('hidden');\r\n              that.$lis.filter('[data-optgroup=' + optgroup + 'div]').addClass('hidden');\r\n            }\r\n          });\r\n\r\n          var $lisVisible = that.$lis.not('.hidden');\r\n\r\n          // hide divider if first or last visible, or if followed by another divider\r\n          $lisVisible.each(function (index) {\r\n            var $this = $(this);\r\n\r\n            if ($this.hasClass('divider') && (\r\n              $this.index() === $lisVisible.first().index() ||\r\n              $this.index() === $lisVisible.last().index() ||\r\n              $lisVisible.eq(index + 1).hasClass('divider'))) {\r\n              $this.addClass('hidden');\r\n            }\r\n          });\r\n\r\n          if (!that.$lis.not('.hidden, .no-results').length) {\r\n            if (!!$no_results.parent().length) {\r\n              $no_results.remove();\r\n            }\r\n            $no_results.html(that.options.noneResultsText.replace('{0}', '\"' + htmlEscape(that.$searchbox.val()) + '\"')).show();\r\n            that.$menuInner.append($no_results);\r\n          } else if (!!$no_results.parent().length) {\r\n            $no_results.remove();\r\n          }\r\n        } else {\r\n          that.$lis.not('.is-hidden').removeClass('hidden');\r\n          if (!!$no_results.parent().length) {\r\n            $no_results.remove();\r\n          }\r\n        }\r\n\r\n        that.$lis.filter('.active').removeClass('active');\r\n        if (that.$searchbox.val()) that.$lis.not('.hidden, .divider, .dropdown-header').eq(0).addClass('active').children('a').focus();\r\n        $(this).focus();\r\n      });\r\n    },\r\n\r\n    _searchStyle: function () {\r\n      var styles = {\r\n        begins: 'ibegins',\r\n        startsWith: 'ibegins'\r\n      };\r\n\r\n      return styles[this.options.liveSearchStyle] || 'icontains';\r\n    },\r\n\r\n    val: function (value) {\r\n      if (typeof value !== 'undefined') {\r\n        this.$element.val(value);\r\n        this.render();\r\n\r\n        return this.$element;\r\n      } else {\r\n        return this.$element.val();\r\n      }\r\n    },\r\n\r\n    changeAll: function (status) {\r\n      if (!this.multiple) return;\r\n      if (typeof status === 'undefined') status = true;\r\n\r\n      this.findLis();\r\n\r\n      var $options = this.$element.find('option'),\r\n          $lisVisible = this.$lis.not('.divider, .dropdown-header, .disabled, .hidden'),\r\n          lisVisLen = $lisVisible.length,\r\n          selectedOptions = [];\r\n          \r\n      if (status) {\r\n        if ($lisVisible.filter('.selected').length === $lisVisible.length) return;\r\n      } else {\r\n        if ($lisVisible.filter('.selected').length === 0) return;\r\n      }\r\n          \r\n      $lisVisible.toggleClass('selected', status);\r\n\r\n      for (var i = 0; i < lisVisLen; i++) {\r\n        var origIndex = $lisVisible[i].getAttribute('data-original-index');\r\n        selectedOptions[selectedOptions.length] = $options.eq(origIndex)[0];\r\n      }\r\n\r\n      $(selectedOptions).prop('selected', status);\r\n\r\n      this.render(false);\r\n\r\n      this.togglePlaceholder();\r\n\r\n      this.$element\r\n        .triggerNative('change');\r\n    },\r\n\r\n    selectAll: function () {\r\n      return this.changeAll(true);\r\n    },\r\n\r\n    deselectAll: function () {\r\n      return this.changeAll(false);\r\n    },\r\n\r\n    toggle: function (e) {\r\n      e = e || window.event;\r\n\r\n      if (e) e.stopPropagation();\r\n\r\n      this.$button.trigger('click');\r\n    },\r\n\r\n    keydown: function (e) {\r\n      var $this = $(this),\r\n          $parent = $this.is('input') ? $this.parent().parent() : $this.parent(),\r\n          $items,\r\n          that = $parent.data('this'),\r\n          index,\r\n          next,\r\n          first,\r\n          last,\r\n          prev,\r\n          nextPrev,\r\n          prevIndex,\r\n          isActive,\r\n          selector = ':not(.disabled, .hidden, .dropdown-header, .divider)',\r\n          keyCodeMap = {\r\n            32: ' ',\r\n            48: '0',\r\n            49: '1',\r\n            50: '2',\r\n            51: '3',\r\n            52: '4',\r\n            53: '5',\r\n            54: '6',\r\n            55: '7',\r\n            56: '8',\r\n            57: '9',\r\n            59: ';',\r\n            65: 'a',\r\n            66: 'b',\r\n            67: 'c',\r\n            68: 'd',\r\n            69: 'e',\r\n            70: 'f',\r\n            71: 'g',\r\n            72: 'h',\r\n            73: 'i',\r\n            74: 'j',\r\n            75: 'k',\r\n            76: 'l',\r\n            77: 'm',\r\n            78: 'n',\r\n            79: 'o',\r\n            80: 'p',\r\n            81: 'q',\r\n            82: 'r',\r\n            83: 's',\r\n            84: 't',\r\n            85: 'u',\r\n            86: 'v',\r\n            87: 'w',\r\n            88: 'x',\r\n            89: 'y',\r\n            90: 'z',\r\n            96: '0',\r\n            97: '1',\r\n            98: '2',\r\n            99: '3',\r\n            100: '4',\r\n            101: '5',\r\n            102: '6',\r\n            103: '7',\r\n            104: '8',\r\n            105: '9'\r\n          };\r\n\r\n      if (that.options.liveSearch) $parent = $this.parent().parent();\r\n\r\n      if (that.options.container) $parent = that.$menu;\r\n\r\n      $items = $('[role=\"listbox\"] li', $parent);\r\n\r\n      isActive = that.$newElement.hasClass('open');\r\n\r\n      if (!isActive && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105 || e.keyCode >= 65 && e.keyCode <= 90)) {\r\n        if (!that.options.container) {\r\n          that.setSize();\r\n          that.$menu.parent().addClass('open');\r\n          isActive = true;\r\n        } else {\r\n          that.$button.trigger('click');\r\n        }\r\n        that.$searchbox.focus();\r\n        return;\r\n      }\r\n\r\n      if (that.options.liveSearch) {\r\n        if (/(^9$|27)/.test(e.keyCode.toString(10)) && isActive) {\r\n          e.preventDefault();\r\n          e.stopPropagation();\r\n          that.$button.click().focus();\r\n        }\r\n        // $items contains li elements when liveSearch is enabled\r\n        $items = $('[role=\"listbox\"] li' + selector, $parent);\r\n        if (!$this.val() && !/(38|40)/.test(e.keyCode.toString(10))) {\r\n          if ($items.filter('.active').length === 0) {\r\n            $items = that.$menuInner.find('li');\r\n            if (that.options.liveSearchNormalize) {\r\n              $items = $items.filter(':a' + that._searchStyle() + '(' + normalizeToBase(keyCodeMap[e.keyCode]) + ')');\r\n            } else {\r\n              $items = $items.filter(':' + that._searchStyle() + '(' + keyCodeMap[e.keyCode] + ')');\r\n            }\r\n          }\r\n        }\r\n      }\r\n\r\n      if (!$items.length) return;\r\n\r\n      if (/(38|40)/.test(e.keyCode.toString(10))) {\r\n        index = $items.index($items.find('a').filter(':focus').parent());\r\n        first = $items.filter(selector).first().index();\r\n        last = $items.filter(selector).last().index();\r\n        next = $items.eq(index).nextAll(selector).eq(0).index();\r\n        prev = $items.eq(index).prevAll(selector).eq(0).index();\r\n        nextPrev = $items.eq(next).prevAll(selector).eq(0).index();\r\n\r\n        if (that.options.liveSearch) {\r\n          $items.each(function (i) {\r\n            if (!$(this).hasClass('disabled')) {\r\n              $(this).data('index', i);\r\n            }\r\n          });\r\n          index = $items.index($items.filter('.active'));\r\n          first = $items.first().data('index');\r\n          last = $items.last().data('index');\r\n          next = $items.eq(index).nextAll().eq(0).data('index');\r\n          prev = $items.eq(index).prevAll().eq(0).data('index');\r\n          nextPrev = $items.eq(next).prevAll().eq(0).data('index');\r\n        }\r\n\r\n        prevIndex = $this.data('prevIndex');\r\n\r\n        if (e.keyCode == 38) {\r\n          if (that.options.liveSearch) index--;\r\n          if (index != nextPrev && index > prev) index = prev;\r\n          if (index < first) index = first;\r\n          if (index == prevIndex) index = last;\r\n        } else if (e.keyCode == 40) {\r\n          if (that.options.liveSearch) index++;\r\n          if (index == -1) index = 0;\r\n          if (index != nextPrev && index < next) index = next;\r\n          if (index > last) index = last;\r\n          if (index == prevIndex) index = first;\r\n        }\r\n\r\n        $this.data('prevIndex', index);\r\n\r\n        if (!that.options.liveSearch) {\r\n          $items.eq(index).children('a').focus();\r\n        } else {\r\n          e.preventDefault();\r\n          if (!$this.hasClass('dropdown-toggle')) {\r\n            $items.removeClass('active').eq(index).addClass('active').children('a').focus();\r\n            $this.focus();\r\n          }\r\n        }\r\n\r\n      } else if (!$this.is('input')) {\r\n        var keyIndex = [],\r\n            count,\r\n            prevKey;\r\n\r\n        $items.each(function () {\r\n          if (!$(this).hasClass('disabled')) {\r\n            if ($.trim($(this).children('a').text().toLowerCase()).substring(0, 1) == keyCodeMap[e.keyCode]) {\r\n              keyIndex.push($(this).index());\r\n            }\r\n          }\r\n        });\r\n\r\n        count = $(document).data('keycount');\r\n        count++;\r\n        $(document).data('keycount', count);\r\n\r\n        prevKey = $.trim($(':focus').text().toLowerCase()).substring(0, 1);\r\n\r\n        if (prevKey != keyCodeMap[e.keyCode]) {\r\n          count = 1;\r\n          $(document).data('keycount', count);\r\n        } else if (count >= keyIndex.length) {\r\n          $(document).data('keycount', 0);\r\n          if (count > keyIndex.length) count = 1;\r\n        }\r\n\r\n        $items.eq(keyIndex[count - 1]).children('a').focus();\r\n      }\r\n\r\n      // Select focused option if \"Enter\", \"Spacebar\" or \"Tab\" (when selectOnTab is true) are pressed inside the menu.\r\n      if ((/(13|32)/.test(e.keyCode.toString(10)) || (/(^9$)/.test(e.keyCode.toString(10)) && that.options.selectOnTab)) && isActive) {\r\n        if (!/(32)/.test(e.keyCode.toString(10))) e.preventDefault();\r\n        if (!that.options.liveSearch) {\r\n          var elem = $(':focus');\r\n          elem.click();\r\n          // Bring back focus for multiselects\r\n          elem.focus();\r\n          // Prevent screen from scrolling if the user hit the spacebar\r\n          e.preventDefault();\r\n          // Fixes spacebar selection of dropdown items in FF & IE\r\n          $(document).data('spaceSelect', true);\r\n        } else if (!/(32)/.test(e.keyCode.toString(10))) {\r\n          that.$menuInner.find('.active a').click();\r\n          $this.focus();\r\n        }\r\n        $(document).data('keycount', 0);\r\n      }\r\n\r\n      if ((/(^9$|27)/.test(e.keyCode.toString(10)) && isActive && (that.multiple || that.options.liveSearch)) || (/(27)/.test(e.keyCode.toString(10)) && !isActive)) {\r\n        that.$menu.parent().removeClass('open');\r\n        if (that.options.container) that.$newElement.removeClass('open');\r\n        that.$button.focus();\r\n      }\r\n    },\r\n\r\n    mobile: function () {\r\n      this.$element.addClass('mobile-device');\r\n    },\r\n\r\n    refresh: function () {\r\n      this.$lis = null;\r\n      this.liObj = {};\r\n      this.reloadLi();\r\n      this.render();\r\n      this.checkDisabled();\r\n      this.liHeight(true);\r\n      this.setStyle();\r\n      this.setWidth();\r\n      if (this.$lis) this.$searchbox.trigger('propertychange');\r\n\r\n      this.$element.trigger('refreshed.bs.select');\r\n    },\r\n\r\n    hide: function () {\r\n      this.$newElement.hide();\r\n    },\r\n\r\n    show: function () {\r\n      this.$newElement.show();\r\n    },\r\n\r\n    remove: function () {\r\n      this.$newElement.remove();\r\n      this.$element.remove();\r\n    },\r\n\r\n    destroy: function () {\r\n      this.$newElement.before(this.$element).remove();\r\n\r\n      if (this.$bsContainer) {\r\n        this.$bsContainer.remove();\r\n      } else {\r\n        this.$menu.remove();\r\n      }\r\n\r\n      this.$element\r\n        .off('.bs.select')\r\n        .removeData('selectpicker')\r\n        .removeClass('bs-select-hidden selectpicker');\r\n    }\r\n  };\r\n\r\n  // SELECTPICKER PLUGIN DEFINITION\r\n  // ==============================\r\n  function Plugin(option, event) {\r\n    // get the args of the outer function..\r\n    var args = arguments;\r\n    // The arguments of the function are explicitly re-defined from the argument list, because the shift causes them\r\n    // to get lost/corrupted in android 2.3 and IE9 #715 #775\r\n    var _option = option,\r\n        _event = event;\r\n    [].shift.apply(args);\r\n\r\n    var value;\r\n    var chain = this.each(function () {\r\n      var $this = $(this);\r\n      if ($this.is('select')) {\r\n        var data = $this.data('selectpicker'),\r\n            options = typeof _option == 'object' && _option;\r\n\r\n        if (!data) {\r\n          var config = $.extend({}, Selectpicker.DEFAULTS, $.fn.selectpicker.defaults || {}, $this.data(), options);\r\n          config.template = $.extend({}, Selectpicker.DEFAULTS.template, ($.fn.selectpicker.defaults ? $.fn.selectpicker.defaults.template : {}), $this.data().template, options.template);\r\n          $this.data('selectpicker', (data = new Selectpicker(this, config, _event)));\r\n        } else if (options) {\r\n          for (var i in options) {\r\n            if (options.hasOwnProperty(i)) {\r\n              data.options[i] = options[i];\r\n            }\r\n          }\r\n        }\r\n\r\n        if (typeof _option == 'string') {\r\n          if (data[_option] instanceof Function) {\r\n            value = data[_option].apply(data, args);\r\n          } else {\r\n            value = data.options[_option];\r\n          }\r\n        }\r\n      }\r\n    });\r\n\r\n    if (typeof value !== 'undefined') {\r\n      //noinspection JSUnusedAssignment\r\n      return value;\r\n    } else {\r\n      return chain;\r\n    }\r\n  }\r\n\r\n  var old = $.fn.selectpicker;\r\n  $.fn.selectpicker = Plugin;\r\n  $.fn.selectpicker.Constructor = Selectpicker;\r\n\r\n  // SELECTPICKER NO CONFLICT\r\n  // ========================\r\n  $.fn.selectpicker.noConflict = function () {\r\n    $.fn.selectpicker = old;\r\n    return this;\r\n  };\r\n\r\n  $(document)\r\n      .data('keycount', 0)\r\n      .on('keydown.bs.select', '.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=\"listbox\"], .bs-searchbox input', Selectpicker.prototype.keydown)\r\n      .on('focusin.modal', '.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=\"listbox\"], .bs-searchbox input', function (e) {\r\n        e.stopPropagation();\r\n      });\r\n\r\n  // SELECTPICKER DATA-API\r\n  // =====================\r\n  $(window).on('load.bs.select.data-api', function () {\r\n    $('.selectpicker').each(function () {\r\n      var $selectpicker = $(this);\r\n      Plugin.call($selectpicker, $selectpicker.data());\r\n    })\r\n  });\r\n})(jQuery);\r\n\r\n\r\n}));\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bootstrap-select/dist/js/bootstrap-select.js\n// module id = 421\n// module chunks = 2","/*!\r\n * Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com)\r\n * Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n */\r\n\r\nif (typeof jQuery === 'undefined') {\r\n  throw new Error('Bootstrap\\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\\'s JavaScript.')\r\n}\r\n\r\n+function ($) {\r\n  var version = $.fn.jquery.split(' ')[0].split('.')\r\n  if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] >= 4)) {\r\n    throw new Error('Bootstrap\\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0')\r\n  }\r\n}(jQuery);\r\n\r\n\r\n+function () {\r\n\r\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\r\n\r\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\r\n\r\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\r\n\r\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\r\n\r\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): util.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar Util = function ($) {\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Private TransitionEnd Helpers\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var transition = false;\r\n\r\n  var MAX_UID = 1000000;\r\n\r\n  var TransitionEndEvent = {\r\n    WebkitTransition: 'webkitTransitionEnd',\r\n    MozTransition: 'transitionend',\r\n    OTransition: 'oTransitionEnd otransitionend',\r\n    transition: 'transitionend'\r\n  };\r\n\r\n  // shoutout AngusCroll (https://goo.gl/pxwQGp)\r\n  function toType(obj) {\r\n    return {}.toString.call(obj).match(/\\s([a-zA-Z]+)/)[1].toLowerCase();\r\n  }\r\n\r\n  function isElement(obj) {\r\n    return (obj[0] || obj).nodeType;\r\n  }\r\n\r\n  function getSpecialTransitionEndEvent() {\r\n    return {\r\n      bindType: transition.end,\r\n      delegateType: transition.end,\r\n      handle: function handle(event) {\r\n        if ($(event.target).is(this)) {\r\n          return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params\r\n        }\r\n        return undefined;\r\n      }\r\n    };\r\n  }\r\n\r\n  function transitionEndTest() {\r\n    if (window.QUnit) {\r\n      return false;\r\n    }\r\n\r\n    var el = document.createElement('bootstrap');\r\n\r\n    for (var name in TransitionEndEvent) {\r\n      if (el.style[name] !== undefined) {\r\n        return {\r\n          end: TransitionEndEvent[name]\r\n        };\r\n      }\r\n    }\r\n\r\n    return false;\r\n  }\r\n\r\n  function transitionEndEmulator(duration) {\r\n    var _this = this;\r\n\r\n    var called = false;\r\n\r\n    $(this).one(Util.TRANSITION_END, function () {\r\n      called = true;\r\n    });\r\n\r\n    setTimeout(function () {\r\n      if (!called) {\r\n        Util.triggerTransitionEnd(_this);\r\n      }\r\n    }, duration);\r\n\r\n    return this;\r\n  }\r\n\r\n  function setTransitionEndSupport() {\r\n    transition = transitionEndTest();\r\n\r\n    $.fn.emulateTransitionEnd = transitionEndEmulator;\r\n\r\n    if (Util.supportsTransitionEnd()) {\r\n      $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();\r\n    }\r\n  }\r\n\r\n  /**\r\n   * --------------------------------------------------------------------------\r\n   * Public Util Api\r\n   * --------------------------------------------------------------------------\r\n   */\r\n\r\n  var Util = {\r\n\r\n    TRANSITION_END: 'bsTransitionEnd',\r\n\r\n    getUID: function getUID(prefix) {\r\n      do {\r\n        // eslint-disable-next-line no-bitwise\r\n        prefix += ~~(Math.random() * MAX_UID); // \"~~\" acts like a faster Math.floor() here\r\n      } while (document.getElementById(prefix));\r\n      return prefix;\r\n    },\r\n    getSelectorFromElement: function getSelectorFromElement(element) {\r\n      var selector = element.getAttribute('data-target');\r\n\r\n      if (!selector) {\r\n        selector = element.getAttribute('href') || '';\r\n        selector = /^#[a-z]/i.test(selector) ? selector : null;\r\n      }\r\n\r\n      return selector;\r\n    },\r\n    reflow: function reflow(element) {\r\n      return element.offsetHeight;\r\n    },\r\n    triggerTransitionEnd: function triggerTransitionEnd(element) {\r\n      $(element).trigger(transition.end);\r\n    },\r\n    supportsTransitionEnd: function supportsTransitionEnd() {\r\n      return Boolean(transition);\r\n    },\r\n    typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {\r\n      for (var property in configTypes) {\r\n        if (configTypes.hasOwnProperty(property)) {\r\n          var expectedTypes = configTypes[property];\r\n          var value = config[property];\r\n          var valueType = value && isElement(value) ? 'element' : toType(value);\r\n\r\n          if (!new RegExp(expectedTypes).test(valueType)) {\r\n            throw new Error(componentName.toUpperCase() + ': ' + ('Option \"' + property + '\" provided type \"' + valueType + '\" ') + ('but expected type \"' + expectedTypes + '\".'));\r\n          }\r\n        }\r\n      }\r\n    }\r\n  };\r\n\r\n  setTransitionEndSupport();\r\n\r\n  return Util;\r\n}(jQuery);\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): alert.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar Alert = function ($) {\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Constants\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var NAME = 'alert';\r\n  var VERSION = '4.0.0-alpha.6';\r\n  var DATA_KEY = 'bs.alert';\r\n  var EVENT_KEY = '.' + DATA_KEY;\r\n  var DATA_API_KEY = '.data-api';\r\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\r\n  var TRANSITION_DURATION = 150;\r\n\r\n  var Selector = {\r\n    DISMISS: '[data-dismiss=\"alert\"]'\r\n  };\r\n\r\n  var Event = {\r\n    CLOSE: 'close' + EVENT_KEY,\r\n    CLOSED: 'closed' + EVENT_KEY,\r\n    CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY\r\n  };\r\n\r\n  var ClassName = {\r\n    ALERT: 'alert',\r\n    FADE: 'fade',\r\n    SHOW: 'show'\r\n  };\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Class Definition\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var Alert = function () {\r\n    function Alert(element) {\r\n      _classCallCheck(this, Alert);\r\n\r\n      this._element = element;\r\n    }\r\n\r\n    // getters\r\n\r\n    // public\r\n\r\n    Alert.prototype.close = function close(element) {\r\n      element = element || this._element;\r\n\r\n      var rootElement = this._getRootElement(element);\r\n      var customEvent = this._triggerCloseEvent(rootElement);\r\n\r\n      if (customEvent.isDefaultPrevented()) {\r\n        return;\r\n      }\r\n\r\n      this._removeElement(rootElement);\r\n    };\r\n\r\n    Alert.prototype.dispose = function dispose() {\r\n      $.removeData(this._element, DATA_KEY);\r\n      this._element = null;\r\n    };\r\n\r\n    // private\r\n\r\n    Alert.prototype._getRootElement = function _getRootElement(element) {\r\n      var selector = Util.getSelectorFromElement(element);\r\n      var parent = false;\r\n\r\n      if (selector) {\r\n        parent = $(selector)[0];\r\n      }\r\n\r\n      if (!parent) {\r\n        parent = $(element).closest('.' + ClassName.ALERT)[0];\r\n      }\r\n\r\n      return parent;\r\n    };\r\n\r\n    Alert.prototype._triggerCloseEvent = function _triggerCloseEvent(element) {\r\n      var closeEvent = $.Event(Event.CLOSE);\r\n\r\n      $(element).trigger(closeEvent);\r\n      return closeEvent;\r\n    };\r\n\r\n    Alert.prototype._removeElement = function _removeElement(element) {\r\n      var _this2 = this;\r\n\r\n      $(element).removeClass(ClassName.SHOW);\r\n\r\n      if (!Util.supportsTransitionEnd() || !$(element).hasClass(ClassName.FADE)) {\r\n        this._destroyElement(element);\r\n        return;\r\n      }\r\n\r\n      $(element).one(Util.TRANSITION_END, function (event) {\r\n        return _this2._destroyElement(element, event);\r\n      }).emulateTransitionEnd(TRANSITION_DURATION);\r\n    };\r\n\r\n    Alert.prototype._destroyElement = function _destroyElement(element) {\r\n      $(element).detach().trigger(Event.CLOSED).remove();\r\n    };\r\n\r\n    // static\r\n\r\n    Alert._jQueryInterface = function _jQueryInterface(config) {\r\n      return this.each(function () {\r\n        var $element = $(this);\r\n        var data = $element.data(DATA_KEY);\r\n\r\n        if (!data) {\r\n          data = new Alert(this);\r\n          $element.data(DATA_KEY, data);\r\n        }\r\n\r\n        if (config === 'close') {\r\n          data[config](this);\r\n        }\r\n      });\r\n    };\r\n\r\n    Alert._handleDismiss = function _handleDismiss(alertInstance) {\r\n      return function (event) {\r\n        if (event) {\r\n          event.preventDefault();\r\n        }\r\n\r\n        alertInstance.close(this);\r\n      };\r\n    };\r\n\r\n    _createClass(Alert, null, [{\r\n      key: 'VERSION',\r\n      get: function get() {\r\n        return VERSION;\r\n      }\r\n    }]);\r\n\r\n    return Alert;\r\n  }();\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Data Api implementation\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * jQuery\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $.fn[NAME] = Alert._jQueryInterface;\r\n  $.fn[NAME].Constructor = Alert;\r\n  $.fn[NAME].noConflict = function () {\r\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\r\n    return Alert._jQueryInterface;\r\n  };\r\n\r\n  return Alert;\r\n}(jQuery);\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): button.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar Button = function ($) {\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Constants\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var NAME = 'button';\r\n  var VERSION = '4.0.0-alpha.6';\r\n  var DATA_KEY = 'bs.button';\r\n  var EVENT_KEY = '.' + DATA_KEY;\r\n  var DATA_API_KEY = '.data-api';\r\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\r\n\r\n  var ClassName = {\r\n    ACTIVE: 'active',\r\n    BUTTON: 'btn',\r\n    FOCUS: 'focus'\r\n  };\r\n\r\n  var Selector = {\r\n    DATA_TOGGLE_CARROT: '[data-toggle^=\"button\"]',\r\n    DATA_TOGGLE: '[data-toggle=\"buttons\"]',\r\n    INPUT: 'input',\r\n    ACTIVE: '.active',\r\n    BUTTON: '.btn'\r\n  };\r\n\r\n  var Event = {\r\n    CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,\r\n    FOCUS_BLUR_DATA_API: 'focus' + EVENT_KEY + DATA_API_KEY + ' ' + ('blur' + EVENT_KEY + DATA_API_KEY)\r\n  };\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Class Definition\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var Button = function () {\r\n    function Button(element) {\r\n      _classCallCheck(this, Button);\r\n\r\n      this._element = element;\r\n    }\r\n\r\n    // getters\r\n\r\n    // public\r\n\r\n    Button.prototype.toggle = function toggle() {\r\n      var triggerChangeEvent = true;\r\n      var rootElement = $(this._element).closest(Selector.DATA_TOGGLE)[0];\r\n\r\n      if (rootElement) {\r\n        var input = $(this._element).find(Selector.INPUT)[0];\r\n\r\n        if (input) {\r\n          if (input.type === 'radio') {\r\n            if (input.checked && $(this._element).hasClass(ClassName.ACTIVE)) {\r\n              triggerChangeEvent = false;\r\n            } else {\r\n              var activeElement = $(rootElement).find(Selector.ACTIVE)[0];\r\n\r\n              if (activeElement) {\r\n                $(activeElement).removeClass(ClassName.ACTIVE);\r\n              }\r\n            }\r\n          }\r\n\r\n          if (triggerChangeEvent) {\r\n            input.checked = !$(this._element).hasClass(ClassName.ACTIVE);\r\n            $(input).trigger('change');\r\n          }\r\n\r\n          input.focus();\r\n        }\r\n      }\r\n\r\n      this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE));\r\n\r\n      if (triggerChangeEvent) {\r\n        $(this._element).toggleClass(ClassName.ACTIVE);\r\n      }\r\n    };\r\n\r\n    Button.prototype.dispose = function dispose() {\r\n      $.removeData(this._element, DATA_KEY);\r\n      this._element = null;\r\n    };\r\n\r\n    // static\r\n\r\n    Button._jQueryInterface = function _jQueryInterface(config) {\r\n      return this.each(function () {\r\n        var data = $(this).data(DATA_KEY);\r\n\r\n        if (!data) {\r\n          data = new Button(this);\r\n          $(this).data(DATA_KEY, data);\r\n        }\r\n\r\n        if (config === 'toggle') {\r\n          data[config]();\r\n        }\r\n      });\r\n    };\r\n\r\n    _createClass(Button, null, [{\r\n      key: 'VERSION',\r\n      get: function get() {\r\n        return VERSION;\r\n      }\r\n    }]);\r\n\r\n    return Button;\r\n  }();\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Data Api implementation\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {\r\n    event.preventDefault();\r\n\r\n    var button = event.target;\r\n\r\n    if (!$(button).hasClass(ClassName.BUTTON)) {\r\n      button = $(button).closest(Selector.BUTTON);\r\n    }\r\n\r\n    Button._jQueryInterface.call($(button), 'toggle');\r\n  }).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {\r\n    var button = $(event.target).closest(Selector.BUTTON)[0];\r\n    $(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type));\r\n  });\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * jQuery\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $.fn[NAME] = Button._jQueryInterface;\r\n  $.fn[NAME].Constructor = Button;\r\n  $.fn[NAME].noConflict = function () {\r\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\r\n    return Button._jQueryInterface;\r\n  };\r\n\r\n  return Button;\r\n}(jQuery);\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): carousel.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar Carousel = function ($) {\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Constants\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var NAME = 'carousel';\r\n  var VERSION = '4.0.0-alpha.6';\r\n  var DATA_KEY = 'bs.carousel';\r\n  var EVENT_KEY = '.' + DATA_KEY;\r\n  var DATA_API_KEY = '.data-api';\r\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\r\n  var TRANSITION_DURATION = 600;\r\n  var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key\r\n  var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key\r\n\r\n  var Default = {\r\n    interval: 5000,\r\n    keyboard: true,\r\n    slide: false,\r\n    pause: 'hover',\r\n    wrap: true\r\n  };\r\n\r\n  var DefaultType = {\r\n    interval: '(number|boolean)',\r\n    keyboard: 'boolean',\r\n    slide: '(boolean|string)',\r\n    pause: '(string|boolean)',\r\n    wrap: 'boolean'\r\n  };\r\n\r\n  var Direction = {\r\n    NEXT: 'next',\r\n    PREV: 'prev',\r\n    LEFT: 'left',\r\n    RIGHT: 'right'\r\n  };\r\n\r\n  var Event = {\r\n    SLIDE: 'slide' + EVENT_KEY,\r\n    SLID: 'slid' + EVENT_KEY,\r\n    KEYDOWN: 'keydown' + EVENT_KEY,\r\n    MOUSEENTER: 'mouseenter' + EVENT_KEY,\r\n    MOUSELEAVE: 'mouseleave' + EVENT_KEY,\r\n    LOAD_DATA_API: 'load' + EVENT_KEY + DATA_API_KEY,\r\n    CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY\r\n  };\r\n\r\n  var ClassName = {\r\n    CAROUSEL: 'carousel',\r\n    ACTIVE: 'active',\r\n    SLIDE: 'slide',\r\n    RIGHT: 'carousel-item-right',\r\n    LEFT: 'carousel-item-left',\r\n    NEXT: 'carousel-item-next',\r\n    PREV: 'carousel-item-prev',\r\n    ITEM: 'carousel-item'\r\n  };\r\n\r\n  var Selector = {\r\n    ACTIVE: '.active',\r\n    ACTIVE_ITEM: '.active.carousel-item',\r\n    ITEM: '.carousel-item',\r\n    NEXT_PREV: '.carousel-item-next, .carousel-item-prev',\r\n    INDICATORS: '.carousel-indicators',\r\n    DATA_SLIDE: '[data-slide], [data-slide-to]',\r\n    DATA_RIDE: '[data-ride=\"carousel\"]'\r\n  };\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Class Definition\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var Carousel = function () {\r\n    function Carousel(element, config) {\r\n      _classCallCheck(this, Carousel);\r\n\r\n      this._items = null;\r\n      this._interval = null;\r\n      this._activeElement = null;\r\n\r\n      this._isPaused = false;\r\n      this._isSliding = false;\r\n\r\n      this._config = this._getConfig(config);\r\n      this._element = $(element)[0];\r\n      this._indicatorsElement = $(this._element).find(Selector.INDICATORS)[0];\r\n\r\n      this._addEventListeners();\r\n    }\r\n\r\n    // getters\r\n\r\n    // public\r\n\r\n    Carousel.prototype.next = function next() {\r\n      if (this._isSliding) {\r\n        throw new Error('Carousel is sliding');\r\n      }\r\n      this._slide(Direction.NEXT);\r\n    };\r\n\r\n    Carousel.prototype.nextWhenVisible = function nextWhenVisible() {\r\n      // Don't call next when the page isn't visible\r\n      if (!document.hidden) {\r\n        this.next();\r\n      }\r\n    };\r\n\r\n    Carousel.prototype.prev = function prev() {\r\n      if (this._isSliding) {\r\n        throw new Error('Carousel is sliding');\r\n      }\r\n      this._slide(Direction.PREVIOUS);\r\n    };\r\n\r\n    Carousel.prototype.pause = function pause(event) {\r\n      if (!event) {\r\n        this._isPaused = true;\r\n      }\r\n\r\n      if ($(this._element).find(Selector.NEXT_PREV)[0] && Util.supportsTransitionEnd()) {\r\n        Util.triggerTransitionEnd(this._element);\r\n        this.cycle(true);\r\n      }\r\n\r\n      clearInterval(this._interval);\r\n      this._interval = null;\r\n    };\r\n\r\n    Carousel.prototype.cycle = function cycle(event) {\r\n      if (!event) {\r\n        this._isPaused = false;\r\n      }\r\n\r\n      if (this._interval) {\r\n        clearInterval(this._interval);\r\n        this._interval = null;\r\n      }\r\n\r\n      if (this._config.interval && !this._isPaused) {\r\n        this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);\r\n      }\r\n    };\r\n\r\n    Carousel.prototype.to = function to(index) {\r\n      var _this3 = this;\r\n\r\n      this._activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0];\r\n\r\n      var activeIndex = this._getItemIndex(this._activeElement);\r\n\r\n      if (index > this._items.length - 1 || index < 0) {\r\n        return;\r\n      }\r\n\r\n      if (this._isSliding) {\r\n        $(this._element).one(Event.SLID, function () {\r\n          return _this3.to(index);\r\n        });\r\n        return;\r\n      }\r\n\r\n      if (activeIndex === index) {\r\n        this.pause();\r\n        this.cycle();\r\n        return;\r\n      }\r\n\r\n      var direction = index > activeIndex ? Direction.NEXT : Direction.PREVIOUS;\r\n\r\n      this._slide(direction, this._items[index]);\r\n    };\r\n\r\n    Carousel.prototype.dispose = function dispose() {\r\n      $(this._element).off(EVENT_KEY);\r\n      $.removeData(this._element, DATA_KEY);\r\n\r\n      this._items = null;\r\n      this._config = null;\r\n      this._element = null;\r\n      this._interval = null;\r\n      this._isPaused = null;\r\n      this._isSliding = null;\r\n      this._activeElement = null;\r\n      this._indicatorsElement = null;\r\n    };\r\n\r\n    // private\r\n\r\n    Carousel.prototype._getConfig = function _getConfig(config) {\r\n      config = $.extend({}, Default, config);\r\n      Util.typeCheckConfig(NAME, config, DefaultType);\r\n      return config;\r\n    };\r\n\r\n    Carousel.prototype._addEventListeners = function _addEventListeners() {\r\n      var _this4 = this;\r\n\r\n      if (this._config.keyboard) {\r\n        $(this._element).on(Event.KEYDOWN, function (event) {\r\n          return _this4._keydown(event);\r\n        });\r\n      }\r\n\r\n      if (this._config.pause === 'hover' && !('ontouchstart' in document.documentElement)) {\r\n        $(this._element).on(Event.MOUSEENTER, function (event) {\r\n          return _this4.pause(event);\r\n        }).on(Event.MOUSELEAVE, function (event) {\r\n          return _this4.cycle(event);\r\n        });\r\n      }\r\n    };\r\n\r\n    Carousel.prototype._keydown = function _keydown(event) {\r\n      if (/input|textarea/i.test(event.target.tagName)) {\r\n        return;\r\n      }\r\n\r\n      switch (event.which) {\r\n        case ARROW_LEFT_KEYCODE:\r\n          event.preventDefault();\r\n          this.prev();\r\n          break;\r\n        case ARROW_RIGHT_KEYCODE:\r\n          event.preventDefault();\r\n          this.next();\r\n          break;\r\n        default:\r\n          return;\r\n      }\r\n    };\r\n\r\n    Carousel.prototype._getItemIndex = function _getItemIndex(element) {\r\n      this._items = $.makeArray($(element).parent().find(Selector.ITEM));\r\n      return this._items.indexOf(element);\r\n    };\r\n\r\n    Carousel.prototype._getItemByDirection = function _getItemByDirection(direction, activeElement) {\r\n      var isNextDirection = direction === Direction.NEXT;\r\n      var isPrevDirection = direction === Direction.PREVIOUS;\r\n      var activeIndex = this._getItemIndex(activeElement);\r\n      var lastItemIndex = this._items.length - 1;\r\n      var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;\r\n\r\n      if (isGoingToWrap && !this._config.wrap) {\r\n        return activeElement;\r\n      }\r\n\r\n      var delta = direction === Direction.PREVIOUS ? -1 : 1;\r\n      var itemIndex = (activeIndex + delta) % this._items.length;\r\n\r\n      return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];\r\n    };\r\n\r\n    Carousel.prototype._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {\r\n      var slideEvent = $.Event(Event.SLIDE, {\r\n        relatedTarget: relatedTarget,\r\n        direction: eventDirectionName\r\n      });\r\n\r\n      $(this._element).trigger(slideEvent);\r\n\r\n      return slideEvent;\r\n    };\r\n\r\n    Carousel.prototype._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {\r\n      if (this._indicatorsElement) {\r\n        $(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE);\r\n\r\n        var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];\r\n\r\n        if (nextIndicator) {\r\n          $(nextIndicator).addClass(ClassName.ACTIVE);\r\n        }\r\n      }\r\n    };\r\n\r\n    Carousel.prototype._slide = function _slide(direction, element) {\r\n      var _this5 = this;\r\n\r\n      var activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0];\r\n      var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);\r\n\r\n      var isCycling = Boolean(this._interval);\r\n\r\n      var directionalClassName = void 0;\r\n      var orderClassName = void 0;\r\n      var eventDirectionName = void 0;\r\n\r\n      if (direction === Direction.NEXT) {\r\n        directionalClassName = ClassName.LEFT;\r\n        orderClassName = ClassName.NEXT;\r\n        eventDirectionName = Direction.LEFT;\r\n      } else {\r\n        directionalClassName = ClassName.RIGHT;\r\n        orderClassName = ClassName.PREV;\r\n        eventDirectionName = Direction.RIGHT;\r\n      }\r\n\r\n      if (nextElement && $(nextElement).hasClass(ClassName.ACTIVE)) {\r\n        this._isSliding = false;\r\n        return;\r\n      }\r\n\r\n      var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);\r\n      if (slideEvent.isDefaultPrevented()) {\r\n        return;\r\n      }\r\n\r\n      if (!activeElement || !nextElement) {\r\n        // some weirdness is happening, so we bail\r\n        return;\r\n      }\r\n\r\n      this._isSliding = true;\r\n\r\n      if (isCycling) {\r\n        this.pause();\r\n      }\r\n\r\n      this._setActiveIndicatorElement(nextElement);\r\n\r\n      var slidEvent = $.Event(Event.SLID, {\r\n        relatedTarget: nextElement,\r\n        direction: eventDirectionName\r\n      });\r\n\r\n      if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.SLIDE)) {\r\n\r\n        $(nextElement).addClass(orderClassName);\r\n\r\n        Util.reflow(nextElement);\r\n\r\n        $(activeElement).addClass(directionalClassName);\r\n        $(nextElement).addClass(directionalClassName);\r\n\r\n        $(activeElement).one(Util.TRANSITION_END, function () {\r\n          $(nextElement).removeClass(directionalClassName + ' ' + orderClassName).addClass(ClassName.ACTIVE);\r\n\r\n          $(activeElement).removeClass(ClassName.ACTIVE + ' ' + orderClassName + ' ' + directionalClassName);\r\n\r\n          _this5._isSliding = false;\r\n\r\n          setTimeout(function () {\r\n            return $(_this5._element).trigger(slidEvent);\r\n          }, 0);\r\n        }).emulateTransitionEnd(TRANSITION_DURATION);\r\n      } else {\r\n        $(activeElement).removeClass(ClassName.ACTIVE);\r\n        $(nextElement).addClass(ClassName.ACTIVE);\r\n\r\n        this._isSliding = false;\r\n        $(this._element).trigger(slidEvent);\r\n      }\r\n\r\n      if (isCycling) {\r\n        this.cycle();\r\n      }\r\n    };\r\n\r\n    // static\r\n\r\n    Carousel._jQueryInterface = function _jQueryInterface(config) {\r\n      return this.each(function () {\r\n        var data = $(this).data(DATA_KEY);\r\n        var _config = $.extend({}, Default, $(this).data());\r\n\r\n        if ((typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object') {\r\n          $.extend(_config, config);\r\n        }\r\n\r\n        var action = typeof config === 'string' ? config : _config.slide;\r\n\r\n        if (!data) {\r\n          data = new Carousel(this, _config);\r\n          $(this).data(DATA_KEY, data);\r\n        }\r\n\r\n        if (typeof config === 'number') {\r\n          data.to(config);\r\n        } else if (typeof action === 'string') {\r\n          if (data[action] === undefined) {\r\n            throw new Error('No method named \"' + action + '\"');\r\n          }\r\n          data[action]();\r\n        } else if (_config.interval) {\r\n          data.pause();\r\n          data.cycle();\r\n        }\r\n      });\r\n    };\r\n\r\n    Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {\r\n      var selector = Util.getSelectorFromElement(this);\r\n\r\n      if (!selector) {\r\n        return;\r\n      }\r\n\r\n      var target = $(selector)[0];\r\n\r\n      if (!target || !$(target).hasClass(ClassName.CAROUSEL)) {\r\n        return;\r\n      }\r\n\r\n      var config = $.extend({}, $(target).data(), $(this).data());\r\n      var slideIndex = this.getAttribute('data-slide-to');\r\n\r\n      if (slideIndex) {\r\n        config.interval = false;\r\n      }\r\n\r\n      Carousel._jQueryInterface.call($(target), config);\r\n\r\n      if (slideIndex) {\r\n        $(target).data(DATA_KEY).to(slideIndex);\r\n      }\r\n\r\n      event.preventDefault();\r\n    };\r\n\r\n    _createClass(Carousel, null, [{\r\n      key: 'VERSION',\r\n      get: function get() {\r\n        return VERSION;\r\n      }\r\n    }, {\r\n      key: 'Default',\r\n      get: function get() {\r\n        return Default;\r\n      }\r\n    }]);\r\n\r\n    return Carousel;\r\n  }();\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Data Api implementation\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler);\r\n\r\n  $(window).on(Event.LOAD_DATA_API, function () {\r\n    $(Selector.DATA_RIDE).each(function () {\r\n      var $carousel = $(this);\r\n      Carousel._jQueryInterface.call($carousel, $carousel.data());\r\n    });\r\n  });\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * jQuery\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $.fn[NAME] = Carousel._jQueryInterface;\r\n  $.fn[NAME].Constructor = Carousel;\r\n  $.fn[NAME].noConflict = function () {\r\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\r\n    return Carousel._jQueryInterface;\r\n  };\r\n\r\n  return Carousel;\r\n}(jQuery);\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): collapse.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar Collapse = function ($) {\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Constants\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var NAME = 'collapse';\r\n  var VERSION = '4.0.0-alpha.6';\r\n  var DATA_KEY = 'bs.collapse';\r\n  var EVENT_KEY = '.' + DATA_KEY;\r\n  var DATA_API_KEY = '.data-api';\r\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\r\n  var TRANSITION_DURATION = 600;\r\n\r\n  var Default = {\r\n    toggle: true,\r\n    parent: ''\r\n  };\r\n\r\n  var DefaultType = {\r\n    toggle: 'boolean',\r\n    parent: 'string'\r\n  };\r\n\r\n  var Event = {\r\n    SHOW: 'show' + EVENT_KEY,\r\n    SHOWN: 'shown' + EVENT_KEY,\r\n    HIDE: 'hide' + EVENT_KEY,\r\n    HIDDEN: 'hidden' + EVENT_KEY,\r\n    CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY\r\n  };\r\n\r\n  var ClassName = {\r\n    SHOW: 'show',\r\n    COLLAPSE: 'collapse',\r\n    COLLAPSING: 'collapsing',\r\n    COLLAPSED: 'collapsed'\r\n  };\r\n\r\n  var Dimension = {\r\n    WIDTH: 'width',\r\n    HEIGHT: 'height'\r\n  };\r\n\r\n  var Selector = {\r\n    ACTIVES: '.card > .show, .card > .collapsing',\r\n    DATA_TOGGLE: '[data-toggle=\"collapse\"]'\r\n  };\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Class Definition\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var Collapse = function () {\r\n    function Collapse(element, config) {\r\n      _classCallCheck(this, Collapse);\r\n\r\n      this._isTransitioning = false;\r\n      this._element = element;\r\n      this._config = this._getConfig(config);\r\n      this._triggerArray = $.makeArray($('[data-toggle=\"collapse\"][href=\"#' + element.id + '\"],' + ('[data-toggle=\"collapse\"][data-target=\"#' + element.id + '\"]')));\r\n\r\n      this._parent = this._config.parent ? this._getParent() : null;\r\n\r\n      if (!this._config.parent) {\r\n        this._addAriaAndCollapsedClass(this._element, this._triggerArray);\r\n      }\r\n\r\n      if (this._config.toggle) {\r\n        this.toggle();\r\n      }\r\n    }\r\n\r\n    // getters\r\n\r\n    // public\r\n\r\n    Collapse.prototype.toggle = function toggle() {\r\n      if ($(this._element).hasClass(ClassName.SHOW)) {\r\n        this.hide();\r\n      } else {\r\n        this.show();\r\n      }\r\n    };\r\n\r\n    Collapse.prototype.show = function show() {\r\n      var _this6 = this;\r\n\r\n      if (this._isTransitioning) {\r\n        throw new Error('Collapse is transitioning');\r\n      }\r\n\r\n      if ($(this._element).hasClass(ClassName.SHOW)) {\r\n        return;\r\n      }\r\n\r\n      var actives = void 0;\r\n      var activesData = void 0;\r\n\r\n      if (this._parent) {\r\n        actives = $.makeArray($(this._parent).find(Selector.ACTIVES));\r\n        if (!actives.length) {\r\n          actives = null;\r\n        }\r\n      }\r\n\r\n      if (actives) {\r\n        activesData = $(actives).data(DATA_KEY);\r\n        if (activesData && activesData._isTransitioning) {\r\n          return;\r\n        }\r\n      }\r\n\r\n      var startEvent = $.Event(Event.SHOW);\r\n      $(this._element).trigger(startEvent);\r\n      if (startEvent.isDefaultPrevented()) {\r\n        return;\r\n      }\r\n\r\n      if (actives) {\r\n        Collapse._jQueryInterface.call($(actives), 'hide');\r\n        if (!activesData) {\r\n          $(actives).data(DATA_KEY, null);\r\n        }\r\n      }\r\n\r\n      var dimension = this._getDimension();\r\n\r\n      $(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);\r\n\r\n      this._element.style[dimension] = 0;\r\n      this._element.setAttribute('aria-expanded', true);\r\n\r\n      if (this._triggerArray.length) {\r\n        $(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true);\r\n      }\r\n\r\n      this.setTransitioning(true);\r\n\r\n      var complete = function complete() {\r\n        $(_this6._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW);\r\n\r\n        _this6._element.style[dimension] = '';\r\n\r\n        _this6.setTransitioning(false);\r\n\r\n        $(_this6._element).trigger(Event.SHOWN);\r\n      };\r\n\r\n      if (!Util.supportsTransitionEnd()) {\r\n        complete();\r\n        return;\r\n      }\r\n\r\n      var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);\r\n      var scrollSize = 'scroll' + capitalizedDimension;\r\n\r\n      $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);\r\n\r\n      this._element.style[dimension] = this._element[scrollSize] + 'px';\r\n    };\r\n\r\n    Collapse.prototype.hide = function hide() {\r\n      var _this7 = this;\r\n\r\n      if (this._isTransitioning) {\r\n        throw new Error('Collapse is transitioning');\r\n      }\r\n\r\n      if (!$(this._element).hasClass(ClassName.SHOW)) {\r\n        return;\r\n      }\r\n\r\n      var startEvent = $.Event(Event.HIDE);\r\n      $(this._element).trigger(startEvent);\r\n      if (startEvent.isDefaultPrevented()) {\r\n        return;\r\n      }\r\n\r\n      var dimension = this._getDimension();\r\n      var offsetDimension = dimension === Dimension.WIDTH ? 'offsetWidth' : 'offsetHeight';\r\n\r\n      this._element.style[dimension] = this._element[offsetDimension] + 'px';\r\n\r\n      Util.reflow(this._element);\r\n\r\n      $(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);\r\n\r\n      this._element.setAttribute('aria-expanded', false);\r\n\r\n      if (this._triggerArray.length) {\r\n        $(this._triggerArray).addClass(ClassName.COLLAPSED).attr('aria-expanded', false);\r\n      }\r\n\r\n      this.setTransitioning(true);\r\n\r\n      var complete = function complete() {\r\n        _this7.setTransitioning(false);\r\n        $(_this7._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN);\r\n      };\r\n\r\n      this._element.style[dimension] = '';\r\n\r\n      if (!Util.supportsTransitionEnd()) {\r\n        complete();\r\n        return;\r\n      }\r\n\r\n      $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);\r\n    };\r\n\r\n    Collapse.prototype.setTransitioning = function setTransitioning(isTransitioning) {\r\n      this._isTransitioning = isTransitioning;\r\n    };\r\n\r\n    Collapse.prototype.dispose = function dispose() {\r\n      $.removeData(this._element, DATA_KEY);\r\n\r\n      this._config = null;\r\n      this._parent = null;\r\n      this._element = null;\r\n      this._triggerArray = null;\r\n      this._isTransitioning = null;\r\n    };\r\n\r\n    // private\r\n\r\n    Collapse.prototype._getConfig = function _getConfig(config) {\r\n      config = $.extend({}, Default, config);\r\n      config.toggle = Boolean(config.toggle); // coerce string values\r\n      Util.typeCheckConfig(NAME, config, DefaultType);\r\n      return config;\r\n    };\r\n\r\n    Collapse.prototype._getDimension = function _getDimension() {\r\n      var hasWidth = $(this._element).hasClass(Dimension.WIDTH);\r\n      return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;\r\n    };\r\n\r\n    Collapse.prototype._getParent = function _getParent() {\r\n      var _this8 = this;\r\n\r\n      var parent = $(this._config.parent)[0];\r\n      var selector = '[data-toggle=\"collapse\"][data-parent=\"' + this._config.parent + '\"]';\r\n\r\n      $(parent).find(selector).each(function (i, element) {\r\n        _this8._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);\r\n      });\r\n\r\n      return parent;\r\n    };\r\n\r\n    Collapse.prototype._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {\r\n      if (element) {\r\n        var isOpen = $(element).hasClass(ClassName.SHOW);\r\n        element.setAttribute('aria-expanded', isOpen);\r\n\r\n        if (triggerArray.length) {\r\n          $(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);\r\n        }\r\n      }\r\n    };\r\n\r\n    // static\r\n\r\n    Collapse._getTargetFromElement = function _getTargetFromElement(element) {\r\n      var selector = Util.getSelectorFromElement(element);\r\n      return selector ? $(selector)[0] : null;\r\n    };\r\n\r\n    Collapse._jQueryInterface = function _jQueryInterface(config) {\r\n      return this.each(function () {\r\n        var $this = $(this);\r\n        var data = $this.data(DATA_KEY);\r\n        var _config = $.extend({}, Default, $this.data(), (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config);\r\n\r\n        if (!data && _config.toggle && /show|hide/.test(config)) {\r\n          _config.toggle = false;\r\n        }\r\n\r\n        if (!data) {\r\n          data = new Collapse(this, _config);\r\n          $this.data(DATA_KEY, data);\r\n        }\r\n\r\n        if (typeof config === 'string') {\r\n          if (data[config] === undefined) {\r\n            throw new Error('No method named \"' + config + '\"');\r\n          }\r\n          data[config]();\r\n        }\r\n      });\r\n    };\r\n\r\n    _createClass(Collapse, null, [{\r\n      key: 'VERSION',\r\n      get: function get() {\r\n        return VERSION;\r\n      }\r\n    }, {\r\n      key: 'Default',\r\n      get: function get() {\r\n        return Default;\r\n      }\r\n    }]);\r\n\r\n    return Collapse;\r\n  }();\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Data Api implementation\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {\r\n    event.preventDefault();\r\n\r\n    var target = Collapse._getTargetFromElement(this);\r\n    var data = $(target).data(DATA_KEY);\r\n    var config = data ? 'toggle' : $(this).data();\r\n\r\n    Collapse._jQueryInterface.call($(target), config);\r\n  });\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * jQuery\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $.fn[NAME] = Collapse._jQueryInterface;\r\n  $.fn[NAME].Constructor = Collapse;\r\n  $.fn[NAME].noConflict = function () {\r\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\r\n    return Collapse._jQueryInterface;\r\n  };\r\n\r\n  return Collapse;\r\n}(jQuery);\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): dropdown.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar Dropdown = function ($) {\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Constants\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var NAME = 'dropdown';\r\n  var VERSION = '4.0.0-alpha.6';\r\n  var DATA_KEY = 'bs.dropdown';\r\n  var EVENT_KEY = '.' + DATA_KEY;\r\n  var DATA_API_KEY = '.data-api';\r\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\r\n  var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key\r\n  var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key\r\n  var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key\r\n  var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)\r\n\r\n  var Event = {\r\n    HIDE: 'hide' + EVENT_KEY,\r\n    HIDDEN: 'hidden' + EVENT_KEY,\r\n    SHOW: 'show' + EVENT_KEY,\r\n    SHOWN: 'shown' + EVENT_KEY,\r\n    CLICK: 'click' + EVENT_KEY,\r\n    CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,\r\n    FOCUSIN_DATA_API: 'focusin' + EVENT_KEY + DATA_API_KEY,\r\n    KEYDOWN_DATA_API: 'keydown' + EVENT_KEY + DATA_API_KEY\r\n  };\r\n\r\n  var ClassName = {\r\n    BACKDROP: 'dropdown-backdrop',\r\n    DISABLED: 'disabled',\r\n    SHOW: 'show'\r\n  };\r\n\r\n  var Selector = {\r\n    BACKDROP: '.dropdown-backdrop',\r\n    DATA_TOGGLE: '[data-toggle=\"dropdown\"]',\r\n    FORM_CHILD: '.dropdown form',\r\n    ROLE_MENU: '[role=\"menu\"]',\r\n    ROLE_LISTBOX: '[role=\"listbox\"]',\r\n    NAVBAR_NAV: '.navbar-nav',\r\n    VISIBLE_ITEMS: '[role=\"menu\"] li:not(.disabled) a, ' + '[role=\"listbox\"] li:not(.disabled) a'\r\n  };\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Class Definition\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var Dropdown = function () {\r\n    function Dropdown(element) {\r\n      _classCallCheck(this, Dropdown);\r\n\r\n      this._element = element;\r\n\r\n      this._addEventListeners();\r\n    }\r\n\r\n    // getters\r\n\r\n    // public\r\n\r\n    Dropdown.prototype.toggle = function toggle() {\r\n      if (this.disabled || $(this).hasClass(ClassName.DISABLED)) {\r\n        return false;\r\n      }\r\n\r\n      var parent = Dropdown._getParentFromElement(this);\r\n      var isActive = $(parent).hasClass(ClassName.SHOW);\r\n\r\n      Dropdown._clearMenus();\r\n\r\n      if (isActive) {\r\n        return false;\r\n      }\r\n\r\n      if ('ontouchstart' in document.documentElement && !$(parent).closest(Selector.NAVBAR_NAV).length) {\r\n\r\n        // if mobile we use a backdrop because click events don't delegate\r\n        var dropdown = document.createElement('div');\r\n        dropdown.className = ClassName.BACKDROP;\r\n        $(dropdown).insertBefore(this);\r\n        $(dropdown).on('click', Dropdown._clearMenus);\r\n      }\r\n\r\n      var relatedTarget = {\r\n        relatedTarget: this\r\n      };\r\n      var showEvent = $.Event(Event.SHOW, relatedTarget);\r\n\r\n      $(parent).trigger(showEvent);\r\n\r\n      if (showEvent.isDefaultPrevented()) {\r\n        return false;\r\n      }\r\n\r\n      this.focus();\r\n      this.setAttribute('aria-expanded', true);\r\n\r\n      $(parent).toggleClass(ClassName.SHOW);\r\n      $(parent).trigger($.Event(Event.SHOWN, relatedTarget));\r\n\r\n      return false;\r\n    };\r\n\r\n    Dropdown.prototype.dispose = function dispose() {\r\n      $.removeData(this._element, DATA_KEY);\r\n      $(this._element).off(EVENT_KEY);\r\n      this._element = null;\r\n    };\r\n\r\n    // private\r\n\r\n    Dropdown.prototype._addEventListeners = function _addEventListeners() {\r\n      $(this._element).on(Event.CLICK, this.toggle);\r\n    };\r\n\r\n    // static\r\n\r\n    Dropdown._jQueryInterface = function _jQueryInterface(config) {\r\n      return this.each(function () {\r\n        var data = $(this).data(DATA_KEY);\r\n\r\n        if (!data) {\r\n          data = new Dropdown(this);\r\n          $(this).data(DATA_KEY, data);\r\n        }\r\n\r\n        if (typeof config === 'string') {\r\n          if (data[config] === undefined) {\r\n            throw new Error('No method named \"' + config + '\"');\r\n          }\r\n          data[config].call(this);\r\n        }\r\n      });\r\n    };\r\n\r\n    Dropdown._clearMenus = function _clearMenus(event) {\r\n      if (event && event.which === RIGHT_MOUSE_BUTTON_WHICH) {\r\n        return;\r\n      }\r\n\r\n      var backdrop = $(Selector.BACKDROP)[0];\r\n      if (backdrop) {\r\n        backdrop.parentNode.removeChild(backdrop);\r\n      }\r\n\r\n      var toggles = $.makeArray($(Selector.DATA_TOGGLE));\r\n\r\n      for (var i = 0; i < toggles.length; i++) {\r\n        var parent = Dropdown._getParentFromElement(toggles[i]);\r\n        var relatedTarget = {\r\n          relatedTarget: toggles[i]\r\n        };\r\n\r\n        if (!$(parent).hasClass(ClassName.SHOW)) {\r\n          continue;\r\n        }\r\n\r\n        if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'focusin') && $.contains(parent, event.target)) {\r\n          continue;\r\n        }\r\n\r\n        var hideEvent = $.Event(Event.HIDE, relatedTarget);\r\n        $(parent).trigger(hideEvent);\r\n        if (hideEvent.isDefaultPrevented()) {\r\n          continue;\r\n        }\r\n\r\n        toggles[i].setAttribute('aria-expanded', 'false');\r\n\r\n        $(parent).removeClass(ClassName.SHOW).trigger($.Event(Event.HIDDEN, relatedTarget));\r\n      }\r\n    };\r\n\r\n    Dropdown._getParentFromElement = function _getParentFromElement(element) {\r\n      var parent = void 0;\r\n      var selector = Util.getSelectorFromElement(element);\r\n\r\n      if (selector) {\r\n        parent = $(selector)[0];\r\n      }\r\n\r\n      return parent || element.parentNode;\r\n    };\r\n\r\n    Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {\r\n      if (!/(38|40|27|32)/.test(event.which) || /input|textarea/i.test(event.target.tagName)) {\r\n        return;\r\n      }\r\n\r\n      event.preventDefault();\r\n      event.stopPropagation();\r\n\r\n      if (this.disabled || $(this).hasClass(ClassName.DISABLED)) {\r\n        return;\r\n      }\r\n\r\n      var parent = Dropdown._getParentFromElement(this);\r\n      var isActive = $(parent).hasClass(ClassName.SHOW);\r\n\r\n      if (!isActive && event.which !== ESCAPE_KEYCODE || isActive && event.which === ESCAPE_KEYCODE) {\r\n\r\n        if (event.which === ESCAPE_KEYCODE) {\r\n          var toggle = $(parent).find(Selector.DATA_TOGGLE)[0];\r\n          $(toggle).trigger('focus');\r\n        }\r\n\r\n        $(this).trigger('click');\r\n        return;\r\n      }\r\n\r\n      var items = $(parent).find(Selector.VISIBLE_ITEMS).get();\r\n\r\n      if (!items.length) {\r\n        return;\r\n      }\r\n\r\n      var index = items.indexOf(event.target);\r\n\r\n      if (event.which === ARROW_UP_KEYCODE && index > 0) {\r\n        // up\r\n        index--;\r\n      }\r\n\r\n      if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {\r\n        // down\r\n        index++;\r\n      }\r\n\r\n      if (index < 0) {\r\n        index = 0;\r\n      }\r\n\r\n      items[index].focus();\r\n    };\r\n\r\n    _createClass(Dropdown, null, [{\r\n      key: 'VERSION',\r\n      get: function get() {\r\n        return VERSION;\r\n      }\r\n    }]);\r\n\r\n    return Dropdown;\r\n  }();\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Data Api implementation\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.ROLE_MENU, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.ROLE_LISTBOX, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + ' ' + Event.FOCUSIN_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, Dropdown.prototype.toggle).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) {\r\n    e.stopPropagation();\r\n  });\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * jQuery\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $.fn[NAME] = Dropdown._jQueryInterface;\r\n  $.fn[NAME].Constructor = Dropdown;\r\n  $.fn[NAME].noConflict = function () {\r\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\r\n    return Dropdown._jQueryInterface;\r\n  };\r\n\r\n  return Dropdown;\r\n}(jQuery);\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): modal.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar Modal = function ($) {\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Constants\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var NAME = 'modal';\r\n  var VERSION = '4.0.0-alpha.6';\r\n  var DATA_KEY = 'bs.modal';\r\n  var EVENT_KEY = '.' + DATA_KEY;\r\n  var DATA_API_KEY = '.data-api';\r\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\r\n  var TRANSITION_DURATION = 300;\r\n  var BACKDROP_TRANSITION_DURATION = 150;\r\n  var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key\r\n\r\n  var Default = {\r\n    backdrop: true,\r\n    keyboard: true,\r\n    focus: true,\r\n    show: true\r\n  };\r\n\r\n  var DefaultType = {\r\n    backdrop: '(boolean|string)',\r\n    keyboard: 'boolean',\r\n    focus: 'boolean',\r\n    show: 'boolean'\r\n  };\r\n\r\n  var Event = {\r\n    HIDE: 'hide' + EVENT_KEY,\r\n    HIDDEN: 'hidden' + EVENT_KEY,\r\n    SHOW: 'show' + EVENT_KEY,\r\n    SHOWN: 'shown' + EVENT_KEY,\r\n    FOCUSIN: 'focusin' + EVENT_KEY,\r\n    RESIZE: 'resize' + EVENT_KEY,\r\n    CLICK_DISMISS: 'click.dismiss' + EVENT_KEY,\r\n    KEYDOWN_DISMISS: 'keydown.dismiss' + EVENT_KEY,\r\n    MOUSEUP_DISMISS: 'mouseup.dismiss' + EVENT_KEY,\r\n    MOUSEDOWN_DISMISS: 'mousedown.dismiss' + EVENT_KEY,\r\n    CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY\r\n  };\r\n\r\n  var ClassName = {\r\n    SCROLLBAR_MEASURER: 'modal-scrollbar-measure',\r\n    BACKDROP: 'modal-backdrop',\r\n    OPEN: 'modal-open',\r\n    FADE: 'fade',\r\n    SHOW: 'show'\r\n  };\r\n\r\n  var Selector = {\r\n    DIALOG: '.modal-dialog',\r\n    DATA_TOGGLE: '[data-toggle=\"modal\"]',\r\n    DATA_DISMISS: '[data-dismiss=\"modal\"]',\r\n    FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top'\r\n  };\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Class Definition\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var Modal = function () {\r\n    function Modal(element, config) {\r\n      _classCallCheck(this, Modal);\r\n\r\n      this._config = this._getConfig(config);\r\n      this._element = element;\r\n      this._dialog = $(element).find(Selector.DIALOG)[0];\r\n      this._backdrop = null;\r\n      this._isShown = false;\r\n      this._isBodyOverflowing = false;\r\n      this._ignoreBackdropClick = false;\r\n      this._isTransitioning = false;\r\n      this._originalBodyPadding = 0;\r\n      this._scrollbarWidth = 0;\r\n    }\r\n\r\n    // getters\r\n\r\n    // public\r\n\r\n    Modal.prototype.toggle = function toggle(relatedTarget) {\r\n      return this._isShown ? this.hide() : this.show(relatedTarget);\r\n    };\r\n\r\n    Modal.prototype.show = function show(relatedTarget) {\r\n      var _this9 = this;\r\n\r\n      if (this._isTransitioning) {\r\n        throw new Error('Modal is transitioning');\r\n      }\r\n\r\n      if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {\r\n        this._isTransitioning = true;\r\n      }\r\n      var showEvent = $.Event(Event.SHOW, {\r\n        relatedTarget: relatedTarget\r\n      });\r\n\r\n      $(this._element).trigger(showEvent);\r\n\r\n      if (this._isShown || showEvent.isDefaultPrevented()) {\r\n        return;\r\n      }\r\n\r\n      this._isShown = true;\r\n\r\n      this._checkScrollbar();\r\n      this._setScrollbar();\r\n\r\n      $(document.body).addClass(ClassName.OPEN);\r\n\r\n      this._setEscapeEvent();\r\n      this._setResizeEvent();\r\n\r\n      $(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) {\r\n        return _this9.hide(event);\r\n      });\r\n\r\n      $(this._dialog).on(Event.MOUSEDOWN_DISMISS, function () {\r\n        $(_this9._element).one(Event.MOUSEUP_DISMISS, function (event) {\r\n          if ($(event.target).is(_this9._element)) {\r\n            _this9._ignoreBackdropClick = true;\r\n          }\r\n        });\r\n      });\r\n\r\n      this._showBackdrop(function () {\r\n        return _this9._showElement(relatedTarget);\r\n      });\r\n    };\r\n\r\n    Modal.prototype.hide = function hide(event) {\r\n      var _this10 = this;\r\n\r\n      if (event) {\r\n        event.preventDefault();\r\n      }\r\n\r\n      if (this._isTransitioning) {\r\n        throw new Error('Modal is transitioning');\r\n      }\r\n\r\n      var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE);\r\n      if (transition) {\r\n        this._isTransitioning = true;\r\n      }\r\n\r\n      var hideEvent = $.Event(Event.HIDE);\r\n      $(this._element).trigger(hideEvent);\r\n\r\n      if (!this._isShown || hideEvent.isDefaultPrevented()) {\r\n        return;\r\n      }\r\n\r\n      this._isShown = false;\r\n\r\n      this._setEscapeEvent();\r\n      this._setResizeEvent();\r\n\r\n      $(document).off(Event.FOCUSIN);\r\n\r\n      $(this._element).removeClass(ClassName.SHOW);\r\n\r\n      $(this._element).off(Event.CLICK_DISMISS);\r\n      $(this._dialog).off(Event.MOUSEDOWN_DISMISS);\r\n\r\n      if (transition) {\r\n        $(this._element).one(Util.TRANSITION_END, function (event) {\r\n          return _this10._hideModal(event);\r\n        }).emulateTransitionEnd(TRANSITION_DURATION);\r\n      } else {\r\n        this._hideModal();\r\n      }\r\n    };\r\n\r\n    Modal.prototype.dispose = function dispose() {\r\n      $.removeData(this._element, DATA_KEY);\r\n\r\n      $(window, document, this._element, this._backdrop).off(EVENT_KEY);\r\n\r\n      this._config = null;\r\n      this._element = null;\r\n      this._dialog = null;\r\n      this._backdrop = null;\r\n      this._isShown = null;\r\n      this._isBodyOverflowing = null;\r\n      this._ignoreBackdropClick = null;\r\n      this._originalBodyPadding = null;\r\n      this._scrollbarWidth = null;\r\n    };\r\n\r\n    // private\r\n\r\n    Modal.prototype._getConfig = function _getConfig(config) {\r\n      config = $.extend({}, Default, config);\r\n      Util.typeCheckConfig(NAME, config, DefaultType);\r\n      return config;\r\n    };\r\n\r\n    Modal.prototype._showElement = function _showElement(relatedTarget) {\r\n      var _this11 = this;\r\n\r\n      var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE);\r\n\r\n      if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {\r\n        // don't move modals dom position\r\n        document.body.appendChild(this._element);\r\n      }\r\n\r\n      this._element.style.display = 'block';\r\n      this._element.removeAttribute('aria-hidden');\r\n      this._element.scrollTop = 0;\r\n\r\n      if (transition) {\r\n        Util.reflow(this._element);\r\n      }\r\n\r\n      $(this._element).addClass(ClassName.SHOW);\r\n\r\n      if (this._config.focus) {\r\n        this._enforceFocus();\r\n      }\r\n\r\n      var shownEvent = $.Event(Event.SHOWN, {\r\n        relatedTarget: relatedTarget\r\n      });\r\n\r\n      var transitionComplete = function transitionComplete() {\r\n        if (_this11._config.focus) {\r\n          _this11._element.focus();\r\n        }\r\n        _this11._isTransitioning = false;\r\n        $(_this11._element).trigger(shownEvent);\r\n      };\r\n\r\n      if (transition) {\r\n        $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(TRANSITION_DURATION);\r\n      } else {\r\n        transitionComplete();\r\n      }\r\n    };\r\n\r\n    Modal.prototype._enforceFocus = function _enforceFocus() {\r\n      var _this12 = this;\r\n\r\n      $(document).off(Event.FOCUSIN) // guard against infinite focus loop\r\n      .on(Event.FOCUSIN, function (event) {\r\n        if (document !== event.target && _this12._element !== event.target && !$(_this12._element).has(event.target).length) {\r\n          _this12._element.focus();\r\n        }\r\n      });\r\n    };\r\n\r\n    Modal.prototype._setEscapeEvent = function _setEscapeEvent() {\r\n      var _this13 = this;\r\n\r\n      if (this._isShown && this._config.keyboard) {\r\n        $(this._element).on(Event.KEYDOWN_DISMISS, function (event) {\r\n          if (event.which === ESCAPE_KEYCODE) {\r\n            _this13.hide();\r\n          }\r\n        });\r\n      } else if (!this._isShown) {\r\n        $(this._element).off(Event.KEYDOWN_DISMISS);\r\n      }\r\n    };\r\n\r\n    Modal.prototype._setResizeEvent = function _setResizeEvent() {\r\n      var _this14 = this;\r\n\r\n      if (this._isShown) {\r\n        $(window).on(Event.RESIZE, function (event) {\r\n          return _this14._handleUpdate(event);\r\n        });\r\n      } else {\r\n        $(window).off(Event.RESIZE);\r\n      }\r\n    };\r\n\r\n    Modal.prototype._hideModal = function _hideModal() {\r\n      var _this15 = this;\r\n\r\n      this._element.style.display = 'none';\r\n      this._element.setAttribute('aria-hidden', 'true');\r\n      this._isTransitioning = false;\r\n      this._showBackdrop(function () {\r\n        $(document.body).removeClass(ClassName.OPEN);\r\n        _this15._resetAdjustments();\r\n        _this15._resetScrollbar();\r\n        $(_this15._element).trigger(Event.HIDDEN);\r\n      });\r\n    };\r\n\r\n    Modal.prototype._removeBackdrop = function _removeBackdrop() {\r\n      if (this._backdrop) {\r\n        $(this._backdrop).remove();\r\n        this._backdrop = null;\r\n      }\r\n    };\r\n\r\n    Modal.prototype._showBackdrop = function _showBackdrop(callback) {\r\n      var _this16 = this;\r\n\r\n      var animate = $(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : '';\r\n\r\n      if (this._isShown && this._config.backdrop) {\r\n        var doAnimate = Util.supportsTransitionEnd() && animate;\r\n\r\n        this._backdrop = document.createElement('div');\r\n        this._backdrop.className = ClassName.BACKDROP;\r\n\r\n        if (animate) {\r\n          $(this._backdrop).addClass(animate);\r\n        }\r\n\r\n        $(this._backdrop).appendTo(document.body);\r\n\r\n        $(this._element).on(Event.CLICK_DISMISS, function (event) {\r\n          if (_this16._ignoreBackdropClick) {\r\n            _this16._ignoreBackdropClick = false;\r\n            return;\r\n          }\r\n          if (event.target !== event.currentTarget) {\r\n            return;\r\n          }\r\n          if (_this16._config.backdrop === 'static') {\r\n            _this16._element.focus();\r\n          } else {\r\n            _this16.hide();\r\n          }\r\n        });\r\n\r\n        if (doAnimate) {\r\n          Util.reflow(this._backdrop);\r\n        }\r\n\r\n        $(this._backdrop).addClass(ClassName.SHOW);\r\n\r\n        if (!callback) {\r\n          return;\r\n        }\r\n\r\n        if (!doAnimate) {\r\n          callback();\r\n          return;\r\n        }\r\n\r\n        $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION);\r\n      } else if (!this._isShown && this._backdrop) {\r\n        $(this._backdrop).removeClass(ClassName.SHOW);\r\n\r\n        var callbackRemove = function callbackRemove() {\r\n          _this16._removeBackdrop();\r\n          if (callback) {\r\n            callback();\r\n          }\r\n        };\r\n\r\n        if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {\r\n          $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION);\r\n        } else {\r\n          callbackRemove();\r\n        }\r\n      } else if (callback) {\r\n        callback();\r\n      }\r\n    };\r\n\r\n    // ----------------------------------------------------------------------\r\n    // the following methods are used to handle overflowing modals\r\n    // todo (fat): these should probably be refactored out of modal.js\r\n    // ----------------------------------------------------------------------\r\n\r\n    Modal.prototype._handleUpdate = function _handleUpdate() {\r\n      this._adjustDialog();\r\n    };\r\n\r\n    Modal.prototype._adjustDialog = function _adjustDialog() {\r\n      var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;\r\n\r\n      if (!this._isBodyOverflowing && isModalOverflowing) {\r\n        this._element.style.paddingLeft = this._scrollbarWidth + 'px';\r\n      }\r\n\r\n      if (this._isBodyOverflowing && !isModalOverflowing) {\r\n        this._element.style.paddingRight = this._scrollbarWidth + 'px';\r\n      }\r\n    };\r\n\r\n    Modal.prototype._resetAdjustments = function _resetAdjustments() {\r\n      this._element.style.paddingLeft = '';\r\n      this._element.style.paddingRight = '';\r\n    };\r\n\r\n    Modal.prototype._checkScrollbar = function _checkScrollbar() {\r\n      this._isBodyOverflowing = document.body.clientWidth < window.innerWidth;\r\n      this._scrollbarWidth = this._getScrollbarWidth();\r\n    };\r\n\r\n    Modal.prototype._setScrollbar = function _setScrollbar() {\r\n      var bodyPadding = parseInt($(Selector.FIXED_CONTENT).css('padding-right') || 0, 10);\r\n\r\n      this._originalBodyPadding = document.body.style.paddingRight || '';\r\n\r\n      if (this._isBodyOverflowing) {\r\n        document.body.style.paddingRight = bodyPadding + this._scrollbarWidth + 'px';\r\n      }\r\n    };\r\n\r\n    Modal.prototype._resetScrollbar = function _resetScrollbar() {\r\n      document.body.style.paddingRight = this._originalBodyPadding;\r\n    };\r\n\r\n    Modal.prototype._getScrollbarWidth = function _getScrollbarWidth() {\r\n      // thx d.walsh\r\n      var scrollDiv = document.createElement('div');\r\n      scrollDiv.className = ClassName.SCROLLBAR_MEASURER;\r\n      document.body.appendChild(scrollDiv);\r\n      var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\r\n      document.body.removeChild(scrollDiv);\r\n      return scrollbarWidth;\r\n    };\r\n\r\n    // static\r\n\r\n    Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {\r\n      return this.each(function () {\r\n        var data = $(this).data(DATA_KEY);\r\n        var _config = $.extend({}, Modal.Default, $(this).data(), (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config);\r\n\r\n        if (!data) {\r\n          data = new Modal(this, _config);\r\n          $(this).data(DATA_KEY, data);\r\n        }\r\n\r\n        if (typeof config === 'string') {\r\n          if (data[config] === undefined) {\r\n            throw new Error('No method named \"' + config + '\"');\r\n          }\r\n          data[config](relatedTarget);\r\n        } else if (_config.show) {\r\n          data.show(relatedTarget);\r\n        }\r\n      });\r\n    };\r\n\r\n    _createClass(Modal, null, [{\r\n      key: 'VERSION',\r\n      get: function get() {\r\n        return VERSION;\r\n      }\r\n    }, {\r\n      key: 'Default',\r\n      get: function get() {\r\n        return Default;\r\n      }\r\n    }]);\r\n\r\n    return Modal;\r\n  }();\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Data Api implementation\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {\r\n    var _this17 = this;\r\n\r\n    var target = void 0;\r\n    var selector = Util.getSelectorFromElement(this);\r\n\r\n    if (selector) {\r\n      target = $(selector)[0];\r\n    }\r\n\r\n    var config = $(target).data(DATA_KEY) ? 'toggle' : $.extend({}, $(target).data(), $(this).data());\r\n\r\n    if (this.tagName === 'A' || this.tagName === 'AREA') {\r\n      event.preventDefault();\r\n    }\r\n\r\n    var $target = $(target).one(Event.SHOW, function (showEvent) {\r\n      if (showEvent.isDefaultPrevented()) {\r\n        // only register focus restorer if modal will actually get shown\r\n        return;\r\n      }\r\n\r\n      $target.one(Event.HIDDEN, function () {\r\n        if ($(_this17).is(':visible')) {\r\n          _this17.focus();\r\n        }\r\n      });\r\n    });\r\n\r\n    Modal._jQueryInterface.call($(target), config, this);\r\n  });\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * jQuery\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $.fn[NAME] = Modal._jQueryInterface;\r\n  $.fn[NAME].Constructor = Modal;\r\n  $.fn[NAME].noConflict = function () {\r\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\r\n    return Modal._jQueryInterface;\r\n  };\r\n\r\n  return Modal;\r\n}(jQuery);\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): scrollspy.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar ScrollSpy = function ($) {\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Constants\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var NAME = 'scrollspy';\r\n  var VERSION = '4.0.0-alpha.6';\r\n  var DATA_KEY = 'bs.scrollspy';\r\n  var EVENT_KEY = '.' + DATA_KEY;\r\n  var DATA_API_KEY = '.data-api';\r\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\r\n\r\n  var Default = {\r\n    offset: 10,\r\n    method: 'auto',\r\n    target: ''\r\n  };\r\n\r\n  var DefaultType = {\r\n    offset: 'number',\r\n    method: 'string',\r\n    target: '(string|element)'\r\n  };\r\n\r\n  var Event = {\r\n    ACTIVATE: 'activate' + EVENT_KEY,\r\n    SCROLL: 'scroll' + EVENT_KEY,\r\n    LOAD_DATA_API: 'load' + EVENT_KEY + DATA_API_KEY\r\n  };\r\n\r\n  var ClassName = {\r\n    DROPDOWN_ITEM: 'dropdown-item',\r\n    DROPDOWN_MENU: 'dropdown-menu',\r\n    NAV_LINK: 'nav-link',\r\n    NAV: 'nav',\r\n    ACTIVE: 'active'\r\n  };\r\n\r\n  var Selector = {\r\n    DATA_SPY: '[data-spy=\"scroll\"]',\r\n    ACTIVE: '.active',\r\n    LIST_ITEM: '.list-item',\r\n    LI: 'li',\r\n    LI_DROPDOWN: 'li.dropdown',\r\n    NAV_LINKS: '.nav-link',\r\n    DROPDOWN: '.dropdown',\r\n    DROPDOWN_ITEMS: '.dropdown-item',\r\n    DROPDOWN_TOGGLE: '.dropdown-toggle'\r\n  };\r\n\r\n  var OffsetMethod = {\r\n    OFFSET: 'offset',\r\n    POSITION: 'position'\r\n  };\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Class Definition\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var ScrollSpy = function () {\r\n    function ScrollSpy(element, config) {\r\n      var _this18 = this;\r\n\r\n      _classCallCheck(this, ScrollSpy);\r\n\r\n      this._element = element;\r\n      this._scrollElement = element.tagName === 'BODY' ? window : element;\r\n      this._config = this._getConfig(config);\r\n      this._selector = this._config.target + ' ' + Selector.NAV_LINKS + ',' + (this._config.target + ' ' + Selector.DROPDOWN_ITEMS);\r\n      this._offsets = [];\r\n      this._targets = [];\r\n      this._activeTarget = null;\r\n      this._scrollHeight = 0;\r\n\r\n      $(this._scrollElement).on(Event.SCROLL, function (event) {\r\n        return _this18._process(event);\r\n      });\r\n\r\n      this.refresh();\r\n      this._process();\r\n    }\r\n\r\n    // getters\r\n\r\n    // public\r\n\r\n    ScrollSpy.prototype.refresh = function refresh() {\r\n      var _this19 = this;\r\n\r\n      var autoMethod = this._scrollElement !== this._scrollElement.window ? OffsetMethod.POSITION : OffsetMethod.OFFSET;\r\n\r\n      var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;\r\n\r\n      var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;\r\n\r\n      this._offsets = [];\r\n      this._targets = [];\r\n\r\n      this._scrollHeight = this._getScrollHeight();\r\n\r\n      var targets = $.makeArray($(this._selector));\r\n\r\n      targets.map(function (element) {\r\n        var target = void 0;\r\n        var targetSelector = Util.getSelectorFromElement(element);\r\n\r\n        if (targetSelector) {\r\n          target = $(targetSelector)[0];\r\n        }\r\n\r\n        if (target && (target.offsetWidth || target.offsetHeight)) {\r\n          // todo (fat): remove sketch reliance on jQuery position/offset\r\n          return [$(target)[offsetMethod]().top + offsetBase, targetSelector];\r\n        }\r\n        return null;\r\n      }).filter(function (item) {\r\n        return item;\r\n      }).sort(function (a, b) {\r\n        return a[0] - b[0];\r\n      }).forEach(function (item) {\r\n        _this19._offsets.push(item[0]);\r\n        _this19._targets.push(item[1]);\r\n      });\r\n    };\r\n\r\n    ScrollSpy.prototype.dispose = function dispose() {\r\n      $.removeData(this._element, DATA_KEY);\r\n      $(this._scrollElement).off(EVENT_KEY);\r\n\r\n      this._element = null;\r\n      this._scrollElement = null;\r\n      this._config = null;\r\n      this._selector = null;\r\n      this._offsets = null;\r\n      this._targets = null;\r\n      this._activeTarget = null;\r\n      this._scrollHeight = null;\r\n    };\r\n\r\n    // private\r\n\r\n    ScrollSpy.prototype._getConfig = function _getConfig(config) {\r\n      config = $.extend({}, Default, config);\r\n\r\n      if (typeof config.target !== 'string') {\r\n        var id = $(config.target).attr('id');\r\n        if (!id) {\r\n          id = Util.getUID(NAME);\r\n          $(config.target).attr('id', id);\r\n        }\r\n        config.target = '#' + id;\r\n      }\r\n\r\n      Util.typeCheckConfig(NAME, config, DefaultType);\r\n\r\n      return config;\r\n    };\r\n\r\n    ScrollSpy.prototype._getScrollTop = function _getScrollTop() {\r\n      return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;\r\n    };\r\n\r\n    ScrollSpy.prototype._getScrollHeight = function _getScrollHeight() {\r\n      return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);\r\n    };\r\n\r\n    ScrollSpy.prototype._getOffsetHeight = function _getOffsetHeight() {\r\n      return this._scrollElement === window ? window.innerHeight : this._scrollElement.offsetHeight;\r\n    };\r\n\r\n    ScrollSpy.prototype._process = function _process() {\r\n      var scrollTop = this._getScrollTop() + this._config.offset;\r\n      var scrollHeight = this._getScrollHeight();\r\n      var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();\r\n\r\n      if (this._scrollHeight !== scrollHeight) {\r\n        this.refresh();\r\n      }\r\n\r\n      if (scrollTop >= maxScroll) {\r\n        var target = this._targets[this._targets.length - 1];\r\n\r\n        if (this._activeTarget !== target) {\r\n          this._activate(target);\r\n        }\r\n        return;\r\n      }\r\n\r\n      if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {\r\n        this._activeTarget = null;\r\n        this._clear();\r\n        return;\r\n      }\r\n\r\n      for (var i = this._offsets.length; i--;) {\r\n        var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (this._offsets[i + 1] === undefined || scrollTop < this._offsets[i + 1]);\r\n\r\n        if (isActiveTarget) {\r\n          this._activate(this._targets[i]);\r\n        }\r\n      }\r\n    };\r\n\r\n    ScrollSpy.prototype._activate = function _activate(target) {\r\n      this._activeTarget = target;\r\n\r\n      this._clear();\r\n\r\n      var queries = this._selector.split(',');\r\n      queries = queries.map(function (selector) {\r\n        return selector + '[data-target=\"' + target + '\"],' + (selector + '[href=\"' + target + '\"]');\r\n      });\r\n\r\n      var $link = $(queries.join(','));\r\n\r\n      if ($link.hasClass(ClassName.DROPDOWN_ITEM)) {\r\n        $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);\r\n        $link.addClass(ClassName.ACTIVE);\r\n      } else {\r\n        // todo (fat) this is kinda sus...\r\n        // recursively add actives to tested nav-links\r\n        $link.parents(Selector.LI).find('> ' + Selector.NAV_LINKS).addClass(ClassName.ACTIVE);\r\n      }\r\n\r\n      $(this._scrollElement).trigger(Event.ACTIVATE, {\r\n        relatedTarget: target\r\n      });\r\n    };\r\n\r\n    ScrollSpy.prototype._clear = function _clear() {\r\n      $(this._selector).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE);\r\n    };\r\n\r\n    // static\r\n\r\n    ScrollSpy._jQueryInterface = function _jQueryInterface(config) {\r\n      return this.each(function () {\r\n        var data = $(this).data(DATA_KEY);\r\n        var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config;\r\n\r\n        if (!data) {\r\n          data = new ScrollSpy(this, _config);\r\n          $(this).data(DATA_KEY, data);\r\n        }\r\n\r\n        if (typeof config === 'string') {\r\n          if (data[config] === undefined) {\r\n            throw new Error('No method named \"' + config + '\"');\r\n          }\r\n          data[config]();\r\n        }\r\n      });\r\n    };\r\n\r\n    _createClass(ScrollSpy, null, [{\r\n      key: 'VERSION',\r\n      get: function get() {\r\n        return VERSION;\r\n      }\r\n    }, {\r\n      key: 'Default',\r\n      get: function get() {\r\n        return Default;\r\n      }\r\n    }]);\r\n\r\n    return ScrollSpy;\r\n  }();\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Data Api implementation\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $(window).on(Event.LOAD_DATA_API, function () {\r\n    var scrollSpys = $.makeArray($(Selector.DATA_SPY));\r\n\r\n    for (var i = scrollSpys.length; i--;) {\r\n      var $spy = $(scrollSpys[i]);\r\n      ScrollSpy._jQueryInterface.call($spy, $spy.data());\r\n    }\r\n  });\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * jQuery\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $.fn[NAME] = ScrollSpy._jQueryInterface;\r\n  $.fn[NAME].Constructor = ScrollSpy;\r\n  $.fn[NAME].noConflict = function () {\r\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\r\n    return ScrollSpy._jQueryInterface;\r\n  };\r\n\r\n  return ScrollSpy;\r\n}(jQuery);\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): tab.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar Tab = function ($) {\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Constants\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var NAME = 'tab';\r\n  var VERSION = '4.0.0-alpha.6';\r\n  var DATA_KEY = 'bs.tab';\r\n  var EVENT_KEY = '.' + DATA_KEY;\r\n  var DATA_API_KEY = '.data-api';\r\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\r\n  var TRANSITION_DURATION = 150;\r\n\r\n  var Event = {\r\n    HIDE: 'hide' + EVENT_KEY,\r\n    HIDDEN: 'hidden' + EVENT_KEY,\r\n    SHOW: 'show' + EVENT_KEY,\r\n    SHOWN: 'shown' + EVENT_KEY,\r\n    CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY\r\n  };\r\n\r\n  var ClassName = {\r\n    DROPDOWN_MENU: 'dropdown-menu',\r\n    ACTIVE: 'active',\r\n    DISABLED: 'disabled',\r\n    FADE: 'fade',\r\n    SHOW: 'show'\r\n  };\r\n\r\n  var Selector = {\r\n    A: 'a',\r\n    LI: 'li',\r\n    DROPDOWN: '.dropdown',\r\n    LIST: 'ul:not(.dropdown-menu), ol:not(.dropdown-menu), nav:not(.dropdown-menu)',\r\n    FADE_CHILD: '> .nav-item .fade, > .fade',\r\n    ACTIVE: '.active',\r\n    ACTIVE_CHILD: '> .nav-item > .active, > .active',\r\n    DATA_TOGGLE: '[data-toggle=\"tab\"], [data-toggle=\"pill\"]',\r\n    DROPDOWN_TOGGLE: '.dropdown-toggle',\r\n    DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'\r\n  };\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Class Definition\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var Tab = function () {\r\n    function Tab(element) {\r\n      _classCallCheck(this, Tab);\r\n\r\n      this._element = element;\r\n    }\r\n\r\n    // getters\r\n\r\n    // public\r\n\r\n    Tab.prototype.show = function show() {\r\n      var _this20 = this;\r\n\r\n      if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(ClassName.ACTIVE) || $(this._element).hasClass(ClassName.DISABLED)) {\r\n        return;\r\n      }\r\n\r\n      var target = void 0;\r\n      var previous = void 0;\r\n      var listElement = $(this._element).closest(Selector.LIST)[0];\r\n      var selector = Util.getSelectorFromElement(this._element);\r\n\r\n      if (listElement) {\r\n        previous = $.makeArray($(listElement).find(Selector.ACTIVE));\r\n        previous = previous[previous.length - 1];\r\n      }\r\n\r\n      var hideEvent = $.Event(Event.HIDE, {\r\n        relatedTarget: this._element\r\n      });\r\n\r\n      var showEvent = $.Event(Event.SHOW, {\r\n        relatedTarget: previous\r\n      });\r\n\r\n      if (previous) {\r\n        $(previous).trigger(hideEvent);\r\n      }\r\n\r\n      $(this._element).trigger(showEvent);\r\n\r\n      if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {\r\n        return;\r\n      }\r\n\r\n      if (selector) {\r\n        target = $(selector)[0];\r\n      }\r\n\r\n      this._activate(this._element, listElement);\r\n\r\n      var complete = function complete() {\r\n        var hiddenEvent = $.Event(Event.HIDDEN, {\r\n          relatedTarget: _this20._element\r\n        });\r\n\r\n        var shownEvent = $.Event(Event.SHOWN, {\r\n          relatedTarget: previous\r\n        });\r\n\r\n        $(previous).trigger(hiddenEvent);\r\n        $(_this20._element).trigger(shownEvent);\r\n      };\r\n\r\n      if (target) {\r\n        this._activate(target, target.parentNode, complete);\r\n      } else {\r\n        complete();\r\n      }\r\n    };\r\n\r\n    Tab.prototype.dispose = function dispose() {\r\n      $.removeClass(this._element, DATA_KEY);\r\n      this._element = null;\r\n    };\r\n\r\n    // private\r\n\r\n    Tab.prototype._activate = function _activate(element, container, callback) {\r\n      var _this21 = this;\r\n\r\n      var active = $(container).find(Selector.ACTIVE_CHILD)[0];\r\n      var isTransitioning = callback && Util.supportsTransitionEnd() && (active && $(active).hasClass(ClassName.FADE) || Boolean($(container).find(Selector.FADE_CHILD)[0]));\r\n\r\n      var complete = function complete() {\r\n        return _this21._transitionComplete(element, active, isTransitioning, callback);\r\n      };\r\n\r\n      if (active && isTransitioning) {\r\n        $(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);\r\n      } else {\r\n        complete();\r\n      }\r\n\r\n      if (active) {\r\n        $(active).removeClass(ClassName.SHOW);\r\n      }\r\n    };\r\n\r\n    Tab.prototype._transitionComplete = function _transitionComplete(element, active, isTransitioning, callback) {\r\n      if (active) {\r\n        $(active).removeClass(ClassName.ACTIVE);\r\n\r\n        var dropdownChild = $(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];\r\n\r\n        if (dropdownChild) {\r\n          $(dropdownChild).removeClass(ClassName.ACTIVE);\r\n        }\r\n\r\n        active.setAttribute('aria-expanded', false);\r\n      }\r\n\r\n      $(element).addClass(ClassName.ACTIVE);\r\n      element.setAttribute('aria-expanded', true);\r\n\r\n      if (isTransitioning) {\r\n        Util.reflow(element);\r\n        $(element).addClass(ClassName.SHOW);\r\n      } else {\r\n        $(element).removeClass(ClassName.FADE);\r\n      }\r\n\r\n      if (element.parentNode && $(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {\r\n\r\n        var dropdownElement = $(element).closest(Selector.DROPDOWN)[0];\r\n        if (dropdownElement) {\r\n          $(dropdownElement).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);\r\n        }\r\n\r\n        element.setAttribute('aria-expanded', true);\r\n      }\r\n\r\n      if (callback) {\r\n        callback();\r\n      }\r\n    };\r\n\r\n    // static\r\n\r\n    Tab._jQueryInterface = function _jQueryInterface(config) {\r\n      return this.each(function () {\r\n        var $this = $(this);\r\n        var data = $this.data(DATA_KEY);\r\n\r\n        if (!data) {\r\n          data = new Tab(this);\r\n          $this.data(DATA_KEY, data);\r\n        }\r\n\r\n        if (typeof config === 'string') {\r\n          if (data[config] === undefined) {\r\n            throw new Error('No method named \"' + config + '\"');\r\n          }\r\n          data[config]();\r\n        }\r\n      });\r\n    };\r\n\r\n    _createClass(Tab, null, [{\r\n      key: 'VERSION',\r\n      get: function get() {\r\n        return VERSION;\r\n      }\r\n    }]);\r\n\r\n    return Tab;\r\n  }();\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Data Api implementation\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {\r\n    event.preventDefault();\r\n    Tab._jQueryInterface.call($(this), 'show');\r\n  });\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * jQuery\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $.fn[NAME] = Tab._jQueryInterface;\r\n  $.fn[NAME].Constructor = Tab;\r\n  $.fn[NAME].noConflict = function () {\r\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\r\n    return Tab._jQueryInterface;\r\n  };\r\n\r\n  return Tab;\r\n}(jQuery);\r\n\r\n/* global Tether */\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): tooltip.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar Tooltip = function ($) {\r\n\r\n  /**\r\n   * Check for Tether dependency\r\n   * Tether - http://tether.io/\r\n   */\r\n  if (typeof Tether === 'undefined') {\r\n    throw new Error('Bootstrap tooltips require Tether (http://tether.io/)');\r\n  }\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Constants\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var NAME = 'tooltip';\r\n  var VERSION = '4.0.0-alpha.6';\r\n  var DATA_KEY = 'bs.tooltip';\r\n  var EVENT_KEY = '.' + DATA_KEY;\r\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\r\n  var TRANSITION_DURATION = 150;\r\n  var CLASS_PREFIX = 'bs-tether';\r\n\r\n  var Default = {\r\n    animation: true,\r\n    template: '<div class=\"tooltip\" role=\"tooltip\">' + '<div class=\"tooltip-inner\"></div></div>',\r\n    trigger: 'hover focus',\r\n    title: '',\r\n    delay: 0,\r\n    html: false,\r\n    selector: false,\r\n    placement: 'top',\r\n    offset: '0 0',\r\n    constraints: [],\r\n    container: false\r\n  };\r\n\r\n  var DefaultType = {\r\n    animation: 'boolean',\r\n    template: 'string',\r\n    title: '(string|element|function)',\r\n    trigger: 'string',\r\n    delay: '(number|object)',\r\n    html: 'boolean',\r\n    selector: '(string|boolean)',\r\n    placement: '(string|function)',\r\n    offset: 'string',\r\n    constraints: 'array',\r\n    container: '(string|element|boolean)'\r\n  };\r\n\r\n  var AttachmentMap = {\r\n    TOP: 'bottom center',\r\n    RIGHT: 'middle left',\r\n    BOTTOM: 'top center',\r\n    LEFT: 'middle right'\r\n  };\r\n\r\n  var HoverState = {\r\n    SHOW: 'show',\r\n    OUT: 'out'\r\n  };\r\n\r\n  var Event = {\r\n    HIDE: 'hide' + EVENT_KEY,\r\n    HIDDEN: 'hidden' + EVENT_KEY,\r\n    SHOW: 'show' + EVENT_KEY,\r\n    SHOWN: 'shown' + EVENT_KEY,\r\n    INSERTED: 'inserted' + EVENT_KEY,\r\n    CLICK: 'click' + EVENT_KEY,\r\n    FOCUSIN: 'focusin' + EVENT_KEY,\r\n    FOCUSOUT: 'focusout' + EVENT_KEY,\r\n    MOUSEENTER: 'mouseenter' + EVENT_KEY,\r\n    MOUSELEAVE: 'mouseleave' + EVENT_KEY\r\n  };\r\n\r\n  var ClassName = {\r\n    FADE: 'fade',\r\n    SHOW: 'show'\r\n  };\r\n\r\n  var Selector = {\r\n    TOOLTIP: '.tooltip',\r\n    TOOLTIP_INNER: '.tooltip-inner'\r\n  };\r\n\r\n  var TetherClass = {\r\n    element: false,\r\n    enabled: false\r\n  };\r\n\r\n  var Trigger = {\r\n    HOVER: 'hover',\r\n    FOCUS: 'focus',\r\n    CLICK: 'click',\r\n    MANUAL: 'manual'\r\n  };\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Class Definition\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var Tooltip = function () {\r\n    function Tooltip(element, config) {\r\n      _classCallCheck(this, Tooltip);\r\n\r\n      // private\r\n      this._isEnabled = true;\r\n      this._timeout = 0;\r\n      this._hoverState = '';\r\n      this._activeTrigger = {};\r\n      this._isTransitioning = false;\r\n      this._tether = null;\r\n\r\n      // protected\r\n      this.element = element;\r\n      this.config = this._getConfig(config);\r\n      this.tip = null;\r\n\r\n      this._setListeners();\r\n    }\r\n\r\n    // getters\r\n\r\n    // public\r\n\r\n    Tooltip.prototype.enable = function enable() {\r\n      this._isEnabled = true;\r\n    };\r\n\r\n    Tooltip.prototype.disable = function disable() {\r\n      this._isEnabled = false;\r\n    };\r\n\r\n    Tooltip.prototype.toggleEnabled = function toggleEnabled() {\r\n      this._isEnabled = !this._isEnabled;\r\n    };\r\n\r\n    Tooltip.prototype.toggle = function toggle(event) {\r\n      if (event) {\r\n        var dataKey = this.constructor.DATA_KEY;\r\n        var context = $(event.currentTarget).data(dataKey);\r\n\r\n        if (!context) {\r\n          context = new this.constructor(event.currentTarget, this._getDelegateConfig());\r\n          $(event.currentTarget).data(dataKey, context);\r\n        }\r\n\r\n        context._activeTrigger.click = !context._activeTrigger.click;\r\n\r\n        if (context._isWithActiveTrigger()) {\r\n          context._enter(null, context);\r\n        } else {\r\n          context._leave(null, context);\r\n        }\r\n      } else {\r\n\r\n        if ($(this.getTipElement()).hasClass(ClassName.SHOW)) {\r\n          this._leave(null, this);\r\n          return;\r\n        }\r\n\r\n        this._enter(null, this);\r\n      }\r\n    };\r\n\r\n    Tooltip.prototype.dispose = function dispose() {\r\n      clearTimeout(this._timeout);\r\n\r\n      this.cleanupTether();\r\n\r\n      $.removeData(this.element, this.constructor.DATA_KEY);\r\n\r\n      $(this.element).off(this.constructor.EVENT_KEY);\r\n      $(this.element).closest('.modal').off('hide.bs.modal');\r\n\r\n      if (this.tip) {\r\n        $(this.tip).remove();\r\n      }\r\n\r\n      this._isEnabled = null;\r\n      this._timeout = null;\r\n      this._hoverState = null;\r\n      this._activeTrigger = null;\r\n      this._tether = null;\r\n\r\n      this.element = null;\r\n      this.config = null;\r\n      this.tip = null;\r\n    };\r\n\r\n    Tooltip.prototype.show = function show() {\r\n      var _this22 = this;\r\n\r\n      if ($(this.element).css('display') === 'none') {\r\n        throw new Error('Please use show on visible elements');\r\n      }\r\n\r\n      var showEvent = $.Event(this.constructor.Event.SHOW);\r\n      if (this.isWithContent() && this._isEnabled) {\r\n        if (this._isTransitioning) {\r\n          throw new Error('Tooltip is transitioning');\r\n        }\r\n        $(this.element).trigger(showEvent);\r\n\r\n        var isInTheDom = $.contains(this.element.ownerDocument.documentElement, this.element);\r\n\r\n        if (showEvent.isDefaultPrevented() || !isInTheDom) {\r\n          return;\r\n        }\r\n\r\n        var tip = this.getTipElement();\r\n        var tipId = Util.getUID(this.constructor.NAME);\r\n\r\n        tip.setAttribute('id', tipId);\r\n        this.element.setAttribute('aria-describedby', tipId);\r\n\r\n        this.setContent();\r\n\r\n        if (this.config.animation) {\r\n          $(tip).addClass(ClassName.FADE);\r\n        }\r\n\r\n        var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;\r\n\r\n        var attachment = this._getAttachment(placement);\r\n\r\n        var container = this.config.container === false ? document.body : $(this.config.container);\r\n\r\n        $(tip).data(this.constructor.DATA_KEY, this).appendTo(container);\r\n\r\n        $(this.element).trigger(this.constructor.Event.INSERTED);\r\n\r\n        this._tether = new Tether({\r\n          attachment: attachment,\r\n          element: tip,\r\n          target: this.element,\r\n          classes: TetherClass,\r\n          classPrefix: CLASS_PREFIX,\r\n          offset: this.config.offset,\r\n          constraints: this.config.constraints,\r\n          addTargetClasses: false\r\n        });\r\n\r\n        Util.reflow(tip);\r\n        this._tether.position();\r\n\r\n        $(tip).addClass(ClassName.SHOW);\r\n\r\n        var complete = function complete() {\r\n          var prevHoverState = _this22._hoverState;\r\n          _this22._hoverState = null;\r\n          _this22._isTransitioning = false;\r\n\r\n          $(_this22.element).trigger(_this22.constructor.Event.SHOWN);\r\n\r\n          if (prevHoverState === HoverState.OUT) {\r\n            _this22._leave(null, _this22);\r\n          }\r\n        };\r\n\r\n        if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {\r\n          this._isTransitioning = true;\r\n          $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION);\r\n          return;\r\n        }\r\n\r\n        complete();\r\n      }\r\n    };\r\n\r\n    Tooltip.prototype.hide = function hide(callback) {\r\n      var _this23 = this;\r\n\r\n      var tip = this.getTipElement();\r\n      var hideEvent = $.Event(this.constructor.Event.HIDE);\r\n      if (this._isTransitioning) {\r\n        throw new Error('Tooltip is transitioning');\r\n      }\r\n      var complete = function complete() {\r\n        if (_this23._hoverState !== HoverState.SHOW && tip.parentNode) {\r\n          tip.parentNode.removeChild(tip);\r\n        }\r\n\r\n        _this23.element.removeAttribute('aria-describedby');\r\n        $(_this23.element).trigger(_this23.constructor.Event.HIDDEN);\r\n        _this23._isTransitioning = false;\r\n        _this23.cleanupTether();\r\n\r\n        if (callback) {\r\n          callback();\r\n        }\r\n      };\r\n\r\n      $(this.element).trigger(hideEvent);\r\n\r\n      if (hideEvent.isDefaultPrevented()) {\r\n        return;\r\n      }\r\n\r\n      $(tip).removeClass(ClassName.SHOW);\r\n\r\n      this._activeTrigger[Trigger.CLICK] = false;\r\n      this._activeTrigger[Trigger.FOCUS] = false;\r\n      this._activeTrigger[Trigger.HOVER] = false;\r\n\r\n      if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {\r\n        this._isTransitioning = true;\r\n        $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);\r\n      } else {\r\n        complete();\r\n      }\r\n\r\n      this._hoverState = '';\r\n    };\r\n\r\n    // protected\r\n\r\n    Tooltip.prototype.isWithContent = function isWithContent() {\r\n      return Boolean(this.getTitle());\r\n    };\r\n\r\n    Tooltip.prototype.getTipElement = function getTipElement() {\r\n      return this.tip = this.tip || $(this.config.template)[0];\r\n    };\r\n\r\n    Tooltip.prototype.setContent = function setContent() {\r\n      var $tip = $(this.getTipElement());\r\n\r\n      this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle());\r\n\r\n      $tip.removeClass(ClassName.FADE + ' ' + ClassName.SHOW);\r\n\r\n      this.cleanupTether();\r\n    };\r\n\r\n    Tooltip.prototype.setElementContent = function setElementContent($element, content) {\r\n      var html = this.config.html;\r\n      if ((typeof content === 'undefined' ? 'undefined' : _typeof(content)) === 'object' && (content.nodeType || content.jquery)) {\r\n        // content is a DOM node or a jQuery\r\n        if (html) {\r\n          if (!$(content).parent().is($element)) {\r\n            $element.empty().append(content);\r\n          }\r\n        } else {\r\n          $element.text($(content).text());\r\n        }\r\n      } else {\r\n        $element[html ? 'html' : 'text'](content);\r\n      }\r\n    };\r\n\r\n    Tooltip.prototype.getTitle = function getTitle() {\r\n      var title = this.element.getAttribute('data-original-title');\r\n\r\n      if (!title) {\r\n        title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;\r\n      }\r\n\r\n      return title;\r\n    };\r\n\r\n    Tooltip.prototype.cleanupTether = function cleanupTether() {\r\n      if (this._tether) {\r\n        this._tether.destroy();\r\n      }\r\n    };\r\n\r\n    // private\r\n\r\n    Tooltip.prototype._getAttachment = function _getAttachment(placement) {\r\n      return AttachmentMap[placement.toUpperCase()];\r\n    };\r\n\r\n    Tooltip.prototype._setListeners = function _setListeners() {\r\n      var _this24 = this;\r\n\r\n      var triggers = this.config.trigger.split(' ');\r\n\r\n      triggers.forEach(function (trigger) {\r\n        if (trigger === 'click') {\r\n          $(_this24.element).on(_this24.constructor.Event.CLICK, _this24.config.selector, function (event) {\r\n            return _this24.toggle(event);\r\n          });\r\n        } else if (trigger !== Trigger.MANUAL) {\r\n          var eventIn = trigger === Trigger.HOVER ? _this24.constructor.Event.MOUSEENTER : _this24.constructor.Event.FOCUSIN;\r\n          var eventOut = trigger === Trigger.HOVER ? _this24.constructor.Event.MOUSELEAVE : _this24.constructor.Event.FOCUSOUT;\r\n\r\n          $(_this24.element).on(eventIn, _this24.config.selector, function (event) {\r\n            return _this24._enter(event);\r\n          }).on(eventOut, _this24.config.selector, function (event) {\r\n            return _this24._leave(event);\r\n          });\r\n        }\r\n\r\n        $(_this24.element).closest('.modal').on('hide.bs.modal', function () {\r\n          return _this24.hide();\r\n        });\r\n      });\r\n\r\n      if (this.config.selector) {\r\n        this.config = $.extend({}, this.config, {\r\n          trigger: 'manual',\r\n          selector: ''\r\n        });\r\n      } else {\r\n        this._fixTitle();\r\n      }\r\n    };\r\n\r\n    Tooltip.prototype._fixTitle = function _fixTitle() {\r\n      var titleType = _typeof(this.element.getAttribute('data-original-title'));\r\n      if (this.element.getAttribute('title') || titleType !== 'string') {\r\n        this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');\r\n        this.element.setAttribute('title', '');\r\n      }\r\n    };\r\n\r\n    Tooltip.prototype._enter = function _enter(event, context) {\r\n      var dataKey = this.constructor.DATA_KEY;\r\n\r\n      context = context || $(event.currentTarget).data(dataKey);\r\n\r\n      if (!context) {\r\n        context = new this.constructor(event.currentTarget, this._getDelegateConfig());\r\n        $(event.currentTarget).data(dataKey, context);\r\n      }\r\n\r\n      if (event) {\r\n        context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;\r\n      }\r\n\r\n      if ($(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) {\r\n        context._hoverState = HoverState.SHOW;\r\n        return;\r\n      }\r\n\r\n      clearTimeout(context._timeout);\r\n\r\n      context._hoverState = HoverState.SHOW;\r\n\r\n      if (!context.config.delay || !context.config.delay.show) {\r\n        context.show();\r\n        return;\r\n      }\r\n\r\n      context._timeout = setTimeout(function () {\r\n        if (context._hoverState === HoverState.SHOW) {\r\n          context.show();\r\n        }\r\n      }, context.config.delay.show);\r\n    };\r\n\r\n    Tooltip.prototype._leave = function _leave(event, context) {\r\n      var dataKey = this.constructor.DATA_KEY;\r\n\r\n      context = context || $(event.currentTarget).data(dataKey);\r\n\r\n      if (!context) {\r\n        context = new this.constructor(event.currentTarget, this._getDelegateConfig());\r\n        $(event.currentTarget).data(dataKey, context);\r\n      }\r\n\r\n      if (event) {\r\n        context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false;\r\n      }\r\n\r\n      if (context._isWithActiveTrigger()) {\r\n        return;\r\n      }\r\n\r\n      clearTimeout(context._timeout);\r\n\r\n      context._hoverState = HoverState.OUT;\r\n\r\n      if (!context.config.delay || !context.config.delay.hide) {\r\n        context.hide();\r\n        return;\r\n      }\r\n\r\n      context._timeout = setTimeout(function () {\r\n        if (context._hoverState === HoverState.OUT) {\r\n          context.hide();\r\n        }\r\n      }, context.config.delay.hide);\r\n    };\r\n\r\n    Tooltip.prototype._isWithActiveTrigger = function _isWithActiveTrigger() {\r\n      for (var trigger in this._activeTrigger) {\r\n        if (this._activeTrigger[trigger]) {\r\n          return true;\r\n        }\r\n      }\r\n\r\n      return false;\r\n    };\r\n\r\n    Tooltip.prototype._getConfig = function _getConfig(config) {\r\n      config = $.extend({}, this.constructor.Default, $(this.element).data(), config);\r\n\r\n      if (config.delay && typeof config.delay === 'number') {\r\n        config.delay = {\r\n          show: config.delay,\r\n          hide: config.delay\r\n        };\r\n      }\r\n\r\n      Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);\r\n\r\n      return config;\r\n    };\r\n\r\n    Tooltip.prototype._getDelegateConfig = function _getDelegateConfig() {\r\n      var config = {};\r\n\r\n      if (this.config) {\r\n        for (var key in this.config) {\r\n          if (this.constructor.Default[key] !== this.config[key]) {\r\n            config[key] = this.config[key];\r\n          }\r\n        }\r\n      }\r\n\r\n      return config;\r\n    };\r\n\r\n    // static\r\n\r\n    Tooltip._jQueryInterface = function _jQueryInterface(config) {\r\n      return this.each(function () {\r\n        var data = $(this).data(DATA_KEY);\r\n        var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config;\r\n\r\n        if (!data && /dispose|hide/.test(config)) {\r\n          return;\r\n        }\r\n\r\n        if (!data) {\r\n          data = new Tooltip(this, _config);\r\n          $(this).data(DATA_KEY, data);\r\n        }\r\n\r\n        if (typeof config === 'string') {\r\n          if (data[config] === undefined) {\r\n            throw new Error('No method named \"' + config + '\"');\r\n          }\r\n          data[config]();\r\n        }\r\n      });\r\n    };\r\n\r\n    _createClass(Tooltip, null, [{\r\n      key: 'VERSION',\r\n      get: function get() {\r\n        return VERSION;\r\n      }\r\n    }, {\r\n      key: 'Default',\r\n      get: function get() {\r\n        return Default;\r\n      }\r\n    }, {\r\n      key: 'NAME',\r\n      get: function get() {\r\n        return NAME;\r\n      }\r\n    }, {\r\n      key: 'DATA_KEY',\r\n      get: function get() {\r\n        return DATA_KEY;\r\n      }\r\n    }, {\r\n      key: 'Event',\r\n      get: function get() {\r\n        return Event;\r\n      }\r\n    }, {\r\n      key: 'EVENT_KEY',\r\n      get: function get() {\r\n        return EVENT_KEY;\r\n      }\r\n    }, {\r\n      key: 'DefaultType',\r\n      get: function get() {\r\n        return DefaultType;\r\n      }\r\n    }]);\r\n\r\n    return Tooltip;\r\n  }();\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * jQuery\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $.fn[NAME] = Tooltip._jQueryInterface;\r\n  $.fn[NAME].Constructor = Tooltip;\r\n  $.fn[NAME].noConflict = function () {\r\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\r\n    return Tooltip._jQueryInterface;\r\n  };\r\n\r\n  return Tooltip;\r\n}(jQuery);\r\n\r\n/**\r\n * --------------------------------------------------------------------------\r\n * Bootstrap (v4.0.0-alpha.6): popover.js\r\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nvar Popover = function ($) {\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Constants\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var NAME = 'popover';\r\n  var VERSION = '4.0.0-alpha.6';\r\n  var DATA_KEY = 'bs.popover';\r\n  var EVENT_KEY = '.' + DATA_KEY;\r\n  var JQUERY_NO_CONFLICT = $.fn[NAME];\r\n\r\n  var Default = $.extend({}, Tooltip.Default, {\r\n    placement: 'right',\r\n    trigger: 'click',\r\n    content: '',\r\n    template: '<div class=\"popover\" role=\"tooltip\">' + '<h3 class=\"popover-title\"></h3>' + '<div class=\"popover-content\"></div></div>'\r\n  });\r\n\r\n  var DefaultType = $.extend({}, Tooltip.DefaultType, {\r\n    content: '(string|element|function)'\r\n  });\r\n\r\n  var ClassName = {\r\n    FADE: 'fade',\r\n    SHOW: 'show'\r\n  };\r\n\r\n  var Selector = {\r\n    TITLE: '.popover-title',\r\n    CONTENT: '.popover-content'\r\n  };\r\n\r\n  var Event = {\r\n    HIDE: 'hide' + EVENT_KEY,\r\n    HIDDEN: 'hidden' + EVENT_KEY,\r\n    SHOW: 'show' + EVENT_KEY,\r\n    SHOWN: 'shown' + EVENT_KEY,\r\n    INSERTED: 'inserted' + EVENT_KEY,\r\n    CLICK: 'click' + EVENT_KEY,\r\n    FOCUSIN: 'focusin' + EVENT_KEY,\r\n    FOCUSOUT: 'focusout' + EVENT_KEY,\r\n    MOUSEENTER: 'mouseenter' + EVENT_KEY,\r\n    MOUSELEAVE: 'mouseleave' + EVENT_KEY\r\n  };\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * Class Definition\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  var Popover = function (_Tooltip) {\r\n    _inherits(Popover, _Tooltip);\r\n\r\n    function Popover() {\r\n      _classCallCheck(this, Popover);\r\n\r\n      return _possibleConstructorReturn(this, _Tooltip.apply(this, arguments));\r\n    }\r\n\r\n    // overrides\r\n\r\n    Popover.prototype.isWithContent = function isWithContent() {\r\n      return this.getTitle() || this._getContent();\r\n    };\r\n\r\n    Popover.prototype.getTipElement = function getTipElement() {\r\n      return this.tip = this.tip || $(this.config.template)[0];\r\n    };\r\n\r\n    Popover.prototype.setContent = function setContent() {\r\n      var $tip = $(this.getTipElement());\r\n\r\n      // we use append for html objects to maintain js events\r\n      this.setElementContent($tip.find(Selector.TITLE), this.getTitle());\r\n      this.setElementContent($tip.find(Selector.CONTENT), this._getContent());\r\n\r\n      $tip.removeClass(ClassName.FADE + ' ' + ClassName.SHOW);\r\n\r\n      this.cleanupTether();\r\n    };\r\n\r\n    // private\r\n\r\n    Popover.prototype._getContent = function _getContent() {\r\n      return this.element.getAttribute('data-content') || (typeof this.config.content === 'function' ? this.config.content.call(this.element) : this.config.content);\r\n    };\r\n\r\n    // static\r\n\r\n    Popover._jQueryInterface = function _jQueryInterface(config) {\r\n      return this.each(function () {\r\n        var data = $(this).data(DATA_KEY);\r\n        var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' ? config : null;\r\n\r\n        if (!data && /destroy|hide/.test(config)) {\r\n          return;\r\n        }\r\n\r\n        if (!data) {\r\n          data = new Popover(this, _config);\r\n          $(this).data(DATA_KEY, data);\r\n        }\r\n\r\n        if (typeof config === 'string') {\r\n          if (data[config] === undefined) {\r\n            throw new Error('No method named \"' + config + '\"');\r\n          }\r\n          data[config]();\r\n        }\r\n      });\r\n    };\r\n\r\n    _createClass(Popover, null, [{\r\n      key: 'VERSION',\r\n\r\n\r\n      // getters\r\n\r\n      get: function get() {\r\n        return VERSION;\r\n      }\r\n    }, {\r\n      key: 'Default',\r\n      get: function get() {\r\n        return Default;\r\n      }\r\n    }, {\r\n      key: 'NAME',\r\n      get: function get() {\r\n        return NAME;\r\n      }\r\n    }, {\r\n      key: 'DATA_KEY',\r\n      get: function get() {\r\n        return DATA_KEY;\r\n      }\r\n    }, {\r\n      key: 'Event',\r\n      get: function get() {\r\n        return Event;\r\n      }\r\n    }, {\r\n      key: 'EVENT_KEY',\r\n      get: function get() {\r\n        return EVENT_KEY;\r\n      }\r\n    }, {\r\n      key: 'DefaultType',\r\n      get: function get() {\r\n        return DefaultType;\r\n      }\r\n    }]);\r\n\r\n    return Popover;\r\n  }(Tooltip);\r\n\r\n  /**\r\n   * ------------------------------------------------------------------------\r\n   * jQuery\r\n   * ------------------------------------------------------------------------\r\n   */\r\n\r\n  $.fn[NAME] = Popover._jQueryInterface;\r\n  $.fn[NAME].Constructor = Popover;\r\n  $.fn[NAME].noConflict = function () {\r\n    $.fn[NAME] = JQUERY_NO_CONFLICT;\r\n    return Popover._jQueryInterface;\r\n  };\r\n\r\n  return Popover;\r\n}(jQuery);\r\n\r\n}();\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/bootstrap/dist/js/bootstrap.js\n// module id = 422\n// module chunks = 2","/*!\r\n * Flash export buttons for Buttons and DataTables.\r\n * 2015 SpryMedia Ltd - datatables.net/license\r\n *\r\n * ZeroClipbaord - MIT license\r\n * Copyright (c) 2012 Joseph Huckaby\r\n */\r\n\r\n(function( factory ){\r\n\tif ( typeof define === 'function' && define.amd ) {\r\n\t\t// AMD\r\n\t\tdefine( ['jquery', 'datatables.net', 'datatables.net-buttons'], function ( $ ) {\r\n\t\t\treturn factory( $, window, document );\r\n\t\t} );\r\n\t}\r\n\telse if ( typeof exports === 'object' ) {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = function (root, $) {\r\n\t\t\tif ( ! root ) {\r\n\t\t\t\troot = window;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $ || ! $.fn.dataTable ) {\r\n\t\t\t\t$ = require('datatables.net')(root, $).$;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $.fn.dataTable.Buttons ) {\r\n\t\t\t\trequire('datatables.net-buttons')(root, $);\r\n\t\t\t}\r\n\r\n\t\t\treturn factory( $, root, root.document );\r\n\t\t};\r\n\t}\r\n\telse {\r\n\t\t// Browser\r\n\t\tfactory( jQuery, window, document );\r\n\t}\r\n}(function( $, window, document, undefined ) {\r\n'use strict';\r\nvar DataTable = $.fn.dataTable;\r\n\r\n\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * ZeroClipboard dependency\r\n */\r\n\r\n/*\r\n * ZeroClipboard 1.0.4 with modifications\r\n * Author: Joseph Huckaby\r\n * License: MIT\r\n *\r\n * Copyright (c) 2012 Joseph Huckaby\r\n */\r\nvar ZeroClipboard_TableTools = {\r\n\tversion: \"1.0.4-TableTools2\",\r\n\tclients: {}, // registered upload clients on page, indexed by id\r\n\tmoviePath: '', // URL to movie\r\n\tnextId: 1, // ID of next movie\r\n\r\n\t$: function(thingy) {\r\n\t\t// simple DOM lookup utility function\r\n\t\tif (typeof(thingy) == 'string') {\r\n\t\t\tthingy = document.getElementById(thingy);\r\n\t\t}\r\n\t\tif (!thingy.addClass) {\r\n\t\t\t// extend element with a few useful methods\r\n\t\t\tthingy.hide = function() { this.style.display = 'none'; };\r\n\t\t\tthingy.show = function() { this.style.display = ''; };\r\n\t\t\tthingy.addClass = function(name) { this.removeClass(name); this.className += ' ' + name; };\r\n\t\t\tthingy.removeClass = function(name) {\r\n\t\t\t\tthis.className = this.className.replace( new RegExp(\"\\\\s*\" + name + \"\\\\s*\"), \" \").replace(/^\\s+/, '').replace(/\\s+$/, '');\r\n\t\t\t};\r\n\t\t\tthingy.hasClass = function(name) {\r\n\t\t\t\treturn !!this.className.match( new RegExp(\"\\\\s*\" + name + \"\\\\s*\") );\r\n\t\t\t};\r\n\t\t}\r\n\t\treturn thingy;\r\n\t},\r\n\r\n\tsetMoviePath: function(path) {\r\n\t\t// set path to ZeroClipboard.swf\r\n\t\tthis.moviePath = path;\r\n\t},\r\n\r\n\tdispatch: function(id, eventName, args) {\r\n\t\t// receive event from flash movie, send to client\r\n\t\tvar client = this.clients[id];\r\n\t\tif (client) {\r\n\t\t\tclient.receiveEvent(eventName, args);\r\n\t\t}\r\n\t},\r\n\r\n\tlog: function ( str ) {\r\n\t\tconsole.log( 'Flash: '+str );\r\n\t},\r\n\r\n\tregister: function(id, client) {\r\n\t\t// register new client to receive events\r\n\t\tthis.clients[id] = client;\r\n\t},\r\n\r\n\tgetDOMObjectPosition: function(obj) {\r\n\t\t// get absolute coordinates for dom element\r\n\t\tvar info = {\r\n\t\t\tleft: 0,\r\n\t\t\ttop: 0,\r\n\t\t\twidth: obj.width ? obj.width : obj.offsetWidth,\r\n\t\t\theight: obj.height ? obj.height : obj.offsetHeight\r\n\t\t};\r\n\r\n\t\tif ( obj.style.width !== \"\" ) {\r\n\t\t\tinfo.width = obj.style.width.replace(\"px\",\"\");\r\n\t\t}\r\n\r\n\t\tif ( obj.style.height !== \"\" ) {\r\n\t\t\tinfo.height = obj.style.height.replace(\"px\",\"\");\r\n\t\t}\r\n\r\n\t\twhile (obj) {\r\n\t\t\tinfo.left += obj.offsetLeft;\r\n\t\t\tinfo.top += obj.offsetTop;\r\n\t\t\tobj = obj.offsetParent;\r\n\t\t}\r\n\r\n\t\treturn info;\r\n\t},\r\n\r\n\tClient: function(elem) {\r\n\t\t// constructor for new simple upload client\r\n\t\tthis.handlers = {};\r\n\r\n\t\t// unique ID\r\n\t\tthis.id = ZeroClipboard_TableTools.nextId++;\r\n\t\tthis.movieId = 'ZeroClipboard_TableToolsMovie_' + this.id;\r\n\r\n\t\t// register client with singleton to receive flash events\r\n\t\tZeroClipboard_TableTools.register(this.id, this);\r\n\r\n\t\t// create movie\r\n\t\tif (elem) {\r\n\t\t\tthis.glue(elem);\r\n\t\t}\r\n\t}\r\n};\r\n\r\nZeroClipboard_TableTools.Client.prototype = {\r\n\r\n\tid: 0, // unique ID for us\r\n\tready: false, // whether movie is ready to receive events or not\r\n\tmovie: null, // reference to movie object\r\n\tclipText: '', // text to copy to clipboard\r\n\tfileName: '', // default file save name\r\n\taction: 'copy', // action to perform\r\n\thandCursorEnabled: true, // whether to show hand cursor, or default pointer cursor\r\n\tcssEffects: true, // enable CSS mouse effects on dom container\r\n\thandlers: null, // user event handlers\r\n\tsized: false,\r\n\tsheetName: '', // default sheet name for excel export\r\n\r\n\tglue: function(elem, title) {\r\n\t\t// glue to DOM element\r\n\t\t// elem can be ID or actual DOM element object\r\n\t\tthis.domElement = ZeroClipboard_TableTools.$(elem);\r\n\r\n\t\t// float just above object, or zIndex 99 if dom element isn't set\r\n\t\tvar zIndex = 99;\r\n\t\tif (this.domElement.style.zIndex) {\r\n\t\t\tzIndex = parseInt(this.domElement.style.zIndex, 10) + 1;\r\n\t\t}\r\n\r\n\t\t// find X/Y position of domElement\r\n\t\tvar box = ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement);\r\n\r\n\t\t// create floating DIV above element\r\n\t\tthis.div = document.createElement('div');\r\n\t\tvar style = this.div.style;\r\n\t\tstyle.position = 'absolute';\r\n\t\tstyle.left = '0px';\r\n\t\tstyle.top = '0px';\r\n\t\tstyle.width = (box.width) + 'px';\r\n\t\tstyle.height = box.height + 'px';\r\n\t\tstyle.zIndex = zIndex;\r\n\r\n\t\tif ( typeof title != \"undefined\" && title !== \"\" ) {\r\n\t\t\tthis.div.title = title;\r\n\t\t}\r\n\t\tif ( box.width !== 0 && box.height !== 0 ) {\r\n\t\t\tthis.sized = true;\r\n\t\t}\r\n\r\n\t\t// style.backgroundColor = '#f00'; // debug\r\n\t\tif ( this.domElement ) {\r\n\t\t\tthis.domElement.appendChild(this.div);\r\n\t\t\tthis.div.innerHTML = this.getHTML( box.width, box.height ).replace(/&/g, '&amp;');\r\n\t\t}\r\n\t},\r\n\r\n\tpositionElement: function() {\r\n\t\tvar box = ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement);\r\n\t\tvar style = this.div.style;\r\n\r\n\t\tstyle.position = 'absolute';\r\n\t\t//style.left = (this.domElement.offsetLeft)+'px';\r\n\t\t//style.top = this.domElement.offsetTop+'px';\r\n\t\tstyle.width = box.width + 'px';\r\n\t\tstyle.height = box.height + 'px';\r\n\r\n\t\tif ( box.width !== 0 && box.height !== 0 ) {\r\n\t\t\tthis.sized = true;\r\n\t\t} else {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tvar flash = this.div.childNodes[0];\r\n\t\tflash.width = box.width;\r\n\t\tflash.height = box.height;\r\n\t},\r\n\r\n\tgetHTML: function(width, height) {\r\n\t\t// return HTML for movie\r\n\t\tvar html = '';\r\n\t\tvar flashvars = 'id=' + this.id +\r\n\t\t\t'&width=' + width +\r\n\t\t\t'&height=' + height;\r\n\r\n\t\tif (navigator.userAgent.match(/MSIE/)) {\r\n\t\t\t// IE gets an OBJECT tag\r\n\t\t\tvar protocol = location.href.match(/^https/i) ? 'https://' : 'http://';\r\n\t\t\thtml += '<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"'+protocol+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"'+width+'\" height=\"'+height+'\" id=\"'+this.movieId+'\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"allowFullScreen\" value=\"false\" /><param name=\"movie\" value=\"'+ZeroClipboard_TableTools.moviePath+'\" /><param name=\"loop\" value=\"false\" /><param name=\"menu\" value=\"false\" /><param name=\"quality\" value=\"best\" /><param name=\"bgcolor\" value=\"#ffffff\" /><param name=\"flashvars\" value=\"'+flashvars+'\"/><param name=\"wmode\" value=\"transparent\"/></object>';\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// all other browsers get an EMBED tag\r\n\t\t\thtml += '<embed id=\"'+this.movieId+'\" src=\"'+ZeroClipboard_TableTools.moviePath+'\" loop=\"false\" menu=\"false\" quality=\"best\" bgcolor=\"#ffffff\" width=\"'+width+'\" height=\"'+height+'\" name=\"'+this.movieId+'\" align=\"middle\" allowScriptAccess=\"always\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"'+flashvars+'\" wmode=\"transparent\" />';\r\n\t\t}\r\n\t\treturn html;\r\n\t},\r\n\r\n\thide: function() {\r\n\t\t// temporarily hide floater offscreen\r\n\t\tif (this.div) {\r\n\t\t\tthis.div.style.left = '-2000px';\r\n\t\t}\r\n\t},\r\n\r\n\tshow: function() {\r\n\t\t// show ourselves after a call to hide()\r\n\t\tthis.reposition();\r\n\t},\r\n\r\n\tdestroy: function() {\r\n\t\t// destroy control and floater\r\n\t\tvar that = this;\r\n\r\n\t\tif (this.domElement && this.div) {\r\n\t\t\t$(this.div).remove();\r\n\r\n\t\t\tthis.domElement = null;\r\n\t\t\tthis.div = null;\r\n\r\n\t\t\t$.each( ZeroClipboard_TableTools.clients, function ( id, client ) {\r\n\t\t\t\tif ( client === that ) {\r\n\t\t\t\t\tdelete ZeroClipboard_TableTools.clients[ id ];\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t}\r\n\t},\r\n\r\n\treposition: function(elem) {\r\n\t\t// reposition our floating div, optionally to new container\r\n\t\t// warning: container CANNOT change size, only position\r\n\t\tif (elem) {\r\n\t\t\tthis.domElement = ZeroClipboard_TableTools.$(elem);\r\n\t\t\tif (!this.domElement) {\r\n\t\t\t\tthis.hide();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (this.domElement && this.div) {\r\n\t\t\tvar box = ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement);\r\n\t\t\tvar style = this.div.style;\r\n\t\t\tstyle.left = '' + box.left + 'px';\r\n\t\t\tstyle.top = '' + box.top + 'px';\r\n\t\t}\r\n\t},\r\n\r\n\tclearText: function() {\r\n\t\t// clear the text to be copy / saved\r\n\t\tthis.clipText = '';\r\n\t\tif (this.ready) {\r\n\t\t\tthis.movie.clearText();\r\n\t\t}\r\n\t},\r\n\r\n\tappendText: function(newText) {\r\n\t\t// append text to that which is to be copied / saved\r\n\t\tthis.clipText += newText;\r\n\t\tif (this.ready) { this.movie.appendText(newText) ;}\r\n\t},\r\n\r\n\tsetText: function(newText) {\r\n\t\t// set text to be copied to be copied / saved\r\n\t\tthis.clipText = newText;\r\n\t\tif (this.ready) { this.movie.setText(newText) ;}\r\n\t},\r\n\r\n\tsetFileName: function(newText) {\r\n\t\t// set the file name\r\n\t\tthis.fileName = newText;\r\n\t\tif (this.ready) {\r\n\t\t\tthis.movie.setFileName(newText);\r\n\t\t}\r\n\t},\r\n\r\n\tsetSheetData: function(data) {\r\n\t\t// set the xlsx sheet data\r\n\t\tif (this.ready) {\r\n\t\t\tthis.movie.setSheetData( JSON.stringify( data ) );\r\n\t\t}\r\n\t},\r\n\r\n\tsetAction: function(newText) {\r\n\t\t// set action (save or copy)\r\n\t\tthis.action = newText;\r\n\t\tif (this.ready) {\r\n\t\t\tthis.movie.setAction(newText);\r\n\t\t}\r\n\t},\r\n\r\n\taddEventListener: function(eventName, func) {\r\n\t\t// add user event listener for event\r\n\t\t// event types: load, queueStart, fileStart, fileComplete, queueComplete, progress, error, cancel\r\n\t\teventName = eventName.toString().toLowerCase().replace(/^on/, '');\r\n\t\tif (!this.handlers[eventName]) {\r\n\t\t\tthis.handlers[eventName] = [];\r\n\t\t}\r\n\t\tthis.handlers[eventName].push(func);\r\n\t},\r\n\r\n\tsetHandCursor: function(enabled) {\r\n\t\t// enable hand cursor (true), or default arrow cursor (false)\r\n\t\tthis.handCursorEnabled = enabled;\r\n\t\tif (this.ready) {\r\n\t\t\tthis.movie.setHandCursor(enabled);\r\n\t\t}\r\n\t},\r\n\r\n\tsetCSSEffects: function(enabled) {\r\n\t\t// enable or disable CSS effects on DOM container\r\n\t\tthis.cssEffects = !!enabled;\r\n\t},\r\n\r\n\treceiveEvent: function(eventName, args) {\r\n\t\tvar self;\r\n\r\n\t\t// receive event from flash\r\n\t\teventName = eventName.toString().toLowerCase().replace(/^on/, '');\r\n\r\n\t\t// special behavior for certain events\r\n\t\tswitch (eventName) {\r\n\t\t\tcase 'load':\r\n\t\t\t\t// movie claims it is ready, but in IE this isn't always the case...\r\n\t\t\t\t// bug fix: Cannot extend EMBED DOM elements in Firefox, must use traditional function\r\n\t\t\t\tthis.movie = document.getElementById(this.movieId);\r\n\t\t\t\tif (!this.movie) {\r\n\t\t\t\t\tself = this;\r\n\t\t\t\t\tsetTimeout( function() { self.receiveEvent('load', null); }, 1 );\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// firefox on pc needs a \"kick\" in order to set these in certain cases\r\n\t\t\t\tif (!this.ready && navigator.userAgent.match(/Firefox/) && navigator.userAgent.match(/Windows/)) {\r\n\t\t\t\t\tself = this;\r\n\t\t\t\t\tsetTimeout( function() { self.receiveEvent('load', null); }, 100 );\r\n\t\t\t\t\tthis.ready = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.ready = true;\r\n\t\t\t\tthis.movie.clearText();\r\n\t\t\t\tthis.movie.appendText( this.clipText );\r\n\t\t\t\tthis.movie.setFileName( this.fileName );\r\n\t\t\t\tthis.movie.setAction( this.action );\r\n\t\t\t\tthis.movie.setHandCursor( this.handCursorEnabled );\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'mouseover':\r\n\t\t\t\tif (this.domElement && this.cssEffects) {\r\n\t\t\t\t\t//this.domElement.addClass('hover');\r\n\t\t\t\t\tif (this.recoverActive) {\r\n\t\t\t\t\t\tthis.domElement.addClass('active');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'mouseout':\r\n\t\t\t\tif (this.domElement && this.cssEffects) {\r\n\t\t\t\t\tthis.recoverActive = false;\r\n\t\t\t\t\tif (this.domElement.hasClass('active')) {\r\n\t\t\t\t\t\tthis.domElement.removeClass('active');\r\n\t\t\t\t\t\tthis.recoverActive = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//this.domElement.removeClass('hover');\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'mousedown':\r\n\t\t\t\tif (this.domElement && this.cssEffects) {\r\n\t\t\t\t\tthis.domElement.addClass('active');\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'mouseup':\r\n\t\t\t\tif (this.domElement && this.cssEffects) {\r\n\t\t\t\t\tthis.domElement.removeClass('active');\r\n\t\t\t\t\tthis.recoverActive = false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t} // switch eventName\r\n\r\n\t\tif (this.handlers[eventName]) {\r\n\t\t\tfor (var idx = 0, len = this.handlers[eventName].length; idx < len; idx++) {\r\n\t\t\t\tvar func = this.handlers[eventName][idx];\r\n\r\n\t\t\t\tif (typeof(func) == 'function') {\r\n\t\t\t\t\t// actual function reference\r\n\t\t\t\t\tfunc(this, args);\r\n\t\t\t\t}\r\n\t\t\t\telse if ((typeof(func) == 'object') && (func.length == 2)) {\r\n\t\t\t\t\t// PHP style object + method, i.e. [myObject, 'myMethod']\r\n\t\t\t\t\tfunc[0][ func[1] ](this, args);\r\n\t\t\t\t}\r\n\t\t\t\telse if (typeof(func) == 'string') {\r\n\t\t\t\t\t// name of function\r\n\t\t\t\t\twindow[func](this, args);\r\n\t\t\t\t}\r\n\t\t\t} // foreach event handler defined\r\n\t\t} // user defined handler for event\r\n\t}\r\n};\r\n\r\nZeroClipboard_TableTools.hasFlash = function ()\r\n{\r\n\ttry {\r\n\t\tvar fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');\r\n\t\tif (fo) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}\r\n\tcatch (e) {\r\n\t\tif (\r\n\t\t\tnavigator.mimeTypes &&\r\n\t\t\tnavigator.mimeTypes['application/x-shockwave-flash'] !== undefined &&\r\n\t\t\tnavigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin\r\n\t\t) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}\r\n\r\n\treturn false;\r\n};\r\n\r\n// For the Flash binding to work, ZeroClipboard_TableTools must be on the global\r\n// object list\r\nwindow.ZeroClipboard_TableTools = ZeroClipboard_TableTools;\r\n\r\n\r\n\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Local (private) functions\r\n */\r\n\r\n/**\r\n * If a Buttons instance is initlaised before it is placed into the DOM, Flash\r\n * won't be able to bind to it, so we need to wait until it is available, this\r\n * method abstracts that out.\r\n *\r\n * @param {ZeroClipboard} flash ZeroClipboard instance\r\n * @param {jQuery} node  Button\r\n */\r\nvar _glue = function ( flash, node )\r\n{\r\n\tvar id = node.attr('id');\r\n\r\n\tif ( node.parents('html').length ) {\r\n\t\tflash.glue( node[0], '' );\r\n\t}\r\n\telse {\r\n\t\tsetTimeout( function () {\r\n\t\t\t_glue( flash, node );\r\n\t\t}, 500 );\r\n\t}\r\n};\r\n\r\n/**\r\n * Get the file name for an exported file.\r\n *\r\n * @param {object}  config       Button configuration\r\n * @param {boolean} incExtension Include the file name extension\r\n */\r\nvar _filename = function ( config, incExtension )\r\n{\r\n\t// Backwards compatibility\r\n\tvar filename = config.filename === '*' && config.title !== '*' && config.title !== undefined ?\r\n\t\tconfig.title :\r\n\t\tconfig.filename;\r\n\r\n\tif ( typeof filename === 'function' ) {\r\n\t\tfilename = filename();\r\n\t}\r\n\r\n\tif ( filename.indexOf( '*' ) !== -1 ) {\r\n\t\tfilename = $.trim( filename.replace( '*', $('title').text() ) );\r\n\t}\r\n\r\n\t// Strip characters which the OS will object to\r\n\tfilename = filename.replace(/[^a-zA-Z0-9_\\u00A1-\\uFFFF\\.,\\-_ !\\(\\)]/g, \"\");\r\n\r\n\treturn incExtension === undefined || incExtension === true ?\r\n\t\tfilename+config.extension :\r\n\t\tfilename;\r\n};\r\n\r\n/**\r\n * Get the sheet name for Excel exports.\r\n *\r\n * @param {object}  config       Button configuration\r\n */\r\nvar _sheetname = function ( config )\r\n{\r\n\tvar sheetName = 'Sheet1';\r\n\r\n\tif ( config.sheetName ) {\r\n\t\tsheetName = config.sheetName.replace(/[\\[\\]\\*\\/\\\\\\?\\:]/g, '');\r\n\t}\r\n\r\n\treturn sheetName;\r\n};\r\n\r\n/**\r\n * Get the title for an exported file.\r\n *\r\n * @param {object}  config  Button configuration\r\n */\r\nvar _title = function ( config )\r\n{\r\n\tvar title = config.title;\r\n\r\n\tif ( typeof title === 'function' ) {\r\n\t\ttitle = title();\r\n\t}\r\n\r\n\treturn title.indexOf( '*' ) !== -1 ?\r\n\t\ttitle.replace( '*', $('title').text() || 'Exported data' ) :\r\n\t\ttitle;\r\n};\r\n\r\n/**\r\n * Set the flash text. This has to be broken up into chunks as the Javascript /\r\n * Flash bridge has a size limit. There is no indication in the Flash\r\n * documentation what this is, and it probably depends upon the browser.\r\n * Experimentation shows that the point is around 50k when data starts to get\r\n * lost, so an 8K limit used here is safe.\r\n *\r\n * @param {ZeroClipboard} flash ZeroClipboard instance\r\n * @param {string}        data  Data to send to Flash\r\n */\r\nvar _setText = function ( flash, data )\r\n{\r\n\tvar parts = data.match(/[\\s\\S]{1,8192}/g) || [];\r\n\r\n\tflash.clearText();\r\n\tfor ( var i=0, len=parts.length ; i<len ; i++ )\r\n\t{\r\n\t\tflash.appendText( parts[i] );\r\n\t}\r\n};\r\n\r\n/**\r\n * Get the newline character(s)\r\n *\r\n * @param {object}  config Button configuration\r\n * @return {string}        Newline character\r\n */\r\nvar _newLine = function ( config )\r\n{\r\n\treturn config.newline ?\r\n\t\tconfig.newline :\r\n\t\tnavigator.userAgent.match(/Windows/) ?\r\n\t\t\t'\\r\\n' :\r\n\t\t\t'\\n';\r\n};\r\n\r\n/**\r\n * Combine the data from the `buttons.exportData` method into a string that\r\n * will be used in the export file.\r\n *\r\n * @param  {DataTable.Api} dt     DataTables API instance\r\n * @param  {object}        config Button configuration\r\n * @return {object}               The data to export\r\n */\r\nvar _exportData = function ( dt, config )\r\n{\r\n\tvar newLine = _newLine( config );\r\n\tvar data = dt.buttons.exportData( config.exportOptions );\r\n\tvar boundary = config.fieldBoundary;\r\n\tvar separator = config.fieldSeparator;\r\n\tvar reBoundary = new RegExp( boundary, 'g' );\r\n\tvar escapeChar = config.escapeChar !== undefined ?\r\n\t\tconfig.escapeChar :\r\n\t\t'\\\\';\r\n\tvar join = function ( a ) {\r\n\t\tvar s = '';\r\n\r\n\t\t// If there is a field boundary, then we might need to escape it in\r\n\t\t// the source data\r\n\t\tfor ( var i=0, ien=a.length ; i<ien ; i++ ) {\r\n\t\t\tif ( i > 0 ) {\r\n\t\t\t\ts += separator;\r\n\t\t\t}\r\n\r\n\t\t\ts += boundary ?\r\n\t\t\t\tboundary + ('' + a[i]).replace( reBoundary, escapeChar+boundary ) + boundary :\r\n\t\t\t\ta[i];\r\n\t\t}\r\n\r\n\t\treturn s;\r\n\t};\r\n\r\n\tvar header = config.header ? join( data.header )+newLine : '';\r\n\tvar footer = config.footer && data.footer ? newLine+join( data.footer ) : '';\r\n\tvar body = [];\r\n\r\n\tfor ( var i=0, ien=data.body.length ; i<ien ; i++ ) {\r\n\t\tbody.push( join( data.body[i] ) );\r\n\t}\r\n\r\n\treturn {\r\n\t\tstr: header + body.join( newLine ) + footer,\r\n\t\trows: body.length\r\n\t};\r\n};\r\n\r\n\r\n// Basic initialisation for the buttons is common between them\r\nvar flashButton = {\r\n\tavailable: function () {\r\n\t\treturn ZeroClipboard_TableTools.hasFlash();\r\n\t},\r\n\r\n\tinit: function ( dt, button, config ) {\r\n\t\t// Insert the Flash movie\r\n\t\tZeroClipboard_TableTools.moviePath = DataTable.Buttons.swfPath;\r\n\t\tvar flash = new ZeroClipboard_TableTools.Client();\r\n\r\n\t\tflash.setHandCursor( true );\r\n\t\tflash.addEventListener('mouseDown', function(client) {\r\n\t\t\tconfig._fromFlash = true;\r\n\t\t\tdt.button( button[0] ).trigger();\r\n\t\t\tconfig._fromFlash = false;\r\n\t\t} );\r\n\r\n\t\t_glue( flash, button );\r\n\r\n\t\tconfig._flash = flash;\r\n\t},\r\n\r\n\tdestroy: function ( dt, button, config ) {\r\n\t\tconfig._flash.destroy();\r\n\t},\r\n\r\n\tfieldSeparator: ',',\r\n\r\n\tfieldBoundary: '\"',\r\n\r\n\texportOptions: {},\r\n\r\n\ttitle: '*',\r\n\r\n\tfilename: '*',\r\n\r\n\textension: '.csv',\r\n\r\n\theader: true,\r\n\r\n\tfooter: false\r\n};\r\n\r\n\r\n/**\r\n * Convert from numeric position to letter for column names in Excel\r\n * @param  {int} n Column number\r\n * @return {string} Column letter(s) name\r\n */\r\nfunction createCellPos( n ){\r\n\tvar ordA = 'A'.charCodeAt(0);\r\n\tvar ordZ = 'Z'.charCodeAt(0);\r\n\tvar len = ordZ - ordA + 1;\r\n\tvar s = \"\";\r\n\r\n\twhile( n >= 0 ) {\r\n\t\ts = String.fromCharCode(n % len + ordA) + s;\r\n\t\tn = Math.floor(n / len) - 1;\r\n\t}\r\n\r\n\treturn s;\r\n}\r\n\r\n/**\r\n * Create an XML node and add any children, attributes, etc without needing to\r\n * be verbose in the DOM.\r\n *\r\n * @param  {object} doc      XML document\r\n * @param  {string} nodeName Node name\r\n * @param  {object} opts     Options - can be `attr` (attributes), `children`\r\n *   (child nodes) and `text` (text content)\r\n * @return {node}            Created node\r\n */\r\nfunction _createNode( doc, nodeName, opts ){\r\n\tvar tempNode = doc.createElement( nodeName );\r\n\r\n\tif ( opts ) {\r\n\t\tif ( opts.attr ) {\r\n\t\t\t$(tempNode).attr( opts.attr );\r\n\t\t}\r\n\r\n\t\tif( opts.children ) {\r\n\t\t\t$.each( opts.children, function ( key, value ) {\r\n\t\t\t\ttempNode.appendChild( value );\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif( opts.text ) {\r\n\t\t\ttempNode.appendChild( doc.createTextNode( opts.text ) );\r\n\t\t}\r\n\t}\r\n\r\n\treturn tempNode;\r\n}\r\n\r\n/**\r\n * Get the width for an Excel column based on the contents of that column\r\n * @param  {object} data Data for export\r\n * @param  {int}    col  Column index\r\n * @return {int}         Column width\r\n */\r\nfunction _excelColWidth( data, col ) {\r\n\tvar max = data.header[col].length;\r\n\tvar len, lineSplit, str;\r\n\r\n\tif ( data.footer && data.footer[col].length > max ) {\r\n\t\tmax = data.footer[col].length;\r\n\t}\r\n\r\n\tfor ( var i=0, ien=data.body.length ; i<ien ; i++ ) {\r\n\t\tvar point = data.body[i][col];\r\n\t\tstr = point !== null && point !== undefined ?\r\n\t\t\tpoint.toString() :\r\n\t\t\t'';\r\n\r\n\t\t// If there is a newline character, workout the width of the column\r\n\t\t// based on the longest line in the string\r\n\t\tif ( str.indexOf('\\n') !== -1 ) {\r\n\t\t\tlineSplit = str.split('\\n');\r\n\t\t\tlineSplit.sort( function (a, b) {\r\n\t\t\t\treturn b.length - a.length;\r\n\t\t\t} );\r\n\r\n\t\t\tlen = lineSplit[0].length;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlen = str.length;\r\n\t\t}\r\n\r\n\t\tif ( len > max ) {\r\n\t\t\tmax = len;\r\n\t\t}\r\n\r\n\t\t// Max width rather than having potentially massive column widths\r\n\t\tif ( max > 40 ) {\r\n\t\t\treturn 52; // 40 * 1.3\r\n\t\t}\r\n\t}\r\n\r\n\tmax *= 1.3;\r\n\r\n\t// And a min width\r\n\treturn max > 6 ? max : 6;\r\n}\r\n\r\n  var _serialiser = \"\";\r\n    if (typeof window.XMLSerializer === 'undefined') {\r\n        _serialiser = new function () {\r\n            this.serializeToString = function (input) {\r\n                return input.xml\r\n            }\r\n        };\r\n    } else {\r\n        _serialiser =  new XMLSerializer();\r\n    }\r\n\r\n    var _ieExcel;\r\n\r\n\r\n/**\r\n * Convert XML documents in an object to strings\r\n * @param  {object} obj XLSX document object\r\n */\r\nfunction _xlsxToStrings( obj ) {\r\n\tif ( _ieExcel === undefined ) {\r\n\t\t// Detect if we are dealing with IE's _awful_ serialiser by seeing if it\r\n\t\t// drop attributes\r\n\t\t_ieExcel = _serialiser\r\n\t\t\t.serializeToString(\r\n\t\t\t\t$.parseXML( excelStrings['xl/worksheets/sheet1.xml'] )\r\n\t\t\t)\r\n\t\t\t.indexOf( 'xmlns:r' ) === -1;\r\n\t}\r\n\r\n\t$.each( obj, function ( name, val ) {\r\n\t\tif ( $.isPlainObject( val ) ) {\r\n\t\t\t_xlsxToStrings( val );\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif ( _ieExcel ) {\r\n\t\t\t\t// IE's XML serialiser will drop some name space attributes from\r\n\t\t\t\t// from the root node, so we need to save them. Do this by\r\n\t\t\t\t// replacing the namespace nodes with a regular attribute that\r\n\t\t\t\t// we convert back when serialised. Edge does not have this\r\n\t\t\t\t// issue\r\n\t\t\t\tvar worksheet = val.childNodes[0];\r\n\t\t\t\tvar i, ien;\r\n\t\t\t\tvar attrs = [];\r\n\r\n\t\t\t\tfor ( i=worksheet.attributes.length-1 ; i>=0 ; i-- ) {\r\n\t\t\t\t\tvar attrName = worksheet.attributes[i].nodeName;\r\n\t\t\t\t\tvar attrValue = worksheet.attributes[i].nodeValue;\r\n\r\n\t\t\t\t\tif ( attrName.indexOf( ':' ) !== -1 ) {\r\n\t\t\t\t\t\tattrs.push( { name: attrName, value: attrValue } );\r\n\r\n\t\t\t\t\t\tworksheet.removeAttribute( attrName );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor ( i=0, ien=attrs.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tvar attr = val.createAttribute( attrs[i].name.replace( ':', '_dt_b_namespace_token_' ) );\r\n\t\t\t\t\tattr.value = attrs[i].value;\r\n\t\t\t\t\tworksheet.setAttributeNode( attr );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar str = _serialiser.serializeToString(val);\r\n\r\n\t\t\t// Fix IE's XML\r\n\t\t\tif ( _ieExcel ) {\r\n\t\t\t\t// IE doesn't include the XML declaration\r\n\t\t\t\tif ( str.indexOf( '<?xml' ) === -1 ) {\r\n\t\t\t\t\tstr = '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+str;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Return namespace attributes to being as such\r\n\t\t\t\tstr = str.replace( /_dt_b_namespace_token_/g, ':' );\r\n\t\t\t}\r\n\r\n\t\t\t// Safari, IE and Edge will put empty name space attributes onto\r\n\t\t\t// various elements making them useless. This strips them out\r\n\t\t\tstr = str.replace( /<([^<>]*?) xmlns=\"\"([^<>]*?)>/g, '<$1 $2>' );\r\n\r\n\t\t\tobj[ name ] = str;\r\n\t\t}\r\n\t} );\r\n}\r\n\r\n// Excel - Pre-defined strings to build a basic XLSX file\r\nvar excelStrings = {\r\n\t\"_rels/.rels\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+\r\n\t\t'<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">'+\r\n\t\t\t'<Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"xl/workbook.xml\"/>'+\r\n\t\t'</Relationships>',\r\n\r\n\t\"xl/_rels/workbook.xml.rels\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+\r\n\t\t'<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">'+\r\n\t\t\t'<Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet\" Target=\"worksheets/sheet1.xml\"/>'+\r\n\t\t\t'<Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles\" Target=\"styles.xml\"/>'+\r\n\t\t'</Relationships>',\r\n\r\n\t\"[Content_Types].xml\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+\r\n\t\t'<Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">'+\r\n\t\t\t'<Default Extension=\"xml\" ContentType=\"application/xml\" />'+\r\n\t\t\t'<Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" />'+\r\n\t\t\t'<Default Extension=\"jpeg\" ContentType=\"image/jpeg\" />'+\r\n\t\t\t'<Override PartName=\"/xl/workbook.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\" />'+\r\n\t\t\t'<Override PartName=\"/xl/worksheets/sheet1.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\" />'+\r\n\t\t\t'<Override PartName=\"/xl/styles.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml\" />'+\r\n\t\t'</Types>',\r\n\r\n\t\"xl/workbook.xml\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+\r\n\t\t'<workbook xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\">'+\r\n\t\t\t'<fileVersion appName=\"xl\" lastEdited=\"5\" lowestEdited=\"5\" rupBuild=\"24816\"/>'+\r\n\t\t\t'<workbookPr showInkAnnotation=\"0\" autoCompressPictures=\"0\"/>'+\r\n\t\t\t'<bookViews>'+\r\n\t\t\t\t'<workbookView xWindow=\"0\" yWindow=\"0\" windowWidth=\"25600\" windowHeight=\"19020\" tabRatio=\"500\"/>'+\r\n\t\t\t'</bookViews>'+\r\n\t\t\t'<sheets>'+\r\n\t\t\t\t'<sheet name=\"\" sheetId=\"1\" r:id=\"rId1\"/>'+\r\n\t\t\t'</sheets>'+\r\n\t\t'</workbook>',\r\n\r\n\t\"xl/worksheets/sheet1.xml\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+\r\n\t\t'<worksheet xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\" mc:Ignorable=\"x14ac\" xmlns:x14ac=\"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac\">'+\r\n\t\t\t'<sheetData/>'+\r\n\t\t'</worksheet>',\r\n\r\n\t\"xl/styles.xml\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\"?>'+\r\n\t\t'<styleSheet xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\" mc:Ignorable=\"x14ac\" xmlns:x14ac=\"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac\">'+\r\n\t\t\t'<numFmts count=\"6\">'+\r\n\t\t\t\t'<numFmt numFmtId=\"164\" formatCode=\"#,##0.00_-\\ [$$-45C]\"/>'+\r\n\t\t\t\t'<numFmt numFmtId=\"165\" formatCode=\"&quot;£&quot;#,##0.00\"/>'+\r\n\t\t\t\t'<numFmt numFmtId=\"166\" formatCode=\"[$€-2]\\ #,##0.00\"/>'+\r\n\t\t\t\t'<numFmt numFmtId=\"167\" formatCode=\"0.0%\"/>'+\r\n\t\t\t\t'<numFmt numFmtId=\"168\" formatCode=\"#,##0;(#,##0)\"/>'+\r\n\t\t\t\t'<numFmt numFmtId=\"169\" formatCode=\"#,##0.00;(#,##0.00)\"/>'+\r\n\t\t\t'</numFmts>'+\r\n\t\t\t'<fonts count=\"5\" x14ac:knownFonts=\"1\">'+\r\n\t\t\t\t'<font>'+\r\n\t\t\t\t\t'<sz val=\"11\" />'+\r\n\t\t\t\t\t'<name val=\"Calibri\" />'+\r\n\t\t\t\t'</font>'+\r\n\t\t\t\t'<font>'+\r\n\t\t\t\t\t'<sz val=\"11\" />'+\r\n\t\t\t\t\t'<name val=\"Calibri\" />'+\r\n\t\t\t\t\t'<color rgb=\"FFFFFFFF\" />'+\r\n\t\t\t\t'</font>'+\r\n\t\t\t\t'<font>'+\r\n\t\t\t\t\t'<sz val=\"11\" />'+\r\n\t\t\t\t\t'<name val=\"Calibri\" />'+\r\n\t\t\t\t\t'<b />'+\r\n\t\t\t\t'</font>'+\r\n\t\t\t\t'<font>'+\r\n\t\t\t\t\t'<sz val=\"11\" />'+\r\n\t\t\t\t\t'<name val=\"Calibri\" />'+\r\n\t\t\t\t\t'<i />'+\r\n\t\t\t\t'</font>'+\r\n\t\t\t\t'<font>'+\r\n\t\t\t\t\t'<sz val=\"11\" />'+\r\n\t\t\t\t\t'<name val=\"Calibri\" />'+\r\n\t\t\t\t\t'<u />'+\r\n\t\t\t\t'</font>'+\r\n\t\t\t'</fonts>'+\r\n\t\t\t'<fills count=\"6\">'+\r\n\t\t\t\t'<fill>'+\r\n\t\t\t\t\t'<patternFill patternType=\"none\" />'+\r\n\t\t\t\t'</fill>'+\r\n\t\t\t\t'<fill/>'+ // Excel appears to use this as a dotted background regardless of values\r\n\t\t\t\t'<fill>'+\r\n\t\t\t\t\t'<patternFill patternType=\"solid\">'+\r\n\t\t\t\t\t\t'<fgColor rgb=\"FFD9D9D9\" />'+\r\n\t\t\t\t\t\t'<bgColor indexed=\"64\" />'+\r\n\t\t\t\t\t'</patternFill>'+\r\n\t\t\t\t'</fill>'+\r\n\t\t\t\t'<fill>'+\r\n\t\t\t\t\t'<patternFill patternType=\"solid\">'+\r\n\t\t\t\t\t\t'<fgColor rgb=\"FFD99795\" />'+\r\n\t\t\t\t\t\t'<bgColor indexed=\"64\" />'+\r\n\t\t\t\t\t'</patternFill>'+\r\n\t\t\t\t'</fill>'+\r\n\t\t\t\t'<fill>'+\r\n\t\t\t\t\t'<patternFill patternType=\"solid\">'+\r\n\t\t\t\t\t\t'<fgColor rgb=\"ffc6efce\" />'+\r\n\t\t\t\t\t\t'<bgColor indexed=\"64\" />'+\r\n\t\t\t\t\t'</patternFill>'+\r\n\t\t\t\t'</fill>'+\r\n\t\t\t\t'<fill>'+\r\n\t\t\t\t\t'<patternFill patternType=\"solid\">'+\r\n\t\t\t\t\t\t'<fgColor rgb=\"ffc6cfef\" />'+\r\n\t\t\t\t\t\t'<bgColor indexed=\"64\" />'+\r\n\t\t\t\t\t'</patternFill>'+\r\n\t\t\t\t'</fill>'+\r\n\t\t\t'</fills>'+\r\n\t\t\t'<borders count=\"2\">'+\r\n\t\t\t\t'<border>'+\r\n\t\t\t\t\t'<left />'+\r\n\t\t\t\t\t'<right />'+\r\n\t\t\t\t\t'<top />'+\r\n\t\t\t\t\t'<bottom />'+\r\n\t\t\t\t\t'<diagonal />'+\r\n\t\t\t\t'</border>'+\r\n\t\t\t\t'<border diagonalUp=\"false\" diagonalDown=\"false\">'+\r\n\t\t\t\t\t'<left style=\"thin\">'+\r\n\t\t\t\t\t\t'<color auto=\"1\" />'+\r\n\t\t\t\t\t'</left>'+\r\n\t\t\t\t\t'<right style=\"thin\">'+\r\n\t\t\t\t\t\t'<color auto=\"1\" />'+\r\n\t\t\t\t\t'</right>'+\r\n\t\t\t\t\t'<top style=\"thin\">'+\r\n\t\t\t\t\t\t'<color auto=\"1\" />'+\r\n\t\t\t\t\t'</top>'+\r\n\t\t\t\t\t'<bottom style=\"thin\">'+\r\n\t\t\t\t\t\t'<color auto=\"1\" />'+\r\n\t\t\t\t\t'</bottom>'+\r\n\t\t\t\t\t'<diagonal />'+\r\n\t\t\t\t'</border>'+\r\n\t\t\t'</borders>'+\r\n\t\t\t'<cellStyleXfs count=\"1\">'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" />'+\r\n\t\t\t'</cellStyleXfs>'+\r\n\t\t\t'<cellXfs count=\"61\">'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment horizontal=\"left\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment horizontal=\"center\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment horizontal=\"right\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment horizontal=\"fill\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment textRotation=\"90\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment wrapText=\"1\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"9\"   fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"164\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"165\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"166\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"167\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"168\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"169\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"3\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"4\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t'</cellXfs>'+\r\n\t\t\t'<cellStyles count=\"1\">'+\r\n\t\t\t\t'<cellStyle name=\"Normal\" xfId=\"0\" builtinId=\"0\" />'+\r\n\t\t\t'</cellStyles>'+\r\n\t\t\t'<dxfs count=\"0\" />'+\r\n\t\t\t'<tableStyles count=\"0\" defaultTableStyle=\"TableStyleMedium9\" defaultPivotStyle=\"PivotStyleMedium4\" />'+\r\n\t\t'</styleSheet>'\r\n};\r\n// Note we could use 3 `for` loops for the styles, but when gzipped there is\r\n// virtually no difference in size, since the above can be easily compressed\r\n\r\n// Pattern matching for special number formats. Perhaps this should be exposed\r\n// via an API in future?\r\nvar _excelSpecials = [\r\n\t{ match: /^\\-?\\d+\\.\\d%$/,       style: 60, fmt: function (d) { return d/100; } }, // Precent with d.p.\r\n\t{ match: /^\\-?\\d+\\.?\\d*%$/,     style: 56, fmt: function (d) { return d/100; } }, // Percent\r\n\t{ match: /^\\-?\\$[\\d,]+.?\\d*$/,  style: 57 }, // Dollars\r\n\t{ match: /^\\-?£[\\d,]+.?\\d*$/,   style: 58 }, // Pounds\r\n\t{ match: /^\\-?€[\\d,]+.?\\d*$/,   style: 59 }, // Euros\r\n\t{ match: /^\\([\\d,]+\\)$/,        style: 61, fmt: function (d) { return -1 * d.replace(/[\\(\\)]/g, ''); } },  // Negative numbers indicated by brackets\r\n\t{ match: /^\\([\\d,]+\\.\\d{2}\\)$/, style: 62, fmt: function (d) { return -1 * d.replace(/[\\(\\)]/g, ''); } },  // Negative numbers indicated by brackets - 2d.p.\r\n\t{ match: /^[\\d,]+$/,            style: 63 }, // Numbers with thousand separators\r\n\t{ match: /^[\\d,]+\\.\\d{2}$/,     style: 64 }  // Numbers with 2d.p. and thousands separators\r\n];\r\n\r\n\r\n\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * DataTables options and methods\r\n */\r\n\r\n// Set the default SWF path\r\nDataTable.Buttons.swfPath = '//cdn.datatables.net/buttons/1.2.4/swf/flashExport.swf';\r\n\r\n// Method to allow Flash buttons to be resized when made visible - as they are\r\n// of zero height and width if initialised hidden\r\nDataTable.Api.register( 'buttons.resize()', function () {\r\n\t$.each( ZeroClipboard_TableTools.clients, function ( i, client ) {\r\n\t\tif ( client.domElement !== undefined && client.domElement.parentNode ) {\r\n\t\t\tclient.positionElement();\r\n\t\t}\r\n\t} );\r\n} );\r\n\r\n\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Button definitions\r\n */\r\n\r\n// Copy to clipboard\r\nDataTable.ext.buttons.copyFlash = $.extend( {}, flashButton, {\r\n\tclassName: 'buttons-copy buttons-flash',\r\n\r\n\ttext: function ( dt ) {\r\n\t\treturn dt.i18n( 'buttons.copy', 'Copy' );\r\n\t},\r\n\r\n\taction: function ( e, dt, button, config ) {\r\n\t\t// Check that the trigger did actually occur due to a Flash activation\r\n\t\tif ( ! config._fromFlash ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.processing( true );\r\n\r\n\t\tvar flash = config._flash;\r\n\t\tvar data = _exportData( dt, config );\r\n\t\tvar output = config.customize ?\r\n\t\t\tconfig.customize( data.str, config ) :\r\n\t\t\tdata.str;\r\n\r\n\t\tflash.setAction( 'copy' );\r\n\t\t_setText( flash, output );\r\n\r\n\t\tthis.processing( false );\r\n\r\n\t\tdt.buttons.info(\r\n\t\t\tdt.i18n( 'buttons.copyTitle', 'Copy to clipboard' ),\r\n\t\t\tdt.i18n( 'buttons.copySuccess', {\r\n\t\t\t\t_: 'Copied %d rows to clipboard',\r\n\t\t\t\t1: 'Copied 1 row to clipboard'\r\n\t\t\t}, data.rows ),\r\n\t\t\t3000\r\n\t\t);\r\n\t},\r\n\r\n\tfieldSeparator: '\\t',\r\n\r\n\tfieldBoundary: ''\r\n} );\r\n\r\n// CSV save file\r\nDataTable.ext.buttons.csvFlash = $.extend( {}, flashButton, {\r\n\tclassName: 'buttons-csv buttons-flash',\r\n\r\n\ttext: function ( dt ) {\r\n\t\treturn dt.i18n( 'buttons.csv', 'CSV' );\r\n\t},\r\n\r\n\taction: function ( e, dt, button, config ) {\r\n\t\t// Set the text\r\n\t\tvar flash = config._flash;\r\n\t\tvar data = _exportData( dt, config );\r\n\t\tvar output = config.customize ?\r\n\t\t\tconfig.customize( data.str, config ) :\r\n\t\t\tdata.str;\r\n\r\n\t\tflash.setAction( 'csv' );\r\n\t\tflash.setFileName( _filename( config ) );\r\n\t\t_setText( flash, output );\r\n\t},\r\n\r\n\tescapeChar: '\"'\r\n} );\r\n\r\n// Excel save file - this is really a CSV file using UTF-8 that Excel can read\r\nDataTable.ext.buttons.excelFlash = $.extend( {}, flashButton, {\r\n\tclassName: 'buttons-excel buttons-flash',\r\n\r\n\ttext: function ( dt ) {\r\n\t\treturn dt.i18n( 'buttons.excel', 'Excel' );\r\n\t},\r\n\r\n\taction: function ( e, dt, button, config ) {\r\n\t\tthis.processing( true );\r\n\r\n\t\tvar flash = config._flash;\r\n\t\tvar rowPos = 0;\r\n\t\tvar rels = $.parseXML( excelStrings['xl/worksheets/sheet1.xml'] ) ; //Parses xml\r\n\t\tvar relsGet = rels.getElementsByTagName( \"sheetData\" )[0];\r\n\r\n\t\tvar xlsx = {\r\n\t\t\t_rels: {\r\n\t\t\t\t\".rels\": $.parseXML( excelStrings['_rels/.rels'] )\r\n\t\t\t},\r\n\t\t\txl: {\r\n\t\t\t\t_rels: {\r\n\t\t\t\t\t\"workbook.xml.rels\": $.parseXML( excelStrings['xl/_rels/workbook.xml.rels'] )\r\n\t\t\t\t},\r\n\t\t\t\t\"workbook.xml\": $.parseXML( excelStrings['xl/workbook.xml'] ),\r\n\t\t\t\t\"styles.xml\": $.parseXML( excelStrings['xl/styles.xml'] ),\r\n\t\t\t\t\"worksheets\": {\r\n\t\t\t\t\t\"sheet1.xml\": rels\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\t\"[Content_Types].xml\": $.parseXML( excelStrings['[Content_Types].xml'])\r\n\t\t};\r\n\r\n\t\tvar data = dt.buttons.exportData( config.exportOptions );\r\n\t\tvar currentRow, rowNode;\r\n\t\tvar addRow = function ( row ) {\r\n\t\t\tcurrentRow = rowPos+1;\r\n\t\t\trowNode = _createNode( rels, \"row\", { attr: {r:currentRow} } );\r\n\r\n\t\t\tfor ( var i=0, ien=row.length ; i<ien ; i++ ) {\r\n\t\t\t\t// Concat both the Cell Columns as a letter and the Row of the cell.\r\n\t\t\t\tvar cellId = createCellPos(i) + '' + currentRow;\r\n\t\t\t\tvar cell = null;\r\n\r\n\t\t\t\t// For null, undefined of blank cell, continue so it doesn't create the _createNode\r\n\t\t\t\tif ( row[i] === null || row[i] === undefined || row[i] === '' ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\trow[i] = $.trim( row[i] );\r\n\r\n\t\t\t\t// Special number formatting options\r\n\t\t\t\tfor ( var j=0, jen=_excelSpecials.length ; j<jen ; j++ ) {\r\n\t\t\t\t\tvar special = _excelSpecials[j];\r\n\r\n\t\t\t\t\t// TODO Need to provide the ability for the specials to say\r\n\t\t\t\t\t// if they are returning a string, since at the moment it is\r\n\t\t\t\t\t// assumed to be a number\r\n\t\t\t\t\tif ( row[i].match && ! row[i].match(/^0\\d+/) && row[i].match( special.match ) ) {\r\n\t\t\t\t\t\tvar val = row[i].replace(/[^\\d\\.\\-]/g, '');\r\n\r\n\t\t\t\t\t\tif ( special.fmt ) {\r\n\t\t\t\t\t\t\tval = special.fmt( val );\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcell = _createNode( rels, 'c', {\r\n\t\t\t\t\t\t\tattr: {\r\n\t\t\t\t\t\t\t\tr: cellId,\r\n\t\t\t\t\t\t\t\ts: special.style\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t\t\t_createNode( rels, 'v', { text: val } )\r\n\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t} );\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( ! cell ) {\r\n\t\t\t\t\tif ( typeof row[i] === 'number' || (\r\n\t\t\t\t\t\trow[i].match &&\r\n\t\t\t\t\t\trow[i].match(/^-?\\d+(\\.\\d+)?$/) &&\r\n\t\t\t\t\t\t! row[i].match(/^0\\d+/) )\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\t// Detect numbers - don't match numbers with leading zeros\r\n\t\t\t\t\t\t// or a negative anywhere but the start\r\n\t\t\t\t\t\tcell = _createNode( rels, 'c', {\r\n\t\t\t\t\t\t\tattr: {\r\n\t\t\t\t\t\t\t\tt: 'n',\r\n\t\t\t\t\t\t\t\tr: cellId\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t\t\t_createNode( rels, 'v', { text: row[i] } )\r\n\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// String output - replace non standard characters for text output\r\n\t\t\t\t\t\tvar text = ! row[i].replace ?\r\n\t\t\t\t\t\t\trow[i] :\r\n\t\t\t\t\t\t\trow[i].replace(/[\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x9F]/g, '');\r\n\r\n\t\t\t\t\t\tcell = _createNode( rels, 'c', {\r\n\t\t\t\t\t\t\tattr: {\r\n\t\t\t\t\t\t\t\tt: 'inlineStr',\r\n\t\t\t\t\t\t\t\tr: cellId\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tchildren:{\r\n\t\t\t\t\t\t\t\trow: _createNode( rels, 'is', {\r\n\t\t\t\t\t\t\t\t\tchildren: {\r\n\t\t\t\t\t\t\t\t\t\trow: _createNode( rels, 't', {\r\n\t\t\t\t\t\t\t\t\t\t\ttext: text\r\n\t\t\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\trowNode.appendChild( cell );\r\n\t\t\t}\r\n\r\n\t\t\trelsGet.appendChild(rowNode);\r\n\t\t\trowPos++;\r\n\t\t};\r\n\r\n\t\t$( 'sheets sheet', xlsx.xl['workbook.xml'] ).attr( 'name', _sheetname( config ) );\r\n\r\n\t\tif ( config.customizeData ) {\r\n\t\t\tconfig.customizeData( data );\r\n\t\t}\r\n\r\n\t\tif ( config.header ) {\r\n\t\t\taddRow( data.header, rowPos );\r\n\t\t\t$('row c', rels).attr( 's', '2' ); // bold\r\n\t\t}\r\n\r\n\t\tfor ( var n=0, ie=data.body.length ; n<ie ; n++ ) {\r\n\t\t\taddRow( data.body[n], rowPos );\r\n\t\t}\r\n\r\n\t\tif ( config.footer && data.footer ) {\r\n\t\t\taddRow( data.footer, rowPos);\r\n\t\t\t$('row:last c', rels).attr( 's', '2' ); // bold\r\n\t\t}\r\n\r\n\t\t// Set column widths\r\n\t\tvar cols = _createNode( rels, 'cols' );\r\n\t\t$('worksheet', rels).prepend( cols );\r\n\r\n\t\tfor ( var i=0, ien=data.header.length ; i<ien ; i++ ) {\r\n\t\t\tcols.appendChild( _createNode( rels, 'col', {\r\n\t\t\t\tattr: {\r\n\t\t\t\t\tmin: i+1,\r\n\t\t\t\t\tmax: i+1,\r\n\t\t\t\t\twidth: _excelColWidth( data, i ),\r\n\t\t\t\t\tcustomWidth: 1\r\n\t\t\t\t}\r\n\t\t\t} ) );\r\n\t\t}\r\n\r\n\t\t// Let the developer customise the document if they want to\r\n\t\tif ( config.customize ) {\r\n\t\t\tconfig.customize( xlsx );\r\n\t\t}\r\n\r\n\t\t_xlsxToStrings( xlsx );\r\n\r\n\t\tflash.setAction( 'excel' );\r\n\t\tflash.setFileName( _filename( config ) );\r\n\t\tflash.setSheetData( xlsx );\r\n\t\t_setText( flash, '' );\r\n\r\n\t\tthis.processing( false );\r\n\t},\r\n\r\n\textension: '.xlsx'\r\n} );\r\n\r\n\r\n\r\n// PDF export\r\nDataTable.ext.buttons.pdfFlash = $.extend( {}, flashButton, {\r\n\tclassName: 'buttons-pdf buttons-flash',\r\n\r\n\ttext: function ( dt ) {\r\n\t\treturn dt.i18n( 'buttons.pdf', 'PDF' );\r\n\t},\r\n\r\n\taction: function ( e, dt, button, config ) {\r\n\t\tthis.processing( true );\r\n\r\n\t\t// Set the text\r\n\t\tvar flash = config._flash;\r\n\t\tvar data = dt.buttons.exportData( config.exportOptions );\r\n\t\tvar totalWidth = dt.table().node().offsetWidth;\r\n\r\n\t\t// Calculate the column width ratios for layout of the table in the PDF\r\n\t\tvar ratios = dt.columns( config.columns ).indexes().map( function ( idx ) {\r\n\t\t\treturn dt.column( idx ).header().offsetWidth / totalWidth;\r\n\t\t} );\r\n\r\n\t\tflash.setAction( 'pdf' );\r\n\t\tflash.setFileName( _filename( config ) );\r\n\r\n\t\t_setText( flash, JSON.stringify( {\r\n\t\t\ttitle:       _filename(config, false),\r\n\t\t\tmessage: typeof config.message == 'function' ? config.message(dt, button, config) : config.message,\r\n\t\t\tcolWidth:    ratios.toArray(),\r\n\t\t\torientation: config.orientation,\r\n\t\t\tsize:        config.pageSize,\r\n\t\t\theader:      config.header ? data.header : null,\r\n\t\t\tfooter:      config.footer ? data.footer : null,\r\n\t\t\tbody:        data.body\r\n\t\t} ) );\r\n\r\n\t\tthis.processing( false );\r\n\t},\r\n\r\n\textension: '.pdf',\r\n\r\n\torientation: 'portrait',\r\n\r\n\tpageSize: 'A4',\r\n\r\n\tmessage: '',\r\n\r\n\tnewline: '\\n'\r\n} );\r\n\r\n\r\nreturn DataTable.Buttons;\r\n}));\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/datatables.net-buttons/js/buttons.flash.js\n// module id = 441\n// module chunks = 2","/*!\r\n * HTML5 export buttons for Buttons and DataTables.\r\n * 2016 SpryMedia Ltd - datatables.net/license\r\n *\r\n * FileSaver.js (1.3.3) - MIT license\r\n * Copyright © 2016 Eli Grey - http://eligrey.com\r\n */\r\n\r\n(function( factory ){\r\n\tif ( typeof define === 'function' && define.amd ) {\r\n\t\t// AMD\r\n\t\tdefine( ['jquery', 'datatables.net', 'datatables.net-buttons'], function ( $ ) {\r\n\t\t\treturn factory( $, window, document );\r\n\t\t} );\r\n\t}\r\n\telse if ( typeof exports === 'object' ) {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = function (root, $, jszip, pdfmake) {\r\n\t\t\tif ( ! root ) {\r\n\t\t\t\troot = window;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $ || ! $.fn.dataTable ) {\r\n\t\t\t\t$ = require('datatables.net')(root, $).$;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $.fn.dataTable.Buttons ) {\r\n\t\t\t\trequire('datatables.net-buttons')(root, $);\r\n\t\t\t}\r\n\r\n\t\t\treturn factory( $, root, root.document, jszip, pdfmake );\r\n\t\t};\r\n\t}\r\n\telse {\r\n\t\t// Browser\r\n\t\tfactory( jQuery, window, document );\r\n\t}\r\n}(function( $, window, document, jszip, pdfmake, undefined ) {\r\n'use strict';\r\nvar DataTable = $.fn.dataTable;\r\n\r\n// Allow the constructor to pass in JSZip and PDFMake from external requires.\r\n// Otherwise, use globally defined variables, if they are available.\r\nfunction _jsZip () {\r\n\treturn jszip || window.JSZip;\r\n}\r\nfunction _pdfMake () {\r\n\treturn pdfmake || window.pdfMake;\r\n}\r\n\r\n\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * FileSaver.js dependency\r\n */\r\n\r\n/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */\r\n\r\nvar _saveAs = (function(view) {\r\n\t\"use strict\";\r\n\t// IE <10 is explicitly unsupported\r\n\tif (typeof view === \"undefined\" || typeof navigator !== \"undefined\" && /MSIE [1-9]\\./.test(navigator.userAgent)) {\r\n\t\treturn;\r\n\t}\r\n\tvar\r\n\t\t  doc = view.document\r\n\t\t  // only get URL when necessary in case Blob.js hasn't overridden it yet\r\n\t\t, get_URL = function() {\r\n\t\t\treturn view.URL || view.webkitURL || view;\r\n\t\t}\r\n\t\t, save_link = doc.createElementNS(\"http://www.w3.org/1999/xhtml\", \"a\")\r\n\t\t, can_use_save_link = \"download\" in save_link\r\n\t\t, click = function(node) {\r\n\t\t\tvar event = new MouseEvent(\"click\");\r\n\t\t\tnode.dispatchEvent(event);\r\n\t\t}\r\n\t\t, is_safari = /constructor/i.test(view.HTMLElement) || view.safari\r\n\t\t, is_chrome_ios =/CriOS\\/[\\d]+/.test(navigator.userAgent)\r\n\t\t, throw_outside = function(ex) {\r\n\t\t\t(view.setImmediate || view.setTimeout)(function() {\r\n\t\t\t\tthrow ex;\r\n\t\t\t}, 0);\r\n\t\t}\r\n\t\t, force_saveable_type = \"application/octet-stream\"\r\n\t\t// the Blob API is fundamentally broken as there is no \"downloadfinished\" event to subscribe to\r\n\t\t, arbitrary_revoke_timeout = 1000 * 40 // in ms\r\n\t\t, revoke = function(file) {\r\n\t\t\tvar revoker = function() {\r\n\t\t\t\tif (typeof file === \"string\") { // file is an object URL\r\n\t\t\t\t\tget_URL().revokeObjectURL(file);\r\n\t\t\t\t} else { // file is a File\r\n\t\t\t\t\tfile.remove();\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tsetTimeout(revoker, arbitrary_revoke_timeout);\r\n\t\t}\r\n\t\t, dispatch = function(filesaver, event_types, event) {\r\n\t\t\tevent_types = [].concat(event_types);\r\n\t\t\tvar i = event_types.length;\r\n\t\t\twhile (i--) {\r\n\t\t\t\tvar listener = filesaver[\"on\" + event_types[i]];\r\n\t\t\t\tif (typeof listener === \"function\") {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tlistener.call(filesaver, event || filesaver);\r\n\t\t\t\t\t} catch (ex) {\r\n\t\t\t\t\t\tthrow_outside(ex);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t, auto_bom = function(blob) {\r\n\t\t\t// prepend BOM for UTF-8 XML and text/* types (including HTML)\r\n\t\t\t// note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF\r\n\t\t\tif (/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(blob.type)) {\r\n\t\t\t\treturn new Blob([String.fromCharCode(0xFEFF), blob], {type: blob.type});\r\n\t\t\t}\r\n\t\t\treturn blob;\r\n\t\t}\r\n\t\t, FileSaver = function(blob, name, no_auto_bom) {\r\n\t\t\tif (!no_auto_bom) {\r\n\t\t\t\tblob = auto_bom(blob);\r\n\t\t\t}\r\n\t\t\t// First try a.download, then web filesystem, then object URLs\r\n\t\t\tvar\r\n\t\t\t\t  filesaver = this\r\n\t\t\t\t, type = blob.type\r\n\t\t\t\t, force = type === force_saveable_type\r\n\t\t\t\t, object_url\r\n\t\t\t\t, dispatch_all = function() {\r\n\t\t\t\t\tdispatch(filesaver, \"writestart progress write writeend\".split(\" \"));\r\n\t\t\t\t}\r\n\t\t\t\t// on any filesys errors revert to saving with object URLs\r\n\t\t\t\t, fs_error = function() {\r\n\t\t\t\t\tif ((is_chrome_ios || (force && is_safari)) && view.FileReader) {\r\n\t\t\t\t\t\t// Safari doesn't allow downloading of blob urls\r\n\t\t\t\t\t\tvar reader = new FileReader();\r\n\t\t\t\t\t\treader.onloadend = function() {\r\n\t\t\t\t\t\t\tvar url = is_chrome_ios ? reader.result : reader.result.replace(/^data:[^;]*;/, 'data:attachment/file;');\r\n\t\t\t\t\t\t\tvar popup = view.open(url, '_blank');\r\n\t\t\t\t\t\t\tif(!popup) view.location.href = url;\r\n\t\t\t\t\t\t\turl=undefined; // release reference before dispatching\r\n\t\t\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\r\n\t\t\t\t\t\t\tdispatch_all();\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\treader.readAsDataURL(blob);\r\n\t\t\t\t\t\tfilesaver.readyState = filesaver.INIT;\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// don't create more object URLs than needed\r\n\t\t\t\t\tif (!object_url) {\r\n\t\t\t\t\t\tobject_url = get_URL().createObjectURL(blob);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (force) {\r\n\t\t\t\t\t\tview.location.href = object_url;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar opened = view.open(object_url, \"_blank\");\r\n\t\t\t\t\t\tif (!opened) {\r\n\t\t\t\t\t\t\t// Apple does not allow window.open, see https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html\r\n\t\t\t\t\t\t\tview.location.href = object_url;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\r\n\t\t\t\t\tdispatch_all();\r\n\t\t\t\t\trevoke(object_url);\r\n\t\t\t\t}\r\n\t\t\t;\r\n\t\t\tfilesaver.readyState = filesaver.INIT;\r\n\r\n\t\t\tif (can_use_save_link) {\r\n\t\t\t\tobject_url = get_URL().createObjectURL(blob);\r\n\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\tsave_link.href = object_url;\r\n\t\t\t\t\tsave_link.download = name;\r\n\t\t\t\t\tclick(save_link);\r\n\t\t\t\t\tdispatch_all();\r\n\t\t\t\t\trevoke(object_url);\r\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\r\n\t\t\t\t});\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tfs_error();\r\n\t\t}\r\n\t\t, FS_proto = FileSaver.prototype\r\n\t\t, saveAs = function(blob, name, no_auto_bom) {\r\n\t\t\treturn new FileSaver(blob, name || blob.name || \"download\", no_auto_bom);\r\n\t\t}\r\n\t;\r\n\t// IE 10+ (native saveAs)\r\n\tif (typeof navigator !== \"undefined\" && navigator.msSaveOrOpenBlob) {\r\n\t\treturn function(blob, name, no_auto_bom) {\r\n\t\t\tname = name || blob.name || \"download\";\r\n\r\n\t\t\tif (!no_auto_bom) {\r\n\t\t\t\tblob = auto_bom(blob);\r\n\t\t\t}\r\n\t\t\treturn navigator.msSaveOrOpenBlob(blob, name);\r\n\t\t};\r\n\t}\r\n\r\n\tFS_proto.abort = function(){};\r\n\tFS_proto.readyState = FS_proto.INIT = 0;\r\n\tFS_proto.WRITING = 1;\r\n\tFS_proto.DONE = 2;\r\n\r\n\tFS_proto.error =\r\n\tFS_proto.onwritestart =\r\n\tFS_proto.onprogress =\r\n\tFS_proto.onwrite =\r\n\tFS_proto.onabort =\r\n\tFS_proto.onerror =\r\n\tFS_proto.onwriteend =\r\n\t\tnull;\r\n\r\n\treturn saveAs;\r\n}(\r\n\t   typeof self !== \"undefined\" && self\r\n\t|| typeof window !== \"undefined\" && window\r\n\t|| this.content\r\n));\r\n\r\n\r\n// Expose file saver on the DataTables API. Can't attach to `DataTables.Buttons`\r\n// since this file can be loaded before Button's core!\r\nDataTable.fileSave = _saveAs;\r\n\r\n\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Local (private) functions\r\n */\r\n\r\n/**\r\n * Get the file name for an exported file.\r\n *\r\n * @param {object}\tconfig Button configuration\r\n * @param {boolean} incExtension Include the file name extension\r\n */\r\nvar _filename = function ( config, incExtension )\r\n{\r\n\t// Backwards compatibility\r\n\tvar filename = config.filename === '*' && config.title !== '*' && config.title !== undefined ?\r\n\t\tconfig.title :\r\n\t\tconfig.filename;\r\n\r\n\tif ( typeof filename === 'function' ) {\r\n\t\tfilename = filename();\r\n\t}\r\n\r\n\tif ( filename.indexOf( '*' ) !== -1 ) {\r\n\t\tfilename = $.trim( filename.replace( '*', $('title').text() ) );\r\n\t}\r\n\r\n\t// Strip characters which the OS will object to\r\n\tfilename = filename.replace(/[^a-zA-Z0-9_\\u00A1-\\uFFFF\\.,\\-_ !\\(\\)]/g, \"\");\r\n\r\n\treturn incExtension === undefined || incExtension === true ?\r\n\t\tfilename+config.extension :\r\n\t\tfilename;\r\n};\r\n\r\n/**\r\n * Get the sheet name for Excel exports.\r\n *\r\n * @param {object}\tconfig Button configuration\r\n */\r\nvar _sheetname = function ( config )\r\n{\r\n\tvar sheetName = 'Sheet1';\r\n\r\n\tif ( config.sheetName ) {\r\n\t\tsheetName = config.sheetName.replace(/[\\[\\]\\*\\/\\\\\\?\\:]/g, '');\r\n\t}\r\n\r\nreturn sheetName;\r\n};\r\n\r\n/**\r\n * Get the title for an exported file.\r\n *\r\n * @param {object} config\tButton configuration\r\n */\r\nvar _title = function ( config )\r\n{\r\n\tvar title = config.title;\r\n\r\n\tif ( typeof title === 'function' ) {\r\n\t\ttitle = title();\r\n\t}\r\n\r\n\treturn title.indexOf( '*' ) !== -1 ?\r\n\t\ttitle.replace( '*', $('title').text() || 'Exported data' ) :\r\n\t\ttitle;\r\n};\r\n\r\n/**\r\n * Get the newline character(s)\r\n *\r\n * @param {object}\tconfig Button configuration\r\n * @return {string}\t\t\t\tNewline character\r\n */\r\nvar _newLine = function ( config )\r\n{\r\n\treturn config.newline ?\r\n\t\tconfig.newline :\r\n\t\tnavigator.userAgent.match(/Windows/) ?\r\n\t\t\t'\\r\\n' :\r\n\t\t\t'\\n';\r\n};\r\n\r\n/**\r\n * Combine the data from the `buttons.exportData` method into a string that\r\n * will be used in the export file.\r\n *\r\n * @param\t{DataTable.Api} dt\t\t DataTables API instance\r\n * @param\t{object}\t\t\t\tconfig Button configuration\r\n * @return {object}\t\t\t\t\t\t\t The data to export\r\n */\r\nvar _exportData = function ( dt, config )\r\n{\r\n\tvar newLine = _newLine( config );\r\n\tvar data = dt.buttons.exportData( config.exportOptions );\r\n\tvar boundary = config.fieldBoundary;\r\n\tvar separator = config.fieldSeparator;\r\n\tvar reBoundary = new RegExp( boundary, 'g' );\r\n\tvar escapeChar = config.escapeChar !== undefined ?\r\n\t\tconfig.escapeChar :\r\n\t\t'\\\\';\r\n\tvar join = function ( a ) {\r\n\t\tvar s = '';\r\n\r\n\t\t// If there is a field boundary, then we might need to escape it in\r\n\t\t// the source data\r\n\t\tfor ( var i=0, ien=a.length ; i<ien ; i++ ) {\r\n\t\t\tif ( i > 0 ) {\r\n\t\t\t\ts += separator;\r\n\t\t\t}\r\n\r\n\t\t\ts += boundary ?\r\n\t\t\t\tboundary + ('' + a[i]).replace( reBoundary, escapeChar+boundary ) + boundary :\r\n\t\t\t\ta[i];\r\n\t\t}\r\n\r\n\t\treturn s;\r\n\t};\r\n\r\n\tvar header = config.header ? join( data.header )+newLine : '';\r\n\tvar footer = config.footer && data.footer ? newLine+join( data.footer ) : '';\r\n\tvar body = [];\r\n\r\n\tfor ( var i=0, ien=data.body.length ; i<ien ; i++ ) {\r\n\t\tbody.push( join( data.body[i] ) );\r\n\t}\r\n\r\n\treturn {\r\n\t\tstr: header + body.join( newLine ) + footer,\r\n\t\trows: body.length\r\n\t};\r\n};\r\n\r\n/**\r\n * Older versions of Safari (prior to tech preview 18) don't support the\r\n * download option required.\r\n *\r\n * @return {Boolean} `true` if old Safari\r\n */\r\nvar _isDuffSafari = function ()\r\n{\r\n\tvar safari = navigator.userAgent.indexOf('Safari') !== -1 &&\r\n\t\tnavigator.userAgent.indexOf('Chrome') === -1 &&\r\n\t\tnavigator.userAgent.indexOf('Opera') === -1;\r\n\r\n\tif ( ! safari ) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\tvar version = navigator.userAgent.match( /AppleWebKit\\/(\\d+\\.\\d+)/ );\r\n\tif ( version && version.length > 1 && version[1]*1 < 603.1 ) {\r\n\t\treturn true;\r\n\t}\r\n\r\n\treturn false;\r\n};\r\n\r\n/**\r\n * Convert from numeric position to letter for column names in Excel\r\n * @param  {int} n Column number\r\n * @return {string} Column letter(s) name\r\n */\r\nfunction createCellPos( n ){\r\n\tvar ordA = 'A'.charCodeAt(0);\r\n\tvar ordZ = 'Z'.charCodeAt(0);\r\n\tvar len = ordZ - ordA + 1;\r\n\tvar s = \"\";\r\n\r\n\twhile( n >= 0 ) {\r\n\t\ts = String.fromCharCode(n % len + ordA) + s;\r\n\t\tn = Math.floor(n / len) - 1;\r\n\t}\r\n\r\n\treturn s;\r\n}\r\n\r\ntry {\r\n\tvar _serialiser = new XMLSerializer();\r\n\tvar _ieExcel;\r\n}\r\ncatch (t) {}\r\n\r\n/**\r\n * Recursively add XML files from an object's structure to a ZIP file. This\r\n * allows the XSLX file to be easily defined with an object's structure matching\r\n * the files structure.\r\n *\r\n * @param {JSZip} zip ZIP package\r\n * @param {object} obj Object to add (recursive)\r\n */\r\nfunction _addToZip( zip, obj ) {\r\n\tif ( _ieExcel === undefined ) {\r\n\t\t// Detect if we are dealing with IE's _awful_ serialiser by seeing if it\r\n\t\t// drop attributes\r\n\t\t_ieExcel = _serialiser\r\n\t\t\t.serializeToString(\r\n\t\t\t\t$.parseXML( excelStrings['xl/worksheets/sheet1.xml'] )\r\n\t\t\t)\r\n\t\t\t.indexOf( 'xmlns:r' ) === -1;\r\n\t}\r\n\r\n\t$.each( obj, function ( name, val ) {\r\n\t\tif ( $.isPlainObject( val ) ) {\r\n\t\t\tvar newDir = zip.folder( name );\r\n\t\t\t_addToZip( newDir, val );\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif ( _ieExcel ) {\r\n\t\t\t\t// IE's XML serialiser will drop some name space attributes from\r\n\t\t\t\t// from the root node, so we need to save them. Do this by\r\n\t\t\t\t// replacing the namespace nodes with a regular attribute that\r\n\t\t\t\t// we convert back when serialised. Edge does not have this\r\n\t\t\t\t// issue\r\n\t\t\t\tvar worksheet = val.childNodes[0];\r\n\t\t\t\tvar i, ien;\r\n\t\t\t\tvar attrs = [];\r\n\r\n\t\t\t\tfor ( i=worksheet.attributes.length-1 ; i>=0 ; i-- ) {\r\n\t\t\t\t\tvar attrName = worksheet.attributes[i].nodeName;\r\n\t\t\t\t\tvar attrValue = worksheet.attributes[i].nodeValue;\r\n\r\n\t\t\t\t\tif ( attrName.indexOf( ':' ) !== -1 ) {\r\n\t\t\t\t\t\tattrs.push( { name: attrName, value: attrValue } );\r\n\r\n\t\t\t\t\t\tworksheet.removeAttribute( attrName );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor ( i=0, ien=attrs.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tvar attr = val.createAttribute( attrs[i].name.replace( ':', '_dt_b_namespace_token_' ) );\r\n\t\t\t\t\tattr.value = attrs[i].value;\r\n\t\t\t\t\tworksheet.setAttributeNode( attr );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar str = _serialiser.serializeToString(val);\r\n\r\n\t\t\t// Fix IE's XML\r\n\t\t\tif ( _ieExcel ) {\r\n\t\t\t\t// IE doesn't include the XML declaration\r\n\t\t\t\tif ( str.indexOf( '<?xml' ) === -1 ) {\r\n\t\t\t\t\tstr = '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+str;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Return namespace attributes to being as such\r\n\t\t\t\tstr = str.replace( /_dt_b_namespace_token_/g, ':' );\r\n\t\t\t}\r\n\r\n\t\t\t// Safari, IE and Edge will put empty name space attributes onto\r\n\t\t\t// various elements making them useless. This strips them out\r\n\t\t\tstr = str.replace( /<([^<>]*?) xmlns=\"\"([^<>]*?)>/g, '<$1 $2>' );\r\n\r\n\t\t\tzip.file( name, str );\r\n\t\t}\r\n\t} );\r\n}\r\n\r\n/**\r\n * Create an XML node and add any children, attributes, etc without needing to\r\n * be verbose in the DOM.\r\n *\r\n * @param  {object} doc      XML document\r\n * @param  {string} nodeName Node name\r\n * @param  {object} opts     Options - can be `attr` (attributes), `children`\r\n *   (child nodes) and `text` (text content)\r\n * @return {node}            Created node\r\n */\r\nfunction _createNode( doc, nodeName, opts ) {\r\n\tvar tempNode = doc.createElement( nodeName );\r\n\r\n\tif ( opts ) {\r\n\t\tif ( opts.attr ) {\r\n\t\t\t$(tempNode).attr( opts.attr );\r\n\t\t}\r\n\r\n\t\tif( opts.children ) {\r\n\t\t\t$.each( opts.children, function ( key, value ) {\r\n\t\t\t\ttempNode.appendChild( value );\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif( opts.text ) {\r\n\t\t\ttempNode.appendChild( doc.createTextNode( opts.text ) );\r\n\t\t}\r\n\t}\r\n\r\n\treturn tempNode;\r\n}\r\n\r\n/**\r\n * Get the width for an Excel column based on the contents of that column\r\n * @param  {object} data Data for export\r\n * @param  {int}    col  Column index\r\n * @return {int}         Column width\r\n */\r\nfunction _excelColWidth( data, col ) {\r\n\tvar max = data.header[col].length;\r\n\tvar len, lineSplit, str;\r\n\r\n\tif ( data.footer && data.footer[col].length > max ) {\r\n\t\tmax = data.footer[col].length;\r\n\t}\r\n\r\n\tfor ( var i=0, ien=data.body.length ; i<ien ; i++ ) {\r\n\t\tvar point = data.body[i][col];\r\n\t\tstr = point !== null && point !== undefined ?\r\n\t\t\tpoint.toString() :\r\n\t\t\t'';\r\n\r\n\t\t// If there is a newline character, workout the width of the column\r\n\t\t// based on the longest line in the string\r\n\t\tif ( str.indexOf('\\n') !== -1 ) {\r\n\t\t\tlineSplit = str.split('\\n');\r\n\t\t\tlineSplit.sort( function (a, b) {\r\n\t\t\t\treturn b.length - a.length;\r\n\t\t\t} );\r\n\r\n\t\t\tlen = lineSplit[0].length;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlen = str.length;\r\n\t\t}\r\n\r\n\t\tif ( len > max ) {\r\n\t\t\tmax = len;\r\n\t\t}\r\n\r\n\t\t// Max width rather than having potentially massive column widths\r\n\t\tif ( max > 40 ) {\r\n\t\t\treturn 52; // 40 * 1.3\r\n\t\t}\r\n\t}\r\n\r\n\tmax *= 1.3;\r\n\r\n\t// And a min width\r\n\treturn max > 6 ? max : 6;\r\n}\r\n\r\n// Excel - Pre-defined strings to build a basic XLSX file\r\nvar excelStrings = {\r\n\t\"_rels/.rels\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+\r\n\t\t'<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">'+\r\n\t\t\t'<Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"xl/workbook.xml\"/>'+\r\n\t\t'</Relationships>',\r\n\r\n\t\"xl/_rels/workbook.xml.rels\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+\r\n\t\t'<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">'+\r\n\t\t\t'<Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet\" Target=\"worksheets/sheet1.xml\"/>'+\r\n\t\t\t'<Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles\" Target=\"styles.xml\"/>'+\r\n\t\t'</Relationships>',\r\n\r\n\t\"[Content_Types].xml\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+\r\n\t\t'<Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">'+\r\n\t\t\t'<Default Extension=\"xml\" ContentType=\"application/xml\" />'+\r\n\t\t\t'<Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" />'+\r\n\t\t\t'<Default Extension=\"jpeg\" ContentType=\"image/jpeg\" />'+\r\n\t\t\t'<Override PartName=\"/xl/workbook.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\" />'+\r\n\t\t\t'<Override PartName=\"/xl/worksheets/sheet1.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\" />'+\r\n\t\t\t'<Override PartName=\"/xl/styles.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml\" />'+\r\n\t\t'</Types>',\r\n\r\n\t\"xl/workbook.xml\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+\r\n\t\t'<workbook xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\">'+\r\n\t\t\t'<fileVersion appName=\"xl\" lastEdited=\"5\" lowestEdited=\"5\" rupBuild=\"24816\"/>'+\r\n\t\t\t'<workbookPr showInkAnnotation=\"0\" autoCompressPictures=\"0\"/>'+\r\n\t\t\t'<bookViews>'+\r\n\t\t\t\t'<workbookView xWindow=\"0\" yWindow=\"0\" windowWidth=\"25600\" windowHeight=\"19020\" tabRatio=\"500\"/>'+\r\n\t\t\t'</bookViews>'+\r\n\t\t\t'<sheets>'+\r\n\t\t\t\t'<sheet name=\"\" sheetId=\"1\" r:id=\"rId1\"/>'+\r\n\t\t\t'</sheets>'+\r\n\t\t'</workbook>',\r\n\r\n\t\"xl/worksheets/sheet1.xml\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'+\r\n\t\t'<worksheet xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\" mc:Ignorable=\"x14ac\" xmlns:x14ac=\"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac\">'+\r\n\t\t\t'<sheetData/>'+\r\n\t\t'</worksheet>',\r\n\r\n\t\"xl/styles.xml\":\r\n\t\t'<?xml version=\"1.0\" encoding=\"UTF-8\"?>'+\r\n\t\t'<styleSheet xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\" mc:Ignorable=\"x14ac\" xmlns:x14ac=\"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac\">'+\r\n\t\t\t'<numFmts count=\"6\">'+\r\n\t\t\t\t'<numFmt numFmtId=\"164\" formatCode=\"#,##0.00_-\\ [$$-45C]\"/>'+\r\n\t\t\t\t'<numFmt numFmtId=\"165\" formatCode=\"&quot;£&quot;#,##0.00\"/>'+\r\n\t\t\t\t'<numFmt numFmtId=\"166\" formatCode=\"[$€-2]\\ #,##0.00\"/>'+\r\n\t\t\t\t'<numFmt numFmtId=\"167\" formatCode=\"0.0%\"/>'+\r\n\t\t\t\t'<numFmt numFmtId=\"168\" formatCode=\"#,##0;(#,##0)\"/>'+\r\n\t\t\t\t'<numFmt numFmtId=\"169\" formatCode=\"#,##0.00;(#,##0.00)\"/>'+\r\n\t\t\t'</numFmts>'+\r\n\t\t\t'<fonts count=\"5\" x14ac:knownFonts=\"1\">'+\r\n\t\t\t\t'<font>'+\r\n\t\t\t\t\t'<sz val=\"11\" />'+\r\n\t\t\t\t\t'<name val=\"Calibri\" />'+\r\n\t\t\t\t'</font>'+\r\n\t\t\t\t'<font>'+\r\n\t\t\t\t\t'<sz val=\"11\" />'+\r\n\t\t\t\t\t'<name val=\"Calibri\" />'+\r\n\t\t\t\t\t'<color rgb=\"FFFFFFFF\" />'+\r\n\t\t\t\t'</font>'+\r\n\t\t\t\t'<font>'+\r\n\t\t\t\t\t'<sz val=\"11\" />'+\r\n\t\t\t\t\t'<name val=\"Calibri\" />'+\r\n\t\t\t\t\t'<b />'+\r\n\t\t\t\t'</font>'+\r\n\t\t\t\t'<font>'+\r\n\t\t\t\t\t'<sz val=\"11\" />'+\r\n\t\t\t\t\t'<name val=\"Calibri\" />'+\r\n\t\t\t\t\t'<i />'+\r\n\t\t\t\t'</font>'+\r\n\t\t\t\t'<font>'+\r\n\t\t\t\t\t'<sz val=\"11\" />'+\r\n\t\t\t\t\t'<name val=\"Calibri\" />'+\r\n\t\t\t\t\t'<u />'+\r\n\t\t\t\t'</font>'+\r\n\t\t\t'</fonts>'+\r\n\t\t\t'<fills count=\"6\">'+\r\n\t\t\t\t'<fill>'+\r\n\t\t\t\t\t'<patternFill patternType=\"none\" />'+\r\n\t\t\t\t'</fill>'+\r\n\t\t\t\t'<fill/>'+ // Excel appears to use this as a dotted background regardless of values\r\n\t\t\t\t'<fill>'+\r\n\t\t\t\t\t'<patternFill patternType=\"solid\">'+\r\n\t\t\t\t\t\t'<fgColor rgb=\"FFD9D9D9\" />'+\r\n\t\t\t\t\t\t'<bgColor indexed=\"64\" />'+\r\n\t\t\t\t\t'</patternFill>'+\r\n\t\t\t\t'</fill>'+\r\n\t\t\t\t'<fill>'+\r\n\t\t\t\t\t'<patternFill patternType=\"solid\">'+\r\n\t\t\t\t\t\t'<fgColor rgb=\"FFD99795\" />'+\r\n\t\t\t\t\t\t'<bgColor indexed=\"64\" />'+\r\n\t\t\t\t\t'</patternFill>'+\r\n\t\t\t\t'</fill>'+\r\n\t\t\t\t'<fill>'+\r\n\t\t\t\t\t'<patternFill patternType=\"solid\">'+\r\n\t\t\t\t\t\t'<fgColor rgb=\"ffc6efce\" />'+\r\n\t\t\t\t\t\t'<bgColor indexed=\"64\" />'+\r\n\t\t\t\t\t'</patternFill>'+\r\n\t\t\t\t'</fill>'+\r\n\t\t\t\t'<fill>'+\r\n\t\t\t\t\t'<patternFill patternType=\"solid\">'+\r\n\t\t\t\t\t\t'<fgColor rgb=\"ffc6cfef\" />'+\r\n\t\t\t\t\t\t'<bgColor indexed=\"64\" />'+\r\n\t\t\t\t\t'</patternFill>'+\r\n\t\t\t\t'</fill>'+\r\n\t\t\t'</fills>'+\r\n\t\t\t'<borders count=\"2\">'+\r\n\t\t\t\t'<border>'+\r\n\t\t\t\t\t'<left />'+\r\n\t\t\t\t\t'<right />'+\r\n\t\t\t\t\t'<top />'+\r\n\t\t\t\t\t'<bottom />'+\r\n\t\t\t\t\t'<diagonal />'+\r\n\t\t\t\t'</border>'+\r\n\t\t\t\t'<border diagonalUp=\"false\" diagonalDown=\"false\">'+\r\n\t\t\t\t\t'<left style=\"thin\">'+\r\n\t\t\t\t\t\t'<color auto=\"1\" />'+\r\n\t\t\t\t\t'</left>'+\r\n\t\t\t\t\t'<right style=\"thin\">'+\r\n\t\t\t\t\t\t'<color auto=\"1\" />'+\r\n\t\t\t\t\t'</right>'+\r\n\t\t\t\t\t'<top style=\"thin\">'+\r\n\t\t\t\t\t\t'<color auto=\"1\" />'+\r\n\t\t\t\t\t'</top>'+\r\n\t\t\t\t\t'<bottom style=\"thin\">'+\r\n\t\t\t\t\t\t'<color auto=\"1\" />'+\r\n\t\t\t\t\t'</bottom>'+\r\n\t\t\t\t\t'<diagonal />'+\r\n\t\t\t\t'</border>'+\r\n\t\t\t'</borders>'+\r\n\t\t\t'<cellStyleXfs count=\"1\">'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" />'+\r\n\t\t\t'</cellStyleXfs>'+\r\n\t\t\t'<cellXfs count=\"67\">'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"2\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"3\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"4\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"5\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"0\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"2\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"3\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"4\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"1\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"2\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"3\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"4\" fillId=\"5\" borderId=\"1\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment horizontal=\"left\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment horizontal=\"center\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment horizontal=\"right\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment horizontal=\"fill\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment textRotation=\"90\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyAlignment=\"1\">'+\r\n\t\t\t\t\t'<alignment wrapText=\"1\"/>'+\r\n\t\t\t\t'</xf>'+\r\n\t\t\t\t'<xf numFmtId=\"9\"   fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"164\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"165\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"166\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"167\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"168\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"169\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"3\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"4\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"1\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t\t'<xf numFmtId=\"2\" fontId=\"0\" fillId=\"0\" borderId=\"0\" applyFont=\"1\" applyFill=\"1\" applyBorder=\"1\" xfId=\"0\" applyNumberFormat=\"1\"/>'+\r\n\t\t\t'</cellXfs>'+\r\n\t\t\t'<cellStyles count=\"1\">'+\r\n\t\t\t\t'<cellStyle name=\"Normal\" xfId=\"0\" builtinId=\"0\" />'+\r\n\t\t\t'</cellStyles>'+\r\n\t\t\t'<dxfs count=\"0\" />'+\r\n\t\t\t'<tableStyles count=\"0\" defaultTableStyle=\"TableStyleMedium9\" defaultPivotStyle=\"PivotStyleMedium4\" />'+\r\n\t\t'</styleSheet>'\r\n};\r\n// Note we could use 3 `for` loops for the styles, but when gzipped there is\r\n// virtually no difference in size, since the above can be easily compressed\r\n\r\n// Pattern matching for special number formats. Perhaps this should be exposed\r\n// via an API in future?\r\n// Ref: section 3.8.30 - built in formatters in open spreadsheet\r\n//   https://www.ecma-international.org/news/TC45_current_work/Office%20Open%20XML%20Part%204%20-%20Markup%20Language%20Reference.pdf\r\nvar _excelSpecials = [\r\n\t{ match: /^\\-?\\d+\\.\\d%$/,       style: 60, fmt: function (d) { return d/100; } }, // Precent with d.p.\r\n\t{ match: /^\\-?\\d+\\.?\\d*%$/,     style: 56, fmt: function (d) { return d/100; } }, // Percent\r\n\t{ match: /^\\-?\\$[\\d,]+.?\\d*$/,  style: 57 }, // Dollars\r\n\t{ match: /^\\-?£[\\d,]+.?\\d*$/,   style: 58 }, // Pounds\r\n\t{ match: /^\\-?€[\\d,]+.?\\d*$/,   style: 59 }, // Euros\r\n\t{ match: /^\\-?\\d+$/,            style: 65 }, // Numbers without thousand separators\r\n\t{ match: /^\\-?\\d+\\.\\d{2}$/,     style: 66 }, // Numbers 2 d.p. without thousands separators\r\n\t{ match: /^\\([\\d,]+\\)$/,        style: 61, fmt: function (d) { return -1 * d.replace(/[\\(\\)]/g, ''); } },  // Negative numbers indicated by brackets\r\n\t{ match: /^\\([\\d,]+\\.\\d{2}\\)$/, style: 62, fmt: function (d) { return -1 * d.replace(/[\\(\\)]/g, ''); } },  // Negative numbers indicated by brackets - 2d.p.\r\n\t{ match: /^\\-?[\\d,]+$/,         style: 63 }, // Numbers with thousand separators\r\n\t{ match: /^\\-?[\\d,]+\\.\\d{2}$/,  style: 64 }  // Numbers with 2 d.p. and thousands separators\r\n];\r\n\r\n\r\n\r\n/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n * Buttons\r\n */\r\n\r\n//\r\n// Copy to clipboard\r\n//\r\nDataTable.ext.buttons.copyHtml5 = {\r\n\tclassName: 'buttons-copy buttons-html5',\r\n\r\n\ttext: function ( dt ) {\r\n\t\treturn dt.i18n( 'buttons.copy', 'Copy' );\r\n\t},\r\n\r\n\taction: function ( e, dt, button, config ) {\r\n\t\tthis.processing( true );\r\n\r\n\t\tvar that = this;\r\n\t\tvar exportData = _exportData( dt, config );\r\n\t\tvar output = exportData.str;\r\n\t\tvar hiddenDiv = $('<div/>')\r\n\t\t\t.css( {\r\n\t\t\t\theight: 1,\r\n\t\t\t\twidth: 1,\r\n\t\t\t\toverflow: 'hidden',\r\n\t\t\t\tposition: 'fixed',\r\n\t\t\t\ttop: 0,\r\n\t\t\t\tleft: 0\r\n\t\t\t} );\r\n\r\n\t\tif ( config.customize ) {\r\n\t\t\toutput = config.customize( output, config );\r\n\t\t}\r\n\r\n\t\tvar textarea = $('<textarea readonly/>')\r\n\t\t\t.val( output )\r\n\t\t\t.appendTo( hiddenDiv );\r\n\r\n\t\t// For browsers that support the copy execCommand, try to use it\r\n\t\tif ( document.queryCommandSupported('copy') ) {\r\n\t\t\thiddenDiv.appendTo( dt.table().container() );\r\n\t\t\ttextarea[0].focus();\r\n\t\t\ttextarea[0].select();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tvar successful = document.execCommand( 'copy' );\r\n\t\t\t\thiddenDiv.remove();\r\n\r\n\t\t\t\tif (successful) {\r\n\t\t\t\t\tdt.buttons.info(\r\n\t\t\t\t\t\tdt.i18n( 'buttons.copyTitle', 'Copy to clipboard' ),\r\n\t\t\t\t\t\tdt.i18n( 'buttons.copySuccess', {\r\n\t\t\t\t\t\t\t1: 'Copied one row to clipboard',\r\n\t\t\t\t\t\t\t_: 'Copied %d rows to clipboard'\r\n\t\t\t\t\t\t}, exportData.rows ),\r\n\t\t\t\t\t\t2000\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\tthis.processing( false );\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (t) {}\r\n\t\t}\r\n\r\n\t\t// Otherwise we show the text box and instruct the user to use it\r\n\t\tvar message = $('<span>'+dt.i18n( 'buttons.copyKeys',\r\n\t\t\t\t'Press <i>ctrl</i> or <i>\\u2318</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>'+\r\n\t\t\t\t'To cancel, click this message or press escape.' )+'</span>'\r\n\t\t\t)\r\n\t\t\t.append( hiddenDiv );\r\n\r\n\t\tdt.buttons.info( dt.i18n( 'buttons.copyTitle', 'Copy to clipboard' ), message, 0 );\r\n\r\n\t\t// Select the text so when the user activates their system clipboard\r\n\t\t// it will copy that text\r\n\t\ttextarea[0].focus();\r\n\t\ttextarea[0].select();\r\n\r\n\t\t// Event to hide the message when the user is done\r\n\t\tvar container = $(message).closest('.dt-button-info');\r\n\t\tvar close = function () {\r\n\t\t\tcontainer.off( 'click.buttons-copy' );\r\n\t\t\t$(document).off( '.buttons-copy' );\r\n\t\t\tdt.buttons.info( false );\r\n\t\t};\r\n\r\n\t\tcontainer.on( 'click.buttons-copy', close );\r\n\t\t$(document)\r\n\t\t\t.on( 'keydown.buttons-copy', function (e) {\r\n\t\t\t\tif ( e.keyCode === 27 ) { // esc\r\n\t\t\t\t\tclose();\r\n\t\t\t\t\tthat.processing( false );\r\n\t\t\t\t}\r\n\t\t\t} )\r\n\t\t\t.on( 'copy.buttons-copy cut.buttons-copy', function () {\r\n\t\t\t\tclose();\r\n\t\t\t\tthat.processing( false );\r\n\t\t\t} );\r\n\t},\r\n\r\n\texportOptions: {},\r\n\r\n\tfieldSeparator: '\\t',\r\n\r\n\tfieldBoundary: '',\r\n\r\n\theader: true,\r\n\r\n\tfooter: false\r\n};\r\n\r\n//\r\n// CSV export\r\n//\r\nDataTable.ext.buttons.csvHtml5 = {\r\n\tbom: false,\r\n\r\n\tclassName: 'buttons-csv buttons-html5',\r\n\r\n\tavailable: function () {\r\n\t\treturn window.FileReader !== undefined && window.Blob;\r\n\t},\r\n\r\n\ttext: function ( dt ) {\r\n\t\treturn dt.i18n( 'buttons.csv', 'CSV' );\r\n\t},\r\n\r\n\taction: function ( e, dt, button, config ) {\r\n\t\tthis.processing( true );\r\n\r\n\t\t// Set the text\r\n\t\tvar output = _exportData( dt, config ).str;\r\n\t\tvar charset = config.charset;\r\n\r\n\t\tif ( config.customize ) {\r\n\t\t\toutput = config.customize( output, config );\r\n\t\t}\r\n\r\n\t\tif ( charset !== false ) {\r\n\t\t\tif ( ! charset ) {\r\n\t\t\t\tcharset = document.characterSet || document.charset;\r\n\t\t\t}\r\n\r\n\t\t\tif ( charset ) {\r\n\t\t\t\tcharset = ';charset='+charset;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcharset = '';\r\n\t\t}\r\n\r\n\t\tif ( config.bom ) {\r\n\t\t\toutput = '\\ufeff' + output;\r\n\t\t}\r\n\r\n\t\t_saveAs(\r\n\t\t\tnew Blob( [output], {type: 'text/csv'+charset} ),\r\n\t\t\t_filename( config ),\r\n\t\t\ttrue\r\n\t\t);\r\n\r\n\t\tthis.processing( false );\r\n\t},\r\n\r\n\tfilename: '*',\r\n\r\n\textension: '.csv',\r\n\r\n\texportOptions: {},\r\n\r\n\tfieldSeparator: ',',\r\n\r\n\tfieldBoundary: '\"',\r\n\r\n\tescapeChar: '\"',\r\n\r\n\tcharset: null,\r\n\r\n\theader: true,\r\n\r\n\tfooter: false\r\n};\r\n\r\n//\r\n// Excel (xlsx) export\r\n//\r\nDataTable.ext.buttons.excelHtml5 = {\r\n\tclassName: 'buttons-excel buttons-html5',\r\n\r\n\tavailable: function () {\r\n\t\treturn window.FileReader !== undefined && _jsZip() !== undefined && ! _isDuffSafari() && _serialiser;\r\n\t},\r\n\r\n\ttext: function ( dt ) {\r\n\t\treturn dt.i18n( 'buttons.excel', 'Excel' );\r\n\t},\r\n\r\n\taction: function ( e, dt, button, config ) {\r\n\t\tthis.processing( true );\r\n\r\n\t\tvar that = this;\r\n\t\tvar rowPos = 0;\r\n\t\tvar getXml = function ( type ) {\r\n\t\t\tvar str = excelStrings[ type ];\r\n\r\n\t\t\t//str = str.replace( /xmlns:/g, 'xmlns_' ).replace( /mc:/g, 'mc_' );\r\n\r\n\t\t\treturn $.parseXML( str );\r\n\t\t};\r\n\t\tvar rels = getXml('xl/worksheets/sheet1.xml');\r\n\t\tvar relsGet = rels.getElementsByTagName( \"sheetData\" )[0];\r\n\r\n\t\tvar xlsx = {\r\n\t\t\t_rels: {\r\n\t\t\t\t\".rels\": getXml('_rels/.rels')\r\n\t\t\t},\r\n\t\t\txl: {\r\n\t\t\t\t_rels: {\r\n\t\t\t\t\t\"workbook.xml.rels\": getXml('xl/_rels/workbook.xml.rels')\r\n\t\t\t\t},\r\n\t\t\t\t\"workbook.xml\": getXml('xl/workbook.xml'),\r\n\t\t\t\t\"styles.xml\": getXml('xl/styles.xml'),\r\n\t\t\t\t\"worksheets\": {\r\n\t\t\t\t\t\"sheet1.xml\": rels\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\t\"[Content_Types].xml\": getXml('[Content_Types].xml')\r\n\t\t};\r\n\r\n\t\tvar data = dt.buttons.exportData( config.exportOptions );\r\n\t\tvar currentRow, rowNode;\r\n\t\tvar addRow = function ( row ) {\r\n\t\t\tcurrentRow = rowPos+1;\r\n\t\t\trowNode = _createNode( rels, \"row\", { attr: {r:currentRow} } );\r\n\r\n\t\t\tfor ( var i=0, ien=row.length ; i<ien ; i++ ) {\r\n\t\t\t\t// Concat both the Cell Columns as a letter and the Row of the cell.\r\n\t\t\t\tvar cellId = createCellPos(i) + '' + currentRow;\r\n\t\t\t\tvar cell = null;\r\n\r\n\t\t\t\t// For null, undefined of blank cell, continue so it doesn't create the _createNode\r\n\t\t\t\tif ( row[i] === null || row[i] === undefined || row[i] === '' ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\trow[i] = $.trim( row[i] );\r\n\r\n\t\t\t\t// Special number formatting options\r\n\t\t\t\tfor ( var j=0, jen=_excelSpecials.length ; j<jen ; j++ ) {\r\n\t\t\t\t\tvar special = _excelSpecials[j];\r\n\r\n\t\t\t\t\t// TODO Need to provide the ability for the specials to say\r\n\t\t\t\t\t// if they are returning a string, since at the moment it is\r\n\t\t\t\t\t// assumed to be a number\r\n\t\t\t\t\tif ( row[i].match && ! row[i].match(/^0\\d+/) && row[i].match( special.match ) ) {\r\n\t\t\t\t\t\tvar val = row[i].replace(/[^\\d\\.\\-]/g, '');\r\n\r\n\t\t\t\t\t\tif ( special.fmt ) {\r\n\t\t\t\t\t\t\tval = special.fmt( val );\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tcell = _createNode( rels, 'c', {\r\n\t\t\t\t\t\t\tattr: {\r\n\t\t\t\t\t\t\t\tr: cellId,\r\n\t\t\t\t\t\t\t\ts: special.style\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t\t\t_createNode( rels, 'v', { text: val } )\r\n\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t} );\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( ! cell ) {\r\n\t\t\t\t\tif ( typeof row[i] === 'number' || (\r\n\t\t\t\t\t\trow[i].match &&\r\n\t\t\t\t\t\trow[i].match(/^-?\\d+(\\.\\d+)?$/) &&\r\n\t\t\t\t\t\t! row[i].match(/^0\\d+/) )\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\t// Detect numbers - don't match numbers with leading zeros\r\n\t\t\t\t\t\t// or a negative anywhere but the start\r\n\t\t\t\t\t\tcell = _createNode( rels, 'c', {\r\n\t\t\t\t\t\t\tattr: {\r\n\t\t\t\t\t\t\t\tt: 'n',\r\n\t\t\t\t\t\t\t\tr: cellId\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t\t\t_createNode( rels, 'v', { text: row[i] } )\r\n\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// String output - replace non standard characters for text output\r\n\t\t\t\t\t\tvar text = ! row[i].replace ?\r\n\t\t\t\t\t\t\trow[i] :\r\n\t\t\t\t\t\t\trow[i].replace(/[\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x9F]/g, '');\r\n\r\n\t\t\t\t\t\tcell = _createNode( rels, 'c', {\r\n\t\t\t\t\t\t\tattr: {\r\n\t\t\t\t\t\t\t\tt: 'inlineStr',\r\n\t\t\t\t\t\t\t\tr: cellId\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tchildren:{\r\n\t\t\t\t\t\t\t\trow: _createNode( rels, 'is', {\r\n\t\t\t\t\t\t\t\t\tchildren: {\r\n\t\t\t\t\t\t\t\t\t\trow: _createNode( rels, 't', {\r\n\t\t\t\t\t\t\t\t\t\t\ttext: text\r\n\t\t\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\trowNode.appendChild( cell );\r\n\t\t\t}\r\n\r\n\t\t\trelsGet.appendChild(rowNode);\r\n\t\t\trowPos++;\r\n\t\t};\r\n\r\n\t\t$( 'sheets sheet', xlsx.xl['workbook.xml'] ).attr( 'name', _sheetname( config ) );\r\n\r\n\t\tif ( config.customizeData ) {\r\n\t\t\tconfig.customizeData( data );\r\n\t\t}\r\n\r\n\t\tif ( config.header ) {\r\n\t\t\taddRow( data.header, rowPos );\r\n\t\t\t$('row c', rels).attr( 's', '2' ); // bold\r\n\t\t}\r\n\r\n\t\tfor ( var n=0, ie=data.body.length ; n<ie ; n++ ) {\r\n\t\t\taddRow( data.body[n], rowPos );\r\n\t\t}\r\n\r\n\t\tif ( config.footer && data.footer ) {\r\n\t\t\taddRow( data.footer, rowPos);\r\n\t\t\t$('row:last c', rels).attr( 's', '2' ); // bold\r\n\t\t}\r\n\r\n\t\t// Set column widths\r\n\t\tvar cols = _createNode( rels, 'cols' );\r\n\t\t$('worksheet', rels).prepend( cols );\r\n\r\n\t\tfor ( var i=0, ien=data.header.length ; i<ien ; i++ ) {\r\n\t\t\tcols.appendChild( _createNode( rels, 'col', {\r\n\t\t\t\tattr: {\r\n\t\t\t\t\tmin: i+1,\r\n\t\t\t\t\tmax: i+1,\r\n\t\t\t\t\twidth: _excelColWidth( data, i ),\r\n\t\t\t\t\tcustomWidth: 1\r\n\t\t\t\t}\r\n\t\t\t} ) );\r\n\t\t}\r\n\r\n\t\t// Let the developer customise the document if they want to\r\n\t\tif ( config.customize ) {\r\n\t\t\tconfig.customize( xlsx );\r\n\t\t}\r\n\r\n\t\tvar jszip = _jsZip();\r\n\t\tvar zip = new jszip();\r\n\t\tvar zipConfig = {\r\n\t\t\ttype: 'blob',\r\n\t\t\tmimeType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\r\n\t\t};\r\n\r\n\t\t_addToZip( zip, xlsx );\r\n\r\n\t\tif ( zip.generateAsync ) {\r\n\t\t\t// JSZip 3+\r\n\t\t\tzip\r\n\t\t\t\t.generateAsync( zipConfig )\r\n\t\t\t\t.then( function ( blob ) {\r\n\t\t\t\t\t_saveAs( blob, _filename( config ) );\r\n\t\t\t\t\tthat.processing( false );\r\n\t\t\t\t} );\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// JSZip 2.5\r\n\t\t\t_saveAs(\r\n\t\t\t\tzip.generate( zipConfig ),\r\n\t\t\t\t_filename( config )\r\n\t\t\t);\r\n\t\t\tthis.processing( false );\r\n\t\t}\r\n\t},\r\n\r\n\tfilename: '*',\r\n\r\n\textension: '.xlsx',\r\n\r\n\texportOptions: {},\r\n\r\n\theader: true,\r\n\r\n\tfooter: false\r\n};\r\n\r\n//\r\n// PDF export - using pdfMake - http://pdfmake.org\r\n//\r\nDataTable.ext.buttons.pdfHtml5 = {\r\n\tclassName: 'buttons-pdf buttons-html5',\r\n\r\n\tavailable: function () {\r\n\t\treturn window.FileReader !== undefined && _pdfMake();\r\n\t},\r\n\r\n\ttext: function ( dt ) {\r\n\t\treturn dt.i18n( 'buttons.pdf', 'PDF' );\r\n\t},\r\n\r\n\taction: function ( e, dt, button, config ) {\r\n\t\tthis.processing( true );\r\n\r\n\t\tvar that = this;\r\n\t\tvar data = dt.buttons.exportData( config.exportOptions );\r\n\t\tvar rows = [];\r\n\r\n\t\tif ( config.header ) {\r\n\t\t\trows.push( $.map( data.header, function ( d ) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\ttext: typeof d === 'string' ? d : d+'',\r\n\t\t\t\t\tstyle: 'tableHeader'\r\n\t\t\t\t};\r\n\t\t\t} ) );\r\n\t\t}\r\n\r\n\t\tfor ( var i=0, ien=data.body.length ; i<ien ; i++ ) {\r\n\t\t\trows.push( $.map( data.body[i], function ( d ) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\ttext: typeof d === 'string' ? d : d+'',\r\n\t\t\t\t\tstyle: i % 2 ? 'tableBodyEven' : 'tableBodyOdd'\r\n\t\t\t\t};\r\n\t\t\t} ) );\r\n\t\t}\r\n\r\n\t\tif ( config.footer && data.footer) {\r\n\t\t\trows.push( $.map( data.footer, function ( d ) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\ttext: typeof d === 'string' ? d : d+'',\r\n\t\t\t\t\tstyle: 'tableFooter'\r\n\t\t\t\t};\r\n\t\t\t} ) );\r\n\t\t}\r\n\r\n\t\tvar doc = {\r\n\t\t\tpageSize: config.pageSize,\r\n\t\t\tpageOrientation: config.orientation,\r\n\t\t\tcontent: [\r\n\t\t\t\t{\r\n\t\t\t\t\ttable: {\r\n\t\t\t\t\t\theaderRows: 1,\r\n\t\t\t\t\t\tbody: rows\r\n\t\t\t\t\t},\r\n\t\t\t\t\tlayout: 'noBorders'\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\tstyles: {\r\n\t\t\t\ttableHeader: {\r\n\t\t\t\t\tbold: true,\r\n\t\t\t\t\tfontSize: 11,\r\n\t\t\t\t\tcolor: 'white',\r\n\t\t\t\t\tfillColor: '#2d4154',\r\n\t\t\t\t\talignment: 'center'\r\n\t\t\t\t},\r\n\t\t\t\ttableBodyEven: {},\r\n\t\t\t\ttableBodyOdd: {\r\n\t\t\t\t\tfillColor: '#f3f3f3'\r\n\t\t\t\t},\r\n\t\t\t\ttableFooter: {\r\n\t\t\t\t\tbold: true,\r\n\t\t\t\t\tfontSize: 11,\r\n\t\t\t\t\tcolor: 'white',\r\n\t\t\t\t\tfillColor: '#2d4154'\r\n\t\t\t\t},\r\n\t\t\t\ttitle: {\r\n\t\t\t\t\talignment: 'center',\r\n\t\t\t\t\tfontSize: 15\r\n\t\t\t\t},\r\n\t\t\t\tmessage: {}\r\n\t\t\t},\r\n\t\t\tdefaultStyle: {\r\n\t\t\t\tfontSize: 10\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tif ( config.message ) {\r\n\t\t\tdoc.content.unshift( {\r\n\t\t\t\ttext: typeof config.message == 'function' ? config.message(dt, button, config) : config.message,\r\n\t\t\t\tstyle: 'message',\r\n\t\t\t\tmargin: [ 0, 0, 0, 12 ]\r\n\t\t\t} );\r\n\t\t}\r\n\r\n\t\tif ( config.title ) {\r\n\t\t\tdoc.content.unshift( {\r\n\t\t\t\ttext: _title( config, false ),\r\n\t\t\t\tstyle: 'title',\r\n\t\t\t\tmargin: [ 0, 0, 0, 12 ]\r\n\t\t\t} );\r\n\t\t}\r\n\r\n\t\tif ( config.customize ) {\r\n\t\t\tconfig.customize( doc, config );\r\n\t\t}\r\n\r\n\t\tvar pdf = _pdfMake().createPdf( doc );\r\n\r\n\t\tif ( config.download === 'open' && ! _isDuffSafari() ) {\r\n\t\t\tpdf.open();\r\n\t\t\tthis.processing( false );\r\n\t\t}\r\n\t\telse {\r\n\t\t\tpdf.getBuffer( function (buffer) {\r\n\t\t\t\tvar blob = new Blob( [buffer], {type:'application/pdf'} );\r\n\r\n\t\t\t\t_saveAs( blob, _filename( config ) );\r\n\t\t\t\tthat.processing( false );\r\n\t\t\t} );\r\n\t\t}\r\n\t},\r\n\r\n\ttitle: '*',\r\n\r\n\tfilename: '*',\r\n\r\n\textension: '.pdf',\r\n\r\n\texportOptions: {},\r\n\r\n\torientation: 'portrait',\r\n\r\n\tpageSize: 'A4',\r\n\r\n\theader: true,\r\n\r\n\tfooter: false,\r\n\r\n\tmessage: null,\r\n\r\n\tcustomize: null,\r\n\r\n\tdownload: 'download'\r\n};\r\n\r\n\r\nreturn DataTable.Buttons;\r\n}));\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/datatables.net-buttons/js/buttons.html5.js\n// module id = 442\n// module chunks = 2","/*!\r\n * Print button for Buttons and DataTables.\r\n * 2016 SpryMedia Ltd - datatables.net/license\r\n */\r\n\r\n(function( factory ){\r\n\tif ( typeof define === 'function' && define.amd ) {\r\n\t\t// AMD\r\n\t\tdefine( ['jquery', 'datatables.net', 'datatables.net-buttons'], function ( $ ) {\r\n\t\t\treturn factory( $, window, document );\r\n\t\t} );\r\n\t}\r\n\telse if ( typeof exports === 'object' ) {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = function (root, $) {\r\n\t\t\tif ( ! root ) {\r\n\t\t\t\troot = window;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $ || ! $.fn.dataTable ) {\r\n\t\t\t\t$ = require('datatables.net')(root, $).$;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $.fn.dataTable.Buttons ) {\r\n\t\t\t\trequire('datatables.net-buttons')(root, $);\r\n\t\t\t}\r\n\r\n\t\t\treturn factory( $, root, root.document );\r\n\t\t};\r\n\t}\r\n\telse {\r\n\t\t// Browser\r\n\t\tfactory( jQuery, window, document );\r\n\t}\r\n}(function( $, window, document, undefined ) {\r\n'use strict';\r\nvar DataTable = $.fn.dataTable;\r\n\r\n\r\nvar _link = document.createElement( 'a' );\r\n\r\n/**\r\n * Clone link and style tags, taking into account the need to change the source\r\n * path.\r\n *\r\n * @param  {node}     el Element to convert\r\n */\r\nvar _styleToAbs = function( el ) {\r\n\tvar url;\r\n\tvar clone = $(el).clone()[0];\r\n\tvar linkHost;\r\n\r\n\tif ( clone.nodeName.toLowerCase() === 'link' ) {\r\n\t\tclone.href = _relToAbs( clone.href );\r\n\t}\r\n\r\n\treturn clone.outerHTML;\r\n};\r\n\r\n/**\r\n * Convert a URL from a relative to an absolute address so it will work\r\n * correctly in the popup window which has no base URL.\r\n *\r\n * @param  {string} href URL\r\n */\r\nvar _relToAbs = function( href ) {\r\n\t// Assign to a link on the original page so the browser will do all the\r\n\t// hard work of figuring out where the file actually is\r\n\t_link.href = href;\r\n\tvar linkHost = _link.host;\r\n\r\n\t// IE doesn't have a trailing slash on the host\r\n\t// Chrome has it on the pathname\r\n\tif ( linkHost.indexOf('/') === -1 && _link.pathname.indexOf('/') !== 0) {\r\n\t\tlinkHost += '/';\r\n\t}\r\n\r\n\treturn _link.protocol+\"//\"+linkHost+_link.pathname+_link.search;\r\n};\r\n\r\n\r\nDataTable.ext.buttons.print = {\r\n\tclassName: 'buttons-print',\r\n\r\n\ttext: function ( dt ) {\r\n\t\treturn dt.i18n( 'buttons.print', 'Print' );\r\n\t},\r\n\r\n\taction: function ( e, dt, button, config ) {\r\n\t\tvar data = dt.buttons.exportData( config.exportOptions );\r\n\t\tvar addRow = function ( d, tag ) {\r\n\t\t\tvar str = '<tr>';\r\n\r\n\t\t\tfor ( var i=0, ien=d.length ; i<ien ; i++ ) {\r\n\t\t\t\tstr += '<'+tag+'>'+d[i]+'</'+tag+'>';\r\n\t\t\t}\r\n\r\n\t\t\treturn str + '</tr>';\r\n\t\t};\r\n\r\n\t\t// Construct a table for printing\r\n\t\tvar html = '<table class=\"'+dt.table().node().className+'\">';\r\n\r\n\t\tif ( config.header ) {\r\n\t\t\thtml += '<thead>'+ addRow( data.header, 'th' ) +'</thead>';\r\n\t\t}\r\n\r\n\t\thtml += '<tbody>';\r\n\t\tfor ( var i=0, ien=data.body.length ; i<ien ; i++ ) {\r\n\t\t\thtml += addRow( data.body[i], 'td' );\r\n\t\t}\r\n\t\thtml += '</tbody>';\r\n\r\n\t\tif ( config.footer && data.footer ) {\r\n\t\t\thtml += '<tfoot>'+ addRow( data.footer, 'th' ) +'</tfoot>';\r\n\t\t}\r\n\r\n\t\t// Open a new window for the printable table\r\n\t\tvar win = window.open( '', '' );\r\n\t\tvar title = config.title;\r\n\r\n\t\tif ( typeof title === 'function' ) {\r\n\t\t\ttitle = title();\r\n\t\t}\r\n\r\n\t\tif ( title.indexOf( '*' ) !== -1 ) {\r\n\t\t\ttitle= title.replace( '*', $('title').text() );\r\n\t\t}\r\n\r\n\t\twin.document.close();\r\n\r\n\t\t// Inject the title and also a copy of the style and link tags from this\r\n\t\t// document so the table can retain its base styling. Note that we have\r\n\t\t// to use string manipulation as IE won't allow elements to be created\r\n\t\t// in the host document and then appended to the new window.\r\n\t\tvar head = '<title>'+title+'</title>';\r\n\t\t$('style, link').each( function () {\r\n\t\t\thead += _styleToAbs( this );\r\n\t\t} );\r\n\r\n\t\ttry {\r\n\t\t\twin.document.head.innerHTML = head; // Work around for Edge\r\n\t\t}\r\n\t\tcatch (e) {\r\n\t\t\t$(win.document.head).html( head ); // Old IE\r\n\t\t}\r\n\r\n\t\t// Inject the table and other surrounding information\r\n\t\twin.document.body.innerHTML =\r\n\t\t\t'<h1>'+title+'</h1>'+\r\n\t\t\t'<div>'+\r\n\t\t\t\t(typeof config.message === 'function' ?\r\n\t\t\t\t\tconfig.message( dt, button, config ) :\r\n\t\t\t\t\tconfig.message\r\n\t\t\t\t)+\r\n\t\t\t'</div>'+\r\n\t\t\thtml;\r\n\r\n\t\t$(win.document.body).addClass('dt-print-view');\r\n\r\n\t\t$('img', win.document.body).each( function ( i, img ) {\r\n\t\t\timg.setAttribute( 'src', _relToAbs( img.getAttribute('src') ) );\r\n\t\t} );\r\n\r\n\t\tif ( config.customize ) {\r\n\t\t\tconfig.customize( win );\r\n\t\t}\r\n\r\n\t\tsetTimeout( function () {\r\n\t\t\tif ( config.autoPrint ) {\r\n\t\t\t\twin.print(); // blocking - so close will not\r\n\t\t\t\twin.close(); // execute until this is done\r\n\t\t\t}\r\n\t\t}, 250 );\r\n\t},\r\n\r\n\ttitle: '*',\r\n\r\n\tmessage: '',\r\n\r\n\texportOptions: {},\r\n\r\n\theader: true,\r\n\r\n\tfooter: false,\r\n\r\n\tautoPrint: true,\r\n\r\n\tcustomize: null\r\n};\r\n\r\n\r\nreturn DataTable.Buttons;\r\n}));\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/datatables.net-buttons/js/buttons.print.js\n// module id = 443\n// module chunks = 2","/**\r\n*\r\n* jquery.sparkline.js\r\n*\r\n* v2.3.2\r\n* (c) Splunk, Inc\r\n* Contact: Gareth Watts (gareth@splunk.com)\r\n* http://omnipotent.net/jquery.sparkline/\r\n*\r\n* Generates inline sparkline charts from data supplied either to the method\r\n* or inline in HTML\r\n*\r\n* Compatible with Internet Explorer 6.0+ and modern browsers equipped with the canvas tag\r\n* (Firefox 2.0+, Safari, Opera, etc)\r\n*\r\n* License: New BSD License\r\n*\r\n* Copyright (c) 2012, Splunk Inc.\r\n* All rights reserved.\r\n*\r\n* Redistribution and use in source and binary forms, with or without modification,\r\n* are permitted provided that the following conditions are met:\r\n*\r\n*     * Redistributions of source code must retain the above copyright notice,\r\n*       this list of conditions and the following disclaimer.\r\n*     * Redistributions in binary form must reproduce the above copyright notice,\r\n*       this list of conditions and the following disclaimer in the documentation\r\n*       and/or other materials provided with the distribution.\r\n*     * Neither the name of Splunk Inc nor the names of its contributors may\r\n*       be used to endorse or promote products derived from this software without\r\n*       specific prior written permission.\r\n*\r\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY\r\n* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r\n* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT\r\n* SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r\n* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\r\n* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r\n* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\r\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r\n* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n*\r\n*\r\n* Usage:\r\n*  $(selector).sparkline(values, options)\r\n*\r\n* If values is undefined or set to 'html' then the data values are read from the specified tag:\r\n*   <p>Sparkline: <span class=\"sparkline\">1,4,6,6,8,5,3,5</span></p>\r\n*   $('.sparkline').sparkline();\r\n* There must be no spaces in the enclosed data set\r\n*\r\n* Otherwise values must be an array of numbers or null values\r\n*    <p>Sparkline: <span id=\"sparkline1\">This text replaced if the browser is compatible</span></p>\r\n*    $('#sparkline1').sparkline([1,4,6,6,8,5,3,5])\r\n*    $('#sparkline2').sparkline([1,4,6,null,null,5,3,5])\r\n*\r\n* Values can also be specified in an HTML comment, or as a values attribute:\r\n*    <p>Sparkline: <span class=\"sparkline\"><!--1,4,6,6,8,5,3,5 --></span></p>\r\n*    <p>Sparkline: <span class=\"sparkline\" values=\"1,4,6,6,8,5,3,5\"></span></p>\r\n*    $('.sparkline').sparkline();\r\n*\r\n* For line charts, x values can also be specified:\r\n*   <p>Sparkline: <span class=\"sparkline\">1:1,2.7:4,3.4:6,5:6,6:8,8.7:5,9:3,10:5</span></p>\r\n*    $('#sparkline1').sparkline([ [1,1], [2.7,4], [3.4,6], [5,6], [6,8], [8.7,5], [9,3], [10,5] ])\r\n*\r\n* By default, options should be passed in as the second argument to the sparkline function:\r\n*   $('.sparkline').sparkline([1,2,3,4], {type: 'bar'})\r\n*\r\n* Options can also be set by passing them on the tag itself.  This feature is disabled by default though\r\n* as there's a slight performance overhead:\r\n*   $('.sparkline').sparkline([1,2,3,4], {enableTagOptions: true})\r\n*   <p>Sparkline: <span class=\"sparkline\" sparkType=\"bar\" sparkBarColor=\"red\">loading</span></p>\r\n* Prefix all options supplied as tag attribute with \"spark\" (configurable by setting tagOptionsPrefix)\r\n*\r\n* Supported options:\r\n*   lineColor - Color of the line used for the chart\r\n*   fillColor - Color used to fill in the chart - Set to '' or false for a transparent chart\r\n*   width - Width of the chart - Defaults to 3 times the number of values in pixels\r\n*   height - Height of the chart - Defaults to the height of the containing element\r\n*   chartRangeMin - Specify the minimum value to use for the Y range of the chart - Defaults to the minimum value supplied\r\n*   chartRangeMax - Specify the maximum value to use for the Y range of the chart - Defaults to the maximum value supplied\r\n*   chartRangeClip - Clip out of range values to the max/min specified by chartRangeMin and chartRangeMax\r\n*   chartRangeMinX - Specify the minimum value to use for the X range of the chart - Defaults to the minimum value supplied\r\n*   chartRangeMaxX - Specify the maximum value to use for the X range of the chart - Defaults to the maximum value supplied\r\n*   composite - If true then don't erase any existing chart attached to the tag, but draw\r\n*           another chart over the top - Note that width and height are ignored if an\r\n*           existing chart is detected.\r\n*   tagValuesAttribute - Name of tag attribute to check for data values - Defaults to 'values'\r\n*   enableTagOptions - Whether to check tags for sparkline options\r\n*   tagOptionsPrefix - Prefix used for options supplied as tag attributes - Defaults to 'spark'\r\n*   disableHiddenCheck - If set to true, then the plugin will assume that charts will never be drawn into a\r\n*           hidden dom element, avoding a browser reflow\r\n*   disableInteraction - If set to true then all mouseover/click interaction behaviour will be disabled,\r\n*       making the plugin perform much like it did in 1.x\r\n*   disableTooltips - If set to true then tooltips will be disabled - Defaults to false (tooltips enabled)\r\n*   disableHighlight - If set to true then highlighting of selected chart elements on mouseover will be disabled\r\n*       defaults to false (highlights enabled)\r\n*   highlightLighten - Factor to lighten/darken highlighted chart values by - Defaults to 1.4 for a 40% increase\r\n*   tooltipContainer - Specify which DOM element the tooltip should be rendered into - defaults to document.body\r\n*   tooltipClassname - Optional CSS classname to apply to tooltips - If not specified then a default style will be applied\r\n*   tooltipOffsetX - How many pixels away from the mouse pointer to render the tooltip on the X axis\r\n*   tooltipOffsetY - How many pixels away from the mouse pointer to render the tooltip on the r axis\r\n*   tooltipFormatter  - Optional callback that allows you to override the HTML displayed in the tooltip\r\n*       callback is given arguments of (sparkline, options, fields)\r\n*   tooltipChartTitle - If specified then the tooltip uses the string specified by this setting as a title\r\n*   tooltipFormat - A format string or SPFormat object  (or an array thereof for multiple entries)\r\n*       to control the format of the tooltip\r\n*   tooltipPrefix - A string to prepend to each field displayed in a tooltip\r\n*   tooltipSuffix - A string to append to each field displayed in a tooltip\r\n*   tooltipSkipNull - If true then null values will not have a tooltip displayed (defaults to true)\r\n*   tooltipValueLookups - An object or range map to map field values to tooltip strings\r\n*       (eg. to map -1 to \"Lost\", 0 to \"Draw\", and 1 to \"Win\")\r\n*   numberFormatter - Optional callback for formatting numbers in tooltips\r\n*   numberDigitGroupSep - Character to use for group separator in numbers \"1,234\" - Defaults to \",\"\r\n*   numberDecimalMark - Character to use for the decimal point when formatting numbers - Defaults to \".\"\r\n*   numberDigitGroupCount - Number of digits between group separator - Defaults to 3\r\n*\r\n* There are 7 types of sparkline, selected by supplying a \"type\" option of 'line' (default),\r\n* 'bar', 'tristate', 'bullet', 'discrete', 'pie' or 'box'\r\n*    line - Line chart.  Options:\r\n*       spotColor - Set to '' to not end each line in a circular spot\r\n*       minSpotColor - If set, color of spot at minimum value\r\n*       maxSpotColor - If set, color of spot at maximum value\r\n*       spotRadius - Radius in pixels\r\n*       lineWidth - Width of line in pixels\r\n*       normalRangeMin\r\n*       normalRangeMax - If set draws a filled horizontal bar between these two values marking the \"normal\"\r\n*                      or expected range of values\r\n*       normalRangeColor - Color to use for the above bar\r\n*       drawNormalOnTop - Draw the normal range above the chart fill color if true\r\n*       defaultPixelsPerValue - Defaults to 3 pixels of width for each value in the chart\r\n*       highlightSpotColor - The color to use for drawing a highlight spot on mouseover - Set to null to disable\r\n*       highlightLineColor - The color to use for drawing a highlight line on mouseover - Set to null to disable\r\n*       valueSpots - Specify which points to draw spots on, and in which color.  Accepts a range map\r\n*\r\n*   bar - Bar chart.  Options:\r\n*       barColor - Color of bars for postive values\r\n*       negBarColor - Color of bars for negative values\r\n*       zeroColor - Color of bars with zero values\r\n*       nullColor - Color of bars with null values - Defaults to omitting the bar entirely\r\n*       barWidth - Width of bars in pixels\r\n*       colorMap - Optional mappnig of values to colors to override the *BarColor values above\r\n*                  can be an Array of values to control the color of individual bars or a range map\r\n*                  to specify colors for individual ranges of values\r\n*       barSpacing - Gap between bars in pixels\r\n*       zeroAxis - Centers the y-axis around zero if true\r\n*\r\n*   tristate - Charts values of win (>0), lose (<0) or draw (=0)\r\n*       posBarColor - Color of win values\r\n*       negBarColor - Color of lose values\r\n*       zeroBarColor - Color of draw values\r\n*       barWidth - Width of bars in pixels\r\n*       barSpacing - Gap between bars in pixels\r\n*       colorMap - Optional mappnig of values to colors to override the *BarColor values above\r\n*                  can be an Array of values to control the color of individual bars or a range map\r\n*                  to specify colors for individual ranges of values\r\n*\r\n*   discrete - Options:\r\n*       lineHeight - Height of each line in pixels - Defaults to 30% of the graph height\r\n*       thesholdValue - Values less than this value will be drawn using thresholdColor instead of lineColor\r\n*       thresholdColor\r\n*\r\n*   bullet - Values for bullet graphs msut be in the order: target, performance, range1, range2, range3, ...\r\n*       options:\r\n*       targetColor - The color of the vertical target marker\r\n*       targetWidth - The width of the target marker in pixels\r\n*       performanceColor - The color of the performance measure horizontal bar\r\n*       rangeColors - Colors to use for each qualitative range background color\r\n*\r\n*   pie - Pie chart. Options:\r\n*       sliceColors - An array of colors to use for pie slices\r\n*       offset - Angle in degrees to offset the first slice - Try -90 or +90\r\n*       borderWidth - Width of border to draw around the pie chart, in pixels - Defaults to 0 (no border)\r\n*       borderColor - Color to use for the pie chart border - Defaults to #000\r\n*\r\n*   box - Box plot. Options:\r\n*       raw - Set to true to supply pre-computed plot points as values\r\n*             values should be: low_outlier, low_whisker, q1, median, q3, high_whisker, high_outlier\r\n*             When set to false you can supply any number of values and the box plot will\r\n*             be computed for you.  Default is false.\r\n*       showOutliers - Set to true (default) to display outliers as circles\r\n*       outlierIQR - Interquartile range used to determine outliers.  Default 1.5\r\n*       boxLineColor - Outline color of the box\r\n*       boxFillColor - Fill color for the box\r\n*       whiskerColor - Line color used for whiskers\r\n*       outlierLineColor - Outline color of outlier circles\r\n*       outlierFillColor - Fill color of the outlier circles\r\n*       spotRadius - Radius of outlier circles\r\n*       medianColor - Line color of the median line\r\n*       target - Draw a target cross hair at the supplied value (default undefined)\r\n*\r\n*\r\n*\r\n*   Examples:\r\n*   $('#sparkline1').sparkline(myvalues, { lineColor: '#f00', fillColor: false });\r\n*   $('.barsparks').sparkline('html', { type:'bar', height:'40px', barWidth:5 });\r\n*   $('#tristate').sparkline([1,1,-1,1,0,0,-1], { type:'tristate' }):\r\n*   $('#discrete').sparkline([1,3,4,5,5,3,4,5], { type:'discrete' });\r\n*   $('#bullet').sparkline([10,12,12,9,7], { type:'bullet' });\r\n*   $('#pie').sparkline([1,1,2], { type:'pie' });\r\n*/\r\n\r\n/*jslint regexp: true, browser: true, jquery: true, white: true, nomen: false, plusplus: false, maxerr: 500, indent: 4 */\r\n\r\n(function(document, Math, undefined) { // performance/minified-size optimization\r\n(function(factory) {\r\n    if(typeof define === 'function' && define.amd) {\r\n        define(['jquery'], factory);\r\n    } else if (jQuery && !jQuery.fn.sparkline) {\r\n        factory(jQuery);\r\n    }\r\n}\r\n(function($) {\r\n    'use strict';\r\n\r\n    var UNSET_OPTION = {},\r\n        getDefaults, createClass, SPFormat, clipval, quartile, normalizeValue, normalizeValues,\r\n        remove, isNumber, all, sum, addCSS, ensureArray, formatNumber, RangeMap,\r\n        MouseHandler, Tooltip, barHighlightMixin,\r\n        line, bar, tristate, discrete, bullet, pie, box, defaultStyles, initStyles,\r\n        VShape, VCanvas_base, VCanvas_canvas, VCanvas_vml, pending, shapeCount = 0;\r\n\r\n    /**\r\n     * Default configuration settings\r\n     */\r\n    getDefaults = function () {\r\n        return {\r\n            // Settings common to most/all chart types\r\n            common: {\r\n                type: 'line',\r\n                lineColor: '#00f',\r\n                fillColor: '#cdf',\r\n                defaultPixelsPerValue: 3,\r\n                width: 'auto',\r\n                height: 'auto',\r\n                composite: false,\r\n                tagValuesAttribute: 'values',\r\n                tagOptionsPrefix: 'spark',\r\n                enableTagOptions: false,\r\n                enableHighlight: true,\r\n                highlightLighten: 1.4,\r\n                tooltipSkipNull: true,\r\n                tooltipPrefix: '',\r\n                tooltipSuffix: '',\r\n                disableHiddenCheck: false,\r\n                numberFormatter: false,\r\n                numberDigitGroupCount: 3,\r\n                numberDigitGroupSep: ',',\r\n                numberDecimalMark: '.',\r\n                disableTooltips: false,\r\n                disableInteraction: false\r\n            },\r\n            // Defaults for line charts\r\n            line: {\r\n                spotColor: '#f80',\r\n                highlightSpotColor: '#5f5',\r\n                highlightLineColor: '#f22',\r\n                spotRadius: 1.5,\r\n                minSpotColor: '#f80',\r\n                maxSpotColor: '#f80',\r\n                lineWidth: 1,\r\n                normalRangeMin: undefined,\r\n                normalRangeMax: undefined,\r\n                normalRangeColor: '#ccc',\r\n                drawNormalOnTop: false,\r\n                chartRangeMin: undefined,\r\n                chartRangeMax: undefined,\r\n                chartRangeMinX: undefined,\r\n                chartRangeMaxX: undefined,\r\n                tooltipFormat: new SPFormat('<span style=\"color: {{color}}\">&#9679;</span> {{prefix}}{{y}}{{suffix}}')\r\n            },\r\n            // Defaults for bar charts\r\n            bar: {\r\n                barColor: '#3366cc',\r\n                negBarColor: '#f44',\r\n                stackedBarColor: ['#3366cc', '#dc3912', '#ff9900', '#109618', '#66aa00',\r\n                    '#dd4477', '#0099c6', '#990099'],\r\n                zeroColor: undefined,\r\n                nullColor: undefined,\r\n                zeroAxis: true,\r\n                barWidth: 4,\r\n                barSpacing: 1,\r\n                chartRangeMax: undefined,\r\n                chartRangeMin: undefined,\r\n                chartRangeClip: false,\r\n                colorMap: undefined,\r\n                tooltipFormat: new SPFormat('<span style=\"color: {{color}}\">&#9679;</span> {{prefix}}{{value}}{{suffix}}')\r\n            },\r\n            // Defaults for tristate charts\r\n            tristate: {\r\n                barWidth: 4,\r\n                barSpacing: 1,\r\n                posBarColor: '#6f6',\r\n                negBarColor: '#f44',\r\n                zeroBarColor: '#999',\r\n                colorMap: {},\r\n                tooltipFormat: new SPFormat('<span style=\"color: {{color}}\">&#9679;</span> {{value:map}}'),\r\n                tooltipValueLookups: { map: { '-1': 'Loss', '0': 'Draw', '1': 'Win' } }\r\n            },\r\n            // Defaults for discrete charts\r\n            discrete: {\r\n                lineHeight: 'auto',\r\n                thresholdColor: undefined,\r\n                thresholdValue: 0,\r\n                chartRangeMax: undefined,\r\n                chartRangeMin: undefined,\r\n                chartRangeClip: false,\r\n                tooltipFormat: new SPFormat('{{prefix}}{{value}}{{suffix}}')\r\n            },\r\n            // Defaults for bullet charts\r\n            bullet: {\r\n                targetColor: '#f33',\r\n                targetWidth: 3, // width of the target bar in pixels\r\n                performanceColor: '#33f',\r\n                rangeColors: ['#d3dafe', '#a8b6ff', '#7f94ff'],\r\n                base: undefined, // set this to a number to change the base start number\r\n                tooltipFormat: new SPFormat('{{fieldkey:fields}} - {{value}}'),\r\n                tooltipValueLookups: { fields: {r: 'Range', p: 'Performance', t: 'Target'} }\r\n            },\r\n            // Defaults for pie charts\r\n            pie: {\r\n                offset: 0,\r\n                sliceColors: ['#3366cc', '#dc3912', '#ff9900', '#109618', '#66aa00',\r\n                    '#dd4477', '#0099c6', '#990099'],\r\n                borderWidth: 0,\r\n                borderColor: '#000',\r\n                tooltipFormat: new SPFormat('<span style=\"color: {{color}}\">&#9679;</span> {{value}} ({{percent.1}}%)')\r\n            },\r\n            // Defaults for box plots\r\n            box: {\r\n                raw: false,\r\n                boxLineColor: '#000',\r\n                boxFillColor: '#cdf',\r\n                whiskerColor: '#000',\r\n                outlierLineColor: '#333',\r\n                outlierFillColor: '#fff',\r\n                medianColor: '#f00',\r\n                showOutliers: true,\r\n                outlierIQR: 1.5,\r\n                spotRadius: 1.5,\r\n                target: undefined,\r\n                targetColor: '#4a2',\r\n                chartRangeMax: undefined,\r\n                chartRangeMin: undefined,\r\n                tooltipFormat: new SPFormat('{{field:fields}}: {{value}}'),\r\n                tooltipFormatFieldlistKey: 'field',\r\n                tooltipValueLookups: { fields: { lq: 'Lower Quartile', med: 'Median',\r\n                    uq: 'Upper Quartile', lo: 'Left Outlier', ro: 'Right Outlier',\r\n                    lw: 'Left Whisker', rw: 'Right Whisker'} }\r\n            }\r\n        };\r\n    };\r\n\r\n    // You can have tooltips use a css class other than jqstooltip by specifying tooltipClassname\r\n    defaultStyles = '.jqstooltip { ' +\r\n            'position: absolute;' +\r\n            'left: 0px;' +\r\n            'top: 0px;' +\r\n            'visibility: hidden;' +\r\n            'background: rgb(0, 0, 0) transparent;' +\r\n            'background-color: rgba(0,0,0,0.6);' +\r\n            'filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);' +\r\n            '-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)\";' +\r\n            'color: white;' +\r\n            'font: 10px arial, san serif;' +\r\n            'text-align: left;' +\r\n            'white-space: nowrap;' +\r\n            'padding: 5px;' +\r\n            'border: 1px solid white;' +\r\n            'box-sizing: content-box;' +\r\n            'z-index: 10000;' +\r\n            '}' +\r\n            '.jqsfield { ' +\r\n            'color: white;' +\r\n            'font: 10px arial, san serif;' +\r\n            'text-align: left;' +\r\n            '}';\r\n\r\n    /**\r\n     * Utilities\r\n     */\r\n\r\n    createClass = function (/* [baseclass, [mixin, ...]], definition */) {\r\n        var Class, args;\r\n        Class = function () {\r\n            this.init.apply(this, arguments);\r\n        };\r\n        if (arguments.length > 1) {\r\n            if (arguments[0]) {\r\n                Class.prototype = $.extend(new arguments[0](), arguments[arguments.length - 1]);\r\n                Class._super = arguments[0].prototype;\r\n            } else {\r\n                Class.prototype = arguments[arguments.length - 1];\r\n            }\r\n            if (arguments.length > 2) {\r\n                args = Array.prototype.slice.call(arguments, 1, -1);\r\n                args.unshift(Class.prototype);\r\n                $.extend.apply($, args);\r\n            }\r\n        } else {\r\n            Class.prototype = arguments[0];\r\n        }\r\n        Class.prototype.cls = Class;\r\n        return Class;\r\n    };\r\n\r\n    /**\r\n     * Wraps a format string for tooltips\r\n     * {{x}}\r\n     * {{x.2}\r\n     * {{x:months}}\r\n     */\r\n    $.SPFormatClass = SPFormat = createClass({\r\n        fre: /\\{\\{([\\w.]+?)(:(.+?))?\\}\\}/g,\r\n        precre: /(\\w+)\\.(\\d+)/,\r\n\r\n        init: function (format, fclass) {\r\n            this.format = format;\r\n            this.fclass = fclass;\r\n        },\r\n\r\n        render: function (fieldset, lookups, options) {\r\n            var self = this,\r\n                fields = fieldset,\r\n                match, token, lookupkey, fieldvalue, prec;\r\n            return this.format.replace(this.fre, function () {\r\n                var lookup;\r\n                token = arguments[1];\r\n                lookupkey = arguments[3];\r\n                match = self.precre.exec(token);\r\n                if (match) {\r\n                    prec = match[2];\r\n                    token = match[1];\r\n                } else {\r\n                    prec = false;\r\n                }\r\n                fieldvalue = fields[token];\r\n                if (fieldvalue === undefined) {\r\n                    return '';\r\n                }\r\n                if (lookupkey && lookups && lookups[lookupkey]) {\r\n                    lookup = lookups[lookupkey];\r\n                    if (lookup.get) { // RangeMap\r\n                        return lookups[lookupkey].get(fieldvalue) || fieldvalue;\r\n                    } else {\r\n                        return lookups[lookupkey][fieldvalue] || fieldvalue;\r\n                    }\r\n                }\r\n                if (isNumber(fieldvalue)) {\r\n                    if (options.get('numberFormatter')) {\r\n                        fieldvalue = options.get('numberFormatter')(fieldvalue);\r\n                    } else {\r\n                        fieldvalue = formatNumber(fieldvalue, prec,\r\n                            options.get('numberDigitGroupCount'),\r\n                            options.get('numberDigitGroupSep'),\r\n                            options.get('numberDecimalMark'));\r\n                    }\r\n                }\r\n                return fieldvalue;\r\n            });\r\n        }\r\n    });\r\n\r\n    // convience method to avoid needing the new operator\r\n    $.spformat = function(format, fclass) {\r\n        return new SPFormat(format, fclass);\r\n    };\r\n\r\n    clipval = function (val, min, max) {\r\n        if (val < min) {\r\n            return min;\r\n        }\r\n        if (val > max) {\r\n            return max;\r\n        }\r\n        return val;\r\n    };\r\n\r\n    quartile = function (values, q) {\r\n        var vl;\r\n        if (q === 2) {\r\n            vl = Math.floor(values.length / 2);\r\n            return values.length % 2 ? values[vl] : (values[vl-1] + values[vl]) / 2;\r\n        } else {\r\n            if (values.length % 2 ) { // odd\r\n                vl = (values.length * q + q) / 4;\r\n                return vl % 1 ? (values[Math.floor(vl)] + values[Math.floor(vl) - 1]) / 2 : values[vl-1];\r\n            } else { //even\r\n                vl = (values.length * q + 2) / 4;\r\n                return vl % 1 ? (values[Math.floor(vl)] + values[Math.floor(vl) - 1]) / 2 :  values[vl-1];\r\n\r\n            }\r\n        }\r\n    };\r\n\r\n    normalizeValue = function (val) {\r\n        var nf;\r\n        switch (val) {\r\n            case 'undefined':\r\n                val = undefined;\r\n                break;\r\n            case 'null':\r\n                val = null;\r\n                break;\r\n            case 'true':\r\n                val = true;\r\n                break;\r\n            case 'false':\r\n                val = false;\r\n                break;\r\n            default:\r\n                nf = parseFloat(val);\r\n                if (val == nf) {\r\n                    val = nf;\r\n                }\r\n        }\r\n        return val;\r\n    };\r\n\r\n    normalizeValues = function (vals) {\r\n        var i, result = [];\r\n        for (i = vals.length; i--;) {\r\n            result[i] = normalizeValue(vals[i]);\r\n        }\r\n        return result;\r\n    };\r\n\r\n    remove = function (vals, filter) {\r\n        var i, vl, result = [];\r\n        for (i = 0, vl = vals.length; i < vl; i++) {\r\n            if (vals[i] !== filter) {\r\n                result.push(vals[i]);\r\n            }\r\n        }\r\n        return result;\r\n    };\r\n\r\n    isNumber = function (num) {\r\n        return !isNaN(parseFloat(num)) && isFinite(num);\r\n    };\r\n\r\n    formatNumber = function (num, prec, groupsize, groupsep, decsep) {\r\n        var p, i;\r\n        num = (prec === false ? parseFloat(num).toString() : num.toFixed(prec)).split('');\r\n        p = (p = $.inArray('.', num)) < 0 ? num.length : p;\r\n        if (p < num.length) {\r\n            num[p] = decsep;\r\n        }\r\n        for (i = p - groupsize; i > 0; i -= groupsize) {\r\n            num.splice(i, 0, groupsep);\r\n        }\r\n        return num.join('');\r\n    };\r\n\r\n    // determine if all values of an array match a value\r\n    // returns true if the array is empty\r\n    all = function (val, arr, ignoreNull) {\r\n        var i;\r\n        for (i = arr.length; i--; ) {\r\n            if (ignoreNull && arr[i] === null) continue;\r\n            if (arr[i] !== val) {\r\n                return false;\r\n            }\r\n        }\r\n        return true;\r\n    };\r\n\r\n    // sums the numeric values in an array, ignoring other values\r\n    sum = function (vals) {\r\n        var total = 0, i;\r\n        for (i = vals.length; i--;) {\r\n            total += typeof vals[i] === 'number' ? vals[i] : 0;\r\n        }\r\n        return total;\r\n    };\r\n\r\n    ensureArray = function (val) {\r\n        return $.isArray(val) ? val : [val];\r\n    };\r\n\r\n    // http://paulirish.com/2008/bookmarklet-inject-new-css-rules/\r\n    addCSS = function(css) {\r\n        var tag, iefail;\r\n        if (document.createStyleSheet) {\r\n            try {\r\n                document.createStyleSheet().cssText = css;\r\n                return;\r\n            } catch (e) {\r\n                // IE <= 9 maxes out at 31 stylesheets; inject into page instead.\r\n                iefail = true;\r\n            }\r\n        }\r\n        tag = document.createElement('style');\r\n        tag.type = 'text/css';\r\n        document.getElementsByTagName('head')[0].appendChild(tag);\r\n        if (iefail) {\r\n            document.styleSheets[document.styleSheets.length - 1].cssText = css;\r\n        } else {\r\n            tag[(typeof document.body.style.WebkitAppearance == 'string') /* webkit only */ ? 'innerText' : 'innerHTML'] = css;\r\n        }\r\n    };\r\n\r\n    // Provide a cross-browser interface to a few simple drawing primitives\r\n    $.fn.simpledraw = function (width, height, useExisting, interact) {\r\n        var target, mhandler;\r\n        if (useExisting && (target = this.data('_jqs_vcanvas'))) {\r\n            return target;\r\n        }\r\n\r\n        if ($.fn.sparkline.canvas === false) {\r\n            // We've already determined that neither Canvas nor VML are available\r\n            return false;\r\n\r\n        } else if ($.fn.sparkline.canvas === undefined) {\r\n            // No function defined yet -- need to see if we support Canvas or VML\r\n            var el = document.createElement('canvas');\r\n            if (!!(el.getContext && el.getContext('2d'))) {\r\n                // Canvas is available\r\n                $.fn.sparkline.canvas = function(width, height, target, interact) {\r\n                    return new VCanvas_canvas(width, height, target, interact);\r\n                };\r\n            } else if (document.namespaces && !document.namespaces.v) {\r\n                // VML is available\r\n                document.namespaces.add('v', 'urn:schemas-microsoft-com:vml', '#default#VML');\r\n                $.fn.sparkline.canvas = function(width, height, target, interact) {\r\n                    return new VCanvas_vml(width, height, target);\r\n                };\r\n            } else {\r\n                // Neither Canvas nor VML are available\r\n                $.fn.sparkline.canvas = false;\r\n                return false;\r\n            }\r\n        }\r\n\r\n        if (width === undefined) {\r\n            width = $(this).innerWidth();\r\n        }\r\n        if (height === undefined) {\r\n            height = $(this).innerHeight();\r\n        }\r\n\r\n        target = $.fn.sparkline.canvas(width, height, this, interact);\r\n\r\n        mhandler = $(this).data('_jqs_mhandler');\r\n        if (mhandler) {\r\n            mhandler.registerCanvas(target);\r\n        }\r\n        return target;\r\n    };\r\n\r\n    $.fn.cleardraw = function () {\r\n        var target = this.data('_jqs_vcanvas');\r\n        if (target) {\r\n            target.reset();\r\n        }\r\n    };\r\n\r\n    $.RangeMapClass = RangeMap = createClass({\r\n        init: function (map) {\r\n            var key, range, rangelist = [];\r\n            for (key in map) {\r\n                if (map.hasOwnProperty(key) && typeof key === 'string' && key.indexOf(':') > -1) {\r\n                    range = key.split(':');\r\n                    range[0] = range[0].length === 0 ? -Infinity : parseFloat(range[0]);\r\n                    range[1] = range[1].length === 0 ? Infinity : parseFloat(range[1]);\r\n                    range[2] = map[key];\r\n                    rangelist.push(range);\r\n                }\r\n            }\r\n            this.map = map;\r\n            this.rangelist = rangelist || false;\r\n        },\r\n\r\n        get: function (value) {\r\n            var rangelist = this.rangelist,\r\n                i, range, result;\r\n            if ((result = this.map[value]) !== undefined) {\r\n                return result;\r\n            }\r\n            if (rangelist) {\r\n                for (i = rangelist.length; i--;) {\r\n                    range = rangelist[i];\r\n                    if (range[0] <= value && range[1] >= value) {\r\n                        return range[2];\r\n                    }\r\n                }\r\n            }\r\n            return undefined;\r\n        }\r\n    });\r\n\r\n    // Convenience function\r\n    $.range_map = function(map) {\r\n        return new RangeMap(map);\r\n    };\r\n\r\n    MouseHandler = createClass({\r\n        init: function (el, options) {\r\n            var $el = $(el);\r\n            this.$el = $el;\r\n            this.options = options;\r\n            this.currentPageX = 0;\r\n            this.currentPageY = 0;\r\n            this.el = el;\r\n            this.splist = [];\r\n            this.tooltip = null;\r\n            this.over = false;\r\n            this.displayTooltips = !options.get('disableTooltips');\r\n            this.highlightEnabled = !options.get('disableHighlight');\r\n        },\r\n\r\n        registerSparkline: function (sp) {\r\n            this.splist.push(sp);\r\n            if (this.over) {\r\n                this.updateDisplay();\r\n            }\r\n        },\r\n\r\n        registerCanvas: function (canvas) {\r\n            var $canvas = $(canvas.canvas);\r\n            this.canvas = canvas;\r\n            this.$canvas = $canvas;\r\n            $canvas.mouseenter($.proxy(this.mouseenter, this));\r\n            $canvas.mouseleave($.proxy(this.mouseleave, this));\r\n            $canvas.click($.proxy(this.mouseclick, this));\r\n        },\r\n\r\n        reset: function (removeTooltip) {\r\n            this.splist = [];\r\n            if (this.tooltip && removeTooltip) {\r\n                this.tooltip.remove();\r\n                this.tooltip = undefined;\r\n            }\r\n        },\r\n\r\n        mouseclick: function (e) {\r\n            var clickEvent = $.Event('sparklineClick');\r\n            clickEvent.originalEvent = e;\r\n            clickEvent.sparklines = this.splist;\r\n            this.$el.trigger(clickEvent);\r\n        },\r\n\r\n        mouseenter: function (e) {\r\n            $(document.body).unbind('mousemove.jqs');\r\n            $(document.body).bind('mousemove.jqs', $.proxy(this.mousemove, this));\r\n            this.over = true;\r\n            this.currentPageX = e.pageX;\r\n            this.currentPageY = e.pageY;\r\n            this.currentEl = e.target;\r\n            if (!this.tooltip && this.displayTooltips) {\r\n                this.tooltip = new Tooltip(this.options);\r\n                this.tooltip.updatePosition(e.pageX, e.pageY);\r\n            }\r\n            this.updateDisplay();\r\n        },\r\n\r\n        mouseleave: function () {\r\n            $(document.body).unbind('mousemove.jqs');\r\n            var splist = this.splist,\r\n                 spcount = splist.length,\r\n                 needsRefresh = false,\r\n                 sp, i;\r\n            this.over = false;\r\n            this.currentEl = null;\r\n\r\n            if (this.tooltip) {\r\n                this.tooltip.remove();\r\n                this.tooltip = null;\r\n            }\r\n\r\n            for (i = 0; i < spcount; i++) {\r\n                sp = splist[i];\r\n                if (sp.clearRegionHighlight()) {\r\n                    needsRefresh = true;\r\n                }\r\n            }\r\n\r\n            if (needsRefresh) {\r\n                this.canvas.render();\r\n            }\r\n        },\r\n\r\n        mousemove: function (e) {\r\n            this.currentPageX = e.pageX;\r\n            this.currentPageY = e.pageY;\r\n            this.currentEl = e.target;\r\n            if (this.tooltip) {\r\n                this.tooltip.updatePosition(e.pageX, e.pageY);\r\n            }\r\n            this.updateDisplay();\r\n        },\r\n\r\n        updateDisplay: function () {\r\n            var splist = this.splist,\r\n                 spcount = splist.length,\r\n                 needsRefresh = false,\r\n                 offset = this.$canvas.offset(),\r\n                 localX = this.currentPageX - offset.left,\r\n                 localY = this.currentPageY - offset.top,\r\n                 tooltiphtml, sp, i, result, changeEvent;\r\n            if (!this.over) {\r\n                return;\r\n            }\r\n            for (i = 0; i < spcount; i++) {\r\n                sp = splist[i];\r\n                result = sp.setRegionHighlight(this.currentEl, localX, localY);\r\n                if (result) {\r\n                    needsRefresh = true;\r\n                }\r\n            }\r\n            if (needsRefresh) {\r\n                changeEvent = $.Event('sparklineRegionChange');\r\n                changeEvent.sparklines = this.splist;\r\n                this.$el.trigger(changeEvent);\r\n                if (this.tooltip) {\r\n                    tooltiphtml = '';\r\n                    for (i = 0; i < spcount; i++) {\r\n                        sp = splist[i];\r\n                        tooltiphtml += sp.getCurrentRegionTooltip();\r\n                    }\r\n                    this.tooltip.setContent(tooltiphtml);\r\n                }\r\n                if (!this.disableHighlight) {\r\n                    this.canvas.render();\r\n                }\r\n            }\r\n            if (result === null) {\r\n                this.mouseleave();\r\n            }\r\n        }\r\n    });\r\n\r\n\r\n    Tooltip = createClass({\r\n        sizeStyle: 'position: static !important;' +\r\n            'display: block !important;' +\r\n            'visibility: hidden !important;' +\r\n            'float: left !important;',\r\n\r\n        init: function (options) {\r\n            var tooltipClassname = options.get('tooltipClassname', 'jqstooltip'),\r\n                sizetipStyle = this.sizeStyle,\r\n                offset;\r\n            this.container = options.get('tooltipContainer') || document.body;\r\n            this.tooltipOffsetX = options.get('tooltipOffsetX', 10);\r\n            this.tooltipOffsetY = options.get('tooltipOffsetY', 12);\r\n            // remove any previous lingering tooltip\r\n            $('#jqssizetip').remove();\r\n            $('#jqstooltip').remove();\r\n            this.sizetip = $('<div/>', {\r\n                id: 'jqssizetip',\r\n                style: sizetipStyle,\r\n                'class': tooltipClassname\r\n            });\r\n            this.tooltip = $('<div/>', {\r\n                id: 'jqstooltip',\r\n                'class': tooltipClassname\r\n            }).appendTo(this.container);\r\n            // account for the container's location\r\n            offset = this.tooltip.offset();\r\n            this.offsetLeft = offset.left;\r\n            this.offsetTop = offset.top;\r\n            this.hidden = true;\r\n            $(window).unbind('resize.jqs scroll.jqs');\r\n            $(window).bind('resize.jqs scroll.jqs', $.proxy(this.updateWindowDims, this));\r\n            this.updateWindowDims();\r\n        },\r\n\r\n        updateWindowDims: function () {\r\n            this.scrollTop = $(window).scrollTop();\r\n            this.scrollLeft = $(window).scrollLeft();\r\n            this.scrollRight = this.scrollLeft + $(window).width();\r\n            this.updatePosition();\r\n        },\r\n\r\n        getSize: function (content) {\r\n            this.sizetip.html(content).appendTo(this.container);\r\n            this.width = this.sizetip.width() + 1;\r\n            this.height = this.sizetip.height();\r\n            this.sizetip.remove();\r\n        },\r\n\r\n        setContent: function (content) {\r\n            if (!content) {\r\n                this.tooltip.css('visibility', 'hidden');\r\n                this.hidden = true;\r\n                return;\r\n            }\r\n            this.getSize(content);\r\n            this.tooltip.html(content)\r\n                .css({\r\n                    'width': this.width,\r\n                    'height': this.height,\r\n                    'visibility': 'visible'\r\n                });\r\n            if (this.hidden) {\r\n                this.hidden = false;\r\n                this.updatePosition();\r\n            }\r\n        },\r\n\r\n        updatePosition: function (x, y) {\r\n            if (x === undefined) {\r\n                if (this.mousex === undefined) {\r\n                    return;\r\n                }\r\n                x = this.mousex - this.offsetLeft;\r\n                y = this.mousey - this.offsetTop;\r\n\r\n            } else {\r\n                this.mousex = x = x - this.offsetLeft;\r\n                this.mousey = y = y - this.offsetTop;\r\n            }\r\n            if (!this.height || !this.width || this.hidden) {\r\n                return;\r\n            }\r\n\r\n            y -= this.height + this.tooltipOffsetY;\r\n            x += this.tooltipOffsetX;\r\n\r\n            if (y < this.scrollTop) {\r\n                y = this.scrollTop;\r\n            }\r\n            if (x < this.scrollLeft) {\r\n                x = this.scrollLeft;\r\n            } else if (x + this.width > this.scrollRight) {\r\n                x = this.scrollRight - this.width;\r\n            }\r\n\r\n            this.tooltip.css({\r\n                'left': x,\r\n                'top': y\r\n            });\r\n        },\r\n\r\n        remove: function () {\r\n            this.tooltip.remove();\r\n            this.sizetip.remove();\r\n            this.sizetip = this.tooltip = undefined;\r\n            $(window).unbind('resize.jqs scroll.jqs');\r\n        }\r\n    });\r\n\r\n    initStyles = function() {\r\n        addCSS(defaultStyles);\r\n    };\r\n\r\n    $(initStyles);\r\n\r\n    pending = [];\r\n    $.fn.sparkline = function (userValues, userOptions) {\r\n        return this.each(function () {\r\n            var options = new $.fn.sparkline.options(this, userOptions),\r\n                 $this = $(this),\r\n                 render, i;\r\n            render = function () {\r\n                var values, width, height, tmp, mhandler, sp, vals;\r\n                if (userValues === 'html' || userValues === undefined) {\r\n                    vals = this.getAttribute(options.get('tagValuesAttribute'));\r\n                    if (vals === undefined || vals === null) {\r\n                        vals = $this.html();\r\n                    }\r\n                    values = vals.replace(/(^\\s*<!--)|(-->\\s*$)|\\s+/g, '').split(',');\r\n                } else {\r\n                    values = userValues;\r\n                }\r\n\r\n                width = options.get('width') === 'auto' ? values.length * options.get('defaultPixelsPerValue') : options.get('width');\r\n                if (options.get('height') === 'auto') {\r\n                    if (!options.get('composite') || !$.data(this, '_jqs_vcanvas')) {\r\n                        // must be a better way to get the line height\r\n                        tmp = document.createElement('span');\r\n                        tmp.innerHTML = 'a';\r\n                        $this.html(tmp);\r\n                        height = $(tmp).innerHeight() || $(tmp).height();\r\n                        $(tmp).remove();\r\n                        tmp = null;\r\n                    }\r\n                } else {\r\n                    height = options.get('height');\r\n                }\r\n\r\n                if (!options.get('disableInteraction')) {\r\n                    mhandler = $.data(this, '_jqs_mhandler');\r\n                    if (!mhandler) {\r\n                        mhandler = new MouseHandler(this, options);\r\n                        $.data(this, '_jqs_mhandler', mhandler);\r\n                    } else if (!options.get('composite')) {\r\n                        mhandler.reset();\r\n                    }\r\n                } else {\r\n                    mhandler = false;\r\n                }\r\n\r\n                if (options.get('composite') && !$.data(this, '_jqs_vcanvas')) {\r\n                    if (!$.data(this, '_jqs_errnotify')) {\r\n                        alert('Attempted to attach a composite sparkline to an element with no existing sparkline');\r\n                        $.data(this, '_jqs_errnotify', true);\r\n                    }\r\n                    return;\r\n                }\r\n\r\n                sp = new $.fn.sparkline[options.get('type')](this, values, options, width, height);\r\n\r\n                sp.render();\r\n\r\n                if (mhandler) {\r\n                    mhandler.registerSparkline(sp);\r\n                }\r\n            };\r\n            if (($(this).html() && !options.get('disableHiddenCheck') && $(this).is(':hidden')) || !$(this).parents('body').length) {\r\n                if (!options.get('composite') && $.data(this, '_jqs_pending')) {\r\n                    // remove any existing references to the element\r\n                    for (i = pending.length; i; i--) {\r\n                        if (pending[i - 1][0] == this) {\r\n                            pending.splice(i - 1, 1);\r\n                        }\r\n                    }\r\n                }\r\n                pending.push([this, render]);\r\n                $.data(this, '_jqs_pending', true);\r\n            } else {\r\n                render.call(this);\r\n            }\r\n        });\r\n    };\r\n\r\n    $.fn.sparkline.defaults = getDefaults();\r\n\r\n\r\n    $.sparkline_display_visible = function () {\r\n        var el, i, pl;\r\n        var done = [];\r\n        for (i = 0, pl = pending.length; i < pl; i++) {\r\n            el = pending[i][0];\r\n            if ($(el).is(':visible') && !$(el).parents().is(':hidden')) {\r\n                pending[i][1].call(el);\r\n                $.data(pending[i][0], '_jqs_pending', false);\r\n                done.push(i);\r\n            } else if (!$(el).closest('html').length && !$.data(el, '_jqs_pending')) {\r\n                // element has been inserted and removed from the DOM\r\n                // If it was not yet inserted into the dom then the .data request\r\n                // will return true.\r\n                // removing from the dom causes the data to be removed.\r\n                $.data(pending[i][0], '_jqs_pending', false);\r\n                done.push(i);\r\n            }\r\n        }\r\n        for (i = done.length; i; i--) {\r\n            pending.splice(done[i - 1], 1);\r\n        }\r\n    };\r\n\r\n\r\n    /**\r\n     * User option handler\r\n     */\r\n    $.fn.sparkline.options = createClass({\r\n        init: function (tag, userOptions) {\r\n            var extendedOptions, defaults, base, tagOptionType;\r\n            this.userOptions = userOptions = userOptions || {};\r\n            this.tag = tag;\r\n            this.tagValCache = {};\r\n            defaults = $.fn.sparkline.defaults;\r\n            base = defaults.common;\r\n            this.tagOptionsPrefix = userOptions.enableTagOptions && (userOptions.tagOptionsPrefix || base.tagOptionsPrefix);\r\n\r\n            tagOptionType = this.getTagSetting('type');\r\n            if (tagOptionType === UNSET_OPTION) {\r\n                extendedOptions = defaults[userOptions.type || base.type];\r\n            } else {\r\n                extendedOptions = defaults[tagOptionType];\r\n            }\r\n            this.mergedOptions = $.extend({}, base, extendedOptions, userOptions);\r\n        },\r\n\r\n\r\n        getTagSetting: function (key) {\r\n            var prefix = this.tagOptionsPrefix,\r\n                val, i, pairs, keyval;\r\n            if (prefix === false || prefix === undefined) {\r\n                return UNSET_OPTION;\r\n            }\r\n            if (this.tagValCache.hasOwnProperty(key)) {\r\n                val = this.tagValCache.key;\r\n            } else {\r\n                val = this.tag.getAttribute(prefix + key);\r\n                if (val === undefined || val === null) {\r\n                    val = UNSET_OPTION;\r\n                } else if (val.substr(0, 1) === '[') {\r\n                    val = val.substr(1, val.length - 2).split(',');\r\n                    for (i = val.length; i--;) {\r\n                        val[i] = normalizeValue(val[i].replace(/(^\\s*)|(\\s*$)/g, ''));\r\n                    }\r\n                } else if (val.substr(0, 1) === '{') {\r\n                    pairs = val.substr(1, val.length - 2).split(',');\r\n                    val = {};\r\n                    for (i = pairs.length; i--;) {\r\n                        keyval = pairs[i].split(':', 2);\r\n                        val[keyval[0].replace(/(^\\s*)|(\\s*$)/g, '')] = normalizeValue(keyval[1].replace(/(^\\s*)|(\\s*$)/g, ''));\r\n                    }\r\n                } else {\r\n                    val = normalizeValue(val);\r\n                }\r\n                this.tagValCache.key = val;\r\n            }\r\n            return val;\r\n        },\r\n\r\n        get: function (key, defaultval) {\r\n            var tagOption = this.getTagSetting(key),\r\n                result;\r\n            if (tagOption !== UNSET_OPTION) {\r\n                return tagOption;\r\n            }\r\n            return (result = this.mergedOptions[key]) === undefined ? defaultval : result;\r\n        }\r\n    });\r\n\r\n\r\n    $.fn.sparkline._base = createClass({\r\n        disabled: false,\r\n\r\n        init: function (el, values, options, width, height) {\r\n            this.el = el;\r\n            this.$el = $(el);\r\n            this.values = values;\r\n            this.options = options;\r\n            this.width = width;\r\n            this.height = height;\r\n            this.currentRegion = undefined;\r\n        },\r\n\r\n        /**\r\n         * Setup the canvas\r\n         */\r\n        initTarget: function () {\r\n            var interactive = !this.options.get('disableInteraction');\r\n            if (!(this.target = this.$el.simpledraw(this.width, this.height, this.options.get('composite'), interactive))) {\r\n                this.disabled = true;\r\n            } else {\r\n                this.canvasWidth = this.target.pixelWidth;\r\n                this.canvasHeight = this.target.pixelHeight;\r\n            }\r\n        },\r\n\r\n        /**\r\n         * Actually render the chart to the canvas\r\n         */\r\n        render: function () {\r\n            if (this.disabled) {\r\n                this.el.innerHTML = '';\r\n                return false;\r\n            }\r\n            return true;\r\n        },\r\n\r\n        /**\r\n         * Return a region id for a given x/y co-ordinate\r\n         */\r\n        getRegion: function (x, y) {\r\n        },\r\n\r\n        /**\r\n         * Highlight an item based on the moused-over x,y co-ordinate\r\n         */\r\n        setRegionHighlight: function (el, x, y) {\r\n            var currentRegion = this.currentRegion,\r\n                highlightEnabled = !this.options.get('disableHighlight'),\r\n                newRegion;\r\n            if (x > this.canvasWidth || y > this.canvasHeight || x < 0 || y < 0) {\r\n                return null;\r\n            }\r\n            newRegion = this.getRegion(el, x, y);\r\n            if (currentRegion !== newRegion) {\r\n                if (currentRegion !== undefined && highlightEnabled) {\r\n                    this.removeHighlight();\r\n                }\r\n                this.currentRegion = newRegion;\r\n                if (newRegion !== undefined && highlightEnabled) {\r\n                    this.renderHighlight();\r\n                }\r\n                return true;\r\n            }\r\n            return false;\r\n        },\r\n\r\n        /**\r\n         * Reset any currently highlighted item\r\n         */\r\n        clearRegionHighlight: function () {\r\n            if (this.currentRegion !== undefined) {\r\n                this.removeHighlight();\r\n                this.currentRegion = undefined;\r\n                return true;\r\n            }\r\n            return false;\r\n        },\r\n\r\n        renderHighlight: function () {\r\n            this.changeHighlight(true);\r\n        },\r\n\r\n        removeHighlight: function () {\r\n            this.changeHighlight(false);\r\n        },\r\n\r\n        changeHighlight: function (highlight)  {},\r\n\r\n        /**\r\n         * Fetch the HTML to display as a tooltip\r\n         */\r\n        getCurrentRegionTooltip: function () {\r\n            var options = this.options,\r\n                header = '',\r\n                entries = [],\r\n                fields, formats, formatlen, fclass, text, i,\r\n                showFields, showFieldsKey, newFields, fv,\r\n                formatter, format, fieldlen, j;\r\n            if (this.currentRegion === undefined) {\r\n                return '';\r\n            }\r\n            fields = this.getCurrentRegionFields();\r\n            formatter = options.get('tooltipFormatter');\r\n            if (formatter) {\r\n                return formatter(this, options, fields);\r\n            }\r\n            if (options.get('tooltipChartTitle')) {\r\n                header += '<div class=\"jqs jqstitle\">' + options.get('tooltipChartTitle') + '</div>\\n';\r\n            }\r\n            formats = this.options.get('tooltipFormat');\r\n            if (!formats) {\r\n                return '';\r\n            }\r\n            if (!$.isArray(formats)) {\r\n                formats = [formats];\r\n            }\r\n            if (!$.isArray(fields)) {\r\n                fields = [fields];\r\n            }\r\n            showFields = this.options.get('tooltipFormatFieldlist');\r\n            showFieldsKey = this.options.get('tooltipFormatFieldlistKey');\r\n            if (showFields && showFieldsKey) {\r\n                // user-selected ordering of fields\r\n                newFields = [];\r\n                for (i = fields.length; i--;) {\r\n                    fv = fields[i][showFieldsKey];\r\n                    if ((j = $.inArray(fv, showFields)) != -1) {\r\n                        newFields[j] = fields[i];\r\n                    }\r\n                }\r\n                fields = newFields;\r\n            }\r\n            formatlen = formats.length;\r\n            fieldlen = fields.length;\r\n            for (i = 0; i < formatlen; i++) {\r\n                format = formats[i];\r\n                if (typeof format === 'string') {\r\n                    format = new SPFormat(format);\r\n                }\r\n                fclass = format.fclass || 'jqsfield';\r\n                for (j = 0; j < fieldlen; j++) {\r\n                    if (!fields[j].isNull || !options.get('tooltipSkipNull')) {\r\n                        $.extend(fields[j], {\r\n                            prefix: options.get('tooltipPrefix'),\r\n                            suffix: options.get('tooltipSuffix')\r\n                        });\r\n                        text = format.render(fields[j], options.get('tooltipValueLookups'), options);\r\n                        entries.push('<div class=\"' + fclass + '\">' + text + '</div>');\r\n                    }\r\n                }\r\n            }\r\n            if (entries.length) {\r\n                return header + entries.join('\\n');\r\n            }\r\n            return '';\r\n        },\r\n\r\n        getCurrentRegionFields: function () {},\r\n\r\n        calcHighlightColor: function (color, options) {\r\n            var highlightColor = options.get('highlightColor'),\r\n                lighten = options.get('highlightLighten'),\r\n                parse, mult, rgbnew, i;\r\n            if (highlightColor) {\r\n                return highlightColor;\r\n            }\r\n            if (lighten) {\r\n                // extract RGB values\r\n                parse = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(color) || /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);\r\n                if (parse) {\r\n                    rgbnew = [];\r\n                    mult = color.length === 4 ? 16 : 1;\r\n                    for (i = 0; i < 3; i++) {\r\n                        rgbnew[i] = clipval(Math.round(parseInt(parse[i + 1], 16) * mult * lighten), 0, 255);\r\n                    }\r\n                    return 'rgb(' + rgbnew.join(',') + ')';\r\n                }\r\n\r\n            }\r\n            return color;\r\n        }\r\n\r\n    });\r\n\r\n    barHighlightMixin = {\r\n        changeHighlight: function (highlight) {\r\n            var currentRegion = this.currentRegion,\r\n                target = this.target,\r\n                shapeids = this.regionShapes[currentRegion],\r\n                newShapes;\r\n            // will be null if the region value was null\r\n            if (shapeids) {\r\n                newShapes = this.renderRegion(currentRegion, highlight);\r\n                if ($.isArray(newShapes) || $.isArray(shapeids)) {\r\n                    target.replaceWithShapes(shapeids, newShapes);\r\n                    this.regionShapes[currentRegion] = $.map(newShapes, function (newShape) {\r\n                        return newShape.id;\r\n                    });\r\n                } else {\r\n                    target.replaceWithShape(shapeids, newShapes);\r\n                    this.regionShapes[currentRegion] = newShapes.id;\r\n                }\r\n            }\r\n        },\r\n\r\n        render: function () {\r\n            var values = this.values,\r\n                target = this.target,\r\n                regionShapes = this.regionShapes,\r\n                shapes, ids, i, j;\r\n\r\n            if (!this.cls._super.render.call(this)) {\r\n                return;\r\n            }\r\n            for (i = values.length; i--;) {\r\n                shapes = this.renderRegion(i);\r\n                if (shapes) {\r\n                    if ($.isArray(shapes)) {\r\n                        ids = [];\r\n                        for (j = shapes.length; j--;) {\r\n                            shapes[j].append();\r\n                            ids.push(shapes[j].id);\r\n                        }\r\n                        regionShapes[i] = ids;\r\n                    } else {\r\n                        shapes.append();\r\n                        regionShapes[i] = shapes.id; // store just the shapeid\r\n                    }\r\n                } else {\r\n                    // null value\r\n                    regionShapes[i] = null;\r\n                }\r\n            }\r\n            target.render();\r\n        }\r\n    };\r\n\r\n    /**\r\n     * Line charts\r\n     */\r\n    $.fn.sparkline.line = line = createClass($.fn.sparkline._base, {\r\n        type: 'line',\r\n\r\n        init: function (el, values, options, width, height) {\r\n            line._super.init.call(this, el, values, options, width, height);\r\n            this.vertices = [];\r\n            this.regionMap = [];\r\n            this.xvalues = [];\r\n            this.yvalues = [];\r\n            this.yminmax = [];\r\n            this.hightlightSpotId = null;\r\n            this.lastShapeId = null;\r\n            this.initTarget();\r\n        },\r\n\r\n        getRegion: function (el, x, y) {\r\n            var i,\r\n                regionMap = this.regionMap; // maps regions to value positions\r\n            for (i = regionMap.length; i--;) {\r\n                if (regionMap[i] !== null && x >= regionMap[i][0] && x <= regionMap[i][1]) {\r\n                    return regionMap[i][2];\r\n                }\r\n            }\r\n            return undefined;\r\n        },\r\n\r\n        getCurrentRegionFields: function () {\r\n            var currentRegion = this.currentRegion;\r\n            return {\r\n                isNull: this.yvalues[currentRegion] === null,\r\n                x: this.xvalues[currentRegion],\r\n                y: this.yvalues[currentRegion],\r\n                color: this.options.get('lineColor'),\r\n                fillColor: this.options.get('fillColor'),\r\n                offset: currentRegion\r\n            };\r\n        },\r\n\r\n        renderHighlight: function () {\r\n            var currentRegion = this.currentRegion,\r\n                target = this.target,\r\n                vertex = this.vertices[currentRegion],\r\n                options = this.options,\r\n                spotRadius = options.get('spotRadius'),\r\n                highlightSpotColor = options.get('highlightSpotColor'),\r\n                highlightLineColor = options.get('highlightLineColor'),\r\n                highlightSpot, highlightLine;\r\n\r\n            if (!vertex) {\r\n                return;\r\n            }\r\n            if (spotRadius && highlightSpotColor) {\r\n                highlightSpot = target.drawCircle(vertex[0], vertex[1],\r\n                    spotRadius, undefined, highlightSpotColor);\r\n                this.highlightSpotId = highlightSpot.id;\r\n                target.insertAfterShape(this.lastShapeId, highlightSpot);\r\n            }\r\n            if (highlightLineColor) {\r\n                highlightLine = target.drawLine(vertex[0], this.canvasTop, vertex[0],\r\n                    this.canvasTop + this.canvasHeight, highlightLineColor);\r\n                this.highlightLineId = highlightLine.id;\r\n                target.insertAfterShape(this.lastShapeId, highlightLine);\r\n            }\r\n        },\r\n\r\n        removeHighlight: function () {\r\n            var target = this.target;\r\n            if (this.highlightSpotId) {\r\n                target.removeShapeId(this.highlightSpotId);\r\n                this.highlightSpotId = null;\r\n            }\r\n            if (this.highlightLineId) {\r\n                target.removeShapeId(this.highlightLineId);\r\n                this.highlightLineId = null;\r\n            }\r\n        },\r\n\r\n        scanValues: function () {\r\n            var values = this.values,\r\n                valcount = values.length,\r\n                xvalues = this.xvalues,\r\n                yvalues = this.yvalues,\r\n                yminmax = this.yminmax,\r\n                i, val, isStr, isArray, sp;\r\n            for (i = 0; i < valcount; i++) {\r\n                val = values[i];\r\n                isStr = typeof(values[i]) === 'string';\r\n                isArray = typeof(values[i]) === 'object' && values[i] instanceof Array;\r\n                sp = isStr && values[i].split(':');\r\n                if (isStr && sp.length === 2) { // x:y\r\n                    xvalues.push(Number(sp[0]));\r\n                    yvalues.push(Number(sp[1]));\r\n                    yminmax.push(Number(sp[1]));\r\n                } else if (isArray) {\r\n                    xvalues.push(val[0]);\r\n                    yvalues.push(val[1]);\r\n                    yminmax.push(val[1]);\r\n                } else {\r\n                    xvalues.push(i);\r\n                    if (values[i] === null || values[i] === 'null') {\r\n                        yvalues.push(null);\r\n                    } else {\r\n                        yvalues.push(Number(val));\r\n                        yminmax.push(Number(val));\r\n                    }\r\n                }\r\n            }\r\n            if (this.options.get('xvalues')) {\r\n                xvalues = this.options.get('xvalues');\r\n            }\r\n\r\n            this.maxy = this.maxyorg = Math.max.apply(Math, yminmax);\r\n            this.miny = this.minyorg = Math.min.apply(Math, yminmax);\r\n\r\n            this.maxx = Math.max.apply(Math, xvalues);\r\n            this.minx = Math.min.apply(Math, xvalues);\r\n\r\n            this.xvalues = xvalues;\r\n            this.yvalues = yvalues;\r\n            this.yminmax = yminmax;\r\n\r\n        },\r\n\r\n        processRangeOptions: function () {\r\n            var options = this.options,\r\n                normalRangeMin = options.get('normalRangeMin'),\r\n                normalRangeMax = options.get('normalRangeMax');\r\n\r\n            if (normalRangeMin !== undefined) {\r\n                if (normalRangeMin < this.miny) {\r\n                    this.miny = normalRangeMin;\r\n                }\r\n                if (normalRangeMax > this.maxy) {\r\n                    this.maxy = normalRangeMax;\r\n                }\r\n            }\r\n            if (options.get('chartRangeMin') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMin') < this.miny)) {\r\n                this.miny = options.get('chartRangeMin');\r\n            }\r\n            if (options.get('chartRangeMax') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMax') > this.maxy)) {\r\n                this.maxy = options.get('chartRangeMax');\r\n            }\r\n            if (options.get('chartRangeMinX') !== undefined && (options.get('chartRangeClipX') || options.get('chartRangeMinX') < this.minx)) {\r\n                this.minx = options.get('chartRangeMinX');\r\n            }\r\n            if (options.get('chartRangeMaxX') !== undefined && (options.get('chartRangeClipX') || options.get('chartRangeMaxX') > this.maxx)) {\r\n                this.maxx = options.get('chartRangeMaxX');\r\n            }\r\n\r\n        },\r\n\r\n        drawNormalRange: function (canvasLeft, canvasTop, canvasHeight, canvasWidth, rangey) {\r\n            var normalRangeMin = this.options.get('normalRangeMin'),\r\n                normalRangeMax = this.options.get('normalRangeMax'),\r\n                ytop = canvasTop + Math.round(canvasHeight - (canvasHeight * ((normalRangeMax - this.miny) / rangey))),\r\n                height = Math.round((canvasHeight * (normalRangeMax - normalRangeMin)) / rangey);\r\n            this.target.drawRect(canvasLeft, ytop, canvasWidth, height, undefined, this.options.get('normalRangeColor')).append();\r\n        },\r\n\r\n        render: function () {\r\n            var options = this.options,\r\n                target = this.target,\r\n                canvasWidth = this.canvasWidth,\r\n                canvasHeight = this.canvasHeight,\r\n                vertices = this.vertices,\r\n                spotRadius = options.get('spotRadius'),\r\n                regionMap = this.regionMap,\r\n                rangex, rangey, yvallast,\r\n                canvasTop, canvasLeft,\r\n                vertex, path, paths, x, y, xnext, xpos, xposnext,\r\n                last, next, yvalcount, lineShapes, fillShapes, plen,\r\n                valueSpots, hlSpotsEnabled, color, xvalues, yvalues, i;\r\n\r\n            if (!line._super.render.call(this)) {\r\n                return;\r\n            }\r\n\r\n            this.scanValues();\r\n            this.processRangeOptions();\r\n\r\n            xvalues = this.xvalues;\r\n            yvalues = this.yvalues;\r\n\r\n            if (!this.yminmax.length || this.yvalues.length < 2) {\r\n                // empty or all null valuess\r\n                return;\r\n            }\r\n\r\n            canvasTop = canvasLeft = 0;\r\n\r\n            rangex = this.maxx - this.minx === 0 ? 1 : this.maxx - this.minx;\r\n            rangey = this.maxy - this.miny === 0 ? 1 : this.maxy - this.miny;\r\n            yvallast = this.yvalues.length - 1;\r\n\r\n            if (spotRadius && (canvasWidth < (spotRadius * 4) || canvasHeight < (spotRadius * 4))) {\r\n                spotRadius = 0;\r\n            }\r\n            if (spotRadius) {\r\n                // adjust the canvas size as required so that spots will fit\r\n                hlSpotsEnabled = options.get('highlightSpotColor') &&  !options.get('disableInteraction');\r\n                if (hlSpotsEnabled || options.get('minSpotColor') || (options.get('spotColor') && yvalues[yvallast] === this.miny)) {\r\n                    canvasHeight -= Math.ceil(spotRadius);\r\n                }\r\n                if (hlSpotsEnabled || options.get('maxSpotColor') || (options.get('spotColor') && yvalues[yvallast] === this.maxy)) {\r\n                    canvasHeight -= Math.ceil(spotRadius);\r\n                    canvasTop += Math.ceil(spotRadius);\r\n                }\r\n                if (hlSpotsEnabled ||\r\n                     ((options.get('minSpotColor') || options.get('maxSpotColor')) && (yvalues[0] === this.miny || yvalues[0] === this.maxy))) {\r\n                    canvasLeft += Math.ceil(spotRadius);\r\n                    canvasWidth -= Math.ceil(spotRadius);\r\n                }\r\n                if (hlSpotsEnabled || options.get('spotColor') ||\r\n                    (options.get('minSpotColor') || options.get('maxSpotColor') &&\r\n                        (yvalues[yvallast] === this.miny || yvalues[yvallast] === this.maxy))) {\r\n                    canvasWidth -= Math.ceil(spotRadius);\r\n                }\r\n            }\r\n\r\n\r\n            canvasHeight--;\r\n\r\n            if (options.get('normalRangeMin') !== undefined && !options.get('drawNormalOnTop')) {\r\n                this.drawNormalRange(canvasLeft, canvasTop, canvasHeight, canvasWidth, rangey);\r\n            }\r\n\r\n            path = [];\r\n            paths = [path];\r\n            last = next = null;\r\n            yvalcount = yvalues.length;\r\n            for (i = 0; i < yvalcount; i++) {\r\n                x = xvalues[i];\r\n                xnext = xvalues[i + 1];\r\n                y = yvalues[i];\r\n                xpos = canvasLeft + Math.round((x - this.minx) * (canvasWidth / rangex));\r\n                xposnext = i < yvalcount - 1 ? canvasLeft + Math.round((xnext - this.minx) * (canvasWidth / rangex)) : canvasWidth;\r\n                next = xpos + ((xposnext - xpos) / 2);\r\n                regionMap[i] = [last || 0, next, i];\r\n                last = next;\r\n                if (y === null) {\r\n                    if (i) {\r\n                        if (yvalues[i - 1] !== null) {\r\n                            path = [];\r\n                            paths.push(path);\r\n                        }\r\n                        vertices.push(null);\r\n                    }\r\n                } else {\r\n                    if (y < this.miny) {\r\n                        y = this.miny;\r\n                    }\r\n                    if (y > this.maxy) {\r\n                        y = this.maxy;\r\n                    }\r\n                    if (!path.length) {\r\n                        // previous value was null\r\n                        path.push([xpos, canvasTop + canvasHeight]);\r\n                    }\r\n                    vertex = [xpos, canvasTop + Math.round(canvasHeight - (canvasHeight * ((y - this.miny) / rangey)))];\r\n                    path.push(vertex);\r\n                    vertices.push(vertex);\r\n                }\r\n            }\r\n\r\n            lineShapes = [];\r\n            fillShapes = [];\r\n            plen = paths.length;\r\n            for (i = 0; i < plen; i++) {\r\n                path = paths[i];\r\n                if (path.length) {\r\n                    if (options.get('fillColor')) {\r\n                        path.push([path[path.length - 1][0], (canvasTop + canvasHeight)]);\r\n                        fillShapes.push(path.slice(0));\r\n                        path.pop();\r\n                    }\r\n                    // if there's only a single point in this path, then we want to display it\r\n                    // as a vertical line which means we keep path[0]  as is\r\n                    if (path.length > 2) {\r\n                        // else we want the first value\r\n                        path[0] = [path[0][0], path[1][1]];\r\n                    }\r\n                    lineShapes.push(path);\r\n                }\r\n            }\r\n\r\n            // draw the fill first, then optionally the normal range, then the line on top of that\r\n            plen = fillShapes.length;\r\n            for (i = 0; i < plen; i++) {\r\n                target.drawShape(fillShapes[i],\r\n                    options.get('fillColor'), options.get('fillColor')).append();\r\n            }\r\n\r\n            if (options.get('normalRangeMin') !== undefined && options.get('drawNormalOnTop')) {\r\n                this.drawNormalRange(canvasLeft, canvasTop, canvasHeight, canvasWidth, rangey);\r\n            }\r\n\r\n            plen = lineShapes.length;\r\n            for (i = 0; i < plen; i++) {\r\n                target.drawShape(lineShapes[i], options.get('lineColor'), undefined,\r\n                    options.get('lineWidth')).append();\r\n            }\r\n\r\n            if (spotRadius && options.get('valueSpots')) {\r\n                valueSpots = options.get('valueSpots');\r\n                if (valueSpots.get === undefined) {\r\n                    valueSpots = new RangeMap(valueSpots);\r\n                }\r\n                for (i = 0; i < yvalcount; i++) {\r\n                    color = valueSpots.get(yvalues[i]);\r\n                    if (color) {\r\n                        target.drawCircle(canvasLeft + Math.round((xvalues[i] - this.minx) * (canvasWidth / rangex)),\r\n                            canvasTop + Math.round(canvasHeight - (canvasHeight * ((yvalues[i] - this.miny) / rangey))),\r\n                            spotRadius, undefined,\r\n                            color).append();\r\n                    }\r\n                }\r\n\r\n            }\r\n            if (spotRadius && options.get('spotColor') && yvalues[yvallast] !== null) {\r\n                target.drawCircle(canvasLeft + Math.round((xvalues[xvalues.length - 1] - this.minx) * (canvasWidth / rangex)),\r\n                    canvasTop + Math.round(canvasHeight - (canvasHeight * ((yvalues[yvallast] - this.miny) / rangey))),\r\n                    spotRadius, undefined,\r\n                    options.get('spotColor')).append();\r\n            }\r\n            if (this.maxy !== this.minyorg) {\r\n                if (spotRadius && options.get('minSpotColor')) {\r\n                    x = xvalues[$.inArray(this.minyorg, yvalues)];\r\n                    target.drawCircle(canvasLeft + Math.round((x - this.minx) * (canvasWidth / rangex)),\r\n                        canvasTop + Math.round(canvasHeight - (canvasHeight * ((this.minyorg - this.miny) / rangey))),\r\n                        spotRadius, undefined,\r\n                        options.get('minSpotColor')).append();\r\n                }\r\n                if (spotRadius && options.get('maxSpotColor')) {\r\n                    x = xvalues[$.inArray(this.maxyorg, yvalues)];\r\n                    target.drawCircle(canvasLeft + Math.round((x - this.minx) * (canvasWidth / rangex)),\r\n                        canvasTop + Math.round(canvasHeight - (canvasHeight * ((this.maxyorg - this.miny) / rangey))),\r\n                        spotRadius, undefined,\r\n                        options.get('maxSpotColor')).append();\r\n                }\r\n            }\r\n\r\n            this.lastShapeId = target.getLastShapeId();\r\n            this.canvasTop = canvasTop;\r\n            target.render();\r\n        }\r\n    });\r\n\r\n    /**\r\n     * Bar charts\r\n     */\r\n    $.fn.sparkline.bar = bar = createClass($.fn.sparkline._base, barHighlightMixin, {\r\n        type: 'bar',\r\n\r\n        init: function (el, values, options, width, height) {\r\n            var barWidth = parseInt(options.get('barWidth'), 10),\r\n                barSpacing = parseInt(options.get('barSpacing'), 10),\r\n                chartRangeMin = options.get('chartRangeMin'),\r\n                chartRangeMax = options.get('chartRangeMax'),\r\n                chartRangeClip = options.get('chartRangeClip'),\r\n                stackMin = Infinity,\r\n                stackMax = -Infinity,\r\n                isStackString, groupMin, groupMax, stackRanges,\r\n                numValues, i, vlen, range, zeroAxis, xaxisOffset, min, max, clipMin, clipMax,\r\n                stacked, vlist, j, slen, svals, val, yoffset, yMaxCalc, canvasHeightEf;\r\n            bar._super.init.call(this, el, values, options, width, height);\r\n\r\n            // scan values to determine whether to stack bars\r\n            for (i = 0, vlen = values.length; i < vlen; i++) {\r\n                val = values[i];\r\n                isStackString = typeof(val) === 'string' && val.indexOf(':') > -1;\r\n                if (isStackString || $.isArray(val)) {\r\n                    stacked = true;\r\n                    if (isStackString) {\r\n                        val = values[i] = normalizeValues(val.split(':'));\r\n                    }\r\n                    val = remove(val, null); // min/max will treat null as zero\r\n                    groupMin = Math.min.apply(Math, val);\r\n                    groupMax = Math.max.apply(Math, val);\r\n                    if (groupMin < stackMin) {\r\n                        stackMin = groupMin;\r\n                    }\r\n                    if (groupMax > stackMax) {\r\n                        stackMax = groupMax;\r\n                    }\r\n                }\r\n            }\r\n\r\n            this.stacked = stacked;\r\n            this.regionShapes = {};\r\n            this.barWidth = barWidth;\r\n            this.barSpacing = barSpacing;\r\n            this.totalBarWidth = barWidth + barSpacing;\r\n            this.width = width = (values.length * barWidth) + ((values.length - 1) * barSpacing);\r\n\r\n            this.initTarget();\r\n\r\n            if (chartRangeClip) {\r\n                clipMin = chartRangeMin === undefined ? -Infinity : chartRangeMin;\r\n                clipMax = chartRangeMax === undefined ? Infinity : chartRangeMax;\r\n            }\r\n\r\n            numValues = [];\r\n            stackRanges = stacked ? [] : numValues;\r\n            var stackTotals = [];\r\n            var stackRangesNeg = [];\r\n            for (i = 0, vlen = values.length; i < vlen; i++) {\r\n                if (stacked) {\r\n                    vlist = values[i];\r\n                    values[i] = svals = [];\r\n                    stackTotals[i] = 0;\r\n                    stackRanges[i] = stackRangesNeg[i] = 0;\r\n                    for (j = 0, slen = vlist.length; j < slen; j++) {\r\n                        val = svals[j] = chartRangeClip ? clipval(vlist[j], clipMin, clipMax) : vlist[j];\r\n                        if (val !== null) {\r\n                            if (val > 0) {\r\n                                stackTotals[i] += val;\r\n                            }\r\n                            if (stackMin < 0 && stackMax > 0) {\r\n                                if (val < 0) {\r\n                                    stackRangesNeg[i] += Math.abs(val);\r\n                                } else {\r\n                                    stackRanges[i] += val;\r\n                                }\r\n                            } else {\r\n                                stackRanges[i] += Math.abs(val - (val < 0 ? stackMax : stackMin));\r\n                            }\r\n                            numValues.push(val);\r\n                        }\r\n                    }\r\n                } else {\r\n                    val = chartRangeClip ? clipval(values[i], clipMin, clipMax) : values[i];\r\n                    val = values[i] = normalizeValue(val);\r\n                    if (val !== null) {\r\n                        numValues.push(val);\r\n                    }\r\n                }\r\n            }\r\n            this.max = max = Math.max.apply(Math, numValues);\r\n            this.min = min = Math.min.apply(Math, numValues);\r\n            this.stackMax = stackMax = stacked ? Math.max.apply(Math, stackTotals) : max;\r\n            this.stackMin = stackMin = stacked ? Math.min.apply(Math, numValues) : min;\r\n\r\n            if (options.get('chartRangeMin') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMin') < min)) {\r\n                min = options.get('chartRangeMin');\r\n            }\r\n            if (options.get('chartRangeMax') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMax') > max)) {\r\n                max = options.get('chartRangeMax');\r\n            }\r\n\r\n            this.zeroAxis = zeroAxis = options.get('zeroAxis', true);\r\n            if (min <= 0 && max >= 0 && zeroAxis) {\r\n                xaxisOffset = 0;\r\n            } else if (zeroAxis == false) {\r\n                xaxisOffset = min;\r\n            } else if (min > 0) {\r\n                xaxisOffset = min;\r\n            } else {\r\n                xaxisOffset = max;\r\n            }\r\n            this.xaxisOffset = xaxisOffset;\r\n\r\n            range = stacked ? (Math.max.apply(Math, stackRanges) + Math.max.apply(Math, stackRangesNeg)) : max - min;\r\n\r\n            // as we plot zero/min values a single pixel line, we add a pixel to all other\r\n            // values - Reduce the effective canvas size to suit\r\n            this.canvasHeightEf = (zeroAxis && min < 0) ? this.canvasHeight - 2 : this.canvasHeight - 1;\r\n\r\n            if (min < xaxisOffset) {\r\n                yMaxCalc = (stacked && max >= 0) ? stackMax : max;\r\n                yoffset = (yMaxCalc - xaxisOffset) / range * this.canvasHeight;\r\n                if (yoffset !== Math.ceil(yoffset)) {\r\n                    this.canvasHeightEf -= 2;\r\n                    yoffset = Math.ceil(yoffset);\r\n                }\r\n            } else {\r\n                yoffset = this.canvasHeight;\r\n            }\r\n            this.yoffset = yoffset;\r\n\r\n            if ($.isArray(options.get('colorMap'))) {\r\n                this.colorMapByIndex = options.get('colorMap');\r\n                this.colorMapByValue = null;\r\n            } else {\r\n                this.colorMapByIndex = null;\r\n                this.colorMapByValue = options.get('colorMap');\r\n                if (this.colorMapByValue && this.colorMapByValue.get === undefined) {\r\n                    this.colorMapByValue = new RangeMap(this.colorMapByValue);\r\n                }\r\n            }\r\n\r\n            this.range = range;\r\n        },\r\n\r\n        getRegion: function (el, x, y) {\r\n            var result = Math.floor(x / this.totalBarWidth);\r\n            return (result < 0 || result >= this.values.length) ? undefined : result;\r\n        },\r\n\r\n        getCurrentRegionFields: function () {\r\n            var currentRegion = this.currentRegion,\r\n                values = ensureArray(this.values[currentRegion]),\r\n                result = [],\r\n                value, i;\r\n            for (i = values.length; i--;) {\r\n                value = values[i];\r\n                result.push({\r\n                    isNull: value === null,\r\n                    value: value,\r\n                    color: this.calcColor(i, value, currentRegion),\r\n                    offset: currentRegion\r\n                });\r\n            }\r\n            return result;\r\n        },\r\n\r\n        calcColor: function (stacknum, value, valuenum) {\r\n            var colorMapByIndex = this.colorMapByIndex,\r\n                colorMapByValue = this.colorMapByValue,\r\n                options = this.options,\r\n                color, newColor;\r\n            if (this.stacked) {\r\n                color = options.get('stackedBarColor');\r\n            } else {\r\n                color = (value < 0) ? options.get('negBarColor') : options.get('barColor');\r\n            }\r\n            if (value === 0 && options.get('zeroColor') !== undefined) {\r\n                color = options.get('zeroColor');\r\n            }\r\n            if (colorMapByValue && (newColor = colorMapByValue.get(value))) {\r\n                color = newColor;\r\n            } else if (colorMapByIndex && colorMapByIndex.length > valuenum) {\r\n                color = colorMapByIndex[valuenum];\r\n            }\r\n            return $.isArray(color) ? color[stacknum % color.length] : color;\r\n        },\r\n\r\n        /**\r\n         * Render bar(s) for a region\r\n         */\r\n        renderRegion: function (valuenum, highlight) {\r\n            var vals = this.values[valuenum],\r\n                options = this.options,\r\n                xaxisOffset = this.xaxisOffset,\r\n                result = [],\r\n                range = this.range,\r\n                stacked = this.stacked,\r\n                target = this.target,\r\n                x = valuenum * this.totalBarWidth,\r\n                canvasHeightEf = this.canvasHeightEf,\r\n                yoffset = this.yoffset,\r\n                y, height, color, isNull, yoffsetNeg, i, valcount, val, minPlotted, allMin;\r\n\r\n            vals = $.isArray(vals) ? vals : [vals];\r\n            valcount = vals.length;\r\n            val = vals[0];\r\n            isNull = all(null, vals);\r\n            allMin = all(xaxisOffset, vals, true);\r\n\r\n            if (isNull) {\r\n                if (options.get('nullColor')) {\r\n                    color = highlight ? options.get('nullColor') : this.calcHighlightColor(options.get('nullColor'), options);\r\n                    y = (yoffset > 0) ? yoffset - 1 : yoffset;\r\n                    return target.drawRect(x, y, this.barWidth - 1, 0, color, color);\r\n                } else {\r\n                    return undefined;\r\n                }\r\n            }\r\n            yoffsetNeg = yoffset;\r\n            for (i = 0; i < valcount; i++) {\r\n                val = vals[i];\r\n\r\n                if (stacked && val === xaxisOffset) {\r\n                    if (!allMin || minPlotted) {\r\n                        continue;\r\n                    }\r\n                    minPlotted = true;\r\n                }\r\n\r\n                if (range > 0) {\r\n                    height = Math.floor(canvasHeightEf * ((Math.abs(val - xaxisOffset) / range))) + 1;\r\n                } else {\r\n                    height = 1;\r\n                }\r\n                if (val < xaxisOffset || (val === xaxisOffset && yoffset === 0)) {\r\n                    y = yoffsetNeg;\r\n                    yoffsetNeg += height;\r\n                } else {\r\n                    y = yoffset - height;\r\n                    yoffset -= height;\r\n                }\r\n                color = this.calcColor(i, val, valuenum);\r\n                if (highlight) {\r\n                    color = this.calcHighlightColor(color, options);\r\n                }\r\n                result.push(target.drawRect(x, y, this.barWidth - 1, height - 1, color, color));\r\n            }\r\n            if (result.length === 1) {\r\n                return result[0];\r\n            }\r\n            return result;\r\n        }\r\n    });\r\n\r\n    /**\r\n     * Tristate charts\r\n     */\r\n    $.fn.sparkline.tristate = tristate = createClass($.fn.sparkline._base, barHighlightMixin, {\r\n        type: 'tristate',\r\n\r\n        init: function (el, values, options, width, height) {\r\n            var barWidth = parseInt(options.get('barWidth'), 10),\r\n                barSpacing = parseInt(options.get('barSpacing'), 10);\r\n            tristate._super.init.call(this, el, values, options, width, height);\r\n\r\n            this.regionShapes = {};\r\n            this.barWidth = barWidth;\r\n            this.barSpacing = barSpacing;\r\n            this.totalBarWidth = barWidth + barSpacing;\r\n            this.values = $.map(values, Number);\r\n            this.width = width = (values.length * barWidth) + ((values.length - 1) * barSpacing);\r\n\r\n            if ($.isArray(options.get('colorMap'))) {\r\n                this.colorMapByIndex = options.get('colorMap');\r\n                this.colorMapByValue = null;\r\n            } else {\r\n                this.colorMapByIndex = null;\r\n                this.colorMapByValue = options.get('colorMap');\r\n                if (this.colorMapByValue && this.colorMapByValue.get === undefined) {\r\n                    this.colorMapByValue = new RangeMap(this.colorMapByValue);\r\n                }\r\n            }\r\n            this.initTarget();\r\n        },\r\n\r\n        getRegion: function (el, x, y) {\r\n            return Math.floor(x / this.totalBarWidth);\r\n        },\r\n\r\n        getCurrentRegionFields: function () {\r\n            var currentRegion = this.currentRegion;\r\n            return {\r\n                isNull: this.values[currentRegion] === undefined,\r\n                value: this.values[currentRegion],\r\n                color: this.calcColor(this.values[currentRegion], currentRegion),\r\n                offset: currentRegion\r\n            };\r\n        },\r\n\r\n        calcColor: function (value, valuenum) {\r\n            var values = this.values,\r\n                options = this.options,\r\n                colorMapByIndex = this.colorMapByIndex,\r\n                colorMapByValue = this.colorMapByValue,\r\n                color, newColor;\r\n\r\n            if (colorMapByValue && (newColor = colorMapByValue.get(value))) {\r\n                color = newColor;\r\n            } else if (colorMapByIndex && colorMapByIndex.length > valuenum) {\r\n                color = colorMapByIndex[valuenum];\r\n            } else if (values[valuenum] < 0) {\r\n                color = options.get('negBarColor');\r\n            } else if (values[valuenum] > 0) {\r\n                color = options.get('posBarColor');\r\n            } else {\r\n                color = options.get('zeroBarColor');\r\n            }\r\n            return color;\r\n        },\r\n\r\n        renderRegion: function (valuenum, highlight) {\r\n            var values = this.values,\r\n                options = this.options,\r\n                target = this.target,\r\n                canvasHeight, height, halfHeight,\r\n                x, y, color;\r\n\r\n            canvasHeight = target.pixelHeight;\r\n            halfHeight = Math.round(canvasHeight / 2);\r\n\r\n            x = valuenum * this.totalBarWidth;\r\n            if (values[valuenum] < 0) {\r\n                y = halfHeight;\r\n                height = halfHeight - 1;\r\n            } else if (values[valuenum] > 0) {\r\n                y = 0;\r\n                height = halfHeight - 1;\r\n            } else {\r\n                y = halfHeight - 1;\r\n                height = 2;\r\n            }\r\n            color = this.calcColor(values[valuenum], valuenum);\r\n            if (color === null) {\r\n                return;\r\n            }\r\n            if (highlight) {\r\n                color = this.calcHighlightColor(color, options);\r\n            }\r\n            return target.drawRect(x, y, this.barWidth - 1, height - 1, color, color);\r\n        }\r\n    });\r\n\r\n    /**\r\n     * Discrete charts\r\n     */\r\n    $.fn.sparkline.discrete = discrete = createClass($.fn.sparkline._base, barHighlightMixin, {\r\n        type: 'discrete',\r\n\r\n        init: function (el, values, options, width, height) {\r\n            discrete._super.init.call(this, el, values, options, width, height);\r\n\r\n            this.regionShapes = {};\r\n            this.values = values = $.map(values, Number);\r\n            this.min = Math.min.apply(Math, values);\r\n            this.max = Math.max.apply(Math, values);\r\n            this.range = this.max - this.min;\r\n            this.width = width = options.get('width') === 'auto' ? values.length * 2 : this.width;\r\n            this.interval = Math.floor(width / values.length);\r\n            this.itemWidth = width / values.length;\r\n            if (options.get('chartRangeMin') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMin') < this.min)) {\r\n                this.min = options.get('chartRangeMin');\r\n            }\r\n            if (options.get('chartRangeMax') !== undefined && (options.get('chartRangeClip') || options.get('chartRangeMax') > this.max)) {\r\n                this.max = options.get('chartRangeMax');\r\n            }\r\n            this.initTarget();\r\n            if (this.target) {\r\n                this.lineHeight = options.get('lineHeight') === 'auto' ? Math.round(this.canvasHeight * 0.3) : options.get('lineHeight');\r\n            }\r\n        },\r\n\r\n        getRegion: function (el, x, y) {\r\n            return Math.floor(x / this.itemWidth);\r\n        },\r\n\r\n        getCurrentRegionFields: function () {\r\n            var currentRegion = this.currentRegion;\r\n            return {\r\n                isNull: this.values[currentRegion] === undefined,\r\n                value: this.values[currentRegion],\r\n                offset: currentRegion\r\n            };\r\n        },\r\n\r\n        renderRegion: function (valuenum, highlight) {\r\n            var values = this.values,\r\n                options = this.options,\r\n                min = this.min,\r\n                max = this.max,\r\n                range = this.range,\r\n                interval = this.interval,\r\n                target = this.target,\r\n                canvasHeight = this.canvasHeight,\r\n                lineHeight = this.lineHeight,\r\n                pheight = canvasHeight - lineHeight,\r\n                ytop, val, color, x;\r\n\r\n            val = clipval(values[valuenum], min, max);\r\n            x = valuenum * interval;\r\n            ytop = Math.round(pheight - pheight * ((val - min) / range));\r\n            color = (options.get('thresholdColor') && val < options.get('thresholdValue')) ? options.get('thresholdColor') : options.get('lineColor');\r\n            if (highlight) {\r\n                color = this.calcHighlightColor(color, options);\r\n            }\r\n            return target.drawLine(x, ytop, x, ytop + lineHeight, color);\r\n        }\r\n    });\r\n\r\n    /**\r\n     * Bullet charts\r\n     */\r\n    $.fn.sparkline.bullet = bullet = createClass($.fn.sparkline._base, {\r\n        type: 'bullet',\r\n\r\n        init: function (el, values, options, width, height) {\r\n            var min, max, vals;\r\n            bullet._super.init.call(this, el, values, options, width, height);\r\n\r\n            // values: target, performance, range1, range2, range3\r\n            this.values = values = normalizeValues(values);\r\n            // target or performance could be null\r\n            vals = values.slice();\r\n            vals[0] = vals[0] === null ? vals[2] : vals[0];\r\n            vals[1] = values[1] === null ? vals[2] : vals[1];\r\n            min = Math.min.apply(Math, values);\r\n            max = Math.max.apply(Math, values);\r\n            if (options.get('base') === undefined) {\r\n                min = min < 0 ? min : 0;\r\n            } else {\r\n                min = options.get('base');\r\n            }\r\n            this.min = min;\r\n            this.max = max;\r\n            this.range = max - min;\r\n            this.shapes = {};\r\n            this.valueShapes = {};\r\n            this.regiondata = {};\r\n            this.width = width = options.get('width') === 'auto' ? '4.0em' : width;\r\n            this.target = this.$el.simpledraw(width, height, options.get('composite'));\r\n            if (!values.length) {\r\n                this.disabled = true;\r\n            }\r\n            this.initTarget();\r\n        },\r\n\r\n        getRegion: function (el, x, y) {\r\n            var shapeid = this.target.getShapeAt(el, x, y);\r\n            return (shapeid !== undefined && this.shapes[shapeid] !== undefined) ? this.shapes[shapeid] : undefined;\r\n        },\r\n\r\n        getCurrentRegionFields: function () {\r\n            var currentRegion = this.currentRegion;\r\n            return {\r\n                fieldkey: currentRegion.substr(0, 1),\r\n                value: this.values[currentRegion.substr(1)],\r\n                region: currentRegion\r\n            };\r\n        },\r\n\r\n        changeHighlight: function (highlight) {\r\n            var currentRegion = this.currentRegion,\r\n                shapeid = this.valueShapes[currentRegion],\r\n                shape;\r\n            delete this.shapes[shapeid];\r\n            switch (currentRegion.substr(0, 1)) {\r\n                case 'r':\r\n                    shape = this.renderRange(currentRegion.substr(1), highlight);\r\n                    break;\r\n                case 'p':\r\n                    shape = this.renderPerformance(highlight);\r\n                    break;\r\n                case 't':\r\n                    shape = this.renderTarget(highlight);\r\n                    break;\r\n            }\r\n            this.valueShapes[currentRegion] = shape.id;\r\n            this.shapes[shape.id] = currentRegion;\r\n            this.target.replaceWithShape(shapeid, shape);\r\n        },\r\n\r\n        renderRange: function (rn, highlight) {\r\n            var rangeval = this.values[rn],\r\n                rangewidth = Math.round(this.canvasWidth * ((rangeval - this.min) / this.range)),\r\n                color = this.options.get('rangeColors')[rn - 2];\r\n            if (highlight) {\r\n                color = this.calcHighlightColor(color, this.options);\r\n            }\r\n            return this.target.drawRect(0, 0, rangewidth - 1, this.canvasHeight - 1, color, color);\r\n        },\r\n\r\n        renderPerformance: function (highlight) {\r\n            var perfval = this.values[1],\r\n                perfwidth = Math.round(this.canvasWidth * ((perfval - this.min) / this.range)),\r\n                color = this.options.get('performanceColor');\r\n            if (highlight) {\r\n                color = this.calcHighlightColor(color, this.options);\r\n            }\r\n            return this.target.drawRect(0, Math.round(this.canvasHeight * 0.3), perfwidth - 1,\r\n                Math.round(this.canvasHeight * 0.4) - 1, color, color);\r\n        },\r\n\r\n        renderTarget: function (highlight) {\r\n            var targetval = this.values[0],\r\n                x = Math.round(this.canvasWidth * ((targetval - this.min) / this.range) - (this.options.get('targetWidth') / 2)),\r\n                targettop = Math.round(this.canvasHeight * 0.10),\r\n                targetheight = this.canvasHeight - (targettop * 2),\r\n                color = this.options.get('targetColor');\r\n            if (highlight) {\r\n                color = this.calcHighlightColor(color, this.options);\r\n            }\r\n            return this.target.drawRect(x, targettop, this.options.get('targetWidth') - 1, targetheight - 1, color, color);\r\n        },\r\n\r\n        render: function () {\r\n            var vlen = this.values.length,\r\n                target = this.target,\r\n                i, shape;\r\n            if (!bullet._super.render.call(this)) {\r\n                return;\r\n            }\r\n            for (i = 2; i < vlen; i++) {\r\n                shape = this.renderRange(i).append();\r\n                this.shapes[shape.id] = 'r' + i;\r\n                this.valueShapes['r' + i] = shape.id;\r\n            }\r\n            if (this.values[1] !== null) {\r\n                shape = this.renderPerformance().append();\r\n                this.shapes[shape.id] = 'p1';\r\n                this.valueShapes.p1 = shape.id;\r\n            }\r\n            if (this.values[0] !== null) {\r\n                shape = this.renderTarget().append();\r\n                this.shapes[shape.id] = 't0';\r\n                this.valueShapes.t0 = shape.id;\r\n            }\r\n            target.render();\r\n        }\r\n    });\r\n\r\n    /**\r\n     * Pie charts\r\n     */\r\n    $.fn.sparkline.pie = pie = createClass($.fn.sparkline._base, {\r\n        type: 'pie',\r\n\r\n        init: function (el, values, options, width, height) {\r\n            var total = 0, i;\r\n\r\n            pie._super.init.call(this, el, values, options, width, height);\r\n\r\n            this.shapes = {}; // map shape ids to value offsets\r\n            this.valueShapes = {}; // maps value offsets to shape ids\r\n            this.values = values = $.map(values, Number);\r\n\r\n            if (options.get('width') === 'auto') {\r\n                this.width = this.height;\r\n            }\r\n\r\n            if (values.length > 0) {\r\n                for (i = values.length; i--;) {\r\n                    total += values[i];\r\n                }\r\n            }\r\n            this.total = total;\r\n            this.initTarget();\r\n            this.radius = Math.floor(Math.min(this.canvasWidth, this.canvasHeight) / 2);\r\n        },\r\n\r\n        getRegion: function (el, x, y) {\r\n            var shapeid = this.target.getShapeAt(el, x, y);\r\n            return (shapeid !== undefined && this.shapes[shapeid] !== undefined) ? this.shapes[shapeid] : undefined;\r\n        },\r\n\r\n        getCurrentRegionFields: function () {\r\n            var currentRegion = this.currentRegion;\r\n            return {\r\n                isNull: this.values[currentRegion] === undefined,\r\n                value: this.values[currentRegion],\r\n                percent: this.values[currentRegion] / this.total * 100,\r\n                color: this.options.get('sliceColors')[currentRegion % this.options.get('sliceColors').length],\r\n                offset: currentRegion\r\n            };\r\n        },\r\n\r\n        changeHighlight: function (highlight) {\r\n            var currentRegion = this.currentRegion,\r\n                 newslice = this.renderSlice(currentRegion, highlight),\r\n                 shapeid = this.valueShapes[currentRegion];\r\n            delete this.shapes[shapeid];\r\n            this.target.replaceWithShape(shapeid, newslice);\r\n            this.valueShapes[currentRegion] = newslice.id;\r\n            this.shapes[newslice.id] = currentRegion;\r\n        },\r\n\r\n        renderSlice: function (valuenum, highlight) {\r\n            var target = this.target,\r\n                options = this.options,\r\n                radius = this.radius,\r\n                borderWidth = options.get('borderWidth'),\r\n                offset = options.get('offset'),\r\n                circle = 2 * Math.PI,\r\n                values = this.values,\r\n                total = this.total,\r\n                next = offset ? (2*Math.PI)*(offset/360) : 0,\r\n                start, end, i, vlen, color;\r\n\r\n            vlen = values.length;\r\n            for (i = 0; i < vlen; i++) {\r\n                start = next;\r\n                end = next;\r\n                if (total > 0) {  // avoid divide by zero\r\n                    end = next + (circle * (values[i] / total));\r\n                }\r\n                if (valuenum === i) {\r\n                    color = options.get('sliceColors')[i % options.get('sliceColors').length];\r\n                    if (highlight) {\r\n                        color = this.calcHighlightColor(color, options);\r\n                    }\r\n\r\n                    return target.drawPieSlice(radius, radius, radius - borderWidth, start, end, undefined, color);\r\n                }\r\n                next = end;\r\n            }\r\n        },\r\n\r\n        render: function () {\r\n            var target = this.target,\r\n                values = this.values,\r\n                options = this.options,\r\n                radius = this.radius,\r\n                borderWidth = options.get('borderWidth'),\r\n                shape, i;\r\n\r\n            if (!pie._super.render.call(this)) {\r\n                return;\r\n            }\r\n            if (borderWidth) {\r\n                target.drawCircle(radius, radius, Math.floor(radius - (borderWidth / 2)),\r\n                    options.get('borderColor'), undefined, borderWidth).append();\r\n            }\r\n            for (i = values.length; i--;) {\r\n                if (values[i]) { // don't render zero values\r\n                    shape = this.renderSlice(i).append();\r\n                    this.valueShapes[i] = shape.id; // store just the shapeid\r\n                    this.shapes[shape.id] = i;\r\n                }\r\n            }\r\n            target.render();\r\n        }\r\n    });\r\n\r\n    /**\r\n     * Box plots\r\n     */\r\n    $.fn.sparkline.box = box = createClass($.fn.sparkline._base, {\r\n        type: 'box',\r\n\r\n        init: function (el, values, options, width, height) {\r\n            box._super.init.call(this, el, values, options, width, height);\r\n            this.values = $.map(values, Number);\r\n            this.width = options.get('width') === 'auto' ? '4.0em' : width;\r\n            this.initTarget();\r\n            if (!this.values.length) {\r\n                this.disabled = 1;\r\n            }\r\n        },\r\n\r\n        /**\r\n         * Simulate a single region\r\n         */\r\n        getRegion: function () {\r\n            return 1;\r\n        },\r\n\r\n        getCurrentRegionFields: function () {\r\n            var result = [\r\n                { field: 'lq', value: this.quartiles[0] },\r\n                { field: 'med', value: this.quartiles[1] },\r\n                { field: 'uq', value: this.quartiles[2] }\r\n            ];\r\n            if (this.loutlier !== undefined) {\r\n                result.push({ field: 'lo', value: this.loutlier});\r\n            }\r\n            if (this.routlier !== undefined) {\r\n                result.push({ field: 'ro', value: this.routlier});\r\n            }\r\n            if (this.lwhisker !== undefined) {\r\n                result.push({ field: 'lw', value: this.lwhisker});\r\n            }\r\n            if (this.rwhisker !== undefined) {\r\n                result.push({ field: 'rw', value: this.rwhisker});\r\n            }\r\n            return result;\r\n        },\r\n\r\n        render: function () {\r\n            var target = this.target,\r\n                values = this.values,\r\n                vlen = values.length,\r\n                options = this.options,\r\n                canvasWidth = this.canvasWidth,\r\n                canvasHeight = this.canvasHeight,\r\n                minValue = options.get('chartRangeMin') === undefined ? Math.min.apply(Math, values) : options.get('chartRangeMin'),\r\n                maxValue = options.get('chartRangeMax') === undefined ? Math.max.apply(Math, values) : options.get('chartRangeMax'),\r\n                canvasLeft = 0,\r\n                lwhisker, loutlier, iqr, q1, q2, q3, rwhisker, routlier, i,\r\n                size, unitSize;\r\n\r\n            if (!box._super.render.call(this)) {\r\n                return;\r\n            }\r\n\r\n            if (options.get('raw')) {\r\n                if (options.get('showOutliers') && values.length > 5) {\r\n                    loutlier = values[0];\r\n                    lwhisker = values[1];\r\n                    q1 = values[2];\r\n                    q2 = values[3];\r\n                    q3 = values[4];\r\n                    rwhisker = values[5];\r\n                    routlier = values[6];\r\n                } else {\r\n                    lwhisker = values[0];\r\n                    q1 = values[1];\r\n                    q2 = values[2];\r\n                    q3 = values[3];\r\n                    rwhisker = values[4];\r\n                }\r\n            } else {\r\n                values.sort(function (a, b) { return a - b; });\r\n                q1 = quartile(values, 1);\r\n                q2 = quartile(values, 2);\r\n                q3 = quartile(values, 3);\r\n                iqr = q3 - q1;\r\n                if (options.get('showOutliers')) {\r\n                    lwhisker = rwhisker = undefined;\r\n                    for (i = 0; i < vlen; i++) {\r\n                        if (lwhisker === undefined && values[i] > q1 - (iqr * options.get('outlierIQR'))) {\r\n                            lwhisker = values[i];\r\n                        }\r\n                        if (values[i] < q3 + (iqr * options.get('outlierIQR'))) {\r\n                            rwhisker = values[i];\r\n                        }\r\n                    }\r\n                    loutlier = values[0];\r\n                    routlier = values[vlen - 1];\r\n                } else {\r\n                    lwhisker = values[0];\r\n                    rwhisker = values[vlen - 1];\r\n                }\r\n            }\r\n            this.quartiles = [q1, q2, q3];\r\n            this.lwhisker = lwhisker;\r\n            this.rwhisker = rwhisker;\r\n            this.loutlier = loutlier;\r\n            this.routlier = routlier;\r\n\r\n            unitSize = canvasWidth / (maxValue - minValue + 1);\r\n            if (options.get('showOutliers')) {\r\n                canvasLeft = Math.ceil(options.get('spotRadius'));\r\n                canvasWidth -= 2 * Math.ceil(options.get('spotRadius'));\r\n                unitSize = canvasWidth / (maxValue - minValue + 1);\r\n                if (loutlier < lwhisker) {\r\n                    target.drawCircle((loutlier - minValue) * unitSize + canvasLeft,\r\n                        canvasHeight / 2,\r\n                        options.get('spotRadius'),\r\n                        options.get('outlierLineColor'),\r\n                        options.get('outlierFillColor')).append();\r\n                }\r\n                if (routlier > rwhisker) {\r\n                    target.drawCircle((routlier - minValue) * unitSize + canvasLeft,\r\n                        canvasHeight / 2,\r\n                        options.get('spotRadius'),\r\n                        options.get('outlierLineColor'),\r\n                        options.get('outlierFillColor')).append();\r\n                }\r\n            }\r\n\r\n            // box\r\n            target.drawRect(\r\n                Math.round((q1 - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight * 0.1),\r\n                Math.round((q3 - q1) * unitSize),\r\n                Math.round(canvasHeight * 0.8),\r\n                options.get('boxLineColor'),\r\n                options.get('boxFillColor')).append();\r\n            // left whisker\r\n            target.drawLine(\r\n                Math.round((lwhisker - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight / 2),\r\n                Math.round((q1 - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight / 2),\r\n                options.get('lineColor')).append();\r\n            target.drawLine(\r\n                Math.round((lwhisker - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight / 4),\r\n                Math.round((lwhisker - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight - canvasHeight / 4),\r\n                options.get('whiskerColor')).append();\r\n            // right whisker\r\n            target.drawLine(Math.round((rwhisker - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight / 2),\r\n                Math.round((q3 - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight / 2),\r\n                options.get('lineColor')).append();\r\n            target.drawLine(\r\n                Math.round((rwhisker - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight / 4),\r\n                Math.round((rwhisker - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight - canvasHeight / 4),\r\n                options.get('whiskerColor')).append();\r\n            // median line\r\n            target.drawLine(\r\n                Math.round((q2 - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight * 0.1),\r\n                Math.round((q2 - minValue) * unitSize + canvasLeft),\r\n                Math.round(canvasHeight * 0.9),\r\n                options.get('medianColor')).append();\r\n            if (options.get('target')) {\r\n                size = Math.ceil(options.get('spotRadius'));\r\n                target.drawLine(\r\n                    Math.round((options.get('target') - minValue) * unitSize + canvasLeft),\r\n                    Math.round((canvasHeight / 2) - size),\r\n                    Math.round((options.get('target') - minValue) * unitSize + canvasLeft),\r\n                    Math.round((canvasHeight / 2) + size),\r\n                    options.get('targetColor')).append();\r\n                target.drawLine(\r\n                    Math.round((options.get('target') - minValue) * unitSize + canvasLeft - size),\r\n                    Math.round(canvasHeight / 2),\r\n                    Math.round((options.get('target') - minValue) * unitSize + canvasLeft + size),\r\n                    Math.round(canvasHeight / 2),\r\n                    options.get('targetColor')).append();\r\n            }\r\n            target.render();\r\n        }\r\n    });\r\n\r\n    // Setup a very simple \"virtual canvas\" to make drawing the few shapes we need easier\r\n    // This is accessible as $(foo).simpledraw()\r\n\r\n    VShape = createClass({\r\n        init: function (target, id, type, args) {\r\n            this.target = target;\r\n            this.id = id;\r\n            this.type = type;\r\n            this.args = args;\r\n        },\r\n        append: function () {\r\n            this.target.appendShape(this);\r\n            return this;\r\n        }\r\n    });\r\n\r\n    VCanvas_base = createClass({\r\n        _pxregex: /(\\d+)(px)?\\s*$/i,\r\n\r\n        init: function (width, height, target) {\r\n            if (!width) {\r\n                return;\r\n            }\r\n            this.width = width;\r\n            this.height = height;\r\n            this.target = target;\r\n            this.lastShapeId = null;\r\n            if (target[0]) {\r\n                target = target[0];\r\n            }\r\n            $.data(target, '_jqs_vcanvas', this);\r\n        },\r\n\r\n        drawLine: function (x1, y1, x2, y2, lineColor, lineWidth) {\r\n            return this.drawShape([[x1, y1], [x2, y2]], lineColor, lineWidth);\r\n        },\r\n\r\n        drawShape: function (path, lineColor, fillColor, lineWidth) {\r\n            return this._genShape('Shape', [path, lineColor, fillColor, lineWidth]);\r\n        },\r\n\r\n        drawCircle: function (x, y, radius, lineColor, fillColor, lineWidth) {\r\n            return this._genShape('Circle', [x, y, radius, lineColor, fillColor, lineWidth]);\r\n        },\r\n\r\n        drawPieSlice: function (x, y, radius, startAngle, endAngle, lineColor, fillColor) {\r\n            return this._genShape('PieSlice', [x, y, radius, startAngle, endAngle, lineColor, fillColor]);\r\n        },\r\n\r\n        drawRect: function (x, y, width, height, lineColor, fillColor) {\r\n            return this._genShape('Rect', [x, y, width, height, lineColor, fillColor]);\r\n        },\r\n\r\n        getElement: function () {\r\n            return this.canvas;\r\n        },\r\n\r\n        /**\r\n         * Return the most recently inserted shape id\r\n         */\r\n        getLastShapeId: function () {\r\n            return this.lastShapeId;\r\n        },\r\n\r\n        /**\r\n         * Clear and reset the canvas\r\n         */\r\n        reset: function () {\r\n            alert('reset not implemented');\r\n        },\r\n\r\n        _insert: function (el, target) {\r\n            $(target).html(el);\r\n        },\r\n\r\n        /**\r\n         * Calculate the pixel dimensions of the canvas\r\n         */\r\n        _calculatePixelDims: function (width, height, canvas) {\r\n            // XXX This should probably be a configurable option\r\n            var match;\r\n            match = this._pxregex.exec(height);\r\n            if (match) {\r\n                this.pixelHeight = match[1];\r\n            } else {\r\n                this.pixelHeight = $(canvas).height();\r\n            }\r\n            match = this._pxregex.exec(width);\r\n            if (match) {\r\n                this.pixelWidth = match[1];\r\n            } else {\r\n                this.pixelWidth = $(canvas).width();\r\n            }\r\n        },\r\n\r\n        /**\r\n         * Generate a shape object and id for later rendering\r\n         */\r\n        _genShape: function (shapetype, shapeargs) {\r\n            var id = shapeCount++;\r\n            shapeargs.unshift(id);\r\n            return new VShape(this, id, shapetype, shapeargs);\r\n        },\r\n\r\n        /**\r\n         * Add a shape to the end of the render queue\r\n         */\r\n        appendShape: function (shape) {\r\n            alert('appendShape not implemented');\r\n        },\r\n\r\n        /**\r\n         * Replace one shape with another\r\n         */\r\n        replaceWithShape: function (shapeid, shape) {\r\n            alert('replaceWithShape not implemented');\r\n        },\r\n\r\n        /**\r\n         * Insert one shape after another in the render queue\r\n         */\r\n        insertAfterShape: function (shapeid, shape) {\r\n            alert('insertAfterShape not implemented');\r\n        },\r\n\r\n        /**\r\n         * Remove a shape from the queue\r\n         */\r\n        removeShapeId: function (shapeid) {\r\n            alert('removeShapeId not implemented');\r\n        },\r\n\r\n        /**\r\n         * Find a shape at the specified x/y co-ordinates\r\n         */\r\n        getShapeAt: function (el, x, y) {\r\n            alert('getShapeAt not implemented');\r\n        },\r\n\r\n        /**\r\n         * Render all queued shapes onto the canvas\r\n         */\r\n        render: function () {\r\n            alert('render not implemented');\r\n        }\r\n    });\r\n\r\n    VCanvas_canvas = createClass(VCanvas_base, {\r\n        init: function (width, height, target, interact) {\r\n            VCanvas_canvas._super.init.call(this, width, height, target);\r\n            this.canvas = document.createElement('canvas');\r\n            if (target[0]) {\r\n                target = target[0];\r\n            }\r\n            $.data(target, '_jqs_vcanvas', this);\r\n            $(this.canvas).css({ display: 'inline-block', width: width, height: height, verticalAlign: 'top' });\r\n            this._insert(this.canvas, target);\r\n            this._calculatePixelDims(width, height, this.canvas);\r\n            this.canvas.width = this.pixelWidth;\r\n            this.canvas.height = this.pixelHeight;\r\n            this.interact = interact;\r\n            this.shapes = {};\r\n            this.shapeseq = [];\r\n            this.currentTargetShapeId = undefined;\r\n            $(this.canvas).css({width: this.pixelWidth, height: this.pixelHeight});\r\n        },\r\n\r\n        _getContext: function (lineColor, fillColor, lineWidth) {\r\n            var context = this.canvas.getContext('2d');\r\n            if (lineColor !== undefined) {\r\n                context.strokeStyle = lineColor;\r\n            }\r\n            context.lineWidth = lineWidth === undefined ? 1 : lineWidth;\r\n            if (fillColor !== undefined) {\r\n                context.fillStyle = fillColor;\r\n            }\r\n            return context;\r\n        },\r\n\r\n        reset: function () {\r\n            var context = this._getContext();\r\n            context.clearRect(0, 0, this.pixelWidth, this.pixelHeight);\r\n            this.shapes = {};\r\n            this.shapeseq = [];\r\n            this.currentTargetShapeId = undefined;\r\n        },\r\n\r\n        _drawShape: function (shapeid, path, lineColor, fillColor, lineWidth) {\r\n            var context = this._getContext(lineColor, fillColor, lineWidth),\r\n                i, plen;\r\n            context.beginPath();\r\n            context.moveTo(path[0][0] + 0.5, path[0][1] + 0.5);\r\n            for (i = 1, plen = path.length; i < plen; i++) {\r\n                context.lineTo(path[i][0] + 0.5, path[i][1] + 0.5); // the 0.5 offset gives us crisp pixel-width lines\r\n            }\r\n            if (lineColor !== undefined) {\r\n                context.stroke();\r\n            }\r\n            if (fillColor !== undefined) {\r\n                context.fill();\r\n            }\r\n            if (this.targetX !== undefined && this.targetY !== undefined &&\r\n                context.isPointInPath(this.targetX, this.targetY)) {\r\n                this.currentTargetShapeId = shapeid;\r\n            }\r\n        },\r\n\r\n        _drawCircle: function (shapeid, x, y, radius, lineColor, fillColor, lineWidth) {\r\n            var context = this._getContext(lineColor, fillColor, lineWidth);\r\n            context.beginPath();\r\n            context.arc(x, y, radius, 0, 2 * Math.PI, false);\r\n            if (this.targetX !== undefined && this.targetY !== undefined &&\r\n                context.isPointInPath(this.targetX, this.targetY)) {\r\n                this.currentTargetShapeId = shapeid;\r\n            }\r\n            if (lineColor !== undefined) {\r\n                context.stroke();\r\n            }\r\n            if (fillColor !== undefined) {\r\n                context.fill();\r\n            }\r\n        },\r\n\r\n        _drawPieSlice: function (shapeid, x, y, radius, startAngle, endAngle, lineColor, fillColor) {\r\n            var context = this._getContext(lineColor, fillColor);\r\n            context.beginPath();\r\n            context.moveTo(x, y);\r\n            context.arc(x, y, radius, startAngle, endAngle, false);\r\n            context.lineTo(x, y);\r\n            context.closePath();\r\n            if (lineColor !== undefined) {\r\n                context.stroke();\r\n            }\r\n            if (fillColor) {\r\n                context.fill();\r\n            }\r\n            if (this.targetX !== undefined && this.targetY !== undefined &&\r\n                context.isPointInPath(this.targetX, this.targetY)) {\r\n                this.currentTargetShapeId = shapeid;\r\n            }\r\n        },\r\n\r\n        _drawRect: function (shapeid, x, y, width, height, lineColor, fillColor) {\r\n            return this._drawShape(shapeid, [[x, y], [x + width, y], [x + width, y + height], [x, y + height], [x, y]], lineColor, fillColor);\r\n        },\r\n\r\n        appendShape: function (shape) {\r\n            this.shapes[shape.id] = shape;\r\n            this.shapeseq.push(shape.id);\r\n            this.lastShapeId = shape.id;\r\n            return shape.id;\r\n        },\r\n\r\n        replaceWithShape: function (shapeid, shape) {\r\n            var shapeseq = this.shapeseq,\r\n                i;\r\n            this.shapes[shape.id] = shape;\r\n            for (i = shapeseq.length; i--;) {\r\n                if (shapeseq[i] == shapeid) {\r\n                    shapeseq[i] = shape.id;\r\n                }\r\n            }\r\n            delete this.shapes[shapeid];\r\n        },\r\n\r\n        replaceWithShapes: function (shapeids, shapes) {\r\n            var shapeseq = this.shapeseq,\r\n                shapemap = {},\r\n                sid, i, first;\r\n\r\n            for (i = shapeids.length; i--;) {\r\n                shapemap[shapeids[i]] = true;\r\n            }\r\n            for (i = shapeseq.length; i--;) {\r\n                sid = shapeseq[i];\r\n                if (shapemap[sid]) {\r\n                    shapeseq.splice(i, 1);\r\n                    delete this.shapes[sid];\r\n                    first = i;\r\n                }\r\n            }\r\n            for (i = shapes.length; i--;) {\r\n                shapeseq.splice(first, 0, shapes[i].id);\r\n                this.shapes[shapes[i].id] = shapes[i];\r\n            }\r\n\r\n        },\r\n\r\n        insertAfterShape: function (shapeid, shape) {\r\n            var shapeseq = this.shapeseq,\r\n                i;\r\n            for (i = shapeseq.length; i--;) {\r\n                if (shapeseq[i] === shapeid) {\r\n                    shapeseq.splice(i + 1, 0, shape.id);\r\n                    this.shapes[shape.id] = shape;\r\n                    return;\r\n                }\r\n            }\r\n        },\r\n\r\n        removeShapeId: function (shapeid) {\r\n            var shapeseq = this.shapeseq,\r\n                i;\r\n            for (i = shapeseq.length; i--;) {\r\n                if (shapeseq[i] === shapeid) {\r\n                    shapeseq.splice(i, 1);\r\n                    break;\r\n                }\r\n            }\r\n            delete this.shapes[shapeid];\r\n        },\r\n\r\n        getShapeAt: function (el, x, y) {\r\n            this.targetX = x;\r\n            this.targetY = y;\r\n            this.render();\r\n            return this.currentTargetShapeId;\r\n        },\r\n\r\n        render: function () {\r\n            var shapeseq = this.shapeseq,\r\n                shapes = this.shapes,\r\n                shapeCount = shapeseq.length,\r\n                context = this._getContext(),\r\n                shapeid, shape, i;\r\n            context.clearRect(0, 0, this.pixelWidth, this.pixelHeight);\r\n            for (i = 0; i < shapeCount; i++) {\r\n                shapeid = shapeseq[i];\r\n                shape = shapes[shapeid];\r\n                this['_draw' + shape.type].apply(this, shape.args);\r\n            }\r\n            if (!this.interact) {\r\n                // not interactive so no need to keep the shapes array\r\n                this.shapes = {};\r\n                this.shapeseq = [];\r\n            }\r\n        }\r\n\r\n    });\r\n\r\n    VCanvas_vml = createClass(VCanvas_base, {\r\n        init: function (width, height, target) {\r\n            var groupel;\r\n            VCanvas_vml._super.init.call(this, width, height, target);\r\n            if (target[0]) {\r\n                target = target[0];\r\n            }\r\n            $.data(target, '_jqs_vcanvas', this);\r\n            this.canvas = document.createElement('span');\r\n            $(this.canvas).css({ display: 'inline-block', position: 'relative', overflow: 'hidden', width: width, height: height, margin: '0px', padding: '0px', verticalAlign: 'top'});\r\n            this._insert(this.canvas, target);\r\n            this._calculatePixelDims(width, height, this.canvas);\r\n            this.canvas.width = this.pixelWidth;\r\n            this.canvas.height = this.pixelHeight;\r\n            groupel = '<v:group coordorigin=\"0 0\" coordsize=\"' + this.pixelWidth + ' ' + this.pixelHeight + '\"' +\r\n                    ' style=\"position:absolute;top:0;left:0;width:' + this.pixelWidth + 'px;height=' + this.pixelHeight + 'px;\"></v:group>';\r\n            this.canvas.insertAdjacentHTML('beforeEnd', groupel);\r\n            this.group = $(this.canvas).children()[0];\r\n            this.rendered = false;\r\n            this.prerender = '';\r\n        },\r\n\r\n        _drawShape: function (shapeid, path, lineColor, fillColor, lineWidth) {\r\n            var vpath = [],\r\n                initial, stroke, fill, closed, vel, plen, i;\r\n            for (i = 0, plen = path.length; i < plen; i++) {\r\n                vpath[i] = '' + (path[i][0]) + ',' + (path[i][1]);\r\n            }\r\n            initial = vpath.splice(0, 1);\r\n            lineWidth = lineWidth === undefined ? 1 : lineWidth;\r\n            stroke = lineColor === undefined ? ' stroked=\"false\" ' : ' strokeWeight=\"' + lineWidth + 'px\" strokeColor=\"' + lineColor + '\" ';\r\n            fill = fillColor === undefined ? ' filled=\"false\"' : ' fillColor=\"' + fillColor + '\" filled=\"true\" ';\r\n            closed = vpath[0] === vpath[vpath.length - 1] ? 'x ' : '';\r\n            vel = '<v:shape coordorigin=\"0 0\" coordsize=\"' + this.pixelWidth + ' ' + this.pixelHeight + '\" ' +\r\n                 ' id=\"jqsshape' + shapeid + '\" ' +\r\n                 stroke +\r\n                 fill +\r\n                ' style=\"position:absolute;left:0px;top:0px;height:' + this.pixelHeight + 'px;width:' + this.pixelWidth + 'px;padding:0px;margin:0px;\" ' +\r\n                ' path=\"m ' + initial + ' l ' + vpath.join(', ') + ' ' + closed + 'e\">' +\r\n                ' </v:shape>';\r\n            return vel;\r\n        },\r\n\r\n        _drawCircle: function (shapeid, x, y, radius, lineColor, fillColor, lineWidth) {\r\n            var stroke, fill, vel;\r\n            x -= radius;\r\n            y -= radius;\r\n            stroke = lineColor === undefined ? ' stroked=\"false\" ' : ' strokeWeight=\"' + lineWidth + 'px\" strokeColor=\"' + lineColor + '\" ';\r\n            fill = fillColor === undefined ? ' filled=\"false\"' : ' fillColor=\"' + fillColor + '\" filled=\"true\" ';\r\n            vel = '<v:oval ' +\r\n                 ' id=\"jqsshape' + shapeid + '\" ' +\r\n                stroke +\r\n                fill +\r\n                ' style=\"position:absolute;top:' + y + 'px; left:' + x + 'px; width:' + (radius * 2) + 'px; height:' + (radius * 2) + 'px\"></v:oval>';\r\n            return vel;\r\n\r\n        },\r\n\r\n        _drawPieSlice: function (shapeid, x, y, radius, startAngle, endAngle, lineColor, fillColor) {\r\n            var vpath, startx, starty, endx, endy, stroke, fill, vel;\r\n            if (startAngle === endAngle) {\r\n                return '';  // VML seems to have problem when start angle equals end angle.\r\n            }\r\n            if ((endAngle - startAngle) === (2 * Math.PI)) {\r\n                startAngle = 0.0;  // VML seems to have a problem when drawing a full circle that doesn't start 0\r\n                endAngle = (2 * Math.PI);\r\n            }\r\n\r\n            startx = x + Math.round(Math.cos(startAngle) * radius);\r\n            starty = y + Math.round(Math.sin(startAngle) * radius);\r\n            endx = x + Math.round(Math.cos(endAngle) * radius);\r\n            endy = y + Math.round(Math.sin(endAngle) * radius);\r\n\r\n            if (startx === endx && starty === endy) {\r\n                if ((endAngle - startAngle) < Math.PI) {\r\n                    // Prevent very small slices from being mistaken as a whole pie\r\n                    return '';\r\n                }\r\n                // essentially going to be the entire circle, so ignore startAngle\r\n                startx = endx = x + radius;\r\n                starty = endy = y;\r\n            }\r\n\r\n            if (startx === endx && starty === endy && (endAngle - startAngle) < Math.PI) {\r\n                return '';\r\n            }\r\n\r\n            vpath = [x - radius, y - radius, x + radius, y + radius, startx, starty, endx, endy];\r\n            stroke = lineColor === undefined ? ' stroked=\"false\" ' : ' strokeWeight=\"1px\" strokeColor=\"' + lineColor + '\" ';\r\n            fill = fillColor === undefined ? ' filled=\"false\"' : ' fillColor=\"' + fillColor + '\" filled=\"true\" ';\r\n            vel = '<v:shape coordorigin=\"0 0\" coordsize=\"' + this.pixelWidth + ' ' + this.pixelHeight + '\" ' +\r\n                 ' id=\"jqsshape' + shapeid + '\" ' +\r\n                 stroke +\r\n                 fill +\r\n                ' style=\"position:absolute;left:0px;top:0px;height:' + this.pixelHeight + 'px;width:' + this.pixelWidth + 'px;padding:0px;margin:0px;\" ' +\r\n                ' path=\"m ' + x + ',' + y + ' wa ' + vpath.join(', ') + ' x e\">' +\r\n                ' </v:shape>';\r\n            return vel;\r\n        },\r\n\r\n        _drawRect: function (shapeid, x, y, width, height, lineColor, fillColor) {\r\n            return this._drawShape(shapeid, [[x, y], [x, y + height], [x + width, y + height], [x + width, y], [x, y]], lineColor, fillColor);\r\n        },\r\n\r\n        reset: function () {\r\n            this.group.innerHTML = '';\r\n        },\r\n\r\n        appendShape: function (shape) {\r\n            var vel = this['_draw' + shape.type].apply(this, shape.args);\r\n            if (this.rendered) {\r\n                this.group.insertAdjacentHTML('beforeEnd', vel);\r\n            } else {\r\n                this.prerender += vel;\r\n            }\r\n            this.lastShapeId = shape.id;\r\n            return shape.id;\r\n        },\r\n\r\n        replaceWithShape: function (shapeid, shape) {\r\n            var existing = $('#jqsshape' + shapeid),\r\n                vel = this['_draw' + shape.type].apply(this, shape.args);\r\n            existing[0].outerHTML = vel;\r\n        },\r\n\r\n        replaceWithShapes: function (shapeids, shapes) {\r\n            // replace the first shapeid with all the new shapes then toast the remaining old shapes\r\n            var existing = $('#jqsshape' + shapeids[0]),\r\n                replace = '',\r\n                slen = shapes.length,\r\n                i;\r\n            for (i = 0; i < slen; i++) {\r\n                replace += this['_draw' + shapes[i].type].apply(this, shapes[i].args);\r\n            }\r\n            existing[0].outerHTML = replace;\r\n            for (i = 1; i < shapeids.length; i++) {\r\n                $('#jqsshape' + shapeids[i]).remove();\r\n            }\r\n        },\r\n\r\n        insertAfterShape: function (shapeid, shape) {\r\n            var existing = $('#jqsshape' + shapeid),\r\n                 vel = this['_draw' + shape.type].apply(this, shape.args);\r\n            existing[0].insertAdjacentHTML('afterEnd', vel);\r\n        },\r\n\r\n        removeShapeId: function (shapeid) {\r\n            var existing = $('#jqsshape' + shapeid);\r\n            this.group.removeChild(existing[0]);\r\n        },\r\n\r\n        getShapeAt: function (el, x, y) {\r\n            var shapeid = el.id.substr(8);\r\n            return shapeid;\r\n        },\r\n\r\n        render: function () {\r\n            if (!this.rendered) {\r\n                // batch the intial render into a single repaint\r\n                this.group.innerHTML = this.prerender;\r\n                this.rendered = true;\r\n            }\r\n        }\r\n    });\r\n\r\n}))}(document, Math));\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jquery-sparkline/jquery.sparkline.js\n// module id = 444\n// module chunks = 2","'use strict';\r\n\r\n/**\r\n * Representation a of zip file in js\r\n * @constructor\r\n */\r\nfunction JSZip() {\r\n    // if this constructor is used without `new`, it adds `new` before itself:\r\n    if(!(this instanceof JSZip)) {\r\n        return new JSZip();\r\n    }\r\n\r\n    if(arguments.length) {\r\n        throw new Error(\"The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.\");\r\n    }\r\n\r\n    // object containing the files :\r\n    // {\r\n    //   \"folder/\" : {...},\r\n    //   \"folder/data.txt\" : {...}\r\n    // }\r\n    this.files = {};\r\n\r\n    this.comment = null;\r\n\r\n    // Where we are in the hierarchy\r\n    this.root = \"\";\r\n    this.clone = function() {\r\n        var newObj = new JSZip();\r\n        for (var i in this) {\r\n            if (typeof this[i] !== \"function\") {\r\n                newObj[i] = this[i];\r\n            }\r\n        }\r\n        return newObj;\r\n    };\r\n}\r\nJSZip.prototype = require('./object');\r\nJSZip.prototype.loadAsync = require('./load');\r\nJSZip.support = require('./support');\r\nJSZip.defaults = require('./defaults');\r\n\r\n// TODO find a better way to handle this version,\r\n// a require('package.json').version doesn't work with webpack, see #327\r\nJSZip.version = \"3.1.3\";\r\n\r\nJSZip.loadAsync = function (content, options) {\r\n    return new JSZip().loadAsync(content, options);\r\n};\r\n\r\nJSZip.external = require(\"./external\");\r\nmodule.exports = JSZip;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/index.js\n// module id = 445\n// module chunks = 2","/*! messenger 1.4.2 */\r\n/*\r\n * This file begins the output concatenated into messenger.js\r\n *\r\n * It establishes the Messenger object while preserving whatever it was before\r\n * (for noConflict), and making it a callable function.\r\n */\r\n\r\n(function(){\r\n    var _prevMessenger = window.Messenger;\r\n    var localMessenger;\r\n\r\n    localMessenger = window.Messenger = function(){\r\n        return localMessenger._call.apply(this, arguments);\r\n    }\r\n\r\n    window.Messenger.noConflict = function(){\r\n        window.Messenger = _prevMessenger;\r\n\r\n        return localMessenger;\r\n    }\r\n})();\r\n\r\n/*\r\n * This file contains shims for when Underscore and Backbone\r\n * are not included.\r\n *\r\n * Portions taken from Underscore.js and Backbone.js\r\n * Both of which are Copyright (c) 2009-2013 Jeremy Ashkenas, DocumentCloud\r\n */\r\nwindow.Messenger._ = (function() {\r\n    if (window._)\r\n        return window._\r\n\r\n    var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;\r\n\r\n    // Create quick reference variables for speed access to core prototypes.\r\n    var push             = ArrayProto.push,\r\n            slice            = ArrayProto.slice,\r\n            concat           = ArrayProto.concat,\r\n            toString         = ObjProto.toString,\r\n            hasOwnProperty   = ObjProto.hasOwnProperty;\r\n\r\n    // All **ECMAScript 5** native function implementations that we hope to use\r\n    // are declared here.\r\n    var\r\n        nativeForEach      = ArrayProto.forEach,\r\n        nativeMap          = ArrayProto.map,\r\n        nativeReduce       = ArrayProto.reduce,\r\n        nativeReduceRight  = ArrayProto.reduceRight,\r\n        nativeFilter       = ArrayProto.filter,\r\n        nativeEvery        = ArrayProto.every,\r\n        nativeSome         = ArrayProto.some,\r\n        nativeIndexOf      = ArrayProto.indexOf,\r\n        nativeLastIndexOf  = ArrayProto.lastIndexOf,\r\n        nativeIsArray      = Array.isArray,\r\n        nativeKeys         = Object.keys,\r\n        nativeBind         = FuncProto.bind;\r\n\r\n    // Create a safe reference to the Underscore object for use below.\r\n    var _ = {};\r\n\r\n    // Establish the object that gets returned to break out of a loop iteration.\r\n    var breaker = {};\r\n  \r\n    var each = _.each = _.forEach = function(obj, iterator, context) {\r\n        if (obj == null) return;\r\n        if (nativeForEach && obj.forEach === nativeForEach) {\r\n            obj.forEach(iterator, context);\r\n        } else if (obj.length === +obj.length) {\r\n            for (var i = 0, l = obj.length; i < l; i++) {\r\n                if (iterator.call(context, obj[i], i, obj) === breaker) return;\r\n            }\r\n        } else {\r\n            for (var key in obj) {\r\n                if (_.has(obj, key)) {\r\n                    if (iterator.call(context, obj[key], key, obj) === breaker) return;\r\n                }\r\n            }\r\n        }\r\n    };\r\n\r\n    _.result = function(object, property) {\r\n        if (object == null) return null;\r\n        var value = object[property];\r\n        return _.isFunction(value) ? value.call(object) : value;\r\n    };\r\n\r\n    _.once = function(func) {\r\n        var ran = false, memo;\r\n        return function() {\r\n            if (ran) return memo;\r\n            ran = true;\r\n            memo = func.apply(this, arguments);\r\n            func = null;\r\n            return memo;\r\n        };\r\n    };\r\n\r\n    var idCounter = 0;\r\n    _.uniqueId = function(prefix) {\r\n        var id = ++idCounter + '';\r\n        return prefix ? prefix + id : id;\r\n    };\r\n\r\n    _.filter = _.select = function(obj, iterator, context) {\r\n        var results = [];\r\n        if (obj == null) return results;\r\n        if (nativeFilter && obj.filter === nativeFilter) return obj.filter(iterator, context);\r\n        each(obj, function(value, index, list) {\r\n            if (iterator.call(context, value, index, list)) results[results.length] = value;\r\n        });\r\n        return results;\r\n    };\r\n\r\n    // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp.\r\n    each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp'], function(name) {\r\n        _['is' + name] = function(obj) {\r\n            return toString.call(obj) == '[object ' + name + ']';\r\n        };\r\n    });\r\n\r\n    _.defaults = function(obj) {\r\n        each(slice.call(arguments, 1), function(source) {\r\n            if (source) {\r\n                for (var prop in source) {\r\n                    if (obj[prop] == null) obj[prop] = source[prop];\r\n                }\r\n            }\r\n        });\r\n        return obj;\r\n    };\r\n\r\n    _.extend = function(obj) {\r\n        each(slice.call(arguments, 1), function(source) {\r\n            if (source) {\r\n                for (var prop in source) {\r\n                    obj[prop] = source[prop];\r\n                }\r\n            }\r\n        });\r\n        return obj;\r\n    };\r\n\r\n    _.keys = nativeKeys || function(obj) {\r\n        if (obj !== Object(obj)) throw new TypeError('Invalid object');\r\n        var keys = [];\r\n        for (var key in obj) if (_.has(obj, key)) keys[keys.length] = key;\r\n        return keys;\r\n    };\r\n\r\n    _.bind = function(func, context) {\r\n        if (func.bind === nativeBind && nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));\r\n        var args = slice.call(arguments, 2);\r\n        return function() {\r\n            return func.apply(context, args.concat(slice.call(arguments)));\r\n        };\r\n    };\r\n\r\n    _.isObject = function(obj) {\r\n        return obj === Object(obj);\r\n    };\r\n\r\n    return _;\r\n})();\r\n\r\nwindow.Messenger.Events = (function() {\r\n    if (window.Backbone && Backbone.Events) {\r\n        return Backbone.Events;\r\n    }\r\n\r\n    var eventsShim = function() {\r\n        var eventSplitter = /\\s+/;\r\n\r\n        var eventsApi = function(obj, action, name, rest) {\r\n            if (!name) return true;\r\n            if (typeof name === 'object') {\r\n                for (var key in name) {\r\n                    obj[action].apply(obj, [key, name[key]].concat(rest));\r\n                }\r\n            } else if (eventSplitter.test(name)) {\r\n                var names = name.split(eventSplitter);\r\n                for (var i = 0, l = names.length; i < l; i++) {\r\n                    obj[action].apply(obj, [names[i]].concat(rest));\r\n                }\r\n            } else {\r\n                return true;\r\n            }\r\n        };\r\n\r\n        var triggerEvents = function(events, args) {\r\n            var ev, i = -1, l = events.length;\r\n            switch (args.length) {\r\n            case 0: while (++i < l) (ev = events[i]).callback.call(ev.ctx);\r\n            return;\r\n            case 1: while (++i < l) (ev = events[i]).callback.call(ev.ctx, args[0]);\r\n            return;\r\n            case 2: while (++i < l) (ev = events[i]).callback.call(ev.ctx, args[0], args[1]);\r\n            return;\r\n            case 3: while (++i < l) (ev = events[i]).callback.call(ev.ctx, args[0], args[1], args[2]);\r\n            return;\r\n            default: while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args);\r\n            }\r\n        };\r\n\r\n        var Events = {\r\n\r\n            on: function(name, callback, context) {\r\n                if (!(eventsApi(this, 'on', name, [callback, context]) && callback)) return this;\r\n                this._events || (this._events = {});\r\n                var list = this._events[name] || (this._events[name] = []);\r\n                list.push({callback: callback, context: context, ctx: context || this});\r\n                return this;\r\n            },\r\n\r\n            once: function(name, callback, context) {\r\n                if (!(eventsApi(this, 'once', name, [callback, context]) && callback)) return this;\r\n                var self = this;\r\n                var once = _.once(function() {\r\n                    self.off(name, once);\r\n                    callback.apply(this, arguments);\r\n                });\r\n                once._callback = callback;\r\n                this.on(name, once, context);\r\n                return this;\r\n            },\r\n\r\n            off: function(name, callback, context) {\r\n                var list, ev, events, names, i, l, j, k;\r\n                if (!this._events || !eventsApi(this, 'off', name, [callback, context])) return this;\r\n                if (!name && !callback && !context) {\r\n                    this._events = {};\r\n                    return this;\r\n                }\r\n\r\n                names = name ? [name] : _.keys(this._events);\r\n                for (i = 0, l = names.length; i < l; i++) {\r\n                    name = names[i];\r\n                    if (list = this._events[name]) {\r\n                        events = [];\r\n                        if (callback || context) {\r\n                            for (j = 0, k = list.length; j < k; j++) {\r\n                                ev = list[j];\r\n                                if ((callback && callback !== ev.callback &&\r\n                                                                 callback !== ev.callback._callback) ||\r\n                                        (context && context !== ev.context)) {\r\n                                    events.push(ev);\r\n                                }\r\n                            }\r\n                        }\r\n                        this._events[name] = events;\r\n                    }\r\n                }\r\n\r\n                return this;\r\n            },\r\n\r\n            trigger: function(name) {\r\n                if (!this._events) return this;\r\n                var args = Array.prototype.slice.call(arguments, 1);\r\n                if (!eventsApi(this, 'trigger', name, args)) return this;\r\n                var events = this._events[name];\r\n                var allEvents = this._events.all;\r\n                if (events) triggerEvents(events, args);\r\n                if (allEvents) triggerEvents(allEvents, arguments);\r\n                return this;\r\n            },\r\n\r\n            listenTo: function(obj, name, callback) {\r\n                var listeners = this._listeners || (this._listeners = {});\r\n                var id = obj._listenerId || (obj._listenerId = _.uniqueId('l'));\r\n                listeners[id] = obj;\r\n                obj.on(name, typeof name === 'object' ? this : callback, this);\r\n                return this;\r\n            },\r\n\r\n            stopListening: function(obj, name, callback) {\r\n                var listeners = this._listeners;\r\n                if (!listeners) return;\r\n                if (obj) {\r\n                    obj.off(name, typeof name === 'object' ? this : callback, this);\r\n                    if (!name && !callback) delete listeners[obj._listenerId];\r\n                } else {\r\n                    if (typeof name === 'object') callback = this;\r\n                    for (var id in listeners) {\r\n                        listeners[id].off(name, callback, this);\r\n                    }\r\n                    this._listeners = {};\r\n                }\r\n                return this;\r\n            }\r\n        };\r\n\r\n        Events.bind   = Events.on;\r\n        Events.unbind = Events.off;\r\n        return Events;\r\n    };\r\n    return eventsShim();\r\n})();\r\n\r\n(function() {\r\n  var $, ActionMessenger, BaseView, Events, RetryingMessage, _, _Message, _Messenger, _ref, _ref1, _ref2,\r\n    __hasProp = {}.hasOwnProperty,\r\n    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    __slice = [].slice,\r\n    __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };\r\n\r\n  $ = jQuery;\r\n\r\n  _ = (_ref = window._) != null ? _ref : window.Messenger._;\r\n\r\n  Events = (_ref1 = typeof Backbone !== \"undefined\" && Backbone !== null ? Backbone.Events : void 0) != null ? _ref1 : window.Messenger.Events;\r\n\r\n  BaseView = (function() {\r\n\r\n    function BaseView(options) {\r\n      $.extend(this, Events);\r\n      if (_.isObject(options)) {\r\n        if (options.el) {\r\n          this.setElement(options.el);\r\n        }\r\n        this.model = options.model;\r\n      }\r\n      this.initialize.apply(this, arguments);\r\n    }\r\n\r\n    BaseView.prototype.setElement = function(el) {\r\n      this.$el = $(el);\r\n      return this.el = this.$el[0];\r\n    };\r\n\r\n    BaseView.prototype.delegateEvents = function(events) {\r\n      var delegateEventSplitter, eventName, key, match, method, selector, _results;\r\n      if (!(events || (events = _.result(this, \"events\")))) {\r\n        return;\r\n      }\r\n      this.undelegateEvents();\r\n      delegateEventSplitter = /^(\\S+)\\s*(.*)$/;\r\n      _results = [];\r\n      for (key in events) {\r\n        method = events[key];\r\n        if (!_.isFunction(method)) {\r\n          method = this[events[key]];\r\n        }\r\n        if (!method) {\r\n          throw new Error(\"Method \\\"\" + events[key] + \"\\\" does not exist\");\r\n        }\r\n        match = key.match(delegateEventSplitter);\r\n        eventName = match[1];\r\n        selector = match[2];\r\n        method = _.bind(method, this);\r\n        eventName += \".delegateEvents\" + this.cid;\r\n        if (selector === '') {\r\n          _results.push(this.jqon(eventName, method));\r\n        } else {\r\n          _results.push(this.jqon(eventName, selector, method));\r\n        }\r\n      }\r\n      return _results;\r\n    };\r\n\r\n    BaseView.prototype.jqon = function(eventName, selector, method) {\r\n      var _ref2;\r\n      if (this.$el.on != null) {\r\n        return (_ref2 = this.$el).on.apply(_ref2, arguments);\r\n      } else {\r\n        if (!(method != null)) {\r\n          method = selector;\r\n          selector = void 0;\r\n        }\r\n        if (selector != null) {\r\n          return this.$el.delegate(selector, eventName, method);\r\n        } else {\r\n          return this.$el.bind(eventName, method);\r\n        }\r\n      }\r\n    };\r\n\r\n    BaseView.prototype.jqoff = function(eventName) {\r\n      var _ref2;\r\n      if (this.$el.off != null) {\r\n        return (_ref2 = this.$el).off.apply(_ref2, arguments);\r\n      } else {\r\n        this.$el.undelegate();\r\n        return this.$el.unbind(eventName);\r\n      }\r\n    };\r\n\r\n    BaseView.prototype.undelegateEvents = function() {\r\n      return this.jqoff(\".delegateEvents\" + this.cid);\r\n    };\r\n\r\n    BaseView.prototype.remove = function() {\r\n      this.undelegateEvents();\r\n      return this.$el.remove();\r\n    };\r\n\r\n    return BaseView;\r\n\r\n  })();\r\n\r\n  _Message = (function(_super) {\r\n\r\n    __extends(_Message, _super);\r\n\r\n    function _Message() {\r\n      return _Message.__super__.constructor.apply(this, arguments);\r\n    }\r\n\r\n    _Message.prototype.defaults = {\r\n      hideAfter: 10,\r\n      scroll: true,\r\n      closeButtonText: \"&times;\",\r\n      escapeText: false\r\n    };\r\n\r\n    _Message.prototype.initialize = function(opts) {\r\n      if (opts == null) {\r\n        opts = {};\r\n      }\r\n      this.shown = false;\r\n      this.rendered = false;\r\n      this.messenger = opts.messenger;\r\n      return this.options = $.extend({}, this.options, opts, this.defaults);\r\n    };\r\n\r\n    _Message.prototype.show = function() {\r\n      var wasShown;\r\n      if (!this.rendered) {\r\n        this.render();\r\n      }\r\n      this.$message.removeClass('messenger-hidden');\r\n      wasShown = this.shown;\r\n      this.shown = true;\r\n      if (!wasShown) {\r\n        return this.trigger('show');\r\n      }\r\n    };\r\n\r\n    _Message.prototype.hide = function() {\r\n      var wasShown;\r\n      if (!this.rendered) {\r\n        return;\r\n      }\r\n      this.$message.addClass('messenger-hidden');\r\n      wasShown = this.shown;\r\n      this.shown = false;\r\n      if (wasShown) {\r\n        return this.trigger('hide');\r\n      }\r\n    };\r\n\r\n    _Message.prototype.cancel = function() {\r\n      return this.hide();\r\n    };\r\n\r\n    _Message.prototype.update = function(opts) {\r\n      var _ref2,\r\n        _this = this;\r\n      if (_.isString(opts)) {\r\n        opts = {\r\n          message: opts\r\n        };\r\n      }\r\n      $.extend(this.options, opts);\r\n      this.lastUpdate = new Date();\r\n      this.rendered = false;\r\n      this.events = (_ref2 = this.options.events) != null ? _ref2 : {};\r\n      this.render();\r\n      this.actionsToEvents();\r\n      this.delegateEvents();\r\n      this.checkClickable();\r\n      if (this.options.hideAfter) {\r\n        this.$message.addClass('messenger-will-hide-after');\r\n        if (this._hideTimeout != null) {\r\n          clearTimeout(this._hideTimeout);\r\n        }\r\n        this._hideTimeout = setTimeout(function() {\r\n          return _this.hide();\r\n        }, this.options.hideAfter * 1000);\r\n      } else {\r\n        this.$message.removeClass('messenger-will-hide-after');\r\n      }\r\n      if (this.options.hideOnNavigate) {\r\n        this.$message.addClass('messenger-will-hide-on-navigate');\r\n        if ((typeof Backbone !== \"undefined\" && Backbone !== null ? Backbone.history : void 0) != null) {\r\n          Backbone.history.on('route', function() {\r\n            return _this.hide();\r\n          });\r\n        }\r\n      } else {\r\n        this.$message.removeClass('messenger-will-hide-on-navigate');\r\n      }\r\n      return this.trigger('update', this);\r\n    };\r\n\r\n    _Message.prototype.scrollTo = function() {\r\n      if (!this.options.scroll) {\r\n        return;\r\n      }\r\n      return $.scrollTo(this.$el, {\r\n        duration: 400,\r\n        offset: {\r\n          left: 0,\r\n          top: -20\r\n        }\r\n      });\r\n    };\r\n\r\n    _Message.prototype.timeSinceUpdate = function() {\r\n      if (this.lastUpdate) {\r\n        return (new Date) - this.lastUpdate;\r\n      } else {\r\n        return null;\r\n      }\r\n    };\r\n\r\n    _Message.prototype.actionsToEvents = function() {\r\n      var act, name, _ref2, _results,\r\n        _this = this;\r\n      _ref2 = this.options.actions;\r\n      _results = [];\r\n      for (name in _ref2) {\r\n        act = _ref2[name];\r\n        _results.push(this.events[\"click [data-action=\\\"\" + name + \"\\\"] a\"] = (function(act) {\r\n          return function(e) {\r\n            e.preventDefault();\r\n            e.stopPropagation();\r\n            _this.trigger(\"action:\" + name, act, e);\r\n            return act.action.call(_this, e, _this);\r\n          };\r\n        })(act));\r\n      }\r\n      return _results;\r\n    };\r\n\r\n    _Message.prototype.checkClickable = function() {\r\n      var evt, name, _ref2, _results;\r\n      _ref2 = this.events;\r\n      _results = [];\r\n      for (name in _ref2) {\r\n        evt = _ref2[name];\r\n        if (name === 'click') {\r\n          _results.push(this.$message.addClass('messenger-clickable'));\r\n        } else {\r\n          _results.push(void 0);\r\n        }\r\n      }\r\n      return _results;\r\n    };\r\n\r\n    _Message.prototype.undelegateEvents = function() {\r\n      var _ref2;\r\n      _Message.__super__.undelegateEvents.apply(this, arguments);\r\n      return (_ref2 = this.$message) != null ? _ref2.removeClass('messenger-clickable') : void 0;\r\n    };\r\n\r\n    _Message.prototype.parseActions = function() {\r\n      var act, actions, n_act, name, _ref2, _ref3;\r\n      actions = [];\r\n      _ref2 = this.options.actions;\r\n      for (name in _ref2) {\r\n        act = _ref2[name];\r\n        n_act = $.extend({}, act);\r\n        n_act.name = name;\r\n        if ((_ref3 = n_act.label) == null) {\r\n          n_act.label = name;\r\n        }\r\n        actions.push(n_act);\r\n      }\r\n      return actions;\r\n    };\r\n\r\n    _Message.prototype.template = function(opts) {\r\n      var $action, $actions, $cancel, $link, $message, $text, action, _i, _len, _ref2,\r\n        _this = this;\r\n      $message = $(\"<div class='messenger-message message alert \" + opts.type + \" message-\" + opts.type + \" alert-\" + opts.type + \"'>\");\r\n      if (opts.showCloseButton) {\r\n        $cancel = $('<button type=\"button\" class=\"messenger-close\" data-dismiss=\"alert\">');\r\n        $cancel.html(opts.closeButtonText);\r\n        $cancel.click(function() {\r\n          _this.cancel();\r\n          return true;\r\n        });\r\n        $message.append($cancel);\r\n      }\r\n      if (opts.escapeText) {\r\n        $text = $('<div class=\"messenger-message-inner\"></div>').text(opts.message);\r\n      } else {\r\n        $text = $(\"<div class=\\\"messenger-message-inner\\\">\" + opts.message + \"</div>\");\r\n      }\r\n      $message.append($text);\r\n      if (opts.actions.length) {\r\n        $actions = $('<div class=\"messenger-actions\">');\r\n      }\r\n      _ref2 = opts.actions;\r\n      for (_i = 0, _len = _ref2.length; _i < _len; _i++) {\r\n        action = _ref2[_i];\r\n        $action = $('<span>');\r\n        $action.attr('data-action', \"\" + action.name);\r\n        $link = $('<a>');\r\n        $link.html(action.label);\r\n        $action.append($('<span class=\"messenger-phrase\">'));\r\n        $action.append($link);\r\n        $actions.append($action);\r\n      }\r\n      $message.append($actions);\r\n      return $message;\r\n    };\r\n\r\n    _Message.prototype.render = function() {\r\n      var opts;\r\n      if (this.rendered) {\r\n        return;\r\n      }\r\n      if (!this._hasSlot) {\r\n        this.setElement(this.messenger._reserveMessageSlot(this));\r\n        this._hasSlot = true;\r\n      }\r\n      opts = $.extend({}, this.options, {\r\n        actions: this.parseActions()\r\n      });\r\n      this.$message = $(this.template(opts));\r\n      this.$el.html(this.$message);\r\n      this.shown = true;\r\n      this.rendered = true;\r\n      return this.trigger('render');\r\n    };\r\n\r\n    return _Message;\r\n\r\n  })(BaseView);\r\n\r\n  RetryingMessage = (function(_super) {\r\n\r\n    __extends(RetryingMessage, _super);\r\n\r\n    function RetryingMessage() {\r\n      return RetryingMessage.__super__.constructor.apply(this, arguments);\r\n    }\r\n\r\n    RetryingMessage.prototype.initialize = function() {\r\n      RetryingMessage.__super__.initialize.apply(this, arguments);\r\n      return this._timers = {};\r\n    };\r\n\r\n    RetryingMessage.prototype.cancel = function() {\r\n      this.clearTimers();\r\n      this.hide();\r\n      if ((this._actionInstance != null) && (this._actionInstance.abort != null)) {\r\n        return this._actionInstance.abort();\r\n      }\r\n    };\r\n\r\n    RetryingMessage.prototype.clearTimers = function() {\r\n      var name, timer, _ref2, _ref3;\r\n      _ref2 = this._timers;\r\n      for (name in _ref2) {\r\n        timer = _ref2[name];\r\n        clearTimeout(timer);\r\n      }\r\n      this._timers = {};\r\n      return (_ref3 = this.$message) != null ? _ref3.removeClass('messenger-retry-soon messenger-retry-later') : void 0;\r\n    };\r\n\r\n    RetryingMessage.prototype.render = function() {\r\n      var action, name, _ref2, _results;\r\n      RetryingMessage.__super__.render.apply(this, arguments);\r\n      this.clearTimers();\r\n      _ref2 = this.options.actions;\r\n      _results = [];\r\n      for (name in _ref2) {\r\n        action = _ref2[name];\r\n        if (action.auto) {\r\n          _results.push(this.startCountdown(name, action));\r\n        } else {\r\n          _results.push(void 0);\r\n        }\r\n      }\r\n      return _results;\r\n    };\r\n\r\n    RetryingMessage.prototype.renderPhrase = function(action, time) {\r\n      var phrase;\r\n      phrase = action.phrase.replace('TIME', this.formatTime(time));\r\n      return phrase;\r\n    };\r\n\r\n    RetryingMessage.prototype.formatTime = function(time) {\r\n      var pluralize;\r\n      pluralize = function(num, str) {\r\n        num = Math.floor(num);\r\n        if (num !== 1) {\r\n          str = str + 's';\r\n        }\r\n        return 'in ' + num + ' ' + str;\r\n      };\r\n      if (Math.floor(time) === 0) {\r\n        return 'now...';\r\n      }\r\n      if (time < 60) {\r\n        return pluralize(time, 'second');\r\n      }\r\n      time /= 60;\r\n      if (time < 60) {\r\n        return pluralize(time, 'minute');\r\n      }\r\n      time /= 60;\r\n      return pluralize(time, 'hour');\r\n    };\r\n\r\n    RetryingMessage.prototype.startCountdown = function(name, action) {\r\n      var $phrase, remaining, tick, _ref2,\r\n        _this = this;\r\n      if (this._timers[name] != null) {\r\n        return;\r\n      }\r\n      $phrase = this.$message.find(\"[data-action='\" + name + \"'] .messenger-phrase\");\r\n      remaining = (_ref2 = action.delay) != null ? _ref2 : 3;\r\n      if (remaining <= 10) {\r\n        this.$message.removeClass('messenger-retry-later');\r\n        this.$message.addClass('messenger-retry-soon');\r\n      } else {\r\n        this.$message.removeClass('messenger-retry-soon');\r\n        this.$message.addClass('messenger-retry-later');\r\n      }\r\n      tick = function() {\r\n        var delta;\r\n        $phrase.text(_this.renderPhrase(action, remaining));\r\n        if (remaining > 0) {\r\n          delta = Math.min(remaining, 1);\r\n          remaining -= delta;\r\n          return _this._timers[name] = setTimeout(tick, delta * 1000);\r\n        } else {\r\n          _this.$message.removeClass('messenger-retry-soon messenger-retry-later');\r\n          delete _this._timers[name];\r\n          return action.action();\r\n        }\r\n      };\r\n      return tick();\r\n    };\r\n\r\n    return RetryingMessage;\r\n\r\n  })(_Message);\r\n\r\n  _Messenger = (function(_super) {\r\n\r\n    __extends(_Messenger, _super);\r\n\r\n    function _Messenger() {\r\n      return _Messenger.__super__.constructor.apply(this, arguments);\r\n    }\r\n\r\n    _Messenger.prototype.tagName = 'ul';\r\n\r\n    _Messenger.prototype.className = 'messenger';\r\n\r\n    _Messenger.prototype.messageDefaults = {\r\n      type: 'info'\r\n    };\r\n\r\n    _Messenger.prototype.initialize = function(options) {\r\n      this.options = options != null ? options : {};\r\n      this.history = [];\r\n      return this.messageDefaults = $.extend({}, this.messageDefaults, this.options.messageDefaults);\r\n    };\r\n\r\n    _Messenger.prototype.render = function() {\r\n      return this.updateMessageSlotClasses();\r\n    };\r\n\r\n    _Messenger.prototype.findById = function(id) {\r\n      return _.filter(this.history, function(rec) {\r\n        return rec.msg.options.id === id;\r\n      });\r\n    };\r\n\r\n    _Messenger.prototype._reserveMessageSlot = function(msg) {\r\n      var $slot, dmsg,\r\n        _this = this;\r\n      $slot = $('<li>');\r\n      $slot.addClass('messenger-message-slot');\r\n      this.$el.prepend($slot);\r\n      this.history.push({\r\n        msg: msg,\r\n        $slot: $slot\r\n      });\r\n      this._enforceIdConstraint(msg);\r\n      msg.on('update', function() {\r\n        return _this._enforceIdConstraint(msg);\r\n      });\r\n      while (this.options.maxMessages && this.history.length > this.options.maxMessages) {\r\n        dmsg = this.history.shift();\r\n        dmsg.msg.remove();\r\n        dmsg.$slot.remove();\r\n      }\r\n      return $slot;\r\n    };\r\n\r\n    _Messenger.prototype._enforceIdConstraint = function(msg) {\r\n      var entry, _i, _len, _msg, _ref2;\r\n      if (msg.options.id == null) {\r\n        return;\r\n      }\r\n      _ref2 = this.history;\r\n      for (_i = 0, _len = _ref2.length; _i < _len; _i++) {\r\n        entry = _ref2[_i];\r\n        _msg = entry.msg;\r\n        if ((_msg.options.id != null) && _msg.options.id === msg.options.id && msg !== _msg) {\r\n          if (msg.options.singleton) {\r\n            msg.hide();\r\n            return;\r\n          } else {\r\n            _msg.hide();\r\n          }\r\n        }\r\n      }\r\n    };\r\n\r\n    _Messenger.prototype.newMessage = function(opts) {\r\n      var msg, _ref2, _ref3, _ref4,\r\n        _this = this;\r\n      if (opts == null) {\r\n        opts = {};\r\n      }\r\n      opts.messenger = this;\r\n      _Message = (_ref2 = (_ref3 = Messenger.themes[(_ref4 = opts.theme) != null ? _ref4 : this.options.theme]) != null ? _ref3.Message : void 0) != null ? _ref2 : RetryingMessage;\r\n      msg = new _Message(opts);\r\n      msg.on('show', function() {\r\n        if (opts.scrollTo && _this.$el.css('position') !== 'fixed') {\r\n          return msg.scrollTo();\r\n        }\r\n      });\r\n      msg.on('hide show render', this.updateMessageSlotClasses, this);\r\n      return msg;\r\n    };\r\n\r\n    _Messenger.prototype.updateMessageSlotClasses = function() {\r\n      var anyShown, last, rec, willBeFirst, _i, _len, _ref2;\r\n      willBeFirst = true;\r\n      last = null;\r\n      anyShown = false;\r\n      _ref2 = this.history;\r\n      for (_i = 0, _len = _ref2.length; _i < _len; _i++) {\r\n        rec = _ref2[_i];\r\n        rec.$slot.removeClass('messenger-first messenger-last messenger-shown');\r\n        if (rec.msg.shown && rec.msg.rendered) {\r\n          rec.$slot.addClass('messenger-shown');\r\n          anyShown = true;\r\n          last = rec;\r\n          if (willBeFirst) {\r\n            willBeFirst = false;\r\n            rec.$slot.addClass('messenger-first');\r\n          }\r\n        }\r\n      }\r\n      if (last != null) {\r\n        last.$slot.addClass('messenger-last');\r\n      }\r\n      return this.$el[\"\" + (anyShown ? 'remove' : 'add') + \"Class\"]('messenger-empty');\r\n    };\r\n\r\n    _Messenger.prototype.hideAll = function() {\r\n      var rec, _i, _len, _ref2, _results;\r\n      _ref2 = this.history;\r\n      _results = [];\r\n      for (_i = 0, _len = _ref2.length; _i < _len; _i++) {\r\n        rec = _ref2[_i];\r\n        _results.push(rec.msg.hide());\r\n      }\r\n      return _results;\r\n    };\r\n\r\n    _Messenger.prototype.post = function(opts) {\r\n      var msg;\r\n      if (_.isString(opts)) {\r\n        opts = {\r\n          message: opts\r\n        };\r\n      }\r\n      opts = $.extend(true, {}, this.messageDefaults, opts);\r\n      msg = this.newMessage(opts);\r\n      msg.update(opts);\r\n      return msg;\r\n    };\r\n\r\n    return _Messenger;\r\n\r\n  })(BaseView);\r\n\r\n  ActionMessenger = (function(_super) {\r\n\r\n    __extends(ActionMessenger, _super);\r\n\r\n    function ActionMessenger() {\r\n      return ActionMessenger.__super__.constructor.apply(this, arguments);\r\n    }\r\n\r\n    ActionMessenger.prototype.doDefaults = {\r\n      progressMessage: null,\r\n      successMessage: null,\r\n      errorMessage: \"Error connecting to the server.\",\r\n      showSuccessWithoutError: true,\r\n      retry: {\r\n        auto: true,\r\n        allow: true\r\n      },\r\n      action: $.ajax\r\n    };\r\n\r\n    ActionMessenger.prototype.hookBackboneAjax = function(msgr_opts) {\r\n      var _ajax,\r\n        _this = this;\r\n      if (msgr_opts == null) {\r\n        msgr_opts = {};\r\n      }\r\n      if (!(window.Backbone != null)) {\r\n        throw 'Expected Backbone to be defined';\r\n      }\r\n      msgr_opts = _.defaults(msgr_opts, {\r\n        id: 'BACKBONE_ACTION',\r\n        errorMessage: false,\r\n        successMessage: \"Request completed successfully.\",\r\n        showSuccessWithoutError: false\r\n      });\r\n      _ajax = function(options) {\r\n        var sync_msgr_opts;\r\n        sync_msgr_opts = _.extend({}, msgr_opts, options.messenger);\r\n        return _this[\"do\"](sync_msgr_opts, options);\r\n      };\r\n      if (Backbone.ajax != null) {\r\n        if (Backbone.ajax._withoutMessenger) {\r\n          Backbone.ajax = Backbone.ajax._withoutMessenger;\r\n        }\r\n        if (!(msgr_opts.action != null) || msgr_opts.action === this.doDefaults.action) {\r\n          msgr_opts.action = Backbone.ajax;\r\n        }\r\n        _ajax._withoutMessenger = Backbone.ajax;\r\n        return Backbone.ajax = _ajax;\r\n      } else {\r\n        return Backbone.sync = _.wrap(Backbone.sync, function() {\r\n          var args, _old_ajax, _old_sync;\r\n          _old_sync = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\r\n          _old_ajax = $.ajax;\r\n          $.ajax = _ajax;\r\n          _old_sync.call.apply(_old_sync, [this].concat(__slice.call(args)));\r\n          return $.ajax = _old_ajax;\r\n        });\r\n      }\r\n    };\r\n\r\n    ActionMessenger.prototype._getHandlerResponse = function(returnVal) {\r\n      if (returnVal === false) {\r\n        return false;\r\n      }\r\n      if (returnVal === true || !(returnVal != null)) {\r\n        return true;\r\n      }\r\n      return returnVal;\r\n    };\r\n\r\n    ActionMessenger.prototype._parseEvents = function(events) {\r\n      var desc, firstSpace, func, label, out, type, _ref2;\r\n      if (events == null) {\r\n        events = {};\r\n      }\r\n      out = {};\r\n      for (label in events) {\r\n        func = events[label];\r\n        firstSpace = label.indexOf(' ');\r\n        type = label.substring(0, firstSpace);\r\n        desc = label.substring(firstSpace + 1);\r\n        if ((_ref2 = out[type]) == null) {\r\n          out[type] = {};\r\n        }\r\n        out[type][desc] = func;\r\n      }\r\n      return out;\r\n    };\r\n\r\n    ActionMessenger.prototype._normalizeResponse = function() {\r\n      var data, elem, resp, type, xhr, _i, _len;\r\n      resp = 1 <= arguments.length ? __slice.call(arguments, 0) : [];\r\n      type = null;\r\n      xhr = null;\r\n      data = null;\r\n      for (_i = 0, _len = resp.length; _i < _len; _i++) {\r\n        elem = resp[_i];\r\n        if (elem === 'success' || elem === 'timeout' || elem === 'abort') {\r\n          type = elem;\r\n        } else if (((elem != null ? elem.readyState : void 0) != null) && ((elem != null ? elem.responseText : void 0) != null)) {\r\n          xhr = elem;\r\n        } else if (_.isObject(elem)) {\r\n          data = elem;\r\n        }\r\n      }\r\n      return [type, data, xhr];\r\n    };\r\n\r\n    ActionMessenger.prototype.run = function() {\r\n      var args, events, getMessageText, handler, handlers, m_opts, msg, old, opts, type, _ref2,\r\n        _this = this;\r\n      m_opts = arguments[0], opts = arguments[1], args = 3 <= arguments.length ? __slice.call(arguments, 2) : [];\r\n      if (opts == null) {\r\n        opts = {};\r\n      }\r\n      m_opts = $.extend(true, {}, this.messageDefaults, this.doDefaults, m_opts != null ? m_opts : {});\r\n      events = this._parseEvents(m_opts.events);\r\n      getMessageText = function(type, xhr) {\r\n        var message;\r\n        message = m_opts[type + 'Message'];\r\n        if (_.isFunction(message)) {\r\n          return message.call(_this, type, xhr);\r\n        }\r\n        return message;\r\n      };\r\n      msg = (_ref2 = m_opts.messageInstance) != null ? _ref2 : this.newMessage(m_opts);\r\n      if (m_opts.id != null) {\r\n        msg.options.id = m_opts.id;\r\n      }\r\n      if (m_opts.progressMessage != null) {\r\n        msg.update($.extend({}, m_opts, {\r\n          message: getMessageText('progress', null),\r\n          type: 'info'\r\n        }));\r\n      }\r\n      handlers = {};\r\n      _.each(['error', 'success'], function(type) {\r\n        var originalHandler;\r\n        originalHandler = opts[type];\r\n        return handlers[type] = function() {\r\n          var data, defaultOpts, handlerResp, msgOpts, reason, resp, responseOpts, xhr, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;\r\n          resp = 1 <= arguments.length ? __slice.call(arguments, 0) : [];\r\n          _ref3 = _this._normalizeResponse.apply(_this, resp), reason = _ref3[0], data = _ref3[1], xhr = _ref3[2];\r\n          if (type === 'success' && !(msg.errorCount != null) && m_opts.showSuccessWithoutError === false) {\r\n            m_opts['successMessage'] = null;\r\n          }\r\n          if (type === 'error') {\r\n            if ((_ref4 = m_opts.errorCount) == null) {\r\n              m_opts.errorCount = 0;\r\n            }\r\n            m_opts.errorCount += 1;\r\n          }\r\n          handlerResp = m_opts.returnsPromise ? resp[0] : typeof originalHandler === \"function\" ? originalHandler.apply(null, resp) : void 0;\r\n          responseOpts = _this._getHandlerResponse(handlerResp);\r\n          if (_.isString(responseOpts)) {\r\n            responseOpts = {\r\n              message: responseOpts\r\n            };\r\n          }\r\n          if (type === 'error' && ((xhr != null ? xhr.status : void 0) === 0 || reason === 'abort')) {\r\n            msg.hide();\r\n            return;\r\n          }\r\n          if (type === 'error' && ((m_opts.ignoredErrorCodes != null) && (_ref5 = xhr != null ? xhr.status : void 0, __indexOf.call(m_opts.ignoredErrorCodes, _ref5) >= 0))) {\r\n            msg.hide();\r\n            return;\r\n          }\r\n          defaultOpts = {\r\n            message: getMessageText(type, xhr),\r\n            type: type,\r\n            events: (_ref6 = events[type]) != null ? _ref6 : {},\r\n            hideOnNavigate: type === 'success'\r\n          };\r\n          msgOpts = $.extend({}, m_opts, defaultOpts, responseOpts);\r\n          if (typeof ((_ref7 = msgOpts.retry) != null ? _ref7.allow : void 0) === 'number') {\r\n            msgOpts.retry.allow--;\r\n          }\r\n          if (type === 'error' && (xhr != null ? xhr.status : void 0) >= 500 && ((_ref8 = msgOpts.retry) != null ? _ref8.allow : void 0)) {\r\n            if (msgOpts.retry.delay == null) {\r\n              if (msgOpts.errorCount < 4) {\r\n                msgOpts.retry.delay = 10;\r\n              } else {\r\n                msgOpts.retry.delay = 5 * 60;\r\n              }\r\n            }\r\n            if (msgOpts.hideAfter) {\r\n              if ((_ref9 = msgOpts._hideAfter) == null) {\r\n                msgOpts._hideAfter = msgOpts.hideAfter;\r\n              }\r\n              msgOpts.hideAfter = msgOpts._hideAfter + msgOpts.retry.delay;\r\n            }\r\n            msgOpts._retryActions = true;\r\n            msgOpts.actions = {\r\n              retry: {\r\n                label: 'retry now',\r\n                phrase: 'Retrying TIME',\r\n                auto: msgOpts.retry.auto,\r\n                delay: msgOpts.retry.delay,\r\n                action: function() {\r\n                  msgOpts.messageInstance = msg;\r\n                  return setTimeout(function() {\r\n                    return _this[\"do\"].apply(_this, [msgOpts, opts].concat(__slice.call(args)));\r\n                  }, 0);\r\n                }\r\n              },\r\n              cancel: {\r\n                action: function() {\r\n                  return msg.cancel();\r\n                }\r\n              }\r\n            };\r\n          } else if (msgOpts._retryActions) {\r\n            delete msgOpts.actions.retry;\r\n            delete msgOpts.actions.cancel;\r\n            delete m_opts._retryActions;\r\n          }\r\n          msg.update(msgOpts);\r\n          if (responseOpts && msgOpts.message) {\r\n            Messenger(_.extend({}, _this.options, {\r\n              instance: _this\r\n            }));\r\n            return msg.show();\r\n          } else {\r\n            return msg.hide();\r\n          }\r\n        };\r\n      });\r\n      if (!m_opts.returnsPromise) {\r\n        for (type in handlers) {\r\n          handler = handlers[type];\r\n          old = opts[type];\r\n          opts[type] = handler;\r\n        }\r\n      }\r\n      msg._actionInstance = m_opts.action.apply(m_opts, [opts].concat(__slice.call(args)));\r\n      if (m_opts.returnsPromise) {\r\n        msg._actionInstance.then(handlers.success, handlers.error);\r\n      }\r\n      return msg;\r\n    };\r\n\r\n    ActionMessenger.prototype[\"do\"] = ActionMessenger.prototype.run;\r\n\r\n    ActionMessenger.prototype.ajax = function() {\r\n      var args, m_opts;\r\n      m_opts = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\r\n      m_opts.action = $.ajax;\r\n      return this.run.apply(this, [m_opts].concat(__slice.call(args)));\r\n    };\r\n\r\n    ActionMessenger.prototype.expectPromise = function(action, m_opts) {\r\n      m_opts = _.extend({}, m_opts, {\r\n        action: action,\r\n        returnsPromise: true\r\n      });\r\n      return this.run(m_opts);\r\n    };\r\n\r\n    ActionMessenger.prototype.error = function(m_opts) {\r\n      if (m_opts == null) {\r\n        m_opts = {};\r\n      }\r\n      if (typeof m_opts === 'string') {\r\n        m_opts = {\r\n          message: m_opts\r\n        };\r\n      }\r\n      m_opts.type = 'error';\r\n      return this.post(m_opts);\r\n    };\r\n\r\n    ActionMessenger.prototype.info = function(m_opts) {\r\n      if (m_opts == null) {\r\n        m_opts = {};\r\n      }\r\n      if (typeof m_opts === 'string') {\r\n        m_opts = {\r\n          message: m_opts\r\n        };\r\n      }\r\n      m_opts.type = 'info';\r\n      return this.post(m_opts);\r\n    };\r\n\r\n    ActionMessenger.prototype.success = function(m_opts) {\r\n      if (m_opts == null) {\r\n        m_opts = {};\r\n      }\r\n      if (typeof m_opts === 'string') {\r\n        m_opts = {\r\n          message: m_opts\r\n        };\r\n      }\r\n      m_opts.type = 'success';\r\n      return this.post(m_opts);\r\n    };\r\n\r\n    return ActionMessenger;\r\n\r\n  })(_Messenger);\r\n\r\n  $.fn.messenger = function() {\r\n    var $el, args, func, instance, opts, _ref2, _ref3, _ref4;\r\n    func = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\r\n    if (func == null) {\r\n      func = {};\r\n    }\r\n    $el = this;\r\n    if (!(func != null) || !_.isString(func)) {\r\n      opts = func;\r\n      if (!($el.data('messenger') != null)) {\r\n        _Messenger = (_ref2 = (_ref3 = Messenger.themes[opts.theme]) != null ? _ref3.Messenger : void 0) != null ? _ref2 : ActionMessenger;\r\n        $el.data('messenger', instance = new _Messenger($.extend({\r\n          el: $el\r\n        }, opts)));\r\n        instance.render();\r\n      }\r\n      return $el.data('messenger');\r\n    } else {\r\n      return (_ref4 = $el.data('messenger'))[func].apply(_ref4, args);\r\n    }\r\n  };\r\n\r\n  window.Messenger._call = function(opts) {\r\n    var $el, $parent, choosen_loc, chosen_loc, classes, defaultOpts, inst, loc, locations, _i, _len;\r\n    defaultOpts = {\r\n      extraClasses: 'messenger-fixed messenger-on-bottom messenger-on-right',\r\n      theme: 'future',\r\n      maxMessages: 9,\r\n      parentLocations: ['body']\r\n    };\r\n    opts = $.extend(defaultOpts, $._messengerDefaults, Messenger.options, opts);\r\n    if (opts.theme != null) {\r\n      opts.extraClasses += \" messenger-theme-\" + opts.theme;\r\n    }\r\n    inst = opts.instance || Messenger.instance;\r\n    if (opts.instance == null) {\r\n      locations = opts.parentLocations;\r\n      $parent = null;\r\n      choosen_loc = null;\r\n      for (_i = 0, _len = locations.length; _i < _len; _i++) {\r\n        loc = locations[_i];\r\n        $parent = $(loc);\r\n        if ($parent.length) {\r\n          chosen_loc = loc;\r\n          break;\r\n        }\r\n      }\r\n      if (!inst) {\r\n        $el = $('<ul>');\r\n        $parent.prepend($el);\r\n        inst = $el.messenger(opts);\r\n        inst._location = chosen_loc;\r\n        Messenger.instance = inst;\r\n      } else if (!$(inst._location).is($(chosen_loc))) {\r\n        inst.$el.detach();\r\n        $parent.prepend(inst.$el);\r\n      }\r\n    }\r\n    if (inst._addedClasses != null) {\r\n      inst.$el.removeClass(inst._addedClasses);\r\n    }\r\n    inst.$el.addClass(classes = \"\" + inst.className + \" \" + opts.extraClasses);\r\n    inst._addedClasses = classes;\r\n    return inst;\r\n  };\r\n\r\n  $.extend(Messenger, {\r\n    Message: RetryingMessage,\r\n    Messenger: ActionMessenger,\r\n    themes: (_ref2 = Messenger.themes) != null ? _ref2 : {}\r\n  });\r\n\r\n  $.globalMessenger = window.Messenger = Messenger;\r\n\r\n}).call(this);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/messenger/build/js/messenger.js\n// module id = 446\n// module chunks = 2","(function() {\r\n  var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Evented, Events, NoTargetError, Pace, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, animation, avgAmplitude, bar, cancelAnimation, cancelAnimationFrame, defaultOptions, extend, extendNative, getFromDOM, getIntercept, handlePushState, ignoreStack, init, now, options, paceHideStyle, requestAnimationFrame, result, runAnimation, scalers, shouldIgnoreURL, shouldTrack, source, sources, uniScaler, _WebSocket, _XDomainRequest, _XMLHttpRequest, _i, _intercept, _len, _pushState, _ref, _ref1, _replaceState,\r\n    __slice = [].slice,\r\n    __hasProp = {}.hasOwnProperty,\r\n    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };\r\n\r\n  defaultOptions = {\r\n    hidePage: false,\r\n    catchupTime: 100,\r\n    initialRate: .03,\r\n    minTime: 250,\r\n    ghostTime: 100,\r\n    maxProgressPerFrame: 20,\r\n    easeFactor: 1.25,\r\n    startOnPageLoad: true,\r\n    restartOnPushState: true,\r\n    restartOnRequestAfter: 500,\r\n    target: 'body',\r\n    elements: {\r\n      checkInterval: 100,\r\n      selectors: ['body']\r\n    },\r\n    eventLag: {\r\n      minSamples: 10,\r\n      sampleCount: 3,\r\n      lagThreshold: 3\r\n    },\r\n    ajax: {\r\n      trackMethods: ['GET'],\r\n      trackWebSockets: true,\r\n      ignoreURLs: []\r\n    }\r\n  };\r\n\r\n  now = function() {\r\n    var _ref;\r\n    return (_ref = typeof performance !== \"undefined\" && performance !== null ? typeof performance.now === \"function\" ? performance.now() : void 0 : void 0) != null ? _ref : +(new Date);\r\n  };\r\n\r\n  requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;\r\n\r\n  cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame;\r\n\r\n  if (requestAnimationFrame == null) {\r\n    requestAnimationFrame = function(fn) {\r\n      return setTimeout(fn, 50);\r\n    };\r\n    cancelAnimationFrame = function(id) {\r\n      return clearTimeout(id);\r\n    };\r\n  }\r\n\r\n  runAnimation = function(fn) {\r\n    var last, tick;\r\n    last = now();\r\n    tick = function() {\r\n      var diff;\r\n      diff = now() - last;\r\n      if (diff >= 33) {\r\n        last = now();\r\n        return fn(diff, function() {\r\n          return requestAnimationFrame(tick);\r\n        });\r\n      } else {\r\n        return setTimeout(tick, 33 - diff);\r\n      }\r\n    };\r\n    return tick();\r\n  };\r\n\r\n  result = function() {\r\n    var args, key, obj;\r\n    obj = arguments[0], key = arguments[1], args = 3 <= arguments.length ? __slice.call(arguments, 2) : [];\r\n    if (typeof obj[key] === 'function') {\r\n      return obj[key].apply(obj, args);\r\n    } else {\r\n      return obj[key];\r\n    }\r\n  };\r\n\r\n  extend = function() {\r\n    var key, out, source, sources, val, _i, _len;\r\n    out = arguments[0], sources = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\r\n    for (_i = 0, _len = sources.length; _i < _len; _i++) {\r\n      source = sources[_i];\r\n      if (source) {\r\n        for (key in source) {\r\n          if (!__hasProp.call(source, key)) continue;\r\n          val = source[key];\r\n          if ((out[key] != null) && typeof out[key] === 'object' && (val != null) && typeof val === 'object') {\r\n            extend(out[key], val);\r\n          } else {\r\n            out[key] = val;\r\n          }\r\n        }\r\n      }\r\n    }\r\n    return out;\r\n  };\r\n\r\n  avgAmplitude = function(arr) {\r\n    var count, sum, v, _i, _len;\r\n    sum = count = 0;\r\n    for (_i = 0, _len = arr.length; _i < _len; _i++) {\r\n      v = arr[_i];\r\n      sum += Math.abs(v);\r\n      count++;\r\n    }\r\n    return sum / count;\r\n  };\r\n\r\n  getFromDOM = function(key, json) {\r\n    var data, e, el;\r\n    if (key == null) {\r\n      key = 'options';\r\n    }\r\n    if (json == null) {\r\n      json = true;\r\n    }\r\n    el = document.querySelector(\"[data-pace-\" + key + \"]\");\r\n    if (!el) {\r\n      return;\r\n    }\r\n    data = el.getAttribute(\"data-pace-\" + key);\r\n    if (!json) {\r\n      return data;\r\n    }\r\n    try {\r\n      return JSON.parse(data);\r\n    } catch (_error) {\r\n      e = _error;\r\n      return typeof console !== \"undefined\" && console !== null ? console.error(\"Error parsing inline pace options\", e) : void 0;\r\n    }\r\n  };\r\n\r\n  Evented = (function() {\r\n    function Evented() {}\r\n\r\n    Evented.prototype.on = function(event, handler, ctx, once) {\r\n      var _base;\r\n      if (once == null) {\r\n        once = false;\r\n      }\r\n      if (this.bindings == null) {\r\n        this.bindings = {};\r\n      }\r\n      if ((_base = this.bindings)[event] == null) {\r\n        _base[event] = [];\r\n      }\r\n      return this.bindings[event].push({\r\n        handler: handler,\r\n        ctx: ctx,\r\n        once: once\r\n      });\r\n    };\r\n\r\n    Evented.prototype.once = function(event, handler, ctx) {\r\n      return this.on(event, handler, ctx, true);\r\n    };\r\n\r\n    Evented.prototype.off = function(event, handler) {\r\n      var i, _ref, _results;\r\n      if (((_ref = this.bindings) != null ? _ref[event] : void 0) == null) {\r\n        return;\r\n      }\r\n      if (handler == null) {\r\n        return delete this.bindings[event];\r\n      } else {\r\n        i = 0;\r\n        _results = [];\r\n        while (i < this.bindings[event].length) {\r\n          if (this.bindings[event][i].handler === handler) {\r\n            _results.push(this.bindings[event].splice(i, 1));\r\n          } else {\r\n            _results.push(i++);\r\n          }\r\n        }\r\n        return _results;\r\n      }\r\n    };\r\n\r\n    Evented.prototype.trigger = function() {\r\n      var args, ctx, event, handler, i, once, _ref, _ref1, _results;\r\n      event = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\r\n      if ((_ref = this.bindings) != null ? _ref[event] : void 0) {\r\n        i = 0;\r\n        _results = [];\r\n        while (i < this.bindings[event].length) {\r\n          _ref1 = this.bindings[event][i], handler = _ref1.handler, ctx = _ref1.ctx, once = _ref1.once;\r\n          handler.apply(ctx != null ? ctx : this, args);\r\n          if (once) {\r\n            _results.push(this.bindings[event].splice(i, 1));\r\n          } else {\r\n            _results.push(i++);\r\n          }\r\n        }\r\n        return _results;\r\n      }\r\n    };\r\n\r\n    return Evented;\r\n\r\n  })();\r\n\r\n  Pace = window.Pace || {};\r\n\r\n  window.Pace = Pace;\r\n\r\n  extend(Pace, Evented.prototype);\r\n\r\n  options = Pace.options = extend({}, defaultOptions, window.paceOptions, getFromDOM());\r\n\r\n  _ref = ['ajax', 'document', 'eventLag', 'elements'];\r\n  for (_i = 0, _len = _ref.length; _i < _len; _i++) {\r\n    source = _ref[_i];\r\n    if (options[source] === true) {\r\n      options[source] = defaultOptions[source];\r\n    }\r\n  }\r\n\r\n  NoTargetError = (function(_super) {\r\n    __extends(NoTargetError, _super);\r\n\r\n    function NoTargetError() {\r\n      _ref1 = NoTargetError.__super__.constructor.apply(this, arguments);\r\n      return _ref1;\r\n    }\r\n\r\n    return NoTargetError;\r\n\r\n  })(Error);\r\n\r\n  Bar = (function() {\r\n    function Bar() {\r\n      this.progress = 0;\r\n    }\r\n\r\n    Bar.prototype.getElement = function() {\r\n      var targetElement;\r\n      if (this.el == null) {\r\n        targetElement = document.querySelector(options.target);\r\n        if (!targetElement) {\r\n          throw new NoTargetError;\r\n        }\r\n        this.el = document.createElement('div');\r\n        this.el.className = \"pace pace-active\";\r\n        document.body.className = document.body.className.replace(/pace-done/g, '');\r\n        document.body.className += ' pace-running';\r\n        this.el.innerHTML = '<div class=\"pace-progress\">\\n  <div class=\"pace-progress-inner\"></div>\\n</div>\\n<div class=\"pace-activity\"></div>';\r\n        if (targetElement.firstChild != null) {\r\n          targetElement.insertBefore(this.el, targetElement.firstChild);\r\n        } else {\r\n          targetElement.appendChild(this.el);\r\n        }\r\n      }\r\n      return this.el;\r\n    };\r\n\r\n    Bar.prototype.finish = function() {\r\n      var el;\r\n      el = this.getElement();\r\n      el.className = el.className.replace('pace-active', '');\r\n      el.className += ' pace-inactive';\r\n      document.body.className = document.body.className.replace('pace-running', '');\r\n      return document.body.className += ' pace-done';\r\n    };\r\n\r\n    Bar.prototype.update = function(prog) {\r\n      this.progress = prog;\r\n      return this.render();\r\n    };\r\n\r\n    Bar.prototype.destroy = function() {\r\n      try {\r\n        this.getElement().parentNode.removeChild(this.getElement());\r\n      } catch (_error) {\r\n        NoTargetError = _error;\r\n      }\r\n      return this.el = void 0;\r\n    };\r\n\r\n    Bar.prototype.render = function() {\r\n      var el, progressStr;\r\n      if (document.querySelector(options.target) == null) {\r\n        return false;\r\n      }\r\n      el = this.getElement();\r\n      el.children[0].style.width = \"\" + this.progress + \"%\";\r\n      if (!this.lastRenderedProgress || this.lastRenderedProgress | 0 !== this.progress | 0) {\r\n        el.children[0].setAttribute('data-progress-text', \"\" + (this.progress | 0) + \"%\");\r\n        if (this.progress >= 100) {\r\n          progressStr = '99';\r\n        } else {\r\n          progressStr = this.progress < 10 ? \"0\" : \"\";\r\n          progressStr += this.progress | 0;\r\n        }\r\n        el.children[0].setAttribute('data-progress', \"\" + progressStr);\r\n      }\r\n      return this.lastRenderedProgress = this.progress;\r\n    };\r\n\r\n    Bar.prototype.done = function() {\r\n      return this.progress >= 100;\r\n    };\r\n\r\n    return Bar;\r\n\r\n  })();\r\n\r\n  Events = (function() {\r\n    function Events() {\r\n      this.bindings = {};\r\n    }\r\n\r\n    Events.prototype.trigger = function(name, val) {\r\n      var binding, _j, _len1, _ref2, _results;\r\n      if (this.bindings[name] != null) {\r\n        _ref2 = this.bindings[name];\r\n        _results = [];\r\n        for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {\r\n          binding = _ref2[_j];\r\n          _results.push(binding.call(this, val));\r\n        }\r\n        return _results;\r\n      }\r\n    };\r\n\r\n    Events.prototype.on = function(name, fn) {\r\n      var _base;\r\n      if ((_base = this.bindings)[name] == null) {\r\n        _base[name] = [];\r\n      }\r\n      return this.bindings[name].push(fn);\r\n    };\r\n\r\n    return Events;\r\n\r\n  })();\r\n\r\n  _XMLHttpRequest = window.XMLHttpRequest;\r\n\r\n  _XDomainRequest = window.XDomainRequest;\r\n\r\n  _WebSocket = window.WebSocket;\r\n\r\n  extendNative = function(to, from) {\r\n    var e, key, val, _results;\r\n    _results = [];\r\n    for (key in from.prototype) {\r\n      try {\r\n        val = from.prototype[key];\r\n        if ((to[key] == null) && typeof val !== 'function') {\r\n          _results.push(to[key] = val);\r\n        } else {\r\n          _results.push(void 0);\r\n        }\r\n      } catch (_error) {\r\n        e = _error;\r\n      }\r\n    }\r\n    return _results;\r\n  };\r\n\r\n  ignoreStack = [];\r\n\r\n  Pace.ignore = function() {\r\n    var args, fn, ret;\r\n    fn = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\r\n    ignoreStack.unshift('ignore');\r\n    ret = fn.apply(null, args);\r\n    ignoreStack.shift();\r\n    return ret;\r\n  };\r\n\r\n  Pace.track = function() {\r\n    var args, fn, ret;\r\n    fn = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\r\n    ignoreStack.unshift('track');\r\n    ret = fn.apply(null, args);\r\n    ignoreStack.shift();\r\n    return ret;\r\n  };\r\n\r\n  shouldTrack = function(method) {\r\n    var _ref2;\r\n    if (method == null) {\r\n      method = 'GET';\r\n    }\r\n    if (ignoreStack[0] === 'track') {\r\n      return 'force';\r\n    }\r\n    if (!ignoreStack.length && options.ajax) {\r\n      if (method === 'socket' && options.ajax.trackWebSockets) {\r\n        return true;\r\n      } else if (_ref2 = method.toUpperCase(), __indexOf.call(options.ajax.trackMethods, _ref2) >= 0) {\r\n        return true;\r\n      }\r\n    }\r\n    return false;\r\n  };\r\n\r\n  RequestIntercept = (function(_super) {\r\n    __extends(RequestIntercept, _super);\r\n\r\n    function RequestIntercept() {\r\n      var monitorXHR,\r\n        _this = this;\r\n      RequestIntercept.__super__.constructor.apply(this, arguments);\r\n      monitorXHR = function(req) {\r\n        var _open;\r\n        _open = req.open;\r\n        return req.open = function(type, url, async) {\r\n          if (shouldTrack(type)) {\r\n            _this.trigger('request', {\r\n              type: type,\r\n              url: url,\r\n              request: req\r\n            });\r\n          }\r\n          return _open.apply(req, arguments);\r\n        };\r\n      };\r\n      window.XMLHttpRequest = function(flags) {\r\n        var req;\r\n        req = new _XMLHttpRequest(flags);\r\n        monitorXHR(req);\r\n        return req;\r\n      };\r\n      try {\r\n        extendNative(window.XMLHttpRequest, _XMLHttpRequest);\r\n      } catch (_error) {}\r\n      if (_XDomainRequest != null) {\r\n        window.XDomainRequest = function() {\r\n          var req;\r\n          req = new _XDomainRequest;\r\n          monitorXHR(req);\r\n          return req;\r\n        };\r\n        try {\r\n          extendNative(window.XDomainRequest, _XDomainRequest);\r\n        } catch (_error) {}\r\n      }\r\n      if ((_WebSocket != null) && options.ajax.trackWebSockets) {\r\n        window.WebSocket = function(url, protocols) {\r\n          var req;\r\n          if (protocols != null) {\r\n            req = new _WebSocket(url, protocols);\r\n          } else {\r\n            req = new _WebSocket(url);\r\n          }\r\n          if (shouldTrack('socket')) {\r\n            _this.trigger('request', {\r\n              type: 'socket',\r\n              url: url,\r\n              protocols: protocols,\r\n              request: req\r\n            });\r\n          }\r\n          return req;\r\n        };\r\n        try {\r\n          extendNative(window.WebSocket, _WebSocket);\r\n        } catch (_error) {}\r\n      }\r\n    }\r\n\r\n    return RequestIntercept;\r\n\r\n  })(Events);\r\n\r\n  _intercept = null;\r\n\r\n  getIntercept = function() {\r\n    if (_intercept == null) {\r\n      _intercept = new RequestIntercept;\r\n    }\r\n    return _intercept;\r\n  };\r\n\r\n  shouldIgnoreURL = function(url) {\r\n    var pattern, _j, _len1, _ref2;\r\n    _ref2 = options.ajax.ignoreURLs;\r\n    for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {\r\n      pattern = _ref2[_j];\r\n      if (typeof pattern === 'string') {\r\n        if (url.indexOf(pattern) !== -1) {\r\n          return true;\r\n        }\r\n      } else {\r\n        if (pattern.test(url)) {\r\n          return true;\r\n        }\r\n      }\r\n    }\r\n    return false;\r\n  };\r\n\r\n  getIntercept().on('request', function(_arg) {\r\n    var after, args, request, type, url;\r\n    type = _arg.type, request = _arg.request, url = _arg.url;\r\n    if (shouldIgnoreURL(url)) {\r\n      return;\r\n    }\r\n    if (!Pace.running && (options.restartOnRequestAfter !== false || shouldTrack(type) === 'force')) {\r\n      args = arguments;\r\n      after = options.restartOnRequestAfter || 0;\r\n      if (typeof after === 'boolean') {\r\n        after = 0;\r\n      }\r\n      return setTimeout(function() {\r\n        var stillActive, _j, _len1, _ref2, _ref3, _results;\r\n        if (type === 'socket') {\r\n          stillActive = request.readyState < 2;\r\n        } else {\r\n          stillActive = (0 < (_ref2 = request.readyState) && _ref2 < 4);\r\n        }\r\n        if (stillActive) {\r\n          Pace.restart();\r\n          _ref3 = Pace.sources;\r\n          _results = [];\r\n          for (_j = 0, _len1 = _ref3.length; _j < _len1; _j++) {\r\n            source = _ref3[_j];\r\n            if (source instanceof AjaxMonitor) {\r\n              source.watch.apply(source, args);\r\n              break;\r\n            } else {\r\n              _results.push(void 0);\r\n            }\r\n          }\r\n          return _results;\r\n        }\r\n      }, after);\r\n    }\r\n  });\r\n\r\n  AjaxMonitor = (function() {\r\n    function AjaxMonitor() {\r\n      var _this = this;\r\n      this.elements = [];\r\n      getIntercept().on('request', function() {\r\n        return _this.watch.apply(_this, arguments);\r\n      });\r\n    }\r\n\r\n    AjaxMonitor.prototype.watch = function(_arg) {\r\n      var request, tracker, type, url;\r\n      type = _arg.type, request = _arg.request, url = _arg.url;\r\n      if (shouldIgnoreURL(url)) {\r\n        return;\r\n      }\r\n      if (type === 'socket') {\r\n        tracker = new SocketRequestTracker(request);\r\n      } else {\r\n        tracker = new XHRRequestTracker(request);\r\n      }\r\n      return this.elements.push(tracker);\r\n    };\r\n\r\n    return AjaxMonitor;\r\n\r\n  })();\r\n\r\n  XHRRequestTracker = (function() {\r\n    function XHRRequestTracker(request) {\r\n      var event, size, _j, _len1, _onreadystatechange, _ref2,\r\n        _this = this;\r\n      this.progress = 0;\r\n      if (window.ProgressEvent != null) {\r\n        size = null;\r\n        request.addEventListener('progress', function(evt) {\r\n          if (evt.lengthComputable) {\r\n            return _this.progress = 100 * evt.loaded / evt.total;\r\n          } else {\r\n            return _this.progress = _this.progress + (100 - _this.progress) / 2;\r\n          }\r\n        }, false);\r\n        _ref2 = ['load', 'abort', 'timeout', 'error'];\r\n        for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {\r\n          event = _ref2[_j];\r\n          request.addEventListener(event, function() {\r\n            return _this.progress = 100;\r\n          }, false);\r\n        }\r\n      } else {\r\n        _onreadystatechange = request.onreadystatechange;\r\n        request.onreadystatechange = function() {\r\n          var _ref3;\r\n          if ((_ref3 = request.readyState) === 0 || _ref3 === 4) {\r\n            _this.progress = 100;\r\n          } else if (request.readyState === 3) {\r\n            _this.progress = 50;\r\n          }\r\n          return typeof _onreadystatechange === \"function\" ? _onreadystatechange.apply(null, arguments) : void 0;\r\n        };\r\n      }\r\n    }\r\n\r\n    return XHRRequestTracker;\r\n\r\n  })();\r\n\r\n  SocketRequestTracker = (function() {\r\n    function SocketRequestTracker(request) {\r\n      var event, _j, _len1, _ref2,\r\n        _this = this;\r\n      this.progress = 0;\r\n      _ref2 = ['error', 'open'];\r\n      for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {\r\n        event = _ref2[_j];\r\n        request.addEventListener(event, function() {\r\n          return _this.progress = 100;\r\n        }, false);\r\n      }\r\n    }\r\n\r\n    return SocketRequestTracker;\r\n\r\n  })();\r\n\r\n  ElementMonitor = (function() {\r\n    function ElementMonitor(options) {\r\n      var selector, _j, _len1, _ref2;\r\n      if (options == null) {\r\n        options = {};\r\n      }\r\n      this.elements = [];\r\n      if (options.selectors == null) {\r\n        options.selectors = [];\r\n      }\r\n      _ref2 = options.selectors;\r\n      for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {\r\n        selector = _ref2[_j];\r\n        this.elements.push(new ElementTracker(selector));\r\n      }\r\n    }\r\n\r\n    return ElementMonitor;\r\n\r\n  })();\r\n\r\n  ElementTracker = (function() {\r\n    function ElementTracker(selector) {\r\n      this.selector = selector;\r\n      this.progress = 0;\r\n      this.check();\r\n    }\r\n\r\n    ElementTracker.prototype.check = function() {\r\n      var _this = this;\r\n      if (document.querySelector(this.selector)) {\r\n        return this.done();\r\n      } else {\r\n        return setTimeout((function() {\r\n          return _this.check();\r\n        }), options.elements.checkInterval);\r\n      }\r\n    };\r\n\r\n    ElementTracker.prototype.done = function() {\r\n      return this.progress = 100;\r\n    };\r\n\r\n    return ElementTracker;\r\n\r\n  })();\r\n\r\n  DocumentMonitor = (function() {\r\n    DocumentMonitor.prototype.states = {\r\n      loading: 0,\r\n      interactive: 50,\r\n      complete: 100\r\n    };\r\n\r\n    function DocumentMonitor() {\r\n      var _onreadystatechange, _ref2,\r\n        _this = this;\r\n      this.progress = (_ref2 = this.states[document.readyState]) != null ? _ref2 : 100;\r\n      _onreadystatechange = document.onreadystatechange;\r\n      document.onreadystatechange = function() {\r\n        if (_this.states[document.readyState] != null) {\r\n          _this.progress = _this.states[document.readyState];\r\n        }\r\n        return typeof _onreadystatechange === \"function\" ? _onreadystatechange.apply(null, arguments) : void 0;\r\n      };\r\n    }\r\n\r\n    return DocumentMonitor;\r\n\r\n  })();\r\n\r\n  EventLagMonitor = (function() {\r\n    function EventLagMonitor() {\r\n      var avg, interval, last, points, samples,\r\n        _this = this;\r\n      this.progress = 0;\r\n      avg = 0;\r\n      samples = [];\r\n      points = 0;\r\n      last = now();\r\n      interval = setInterval(function() {\r\n        var diff;\r\n        diff = now() - last - 50;\r\n        last = now();\r\n        samples.push(diff);\r\n        if (samples.length > options.eventLag.sampleCount) {\r\n          samples.shift();\r\n        }\r\n        avg = avgAmplitude(samples);\r\n        if (++points >= options.eventLag.minSamples && avg < options.eventLag.lagThreshold) {\r\n          _this.progress = 100;\r\n          return clearInterval(interval);\r\n        } else {\r\n          return _this.progress = 100 * (3 / (avg + 3));\r\n        }\r\n      }, 50);\r\n    }\r\n\r\n    return EventLagMonitor;\r\n\r\n  })();\r\n\r\n  Scaler = (function() {\r\n    function Scaler(source) {\r\n      this.source = source;\r\n      this.last = this.sinceLastUpdate = 0;\r\n      this.rate = options.initialRate;\r\n      this.catchup = 0;\r\n      this.progress = this.lastProgress = 0;\r\n      if (this.source != null) {\r\n        this.progress = result(this.source, 'progress');\r\n      }\r\n    }\r\n\r\n    Scaler.prototype.tick = function(frameTime, val) {\r\n      var scaling;\r\n      if (val == null) {\r\n        val = result(this.source, 'progress');\r\n      }\r\n      if (val >= 100) {\r\n        this.done = true;\r\n      }\r\n      if (val === this.last) {\r\n        this.sinceLastUpdate += frameTime;\r\n      } else {\r\n        if (this.sinceLastUpdate) {\r\n          this.rate = (val - this.last) / this.sinceLastUpdate;\r\n        }\r\n        this.catchup = (val - this.progress) / options.catchupTime;\r\n        this.sinceLastUpdate = 0;\r\n        this.last = val;\r\n      }\r\n      if (val > this.progress) {\r\n        this.progress += this.catchup * frameTime;\r\n      }\r\n      scaling = 1 - Math.pow(this.progress / 100, options.easeFactor);\r\n      this.progress += scaling * this.rate * frameTime;\r\n      this.progress = Math.min(this.lastProgress + options.maxProgressPerFrame, this.progress);\r\n      this.progress = Math.max(0, this.progress);\r\n      this.progress = Math.min(100, this.progress);\r\n      this.lastProgress = this.progress;\r\n      return this.progress;\r\n    };\r\n\r\n    return Scaler;\r\n\r\n  })();\r\n\r\n  sources = null;\r\n\r\n  scalers = null;\r\n\r\n  bar = null;\r\n\r\n  uniScaler = null;\r\n\r\n  animation = null;\r\n\r\n  cancelAnimation = null;\r\n\r\n  Pace.running = false;\r\n\r\n  handlePushState = function() {\r\n    if (options.restartOnPushState) {\r\n      return Pace.restart();\r\n    }\r\n  };\r\n\r\n  if (window.history.pushState != null) {\r\n    _pushState = window.history.pushState;\r\n    window.history.pushState = function() {\r\n      handlePushState();\r\n      return _pushState.apply(window.history, arguments);\r\n    };\r\n  }\r\n\r\n  if (window.history.replaceState != null) {\r\n    _replaceState = window.history.replaceState;\r\n    window.history.replaceState = function() {\r\n      handlePushState();\r\n      return _replaceState.apply(window.history, arguments);\r\n    };\r\n  }\r\n\r\n  SOURCE_KEYS = {\r\n    ajax: AjaxMonitor,\r\n    elements: ElementMonitor,\r\n    document: DocumentMonitor,\r\n    eventLag: EventLagMonitor\r\n  };\r\n\r\n  (init = function() {\r\n    var type, _j, _k, _len1, _len2, _ref2, _ref3, _ref4;\r\n    Pace.sources = sources = [];\r\n    _ref2 = ['ajax', 'elements', 'document', 'eventLag'];\r\n    for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {\r\n      type = _ref2[_j];\r\n      if (options[type] !== false) {\r\n        sources.push(new SOURCE_KEYS[type](options[type]));\r\n      }\r\n    }\r\n    _ref4 = (_ref3 = options.extraSources) != null ? _ref3 : [];\r\n    for (_k = 0, _len2 = _ref4.length; _k < _len2; _k++) {\r\n      source = _ref4[_k];\r\n      sources.push(new source(options));\r\n    }\r\n    Pace.bar = bar = new Bar;\r\n    scalers = [];\r\n    return uniScaler = new Scaler;\r\n  })();\r\n\r\n  Pace.stop = function() {\r\n    Pace.trigger('stop');\r\n    Pace.running = false;\r\n    bar.destroy();\r\n    cancelAnimation = true;\r\n    if (animation != null) {\r\n      if (typeof cancelAnimationFrame === \"function\") {\r\n        cancelAnimationFrame(animation);\r\n      }\r\n      animation = null;\r\n    }\r\n    return init();\r\n  };\r\n\r\n  Pace.restart = function() {\r\n    Pace.trigger('restart');\r\n    Pace.stop();\r\n    return Pace.start();\r\n  };\r\n\r\n  Pace.go = function() {\r\n    var start;\r\n    Pace.running = true;\r\n    bar.render();\r\n    start = now();\r\n    cancelAnimation = false;\r\n    return animation = runAnimation(function(frameTime, enqueueNextFrame) {\r\n      var avg, count, done, element, elements, i, j, remaining, scaler, scalerList, sum, _j, _k, _len1, _len2, _ref2;\r\n      remaining = 100 - bar.progress;\r\n      count = sum = 0;\r\n      done = true;\r\n      for (i = _j = 0, _len1 = sources.length; _j < _len1; i = ++_j) {\r\n        source = sources[i];\r\n        scalerList = scalers[i] != null ? scalers[i] : scalers[i] = [];\r\n        elements = (_ref2 = source.elements) != null ? _ref2 : [source];\r\n        for (j = _k = 0, _len2 = elements.length; _k < _len2; j = ++_k) {\r\n          element = elements[j];\r\n          scaler = scalerList[j] != null ? scalerList[j] : scalerList[j] = new Scaler(element);\r\n          done &= scaler.done;\r\n          if (scaler.done) {\r\n            continue;\r\n          }\r\n          count++;\r\n          sum += scaler.tick(frameTime);\r\n        }\r\n      }\r\n      avg = sum / count;\r\n      bar.update(uniScaler.tick(frameTime, avg));\r\n      if (bar.done() || done || cancelAnimation) {\r\n        bar.update(100);\r\n        Pace.trigger('done');\r\n        return setTimeout(function() {\r\n          bar.finish();\r\n          Pace.running = false;\r\n          return Pace.trigger('hide');\r\n        }, Math.max(options.ghostTime, Math.max(options.minTime - (now() - start), 0)));\r\n      } else {\r\n        return enqueueNextFrame();\r\n      }\r\n    });\r\n  };\r\n\r\n  paceHideStyle = null;\r\n\r\n  Pace.start = function(_options) {\r\n    extend(options, _options);\r\n    if (options.hidePage) {\r\n      if (!paceHideStyle) {\r\n        paceHideStyle = document.createElement('style');\r\n        document.head.appendChild(paceHideStyle);\r\n      }\r\n      paceHideStyle.innerHTML = \"body > *:not(.pace), body:before, body:after { -webkit-transition: opacity .4s ease-in-out; -moz-transition: opacity .4s ease-in-out; -o-transition: opacity .4s ease-in-out; -ms-transition: opacity .4s ease-in-out; transition: opacity .4s ease-in-out } body:not(.pace-done) > *:not(.pace), body:not(.pace-done):before, body:not(.pace-done):after { opacity: 0 !important }\";\r\n    } else {\r\n      if (paceHideStyle != null) {\r\n        paceHideStyle.innerHTML = '';\r\n      }\r\n    }\r\n    Pace.running = true;\r\n    try {\r\n      bar.render();\r\n    } catch (_error) {\r\n      NoTargetError = _error;\r\n    }\r\n    if (!document.querySelector('.pace')) {\r\n      return setTimeout(Pace.start, 50);\r\n    } else {\r\n      Pace.trigger('start');\r\n      return Pace.go();\r\n    }\r\n  };\r\n\r\n  if (typeof define === 'function' && define.amd) {\r\n    define(function() {\r\n      return Pace;\r\n    });\r\n  } else if (typeof exports === 'object') {\r\n    module.exports = Pace;\r\n  } else {\r\n    if (options.startOnPageLoad) {\r\n      Pace.start();\r\n    }\r\n  }\r\n\r\n}).call(this);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pace/pace.js\n// module id = 447\n// module chunks = 2","/*!\r\n * Select2 4.0.3\r\n * https://select2.github.io\r\n *\r\n * Released under the MIT license\r\n * https://github.com/select2/select2/blob/master/LICENSE.md\r\n */\r\n(function (factory) {\r\n  if (typeof define === 'function' && define.amd) {\r\n    // AMD. Register as an anonymous module.\r\n    define(['jquery'], factory);\r\n  } else if (typeof exports === 'object') {\r\n    // Node/CommonJS\r\n    factory(require('jquery'));\r\n  } else {\r\n    // Browser globals\r\n    factory(jQuery);\r\n  }\r\n}(function (jQuery) {\r\n  // This is needed so we can catch the AMD loader configuration and use it\r\n  // The inner file should be wrapped (by `banner.start.js`) in a function that\r\n  // returns the AMD loader references.\r\n  var S2 =\r\n(function () {\r\n  // Restore the Select2 AMD loader so it can be used\r\n  // Needed mostly in the language files, where the loader is not inserted\r\n  if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {\r\n    var S2 = jQuery.fn.select2.amd;\r\n  }\r\nvar S2;(function () { if (!S2 || !S2.requirejs) {\r\nif (!S2) { S2 = {}; } else { require = S2; }\r\n/**\r\n * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.\r\n * Available via the MIT or new BSD license.\r\n * see: http://github.com/jrburke/almond for details\r\n */\r\n//Going sloppy to avoid 'use strict' string cost, but strict practices should\r\n//be followed.\r\n/*jslint sloppy: true */\r\n/*global setTimeout: false */\r\n\r\nvar requirejs, require, define;\r\n(function (undef) {\r\n    var main, req, makeMap, handlers,\r\n        defined = {},\r\n        waiting = {},\r\n        config = {},\r\n        defining = {},\r\n        hasOwn = Object.prototype.hasOwnProperty,\r\n        aps = [].slice,\r\n        jsSuffixRegExp = /\\.js$/;\r\n\r\n    function hasProp(obj, prop) {\r\n        return hasOwn.call(obj, prop);\r\n    }\r\n\r\n    /**\r\n     * Given a relative module name, like ./something, normalize it to\r\n     * a real name that can be mapped to a path.\r\n     * @param {String} name the relative name\r\n     * @param {String} baseName a real name that the name arg is relative\r\n     * to.\r\n     * @returns {String} normalized name\r\n     */\r\n    function normalize(name, baseName) {\r\n        var nameParts, nameSegment, mapValue, foundMap, lastIndex,\r\n            foundI, foundStarMap, starI, i, j, part,\r\n            baseParts = baseName && baseName.split(\"/\"),\r\n            map = config.map,\r\n            starMap = (map && map['*']) || {};\r\n\r\n        //Adjust any relative paths.\r\n        if (name && name.charAt(0) === \".\") {\r\n            //If have a base name, try to normalize against it,\r\n            //otherwise, assume it is a top-level require that will\r\n            //be relative to baseUrl in the end.\r\n            if (baseName) {\r\n                name = name.split('/');\r\n                lastIndex = name.length - 1;\r\n\r\n                // Node .js allowance:\r\n                if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {\r\n                    name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');\r\n                }\r\n\r\n                //Lop off the last part of baseParts, so that . matches the\r\n                //\"directory\" and not name of the baseName's module. For instance,\r\n                //baseName of \"one/two/three\", maps to \"one/two/three.js\", but we\r\n                //want the directory, \"one/two\" for this normalization.\r\n                name = baseParts.slice(0, baseParts.length - 1).concat(name);\r\n\r\n                //start trimDots\r\n                for (i = 0; i < name.length; i += 1) {\r\n                    part = name[i];\r\n                    if (part === \".\") {\r\n                        name.splice(i, 1);\r\n                        i -= 1;\r\n                    } else if (part === \"..\") {\r\n                        if (i === 1 && (name[2] === '..' || name[0] === '..')) {\r\n                            //End of the line. Keep at least one non-dot\r\n                            //path segment at the front so it can be mapped\r\n                            //correctly to disk. Otherwise, there is likely\r\n                            //no path mapping for a path starting with '..'.\r\n                            //This can still fail, but catches the most reasonable\r\n                            //uses of ..\r\n                            break;\r\n                        } else if (i > 0) {\r\n                            name.splice(i - 1, 2);\r\n                            i -= 2;\r\n                        }\r\n                    }\r\n                }\r\n                //end trimDots\r\n\r\n                name = name.join(\"/\");\r\n            } else if (name.indexOf('./') === 0) {\r\n                // No baseName, so this is ID is resolved relative\r\n                // to baseUrl, pull off the leading dot.\r\n                name = name.substring(2);\r\n            }\r\n        }\r\n\r\n        //Apply map config if available.\r\n        if ((baseParts || starMap) && map) {\r\n            nameParts = name.split('/');\r\n\r\n            for (i = nameParts.length; i > 0; i -= 1) {\r\n                nameSegment = nameParts.slice(0, i).join(\"/\");\r\n\r\n                if (baseParts) {\r\n                    //Find the longest baseName segment match in the config.\r\n                    //So, do joins on the biggest to smallest lengths of baseParts.\r\n                    for (j = baseParts.length; j > 0; j -= 1) {\r\n                        mapValue = map[baseParts.slice(0, j).join('/')];\r\n\r\n                        //baseName segment has  config, find if it has one for\r\n                        //this name.\r\n                        if (mapValue) {\r\n                            mapValue = mapValue[nameSegment];\r\n                            if (mapValue) {\r\n                                //Match, update name to the new value.\r\n                                foundMap = mapValue;\r\n                                foundI = i;\r\n                                break;\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n\r\n                if (foundMap) {\r\n                    break;\r\n                }\r\n\r\n                //Check for a star map match, but just hold on to it,\r\n                //if there is a shorter segment match later in a matching\r\n                //config, then favor over this star map.\r\n                if (!foundStarMap && starMap && starMap[nameSegment]) {\r\n                    foundStarMap = starMap[nameSegment];\r\n                    starI = i;\r\n                }\r\n            }\r\n\r\n            if (!foundMap && foundStarMap) {\r\n                foundMap = foundStarMap;\r\n                foundI = starI;\r\n            }\r\n\r\n            if (foundMap) {\r\n                nameParts.splice(0, foundI, foundMap);\r\n                name = nameParts.join('/');\r\n            }\r\n        }\r\n\r\n        return name;\r\n    }\r\n\r\n    function makeRequire(relName, forceSync) {\r\n        return function () {\r\n            //A version of a require function that passes a moduleName\r\n            //value for items that may need to\r\n            //look up paths relative to the moduleName\r\n            var args = aps.call(arguments, 0);\r\n\r\n            //If first arg is not require('string'), and there is only\r\n            //one arg, it is the array form without a callback. Insert\r\n            //a null so that the following concat is correct.\r\n            if (typeof args[0] !== 'string' && args.length === 1) {\r\n                args.push(null);\r\n            }\r\n            return req.apply(undef, args.concat([relName, forceSync]));\r\n        };\r\n    }\r\n\r\n    function makeNormalize(relName) {\r\n        return function (name) {\r\n            return normalize(name, relName);\r\n        };\r\n    }\r\n\r\n    function makeLoad(depName) {\r\n        return function (value) {\r\n            defined[depName] = value;\r\n        };\r\n    }\r\n\r\n    function callDep(name) {\r\n        if (hasProp(waiting, name)) {\r\n            var args = waiting[name];\r\n            delete waiting[name];\r\n            defining[name] = true;\r\n            main.apply(undef, args);\r\n        }\r\n\r\n        if (!hasProp(defined, name) && !hasProp(defining, name)) {\r\n            throw new Error('No ' + name);\r\n        }\r\n        return defined[name];\r\n    }\r\n\r\n    //Turns a plugin!resource to [plugin, resource]\r\n    //with the plugin being undefined if the name\r\n    //did not have a plugin prefix.\r\n    function splitPrefix(name) {\r\n        var prefix,\r\n            index = name ? name.indexOf('!') : -1;\r\n        if (index > -1) {\r\n            prefix = name.substring(0, index);\r\n            name = name.substring(index + 1, name.length);\r\n        }\r\n        return [prefix, name];\r\n    }\r\n\r\n    /**\r\n     * Makes a name map, normalizing the name, and using a plugin\r\n     * for normalization if necessary. Grabs a ref to plugin\r\n     * too, as an optimization.\r\n     */\r\n    makeMap = function (name, relName) {\r\n        var plugin,\r\n            parts = splitPrefix(name),\r\n            prefix = parts[0];\r\n\r\n        name = parts[1];\r\n\r\n        if (prefix) {\r\n            prefix = normalize(prefix, relName);\r\n            plugin = callDep(prefix);\r\n        }\r\n\r\n        //Normalize according\r\n        if (prefix) {\r\n            if (plugin && plugin.normalize) {\r\n                name = plugin.normalize(name, makeNormalize(relName));\r\n            } else {\r\n                name = normalize(name, relName);\r\n            }\r\n        } else {\r\n            name = normalize(name, relName);\r\n            parts = splitPrefix(name);\r\n            prefix = parts[0];\r\n            name = parts[1];\r\n            if (prefix) {\r\n                plugin = callDep(prefix);\r\n            }\r\n        }\r\n\r\n        //Using ridiculous property names for space reasons\r\n        return {\r\n            f: prefix ? prefix + '!' + name : name, //fullName\r\n            n: name,\r\n            pr: prefix,\r\n            p: plugin\r\n        };\r\n    };\r\n\r\n    function makeConfig(name) {\r\n        return function () {\r\n            return (config && config.config && config.config[name]) || {};\r\n        };\r\n    }\r\n\r\n    handlers = {\r\n        require: function (name) {\r\n            return makeRequire(name);\r\n        },\r\n        exports: function (name) {\r\n            var e = defined[name];\r\n            if (typeof e !== 'undefined') {\r\n                return e;\r\n            } else {\r\n                return (defined[name] = {});\r\n            }\r\n        },\r\n        module: function (name) {\r\n            return {\r\n                id: name,\r\n                uri: '',\r\n                exports: defined[name],\r\n                config: makeConfig(name)\r\n            };\r\n        }\r\n    };\r\n\r\n    main = function (name, deps, callback, relName) {\r\n        var cjsModule, depName, ret, map, i,\r\n            args = [],\r\n            callbackType = typeof callback,\r\n            usingExports;\r\n\r\n        //Use name if no relName\r\n        relName = relName || name;\r\n\r\n        //Call the callback to define the module, if necessary.\r\n        if (callbackType === 'undefined' || callbackType === 'function') {\r\n            //Pull out the defined dependencies and pass the ordered\r\n            //values to the callback.\r\n            //Default to [require, exports, module] if no deps\r\n            deps = !deps.length && callback.length ? ['require', 'exports', 'module'] : deps;\r\n            for (i = 0; i < deps.length; i += 1) {\r\n                map = makeMap(deps[i], relName);\r\n                depName = map.f;\r\n\r\n                //Fast path CommonJS standard dependencies.\r\n                if (depName === \"require\") {\r\n                    args[i] = handlers.require(name);\r\n                } else if (depName === \"exports\") {\r\n                    //CommonJS module spec 1.1\r\n                    args[i] = handlers.exports(name);\r\n                    usingExports = true;\r\n                } else if (depName === \"module\") {\r\n                    //CommonJS module spec 1.1\r\n                    cjsModule = args[i] = handlers.module(name);\r\n                } else if (hasProp(defined, depName) ||\r\n                           hasProp(waiting, depName) ||\r\n                           hasProp(defining, depName)) {\r\n                    args[i] = callDep(depName);\r\n                } else if (map.p) {\r\n                    map.p.load(map.n, makeRequire(relName, true), makeLoad(depName), {});\r\n                    args[i] = defined[depName];\r\n                } else {\r\n                    throw new Error(name + ' missing ' + depName);\r\n                }\r\n            }\r\n\r\n            ret = callback ? callback.apply(defined[name], args) : undefined;\r\n\r\n            if (name) {\r\n                //If setting exports via \"module\" is in play,\r\n                //favor that over return value and exports. After that,\r\n                //favor a non-undefined return value over exports use.\r\n                if (cjsModule && cjsModule.exports !== undef &&\r\n                        cjsModule.exports !== defined[name]) {\r\n                    defined[name] = cjsModule.exports;\r\n                } else if (ret !== undef || !usingExports) {\r\n                    //Use the return value from the function.\r\n                    defined[name] = ret;\r\n                }\r\n            }\r\n        } else if (name) {\r\n            //May just be an object definition for the module. Only\r\n            //worry about defining if have a module name.\r\n            defined[name] = callback;\r\n        }\r\n    };\r\n\r\n    requirejs = require = req = function (deps, callback, relName, forceSync, alt) {\r\n        if (typeof deps === \"string\") {\r\n            if (handlers[deps]) {\r\n                //callback in this case is really relName\r\n                return handlers[deps](callback);\r\n            }\r\n            //Just return the module wanted. In this scenario, the\r\n            //deps arg is the module name, and second arg (if passed)\r\n            //is just the relName.\r\n            //Normalize module name, if it contains . or ..\r\n            return callDep(makeMap(deps, callback).f);\r\n        } else if (!deps.splice) {\r\n            //deps is a config object, not an array.\r\n            config = deps;\r\n            if (config.deps) {\r\n                req(config.deps, config.callback);\r\n            }\r\n            if (!callback) {\r\n                return;\r\n            }\r\n\r\n            if (callback.splice) {\r\n                //callback is an array, which means it is a dependency list.\r\n                //Adjust args if there are dependencies\r\n                deps = callback;\r\n                callback = relName;\r\n                relName = null;\r\n            } else {\r\n                deps = undef;\r\n            }\r\n        }\r\n\r\n        //Support require(['a'])\r\n        callback = callback || function () {};\r\n\r\n        //If relName is a function, it is an errback handler,\r\n        //so remove it.\r\n        if (typeof relName === 'function') {\r\n            relName = forceSync;\r\n            forceSync = alt;\r\n        }\r\n\r\n        //Simulate async callback;\r\n        if (forceSync) {\r\n            main(undef, deps, callback, relName);\r\n        } else {\r\n            //Using a non-zero value because of concern for what old browsers\r\n            //do, and latest browsers \"upgrade\" to 4 if lower value is used:\r\n            //http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#dom-windowtimers-settimeout:\r\n            //If want a value immediately, use require('id') instead -- something\r\n            //that works in almond on the global level, but not guaranteed and\r\n            //unlikely to work in other AMD implementations.\r\n            setTimeout(function () {\r\n                main(undef, deps, callback, relName);\r\n            }, 4);\r\n        }\r\n\r\n        return req;\r\n    };\r\n\r\n    /**\r\n     * Just drops the config on the floor, but returns req in case\r\n     * the config return value is used.\r\n     */\r\n    req.config = function (cfg) {\r\n        return req(cfg);\r\n    };\r\n\r\n    /**\r\n     * Expose module registry for debugging and tooling\r\n     */\r\n    requirejs._defined = defined;\r\n\r\n    define = function (name, deps, callback) {\r\n        if (typeof name !== 'string') {\r\n            throw new Error('See almond README: incorrect module build, no module name');\r\n        }\r\n\r\n        //This module may not have dependencies\r\n        if (!deps.splice) {\r\n            //deps is not an array, so probably means\r\n            //an object literal or factory function for\r\n            //the value. Adjust args.\r\n            callback = deps;\r\n            deps = [];\r\n        }\r\n\r\n        if (!hasProp(defined, name) && !hasProp(waiting, name)) {\r\n            waiting[name] = [name, deps, callback];\r\n        }\r\n    };\r\n\r\n    define.amd = {\r\n        jQuery: true\r\n    };\r\n}());\r\n\r\nS2.requirejs = requirejs;S2.require = require;S2.define = define;\r\n}\r\n}());\r\nS2.define(\"almond\", function(){});\r\n\r\n/* global jQuery:false, $:false */\r\nS2.define('jquery',[],function () {\r\n  var _$ = jQuery || $;\r\n\r\n  if (_$ == null && console && console.error) {\r\n    console.error(\r\n      'Select2: An instance of jQuery or a jQuery-compatible library was not ' +\r\n      'found. Make sure that you are including jQuery before Select2 on your ' +\r\n      'web page.'\r\n    );\r\n  }\r\n\r\n  return _$;\r\n});\r\n\r\nS2.define('select2/utils',[\r\n  'jquery'\r\n], function ($) {\r\n  var Utils = {};\r\n\r\n  Utils.Extend = function (ChildClass, SuperClass) {\r\n    var __hasProp = {}.hasOwnProperty;\r\n\r\n    function BaseConstructor () {\r\n      this.constructor = ChildClass;\r\n    }\r\n\r\n    for (var key in SuperClass) {\r\n      if (__hasProp.call(SuperClass, key)) {\r\n        ChildClass[key] = SuperClass[key];\r\n      }\r\n    }\r\n\r\n    BaseConstructor.prototype = SuperClass.prototype;\r\n    ChildClass.prototype = new BaseConstructor();\r\n    ChildClass.__super__ = SuperClass.prototype;\r\n\r\n    return ChildClass;\r\n  };\r\n\r\n  function getMethods (theClass) {\r\n    var proto = theClass.prototype;\r\n\r\n    var methods = [];\r\n\r\n    for (var methodName in proto) {\r\n      var m = proto[methodName];\r\n\r\n      if (typeof m !== 'function') {\r\n        continue;\r\n      }\r\n\r\n      if (methodName === 'constructor') {\r\n        continue;\r\n      }\r\n\r\n      methods.push(methodName);\r\n    }\r\n\r\n    return methods;\r\n  }\r\n\r\n  Utils.Decorate = function (SuperClass, DecoratorClass) {\r\n    var decoratedMethods = getMethods(DecoratorClass);\r\n    var superMethods = getMethods(SuperClass);\r\n\r\n    function DecoratedClass () {\r\n      var unshift = Array.prototype.unshift;\r\n\r\n      var argCount = DecoratorClass.prototype.constructor.length;\r\n\r\n      var calledConstructor = SuperClass.prototype.constructor;\r\n\r\n      if (argCount > 0) {\r\n        unshift.call(arguments, SuperClass.prototype.constructor);\r\n\r\n        calledConstructor = DecoratorClass.prototype.constructor;\r\n      }\r\n\r\n      calledConstructor.apply(this, arguments);\r\n    }\r\n\r\n    DecoratorClass.displayName = SuperClass.displayName;\r\n\r\n    function ctr () {\r\n      this.constructor = DecoratedClass;\r\n    }\r\n\r\n    DecoratedClass.prototype = new ctr();\r\n\r\n    for (var m = 0; m < superMethods.length; m++) {\r\n        var superMethod = superMethods[m];\r\n\r\n        DecoratedClass.prototype[superMethod] =\r\n          SuperClass.prototype[superMethod];\r\n    }\r\n\r\n    var calledMethod = function (methodName) {\r\n      // Stub out the original method if it's not decorating an actual method\r\n      var originalMethod = function () {};\r\n\r\n      if (methodName in DecoratedClass.prototype) {\r\n        originalMethod = DecoratedClass.prototype[methodName];\r\n      }\r\n\r\n      var decoratedMethod = DecoratorClass.prototype[methodName];\r\n\r\n      return function () {\r\n        var unshift = Array.prototype.unshift;\r\n\r\n        unshift.call(arguments, originalMethod);\r\n\r\n        return decoratedMethod.apply(this, arguments);\r\n      };\r\n    };\r\n\r\n    for (var d = 0; d < decoratedMethods.length; d++) {\r\n      var decoratedMethod = decoratedMethods[d];\r\n\r\n      DecoratedClass.prototype[decoratedMethod] = calledMethod(decoratedMethod);\r\n    }\r\n\r\n    return DecoratedClass;\r\n  };\r\n\r\n  var Observable = function () {\r\n    this.listeners = {};\r\n  };\r\n\r\n  Observable.prototype.on = function (event, callback) {\r\n    this.listeners = this.listeners || {};\r\n\r\n    if (event in this.listeners) {\r\n      this.listeners[event].push(callback);\r\n    } else {\r\n      this.listeners[event] = [callback];\r\n    }\r\n  };\r\n\r\n  Observable.prototype.trigger = function (event) {\r\n    var slice = Array.prototype.slice;\r\n    var params = slice.call(arguments, 1);\r\n\r\n    this.listeners = this.listeners || {};\r\n\r\n    // Params should always come in as an array\r\n    if (params == null) {\r\n      params = [];\r\n    }\r\n\r\n    // If there are no arguments to the event, use a temporary object\r\n    if (params.length === 0) {\r\n      params.push({});\r\n    }\r\n\r\n    // Set the `_type` of the first object to the event\r\n    params[0]._type = event;\r\n\r\n    if (event in this.listeners) {\r\n      this.invoke(this.listeners[event], slice.call(arguments, 1));\r\n    }\r\n\r\n    if ('*' in this.listeners) {\r\n      this.invoke(this.listeners['*'], arguments);\r\n    }\r\n  };\r\n\r\n  Observable.prototype.invoke = function (listeners, params) {\r\n    for (var i = 0, len = listeners.length; i < len; i++) {\r\n      listeners[i].apply(this, params);\r\n    }\r\n  };\r\n\r\n  Utils.Observable = Observable;\r\n\r\n  Utils.generateChars = function (length) {\r\n    var chars = '';\r\n\r\n    for (var i = 0; i < length; i++) {\r\n      var randomChar = Math.floor(Math.random() * 36);\r\n      chars += randomChar.toString(36);\r\n    }\r\n\r\n    return chars;\r\n  };\r\n\r\n  Utils.bind = function (func, context) {\r\n    return function () {\r\n      func.apply(context, arguments);\r\n    };\r\n  };\r\n\r\n  Utils._convertData = function (data) {\r\n    for (var originalKey in data) {\r\n      var keys = originalKey.split('-');\r\n\r\n      var dataLevel = data;\r\n\r\n      if (keys.length === 1) {\r\n        continue;\r\n      }\r\n\r\n      for (var k = 0; k < keys.length; k++) {\r\n        var key = keys[k];\r\n\r\n        // Lowercase the first letter\r\n        // By default, dash-separated becomes camelCase\r\n        key = key.substring(0, 1).toLowerCase() + key.substring(1);\r\n\r\n        if (!(key in dataLevel)) {\r\n          dataLevel[key] = {};\r\n        }\r\n\r\n        if (k == keys.length - 1) {\r\n          dataLevel[key] = data[originalKey];\r\n        }\r\n\r\n        dataLevel = dataLevel[key];\r\n      }\r\n\r\n      delete data[originalKey];\r\n    }\r\n\r\n    return data;\r\n  };\r\n\r\n  Utils.hasScroll = function (index, el) {\r\n    // Adapted from the function created by @ShadowScripter\r\n    // and adapted by @BillBarry on the Stack Exchange Code Review website.\r\n    // The original code can be found at\r\n    // http://codereview.stackexchange.com/q/13338\r\n    // and was designed to be used with the Sizzle selector engine.\r\n\r\n    var $el = $(el);\r\n    var overflowX = el.style.overflowX;\r\n    var overflowY = el.style.overflowY;\r\n\r\n    //Check both x and y declarations\r\n    if (overflowX === overflowY &&\r\n        (overflowY === 'hidden' || overflowY === 'visible')) {\r\n      return false;\r\n    }\r\n\r\n    if (overflowX === 'scroll' || overflowY === 'scroll') {\r\n      return true;\r\n    }\r\n\r\n    return ($el.innerHeight() < el.scrollHeight ||\r\n      $el.innerWidth() < el.scrollWidth);\r\n  };\r\n\r\n  Utils.escapeMarkup = function (markup) {\r\n    var replaceMap = {\r\n      '\\\\': '&#92;',\r\n      '&': '&amp;',\r\n      '<': '&lt;',\r\n      '>': '&gt;',\r\n      '\"': '&quot;',\r\n      '\\'': '&#39;',\r\n      '/': '&#47;'\r\n    };\r\n\r\n    // Do not try to escape the markup if it's not a string\r\n    if (typeof markup !== 'string') {\r\n      return markup;\r\n    }\r\n\r\n    return String(markup).replace(/[&<>\"'\\/\\\\]/g, function (match) {\r\n      return replaceMap[match];\r\n    });\r\n  };\r\n\r\n  // Append an array of jQuery nodes to a given element.\r\n  Utils.appendMany = function ($element, $nodes) {\r\n    // jQuery 1.7.x does not support $.fn.append() with an array\r\n    // Fall back to a jQuery object collection using $.fn.add()\r\n    if ($.fn.jquery.substr(0, 3) === '1.7') {\r\n      var $jqNodes = $();\r\n\r\n      $.map($nodes, function (node) {\r\n        $jqNodes = $jqNodes.add(node);\r\n      });\r\n\r\n      $nodes = $jqNodes;\r\n    }\r\n\r\n    $element.append($nodes);\r\n  };\r\n\r\n  return Utils;\r\n});\r\n\r\nS2.define('select2/results',[\r\n  'jquery',\r\n  './utils'\r\n], function ($, Utils) {\r\n  function Results ($element, options, dataAdapter) {\r\n    this.$element = $element;\r\n    this.data = dataAdapter;\r\n    this.options = options;\r\n\r\n    Results.__super__.constructor.call(this);\r\n  }\r\n\r\n  Utils.Extend(Results, Utils.Observable);\r\n\r\n  Results.prototype.render = function () {\r\n    var $results = $(\r\n      '<ul class=\"select2-results__options\" role=\"tree\"></ul>'\r\n    );\r\n\r\n    if (this.options.get('multiple')) {\r\n      $results.attr('aria-multiselectable', 'true');\r\n    }\r\n\r\n    this.$results = $results;\r\n\r\n    return $results;\r\n  };\r\n\r\n  Results.prototype.clear = function () {\r\n    this.$results.empty();\r\n  };\r\n\r\n  Results.prototype.displayMessage = function (params) {\r\n    var escapeMarkup = this.options.get('escapeMarkup');\r\n\r\n    this.clear();\r\n    this.hideLoading();\r\n\r\n    var $message = $(\r\n      '<li role=\"treeitem\" aria-live=\"assertive\"' +\r\n      ' class=\"select2-results__option\"></li>'\r\n    );\r\n\r\n    var message = this.options.get('translations').get(params.message);\r\n\r\n    $message.append(\r\n      escapeMarkup(\r\n        message(params.args)\r\n      )\r\n    );\r\n\r\n    $message[0].className += ' select2-results__message';\r\n\r\n    this.$results.append($message);\r\n  };\r\n\r\n  Results.prototype.hideMessages = function () {\r\n    this.$results.find('.select2-results__message').remove();\r\n  };\r\n\r\n  Results.prototype.append = function (data) {\r\n    this.hideLoading();\r\n\r\n    var $options = [];\r\n\r\n    if (data.results == null || data.results.length === 0) {\r\n      if (this.$results.children().length === 0) {\r\n        this.trigger('results:message', {\r\n          message: 'noResults'\r\n        });\r\n      }\r\n\r\n      return;\r\n    }\r\n\r\n    data.results = this.sort(data.results);\r\n\r\n    for (var d = 0; d < data.results.length; d++) {\r\n      var item = data.results[d];\r\n\r\n      var $option = this.option(item);\r\n\r\n      $options.push($option);\r\n    }\r\n\r\n    this.$results.append($options);\r\n  };\r\n\r\n  Results.prototype.position = function ($results, $dropdown) {\r\n    var $resultsContainer = $dropdown.find('.select2-results');\r\n    $resultsContainer.append($results);\r\n  };\r\n\r\n  Results.prototype.sort = function (data) {\r\n    var sorter = this.options.get('sorter');\r\n\r\n    return sorter(data);\r\n  };\r\n\r\n  Results.prototype.highlightFirstItem = function () {\r\n    var $options = this.$results\r\n      .find('.select2-results__option[aria-selected]');\r\n\r\n    var $selected = $options.filter('[aria-selected=true]');\r\n\r\n    // Check if there are any selected options\r\n    if ($selected.length > 0) {\r\n      // If there are selected options, highlight the first\r\n      $selected.first().trigger('mouseenter');\r\n    } else {\r\n      // If there are no selected options, highlight the first option\r\n      // in the dropdown\r\n      $options.first().trigger('mouseenter');\r\n    }\r\n\r\n    this.ensureHighlightVisible();\r\n  };\r\n\r\n  Results.prototype.setClasses = function () {\r\n    var self = this;\r\n\r\n    this.data.current(function (selected) {\r\n      var selectedIds = $.map(selected, function (s) {\r\n        return s.id.toString();\r\n      });\r\n\r\n      var $options = self.$results\r\n        .find('.select2-results__option[aria-selected]');\r\n\r\n      $options.each(function () {\r\n        var $option = $(this);\r\n\r\n        var item = $.data(this, 'data');\r\n\r\n        // id needs to be converted to a string when comparing\r\n        var id = '' + item.id;\r\n\r\n        if ((item.element != null && item.element.selected) ||\r\n            (item.element == null && $.inArray(id, selectedIds) > -1)) {\r\n          $option.attr('aria-selected', 'true');\r\n        } else {\r\n          $option.attr('aria-selected', 'false');\r\n        }\r\n      });\r\n\r\n    });\r\n  };\r\n\r\n  Results.prototype.showLoading = function (params) {\r\n    this.hideLoading();\r\n\r\n    var loadingMore = this.options.get('translations').get('searching');\r\n\r\n    var loading = {\r\n      disabled: true,\r\n      loading: true,\r\n      text: loadingMore(params)\r\n    };\r\n    var $loading = this.option(loading);\r\n    $loading.className += ' loading-results';\r\n\r\n    this.$results.prepend($loading);\r\n  };\r\n\r\n  Results.prototype.hideLoading = function () {\r\n    this.$results.find('.loading-results').remove();\r\n  };\r\n\r\n  Results.prototype.option = function (data) {\r\n    var option = document.createElement('li');\r\n    option.className = 'select2-results__option';\r\n\r\n    var attrs = {\r\n      'role': 'treeitem',\r\n      'aria-selected': 'false'\r\n    };\r\n\r\n    if (data.disabled) {\r\n      delete attrs['aria-selected'];\r\n      attrs['aria-disabled'] = 'true';\r\n    }\r\n\r\n    if (data.id == null) {\r\n      delete attrs['aria-selected'];\r\n    }\r\n\r\n    if (data._resultId != null) {\r\n      option.id = data._resultId;\r\n    }\r\n\r\n    if (data.title) {\r\n      option.title = data.title;\r\n    }\r\n\r\n    if (data.children) {\r\n      attrs.role = 'group';\r\n      attrs['aria-label'] = data.text;\r\n      delete attrs['aria-selected'];\r\n    }\r\n\r\n    for (var attr in attrs) {\r\n      var val = attrs[attr];\r\n\r\n      option.setAttribute(attr, val);\r\n    }\r\n\r\n    if (data.children) {\r\n      var $option = $(option);\r\n\r\n      var label = document.createElement('strong');\r\n      label.className = 'select2-results__group';\r\n\r\n      var $label = $(label);\r\n      this.template(data, label);\r\n\r\n      var $children = [];\r\n\r\n      for (var c = 0; c < data.children.length; c++) {\r\n        var child = data.children[c];\r\n\r\n        var $child = this.option(child);\r\n\r\n        $children.push($child);\r\n      }\r\n\r\n      var $childrenContainer = $('<ul></ul>', {\r\n        'class': 'select2-results__options select2-results__options--nested'\r\n      });\r\n\r\n      $childrenContainer.append($children);\r\n\r\n      $option.append(label);\r\n      $option.append($childrenContainer);\r\n    } else {\r\n      this.template(data, option);\r\n    }\r\n\r\n    $.data(option, 'data', data);\r\n\r\n    return option;\r\n  };\r\n\r\n  Results.prototype.bind = function (container, $container) {\r\n    var self = this;\r\n\r\n    var id = container.id + '-results';\r\n\r\n    this.$results.attr('id', id);\r\n\r\n    container.on('results:all', function (params) {\r\n      self.clear();\r\n      self.append(params.data);\r\n\r\n      if (container.isOpen()) {\r\n        self.setClasses();\r\n        self.highlightFirstItem();\r\n      }\r\n    });\r\n\r\n    container.on('results:append', function (params) {\r\n      self.append(params.data);\r\n\r\n      if (container.isOpen()) {\r\n        self.setClasses();\r\n      }\r\n    });\r\n\r\n    container.on('query', function (params) {\r\n      self.hideMessages();\r\n      self.showLoading(params);\r\n    });\r\n\r\n    container.on('select', function () {\r\n      if (!container.isOpen()) {\r\n        return;\r\n      }\r\n\r\n      self.setClasses();\r\n      self.highlightFirstItem();\r\n    });\r\n\r\n    container.on('unselect', function () {\r\n      if (!container.isOpen()) {\r\n        return;\r\n      }\r\n\r\n      self.setClasses();\r\n      self.highlightFirstItem();\r\n    });\r\n\r\n    container.on('open', function () {\r\n      // When the dropdown is open, aria-expended=\"true\"\r\n      self.$results.attr('aria-expanded', 'true');\r\n      self.$results.attr('aria-hidden', 'false');\r\n\r\n      self.setClasses();\r\n      self.ensureHighlightVisible();\r\n    });\r\n\r\n    container.on('close', function () {\r\n      // When the dropdown is closed, aria-expended=\"false\"\r\n      self.$results.attr('aria-expanded', 'false');\r\n      self.$results.attr('aria-hidden', 'true');\r\n      self.$results.removeAttr('aria-activedescendant');\r\n    });\r\n\r\n    container.on('results:toggle', function () {\r\n      var $highlighted = self.getHighlightedResults();\r\n\r\n      if ($highlighted.length === 0) {\r\n        return;\r\n      }\r\n\r\n      $highlighted.trigger('mouseup');\r\n    });\r\n\r\n    container.on('results:select', function () {\r\n      var $highlighted = self.getHighlightedResults();\r\n\r\n      if ($highlighted.length === 0) {\r\n        return;\r\n      }\r\n\r\n      var data = $highlighted.data('data');\r\n\r\n      if ($highlighted.attr('aria-selected') == 'true') {\r\n        self.trigger('close', {});\r\n      } else {\r\n        self.trigger('select', {\r\n          data: data\r\n        });\r\n      }\r\n    });\r\n\r\n    container.on('results:previous', function () {\r\n      var $highlighted = self.getHighlightedResults();\r\n\r\n      var $options = self.$results.find('[aria-selected]');\r\n\r\n      var currentIndex = $options.index($highlighted);\r\n\r\n      // If we are already at te top, don't move further\r\n      if (currentIndex === 0) {\r\n        return;\r\n      }\r\n\r\n      var nextIndex = currentIndex - 1;\r\n\r\n      // If none are highlighted, highlight the first\r\n      if ($highlighted.length === 0) {\r\n        nextIndex = 0;\r\n      }\r\n\r\n      var $next = $options.eq(nextIndex);\r\n\r\n      $next.trigger('mouseenter');\r\n\r\n      var currentOffset = self.$results.offset().top;\r\n      var nextTop = $next.offset().top;\r\n      var nextOffset = self.$results.scrollTop() + (nextTop - currentOffset);\r\n\r\n      if (nextIndex === 0) {\r\n        self.$results.scrollTop(0);\r\n      } else if (nextTop - currentOffset < 0) {\r\n        self.$results.scrollTop(nextOffset);\r\n      }\r\n    });\r\n\r\n    container.on('results:next', function () {\r\n      var $highlighted = self.getHighlightedResults();\r\n\r\n      var $options = self.$results.find('[aria-selected]');\r\n\r\n      var currentIndex = $options.index($highlighted);\r\n\r\n      var nextIndex = currentIndex + 1;\r\n\r\n      // If we are at the last option, stay there\r\n      if (nextIndex >= $options.length) {\r\n        return;\r\n      }\r\n\r\n      var $next = $options.eq(nextIndex);\r\n\r\n      $next.trigger('mouseenter');\r\n\r\n      var currentOffset = self.$results.offset().top +\r\n        self.$results.outerHeight(false);\r\n      var nextBottom = $next.offset().top + $next.outerHeight(false);\r\n      var nextOffset = self.$results.scrollTop() + nextBottom - currentOffset;\r\n\r\n      if (nextIndex === 0) {\r\n        self.$results.scrollTop(0);\r\n      } else if (nextBottom > currentOffset) {\r\n        self.$results.scrollTop(nextOffset);\r\n      }\r\n    });\r\n\r\n    container.on('results:focus', function (params) {\r\n      params.element.addClass('select2-results__option--highlighted');\r\n    });\r\n\r\n    container.on('results:message', function (params) {\r\n      self.displayMessage(params);\r\n    });\r\n\r\n    if ($.fn.mousewheel) {\r\n      this.$results.on('mousewheel', function (e) {\r\n        var top = self.$results.scrollTop();\r\n\r\n        var bottom = self.$results.get(0).scrollHeight - top + e.deltaY;\r\n\r\n        var isAtTop = e.deltaY > 0 && top - e.deltaY <= 0;\r\n        var isAtBottom = e.deltaY < 0 && bottom <= self.$results.height();\r\n\r\n        if (isAtTop) {\r\n          self.$results.scrollTop(0);\r\n\r\n          e.preventDefault();\r\n          e.stopPropagation();\r\n        } else if (isAtBottom) {\r\n          self.$results.scrollTop(\r\n            self.$results.get(0).scrollHeight - self.$results.height()\r\n          );\r\n\r\n          e.preventDefault();\r\n          e.stopPropagation();\r\n        }\r\n      });\r\n    }\r\n\r\n    this.$results.on('mouseup', '.select2-results__option[aria-selected]',\r\n      function (evt) {\r\n      var $this = $(this);\r\n\r\n      var data = $this.data('data');\r\n\r\n      if ($this.attr('aria-selected') === 'true') {\r\n        if (self.options.get('multiple')) {\r\n          self.trigger('unselect', {\r\n            originalEvent: evt,\r\n            data: data\r\n          });\r\n        } else {\r\n          self.trigger('close', {});\r\n        }\r\n\r\n        return;\r\n      }\r\n\r\n      self.trigger('select', {\r\n        originalEvent: evt,\r\n        data: data\r\n      });\r\n    });\r\n\r\n    this.$results.on('mouseenter', '.select2-results__option[aria-selected]',\r\n      function (evt) {\r\n      var data = $(this).data('data');\r\n\r\n      self.getHighlightedResults()\r\n          .removeClass('select2-results__option--highlighted');\r\n\r\n      self.trigger('results:focus', {\r\n        data: data,\r\n        element: $(this)\r\n      });\r\n    });\r\n  };\r\n\r\n  Results.prototype.getHighlightedResults = function () {\r\n    var $highlighted = this.$results\r\n    .find('.select2-results__option--highlighted');\r\n\r\n    return $highlighted;\r\n  };\r\n\r\n  Results.prototype.destroy = function () {\r\n    this.$results.remove();\r\n  };\r\n\r\n  Results.prototype.ensureHighlightVisible = function () {\r\n    var $highlighted = this.getHighlightedResults();\r\n\r\n    if ($highlighted.length === 0) {\r\n      return;\r\n    }\r\n\r\n    var $options = this.$results.find('[aria-selected]');\r\n\r\n    var currentIndex = $options.index($highlighted);\r\n\r\n    var currentOffset = this.$results.offset().top;\r\n    var nextTop = $highlighted.offset().top;\r\n    var nextOffset = this.$results.scrollTop() + (nextTop - currentOffset);\r\n\r\n    var offsetDelta = nextTop - currentOffset;\r\n    nextOffset -= $highlighted.outerHeight(false) * 2;\r\n\r\n    if (currentIndex <= 2) {\r\n      this.$results.scrollTop(0);\r\n    } else if (offsetDelta > this.$results.outerHeight() || offsetDelta < 0) {\r\n      this.$results.scrollTop(nextOffset);\r\n    }\r\n  };\r\n\r\n  Results.prototype.template = function (result, container) {\r\n    var template = this.options.get('templateResult');\r\n    var escapeMarkup = this.options.get('escapeMarkup');\r\n\r\n    var content = template(result, container);\r\n\r\n    if (content == null) {\r\n      container.style.display = 'none';\r\n    } else if (typeof content === 'string') {\r\n      container.innerHTML = escapeMarkup(content);\r\n    } else {\r\n      $(container).append(content);\r\n    }\r\n  };\r\n\r\n  return Results;\r\n});\r\n\r\nS2.define('select2/keys',[\r\n\r\n], function () {\r\n  var KEYS = {\r\n    BACKSPACE: 8,\r\n    TAB: 9,\r\n    ENTER: 13,\r\n    SHIFT: 16,\r\n    CTRL: 17,\r\n    ALT: 18,\r\n    ESC: 27,\r\n    SPACE: 32,\r\n    PAGE_UP: 33,\r\n    PAGE_DOWN: 34,\r\n    END: 35,\r\n    HOME: 36,\r\n    LEFT: 37,\r\n    UP: 38,\r\n    RIGHT: 39,\r\n    DOWN: 40,\r\n    DELETE: 46\r\n  };\r\n\r\n  return KEYS;\r\n});\r\n\r\nS2.define('select2/selection/base',[\r\n  'jquery',\r\n  '../utils',\r\n  '../keys'\r\n], function ($, Utils, KEYS) {\r\n  function BaseSelection ($element, options) {\r\n    this.$element = $element;\r\n    this.options = options;\r\n\r\n    BaseSelection.__super__.constructor.call(this);\r\n  }\r\n\r\n  Utils.Extend(BaseSelection, Utils.Observable);\r\n\r\n  BaseSelection.prototype.render = function () {\r\n    var $selection = $(\r\n      '<span class=\"select2-selection\" role=\"combobox\" ' +\r\n      ' aria-haspopup=\"true\" aria-expanded=\"false\">' +\r\n      '</span>'\r\n    );\r\n\r\n    this._tabindex = 0;\r\n\r\n    if (this.$element.data('old-tabindex') != null) {\r\n      this._tabindex = this.$element.data('old-tabindex');\r\n    } else if (this.$element.attr('tabindex') != null) {\r\n      this._tabindex = this.$element.attr('tabindex');\r\n    }\r\n\r\n    $selection.attr('title', this.$element.attr('title'));\r\n    $selection.attr('tabindex', this._tabindex);\r\n\r\n    this.$selection = $selection;\r\n\r\n    return $selection;\r\n  };\r\n\r\n  BaseSelection.prototype.bind = function (container, $container) {\r\n    var self = this;\r\n\r\n    var id = container.id + '-container';\r\n    var resultsId = container.id + '-results';\r\n\r\n    this.container = container;\r\n\r\n    this.$selection.on('focus', function (evt) {\r\n      self.trigger('focus', evt);\r\n    });\r\n\r\n    this.$selection.on('blur', function (evt) {\r\n      self._handleBlur(evt);\r\n    });\r\n\r\n    this.$selection.on('keydown', function (evt) {\r\n      self.trigger('keypress', evt);\r\n\r\n      if (evt.which === KEYS.SPACE) {\r\n        evt.preventDefault();\r\n      }\r\n    });\r\n\r\n    container.on('results:focus', function (params) {\r\n      self.$selection.attr('aria-activedescendant', params.data._resultId);\r\n    });\r\n\r\n    container.on('selection:update', function (params) {\r\n      self.update(params.data);\r\n    });\r\n\r\n    container.on('open', function () {\r\n      // When the dropdown is open, aria-expanded=\"true\"\r\n      self.$selection.attr('aria-expanded', 'true');\r\n      self.$selection.attr('aria-owns', resultsId);\r\n\r\n      self._attachCloseHandler(container);\r\n    });\r\n\r\n    container.on('close', function () {\r\n      // When the dropdown is closed, aria-expanded=\"false\"\r\n      self.$selection.attr('aria-expanded', 'false');\r\n      self.$selection.removeAttr('aria-activedescendant');\r\n      self.$selection.removeAttr('aria-owns');\r\n\r\n      self.$selection.focus();\r\n\r\n      self._detachCloseHandler(container);\r\n    });\r\n\r\n    container.on('enable', function () {\r\n      self.$selection.attr('tabindex', self._tabindex);\r\n    });\r\n\r\n    container.on('disable', function () {\r\n      self.$selection.attr('tabindex', '-1');\r\n    });\r\n  };\r\n\r\n  BaseSelection.prototype._handleBlur = function (evt) {\r\n    var self = this;\r\n\r\n    // This needs to be delayed as the active element is the body when the tab\r\n    // key is pressed, possibly along with others.\r\n    window.setTimeout(function () {\r\n      // Don't trigger `blur` if the focus is still in the selection\r\n      if (\r\n        (document.activeElement == self.$selection[0]) ||\r\n        ($.contains(self.$selection[0], document.activeElement))\r\n      ) {\r\n        return;\r\n      }\r\n\r\n      self.trigger('blur', evt);\r\n    }, 1);\r\n  };\r\n\r\n  BaseSelection.prototype._attachCloseHandler = function (container) {\r\n    var self = this;\r\n\r\n    $(document.body).on('mousedown.select2.' + container.id, function (e) {\r\n      var $target = $(e.target);\r\n\r\n      var $select = $target.closest('.select2');\r\n\r\n      var $all = $('.select2.select2-container--open');\r\n\r\n      $all.each(function () {\r\n        var $this = $(this);\r\n\r\n        if (this == $select[0]) {\r\n          return;\r\n        }\r\n\r\n        var $element = $this.data('element');\r\n\r\n        $element.select2('close');\r\n      });\r\n    });\r\n  };\r\n\r\n  BaseSelection.prototype._detachCloseHandler = function (container) {\r\n    $(document.body).off('mousedown.select2.' + container.id);\r\n  };\r\n\r\n  BaseSelection.prototype.position = function ($selection, $container) {\r\n    var $selectionContainer = $container.find('.selection');\r\n    $selectionContainer.append($selection);\r\n  };\r\n\r\n  BaseSelection.prototype.destroy = function () {\r\n    this._detachCloseHandler(this.container);\r\n  };\r\n\r\n  BaseSelection.prototype.update = function (data) {\r\n    throw new Error('The `update` method must be defined in child classes.');\r\n  };\r\n\r\n  return BaseSelection;\r\n});\r\n\r\nS2.define('select2/selection/single',[\r\n  'jquery',\r\n  './base',\r\n  '../utils',\r\n  '../keys'\r\n], function ($, BaseSelection, Utils, KEYS) {\r\n  function SingleSelection () {\r\n    SingleSelection.__super__.constructor.apply(this, arguments);\r\n  }\r\n\r\n  Utils.Extend(SingleSelection, BaseSelection);\r\n\r\n  SingleSelection.prototype.render = function () {\r\n    var $selection = SingleSelection.__super__.render.call(this);\r\n\r\n    $selection.addClass('select2-selection--single');\r\n\r\n    $selection.html(\r\n      '<span class=\"select2-selection__rendered\"></span>' +\r\n      '<span class=\"select2-selection__arrow\" role=\"presentation\">' +\r\n        '<b role=\"presentation\"></b>' +\r\n      '</span>'\r\n    );\r\n\r\n    return $selection;\r\n  };\r\n\r\n  SingleSelection.prototype.bind = function (container, $container) {\r\n    var self = this;\r\n\r\n    SingleSelection.__super__.bind.apply(this, arguments);\r\n\r\n    var id = container.id + '-container';\r\n\r\n    this.$selection.find('.select2-selection__rendered').attr('id', id);\r\n    this.$selection.attr('aria-labelledby', id);\r\n\r\n    this.$selection.on('mousedown', function (evt) {\r\n      // Only respond to left clicks\r\n      if (evt.which !== 1) {\r\n        return;\r\n      }\r\n\r\n      self.trigger('toggle', {\r\n        originalEvent: evt\r\n      });\r\n    });\r\n\r\n    this.$selection.on('focus', function (evt) {\r\n      // User focuses on the container\r\n    });\r\n\r\n    this.$selection.on('blur', function (evt) {\r\n      // User exits the container\r\n    });\r\n\r\n    container.on('focus', function (evt) {\r\n      if (!container.isOpen()) {\r\n        self.$selection.focus();\r\n      }\r\n    });\r\n\r\n    container.on('selection:update', function (params) {\r\n      self.update(params.data);\r\n    });\r\n  };\r\n\r\n  SingleSelection.prototype.clear = function () {\r\n    this.$selection.find('.select2-selection__rendered').empty();\r\n  };\r\n\r\n  SingleSelection.prototype.display = function (data, container) {\r\n    var template = this.options.get('templateSelection');\r\n    var escapeMarkup = this.options.get('escapeMarkup');\r\n\r\n    return escapeMarkup(template(data, container));\r\n  };\r\n\r\n  SingleSelection.prototype.selectionContainer = function () {\r\n    return $('<span></span>');\r\n  };\r\n\r\n  SingleSelection.prototype.update = function (data) {\r\n    if (data.length === 0) {\r\n      this.clear();\r\n      return;\r\n    }\r\n\r\n    var selection = data[0];\r\n\r\n    var $rendered = this.$selection.find('.select2-selection__rendered');\r\n    var formatted = this.display(selection, $rendered);\r\n\r\n    $rendered.empty().append(formatted);\r\n    $rendered.prop('title', selection.title || selection.text);\r\n  };\r\n\r\n  return SingleSelection;\r\n});\r\n\r\nS2.define('select2/selection/multiple',[\r\n  'jquery',\r\n  './base',\r\n  '../utils'\r\n], function ($, BaseSelection, Utils) {\r\n  function MultipleSelection ($element, options) {\r\n    MultipleSelection.__super__.constructor.apply(this, arguments);\r\n  }\r\n\r\n  Utils.Extend(MultipleSelection, BaseSelection);\r\n\r\n  MultipleSelection.prototype.render = function () {\r\n    var $selection = MultipleSelection.__super__.render.call(this);\r\n\r\n    $selection.addClass('select2-selection--multiple');\r\n\r\n    $selection.html(\r\n      '<ul class=\"select2-selection__rendered\"></ul>'\r\n    );\r\n\r\n    return $selection;\r\n  };\r\n\r\n  MultipleSelection.prototype.bind = function (container, $container) {\r\n    var self = this;\r\n\r\n    MultipleSelection.__super__.bind.apply(this, arguments);\r\n\r\n    this.$selection.on('click', function (evt) {\r\n      self.trigger('toggle', {\r\n        originalEvent: evt\r\n      });\r\n    });\r\n\r\n    this.$selection.on(\r\n      'click',\r\n      '.select2-selection__choice__remove',\r\n      function (evt) {\r\n        // Ignore the event if it is disabled\r\n        if (self.options.get('disabled')) {\r\n          return;\r\n        }\r\n\r\n        var $remove = $(this);\r\n        var $selection = $remove.parent();\r\n\r\n        var data = $selection.data('data');\r\n\r\n        self.trigger('unselect', {\r\n          originalEvent: evt,\r\n          data: data\r\n        });\r\n      }\r\n    );\r\n  };\r\n\r\n  MultipleSelection.prototype.clear = function () {\r\n    this.$selection.find('.select2-selection__rendered').empty();\r\n  };\r\n\r\n  MultipleSelection.prototype.display = function (data, container) {\r\n    var template = this.options.get('templateSelection');\r\n    var escapeMarkup = this.options.get('escapeMarkup');\r\n\r\n    return escapeMarkup(template(data, container));\r\n  };\r\n\r\n  MultipleSelection.prototype.selectionContainer = function () {\r\n    var $container = $(\r\n      '<li class=\"select2-selection__choice\">' +\r\n        '<span class=\"select2-selection__choice__remove\" role=\"presentation\">' +\r\n          '&times;' +\r\n        '</span>' +\r\n      '</li>'\r\n    );\r\n\r\n    return $container;\r\n  };\r\n\r\n  MultipleSelection.prototype.update = function (data) {\r\n    this.clear();\r\n\r\n    if (data.length === 0) {\r\n      return;\r\n    }\r\n\r\n    var $selections = [];\r\n\r\n    for (var d = 0; d < data.length; d++) {\r\n      var selection = data[d];\r\n\r\n      var $selection = this.selectionContainer();\r\n      var formatted = this.display(selection, $selection);\r\n\r\n      $selection.append(formatted);\r\n      $selection.prop('title', selection.title || selection.text);\r\n\r\n      $selection.data('data', selection);\r\n\r\n      $selections.push($selection);\r\n    }\r\n\r\n    var $rendered = this.$selection.find('.select2-selection__rendered');\r\n\r\n    Utils.appendMany($rendered, $selections);\r\n  };\r\n\r\n  return MultipleSelection;\r\n});\r\n\r\nS2.define('select2/selection/placeholder',[\r\n  '../utils'\r\n], function (Utils) {\r\n  function Placeholder (decorated, $element, options) {\r\n    this.placeholder = this.normalizePlaceholder(options.get('placeholder'));\r\n\r\n    decorated.call(this, $element, options);\r\n  }\r\n\r\n  Placeholder.prototype.normalizePlaceholder = function (_, placeholder) {\r\n    if (typeof placeholder === 'string') {\r\n      placeholder = {\r\n        id: '',\r\n        text: placeholder\r\n      };\r\n    }\r\n\r\n    return placeholder;\r\n  };\r\n\r\n  Placeholder.prototype.createPlaceholder = function (decorated, placeholder) {\r\n    var $placeholder = this.selectionContainer();\r\n\r\n    $placeholder.html(this.display(placeholder));\r\n    $placeholder.addClass('select2-selection__placeholder')\r\n                .removeClass('select2-selection__choice');\r\n\r\n    return $placeholder;\r\n  };\r\n\r\n  Placeholder.prototype.update = function (decorated, data) {\r\n    var singlePlaceholder = (\r\n      data.length == 1 && data[0].id != this.placeholder.id\r\n    );\r\n    var multipleSelections = data.length > 1;\r\n\r\n    if (multipleSelections || singlePlaceholder) {\r\n      return decorated.call(this, data);\r\n    }\r\n\r\n    this.clear();\r\n\r\n    var $placeholder = this.createPlaceholder(this.placeholder);\r\n\r\n    this.$selection.find('.select2-selection__rendered').append($placeholder);\r\n  };\r\n\r\n  return Placeholder;\r\n});\r\n\r\nS2.define('select2/selection/allowClear',[\r\n  'jquery',\r\n  '../keys'\r\n], function ($, KEYS) {\r\n  function AllowClear () { }\r\n\r\n  AllowClear.prototype.bind = function (decorated, container, $container) {\r\n    var self = this;\r\n\r\n    decorated.call(this, container, $container);\r\n\r\n    if (this.placeholder == null) {\r\n      if (this.options.get('debug') && window.console && console.error) {\r\n        console.error(\r\n          'Select2: The `allowClear` option should be used in combination ' +\r\n          'with the `placeholder` option.'\r\n        );\r\n      }\r\n    }\r\n\r\n    this.$selection.on('mousedown', '.select2-selection__clear',\r\n      function (evt) {\r\n        self._handleClear(evt);\r\n    });\r\n\r\n    container.on('keypress', function (evt) {\r\n      self._handleKeyboardClear(evt, container);\r\n    });\r\n  };\r\n\r\n  AllowClear.prototype._handleClear = function (_, evt) {\r\n    // Ignore the event if it is disabled\r\n    if (this.options.get('disabled')) {\r\n      return;\r\n    }\r\n\r\n    var $clear = this.$selection.find('.select2-selection__clear');\r\n\r\n    // Ignore the event if nothing has been selected\r\n    if ($clear.length === 0) {\r\n      return;\r\n    }\r\n\r\n    evt.stopPropagation();\r\n\r\n    var data = $clear.data('data');\r\n\r\n    for (var d = 0; d < data.length; d++) {\r\n      var unselectData = {\r\n        data: data[d]\r\n      };\r\n\r\n      // Trigger the `unselect` event, so people can prevent it from being\r\n      // cleared.\r\n      this.trigger('unselect', unselectData);\r\n\r\n      // If the event was prevented, don't clear it out.\r\n      if (unselectData.prevented) {\r\n        return;\r\n      }\r\n    }\r\n\r\n    this.$element.val(this.placeholder.id).trigger('change');\r\n\r\n    this.trigger('toggle', {});\r\n  };\r\n\r\n  AllowClear.prototype._handleKeyboardClear = function (_, evt, container) {\r\n    if (container.isOpen()) {\r\n      return;\r\n    }\r\n\r\n    if (evt.which == KEYS.DELETE || evt.which == KEYS.BACKSPACE) {\r\n      this._handleClear(evt);\r\n    }\r\n  };\r\n\r\n  AllowClear.prototype.update = function (decorated, data) {\r\n    decorated.call(this, data);\r\n\r\n    if (this.$selection.find('.select2-selection__placeholder').length > 0 ||\r\n        data.length === 0) {\r\n      return;\r\n    }\r\n\r\n    var $remove = $(\r\n      '<span class=\"select2-selection__clear\">' +\r\n        '&times;' +\r\n      '</span>'\r\n    );\r\n    $remove.data('data', data);\r\n\r\n    this.$selection.find('.select2-selection__rendered').prepend($remove);\r\n  };\r\n\r\n  return AllowClear;\r\n});\r\n\r\nS2.define('select2/selection/search',[\r\n  'jquery',\r\n  '../utils',\r\n  '../keys'\r\n], function ($, Utils, KEYS) {\r\n  function Search (decorated, $element, options) {\r\n    decorated.call(this, $element, options);\r\n  }\r\n\r\n  Search.prototype.render = function (decorated) {\r\n    var $search = $(\r\n      '<li class=\"select2-search select2-search--inline\">' +\r\n        '<input class=\"select2-search__field\" type=\"search\" tabindex=\"-1\"' +\r\n        ' autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\"' +\r\n        ' spellcheck=\"false\" role=\"textbox\" aria-autocomplete=\"list\" />' +\r\n      '</li>'\r\n    );\r\n\r\n    this.$searchContainer = $search;\r\n    this.$search = $search.find('input');\r\n\r\n    var $rendered = decorated.call(this);\r\n\r\n    this._transferTabIndex();\r\n\r\n    return $rendered;\r\n  };\r\n\r\n  Search.prototype.bind = function (decorated, container, $container) {\r\n    var self = this;\r\n\r\n    decorated.call(this, container, $container);\r\n\r\n    container.on('open', function () {\r\n      self.$search.trigger('focus');\r\n    });\r\n\r\n    container.on('close', function () {\r\n      self.$search.val('');\r\n      self.$search.removeAttr('aria-activedescendant');\r\n      self.$search.trigger('focus');\r\n    });\r\n\r\n    container.on('enable', function () {\r\n      self.$search.prop('disabled', false);\r\n\r\n      self._transferTabIndex();\r\n    });\r\n\r\n    container.on('disable', function () {\r\n      self.$search.prop('disabled', true);\r\n    });\r\n\r\n    container.on('focus', function (evt) {\r\n      self.$search.trigger('focus');\r\n    });\r\n\r\n    container.on('results:focus', function (params) {\r\n      self.$search.attr('aria-activedescendant', params.id);\r\n    });\r\n\r\n    this.$selection.on('focusin', '.select2-search--inline', function (evt) {\r\n      self.trigger('focus', evt);\r\n    });\r\n\r\n    this.$selection.on('focusout', '.select2-search--inline', function (evt) {\r\n      self._handleBlur(evt);\r\n    });\r\n\r\n    this.$selection.on('keydown', '.select2-search--inline', function (evt) {\r\n      evt.stopPropagation();\r\n\r\n      self.trigger('keypress', evt);\r\n\r\n      self._keyUpPrevented = evt.isDefaultPrevented();\r\n\r\n      var key = evt.which;\r\n\r\n      if (key === KEYS.BACKSPACE && self.$search.val() === '') {\r\n        var $previousChoice = self.$searchContainer\r\n          .prev('.select2-selection__choice');\r\n\r\n        if ($previousChoice.length > 0) {\r\n          var item = $previousChoice.data('data');\r\n\r\n          self.searchRemoveChoice(item);\r\n\r\n          evt.preventDefault();\r\n        }\r\n      }\r\n    });\r\n\r\n    // Try to detect the IE version should the `documentMode` property that\r\n    // is stored on the document. This is only implemented in IE and is\r\n    // slightly cleaner than doing a user agent check.\r\n    // This property is not available in Edge, but Edge also doesn't have\r\n    // this bug.\r\n    var msie = document.documentMode;\r\n    var disableInputEvents = msie && msie <= 11;\r\n\r\n    // Workaround for browsers which do not support the `input` event\r\n    // This will prevent double-triggering of events for browsers which support\r\n    // both the `keyup` and `input` events.\r\n    this.$selection.on(\r\n      'input.searchcheck',\r\n      '.select2-search--inline',\r\n      function (evt) {\r\n        // IE will trigger the `input` event when a placeholder is used on a\r\n        // search box. To get around this issue, we are forced to ignore all\r\n        // `input` events in IE and keep using `keyup`.\r\n        if (disableInputEvents) {\r\n          self.$selection.off('input.search input.searchcheck');\r\n          return;\r\n        }\r\n\r\n        // Unbind the duplicated `keyup` event\r\n        self.$selection.off('keyup.search');\r\n      }\r\n    );\r\n\r\n    this.$selection.on(\r\n      'keyup.search input.search',\r\n      '.select2-search--inline',\r\n      function (evt) {\r\n        // IE will trigger the `input` event when a placeholder is used on a\r\n        // search box. To get around this issue, we are forced to ignore all\r\n        // `input` events in IE and keep using `keyup`.\r\n        if (disableInputEvents && evt.type === 'input') {\r\n          self.$selection.off('input.search input.searchcheck');\r\n          return;\r\n        }\r\n\r\n        var key = evt.which;\r\n\r\n        // We can freely ignore events from modifier keys\r\n        if (key == KEYS.SHIFT || key == KEYS.CTRL || key == KEYS.ALT) {\r\n          return;\r\n        }\r\n\r\n        // Tabbing will be handled during the `keydown` phase\r\n        if (key == KEYS.TAB) {\r\n          return;\r\n        }\r\n\r\n        self.handleSearch(evt);\r\n      }\r\n    );\r\n  };\r\n\r\n  /**\r\n   * This method will transfer the tabindex attribute from the rendered\r\n   * selection to the search box. This allows for the search box to be used as\r\n   * the primary focus instead of the selection container.\r\n   *\r\n   * @private\r\n   */\r\n  Search.prototype._transferTabIndex = function (decorated) {\r\n    this.$search.attr('tabindex', this.$selection.attr('tabindex'));\r\n    this.$selection.attr('tabindex', '-1');\r\n  };\r\n\r\n  Search.prototype.createPlaceholder = function (decorated, placeholder) {\r\n    this.$search.attr('placeholder', placeholder.text);\r\n  };\r\n\r\n  Search.prototype.update = function (decorated, data) {\r\n    var searchHadFocus = this.$search[0] == document.activeElement;\r\n\r\n    this.$search.attr('placeholder', '');\r\n\r\n    decorated.call(this, data);\r\n\r\n    this.$selection.find('.select2-selection__rendered')\r\n                   .append(this.$searchContainer);\r\n\r\n    this.resizeSearch();\r\n    if (searchHadFocus) {\r\n      this.$search.focus();\r\n    }\r\n  };\r\n\r\n  Search.prototype.handleSearch = function () {\r\n    this.resizeSearch();\r\n\r\n    if (!this._keyUpPrevented) {\r\n      var input = this.$search.val();\r\n\r\n      this.trigger('query', {\r\n        term: input\r\n      });\r\n    }\r\n\r\n    this._keyUpPrevented = false;\r\n  };\r\n\r\n  Search.prototype.searchRemoveChoice = function (decorated, item) {\r\n    this.trigger('unselect', {\r\n      data: item\r\n    });\r\n\r\n    this.$search.val(item.text);\r\n    this.handleSearch();\r\n  };\r\n\r\n  Search.prototype.resizeSearch = function () {\r\n    this.$search.css('width', '25px');\r\n\r\n    var width = '';\r\n\r\n    if (this.$search.attr('placeholder') !== '') {\r\n      width = this.$selection.find('.select2-selection__rendered').innerWidth();\r\n    } else {\r\n      var minimumWidth = this.$search.val().length + 1;\r\n\r\n      width = (minimumWidth * 0.75) + 'em';\r\n    }\r\n\r\n    this.$search.css('width', width);\r\n  };\r\n\r\n  return Search;\r\n});\r\n\r\nS2.define('select2/selection/eventRelay',[\r\n  'jquery'\r\n], function ($) {\r\n  function EventRelay () { }\r\n\r\n  EventRelay.prototype.bind = function (decorated, container, $container) {\r\n    var self = this;\r\n    var relayEvents = [\r\n      'open', 'opening',\r\n      'close', 'closing',\r\n      'select', 'selecting',\r\n      'unselect', 'unselecting'\r\n    ];\r\n\r\n    var preventableEvents = ['opening', 'closing', 'selecting', 'unselecting'];\r\n\r\n    decorated.call(this, container, $container);\r\n\r\n    container.on('*', function (name, params) {\r\n      // Ignore events that should not be relayed\r\n      if ($.inArray(name, relayEvents) === -1) {\r\n        return;\r\n      }\r\n\r\n      // The parameters should always be an object\r\n      params = params || {};\r\n\r\n      // Generate the jQuery event for the Select2 event\r\n      var evt = $.Event('select2:' + name, {\r\n        params: params\r\n      });\r\n\r\n      self.$element.trigger(evt);\r\n\r\n      // Only handle preventable events if it was one\r\n      if ($.inArray(name, preventableEvents) === -1) {\r\n        return;\r\n      }\r\n\r\n      params.prevented = evt.isDefaultPrevented();\r\n    });\r\n  };\r\n\r\n  return EventRelay;\r\n});\r\n\r\nS2.define('select2/translation',[\r\n  'jquery',\r\n  'require'\r\n], function ($, require) {\r\n  function Translation (dict) {\r\n    this.dict = dict || {};\r\n  }\r\n\r\n  Translation.prototype.all = function () {\r\n    return this.dict;\r\n  };\r\n\r\n  Translation.prototype.get = function (key) {\r\n    return this.dict[key];\r\n  };\r\n\r\n  Translation.prototype.extend = function (translation) {\r\n    this.dict = $.extend({}, translation.all(), this.dict);\r\n  };\r\n\r\n  // Static functions\r\n\r\n  Translation._cache = {};\r\n\r\n  Translation.loadPath = function (path) {\r\n    if (!(path in Translation._cache)) {\r\n      var translations = require(path);\r\n\r\n      Translation._cache[path] = translations;\r\n    }\r\n\r\n    return new Translation(Translation._cache[path]);\r\n  };\r\n\r\n  return Translation;\r\n});\r\n\r\nS2.define('select2/diacritics',[\r\n\r\n], function () {\r\n  var diacritics = {\r\n    '\\u24B6': 'A',\r\n    '\\uFF21': 'A',\r\n    '\\u00C0': 'A',\r\n    '\\u00C1': 'A',\r\n    '\\u00C2': 'A',\r\n    '\\u1EA6': 'A',\r\n    '\\u1EA4': 'A',\r\n    '\\u1EAA': 'A',\r\n    '\\u1EA8': 'A',\r\n    '\\u00C3': 'A',\r\n    '\\u0100': 'A',\r\n    '\\u0102': 'A',\r\n    '\\u1EB0': 'A',\r\n    '\\u1EAE': 'A',\r\n    '\\u1EB4': 'A',\r\n    '\\u1EB2': 'A',\r\n    '\\u0226': 'A',\r\n    '\\u01E0': 'A',\r\n    '\\u00C4': 'A',\r\n    '\\u01DE': 'A',\r\n    '\\u1EA2': 'A',\r\n    '\\u00C5': 'A',\r\n    '\\u01FA': 'A',\r\n    '\\u01CD': 'A',\r\n    '\\u0200': 'A',\r\n    '\\u0202': 'A',\r\n    '\\u1EA0': 'A',\r\n    '\\u1EAC': 'A',\r\n    '\\u1EB6': 'A',\r\n    '\\u1E00': 'A',\r\n    '\\u0104': 'A',\r\n    '\\u023A': 'A',\r\n    '\\u2C6F': 'A',\r\n    '\\uA732': 'AA',\r\n    '\\u00C6': 'AE',\r\n    '\\u01FC': 'AE',\r\n    '\\u01E2': 'AE',\r\n    '\\uA734': 'AO',\r\n    '\\uA736': 'AU',\r\n    '\\uA738': 'AV',\r\n    '\\uA73A': 'AV',\r\n    '\\uA73C': 'AY',\r\n    '\\u24B7': 'B',\r\n    '\\uFF22': 'B',\r\n    '\\u1E02': 'B',\r\n    '\\u1E04': 'B',\r\n    '\\u1E06': 'B',\r\n    '\\u0243': 'B',\r\n    '\\u0182': 'B',\r\n    '\\u0181': 'B',\r\n    '\\u24B8': 'C',\r\n    '\\uFF23': 'C',\r\n    '\\u0106': 'C',\r\n    '\\u0108': 'C',\r\n    '\\u010A': 'C',\r\n    '\\u010C': 'C',\r\n    '\\u00C7': 'C',\r\n    '\\u1E08': 'C',\r\n    '\\u0187': 'C',\r\n    '\\u023B': 'C',\r\n    '\\uA73E': 'C',\r\n    '\\u24B9': 'D',\r\n    '\\uFF24': 'D',\r\n    '\\u1E0A': 'D',\r\n    '\\u010E': 'D',\r\n    '\\u1E0C': 'D',\r\n    '\\u1E10': 'D',\r\n    '\\u1E12': 'D',\r\n    '\\u1E0E': 'D',\r\n    '\\u0110': 'D',\r\n    '\\u018B': 'D',\r\n    '\\u018A': 'D',\r\n    '\\u0189': 'D',\r\n    '\\uA779': 'D',\r\n    '\\u01F1': 'DZ',\r\n    '\\u01C4': 'DZ',\r\n    '\\u01F2': 'Dz',\r\n    '\\u01C5': 'Dz',\r\n    '\\u24BA': 'E',\r\n    '\\uFF25': 'E',\r\n    '\\u00C8': 'E',\r\n    '\\u00C9': 'E',\r\n    '\\u00CA': 'E',\r\n    '\\u1EC0': 'E',\r\n    '\\u1EBE': 'E',\r\n    '\\u1EC4': 'E',\r\n    '\\u1EC2': 'E',\r\n    '\\u1EBC': 'E',\r\n    '\\u0112': 'E',\r\n    '\\u1E14': 'E',\r\n    '\\u1E16': 'E',\r\n    '\\u0114': 'E',\r\n    '\\u0116': 'E',\r\n    '\\u00CB': 'E',\r\n    '\\u1EBA': 'E',\r\n    '\\u011A': 'E',\r\n    '\\u0204': 'E',\r\n    '\\u0206': 'E',\r\n    '\\u1EB8': 'E',\r\n    '\\u1EC6': 'E',\r\n    '\\u0228': 'E',\r\n    '\\u1E1C': 'E',\r\n    '\\u0118': 'E',\r\n    '\\u1E18': 'E',\r\n    '\\u1E1A': 'E',\r\n    '\\u0190': 'E',\r\n    '\\u018E': 'E',\r\n    '\\u24BB': 'F',\r\n    '\\uFF26': 'F',\r\n    '\\u1E1E': 'F',\r\n    '\\u0191': 'F',\r\n    '\\uA77B': 'F',\r\n    '\\u24BC': 'G',\r\n    '\\uFF27': 'G',\r\n    '\\u01F4': 'G',\r\n    '\\u011C': 'G',\r\n    '\\u1E20': 'G',\r\n    '\\u011E': 'G',\r\n    '\\u0120': 'G',\r\n    '\\u01E6': 'G',\r\n    '\\u0122': 'G',\r\n    '\\u01E4': 'G',\r\n    '\\u0193': 'G',\r\n    '\\uA7A0': 'G',\r\n    '\\uA77D': 'G',\r\n    '\\uA77E': 'G',\r\n    '\\u24BD': 'H',\r\n    '\\uFF28': 'H',\r\n    '\\u0124': 'H',\r\n    '\\u1E22': 'H',\r\n    '\\u1E26': 'H',\r\n    '\\u021E': 'H',\r\n    '\\u1E24': 'H',\r\n    '\\u1E28': 'H',\r\n    '\\u1E2A': 'H',\r\n    '\\u0126': 'H',\r\n    '\\u2C67': 'H',\r\n    '\\u2C75': 'H',\r\n    '\\uA78D': 'H',\r\n    '\\u24BE': 'I',\r\n    '\\uFF29': 'I',\r\n    '\\u00CC': 'I',\r\n    '\\u00CD': 'I',\r\n    '\\u00CE': 'I',\r\n    '\\u0128': 'I',\r\n    '\\u012A': 'I',\r\n    '\\u012C': 'I',\r\n    '\\u0130': 'I',\r\n    '\\u00CF': 'I',\r\n    '\\u1E2E': 'I',\r\n    '\\u1EC8': 'I',\r\n    '\\u01CF': 'I',\r\n    '\\u0208': 'I',\r\n    '\\u020A': 'I',\r\n    '\\u1ECA': 'I',\r\n    '\\u012E': 'I',\r\n    '\\u1E2C': 'I',\r\n    '\\u0197': 'I',\r\n    '\\u24BF': 'J',\r\n    '\\uFF2A': 'J',\r\n    '\\u0134': 'J',\r\n    '\\u0248': 'J',\r\n    '\\u24C0': 'K',\r\n    '\\uFF2B': 'K',\r\n    '\\u1E30': 'K',\r\n    '\\u01E8': 'K',\r\n    '\\u1E32': 'K',\r\n    '\\u0136': 'K',\r\n    '\\u1E34': 'K',\r\n    '\\u0198': 'K',\r\n    '\\u2C69': 'K',\r\n    '\\uA740': 'K',\r\n    '\\uA742': 'K',\r\n    '\\uA744': 'K',\r\n    '\\uA7A2': 'K',\r\n    '\\u24C1': 'L',\r\n    '\\uFF2C': 'L',\r\n    '\\u013F': 'L',\r\n    '\\u0139': 'L',\r\n    '\\u013D': 'L',\r\n    '\\u1E36': 'L',\r\n    '\\u1E38': 'L',\r\n    '\\u013B': 'L',\r\n    '\\u1E3C': 'L',\r\n    '\\u1E3A': 'L',\r\n    '\\u0141': 'L',\r\n    '\\u023D': 'L',\r\n    '\\u2C62': 'L',\r\n    '\\u2C60': 'L',\r\n    '\\uA748': 'L',\r\n    '\\uA746': 'L',\r\n    '\\uA780': 'L',\r\n    '\\u01C7': 'LJ',\r\n    '\\u01C8': 'Lj',\r\n    '\\u24C2': 'M',\r\n    '\\uFF2D': 'M',\r\n    '\\u1E3E': 'M',\r\n    '\\u1E40': 'M',\r\n    '\\u1E42': 'M',\r\n    '\\u2C6E': 'M',\r\n    '\\u019C': 'M',\r\n    '\\u24C3': 'N',\r\n    '\\uFF2E': 'N',\r\n    '\\u01F8': 'N',\r\n    '\\u0143': 'N',\r\n    '\\u00D1': 'N',\r\n    '\\u1E44': 'N',\r\n    '\\u0147': 'N',\r\n    '\\u1E46': 'N',\r\n    '\\u0145': 'N',\r\n    '\\u1E4A': 'N',\r\n    '\\u1E48': 'N',\r\n    '\\u0220': 'N',\r\n    '\\u019D': 'N',\r\n    '\\uA790': 'N',\r\n    '\\uA7A4': 'N',\r\n    '\\u01CA': 'NJ',\r\n    '\\u01CB': 'Nj',\r\n    '\\u24C4': 'O',\r\n    '\\uFF2F': 'O',\r\n    '\\u00D2': 'O',\r\n    '\\u00D3': 'O',\r\n    '\\u00D4': 'O',\r\n    '\\u1ED2': 'O',\r\n    '\\u1ED0': 'O',\r\n    '\\u1ED6': 'O',\r\n    '\\u1ED4': 'O',\r\n    '\\u00D5': 'O',\r\n    '\\u1E4C': 'O',\r\n    '\\u022C': 'O',\r\n    '\\u1E4E': 'O',\r\n    '\\u014C': 'O',\r\n    '\\u1E50': 'O',\r\n    '\\u1E52': 'O',\r\n    '\\u014E': 'O',\r\n    '\\u022E': 'O',\r\n    '\\u0230': 'O',\r\n    '\\u00D6': 'O',\r\n    '\\u022A': 'O',\r\n    '\\u1ECE': 'O',\r\n    '\\u0150': 'O',\r\n    '\\u01D1': 'O',\r\n    '\\u020C': 'O',\r\n    '\\u020E': 'O',\r\n    '\\u01A0': 'O',\r\n    '\\u1EDC': 'O',\r\n    '\\u1EDA': 'O',\r\n    '\\u1EE0': 'O',\r\n    '\\u1EDE': 'O',\r\n    '\\u1EE2': 'O',\r\n    '\\u1ECC': 'O',\r\n    '\\u1ED8': 'O',\r\n    '\\u01EA': 'O',\r\n    '\\u01EC': 'O',\r\n    '\\u00D8': 'O',\r\n    '\\u01FE': 'O',\r\n    '\\u0186': 'O',\r\n    '\\u019F': 'O',\r\n    '\\uA74A': 'O',\r\n    '\\uA74C': 'O',\r\n    '\\u01A2': 'OI',\r\n    '\\uA74E': 'OO',\r\n    '\\u0222': 'OU',\r\n    '\\u24C5': 'P',\r\n    '\\uFF30': 'P',\r\n    '\\u1E54': 'P',\r\n    '\\u1E56': 'P',\r\n    '\\u01A4': 'P',\r\n    '\\u2C63': 'P',\r\n    '\\uA750': 'P',\r\n    '\\uA752': 'P',\r\n    '\\uA754': 'P',\r\n    '\\u24C6': 'Q',\r\n    '\\uFF31': 'Q',\r\n    '\\uA756': 'Q',\r\n    '\\uA758': 'Q',\r\n    '\\u024A': 'Q',\r\n    '\\u24C7': 'R',\r\n    '\\uFF32': 'R',\r\n    '\\u0154': 'R',\r\n    '\\u1E58': 'R',\r\n    '\\u0158': 'R',\r\n    '\\u0210': 'R',\r\n    '\\u0212': 'R',\r\n    '\\u1E5A': 'R',\r\n    '\\u1E5C': 'R',\r\n    '\\u0156': 'R',\r\n    '\\u1E5E': 'R',\r\n    '\\u024C': 'R',\r\n    '\\u2C64': 'R',\r\n    '\\uA75A': 'R',\r\n    '\\uA7A6': 'R',\r\n    '\\uA782': 'R',\r\n    '\\u24C8': 'S',\r\n    '\\uFF33': 'S',\r\n    '\\u1E9E': 'S',\r\n    '\\u015A': 'S',\r\n    '\\u1E64': 'S',\r\n    '\\u015C': 'S',\r\n    '\\u1E60': 'S',\r\n    '\\u0160': 'S',\r\n    '\\u1E66': 'S',\r\n    '\\u1E62': 'S',\r\n    '\\u1E68': 'S',\r\n    '\\u0218': 'S',\r\n    '\\u015E': 'S',\r\n    '\\u2C7E': 'S',\r\n    '\\uA7A8': 'S',\r\n    '\\uA784': 'S',\r\n    '\\u24C9': 'T',\r\n    '\\uFF34': 'T',\r\n    '\\u1E6A': 'T',\r\n    '\\u0164': 'T',\r\n    '\\u1E6C': 'T',\r\n    '\\u021A': 'T',\r\n    '\\u0162': 'T',\r\n    '\\u1E70': 'T',\r\n    '\\u1E6E': 'T',\r\n    '\\u0166': 'T',\r\n    '\\u01AC': 'T',\r\n    '\\u01AE': 'T',\r\n    '\\u023E': 'T',\r\n    '\\uA786': 'T',\r\n    '\\uA728': 'TZ',\r\n    '\\u24CA': 'U',\r\n    '\\uFF35': 'U',\r\n    '\\u00D9': 'U',\r\n    '\\u00DA': 'U',\r\n    '\\u00DB': 'U',\r\n    '\\u0168': 'U',\r\n    '\\u1E78': 'U',\r\n    '\\u016A': 'U',\r\n    '\\u1E7A': 'U',\r\n    '\\u016C': 'U',\r\n    '\\u00DC': 'U',\r\n    '\\u01DB': 'U',\r\n    '\\u01D7': 'U',\r\n    '\\u01D5': 'U',\r\n    '\\u01D9': 'U',\r\n    '\\u1EE6': 'U',\r\n    '\\u016E': 'U',\r\n    '\\u0170': 'U',\r\n    '\\u01D3': 'U',\r\n    '\\u0214': 'U',\r\n    '\\u0216': 'U',\r\n    '\\u01AF': 'U',\r\n    '\\u1EEA': 'U',\r\n    '\\u1EE8': 'U',\r\n    '\\u1EEE': 'U',\r\n    '\\u1EEC': 'U',\r\n    '\\u1EF0': 'U',\r\n    '\\u1EE4': 'U',\r\n    '\\u1E72': 'U',\r\n    '\\u0172': 'U',\r\n    '\\u1E76': 'U',\r\n    '\\u1E74': 'U',\r\n    '\\u0244': 'U',\r\n    '\\u24CB': 'V',\r\n    '\\uFF36': 'V',\r\n    '\\u1E7C': 'V',\r\n    '\\u1E7E': 'V',\r\n    '\\u01B2': 'V',\r\n    '\\uA75E': 'V',\r\n    '\\u0245': 'V',\r\n    '\\uA760': 'VY',\r\n    '\\u24CC': 'W',\r\n    '\\uFF37': 'W',\r\n    '\\u1E80': 'W',\r\n    '\\u1E82': 'W',\r\n    '\\u0174': 'W',\r\n    '\\u1E86': 'W',\r\n    '\\u1E84': 'W',\r\n    '\\u1E88': 'W',\r\n    '\\u2C72': 'W',\r\n    '\\u24CD': 'X',\r\n    '\\uFF38': 'X',\r\n    '\\u1E8A': 'X',\r\n    '\\u1E8C': 'X',\r\n    '\\u24CE': 'Y',\r\n    '\\uFF39': 'Y',\r\n    '\\u1EF2': 'Y',\r\n    '\\u00DD': 'Y',\r\n    '\\u0176': 'Y',\r\n    '\\u1EF8': 'Y',\r\n    '\\u0232': 'Y',\r\n    '\\u1E8E': 'Y',\r\n    '\\u0178': 'Y',\r\n    '\\u1EF6': 'Y',\r\n    '\\u1EF4': 'Y',\r\n    '\\u01B3': 'Y',\r\n    '\\u024E': 'Y',\r\n    '\\u1EFE': 'Y',\r\n    '\\u24CF': 'Z',\r\n    '\\uFF3A': 'Z',\r\n    '\\u0179': 'Z',\r\n    '\\u1E90': 'Z',\r\n    '\\u017B': 'Z',\r\n    '\\u017D': 'Z',\r\n    '\\u1E92': 'Z',\r\n    '\\u1E94': 'Z',\r\n    '\\u01B5': 'Z',\r\n    '\\u0224': 'Z',\r\n    '\\u2C7F': 'Z',\r\n    '\\u2C6B': 'Z',\r\n    '\\uA762': 'Z',\r\n    '\\u24D0': 'a',\r\n    '\\uFF41': 'a',\r\n    '\\u1E9A': 'a',\r\n    '\\u00E0': 'a',\r\n    '\\u00E1': 'a',\r\n    '\\u00E2': 'a',\r\n    '\\u1EA7': 'a',\r\n    '\\u1EA5': 'a',\r\n    '\\u1EAB': 'a',\r\n    '\\u1EA9': 'a',\r\n    '\\u00E3': 'a',\r\n    '\\u0101': 'a',\r\n    '\\u0103': 'a',\r\n    '\\u1EB1': 'a',\r\n    '\\u1EAF': 'a',\r\n    '\\u1EB5': 'a',\r\n    '\\u1EB3': 'a',\r\n    '\\u0227': 'a',\r\n    '\\u01E1': 'a',\r\n    '\\u00E4': 'a',\r\n    '\\u01DF': 'a',\r\n    '\\u1EA3': 'a',\r\n    '\\u00E5': 'a',\r\n    '\\u01FB': 'a',\r\n    '\\u01CE': 'a',\r\n    '\\u0201': 'a',\r\n    '\\u0203': 'a',\r\n    '\\u1EA1': 'a',\r\n    '\\u1EAD': 'a',\r\n    '\\u1EB7': 'a',\r\n    '\\u1E01': 'a',\r\n    '\\u0105': 'a',\r\n    '\\u2C65': 'a',\r\n    '\\u0250': 'a',\r\n    '\\uA733': 'aa',\r\n    '\\u00E6': 'ae',\r\n    '\\u01FD': 'ae',\r\n    '\\u01E3': 'ae',\r\n    '\\uA735': 'ao',\r\n    '\\uA737': 'au',\r\n    '\\uA739': 'av',\r\n    '\\uA73B': 'av',\r\n    '\\uA73D': 'ay',\r\n    '\\u24D1': 'b',\r\n    '\\uFF42': 'b',\r\n    '\\u1E03': 'b',\r\n    '\\u1E05': 'b',\r\n    '\\u1E07': 'b',\r\n    '\\u0180': 'b',\r\n    '\\u0183': 'b',\r\n    '\\u0253': 'b',\r\n    '\\u24D2': 'c',\r\n    '\\uFF43': 'c',\r\n    '\\u0107': 'c',\r\n    '\\u0109': 'c',\r\n    '\\u010B': 'c',\r\n    '\\u010D': 'c',\r\n    '\\u00E7': 'c',\r\n    '\\u1E09': 'c',\r\n    '\\u0188': 'c',\r\n    '\\u023C': 'c',\r\n    '\\uA73F': 'c',\r\n    '\\u2184': 'c',\r\n    '\\u24D3': 'd',\r\n    '\\uFF44': 'd',\r\n    '\\u1E0B': 'd',\r\n    '\\u010F': 'd',\r\n    '\\u1E0D': 'd',\r\n    '\\u1E11': 'd',\r\n    '\\u1E13': 'd',\r\n    '\\u1E0F': 'd',\r\n    '\\u0111': 'd',\r\n    '\\u018C': 'd',\r\n    '\\u0256': 'd',\r\n    '\\u0257': 'd',\r\n    '\\uA77A': 'd',\r\n    '\\u01F3': 'dz',\r\n    '\\u01C6': 'dz',\r\n    '\\u24D4': 'e',\r\n    '\\uFF45': 'e',\r\n    '\\u00E8': 'e',\r\n    '\\u00E9': 'e',\r\n    '\\u00EA': 'e',\r\n    '\\u1EC1': 'e',\r\n    '\\u1EBF': 'e',\r\n    '\\u1EC5': 'e',\r\n    '\\u1EC3': 'e',\r\n    '\\u1EBD': 'e',\r\n    '\\u0113': 'e',\r\n    '\\u1E15': 'e',\r\n    '\\u1E17': 'e',\r\n    '\\u0115': 'e',\r\n    '\\u0117': 'e',\r\n    '\\u00EB': 'e',\r\n    '\\u1EBB': 'e',\r\n    '\\u011B': 'e',\r\n    '\\u0205': 'e',\r\n    '\\u0207': 'e',\r\n    '\\u1EB9': 'e',\r\n    '\\u1EC7': 'e',\r\n    '\\u0229': 'e',\r\n    '\\u1E1D': 'e',\r\n    '\\u0119': 'e',\r\n    '\\u1E19': 'e',\r\n    '\\u1E1B': 'e',\r\n    '\\u0247': 'e',\r\n    '\\u025B': 'e',\r\n    '\\u01DD': 'e',\r\n    '\\u24D5': 'f',\r\n    '\\uFF46': 'f',\r\n    '\\u1E1F': 'f',\r\n    '\\u0192': 'f',\r\n    '\\uA77C': 'f',\r\n    '\\u24D6': 'g',\r\n    '\\uFF47': 'g',\r\n    '\\u01F5': 'g',\r\n    '\\u011D': 'g',\r\n    '\\u1E21': 'g',\r\n    '\\u011F': 'g',\r\n    '\\u0121': 'g',\r\n    '\\u01E7': 'g',\r\n    '\\u0123': 'g',\r\n    '\\u01E5': 'g',\r\n    '\\u0260': 'g',\r\n    '\\uA7A1': 'g',\r\n    '\\u1D79': 'g',\r\n    '\\uA77F': 'g',\r\n    '\\u24D7': 'h',\r\n    '\\uFF48': 'h',\r\n    '\\u0125': 'h',\r\n    '\\u1E23': 'h',\r\n    '\\u1E27': 'h',\r\n    '\\u021F': 'h',\r\n    '\\u1E25': 'h',\r\n    '\\u1E29': 'h',\r\n    '\\u1E2B': 'h',\r\n    '\\u1E96': 'h',\r\n    '\\u0127': 'h',\r\n    '\\u2C68': 'h',\r\n    '\\u2C76': 'h',\r\n    '\\u0265': 'h',\r\n    '\\u0195': 'hv',\r\n    '\\u24D8': 'i',\r\n    '\\uFF49': 'i',\r\n    '\\u00EC': 'i',\r\n    '\\u00ED': 'i',\r\n    '\\u00EE': 'i',\r\n    '\\u0129': 'i',\r\n    '\\u012B': 'i',\r\n    '\\u012D': 'i',\r\n    '\\u00EF': 'i',\r\n    '\\u1E2F': 'i',\r\n    '\\u1EC9': 'i',\r\n    '\\u01D0': 'i',\r\n    '\\u0209': 'i',\r\n    '\\u020B': 'i',\r\n    '\\u1ECB': 'i',\r\n    '\\u012F': 'i',\r\n    '\\u1E2D': 'i',\r\n    '\\u0268': 'i',\r\n    '\\u0131': 'i',\r\n    '\\u24D9': 'j',\r\n    '\\uFF4A': 'j',\r\n    '\\u0135': 'j',\r\n    '\\u01F0': 'j',\r\n    '\\u0249': 'j',\r\n    '\\u24DA': 'k',\r\n    '\\uFF4B': 'k',\r\n    '\\u1E31': 'k',\r\n    '\\u01E9': 'k',\r\n    '\\u1E33': 'k',\r\n    '\\u0137': 'k',\r\n    '\\u1E35': 'k',\r\n    '\\u0199': 'k',\r\n    '\\u2C6A': 'k',\r\n    '\\uA741': 'k',\r\n    '\\uA743': 'k',\r\n    '\\uA745': 'k',\r\n    '\\uA7A3': 'k',\r\n    '\\u24DB': 'l',\r\n    '\\uFF4C': 'l',\r\n    '\\u0140': 'l',\r\n    '\\u013A': 'l',\r\n    '\\u013E': 'l',\r\n    '\\u1E37': 'l',\r\n    '\\u1E39': 'l',\r\n    '\\u013C': 'l',\r\n    '\\u1E3D': 'l',\r\n    '\\u1E3B': 'l',\r\n    '\\u017F': 'l',\r\n    '\\u0142': 'l',\r\n    '\\u019A': 'l',\r\n    '\\u026B': 'l',\r\n    '\\u2C61': 'l',\r\n    '\\uA749': 'l',\r\n    '\\uA781': 'l',\r\n    '\\uA747': 'l',\r\n    '\\u01C9': 'lj',\r\n    '\\u24DC': 'm',\r\n    '\\uFF4D': 'm',\r\n    '\\u1E3F': 'm',\r\n    '\\u1E41': 'm',\r\n    '\\u1E43': 'm',\r\n    '\\u0271': 'm',\r\n    '\\u026F': 'm',\r\n    '\\u24DD': 'n',\r\n    '\\uFF4E': 'n',\r\n    '\\u01F9': 'n',\r\n    '\\u0144': 'n',\r\n    '\\u00F1': 'n',\r\n    '\\u1E45': 'n',\r\n    '\\u0148': 'n',\r\n    '\\u1E47': 'n',\r\n    '\\u0146': 'n',\r\n    '\\u1E4B': 'n',\r\n    '\\u1E49': 'n',\r\n    '\\u019E': 'n',\r\n    '\\u0272': 'n',\r\n    '\\u0149': 'n',\r\n    '\\uA791': 'n',\r\n    '\\uA7A5': 'n',\r\n    '\\u01CC': 'nj',\r\n    '\\u24DE': 'o',\r\n    '\\uFF4F': 'o',\r\n    '\\u00F2': 'o',\r\n    '\\u00F3': 'o',\r\n    '\\u00F4': 'o',\r\n    '\\u1ED3': 'o',\r\n    '\\u1ED1': 'o',\r\n    '\\u1ED7': 'o',\r\n    '\\u1ED5': 'o',\r\n    '\\u00F5': 'o',\r\n    '\\u1E4D': 'o',\r\n    '\\u022D': 'o',\r\n    '\\u1E4F': 'o',\r\n    '\\u014D': 'o',\r\n    '\\u1E51': 'o',\r\n    '\\u1E53': 'o',\r\n    '\\u014F': 'o',\r\n    '\\u022F': 'o',\r\n    '\\u0231': 'o',\r\n    '\\u00F6': 'o',\r\n    '\\u022B': 'o',\r\n    '\\u1ECF': 'o',\r\n    '\\u0151': 'o',\r\n    '\\u01D2': 'o',\r\n    '\\u020D': 'o',\r\n    '\\u020F': 'o',\r\n    '\\u01A1': 'o',\r\n    '\\u1EDD': 'o',\r\n    '\\u1EDB': 'o',\r\n    '\\u1EE1': 'o',\r\n    '\\u1EDF': 'o',\r\n    '\\u1EE3': 'o',\r\n    '\\u1ECD': 'o',\r\n    '\\u1ED9': 'o',\r\n    '\\u01EB': 'o',\r\n    '\\u01ED': 'o',\r\n    '\\u00F8': 'o',\r\n    '\\u01FF': 'o',\r\n    '\\u0254': 'o',\r\n    '\\uA74B': 'o',\r\n    '\\uA74D': 'o',\r\n    '\\u0275': 'o',\r\n    '\\u01A3': 'oi',\r\n    '\\u0223': 'ou',\r\n    '\\uA74F': 'oo',\r\n    '\\u24DF': 'p',\r\n    '\\uFF50': 'p',\r\n    '\\u1E55': 'p',\r\n    '\\u1E57': 'p',\r\n    '\\u01A5': 'p',\r\n    '\\u1D7D': 'p',\r\n    '\\uA751': 'p',\r\n    '\\uA753': 'p',\r\n    '\\uA755': 'p',\r\n    '\\u24E0': 'q',\r\n    '\\uFF51': 'q',\r\n    '\\u024B': 'q',\r\n    '\\uA757': 'q',\r\n    '\\uA759': 'q',\r\n    '\\u24E1': 'r',\r\n    '\\uFF52': 'r',\r\n    '\\u0155': 'r',\r\n    '\\u1E59': 'r',\r\n    '\\u0159': 'r',\r\n    '\\u0211': 'r',\r\n    '\\u0213': 'r',\r\n    '\\u1E5B': 'r',\r\n    '\\u1E5D': 'r',\r\n    '\\u0157': 'r',\r\n    '\\u1E5F': 'r',\r\n    '\\u024D': 'r',\r\n    '\\u027D': 'r',\r\n    '\\uA75B': 'r',\r\n    '\\uA7A7': 'r',\r\n    '\\uA783': 'r',\r\n    '\\u24E2': 's',\r\n    '\\uFF53': 's',\r\n    '\\u00DF': 's',\r\n    '\\u015B': 's',\r\n    '\\u1E65': 's',\r\n    '\\u015D': 's',\r\n    '\\u1E61': 's',\r\n    '\\u0161': 's',\r\n    '\\u1E67': 's',\r\n    '\\u1E63': 's',\r\n    '\\u1E69': 's',\r\n    '\\u0219': 's',\r\n    '\\u015F': 's',\r\n    '\\u023F': 's',\r\n    '\\uA7A9': 's',\r\n    '\\uA785': 's',\r\n    '\\u1E9B': 's',\r\n    '\\u24E3': 't',\r\n    '\\uFF54': 't',\r\n    '\\u1E6B': 't',\r\n    '\\u1E97': 't',\r\n    '\\u0165': 't',\r\n    '\\u1E6D': 't',\r\n    '\\u021B': 't',\r\n    '\\u0163': 't',\r\n    '\\u1E71': 't',\r\n    '\\u1E6F': 't',\r\n    '\\u0167': 't',\r\n    '\\u01AD': 't',\r\n    '\\u0288': 't',\r\n    '\\u2C66': 't',\r\n    '\\uA787': 't',\r\n    '\\uA729': 'tz',\r\n    '\\u24E4': 'u',\r\n    '\\uFF55': 'u',\r\n    '\\u00F9': 'u',\r\n    '\\u00FA': 'u',\r\n    '\\u00FB': 'u',\r\n    '\\u0169': 'u',\r\n    '\\u1E79': 'u',\r\n    '\\u016B': 'u',\r\n    '\\u1E7B': 'u',\r\n    '\\u016D': 'u',\r\n    '\\u00FC': 'u',\r\n    '\\u01DC': 'u',\r\n    '\\u01D8': 'u',\r\n    '\\u01D6': 'u',\r\n    '\\u01DA': 'u',\r\n    '\\u1EE7': 'u',\r\n    '\\u016F': 'u',\r\n    '\\u0171': 'u',\r\n    '\\u01D4': 'u',\r\n    '\\u0215': 'u',\r\n    '\\u0217': 'u',\r\n    '\\u01B0': 'u',\r\n    '\\u1EEB': 'u',\r\n    '\\u1EE9': 'u',\r\n    '\\u1EEF': 'u',\r\n    '\\u1EED': 'u',\r\n    '\\u1EF1': 'u',\r\n    '\\u1EE5': 'u',\r\n    '\\u1E73': 'u',\r\n    '\\u0173': 'u',\r\n    '\\u1E77': 'u',\r\n    '\\u1E75': 'u',\r\n    '\\u0289': 'u',\r\n    '\\u24E5': 'v',\r\n    '\\uFF56': 'v',\r\n    '\\u1E7D': 'v',\r\n    '\\u1E7F': 'v',\r\n    '\\u028B': 'v',\r\n    '\\uA75F': 'v',\r\n    '\\u028C': 'v',\r\n    '\\uA761': 'vy',\r\n    '\\u24E6': 'w',\r\n    '\\uFF57': 'w',\r\n    '\\u1E81': 'w',\r\n    '\\u1E83': 'w',\r\n    '\\u0175': 'w',\r\n    '\\u1E87': 'w',\r\n    '\\u1E85': 'w',\r\n    '\\u1E98': 'w',\r\n    '\\u1E89': 'w',\r\n    '\\u2C73': 'w',\r\n    '\\u24E7': 'x',\r\n    '\\uFF58': 'x',\r\n    '\\u1E8B': 'x',\r\n    '\\u1E8D': 'x',\r\n    '\\u24E8': 'y',\r\n    '\\uFF59': 'y',\r\n    '\\u1EF3': 'y',\r\n    '\\u00FD': 'y',\r\n    '\\u0177': 'y',\r\n    '\\u1EF9': 'y',\r\n    '\\u0233': 'y',\r\n    '\\u1E8F': 'y',\r\n    '\\u00FF': 'y',\r\n    '\\u1EF7': 'y',\r\n    '\\u1E99': 'y',\r\n    '\\u1EF5': 'y',\r\n    '\\u01B4': 'y',\r\n    '\\u024F': 'y',\r\n    '\\u1EFF': 'y',\r\n    '\\u24E9': 'z',\r\n    '\\uFF5A': 'z',\r\n    '\\u017A': 'z',\r\n    '\\u1E91': 'z',\r\n    '\\u017C': 'z',\r\n    '\\u017E': 'z',\r\n    '\\u1E93': 'z',\r\n    '\\u1E95': 'z',\r\n    '\\u01B6': 'z',\r\n    '\\u0225': 'z',\r\n    '\\u0240': 'z',\r\n    '\\u2C6C': 'z',\r\n    '\\uA763': 'z',\r\n    '\\u0386': '\\u0391',\r\n    '\\u0388': '\\u0395',\r\n    '\\u0389': '\\u0397',\r\n    '\\u038A': '\\u0399',\r\n    '\\u03AA': '\\u0399',\r\n    '\\u038C': '\\u039F',\r\n    '\\u038E': '\\u03A5',\r\n    '\\u03AB': '\\u03A5',\r\n    '\\u038F': '\\u03A9',\r\n    '\\u03AC': '\\u03B1',\r\n    '\\u03AD': '\\u03B5',\r\n    '\\u03AE': '\\u03B7',\r\n    '\\u03AF': '\\u03B9',\r\n    '\\u03CA': '\\u03B9',\r\n    '\\u0390': '\\u03B9',\r\n    '\\u03CC': '\\u03BF',\r\n    '\\u03CD': '\\u03C5',\r\n    '\\u03CB': '\\u03C5',\r\n    '\\u03B0': '\\u03C5',\r\n    '\\u03C9': '\\u03C9',\r\n    '\\u03C2': '\\u03C3'\r\n  };\r\n\r\n  return diacritics;\r\n});\r\n\r\nS2.define('select2/data/base',[\r\n  '../utils'\r\n], function (Utils) {\r\n  function BaseAdapter ($element, options) {\r\n    BaseAdapter.__super__.constructor.call(this);\r\n  }\r\n\r\n  Utils.Extend(BaseAdapter, Utils.Observable);\r\n\r\n  BaseAdapter.prototype.current = function (callback) {\r\n    throw new Error('The `current` method must be defined in child classes.');\r\n  };\r\n\r\n  BaseAdapter.prototype.query = function (params, callback) {\r\n    throw new Error('The `query` method must be defined in child classes.');\r\n  };\r\n\r\n  BaseAdapter.prototype.bind = function (container, $container) {\r\n    // Can be implemented in subclasses\r\n  };\r\n\r\n  BaseAdapter.prototype.destroy = function () {\r\n    // Can be implemented in subclasses\r\n  };\r\n\r\n  BaseAdapter.prototype.generateResultId = function (container, data) {\r\n    var id = container.id + '-result-';\r\n\r\n    id += Utils.generateChars(4);\r\n\r\n    if (data.id != null) {\r\n      id += '-' + data.id.toString();\r\n    } else {\r\n      id += '-' + Utils.generateChars(4);\r\n    }\r\n    return id;\r\n  };\r\n\r\n  return BaseAdapter;\r\n});\r\n\r\nS2.define('select2/data/select',[\r\n  './base',\r\n  '../utils',\r\n  'jquery'\r\n], function (BaseAdapter, Utils, $) {\r\n  function SelectAdapter ($element, options) {\r\n    this.$element = $element;\r\n    this.options = options;\r\n\r\n    SelectAdapter.__super__.constructor.call(this);\r\n  }\r\n\r\n  Utils.Extend(SelectAdapter, BaseAdapter);\r\n\r\n  SelectAdapter.prototype.current = function (callback) {\r\n    var data = [];\r\n    var self = this;\r\n\r\n    this.$element.find(':selected').each(function () {\r\n      var $option = $(this);\r\n\r\n      var option = self.item($option);\r\n\r\n      data.push(option);\r\n    });\r\n\r\n    callback(data);\r\n  };\r\n\r\n  SelectAdapter.prototype.select = function (data) {\r\n    var self = this;\r\n\r\n    data.selected = true;\r\n\r\n    // If data.element is a DOM node, use it instead\r\n    if ($(data.element).is('option')) {\r\n      data.element.selected = true;\r\n\r\n      this.$element.trigger('change');\r\n\r\n      return;\r\n    }\r\n\r\n    if (this.$element.prop('multiple')) {\r\n      this.current(function (currentData) {\r\n        var val = [];\r\n\r\n        data = [data];\r\n        data.push.apply(data, currentData);\r\n\r\n        for (var d = 0; d < data.length; d++) {\r\n          var id = data[d].id;\r\n\r\n          if ($.inArray(id, val) === -1) {\r\n            val.push(id);\r\n          }\r\n        }\r\n\r\n        self.$element.val(val);\r\n        self.$element.trigger('change');\r\n      });\r\n    } else {\r\n      var val = data.id;\r\n\r\n      this.$element.val(val);\r\n      this.$element.trigger('change');\r\n    }\r\n  };\r\n\r\n  SelectAdapter.prototype.unselect = function (data) {\r\n    var self = this;\r\n\r\n    if (!this.$element.prop('multiple')) {\r\n      return;\r\n    }\r\n\r\n    data.selected = false;\r\n\r\n    if ($(data.element).is('option')) {\r\n      data.element.selected = false;\r\n\r\n      this.$element.trigger('change');\r\n\r\n      return;\r\n    }\r\n\r\n    this.current(function (currentData) {\r\n      var val = [];\r\n\r\n      for (var d = 0; d < currentData.length; d++) {\r\n        var id = currentData[d].id;\r\n\r\n        if (id !== data.id && $.inArray(id, val) === -1) {\r\n          val.push(id);\r\n        }\r\n      }\r\n\r\n      self.$element.val(val);\r\n\r\n      self.$element.trigger('change');\r\n    });\r\n  };\r\n\r\n  SelectAdapter.prototype.bind = function (container, $container) {\r\n    var self = this;\r\n\r\n    this.container = container;\r\n\r\n    container.on('select', function (params) {\r\n      self.select(params.data);\r\n    });\r\n\r\n    container.on('unselect', function (params) {\r\n      self.unselect(params.data);\r\n    });\r\n  };\r\n\r\n  SelectAdapter.prototype.destroy = function () {\r\n    // Remove anything added to child elements\r\n    this.$element.find('*').each(function () {\r\n      // Remove any custom data set by Select2\r\n      $.removeData(this, 'data');\r\n    });\r\n  };\r\n\r\n  SelectAdapter.prototype.query = function (params, callback) {\r\n    var data = [];\r\n    var self = this;\r\n\r\n    var $options = this.$element.children();\r\n\r\n    $options.each(function () {\r\n      var $option = $(this);\r\n\r\n      if (!$option.is('option') && !$option.is('optgroup')) {\r\n        return;\r\n      }\r\n\r\n      var option = self.item($option);\r\n\r\n      var matches = self.matches(params, option);\r\n\r\n      if (matches !== null) {\r\n        data.push(matches);\r\n      }\r\n    });\r\n\r\n    callback({\r\n      results: data\r\n    });\r\n  };\r\n\r\n  SelectAdapter.prototype.addOptions = function ($options) {\r\n    Utils.appendMany(this.$element, $options);\r\n  };\r\n\r\n  SelectAdapter.prototype.option = function (data) {\r\n    var option;\r\n\r\n    if (data.children) {\r\n      option = document.createElement('optgroup');\r\n      option.label = data.text;\r\n    } else {\r\n      option = document.createElement('option');\r\n\r\n      if (option.textContent !== undefined) {\r\n        option.textContent = data.text;\r\n      } else {\r\n        option.innerText = data.text;\r\n      }\r\n    }\r\n\r\n    if (data.id) {\r\n      option.value = data.id;\r\n    }\r\n\r\n    if (data.disabled) {\r\n      option.disabled = true;\r\n    }\r\n\r\n    if (data.selected) {\r\n      option.selected = true;\r\n    }\r\n\r\n    if (data.title) {\r\n      option.title = data.title;\r\n    }\r\n\r\n    var $option = $(option);\r\n\r\n    var normalizedData = this._normalizeItem(data);\r\n    normalizedData.element = option;\r\n\r\n    // Override the option's data with the combined data\r\n    $.data(option, 'data', normalizedData);\r\n\r\n    return $option;\r\n  };\r\n\r\n  SelectAdapter.prototype.item = function ($option) {\r\n    var data = {};\r\n\r\n    data = $.data($option[0], 'data');\r\n\r\n    if (data != null) {\r\n      return data;\r\n    }\r\n\r\n    if ($option.is('option')) {\r\n      data = {\r\n        id: $option.val(),\r\n        text: $option.text(),\r\n        disabled: $option.prop('disabled'),\r\n        selected: $option.prop('selected'),\r\n        title: $option.prop('title')\r\n      };\r\n    } else if ($option.is('optgroup')) {\r\n      data = {\r\n        text: $option.prop('label'),\r\n        children: [],\r\n        title: $option.prop('title')\r\n      };\r\n\r\n      var $children = $option.children('option');\r\n      var children = [];\r\n\r\n      for (var c = 0; c < $children.length; c++) {\r\n        var $child = $($children[c]);\r\n\r\n        var child = this.item($child);\r\n\r\n        children.push(child);\r\n      }\r\n\r\n      data.children = children;\r\n    }\r\n\r\n    data = this._normalizeItem(data);\r\n    data.element = $option[0];\r\n\r\n    $.data($option[0], 'data', data);\r\n\r\n    return data;\r\n  };\r\n\r\n  SelectAdapter.prototype._normalizeItem = function (item) {\r\n    if (!$.isPlainObject(item)) {\r\n      item = {\r\n        id: item,\r\n        text: item\r\n      };\r\n    }\r\n\r\n    item = $.extend({}, {\r\n      text: ''\r\n    }, item);\r\n\r\n    var defaults = {\r\n      selected: false,\r\n      disabled: false\r\n    };\r\n\r\n    if (item.id != null) {\r\n      item.id = item.id.toString();\r\n    }\r\n\r\n    if (item.text != null) {\r\n      item.text = item.text.toString();\r\n    }\r\n\r\n    if (item._resultId == null && item.id && this.container != null) {\r\n      item._resultId = this.generateResultId(this.container, item);\r\n    }\r\n\r\n    return $.extend({}, defaults, item);\r\n  };\r\n\r\n  SelectAdapter.prototype.matches = function (params, data) {\r\n    var matcher = this.options.get('matcher');\r\n\r\n    return matcher(params, data);\r\n  };\r\n\r\n  return SelectAdapter;\r\n});\r\n\r\nS2.define('select2/data/array',[\r\n  './select',\r\n  '../utils',\r\n  'jquery'\r\n], function (SelectAdapter, Utils, $) {\r\n  function ArrayAdapter ($element, options) {\r\n    var data = options.get('data') || [];\r\n\r\n    ArrayAdapter.__super__.constructor.call(this, $element, options);\r\n\r\n    this.addOptions(this.convertToOptions(data));\r\n  }\r\n\r\n  Utils.Extend(ArrayAdapter, SelectAdapter);\r\n\r\n  ArrayAdapter.prototype.select = function (data) {\r\n    var $option = this.$element.find('option').filter(function (i, elm) {\r\n      return elm.value == data.id.toString();\r\n    });\r\n\r\n    if ($option.length === 0) {\r\n      $option = this.option(data);\r\n\r\n      this.addOptions($option);\r\n    }\r\n\r\n    ArrayAdapter.__super__.select.call(this, data);\r\n  };\r\n\r\n  ArrayAdapter.prototype.convertToOptions = function (data) {\r\n    var self = this;\r\n\r\n    var $existing = this.$element.find('option');\r\n    var existingIds = $existing.map(function () {\r\n      return self.item($(this)).id;\r\n    }).get();\r\n\r\n    var $options = [];\r\n\r\n    // Filter out all items except for the one passed in the argument\r\n    function onlyItem (item) {\r\n      return function () {\r\n        return $(this).val() == item.id;\r\n      };\r\n    }\r\n\r\n    for (var d = 0; d < data.length; d++) {\r\n      var item = this._normalizeItem(data[d]);\r\n\r\n      // Skip items which were pre-loaded, only merge the data\r\n      if ($.inArray(item.id, existingIds) >= 0) {\r\n        var $existingOption = $existing.filter(onlyItem(item));\r\n\r\n        var existingData = this.item($existingOption);\r\n        var newData = $.extend(true, {}, item, existingData);\r\n\r\n        var $newOption = this.option(newData);\r\n\r\n        $existingOption.replaceWith($newOption);\r\n\r\n        continue;\r\n      }\r\n\r\n      var $option = this.option(item);\r\n\r\n      if (item.children) {\r\n        var $children = this.convertToOptions(item.children);\r\n\r\n        Utils.appendMany($option, $children);\r\n      }\r\n\r\n      $options.push($option);\r\n    }\r\n\r\n    return $options;\r\n  };\r\n\r\n  return ArrayAdapter;\r\n});\r\n\r\nS2.define('select2/data/ajax',[\r\n  './array',\r\n  '../utils',\r\n  'jquery'\r\n], function (ArrayAdapter, Utils, $) {\r\n  function AjaxAdapter ($element, options) {\r\n    this.ajaxOptions = this._applyDefaults(options.get('ajax'));\r\n\r\n    if (this.ajaxOptions.processResults != null) {\r\n      this.processResults = this.ajaxOptions.processResults;\r\n    }\r\n\r\n    AjaxAdapter.__super__.constructor.call(this, $element, options);\r\n  }\r\n\r\n  Utils.Extend(AjaxAdapter, ArrayAdapter);\r\n\r\n  AjaxAdapter.prototype._applyDefaults = function (options) {\r\n    var defaults = {\r\n      data: function (params) {\r\n        return $.extend({}, params, {\r\n          q: params.term\r\n        });\r\n      },\r\n      transport: function (params, success, failure) {\r\n        var $request = $.ajax(params);\r\n\r\n        $request.then(success);\r\n        $request.fail(failure);\r\n\r\n        return $request;\r\n      }\r\n    };\r\n\r\n    return $.extend({}, defaults, options, true);\r\n  };\r\n\r\n  AjaxAdapter.prototype.processResults = function (results) {\r\n    return results;\r\n  };\r\n\r\n  AjaxAdapter.prototype.query = function (params, callback) {\r\n    var matches = [];\r\n    var self = this;\r\n\r\n    if (this._request != null) {\r\n      // JSONP requests cannot always be aborted\r\n      if ($.isFunction(this._request.abort)) {\r\n        this._request.abort();\r\n      }\r\n\r\n      this._request = null;\r\n    }\r\n\r\n    var options = $.extend({\r\n      type: 'GET'\r\n    }, this.ajaxOptions);\r\n\r\n    if (typeof options.url === 'function') {\r\n      options.url = options.url.call(this.$element, params);\r\n    }\r\n\r\n    if (typeof options.data === 'function') {\r\n      options.data = options.data.call(this.$element, params);\r\n    }\r\n\r\n    function request () {\r\n      var $request = options.transport(options, function (data) {\r\n        var results = self.processResults(data, params);\r\n\r\n        if (self.options.get('debug') && window.console && console.error) {\r\n          // Check to make sure that the response included a `results` key.\r\n          if (!results || !results.results || !$.isArray(results.results)) {\r\n            console.error(\r\n              'Select2: The AJAX results did not return an array in the ' +\r\n              '`results` key of the response.'\r\n            );\r\n          }\r\n        }\r\n\r\n        callback(results);\r\n      }, function () {\r\n        // Attempt to detect if a request was aborted\r\n        // Only works if the transport exposes a status property\r\n        if ($request.status && $request.status === '0') {\r\n          return;\r\n        }\r\n\r\n        self.trigger('results:message', {\r\n          message: 'errorLoading'\r\n        });\r\n      });\r\n\r\n      self._request = $request;\r\n    }\r\n\r\n    if (this.ajaxOptions.delay && params.term != null) {\r\n      if (this._queryTimeout) {\r\n        window.clearTimeout(this._queryTimeout);\r\n      }\r\n\r\n      this._queryTimeout = window.setTimeout(request, this.ajaxOptions.delay);\r\n    } else {\r\n      request();\r\n    }\r\n  };\r\n\r\n  return AjaxAdapter;\r\n});\r\n\r\nS2.define('select2/data/tags',[\r\n  'jquery'\r\n], function ($) {\r\n  function Tags (decorated, $element, options) {\r\n    var tags = options.get('tags');\r\n\r\n    var createTag = options.get('createTag');\r\n\r\n    if (createTag !== undefined) {\r\n      this.createTag = createTag;\r\n    }\r\n\r\n    var insertTag = options.get('insertTag');\r\n\r\n    if (insertTag !== undefined) {\r\n        this.insertTag = insertTag;\r\n    }\r\n\r\n    decorated.call(this, $element, options);\r\n\r\n    if ($.isArray(tags)) {\r\n      for (var t = 0; t < tags.length; t++) {\r\n        var tag = tags[t];\r\n        var item = this._normalizeItem(tag);\r\n\r\n        var $option = this.option(item);\r\n\r\n        this.$element.append($option);\r\n      }\r\n    }\r\n  }\r\n\r\n  Tags.prototype.query = function (decorated, params, callback) {\r\n    var self = this;\r\n\r\n    this._removeOldTags();\r\n\r\n    if (params.term == null || params.page != null) {\r\n      decorated.call(this, params, callback);\r\n      return;\r\n    }\r\n\r\n    function wrapper (obj, child) {\r\n      var data = obj.results;\r\n\r\n      for (var i = 0; i < data.length; i++) {\r\n        var option = data[i];\r\n\r\n        var checkChildren = (\r\n          option.children != null &&\r\n          !wrapper({\r\n            results: option.children\r\n          }, true)\r\n        );\r\n\r\n        var checkText = option.text === params.term;\r\n\r\n        if (checkText || checkChildren) {\r\n          if (child) {\r\n            return false;\r\n          }\r\n\r\n          obj.data = data;\r\n          callback(obj);\r\n\r\n          return;\r\n        }\r\n      }\r\n\r\n      if (child) {\r\n        return true;\r\n      }\r\n\r\n      var tag = self.createTag(params);\r\n\r\n      if (tag != null) {\r\n        var $option = self.option(tag);\r\n        $option.attr('data-select2-tag', true);\r\n\r\n        self.addOptions([$option]);\r\n\r\n        self.insertTag(data, tag);\r\n      }\r\n\r\n      obj.results = data;\r\n\r\n      callback(obj);\r\n    }\r\n\r\n    decorated.call(this, params, wrapper);\r\n  };\r\n\r\n  Tags.prototype.createTag = function (decorated, params) {\r\n    var term = $.trim(params.term);\r\n\r\n    if (term === '') {\r\n      return null;\r\n    }\r\n\r\n    return {\r\n      id: term,\r\n      text: term\r\n    };\r\n  };\r\n\r\n  Tags.prototype.insertTag = function (_, data, tag) {\r\n    data.unshift(tag);\r\n  };\r\n\r\n  Tags.prototype._removeOldTags = function (_) {\r\n    var tag = this._lastTag;\r\n\r\n    var $options = this.$element.find('option[data-select2-tag]');\r\n\r\n    $options.each(function () {\r\n      if (this.selected) {\r\n        return;\r\n      }\r\n\r\n      $(this).remove();\r\n    });\r\n  };\r\n\r\n  return Tags;\r\n});\r\n\r\nS2.define('select2/data/tokenizer',[\r\n  'jquery'\r\n], function ($) {\r\n  function Tokenizer (decorated, $element, options) {\r\n    var tokenizer = options.get('tokenizer');\r\n\r\n    if (tokenizer !== undefined) {\r\n      this.tokenizer = tokenizer;\r\n    }\r\n\r\n    decorated.call(this, $element, options);\r\n  }\r\n\r\n  Tokenizer.prototype.bind = function (decorated, container, $container) {\r\n    decorated.call(this, container, $container);\r\n\r\n    this.$search =  container.dropdown.$search || container.selection.$search ||\r\n      $container.find('.select2-search__field');\r\n  };\r\n\r\n  Tokenizer.prototype.query = function (decorated, params, callback) {\r\n    var self = this;\r\n\r\n    function createAndSelect (data) {\r\n      // Normalize the data object so we can use it for checks\r\n      var item = self._normalizeItem(data);\r\n\r\n      // Check if the data object already exists as a tag\r\n      // Select it if it doesn't\r\n      var $existingOptions = self.$element.find('option').filter(function () {\r\n        return $(this).val() === item.id;\r\n      });\r\n\r\n      // If an existing option wasn't found for it, create the option\r\n      if (!$existingOptions.length) {\r\n        var $option = self.option(item);\r\n        $option.attr('data-select2-tag', true);\r\n\r\n        self._removeOldTags();\r\n        self.addOptions([$option]);\r\n      }\r\n\r\n      // Select the item, now that we know there is an option for it\r\n      select(item);\r\n    }\r\n\r\n    function select (data) {\r\n      self.trigger('select', {\r\n        data: data\r\n      });\r\n    }\r\n\r\n    params.term = params.term || '';\r\n\r\n    var tokenData = this.tokenizer(params, this.options, createAndSelect);\r\n\r\n    if (tokenData.term !== params.term) {\r\n      // Replace the search term if we have the search box\r\n      if (this.$search.length) {\r\n        this.$search.val(tokenData.term);\r\n        this.$search.focus();\r\n      }\r\n\r\n      params.term = tokenData.term;\r\n    }\r\n\r\n    decorated.call(this, params, callback);\r\n  };\r\n\r\n  Tokenizer.prototype.tokenizer = function (_, params, options, callback) {\r\n    var separators = options.get('tokenSeparators') || [];\r\n    var term = params.term;\r\n    var i = 0;\r\n\r\n    var createTag = this.createTag || function (params) {\r\n      return {\r\n        id: params.term,\r\n        text: params.term\r\n      };\r\n    };\r\n\r\n    while (i < term.length) {\r\n      var termChar = term[i];\r\n\r\n      if ($.inArray(termChar, separators) === -1) {\r\n        i++;\r\n\r\n        continue;\r\n      }\r\n\r\n      var part = term.substr(0, i);\r\n      var partParams = $.extend({}, params, {\r\n        term: part\r\n      });\r\n\r\n      var data = createTag(partParams);\r\n\r\n      if (data == null) {\r\n        i++;\r\n        continue;\r\n      }\r\n\r\n      callback(data);\r\n\r\n      // Reset the term to not include the tokenized portion\r\n      term = term.substr(i + 1) || '';\r\n      i = 0;\r\n    }\r\n\r\n    return {\r\n      term: term\r\n    };\r\n  };\r\n\r\n  return Tokenizer;\r\n});\r\n\r\nS2.define('select2/data/minimumInputLength',[\r\n\r\n], function () {\r\n  function MinimumInputLength (decorated, $e, options) {\r\n    this.minimumInputLength = options.get('minimumInputLength');\r\n\r\n    decorated.call(this, $e, options);\r\n  }\r\n\r\n  MinimumInputLength.prototype.query = function (decorated, params, callback) {\r\n    params.term = params.term || '';\r\n\r\n    if (params.term.length < this.minimumInputLength) {\r\n      this.trigger('results:message', {\r\n        message: 'inputTooShort',\r\n        args: {\r\n          minimum: this.minimumInputLength,\r\n          input: params.term,\r\n          params: params\r\n        }\r\n      });\r\n\r\n      return;\r\n    }\r\n\r\n    decorated.call(this, params, callback);\r\n  };\r\n\r\n  return MinimumInputLength;\r\n});\r\n\r\nS2.define('select2/data/maximumInputLength',[\r\n\r\n], function () {\r\n  function MaximumInputLength (decorated, $e, options) {\r\n    this.maximumInputLength = options.get('maximumInputLength');\r\n\r\n    decorated.call(this, $e, options);\r\n  }\r\n\r\n  MaximumInputLength.prototype.query = function (decorated, params, callback) {\r\n    params.term = params.term || '';\r\n\r\n    if (this.maximumInputLength > 0 &&\r\n        params.term.length > this.maximumInputLength) {\r\n      this.trigger('results:message', {\r\n        message: 'inputTooLong',\r\n        args: {\r\n          maximum: this.maximumInputLength,\r\n          input: params.term,\r\n          params: params\r\n        }\r\n      });\r\n\r\n      return;\r\n    }\r\n\r\n    decorated.call(this, params, callback);\r\n  };\r\n\r\n  return MaximumInputLength;\r\n});\r\n\r\nS2.define('select2/data/maximumSelectionLength',[\r\n\r\n], function (){\r\n  function MaximumSelectionLength (decorated, $e, options) {\r\n    this.maximumSelectionLength = options.get('maximumSelectionLength');\r\n\r\n    decorated.call(this, $e, options);\r\n  }\r\n\r\n  MaximumSelectionLength.prototype.query =\r\n    function (decorated, params, callback) {\r\n      var self = this;\r\n\r\n      this.current(function (currentData) {\r\n        var count = currentData != null ? currentData.length : 0;\r\n        if (self.maximumSelectionLength > 0 &&\r\n          count >= self.maximumSelectionLength) {\r\n          self.trigger('results:message', {\r\n            message: 'maximumSelected',\r\n            args: {\r\n              maximum: self.maximumSelectionLength\r\n            }\r\n          });\r\n          return;\r\n        }\r\n        decorated.call(self, params, callback);\r\n      });\r\n  };\r\n\r\n  return MaximumSelectionLength;\r\n});\r\n\r\nS2.define('select2/dropdown',[\r\n  'jquery',\r\n  './utils'\r\n], function ($, Utils) {\r\n  function Dropdown ($element, options) {\r\n    this.$element = $element;\r\n    this.options = options;\r\n\r\n    Dropdown.__super__.constructor.call(this);\r\n  }\r\n\r\n  Utils.Extend(Dropdown, Utils.Observable);\r\n\r\n  Dropdown.prototype.render = function () {\r\n    var $dropdown = $(\r\n      '<span class=\"select2-dropdown\">' +\r\n        '<span class=\"select2-results\"></span>' +\r\n      '</span>'\r\n    );\r\n\r\n    $dropdown.attr('dir', this.options.get('dir'));\r\n\r\n    this.$dropdown = $dropdown;\r\n\r\n    return $dropdown;\r\n  };\r\n\r\n  Dropdown.prototype.bind = function () {\r\n    // Should be implemented in subclasses\r\n  };\r\n\r\n  Dropdown.prototype.position = function ($dropdown, $container) {\r\n    // Should be implmented in subclasses\r\n  };\r\n\r\n  Dropdown.prototype.destroy = function () {\r\n    // Remove the dropdown from the DOM\r\n    this.$dropdown.remove();\r\n  };\r\n\r\n  return Dropdown;\r\n});\r\n\r\nS2.define('select2/dropdown/search',[\r\n  'jquery',\r\n  '../utils'\r\n], function ($, Utils) {\r\n  function Search () { }\r\n\r\n  Search.prototype.render = function (decorated) {\r\n    var $rendered = decorated.call(this);\r\n\r\n    var $search = $(\r\n      '<span class=\"select2-search select2-search--dropdown\">' +\r\n        '<input class=\"select2-search__field\" type=\"search\" tabindex=\"-1\"' +\r\n        ' autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\"' +\r\n        ' spellcheck=\"false\" role=\"textbox\" />' +\r\n      '</span>'\r\n    );\r\n\r\n    this.$searchContainer = $search;\r\n    this.$search = $search.find('input');\r\n\r\n    $rendered.prepend($search);\r\n\r\n    return $rendered;\r\n  };\r\n\r\n  Search.prototype.bind = function (decorated, container, $container) {\r\n    var self = this;\r\n\r\n    decorated.call(this, container, $container);\r\n\r\n    this.$search.on('keydown', function (evt) {\r\n      self.trigger('keypress', evt);\r\n\r\n      self._keyUpPrevented = evt.isDefaultPrevented();\r\n    });\r\n\r\n    // Workaround for browsers which do not support the `input` event\r\n    // This will prevent double-triggering of events for browsers which support\r\n    // both the `keyup` and `input` events.\r\n    this.$search.on('input', function (evt) {\r\n      // Unbind the duplicated `keyup` event\r\n      $(this).off('keyup');\r\n    });\r\n\r\n    this.$search.on('keyup input', function (evt) {\r\n      self.handleSearch(evt);\r\n    });\r\n\r\n    container.on('open', function () {\r\n      self.$search.attr('tabindex', 0);\r\n\r\n      self.$search.focus();\r\n\r\n      window.setTimeout(function () {\r\n        self.$search.focus();\r\n      }, 0);\r\n    });\r\n\r\n    container.on('close', function () {\r\n      self.$search.attr('tabindex', -1);\r\n\r\n      self.$search.val('');\r\n    });\r\n\r\n    container.on('focus', function () {\r\n      if (container.isOpen()) {\r\n        self.$search.focus();\r\n      }\r\n    });\r\n\r\n    container.on('results:all', function (params) {\r\n      if (params.query.term == null || params.query.term === '') {\r\n        var showSearch = self.showSearch(params);\r\n\r\n        if (showSearch) {\r\n          self.$searchContainer.removeClass('select2-search--hide');\r\n        } else {\r\n          self.$searchContainer.addClass('select2-search--hide');\r\n        }\r\n      }\r\n    });\r\n  };\r\n\r\n  Search.prototype.handleSearch = function (evt) {\r\n    if (!this._keyUpPrevented) {\r\n      var input = this.$search.val();\r\n\r\n      this.trigger('query', {\r\n        term: input\r\n      });\r\n    }\r\n\r\n    this._keyUpPrevented = false;\r\n  };\r\n\r\n  Search.prototype.showSearch = function (_, params) {\r\n    return true;\r\n  };\r\n\r\n  return Search;\r\n});\r\n\r\nS2.define('select2/dropdown/hidePlaceholder',[\r\n\r\n], function () {\r\n  function HidePlaceholder (decorated, $element, options, dataAdapter) {\r\n    this.placeholder = this.normalizePlaceholder(options.get('placeholder'));\r\n\r\n    decorated.call(this, $element, options, dataAdapter);\r\n  }\r\n\r\n  HidePlaceholder.prototype.append = function (decorated, data) {\r\n    data.results = this.removePlaceholder(data.results);\r\n\r\n    decorated.call(this, data);\r\n  };\r\n\r\n  HidePlaceholder.prototype.normalizePlaceholder = function (_, placeholder) {\r\n    if (typeof placeholder === 'string') {\r\n      placeholder = {\r\n        id: '',\r\n        text: placeholder\r\n      };\r\n    }\r\n\r\n    return placeholder;\r\n  };\r\n\r\n  HidePlaceholder.prototype.removePlaceholder = function (_, data) {\r\n    var modifiedData = data.slice(0);\r\n\r\n    for (var d = data.length - 1; d >= 0; d--) {\r\n      var item = data[d];\r\n\r\n      if (this.placeholder.id === item.id) {\r\n        modifiedData.splice(d, 1);\r\n      }\r\n    }\r\n\r\n    return modifiedData;\r\n  };\r\n\r\n  return HidePlaceholder;\r\n});\r\n\r\nS2.define('select2/dropdown/infiniteScroll',[\r\n  'jquery'\r\n], function ($) {\r\n  function InfiniteScroll (decorated, $element, options, dataAdapter) {\r\n    this.lastParams = {};\r\n\r\n    decorated.call(this, $element, options, dataAdapter);\r\n\r\n    this.$loadingMore = this.createLoadingMore();\r\n    this.loading = false;\r\n  }\r\n\r\n  InfiniteScroll.prototype.append = function (decorated, data) {\r\n    this.$loadingMore.remove();\r\n    this.loading = false;\r\n\r\n    decorated.call(this, data);\r\n\r\n    if (this.showLoadingMore(data)) {\r\n      this.$results.append(this.$loadingMore);\r\n    }\r\n  };\r\n\r\n  InfiniteScroll.prototype.bind = function (decorated, container, $container) {\r\n    var self = this;\r\n\r\n    decorated.call(this, container, $container);\r\n\r\n    container.on('query', function (params) {\r\n      self.lastParams = params;\r\n      self.loading = true;\r\n    });\r\n\r\n    container.on('query:append', function (params) {\r\n      self.lastParams = params;\r\n      self.loading = true;\r\n    });\r\n\r\n    this.$results.on('scroll', function () {\r\n      var isLoadMoreVisible = $.contains(\r\n        document.documentElement,\r\n        self.$loadingMore[0]\r\n      );\r\n\r\n      if (self.loading || !isLoadMoreVisible) {\r\n        return;\r\n      }\r\n\r\n      var currentOffset = self.$results.offset().top +\r\n        self.$results.outerHeight(false);\r\n      var loadingMoreOffset = self.$loadingMore.offset().top +\r\n        self.$loadingMore.outerHeight(false);\r\n\r\n      if (currentOffset + 50 >= loadingMoreOffset) {\r\n        self.loadMore();\r\n      }\r\n    });\r\n  };\r\n\r\n  InfiniteScroll.prototype.loadMore = function () {\r\n    this.loading = true;\r\n\r\n    var params = $.extend({}, {page: 1}, this.lastParams);\r\n\r\n    params.page++;\r\n\r\n    this.trigger('query:append', params);\r\n  };\r\n\r\n  InfiniteScroll.prototype.showLoadingMore = function (_, data) {\r\n    return data.pagination && data.pagination.more;\r\n  };\r\n\r\n  InfiniteScroll.prototype.createLoadingMore = function () {\r\n    var $option = $(\r\n      '<li ' +\r\n      'class=\"select2-results__option select2-results__option--load-more\"' +\r\n      'role=\"treeitem\" aria-disabled=\"true\"></li>'\r\n    );\r\n\r\n    var message = this.options.get('translations').get('loadingMore');\r\n\r\n    $option.html(message(this.lastParams));\r\n\r\n    return $option;\r\n  };\r\n\r\n  return InfiniteScroll;\r\n});\r\n\r\nS2.define('select2/dropdown/attachBody',[\r\n  'jquery',\r\n  '../utils'\r\n], function ($, Utils) {\r\n  function AttachBody (decorated, $element, options) {\r\n    this.$dropdownParent = options.get('dropdownParent') || $(document.body);\r\n\r\n    decorated.call(this, $element, options);\r\n  }\r\n\r\n  AttachBody.prototype.bind = function (decorated, container, $container) {\r\n    var self = this;\r\n\r\n    var setupResultsEvents = false;\r\n\r\n    decorated.call(this, container, $container);\r\n\r\n    container.on('open', function () {\r\n      self._showDropdown();\r\n      self._attachPositioningHandler(container);\r\n\r\n      if (!setupResultsEvents) {\r\n        setupResultsEvents = true;\r\n\r\n        container.on('results:all', function () {\r\n          self._positionDropdown();\r\n          self._resizeDropdown();\r\n        });\r\n\r\n        container.on('results:append', function () {\r\n          self._positionDropdown();\r\n          self._resizeDropdown();\r\n        });\r\n      }\r\n    });\r\n\r\n    container.on('close', function () {\r\n      self._hideDropdown();\r\n      self._detachPositioningHandler(container);\r\n    });\r\n\r\n    this.$dropdownContainer.on('mousedown', function (evt) {\r\n      evt.stopPropagation();\r\n    });\r\n  };\r\n\r\n  AttachBody.prototype.destroy = function (decorated) {\r\n    decorated.call(this);\r\n\r\n    this.$dropdownContainer.remove();\r\n  };\r\n\r\n  AttachBody.prototype.position = function (decorated, $dropdown, $container) {\r\n    // Clone all of the container classes\r\n    $dropdown.attr('class', $container.attr('class'));\r\n\r\n    $dropdown.removeClass('select2');\r\n    $dropdown.addClass('select2-container--open');\r\n\r\n    $dropdown.css({\r\n      position: 'absolute',\r\n      top: -999999\r\n    });\r\n\r\n    this.$container = $container;\r\n  };\r\n\r\n  AttachBody.prototype.render = function (decorated) {\r\n    var $container = $('<span></span>');\r\n\r\n    var $dropdown = decorated.call(this);\r\n    $container.append($dropdown);\r\n\r\n    this.$dropdownContainer = $container;\r\n\r\n    return $container;\r\n  };\r\n\r\n  AttachBody.prototype._hideDropdown = function (decorated) {\r\n    this.$dropdownContainer.detach();\r\n  };\r\n\r\n  AttachBody.prototype._attachPositioningHandler =\r\n      function (decorated, container) {\r\n    var self = this;\r\n\r\n    var scrollEvent = 'scroll.select2.' + container.id;\r\n    var resizeEvent = 'resize.select2.' + container.id;\r\n    var orientationEvent = 'orientationchange.select2.' + container.id;\r\n\r\n    var $watchers = this.$container.parents().filter(Utils.hasScroll);\r\n    $watchers.each(function () {\r\n      $(this).data('select2-scroll-position', {\r\n        x: $(this).scrollLeft(),\r\n        y: $(this).scrollTop()\r\n      });\r\n    });\r\n\r\n    $watchers.on(scrollEvent, function (ev) {\r\n      var position = $(this).data('select2-scroll-position');\r\n      $(this).scrollTop(position.y);\r\n    });\r\n\r\n    $(window).on(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent,\r\n      function (e) {\r\n      self._positionDropdown();\r\n      self._resizeDropdown();\r\n    });\r\n  };\r\n\r\n  AttachBody.prototype._detachPositioningHandler =\r\n      function (decorated, container) {\r\n    var scrollEvent = 'scroll.select2.' + container.id;\r\n    var resizeEvent = 'resize.select2.' + container.id;\r\n    var orientationEvent = 'orientationchange.select2.' + container.id;\r\n\r\n    var $watchers = this.$container.parents().filter(Utils.hasScroll);\r\n    $watchers.off(scrollEvent);\r\n\r\n    $(window).off(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent);\r\n  };\r\n\r\n  AttachBody.prototype._positionDropdown = function () {\r\n    var $window = $(window);\r\n\r\n    var isCurrentlyAbove = this.$dropdown.hasClass('select2-dropdown--above');\r\n    var isCurrentlyBelow = this.$dropdown.hasClass('select2-dropdown--below');\r\n\r\n    var newDirection = null;\r\n\r\n    var offset = this.$container.offset();\r\n\r\n    offset.bottom = offset.top + this.$container.outerHeight(false);\r\n\r\n    var container = {\r\n      height: this.$container.outerHeight(false)\r\n    };\r\n\r\n    container.top = offset.top;\r\n    container.bottom = offset.top + container.height;\r\n\r\n    var dropdown = {\r\n      height: this.$dropdown.outerHeight(false)\r\n    };\r\n\r\n    var viewport = {\r\n      top: $window.scrollTop(),\r\n      bottom: $window.scrollTop() + $window.height()\r\n    };\r\n\r\n    var enoughRoomAbove = viewport.top < (offset.top - dropdown.height);\r\n    var enoughRoomBelow = viewport.bottom > (offset.bottom + dropdown.height);\r\n\r\n    var css = {\r\n      left: offset.left,\r\n      top: container.bottom\r\n    };\r\n\r\n    // Determine what the parent element is to use for calciulating the offset\r\n    var $offsetParent = this.$dropdownParent;\r\n\r\n    // For statically positoned elements, we need to get the element\r\n    // that is determining the offset\r\n    if ($offsetParent.css('position') === 'static') {\r\n      $offsetParent = $offsetParent.offsetParent();\r\n    }\r\n\r\n    var parentOffset = $offsetParent.offset();\r\n\r\n    css.top -= parentOffset.top;\r\n    css.left -= parentOffset.left;\r\n\r\n    if (!isCurrentlyAbove && !isCurrentlyBelow) {\r\n      newDirection = 'below';\r\n    }\r\n\r\n    if (!enoughRoomBelow && enoughRoomAbove && !isCurrentlyAbove) {\r\n      newDirection = 'above';\r\n    } else if (!enoughRoomAbove && enoughRoomBelow && isCurrentlyAbove) {\r\n      newDirection = 'below';\r\n    }\r\n\r\n    if (newDirection == 'above' ||\r\n      (isCurrentlyAbove && newDirection !== 'below')) {\r\n      css.top = container.top - parentOffset.top - dropdown.height;\r\n    }\r\n\r\n    if (newDirection != null) {\r\n      this.$dropdown\r\n        .removeClass('select2-dropdown--below select2-dropdown--above')\r\n        .addClass('select2-dropdown--' + newDirection);\r\n      this.$container\r\n        .removeClass('select2-container--below select2-container--above')\r\n        .addClass('select2-container--' + newDirection);\r\n    }\r\n\r\n    this.$dropdownContainer.css(css);\r\n  };\r\n\r\n  AttachBody.prototype._resizeDropdown = function () {\r\n    var css = {\r\n      width: this.$container.outerWidth(false) + 'px'\r\n    };\r\n\r\n    if (this.options.get('dropdownAutoWidth')) {\r\n      css.minWidth = css.width;\r\n      css.position = 'relative';\r\n      css.width = 'auto';\r\n    }\r\n\r\n    this.$dropdown.css(css);\r\n  };\r\n\r\n  AttachBody.prototype._showDropdown = function (decorated) {\r\n    this.$dropdownContainer.appendTo(this.$dropdownParent);\r\n\r\n    this._positionDropdown();\r\n    this._resizeDropdown();\r\n  };\r\n\r\n  return AttachBody;\r\n});\r\n\r\nS2.define('select2/dropdown/minimumResultsForSearch',[\r\n\r\n], function () {\r\n  function countResults (data) {\r\n    var count = 0;\r\n\r\n    for (var d = 0; d < data.length; d++) {\r\n      var item = data[d];\r\n\r\n      if (item.children) {\r\n        count += countResults(item.children);\r\n      } else {\r\n        count++;\r\n      }\r\n    }\r\n\r\n    return count;\r\n  }\r\n\r\n  function MinimumResultsForSearch (decorated, $element, options, dataAdapter) {\r\n    this.minimumResultsForSearch = options.get('minimumResultsForSearch');\r\n\r\n    if (this.minimumResultsForSearch < 0) {\r\n      this.minimumResultsForSearch = Infinity;\r\n    }\r\n\r\n    decorated.call(this, $element, options, dataAdapter);\r\n  }\r\n\r\n  MinimumResultsForSearch.prototype.showSearch = function (decorated, params) {\r\n    if (countResults(params.data.results) < this.minimumResultsForSearch) {\r\n      return false;\r\n    }\r\n\r\n    return decorated.call(this, params);\r\n  };\r\n\r\n  return MinimumResultsForSearch;\r\n});\r\n\r\nS2.define('select2/dropdown/selectOnClose',[\r\n\r\n], function () {\r\n  function SelectOnClose () { }\r\n\r\n  SelectOnClose.prototype.bind = function (decorated, container, $container) {\r\n    var self = this;\r\n\r\n    decorated.call(this, container, $container);\r\n\r\n    container.on('close', function (params) {\r\n      self._handleSelectOnClose(params);\r\n    });\r\n  };\r\n\r\n  SelectOnClose.prototype._handleSelectOnClose = function (_, params) {\r\n    if (params && params.originalSelect2Event != null) {\r\n      var event = params.originalSelect2Event;\r\n\r\n      // Don't select an item if the close event was triggered from a select or\r\n      // unselect event\r\n      if (event._type === 'select' || event._type === 'unselect') {\r\n        return;\r\n      }\r\n    }\r\n\r\n    var $highlightedResults = this.getHighlightedResults();\r\n\r\n    // Only select highlighted results\r\n    if ($highlightedResults.length < 1) {\r\n      return;\r\n    }\r\n\r\n    var data = $highlightedResults.data('data');\r\n\r\n    // Don't re-select already selected resulte\r\n    if (\r\n      (data.element != null && data.element.selected) ||\r\n      (data.element == null && data.selected)\r\n    ) {\r\n      return;\r\n    }\r\n\r\n    this.trigger('select', {\r\n        data: data\r\n    });\r\n  };\r\n\r\n  return SelectOnClose;\r\n});\r\n\r\nS2.define('select2/dropdown/closeOnSelect',[\r\n\r\n], function () {\r\n  function CloseOnSelect () { }\r\n\r\n  CloseOnSelect.prototype.bind = function (decorated, container, $container) {\r\n    var self = this;\r\n\r\n    decorated.call(this, container, $container);\r\n\r\n    container.on('select', function (evt) {\r\n      self._selectTriggered(evt);\r\n    });\r\n\r\n    container.on('unselect', function (evt) {\r\n      self._selectTriggered(evt);\r\n    });\r\n  };\r\n\r\n  CloseOnSelect.prototype._selectTriggered = function (_, evt) {\r\n    var originalEvent = evt.originalEvent;\r\n\r\n    // Don't close if the control key is being held\r\n    if (originalEvent && originalEvent.ctrlKey) {\r\n      return;\r\n    }\r\n\r\n    this.trigger('close', {\r\n      originalEvent: originalEvent,\r\n      originalSelect2Event: evt\r\n    });\r\n  };\r\n\r\n  return CloseOnSelect;\r\n});\r\n\r\nS2.define('select2/i18n/en',[],function () {\r\n  // English\r\n  return {\r\n    errorLoading: function () {\r\n      return 'The results could not be loaded.';\r\n    },\r\n    inputTooLong: function (args) {\r\n      var overChars = args.input.length - args.maximum;\r\n\r\n      var message = 'Please delete ' + overChars + ' character';\r\n\r\n      if (overChars != 1) {\r\n        message += 's';\r\n      }\r\n\r\n      return message;\r\n    },\r\n    inputTooShort: function (args) {\r\n      var remainingChars = args.minimum - args.input.length;\r\n\r\n      var message = 'Please enter ' + remainingChars + ' or more characters';\r\n\r\n      return message;\r\n    },\r\n    loadingMore: function () {\r\n      return 'Loading more results…';\r\n    },\r\n    maximumSelected: function (args) {\r\n      var message = 'You can only select ' + args.maximum + ' item';\r\n\r\n      if (args.maximum != 1) {\r\n        message += 's';\r\n      }\r\n\r\n      return message;\r\n    },\r\n    noResults: function () {\r\n      return 'No results found';\r\n    },\r\n    searching: function () {\r\n      return 'Searching…';\r\n    }\r\n  };\r\n});\r\n\r\nS2.define('select2/defaults',[\r\n  'jquery',\r\n  'require',\r\n\r\n  './results',\r\n\r\n  './selection/single',\r\n  './selection/multiple',\r\n  './selection/placeholder',\r\n  './selection/allowClear',\r\n  './selection/search',\r\n  './selection/eventRelay',\r\n\r\n  './utils',\r\n  './translation',\r\n  './diacritics',\r\n\r\n  './data/select',\r\n  './data/array',\r\n  './data/ajax',\r\n  './data/tags',\r\n  './data/tokenizer',\r\n  './data/minimumInputLength',\r\n  './data/maximumInputLength',\r\n  './data/maximumSelectionLength',\r\n\r\n  './dropdown',\r\n  './dropdown/search',\r\n  './dropdown/hidePlaceholder',\r\n  './dropdown/infiniteScroll',\r\n  './dropdown/attachBody',\r\n  './dropdown/minimumResultsForSearch',\r\n  './dropdown/selectOnClose',\r\n  './dropdown/closeOnSelect',\r\n\r\n  './i18n/en'\r\n], function ($, require,\r\n\r\n             ResultsList,\r\n\r\n             SingleSelection, MultipleSelection, Placeholder, AllowClear,\r\n             SelectionSearch, EventRelay,\r\n\r\n             Utils, Translation, DIACRITICS,\r\n\r\n             SelectData, ArrayData, AjaxData, Tags, Tokenizer,\r\n             MinimumInputLength, MaximumInputLength, MaximumSelectionLength,\r\n\r\n             Dropdown, DropdownSearch, HidePlaceholder, InfiniteScroll,\r\n             AttachBody, MinimumResultsForSearch, SelectOnClose, CloseOnSelect,\r\n\r\n             EnglishTranslation) {\r\n  function Defaults () {\r\n    this.reset();\r\n  }\r\n\r\n  Defaults.prototype.apply = function (options) {\r\n    options = $.extend(true, {}, this.defaults, options);\r\n\r\n    if (options.dataAdapter == null) {\r\n      if (options.ajax != null) {\r\n        options.dataAdapter = AjaxData;\r\n      } else if (options.data != null) {\r\n        options.dataAdapter = ArrayData;\r\n      } else {\r\n        options.dataAdapter = SelectData;\r\n      }\r\n\r\n      if (options.minimumInputLength > 0) {\r\n        options.dataAdapter = Utils.Decorate(\r\n          options.dataAdapter,\r\n          MinimumInputLength\r\n        );\r\n      }\r\n\r\n      if (options.maximumInputLength > 0) {\r\n        options.dataAdapter = Utils.Decorate(\r\n          options.dataAdapter,\r\n          MaximumInputLength\r\n        );\r\n      }\r\n\r\n      if (options.maximumSelectionLength > 0) {\r\n        options.dataAdapter = Utils.Decorate(\r\n          options.dataAdapter,\r\n          MaximumSelectionLength\r\n        );\r\n      }\r\n\r\n      if (options.tags) {\r\n        options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);\r\n      }\r\n\r\n      if (options.tokenSeparators != null || options.tokenizer != null) {\r\n        options.dataAdapter = Utils.Decorate(\r\n          options.dataAdapter,\r\n          Tokenizer\r\n        );\r\n      }\r\n\r\n      if (options.query != null) {\r\n        var Query = require(options.amdBase + 'compat/query');\r\n\r\n        options.dataAdapter = Utils.Decorate(\r\n          options.dataAdapter,\r\n          Query\r\n        );\r\n      }\r\n\r\n      if (options.initSelection != null) {\r\n        var InitSelection = require(options.amdBase + 'compat/initSelection');\r\n\r\n        options.dataAdapter = Utils.Decorate(\r\n          options.dataAdapter,\r\n          InitSelection\r\n        );\r\n      }\r\n    }\r\n\r\n    if (options.resultsAdapter == null) {\r\n      options.resultsAdapter = ResultsList;\r\n\r\n      if (options.ajax != null) {\r\n        options.resultsAdapter = Utils.Decorate(\r\n          options.resultsAdapter,\r\n          InfiniteScroll\r\n        );\r\n      }\r\n\r\n      if (options.placeholder != null) {\r\n        options.resultsAdapter = Utils.Decorate(\r\n          options.resultsAdapter,\r\n          HidePlaceholder\r\n        );\r\n      }\r\n\r\n      if (options.selectOnClose) {\r\n        options.resultsAdapter = Utils.Decorate(\r\n          options.resultsAdapter,\r\n          SelectOnClose\r\n        );\r\n      }\r\n    }\r\n\r\n    if (options.dropdownAdapter == null) {\r\n      if (options.multiple) {\r\n        options.dropdownAdapter = Dropdown;\r\n      } else {\r\n        var SearchableDropdown = Utils.Decorate(Dropdown, DropdownSearch);\r\n\r\n        options.dropdownAdapter = SearchableDropdown;\r\n      }\r\n\r\n      if (options.minimumResultsForSearch !== 0) {\r\n        options.dropdownAdapter = Utils.Decorate(\r\n          options.dropdownAdapter,\r\n          MinimumResultsForSearch\r\n        );\r\n      }\r\n\r\n      if (options.closeOnSelect) {\r\n        options.dropdownAdapter = Utils.Decorate(\r\n          options.dropdownAdapter,\r\n          CloseOnSelect\r\n        );\r\n      }\r\n\r\n      if (\r\n        options.dropdownCssClass != null ||\r\n        options.dropdownCss != null ||\r\n        options.adaptDropdownCssClass != null\r\n      ) {\r\n        var DropdownCSS = require(options.amdBase + 'compat/dropdownCss');\r\n\r\n        options.dropdownAdapter = Utils.Decorate(\r\n          options.dropdownAdapter,\r\n          DropdownCSS\r\n        );\r\n      }\r\n\r\n      options.dropdownAdapter = Utils.Decorate(\r\n        options.dropdownAdapter,\r\n        AttachBody\r\n      );\r\n    }\r\n\r\n    if (options.selectionAdapter == null) {\r\n      if (options.multiple) {\r\n        options.selectionAdapter = MultipleSelection;\r\n      } else {\r\n        options.selectionAdapter = SingleSelection;\r\n      }\r\n\r\n      // Add the placeholder mixin if a placeholder was specified\r\n      if (options.placeholder != null) {\r\n        options.selectionAdapter = Utils.Decorate(\r\n          options.selectionAdapter,\r\n          Placeholder\r\n        );\r\n      }\r\n\r\n      if (options.allowClear) {\r\n        options.selectionAdapter = Utils.Decorate(\r\n          options.selectionAdapter,\r\n          AllowClear\r\n        );\r\n      }\r\n\r\n      if (options.multiple) {\r\n        options.selectionAdapter = Utils.Decorate(\r\n          options.selectionAdapter,\r\n          SelectionSearch\r\n        );\r\n      }\r\n\r\n      if (\r\n        options.containerCssClass != null ||\r\n        options.containerCss != null ||\r\n        options.adaptContainerCssClass != null\r\n      ) {\r\n        var ContainerCSS = require(options.amdBase + 'compat/containerCss');\r\n\r\n        options.selectionAdapter = Utils.Decorate(\r\n          options.selectionAdapter,\r\n          ContainerCSS\r\n        );\r\n      }\r\n\r\n      options.selectionAdapter = Utils.Decorate(\r\n        options.selectionAdapter,\r\n        EventRelay\r\n      );\r\n    }\r\n\r\n    if (typeof options.language === 'string') {\r\n      // Check if the language is specified with a region\r\n      if (options.language.indexOf('-') > 0) {\r\n        // Extract the region information if it is included\r\n        var languageParts = options.language.split('-');\r\n        var baseLanguage = languageParts[0];\r\n\r\n        options.language = [options.language, baseLanguage];\r\n      } else {\r\n        options.language = [options.language];\r\n      }\r\n    }\r\n\r\n    if ($.isArray(options.language)) {\r\n      var languages = new Translation();\r\n      options.language.push('en');\r\n\r\n      var languageNames = options.language;\r\n\r\n      for (var l = 0; l < languageNames.length; l++) {\r\n        var name = languageNames[l];\r\n        var language = {};\r\n\r\n        try {\r\n          // Try to load it with the original name\r\n          language = Translation.loadPath(name);\r\n        } catch (e) {\r\n          try {\r\n            // If we couldn't load it, check if it wasn't the full path\r\n            name = this.defaults.amdLanguageBase + name;\r\n            language = Translation.loadPath(name);\r\n          } catch (ex) {\r\n            // The translation could not be loaded at all. Sometimes this is\r\n            // because of a configuration problem, other times this can be\r\n            // because of how Select2 helps load all possible translation files.\r\n            if (options.debug && window.console && console.warn) {\r\n              console.warn(\r\n                'Select2: The language file for \"' + name + '\" could not be ' +\r\n                'automatically loaded. A fallback will be used instead.'\r\n              );\r\n            }\r\n\r\n            continue;\r\n          }\r\n        }\r\n\r\n        languages.extend(language);\r\n      }\r\n\r\n      options.translations = languages;\r\n    } else {\r\n      var baseTranslation = Translation.loadPath(\r\n        this.defaults.amdLanguageBase + 'en'\r\n      );\r\n      var customTranslation = new Translation(options.language);\r\n\r\n      customTranslation.extend(baseTranslation);\r\n\r\n      options.translations = customTranslation;\r\n    }\r\n\r\n    return options;\r\n  };\r\n\r\n  Defaults.prototype.reset = function () {\r\n    function stripDiacritics (text) {\r\n      // Used 'uni range + named function' from http://jsperf.com/diacritics/18\r\n      function match(a) {\r\n        return DIACRITICS[a] || a;\r\n      }\r\n\r\n      return text.replace(/[^\\u0000-\\u007E]/g, match);\r\n    }\r\n\r\n    function matcher (params, data) {\r\n      // Always return the object if there is nothing to compare\r\n      if ($.trim(params.term) === '') {\r\n        return data;\r\n      }\r\n\r\n      // Do a recursive check for options with children\r\n      if (data.children && data.children.length > 0) {\r\n        // Clone the data object if there are children\r\n        // This is required as we modify the object to remove any non-matches\r\n        var match = $.extend(true, {}, data);\r\n\r\n        // Check each child of the option\r\n        for (var c = data.children.length - 1; c >= 0; c--) {\r\n          var child = data.children[c];\r\n\r\n          var matches = matcher(params, child);\r\n\r\n          // If there wasn't a match, remove the object in the array\r\n          if (matches == null) {\r\n            match.children.splice(c, 1);\r\n          }\r\n        }\r\n\r\n        // If any children matched, return the new object\r\n        if (match.children.length > 0) {\r\n          return match;\r\n        }\r\n\r\n        // If there were no matching children, check just the plain object\r\n        return matcher(params, match);\r\n      }\r\n\r\n      var original = stripDiacritics(data.text).toUpperCase();\r\n      var term = stripDiacritics(params.term).toUpperCase();\r\n\r\n      // Check if the text contains the term\r\n      if (original.indexOf(term) > -1) {\r\n        return data;\r\n      }\r\n\r\n      // If it doesn't contain the term, don't return anything\r\n      return null;\r\n    }\r\n\r\n    this.defaults = {\r\n      amdBase: './',\r\n      amdLanguageBase: './i18n/',\r\n      closeOnSelect: true,\r\n      debug: false,\r\n      dropdownAutoWidth: false,\r\n      escapeMarkup: Utils.escapeMarkup,\r\n      language: EnglishTranslation,\r\n      matcher: matcher,\r\n      minimumInputLength: 0,\r\n      maximumInputLength: 0,\r\n      maximumSelectionLength: 0,\r\n      minimumResultsForSearch: 0,\r\n      selectOnClose: false,\r\n      sorter: function (data) {\r\n        return data;\r\n      },\r\n      templateResult: function (result) {\r\n        return result.text;\r\n      },\r\n      templateSelection: function (selection) {\r\n        return selection.text;\r\n      },\r\n      theme: 'default',\r\n      width: 'resolve'\r\n    };\r\n  };\r\n\r\n  Defaults.prototype.set = function (key, value) {\r\n    var camelKey = $.camelCase(key);\r\n\r\n    var data = {};\r\n    data[camelKey] = value;\r\n\r\n    var convertedData = Utils._convertData(data);\r\n\r\n    $.extend(this.defaults, convertedData);\r\n  };\r\n\r\n  var defaults = new Defaults();\r\n\r\n  return defaults;\r\n});\r\n\r\nS2.define('select2/options',[\r\n  'require',\r\n  'jquery',\r\n  './defaults',\r\n  './utils'\r\n], function (require, $, Defaults, Utils) {\r\n  function Options (options, $element) {\r\n    this.options = options;\r\n\r\n    if ($element != null) {\r\n      this.fromElement($element);\r\n    }\r\n\r\n    this.options = Defaults.apply(this.options);\r\n\r\n    if ($element && $element.is('input')) {\r\n      var InputCompat = require(this.get('amdBase') + 'compat/inputData');\r\n\r\n      this.options.dataAdapter = Utils.Decorate(\r\n        this.options.dataAdapter,\r\n        InputCompat\r\n      );\r\n    }\r\n  }\r\n\r\n  Options.prototype.fromElement = function ($e) {\r\n    var excludedData = ['select2'];\r\n\r\n    if (this.options.multiple == null) {\r\n      this.options.multiple = $e.prop('multiple');\r\n    }\r\n\r\n    if (this.options.disabled == null) {\r\n      this.options.disabled = $e.prop('disabled');\r\n    }\r\n\r\n    if (this.options.language == null) {\r\n      if ($e.prop('lang')) {\r\n        this.options.language = $e.prop('lang').toLowerCase();\r\n      } else if ($e.closest('[lang]').prop('lang')) {\r\n        this.options.language = $e.closest('[lang]').prop('lang');\r\n      }\r\n    }\r\n\r\n    if (this.options.dir == null) {\r\n      if ($e.prop('dir')) {\r\n        this.options.dir = $e.prop('dir');\r\n      } else if ($e.closest('[dir]').prop('dir')) {\r\n        this.options.dir = $e.closest('[dir]').prop('dir');\r\n      } else {\r\n        this.options.dir = 'ltr';\r\n      }\r\n    }\r\n\r\n    $e.prop('disabled', this.options.disabled);\r\n    $e.prop('multiple', this.options.multiple);\r\n\r\n    if ($e.data('select2Tags')) {\r\n      if (this.options.debug && window.console && console.warn) {\r\n        console.warn(\r\n          'Select2: The `data-select2-tags` attribute has been changed to ' +\r\n          'use the `data-data` and `data-tags=\"true\"` attributes and will be ' +\r\n          'removed in future versions of Select2.'\r\n        );\r\n      }\r\n\r\n      $e.data('data', $e.data('select2Tags'));\r\n      $e.data('tags', true);\r\n    }\r\n\r\n    if ($e.data('ajaxUrl')) {\r\n      if (this.options.debug && window.console && console.warn) {\r\n        console.warn(\r\n          'Select2: The `data-ajax-url` attribute has been changed to ' +\r\n          '`data-ajax--url` and support for the old attribute will be removed' +\r\n          ' in future versions of Select2.'\r\n        );\r\n      }\r\n\r\n      $e.attr('ajax--url', $e.data('ajaxUrl'));\r\n      $e.data('ajax--url', $e.data('ajaxUrl'));\r\n    }\r\n\r\n    var dataset = {};\r\n\r\n    // Prefer the element's `dataset` attribute if it exists\r\n    // jQuery 1.x does not correctly handle data attributes with multiple dashes\r\n    if ($.fn.jquery && $.fn.jquery.substr(0, 2) == '1.' && $e[0].dataset) {\r\n      dataset = $.extend(true, {}, $e[0].dataset, $e.data());\r\n    } else {\r\n      dataset = $e.data();\r\n    }\r\n\r\n    var data = $.extend(true, {}, dataset);\r\n\r\n    data = Utils._convertData(data);\r\n\r\n    for (var key in data) {\r\n      if ($.inArray(key, excludedData) > -1) {\r\n        continue;\r\n      }\r\n\r\n      if ($.isPlainObject(this.options[key])) {\r\n        $.extend(this.options[key], data[key]);\r\n      } else {\r\n        this.options[key] = data[key];\r\n      }\r\n    }\r\n\r\n    return this;\r\n  };\r\n\r\n  Options.prototype.get = function (key) {\r\n    return this.options[key];\r\n  };\r\n\r\n  Options.prototype.set = function (key, val) {\r\n    this.options[key] = val;\r\n  };\r\n\r\n  return Options;\r\n});\r\n\r\nS2.define('select2/core',[\r\n  'jquery',\r\n  './options',\r\n  './utils',\r\n  './keys'\r\n], function ($, Options, Utils, KEYS) {\r\n  var Select2 = function ($element, options) {\r\n    if ($element.data('select2') != null) {\r\n      $element.data('select2').destroy();\r\n    }\r\n\r\n    this.$element = $element;\r\n\r\n    this.id = this._generateId($element);\r\n\r\n    options = options || {};\r\n\r\n    this.options = new Options(options, $element);\r\n\r\n    Select2.__super__.constructor.call(this);\r\n\r\n    // Set up the tabindex\r\n\r\n    var tabindex = $element.attr('tabindex') || 0;\r\n    $element.data('old-tabindex', tabindex);\r\n    $element.attr('tabindex', '-1');\r\n\r\n    // Set up containers and adapters\r\n\r\n    var DataAdapter = this.options.get('dataAdapter');\r\n    this.dataAdapter = new DataAdapter($element, this.options);\r\n\r\n    var $container = this.render();\r\n\r\n    this._placeContainer($container);\r\n\r\n    var SelectionAdapter = this.options.get('selectionAdapter');\r\n    this.selection = new SelectionAdapter($element, this.options);\r\n    this.$selection = this.selection.render();\r\n\r\n    this.selection.position(this.$selection, $container);\r\n\r\n    var DropdownAdapter = this.options.get('dropdownAdapter');\r\n    this.dropdown = new DropdownAdapter($element, this.options);\r\n    this.$dropdown = this.dropdown.render();\r\n\r\n    this.dropdown.position(this.$dropdown, $container);\r\n\r\n    var ResultsAdapter = this.options.get('resultsAdapter');\r\n    this.results = new ResultsAdapter($element, this.options, this.dataAdapter);\r\n    this.$results = this.results.render();\r\n\r\n    this.results.position(this.$results, this.$dropdown);\r\n\r\n    // Bind events\r\n\r\n    var self = this;\r\n\r\n    // Bind the container to all of the adapters\r\n    this._bindAdapters();\r\n\r\n    // Register any DOM event handlers\r\n    this._registerDomEvents();\r\n\r\n    // Register any internal event handlers\r\n    this._registerDataEvents();\r\n    this._registerSelectionEvents();\r\n    this._registerDropdownEvents();\r\n    this._registerResultsEvents();\r\n    this._registerEvents();\r\n\r\n    // Set the initial state\r\n    this.dataAdapter.current(function (initialData) {\r\n      self.trigger('selection:update', {\r\n        data: initialData\r\n      });\r\n    });\r\n\r\n    // Hide the original select\r\n    $element.addClass('select2-hidden-accessible');\r\n    $element.attr('aria-hidden', 'true');\r\n\r\n    // Synchronize any monitored attributes\r\n    this._syncAttributes();\r\n\r\n    $element.data('select2', this);\r\n  };\r\n\r\n  Utils.Extend(Select2, Utils.Observable);\r\n\r\n  Select2.prototype._generateId = function ($element) {\r\n    var id = '';\r\n\r\n    if ($element.attr('id') != null) {\r\n      id = $element.attr('id');\r\n    } else if ($element.attr('name') != null) {\r\n      id = $element.attr('name') + '-' + Utils.generateChars(2);\r\n    } else {\r\n      id = Utils.generateChars(4);\r\n    }\r\n\r\n    id = id.replace(/(:|\\.|\\[|\\]|,)/g, '');\r\n    id = 'select2-' + id;\r\n\r\n    return id;\r\n  };\r\n\r\n  Select2.prototype._placeContainer = function ($container) {\r\n    $container.insertAfter(this.$element);\r\n\r\n    var width = this._resolveWidth(this.$element, this.options.get('width'));\r\n\r\n    if (width != null) {\r\n      $container.css('width', width);\r\n    }\r\n  };\r\n\r\n  Select2.prototype._resolveWidth = function ($element, method) {\r\n    var WIDTH = /^width:(([-+]?([0-9]*\\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;\r\n\r\n    if (method == 'resolve') {\r\n      var styleWidth = this._resolveWidth($element, 'style');\r\n\r\n      if (styleWidth != null) {\r\n        return styleWidth;\r\n      }\r\n\r\n      return this._resolveWidth($element, 'element');\r\n    }\r\n\r\n    if (method == 'element') {\r\n      var elementWidth = $element.outerWidth(false);\r\n\r\n      if (elementWidth <= 0) {\r\n        return 'auto';\r\n      }\r\n\r\n      return elementWidth + 'px';\r\n    }\r\n\r\n    if (method == 'style') {\r\n      var style = $element.attr('style');\r\n\r\n      if (typeof(style) !== 'string') {\r\n        return null;\r\n      }\r\n\r\n      var attrs = style.split(';');\r\n\r\n      for (var i = 0, l = attrs.length; i < l; i = i + 1) {\r\n        var attr = attrs[i].replace(/\\s/g, '');\r\n        var matches = attr.match(WIDTH);\r\n\r\n        if (matches !== null && matches.length >= 1) {\r\n          return matches[1];\r\n        }\r\n      }\r\n\r\n      return null;\r\n    }\r\n\r\n    return method;\r\n  };\r\n\r\n  Select2.prototype._bindAdapters = function () {\r\n    this.dataAdapter.bind(this, this.$container);\r\n    this.selection.bind(this, this.$container);\r\n\r\n    this.dropdown.bind(this, this.$container);\r\n    this.results.bind(this, this.$container);\r\n  };\r\n\r\n  Select2.prototype._registerDomEvents = function () {\r\n    var self = this;\r\n\r\n    this.$element.on('change.select2', function () {\r\n      self.dataAdapter.current(function (data) {\r\n        self.trigger('selection:update', {\r\n          data: data\r\n        });\r\n      });\r\n    });\r\n\r\n    this.$element.on('focus.select2', function (evt) {\r\n      self.trigger('focus', evt);\r\n    });\r\n\r\n    this._syncA = Utils.bind(this._syncAttributes, this);\r\n    this._syncS = Utils.bind(this._syncSubtree, this);\r\n\r\n    if (this.$element[0].attachEvent) {\r\n      this.$element[0].attachEvent('onpropertychange', this._syncA);\r\n    }\r\n\r\n    var observer = window.MutationObserver ||\r\n      window.WebKitMutationObserver ||\r\n      window.MozMutationObserver\r\n    ;\r\n\r\n    if (observer != null) {\r\n      this._observer = new observer(function (mutations) {\r\n        $.each(mutations, self._syncA);\r\n        $.each(mutations, self._syncS);\r\n      });\r\n      this._observer.observe(this.$element[0], {\r\n        attributes: true,\r\n        childList: true,\r\n        subtree: false\r\n      });\r\n    } else if (this.$element[0].addEventListener) {\r\n      this.$element[0].addEventListener(\r\n        'DOMAttrModified',\r\n        self._syncA,\r\n        false\r\n      );\r\n      this.$element[0].addEventListener(\r\n        'DOMNodeInserted',\r\n        self._syncS,\r\n        false\r\n      );\r\n      this.$element[0].addEventListener(\r\n        'DOMNodeRemoved',\r\n        self._syncS,\r\n        false\r\n      );\r\n    }\r\n  };\r\n\r\n  Select2.prototype._registerDataEvents = function () {\r\n    var self = this;\r\n\r\n    this.dataAdapter.on('*', function (name, params) {\r\n      self.trigger(name, params);\r\n    });\r\n  };\r\n\r\n  Select2.prototype._registerSelectionEvents = function () {\r\n    var self = this;\r\n    var nonRelayEvents = ['toggle', 'focus'];\r\n\r\n    this.selection.on('toggle', function () {\r\n      self.toggleDropdown();\r\n    });\r\n\r\n    this.selection.on('focus', function (params) {\r\n      self.focus(params);\r\n    });\r\n\r\n    this.selection.on('*', function (name, params) {\r\n      if ($.inArray(name, nonRelayEvents) !== -1) {\r\n        return;\r\n      }\r\n\r\n      self.trigger(name, params);\r\n    });\r\n  };\r\n\r\n  Select2.prototype._registerDropdownEvents = function () {\r\n    var self = this;\r\n\r\n    this.dropdown.on('*', function (name, params) {\r\n      self.trigger(name, params);\r\n    });\r\n  };\r\n\r\n  Select2.prototype._registerResultsEvents = function () {\r\n    var self = this;\r\n\r\n    this.results.on('*', function (name, params) {\r\n      self.trigger(name, params);\r\n    });\r\n  };\r\n\r\n  Select2.prototype._registerEvents = function () {\r\n    var self = this;\r\n\r\n    this.on('open', function () {\r\n      self.$container.addClass('select2-container--open');\r\n    });\r\n\r\n    this.on('close', function () {\r\n      self.$container.removeClass('select2-container--open');\r\n    });\r\n\r\n    this.on('enable', function () {\r\n      self.$container.removeClass('select2-container--disabled');\r\n    });\r\n\r\n    this.on('disable', function () {\r\n      self.$container.addClass('select2-container--disabled');\r\n    });\r\n\r\n    this.on('blur', function () {\r\n      self.$container.removeClass('select2-container--focus');\r\n    });\r\n\r\n    this.on('query', function (params) {\r\n      if (!self.isOpen()) {\r\n        self.trigger('open', {});\r\n      }\r\n\r\n      this.dataAdapter.query(params, function (data) {\r\n        self.trigger('results:all', {\r\n          data: data,\r\n          query: params\r\n        });\r\n      });\r\n    });\r\n\r\n    this.on('query:append', function (params) {\r\n      this.dataAdapter.query(params, function (data) {\r\n        self.trigger('results:append', {\r\n          data: data,\r\n          query: params\r\n        });\r\n      });\r\n    });\r\n\r\n    this.on('keypress', function (evt) {\r\n      var key = evt.which;\r\n\r\n      if (self.isOpen()) {\r\n        if (key === KEYS.ESC || key === KEYS.TAB ||\r\n            (key === KEYS.UP && evt.altKey)) {\r\n          self.close();\r\n\r\n          evt.preventDefault();\r\n        } else if (key === KEYS.ENTER) {\r\n          self.trigger('results:select', {});\r\n\r\n          evt.preventDefault();\r\n        } else if ((key === KEYS.SPACE && evt.ctrlKey)) {\r\n          self.trigger('results:toggle', {});\r\n\r\n          evt.preventDefault();\r\n        } else if (key === KEYS.UP) {\r\n          self.trigger('results:previous', {});\r\n\r\n          evt.preventDefault();\r\n        } else if (key === KEYS.DOWN) {\r\n          self.trigger('results:next', {});\r\n\r\n          evt.preventDefault();\r\n        }\r\n      } else {\r\n        if (key === KEYS.ENTER || key === KEYS.SPACE ||\r\n            (key === KEYS.DOWN && evt.altKey)) {\r\n          self.open();\r\n\r\n          evt.preventDefault();\r\n        }\r\n      }\r\n    });\r\n  };\r\n\r\n  Select2.prototype._syncAttributes = function () {\r\n    this.options.set('disabled', this.$element.prop('disabled'));\r\n\r\n    if (this.options.get('disabled')) {\r\n      if (this.isOpen()) {\r\n        this.close();\r\n      }\r\n\r\n      this.trigger('disable', {});\r\n    } else {\r\n      this.trigger('enable', {});\r\n    }\r\n  };\r\n\r\n  Select2.prototype._syncSubtree = function (evt, mutations) {\r\n    var changed = false;\r\n    var self = this;\r\n\r\n    // Ignore any mutation events raised for elements that aren't options or\r\n    // optgroups. This handles the case when the select element is destroyed\r\n    if (\r\n      evt && evt.target && (\r\n        evt.target.nodeName !== 'OPTION' && evt.target.nodeName !== 'OPTGROUP'\r\n      )\r\n    ) {\r\n      return;\r\n    }\r\n\r\n    if (!mutations) {\r\n      // If mutation events aren't supported, then we can only assume that the\r\n      // change affected the selections\r\n      changed = true;\r\n    } else if (mutations.addedNodes && mutations.addedNodes.length > 0) {\r\n      for (var n = 0; n < mutations.addedNodes.length; n++) {\r\n        var node = mutations.addedNodes[n];\r\n\r\n        if (node.selected) {\r\n          changed = true;\r\n        }\r\n      }\r\n    } else if (mutations.removedNodes && mutations.removedNodes.length > 0) {\r\n      changed = true;\r\n    }\r\n\r\n    // Only re-pull the data if we think there is a change\r\n    if (changed) {\r\n      this.dataAdapter.current(function (currentData) {\r\n        self.trigger('selection:update', {\r\n          data: currentData\r\n        });\r\n      });\r\n    }\r\n  };\r\n\r\n  /**\r\n   * Override the trigger method to automatically trigger pre-events when\r\n   * there are events that can be prevented.\r\n   */\r\n  Select2.prototype.trigger = function (name, args) {\r\n    var actualTrigger = Select2.__super__.trigger;\r\n    var preTriggerMap = {\r\n      'open': 'opening',\r\n      'close': 'closing',\r\n      'select': 'selecting',\r\n      'unselect': 'unselecting'\r\n    };\r\n\r\n    if (args === undefined) {\r\n      args = {};\r\n    }\r\n\r\n    if (name in preTriggerMap) {\r\n      var preTriggerName = preTriggerMap[name];\r\n      var preTriggerArgs = {\r\n        prevented: false,\r\n        name: name,\r\n        args: args\r\n      };\r\n\r\n      actualTrigger.call(this, preTriggerName, preTriggerArgs);\r\n\r\n      if (preTriggerArgs.prevented) {\r\n        args.prevented = true;\r\n\r\n        return;\r\n      }\r\n    }\r\n\r\n    actualTrigger.call(this, name, args);\r\n  };\r\n\r\n  Select2.prototype.toggleDropdown = function () {\r\n    if (this.options.get('disabled')) {\r\n      return;\r\n    }\r\n\r\n    if (this.isOpen()) {\r\n      this.close();\r\n    } else {\r\n      this.open();\r\n    }\r\n  };\r\n\r\n  Select2.prototype.open = function () {\r\n    if (this.isOpen()) {\r\n      return;\r\n    }\r\n\r\n    this.trigger('query', {});\r\n  };\r\n\r\n  Select2.prototype.close = function () {\r\n    if (!this.isOpen()) {\r\n      return;\r\n    }\r\n\r\n    this.trigger('close', {});\r\n  };\r\n\r\n  Select2.prototype.isOpen = function () {\r\n    return this.$container.hasClass('select2-container--open');\r\n  };\r\n\r\n  Select2.prototype.hasFocus = function () {\r\n    return this.$container.hasClass('select2-container--focus');\r\n  };\r\n\r\n  Select2.prototype.focus = function (data) {\r\n    // No need to re-trigger focus events if we are already focused\r\n    if (this.hasFocus()) {\r\n      return;\r\n    }\r\n\r\n    this.$container.addClass('select2-container--focus');\r\n    this.trigger('focus', {});\r\n  };\r\n\r\n  Select2.prototype.enable = function (args) {\r\n    if (this.options.get('debug') && window.console && console.warn) {\r\n      console.warn(\r\n        'Select2: The `select2(\"enable\")` method has been deprecated and will' +\r\n        ' be removed in later Select2 versions. Use $element.prop(\"disabled\")' +\r\n        ' instead.'\r\n      );\r\n    }\r\n\r\n    if (args == null || args.length === 0) {\r\n      args = [true];\r\n    }\r\n\r\n    var disabled = !args[0];\r\n\r\n    this.$element.prop('disabled', disabled);\r\n  };\r\n\r\n  Select2.prototype.data = function () {\r\n    if (this.options.get('debug') &&\r\n        arguments.length > 0 && window.console && console.warn) {\r\n      console.warn(\r\n        'Select2: Data can no longer be set using `select2(\"data\")`. You ' +\r\n        'should consider setting the value instead using `$element.val()`.'\r\n      );\r\n    }\r\n\r\n    var data = [];\r\n\r\n    this.dataAdapter.current(function (currentData) {\r\n      data = currentData;\r\n    });\r\n\r\n    return data;\r\n  };\r\n\r\n  Select2.prototype.val = function (args) {\r\n    if (this.options.get('debug') && window.console && console.warn) {\r\n      console.warn(\r\n        'Select2: The `select2(\"val\")` method has been deprecated and will be' +\r\n        ' removed in later Select2 versions. Use $element.val() instead.'\r\n      );\r\n    }\r\n\r\n    if (args == null || args.length === 0) {\r\n      return this.$element.val();\r\n    }\r\n\r\n    var newVal = args[0];\r\n\r\n    if ($.isArray(newVal)) {\r\n      newVal = $.map(newVal, function (obj) {\r\n        return obj.toString();\r\n      });\r\n    }\r\n\r\n    this.$element.val(newVal).trigger('change');\r\n  };\r\n\r\n  Select2.prototype.destroy = function () {\r\n    this.$container.remove();\r\n\r\n    if (this.$element[0].detachEvent) {\r\n      this.$element[0].detachEvent('onpropertychange', this._syncA);\r\n    }\r\n\r\n    if (this._observer != null) {\r\n      this._observer.disconnect();\r\n      this._observer = null;\r\n    } else if (this.$element[0].removeEventListener) {\r\n      this.$element[0]\r\n        .removeEventListener('DOMAttrModified', this._syncA, false);\r\n      this.$element[0]\r\n        .removeEventListener('DOMNodeInserted', this._syncS, false);\r\n      this.$element[0]\r\n        .removeEventListener('DOMNodeRemoved', this._syncS, false);\r\n    }\r\n\r\n    this._syncA = null;\r\n    this._syncS = null;\r\n\r\n    this.$element.off('.select2');\r\n    this.$element.attr('tabindex', this.$element.data('old-tabindex'));\r\n\r\n    this.$element.removeClass('select2-hidden-accessible');\r\n    this.$element.attr('aria-hidden', 'false');\r\n    this.$element.removeData('select2');\r\n\r\n    this.dataAdapter.destroy();\r\n    this.selection.destroy();\r\n    this.dropdown.destroy();\r\n    this.results.destroy();\r\n\r\n    this.dataAdapter = null;\r\n    this.selection = null;\r\n    this.dropdown = null;\r\n    this.results = null;\r\n  };\r\n\r\n  Select2.prototype.render = function () {\r\n    var $container = $(\r\n      '<span class=\"select2 select2-container\">' +\r\n        '<span class=\"selection\"></span>' +\r\n        '<span class=\"dropdown-wrapper\" aria-hidden=\"true\"></span>' +\r\n      '</span>'\r\n    );\r\n\r\n    $container.attr('dir', this.options.get('dir'));\r\n\r\n    this.$container = $container;\r\n\r\n    this.$container.addClass('select2-container--' + this.options.get('theme'));\r\n\r\n    $container.data('element', this.$element);\r\n\r\n    return $container;\r\n  };\r\n\r\n  return Select2;\r\n});\r\n\r\nS2.define('jquery-mousewheel',[\r\n  'jquery'\r\n], function ($) {\r\n  // Used to shim jQuery.mousewheel for non-full builds.\r\n  return $;\r\n});\r\n\r\nS2.define('jquery.select2',[\r\n  'jquery',\r\n  'jquery-mousewheel',\r\n\r\n  './select2/core',\r\n  './select2/defaults'\r\n], function ($, _, Select2, Defaults) {\r\n  if ($.fn.select2 == null) {\r\n    // All methods that should return the element\r\n    var thisMethods = ['open', 'close', 'destroy'];\r\n\r\n    $.fn.select2 = function (options) {\r\n      options = options || {};\r\n\r\n      if (typeof options === 'object') {\r\n        this.each(function () {\r\n          var instanceOptions = $.extend(true, {}, options);\r\n\r\n          var instance = new Select2($(this), instanceOptions);\r\n        });\r\n\r\n        return this;\r\n      } else if (typeof options === 'string') {\r\n        var ret;\r\n        var args = Array.prototype.slice.call(arguments, 1);\r\n\r\n        this.each(function () {\r\n          var instance = $(this).data('select2');\r\n\r\n          if (instance == null && window.console && console.error) {\r\n            console.error(\r\n              'The select2(\\'' + options + '\\') method was called on an ' +\r\n              'element that is not using Select2.'\r\n            );\r\n          }\r\n\r\n          ret = instance[options].apply(instance, args);\r\n        });\r\n\r\n        // Check if we should be returning `this`\r\n        if ($.inArray(options, thisMethods) > -1) {\r\n          return this;\r\n        }\r\n\r\n        return ret;\r\n      } else {\r\n        throw new Error('Invalid arguments for Select2: ' + options);\r\n      }\r\n    };\r\n  }\r\n\r\n  if ($.fn.select2.defaults == null) {\r\n    $.fn.select2.defaults = Defaults;\r\n  }\r\n\r\n  return Select2;\r\n});\r\n\r\n  // Return the AMD loader configuration so it can be used outside of this file\r\n  return {\r\n    define: S2.define,\r\n    require: S2.require\r\n  };\r\n}());\r\n\r\n  // Autoload the jQuery bindings\r\n  // We know that all of the modules exist above this, so we're safe\r\n  var select2 = S2.require('jquery.select2');\r\n\r\n  // Hold the AMD module references on the jQuery function that was just loaded\r\n  // This allows Select2 to use the internal loader outside of this file, such\r\n  // as in the language files.\r\n  jQuery.fn.select2.amd = S2;\r\n\r\n  // Return the Select2 instance for anyone who is importing it.\r\n  return select2;\r\n}));\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/select2/dist/js/select2.js\n// module id = 448\n// module chunks = 2","/**\r\n * Widgster plugin.\r\n */\r\n!function ($) {\r\n\r\n    \"use strict\";\r\n\r\n    // WIDGSTER CLASS DEFINITION\r\n    // ======================\r\n\r\n    var Widgster = function (el, options) {\r\n        this.$element = $(el);\r\n        this.$collapse = this.$element.find('[data-widgster=collapse]');\r\n        this.$expand = this.$element.find('[data-widgster=expand]');\r\n        this.$fullscreen = this.$element.find('[data-widgster=fullscreen]');\r\n        this.$restore = this.$element.find('[data-widgster=restore]');\r\n        this.options = options;\r\n        this.collapsed = options.collapsed;\r\n        this.fullscreened = options.fullscreened;\r\n\r\n        this._initHandlers();\r\n\r\n        if (this.collapsed){\r\n            this.collapse(false);\r\n        } else {\r\n            this.$expand.hide();\r\n        }\r\n\r\n        if (this.fullscreened){\r\n            this.fullscreen();\r\n        } else {\r\n            this.$restore.hide();\r\n        }\r\n\r\n        this.options.autoload && this.load();\r\n        var interval = parseInt(this.options.autoload);\r\n        if (!isNaN(interval)){\r\n            var widgster = this;\r\n            this._autoloadInterval = setInterval(function(){\r\n                widgster.load();\r\n            }, interval)\r\n        }\r\n    };\r\n\r\n    Widgster.DEFAULTS = {\r\n        collapsed: false,\r\n        fullscreened: false,\r\n        transitionDuration: 150,\r\n        bodySelector: '.body',\r\n        showLoader: true,\r\n        autoload: false,\r\n        loaderTemplate: '<div style=\"text-align: center; margin-top: 10px;\">Loading...</div>',\r\n        /**\r\n         * provide a way to insert a prompt before removing widget\r\n         * @param callback\r\n         */\r\n        closePrompt: function(callback){\r\n            callback()\r\n        }\r\n    };\r\n\r\n    Widgster.prototype.collapse = function(animate){\r\n        animate = typeof animate == \"undefined\" ? true : animate;\r\n        var e = $.Event('collapse.widgster');\r\n        this.$element.trigger(e);\r\n        if (e.isDefaultPrevented()) return;\r\n\r\n        var widgster = this,\r\n            duration = animate ? this.options.transitionDuration : 0;\r\n        this.$element.find(this.options.bodySelector).slideUp(duration, function(){\r\n            widgster.$element.addClass('collapsed');\r\n            widgster.$element.trigger($.Event('collapsed.widgster'));\r\n            widgster.collapsed = true;\r\n        });\r\n\r\n        this.$collapse.hide();\r\n        this.$expand.show();\r\n\r\n        return false;\r\n    };\r\n\r\n    Widgster.prototype.expand = function(animate){\r\n        animate = typeof animate == \"undefined\" ? true : animate;\r\n        var e = $.Event('expand.widgster');\r\n        this.$element.trigger(e);\r\n        if (e.isDefaultPrevented()) return;\r\n\r\n        var widgster = this,\r\n            duration = animate ? this.options.transitionDuration : 0;\r\n        this.$element.find(this.options.bodySelector).slideDown(duration, function(){\r\n            widgster.$element.removeClass('collapsed');\r\n            widgster.$element.trigger($.Event('expanded.widgster'));\r\n            widgster.collapsed = false;\r\n        });\r\n\r\n        this.$collapse.show();\r\n        this.$expand.hide();\r\n\r\n        return false;\r\n    };\r\n\r\n    Widgster.prototype.close = function(){\r\n\r\n        this.options.closePrompt && this.options.closePrompt($.proxy(this._doClose, this));\r\n\r\n        return false;\r\n    };\r\n\r\n    Widgster.prototype.load = function(){\r\n        var e = $.Event('load.widgster');\r\n\r\n        this.$element.trigger(e);\r\n\r\n        if (e.isDefaultPrevented()) return;\r\n\r\n        var widgster = this;\r\n        this.$element.find(this.options.bodySelector).load(this.options.load, function(responseText, textStatus, xhr){\r\n            widgster.expand();\r\n            widgster.options.showLoader && widgster._hideLoader();\r\n            widgster.$element.trigger($.Event('loaded.widgster', {\r\n                responseText: responseText,\r\n                textStatus: textStatus,\r\n                xhr: xhr\r\n            }))\r\n        });\r\n        this.options.showLoader && this._showLoader();\r\n\r\n        return false;\r\n    };\r\n\r\n    Widgster.prototype.fullscreen = function(){\r\n        var e = $.Event('fullscreen.widgster');\r\n\r\n        this.$element.trigger(e);\r\n\r\n        if (e.isDefaultPrevented()) return;\r\n\r\n        this.$element.css({\r\n            position: 'fixed',\r\n            top: 0,\r\n            right: 0,\r\n            bottom: 0,\r\n            left: 0,\r\n            margin: 0,\r\n            'z-index': 10000\r\n        });\r\n        $('body').css('overflow', 'hidden');\r\n\r\n        this.wasCollapsed = this.collapsed;\r\n        this.expand(false);\r\n\r\n        this.$fullscreen.hide();\r\n        this.$restore.show();\r\n\r\n        this.$collapse.hide(); this.$expand.hide();\r\n\r\n        this.$element.addClass('fullscreened');\r\n\r\n        this.$element.trigger($.Event('fullscreened.widgster'));\r\n\r\n        return false;\r\n    };\r\n\r\n    Widgster.prototype.restore = function(){\r\n        var e = $.Event('restore.widgster');\r\n\r\n        this.$element.trigger(e);\r\n\r\n        if (e.isDefaultPrevented()) return;\r\n\r\n        this.$element.css({\r\n            position: '',\r\n            top: '',\r\n            right: '',\r\n            bottom: '',\r\n            left: '',\r\n            margin: '',\r\n            'z-index': ''\r\n        });\r\n        $('body').css('overflow', '');\r\n\r\n        this.$fullscreen.show();\r\n        this.$restore.hide();\r\n\r\n        if (this.collapsed){\r\n            this.$collapse.hide(); this.$expand.show();\r\n        } else {\r\n            this.$collapse.show(); this.$expand.hide();\r\n        }\r\n\r\n        this.wasCollapsed && this.collapse(false);\r\n\r\n        this.$element.removeClass('fullscreened');\r\n\r\n        this.$element.trigger($.Event('restored.widgster'));\r\n\r\n        return false;\r\n    };\r\n\r\n    Widgster.prototype._doClose = function(){\r\n        //could have been remove.widgster, but http://bugs.jquery.com/ticket/14600\r\n        var e = $.Event('close.widgster');\r\n\r\n        this.$element.trigger(e);\r\n\r\n        if (e.isDefaultPrevented()) return;\r\n\r\n        $('body').css('overflow', '');\r\n\r\n        this.$element.detach();\r\n\r\n        e = $.Event('closed.widgster', {$element: this.$element});\r\n\r\n        this.$element.trigger(e);\r\n    };\r\n\r\n    Widgster.prototype._showLoader = function(){\r\n        var $body = this.$element.find(this.options.bodySelector);\r\n\r\n        this.$loaderWrap = this.$element.find('.widgster-loader-wrap');\r\n\r\n        //create loader html if does not exist\r\n        if (this.$loaderWrap.length == 0){\r\n            this.$loaderWrap = $('<div class=\"widgster-loader-wrap\" style=\"position: absolute; top: 0; right: 0; bottom: 0; ' +\r\n                'left: 0; display: none\"></div>');\r\n            this.$element.append(this.$loaderWrap);\r\n        }\r\n        this.$loaderWrap.html(this.options.loaderTemplate);\r\n        this.$loaderWrap.css({\r\n            'margin-top': $body.position().top\r\n        });\r\n        if (!this.collapsed){\r\n            $body.fadeTo(this.options.transitionDuration, 0);\r\n            this.$loaderWrap.fadeIn(this.options.transitionDuration)\r\n        }\r\n    };\r\n\r\n    Widgster.prototype._hideLoader = function(){\r\n        this.$loaderWrap.fadeOut(this.options.transitionDuration);\r\n        this.$element.find(this.options.bodySelector).fadeTo(this.options.transitionDuration, 1);\r\n    };\r\n\r\n    /**\r\n     * Attach all required widgster functions to data-widgster elements.\r\n     * @private\r\n     */\r\n    Widgster.prototype._initHandlers = function(){\r\n        this.$element.on('click.collapse.widgster', '[data-widgster=collapse]', $.proxy(this.collapse, this));\r\n        this.$element.on('click.expand.widgster', '[data-widgster=expand]', $.proxy(this.expand, this));\r\n        this.$element.on('click.close.widgster', '[data-widgster=close]', $.proxy(this.close, this));\r\n        this.$element.on('click.load.widgster', '[data-widgster=load]', $.proxy(this.load, this));\r\n        this.$element.on('click.fullscreen.widgster', '[data-widgster=fullscreen]', $.proxy(this.fullscreen, this));\r\n        this.$element.on('click.restore.widgster', '[data-widgster=restore]', $.proxy(this.restore, this));\r\n    };\r\n\r\n\r\n    // NAMESPACED DATA ATTRIBUTES\r\n    // =======================\r\n\r\n    function getNamespacedData(namespace, data){\r\n        var namespacedData = {};\r\n        for (var key in data){\r\n            // key starts with namespace\r\n            if (key.slice(0, namespace.length) == namespace){\r\n                var namespacedKey = key.slice(namespace.length, key.length);\r\n                namespacedKey = namespacedKey.charAt(0).toLowerCase() + namespacedKey.slice(1);\r\n                namespacedData[namespacedKey] = data[key];\r\n            }\r\n        }\r\n\r\n        return namespacedData;\r\n    }\r\n\r\n    // WIDGSTER PLUGIN DEFINITION\r\n    // =======================\r\n\r\n    $.fn.widgster = function (option) {\r\n        return this.each(function () {\r\n            var $this   = $(this);\r\n            var data    = $this.data('widgster');\r\n            var options = $.extend({}, Widgster.DEFAULTS, getNamespacedData('widgster', $this.data()), typeof option == 'object' && option);\r\n\r\n            if (!data) $this.data('widgster', new Widgster(this, options));\r\n            if (typeof option == 'string') data[option]();\r\n        })\r\n    };\r\n\r\n    $.fn.widgster.Constructor = Widgster;\r\n\r\n\r\n}(window.jQuery);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/widgster/widgster.js\n// module id = 450\n// module chunks = 2"," /*\r\n * # Semantic UI - 2.2.10\r\n * https://github.com/Semantic-Org/Semantic-UI\r\n * http://www.semantic-ui.com/\r\n *\r\n * Copyright 2014 Contributors\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n/*!\r\n * # Semantic UI 2.2.10 - Site\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n$.site = $.fn.site = function(parameters) {\r\n  var\r\n    time           = new Date().getTime(),\r\n    performance    = [],\r\n\r\n    query          = arguments[0],\r\n    methodInvoked  = (typeof query == 'string'),\r\n    queryArguments = [].slice.call(arguments, 1),\r\n\r\n    settings        = ( $.isPlainObject(parameters) )\r\n      ? $.extend(true, {}, $.site.settings, parameters)\r\n      : $.extend({}, $.site.settings),\r\n\r\n    namespace       = settings.namespace,\r\n    error           = settings.error,\r\n\r\n    eventNamespace  = '.' + namespace,\r\n    moduleNamespace = 'module-' + namespace,\r\n\r\n    $document       = $(document),\r\n    $module         = $document,\r\n    element         = this,\r\n    instance        = $module.data(moduleNamespace),\r\n\r\n    module,\r\n    returnedValue\r\n  ;\r\n  module = {\r\n\r\n    initialize: function() {\r\n      module.instantiate();\r\n    },\r\n\r\n    instantiate: function() {\r\n      module.verbose('Storing instance of site', module);\r\n      instance = module;\r\n      $module\r\n        .data(moduleNamespace, module)\r\n      ;\r\n    },\r\n\r\n    normalize: function() {\r\n      module.fix.console();\r\n      module.fix.requestAnimationFrame();\r\n    },\r\n\r\n    fix: {\r\n      console: function() {\r\n        module.debug('Normalizing window.console');\r\n        if (console === undefined || console.log === undefined) {\r\n          module.verbose('Console not available, normalizing events');\r\n          module.disable.console();\r\n        }\r\n        if (typeof console.group == 'undefined' || typeof console.groupEnd == 'undefined' || typeof console.groupCollapsed == 'undefined') {\r\n          module.verbose('Console group not available, normalizing events');\r\n          window.console.group = function() {};\r\n          window.console.groupEnd = function() {};\r\n          window.console.groupCollapsed = function() {};\r\n        }\r\n        if (typeof console.markTimeline == 'undefined') {\r\n          module.verbose('Mark timeline not available, normalizing events');\r\n          window.console.markTimeline = function() {};\r\n        }\r\n      },\r\n      consoleClear: function() {\r\n        module.debug('Disabling programmatic console clearing');\r\n        window.console.clear = function() {};\r\n      },\r\n      requestAnimationFrame: function() {\r\n        module.debug('Normalizing requestAnimationFrame');\r\n        if(window.requestAnimationFrame === undefined) {\r\n          module.debug('RequestAnimationFrame not available, normalizing event');\r\n          window.requestAnimationFrame = window.requestAnimationFrame\r\n            || window.mozRequestAnimationFrame\r\n            || window.webkitRequestAnimationFrame\r\n            || window.msRequestAnimationFrame\r\n            || function(callback) { setTimeout(callback, 0); }\r\n          ;\r\n        }\r\n      }\r\n    },\r\n\r\n    moduleExists: function(name) {\r\n      return ($.fn[name] !== undefined && $.fn[name].settings !== undefined);\r\n    },\r\n\r\n    enabled: {\r\n      modules: function(modules) {\r\n        var\r\n          enabledModules = []\r\n        ;\r\n        modules = modules || settings.modules;\r\n        $.each(modules, function(index, name) {\r\n          if(module.moduleExists(name)) {\r\n            enabledModules.push(name);\r\n          }\r\n        });\r\n        return enabledModules;\r\n      }\r\n    },\r\n\r\n    disabled: {\r\n      modules: function(modules) {\r\n        var\r\n          disabledModules = []\r\n        ;\r\n        modules = modules || settings.modules;\r\n        $.each(modules, function(index, name) {\r\n          if(!module.moduleExists(name)) {\r\n            disabledModules.push(name);\r\n          }\r\n        });\r\n        return disabledModules;\r\n      }\r\n    },\r\n\r\n    change: {\r\n      setting: function(setting, value, modules, modifyExisting) {\r\n        modules = (typeof modules === 'string')\r\n          ? (modules === 'all')\r\n            ? settings.modules\r\n            : [modules]\r\n          : modules || settings.modules\r\n        ;\r\n        modifyExisting = (modifyExisting !== undefined)\r\n          ? modifyExisting\r\n          : true\r\n        ;\r\n        $.each(modules, function(index, name) {\r\n          var\r\n            namespace = (module.moduleExists(name))\r\n              ? $.fn[name].settings.namespace || false\r\n              : true,\r\n            $existingModules\r\n          ;\r\n          if(module.moduleExists(name)) {\r\n            module.verbose('Changing default setting', setting, value, name);\r\n            $.fn[name].settings[setting] = value;\r\n            if(modifyExisting && namespace) {\r\n              $existingModules = $(':data(module-' + namespace + ')');\r\n              if($existingModules.length > 0) {\r\n                module.verbose('Modifying existing settings', $existingModules);\r\n                $existingModules[name]('setting', setting, value);\r\n              }\r\n            }\r\n          }\r\n        });\r\n      },\r\n      settings: function(newSettings, modules, modifyExisting) {\r\n        modules = (typeof modules === 'string')\r\n          ? [modules]\r\n          : modules || settings.modules\r\n        ;\r\n        modifyExisting = (modifyExisting !== undefined)\r\n          ? modifyExisting\r\n          : true\r\n        ;\r\n        $.each(modules, function(index, name) {\r\n          var\r\n            $existingModules\r\n          ;\r\n          if(module.moduleExists(name)) {\r\n            module.verbose('Changing default setting', newSettings, name);\r\n            $.extend(true, $.fn[name].settings, newSettings);\r\n            if(modifyExisting && namespace) {\r\n              $existingModules = $(':data(module-' + namespace + ')');\r\n              if($existingModules.length > 0) {\r\n                module.verbose('Modifying existing settings', $existingModules);\r\n                $existingModules[name]('setting', newSettings);\r\n              }\r\n            }\r\n          }\r\n        });\r\n      }\r\n    },\r\n\r\n    enable: {\r\n      console: function() {\r\n        module.console(true);\r\n      },\r\n      debug: function(modules, modifyExisting) {\r\n        modules = modules || settings.modules;\r\n        module.debug('Enabling debug for modules', modules);\r\n        module.change.setting('debug', true, modules, modifyExisting);\r\n      },\r\n      verbose: function(modules, modifyExisting) {\r\n        modules = modules || settings.modules;\r\n        module.debug('Enabling verbose debug for modules', modules);\r\n        module.change.setting('verbose', true, modules, modifyExisting);\r\n      }\r\n    },\r\n    disable: {\r\n      console: function() {\r\n        module.console(false);\r\n      },\r\n      debug: function(modules, modifyExisting) {\r\n        modules = modules || settings.modules;\r\n        module.debug('Disabling debug for modules', modules);\r\n        module.change.setting('debug', false, modules, modifyExisting);\r\n      },\r\n      verbose: function(modules, modifyExisting) {\r\n        modules = modules || settings.modules;\r\n        module.debug('Disabling verbose debug for modules', modules);\r\n        module.change.setting('verbose', false, modules, modifyExisting);\r\n      }\r\n    },\r\n\r\n    console: function(enable) {\r\n      if(enable) {\r\n        if(instance.cache.console === undefined) {\r\n          module.error(error.console);\r\n          return;\r\n        }\r\n        module.debug('Restoring console function');\r\n        window.console = instance.cache.console;\r\n      }\r\n      else {\r\n        module.debug('Disabling console function');\r\n        instance.cache.console = window.console;\r\n        window.console = {\r\n          clear          : function(){},\r\n          error          : function(){},\r\n          group          : function(){},\r\n          groupCollapsed : function(){},\r\n          groupEnd       : function(){},\r\n          info           : function(){},\r\n          log            : function(){},\r\n          markTimeline   : function(){},\r\n          warn           : function(){}\r\n        };\r\n      }\r\n    },\r\n\r\n    destroy: function() {\r\n      module.verbose('Destroying previous site for', $module);\r\n      $module\r\n        .removeData(moduleNamespace)\r\n      ;\r\n    },\r\n\r\n    cache: {},\r\n\r\n    setting: function(name, value) {\r\n      if( $.isPlainObject(name) ) {\r\n        $.extend(true, settings, name);\r\n      }\r\n      else if(value !== undefined) {\r\n        settings[name] = value;\r\n      }\r\n      else {\r\n        return settings[name];\r\n      }\r\n    },\r\n    internal: function(name, value) {\r\n      if( $.isPlainObject(name) ) {\r\n        $.extend(true, module, name);\r\n      }\r\n      else if(value !== undefined) {\r\n        module[name] = value;\r\n      }\r\n      else {\r\n        return module[name];\r\n      }\r\n    },\r\n    debug: function() {\r\n      if(settings.debug) {\r\n        if(settings.performance) {\r\n          module.performance.log(arguments);\r\n        }\r\n        else {\r\n          module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n          module.debug.apply(console, arguments);\r\n        }\r\n      }\r\n    },\r\n    verbose: function() {\r\n      if(settings.verbose && settings.debug) {\r\n        if(settings.performance) {\r\n          module.performance.log(arguments);\r\n        }\r\n        else {\r\n          module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n          module.verbose.apply(console, arguments);\r\n        }\r\n      }\r\n    },\r\n    error: function() {\r\n      module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n      module.error.apply(console, arguments);\r\n    },\r\n    performance: {\r\n      log: function(message) {\r\n        var\r\n          currentTime,\r\n          executionTime,\r\n          previousTime\r\n        ;\r\n        if(settings.performance) {\r\n          currentTime   = new Date().getTime();\r\n          previousTime  = time || currentTime;\r\n          executionTime = currentTime - previousTime;\r\n          time          = currentTime;\r\n          performance.push({\r\n            'Element'        : element,\r\n            'Name'           : message[0],\r\n            'Arguments'      : [].slice.call(message, 1) || '',\r\n            'Execution Time' : executionTime\r\n          });\r\n        }\r\n        clearTimeout(module.performance.timer);\r\n        module.performance.timer = setTimeout(module.performance.display, 500);\r\n      },\r\n      display: function() {\r\n        var\r\n          title = settings.name + ':',\r\n          totalTime = 0\r\n        ;\r\n        time = false;\r\n        clearTimeout(module.performance.timer);\r\n        $.each(performance, function(index, data) {\r\n          totalTime += data['Execution Time'];\r\n        });\r\n        title += ' ' + totalTime + 'ms';\r\n        if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n          console.groupCollapsed(title);\r\n          if(console.table) {\r\n            console.table(performance);\r\n          }\r\n          else {\r\n            $.each(performance, function(index, data) {\r\n              console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n            });\r\n          }\r\n          console.groupEnd();\r\n        }\r\n        performance = [];\r\n      }\r\n    },\r\n    invoke: function(query, passedArguments, context) {\r\n      var\r\n        object = instance,\r\n        maxDepth,\r\n        found,\r\n        response\r\n      ;\r\n      passedArguments = passedArguments || queryArguments;\r\n      context         = element         || context;\r\n      if(typeof query == 'string' && object !== undefined) {\r\n        query    = query.split(/[\\. ]/);\r\n        maxDepth = query.length - 1;\r\n        $.each(query, function(depth, value) {\r\n          var camelCaseValue = (depth != maxDepth)\r\n            ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n            : query\r\n          ;\r\n          if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n            object = object[camelCaseValue];\r\n          }\r\n          else if( object[camelCaseValue] !== undefined ) {\r\n            found = object[camelCaseValue];\r\n            return false;\r\n          }\r\n          else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n            object = object[value];\r\n          }\r\n          else if( object[value] !== undefined ) {\r\n            found = object[value];\r\n            return false;\r\n          }\r\n          else {\r\n            module.error(error.method, query);\r\n            return false;\r\n          }\r\n        });\r\n      }\r\n      if ( $.isFunction( found ) ) {\r\n        response = found.apply(context, passedArguments);\r\n      }\r\n      else if(found !== undefined) {\r\n        response = found;\r\n      }\r\n      if($.isArray(returnedValue)) {\r\n        returnedValue.push(response);\r\n      }\r\n      else if(returnedValue !== undefined) {\r\n        returnedValue = [returnedValue, response];\r\n      }\r\n      else if(response !== undefined) {\r\n        returnedValue = response;\r\n      }\r\n      return found;\r\n    }\r\n  };\r\n\r\n  if(methodInvoked) {\r\n    if(instance === undefined) {\r\n      module.initialize();\r\n    }\r\n    module.invoke(query);\r\n  }\r\n  else {\r\n    if(instance !== undefined) {\r\n      module.destroy();\r\n    }\r\n    module.initialize();\r\n  }\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.site.settings = {\r\n\r\n  name        : 'Site',\r\n  namespace   : 'site',\r\n\r\n  error : {\r\n    console : 'Console cannot be restored, most likely it was overwritten outside of module',\r\n    method : 'The method you called is not defined.'\r\n  },\r\n\r\n  debug       : false,\r\n  verbose     : false,\r\n  performance : true,\r\n\r\n  modules: [\r\n    'accordion',\r\n    'api',\r\n    'checkbox',\r\n    'dimmer',\r\n    'dropdown',\r\n    'embed',\r\n    'form',\r\n    'modal',\r\n    'nag',\r\n    'popup',\r\n    'rating',\r\n    'shape',\r\n    'sidebar',\r\n    'state',\r\n    'sticky',\r\n    'tab',\r\n    'transition',\r\n    'visit',\r\n    'visibility'\r\n  ],\r\n\r\n  siteNamespace   : 'site',\r\n  namespaceStub   : {\r\n    cache     : {},\r\n    config    : {},\r\n    sections  : {},\r\n    section   : {},\r\n    utilities : {}\r\n  }\r\n\r\n};\r\n\r\n// allows for selection of elements with data attributes\r\n$.extend($.expr[ \":\" ], {\r\n  data: ($.expr.createPseudo)\r\n    ? $.expr.createPseudo(function(dataName) {\r\n        return function(elem) {\r\n          return !!$.data(elem, dataName);\r\n        };\r\n      })\r\n    : function(elem, i, match) {\r\n      // support: jQuery < 1.8\r\n      return !!$.data(elem, match[ 3 ]);\r\n    }\r\n});\r\n\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Form Validation\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.form = function(parameters) {\r\n  var\r\n    $allModules      = $(this),\r\n    moduleSelector   = $allModules.selector || '',\r\n\r\n    time             = new Date().getTime(),\r\n    performance      = [],\r\n\r\n    query            = arguments[0],\r\n    legacyParameters = arguments[1],\r\n    methodInvoked    = (typeof query == 'string'),\r\n    queryArguments   = [].slice.call(arguments, 1),\r\n    returnedValue\r\n  ;\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        $module     = $(this),\r\n        element     = this,\r\n\r\n        formErrors  = [],\r\n        keyHeldDown = false,\r\n\r\n        // set at run-time\r\n        $field,\r\n        $group,\r\n        $message,\r\n        $prompt,\r\n        $submit,\r\n        $clear,\r\n        $reset,\r\n\r\n        settings,\r\n        validation,\r\n\r\n        metadata,\r\n        selector,\r\n        className,\r\n        regExp,\r\n        error,\r\n\r\n        namespace,\r\n        moduleNamespace,\r\n        eventNamespace,\r\n\r\n        instance,\r\n        module\r\n      ;\r\n\r\n      module      = {\r\n\r\n        initialize: function() {\r\n\r\n          // settings grabbed at run time\r\n          module.get.settings();\r\n          if(methodInvoked) {\r\n            if(instance === undefined) {\r\n              module.instantiate();\r\n            }\r\n            module.invoke(query);\r\n          }\r\n          else {\r\n            if(instance !== undefined) {\r\n              instance.invoke('destroy');\r\n            }\r\n            module.verbose('Initializing form validation', $module, settings);\r\n            module.bindEvents();\r\n            module.set.defaults();\r\n            module.instantiate();\r\n          }\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous module', instance);\r\n          module.removeEvents();\r\n          $module\r\n            .removeData(moduleNamespace)\r\n          ;\r\n        },\r\n\r\n        refresh: function() {\r\n          module.verbose('Refreshing selector cache');\r\n          $field      = $module.find(selector.field);\r\n          $group      = $module.find(selector.group);\r\n          $message    = $module.find(selector.message);\r\n          $prompt     = $module.find(selector.prompt);\r\n\r\n          $submit     = $module.find(selector.submit);\r\n          $clear      = $module.find(selector.clear);\r\n          $reset      = $module.find(selector.reset);\r\n        },\r\n\r\n        submit: function() {\r\n          module.verbose('Submitting form', $module);\r\n          $module\r\n            .submit()\r\n          ;\r\n        },\r\n\r\n        attachEvents: function(selector, action) {\r\n          action = action || 'submit';\r\n          $(selector)\r\n            .on('click' + eventNamespace, function(event) {\r\n              module[action]();\r\n              event.preventDefault();\r\n            })\r\n          ;\r\n        },\r\n\r\n        bindEvents: function() {\r\n          module.verbose('Attaching form events');\r\n          $module\r\n            .on('submit' + eventNamespace, module.validate.form)\r\n            .on('blur'   + eventNamespace, selector.field, module.event.field.blur)\r\n            .on('click'  + eventNamespace, selector.submit, module.submit)\r\n            .on('click'  + eventNamespace, selector.reset, module.reset)\r\n            .on('click'  + eventNamespace, selector.clear, module.clear)\r\n          ;\r\n          if(settings.keyboardShortcuts) {\r\n            $module\r\n              .on('keydown' + eventNamespace, selector.field, module.event.field.keydown)\r\n            ;\r\n          }\r\n          $field\r\n            .each(function() {\r\n              var\r\n                $input     = $(this),\r\n                type       = $input.prop('type'),\r\n                inputEvent = module.get.changeEvent(type, $input)\r\n              ;\r\n              $(this)\r\n                .on(inputEvent + eventNamespace, module.event.field.change)\r\n              ;\r\n            })\r\n          ;\r\n        },\r\n\r\n        clear: function() {\r\n          $field\r\n            .each(function () {\r\n              var\r\n                $field       = $(this),\r\n                $element     = $field.parent(),\r\n                $fieldGroup  = $field.closest($group),\r\n                $prompt      = $fieldGroup.find(selector.prompt),\r\n                defaultValue = $field.data(metadata.defaultValue) || '',\r\n                isCheckbox   = $element.is(selector.uiCheckbox),\r\n                isDropdown   = $element.is(selector.uiDropdown),\r\n                isErrored    = $fieldGroup.hasClass(className.error)\r\n              ;\r\n              if(isErrored) {\r\n                module.verbose('Resetting error on field', $fieldGroup);\r\n                $fieldGroup.removeClass(className.error);\r\n                $prompt.remove();\r\n              }\r\n              if(isDropdown) {\r\n                module.verbose('Resetting dropdown value', $element, defaultValue);\r\n                $element.dropdown('clear');\r\n              }\r\n              else if(isCheckbox) {\r\n                $field.prop('checked', false);\r\n              }\r\n              else {\r\n                module.verbose('Resetting field value', $field, defaultValue);\r\n                $field.val('');\r\n              }\r\n            })\r\n          ;\r\n        },\r\n\r\n        reset: function() {\r\n          $field\r\n            .each(function () {\r\n              var\r\n                $field       = $(this),\r\n                $element     = $field.parent(),\r\n                $fieldGroup  = $field.closest($group),\r\n                $prompt      = $fieldGroup.find(selector.prompt),\r\n                defaultValue = $field.data(metadata.defaultValue),\r\n                isCheckbox   = $element.is(selector.uiCheckbox),\r\n                isDropdown   = $element.is(selector.uiDropdown),\r\n                isErrored    = $fieldGroup.hasClass(className.error)\r\n              ;\r\n              if(defaultValue === undefined) {\r\n                return;\r\n              }\r\n              if(isErrored) {\r\n                module.verbose('Resetting error on field', $fieldGroup);\r\n                $fieldGroup.removeClass(className.error);\r\n                $prompt.remove();\r\n              }\r\n              if(isDropdown) {\r\n                module.verbose('Resetting dropdown value', $element, defaultValue);\r\n                $element.dropdown('restore defaults');\r\n              }\r\n              else if(isCheckbox) {\r\n                module.verbose('Resetting checkbox value', $element, defaultValue);\r\n                $field.prop('checked', defaultValue);\r\n              }\r\n              else {\r\n                module.verbose('Resetting field value', $field, defaultValue);\r\n                $field.val(defaultValue);\r\n              }\r\n            })\r\n          ;\r\n        },\r\n\r\n        determine: {\r\n          isValid: function() {\r\n            var\r\n              allValid = true\r\n            ;\r\n            $.each(validation, function(fieldName, field) {\r\n              if( !( module.validate.field(field, fieldName, true) ) ) {\r\n                allValid = false;\r\n              }\r\n            });\r\n            return allValid;\r\n          }\r\n        },\r\n\r\n        is: {\r\n          bracketedRule: function(rule) {\r\n            return (rule.type && rule.type.match(settings.regExp.bracket));\r\n          },\r\n          empty: function($field) {\r\n            if(!$field || $field.length === 0) {\r\n              return true;\r\n            }\r\n            else if($field.is('input[type=\"checkbox\"]')) {\r\n              return !$field.is(':checked');\r\n            }\r\n            else {\r\n              return module.is.blank($field);\r\n            }\r\n          },\r\n          blank: function($field) {\r\n            return $.trim($field.val()) === '';\r\n          },\r\n          valid: function(field) {\r\n            var\r\n              allValid = true\r\n            ;\r\n            if(field) {\r\n              module.verbose('Checking if field is valid', field);\r\n              return module.validate.field(validation[field], field, false);\r\n            }\r\n            else {\r\n              module.verbose('Checking if form is valid');\r\n              $.each(validation, function(fieldName, field) {\r\n                if( !module.is.valid(fieldName) ) {\r\n                  allValid = false;\r\n                }\r\n              });\r\n              return allValid;\r\n            }\r\n          }\r\n        },\r\n\r\n        removeEvents: function() {\r\n          $module\r\n            .off(eventNamespace)\r\n          ;\r\n          $field\r\n            .off(eventNamespace)\r\n          ;\r\n          $submit\r\n            .off(eventNamespace)\r\n          ;\r\n          $field\r\n            .off(eventNamespace)\r\n          ;\r\n        },\r\n\r\n        event: {\r\n          field: {\r\n            keydown: function(event) {\r\n              var\r\n                $field       = $(this),\r\n                key          = event.which,\r\n                isInput      = $field.is(selector.input),\r\n                isCheckbox   = $field.is(selector.checkbox),\r\n                isInDropdown = ($field.closest(selector.uiDropdown).length > 0),\r\n                keyCode      = {\r\n                  enter  : 13,\r\n                  escape : 27\r\n                }\r\n              ;\r\n              if( key == keyCode.escape) {\r\n                module.verbose('Escape key pressed blurring field');\r\n                $field\r\n                  .blur()\r\n                ;\r\n              }\r\n              if(!event.ctrlKey && key == keyCode.enter && isInput && !isInDropdown && !isCheckbox) {\r\n                if(!keyHeldDown) {\r\n                  $field\r\n                    .one('keyup' + eventNamespace, module.event.field.keyup)\r\n                  ;\r\n                  module.submit();\r\n                  module.debug('Enter pressed on input submitting form');\r\n                }\r\n                keyHeldDown = true;\r\n              }\r\n            },\r\n            keyup: function() {\r\n              keyHeldDown = false;\r\n            },\r\n            blur: function(event) {\r\n              var\r\n                $field          = $(this),\r\n                $fieldGroup     = $field.closest($group),\r\n                validationRules = module.get.validation($field)\r\n              ;\r\n              if( $fieldGroup.hasClass(className.error) ) {\r\n                module.debug('Revalidating field', $field, validationRules);\r\n                if(validationRules) {\r\n                  module.validate.field( validationRules );\r\n                }\r\n              }\r\n              else if(settings.on == 'blur' || settings.on == 'change') {\r\n                if(validationRules) {\r\n                  module.validate.field( validationRules );\r\n                }\r\n              }\r\n            },\r\n            change: function(event) {\r\n              var\r\n                $field      = $(this),\r\n                $fieldGroup = $field.closest($group),\r\n                validationRules = module.get.validation($field)\r\n              ;\r\n              if(validationRules && (settings.on == 'change' || ( $fieldGroup.hasClass(className.error) && settings.revalidate) )) {\r\n                clearTimeout(module.timer);\r\n                module.timer = setTimeout(function() {\r\n                  module.debug('Revalidating field', $field,  module.get.validation($field));\r\n                  module.validate.field( validationRules );\r\n                }, settings.delay);\r\n              }\r\n            }\r\n          }\r\n\r\n        },\r\n\r\n        get: {\r\n          ancillaryValue: function(rule) {\r\n            if(!rule.type || (!rule.value && !module.is.bracketedRule(rule))) {\r\n              return false;\r\n            }\r\n            return (rule.value !== undefined)\r\n              ? rule.value\r\n              : rule.type.match(settings.regExp.bracket)[1] + ''\r\n            ;\r\n          },\r\n          ruleName: function(rule) {\r\n            if( module.is.bracketedRule(rule) ) {\r\n              return rule.type.replace(rule.type.match(settings.regExp.bracket)[0], '');\r\n            }\r\n            return rule.type;\r\n          },\r\n          changeEvent: function(type, $input) {\r\n            if(type == 'checkbox' || type == 'radio' || type == 'hidden' || $input.is('select')) {\r\n              return 'change';\r\n            }\r\n            else {\r\n              return module.get.inputEvent();\r\n            }\r\n          },\r\n          inputEvent: function() {\r\n            return (document.createElement('input').oninput !== undefined)\r\n              ? 'input'\r\n              : (document.createElement('input').onpropertychange !== undefined)\r\n                ? 'propertychange'\r\n                : 'keyup'\r\n            ;\r\n          },\r\n          prompt: function(rule, field) {\r\n            var\r\n              ruleName      = module.get.ruleName(rule),\r\n              ancillary     = module.get.ancillaryValue(rule),\r\n              prompt        = rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,\r\n              requiresValue = (prompt.search('{value}') !== -1),\r\n              requiresName  = (prompt.search('{name}') !== -1),\r\n              $label,\r\n              $field,\r\n              name\r\n            ;\r\n            if(requiresName || requiresValue) {\r\n              $field = module.get.field(field.identifier);\r\n            }\r\n            if(requiresValue) {\r\n              prompt = prompt.replace('{value}', $field.val());\r\n            }\r\n            if(requiresName) {\r\n              $label = $field.closest(selector.group).find('label').eq(0);\r\n              name = ($label.length == 1)\r\n                ? $label.text()\r\n                : $field.prop('placeholder') || settings.text.unspecifiedField\r\n              ;\r\n              prompt = prompt.replace('{name}', name);\r\n            }\r\n            prompt = prompt.replace('{identifier}', field.identifier);\r\n            prompt = prompt.replace('{ruleValue}', ancillary);\r\n            if(!rule.prompt) {\r\n              module.verbose('Using default validation prompt for type', prompt, ruleName);\r\n            }\r\n            return prompt;\r\n          },\r\n          settings: function() {\r\n            if($.isPlainObject(parameters)) {\r\n              var\r\n                keys     = Object.keys(parameters),\r\n                isLegacySettings = (keys.length > 0)\r\n                  ? (parameters[keys[0]].identifier !== undefined && parameters[keys[0]].rules !== undefined)\r\n                  : false,\r\n                ruleKeys\r\n              ;\r\n              if(isLegacySettings) {\r\n                // 1.x (ducktyped)\r\n                settings   = $.extend(true, {}, $.fn.form.settings, legacyParameters);\r\n                validation = $.extend({}, $.fn.form.settings.defaults, parameters);\r\n                module.error(settings.error.oldSyntax, element);\r\n                module.verbose('Extending settings from legacy parameters', validation, settings);\r\n              }\r\n              else {\r\n                // 2.x\r\n                if(parameters.fields) {\r\n                  ruleKeys = Object.keys(parameters.fields);\r\n                  if( typeof parameters.fields[ruleKeys[0]] == 'string' || $.isArray(parameters.fields[ruleKeys[0]]) ) {\r\n                    $.each(parameters.fields, function(name, rules) {\r\n                      if(typeof rules == 'string') {\r\n                        rules = [rules];\r\n                      }\r\n                      parameters.fields[name] = {\r\n                        rules: []\r\n                      };\r\n                      $.each(rules, function(index, rule) {\r\n                        parameters.fields[name].rules.push({ type: rule });\r\n                      });\r\n                    });\r\n                  }\r\n                }\r\n\r\n                settings   = $.extend(true, {}, $.fn.form.settings, parameters);\r\n                validation = $.extend({}, $.fn.form.settings.defaults, settings.fields);\r\n                module.verbose('Extending settings', validation, settings);\r\n              }\r\n            }\r\n            else {\r\n              settings   = $.fn.form.settings;\r\n              validation = $.fn.form.settings.defaults;\r\n              module.verbose('Using default form validation', validation, settings);\r\n            }\r\n\r\n            // shorthand\r\n            namespace       = settings.namespace;\r\n            metadata        = settings.metadata;\r\n            selector        = settings.selector;\r\n            className       = settings.className;\r\n            regExp          = settings.regExp;\r\n            error           = settings.error;\r\n            moduleNamespace = 'module-' + namespace;\r\n            eventNamespace  = '.' + namespace;\r\n\r\n            // grab instance\r\n            instance = $module.data(moduleNamespace);\r\n\r\n            // refresh selector cache\r\n            module.refresh();\r\n          },\r\n          field: function(identifier) {\r\n            module.verbose('Finding field with identifier', identifier);\r\n            identifier = module.escape.string(identifier);\r\n            if($field.filter('#' + identifier).length > 0 ) {\r\n              return $field.filter('#' + identifier);\r\n            }\r\n            else if( $field.filter('[name=\"' + identifier +'\"]').length > 0 ) {\r\n              return $field.filter('[name=\"' + identifier +'\"]');\r\n            }\r\n            else if( $field.filter('[name=\"' + identifier +'[]\"]').length > 0 ) {\r\n              return $field.filter('[name=\"' + identifier +'[]\"]');\r\n            }\r\n            else if( $field.filter('[data-' + metadata.validate + '=\"'+ identifier +'\"]').length > 0 ) {\r\n              return $field.filter('[data-' + metadata.validate + '=\"'+ identifier +'\"]');\r\n            }\r\n            return $('<input/>');\r\n          },\r\n          fields: function(fields) {\r\n            var\r\n              $fields = $()\r\n            ;\r\n            $.each(fields, function(index, name) {\r\n              $fields = $fields.add( module.get.field(name) );\r\n            });\r\n            return $fields;\r\n          },\r\n          validation: function($field) {\r\n            var\r\n              fieldValidation,\r\n              identifier\r\n            ;\r\n            if(!validation) {\r\n              return false;\r\n            }\r\n            $.each(validation, function(fieldName, field) {\r\n              identifier = field.identifier || fieldName;\r\n              if( module.get.field(identifier)[0] == $field[0] ) {\r\n                field.identifier = identifier;\r\n                fieldValidation = field;\r\n              }\r\n            });\r\n            return fieldValidation || false;\r\n          },\r\n          value: function (field) {\r\n            var\r\n              fields = [],\r\n              results\r\n            ;\r\n            fields.push(field);\r\n            results = module.get.values.call(element, fields);\r\n            return results[field];\r\n          },\r\n          values: function (fields) {\r\n            var\r\n              $fields = $.isArray(fields)\r\n                ? module.get.fields(fields)\r\n                : $field,\r\n              values = {}\r\n            ;\r\n            $fields.each(function(index, field) {\r\n              var\r\n                $field     = $(field),\r\n                type       = $field.prop('type'),\r\n                name       = $field.prop('name'),\r\n                value      = $field.val(),\r\n                isCheckbox = $field.is(selector.checkbox),\r\n                isRadio    = $field.is(selector.radio),\r\n                isMultiple = (name.indexOf('[]') !== -1),\r\n                isChecked  = (isCheckbox)\r\n                  ? $field.is(':checked')\r\n                  : false\r\n              ;\r\n              if(name) {\r\n                if(isMultiple) {\r\n                  name = name.replace('[]', '');\r\n                  if(!values[name]) {\r\n                    values[name] = [];\r\n                  }\r\n                  if(isCheckbox) {\r\n                    if(isChecked) {\r\n                      values[name].push(value || true);\r\n                    }\r\n                    else {\r\n                      values[name].push(false);\r\n                    }\r\n                  }\r\n                  else {\r\n                    values[name].push(value);\r\n                  }\r\n                }\r\n                else {\r\n                  if(isRadio) {\r\n                    if(isChecked) {\r\n                      values[name] = value;\r\n                    }\r\n                  }\r\n                  else if(isCheckbox) {\r\n                    if(isChecked) {\r\n                      values[name] = value || true;\r\n                    }\r\n                    else {\r\n                      values[name] = false;\r\n                    }\r\n                  }\r\n                  else {\r\n                    values[name] = value;\r\n                  }\r\n                }\r\n              }\r\n            });\r\n            return values;\r\n          }\r\n        },\r\n\r\n        has: {\r\n\r\n          field: function(identifier) {\r\n            module.verbose('Checking for existence of a field with identifier', identifier);\r\n            identifier = module.escape.string(identifier);\r\n            if(typeof identifier !== 'string') {\r\n              module.error(error.identifier, identifier);\r\n            }\r\n            if($field.filter('#' + identifier).length > 0 ) {\r\n              return true;\r\n            }\r\n            else if( $field.filter('[name=\"' + identifier +'\"]').length > 0 ) {\r\n              return true;\r\n            }\r\n            else if( $field.filter('[data-' + metadata.validate + '=\"'+ identifier +'\"]').length > 0 ) {\r\n              return true;\r\n            }\r\n            return false;\r\n          }\r\n\r\n        },\r\n\r\n        escape: {\r\n          string: function(text) {\r\n            text =  String(text);\r\n            return text.replace(regExp.escape, '\\\\$&');\r\n          }\r\n        },\r\n\r\n        add: {\r\n          prompt: function(identifier, errors) {\r\n            var\r\n              $field       = module.get.field(identifier),\r\n              $fieldGroup  = $field.closest($group),\r\n              $prompt      = $fieldGroup.children(selector.prompt),\r\n              promptExists = ($prompt.length !== 0)\r\n            ;\r\n            errors = (typeof errors == 'string')\r\n              ? [errors]\r\n              : errors\r\n            ;\r\n            module.verbose('Adding field error state', identifier);\r\n            $fieldGroup\r\n              .addClass(className.error)\r\n            ;\r\n            if(settings.inline) {\r\n              if(!promptExists) {\r\n                $prompt = settings.templates.prompt(errors);\r\n                $prompt\r\n                  .appendTo($fieldGroup)\r\n                ;\r\n              }\r\n              $prompt\r\n                .html(errors[0])\r\n              ;\r\n              if(!promptExists) {\r\n                if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {\r\n                  module.verbose('Displaying error with css transition', settings.transition);\r\n                  $prompt.transition(settings.transition + ' in', settings.duration);\r\n                }\r\n                else {\r\n                  module.verbose('Displaying error with fallback javascript animation');\r\n                  $prompt\r\n                    .fadeIn(settings.duration)\r\n                  ;\r\n                }\r\n              }\r\n              else {\r\n                module.verbose('Inline errors are disabled, no inline error added', identifier);\r\n              }\r\n            }\r\n          },\r\n          errors: function(errors) {\r\n            module.debug('Adding form error messages', errors);\r\n            module.set.error();\r\n            $message\r\n              .html( settings.templates.error(errors) )\r\n            ;\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          prompt: function(identifier) {\r\n            var\r\n              $field      = module.get.field(identifier),\r\n              $fieldGroup = $field.closest($group),\r\n              $prompt     = $fieldGroup.children(selector.prompt)\r\n            ;\r\n            $fieldGroup\r\n              .removeClass(className.error)\r\n            ;\r\n            if(settings.inline && $prompt.is(':visible')) {\r\n              module.verbose('Removing prompt for field', identifier);\r\n              if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {\r\n                $prompt.transition(settings.transition + ' out', settings.duration, function() {\r\n                  $prompt.remove();\r\n                });\r\n              }\r\n              else {\r\n                $prompt\r\n                  .fadeOut(settings.duration, function(){\r\n                    $prompt.remove();\r\n                  })\r\n                ;\r\n              }\r\n            }\r\n          }\r\n        },\r\n\r\n        set: {\r\n          success: function() {\r\n            $module\r\n              .removeClass(className.error)\r\n              .addClass(className.success)\r\n            ;\r\n          },\r\n          defaults: function () {\r\n            $field\r\n              .each(function () {\r\n                var\r\n                  $field     = $(this),\r\n                  isCheckbox = ($field.filter(selector.checkbox).length > 0),\r\n                  value      = (isCheckbox)\r\n                    ? $field.is(':checked')\r\n                    : $field.val()\r\n                ;\r\n                $field.data(metadata.defaultValue, value);\r\n              })\r\n            ;\r\n          },\r\n          error: function() {\r\n            $module\r\n              .removeClass(className.success)\r\n              .addClass(className.error)\r\n            ;\r\n          },\r\n          value: function (field, value) {\r\n            var\r\n              fields = {}\r\n            ;\r\n            fields[field] = value;\r\n            return module.set.values.call(element, fields);\r\n          },\r\n          values: function (fields) {\r\n            if($.isEmptyObject(fields)) {\r\n              return;\r\n            }\r\n            $.each(fields, function(key, value) {\r\n              var\r\n                $field      = module.get.field(key),\r\n                $element    = $field.parent(),\r\n                isMultiple  = $.isArray(value),\r\n                isCheckbox  = $element.is(selector.uiCheckbox),\r\n                isDropdown  = $element.is(selector.uiDropdown),\r\n                isRadio     = ($field.is(selector.radio) && isCheckbox),\r\n                fieldExists = ($field.length > 0),\r\n                $multipleField\r\n              ;\r\n              if(fieldExists) {\r\n                if(isMultiple && isCheckbox) {\r\n                  module.verbose('Selecting multiple', value, $field);\r\n                  $element.checkbox('uncheck');\r\n                  $.each(value, function(index, value) {\r\n                    $multipleField = $field.filter('[value=\"' + value + '\"]');\r\n                    $element       = $multipleField.parent();\r\n                    if($multipleField.length > 0) {\r\n                      $element.checkbox('check');\r\n                    }\r\n                  });\r\n                }\r\n                else if(isRadio) {\r\n                  module.verbose('Selecting radio value', value, $field);\r\n                  $field.filter('[value=\"' + value + '\"]')\r\n                    .parent(selector.uiCheckbox)\r\n                      .checkbox('check')\r\n                  ;\r\n                }\r\n                else if(isCheckbox) {\r\n                  module.verbose('Setting checkbox value', value, $element);\r\n                  if(value === true) {\r\n                    $element.checkbox('check');\r\n                  }\r\n                  else {\r\n                    $element.checkbox('uncheck');\r\n                  }\r\n                }\r\n                else if(isDropdown) {\r\n                  module.verbose('Setting dropdown value', value, $element);\r\n                  $element.dropdown('set selected', value);\r\n                }\r\n                else {\r\n                  module.verbose('Setting field value', value, $field);\r\n                  $field.val(value);\r\n                }\r\n              }\r\n            });\r\n          }\r\n        },\r\n\r\n        validate: {\r\n\r\n          form: function(event, ignoreCallbacks) {\r\n            var\r\n              values = module.get.values(),\r\n              apiRequest\r\n            ;\r\n\r\n            // input keydown event will fire submit repeatedly by browser default\r\n            if(keyHeldDown) {\r\n              return false;\r\n            }\r\n\r\n            // reset errors\r\n            formErrors = [];\r\n            if( module.determine.isValid() ) {\r\n              module.debug('Form has no validation errors, submitting');\r\n              module.set.success();\r\n              if(ignoreCallbacks !== true) {\r\n                return settings.onSuccess.call(element, event, values);\r\n              }\r\n            }\r\n            else {\r\n              module.debug('Form has errors');\r\n              module.set.error();\r\n              if(!settings.inline) {\r\n                module.add.errors(formErrors);\r\n              }\r\n              // prevent ajax submit\r\n              if($module.data('moduleApi') !== undefined) {\r\n                event.stopImmediatePropagation();\r\n              }\r\n              if(ignoreCallbacks !== true) {\r\n                return settings.onFailure.call(element, formErrors, values);\r\n              }\r\n            }\r\n          },\r\n\r\n          // takes a validation object and returns whether field passes validation\r\n          field: function(field, fieldName, showErrors) {\r\n            showErrors = (showErrors !== undefined)\r\n              ? showErrors\r\n              : true\r\n            ;\r\n            if(typeof field == 'string') {\r\n              module.verbose('Validating field', field);\r\n              fieldName = field;\r\n              field = validation[field];\r\n            }\r\n            var\r\n              identifier    = field.identifier || fieldName,\r\n              $field        = module.get.field(identifier),\r\n              $dependsField = (field.depends)\r\n                ? module.get.field(field.depends)\r\n                : false,\r\n              fieldValid  = true,\r\n              fieldErrors = []\r\n            ;\r\n            if(!field.identifier) {\r\n              module.debug('Using field name as identifier', identifier);\r\n              field.identifier = identifier;\r\n            }\r\n            if($field.prop('disabled')) {\r\n              module.debug('Field is disabled. Skipping', identifier);\r\n              fieldValid = true;\r\n            }\r\n            else if(field.optional && module.is.blank($field)){\r\n              module.debug('Field is optional and blank. Skipping', identifier);\r\n              fieldValid = true;\r\n            }\r\n            else if(field.depends && module.is.empty($dependsField)) {\r\n              module.debug('Field depends on another value that is not present or empty. Skipping', $dependsField);\r\n              fieldValid = true;\r\n            }\r\n            else if(field.rules !== undefined) {\r\n              $.each(field.rules, function(index, rule) {\r\n                if( module.has.field(identifier) && !( module.validate.rule(field, rule) ) ) {\r\n                  module.debug('Field is invalid', identifier, rule.type);\r\n                  fieldErrors.push(module.get.prompt(rule, field));\r\n                  fieldValid = false;\r\n                }\r\n              });\r\n            }\r\n            if(fieldValid) {\r\n              if(showErrors) {\r\n                module.remove.prompt(identifier, fieldErrors);\r\n                settings.onValid.call($field);\r\n              }\r\n            }\r\n            else {\r\n              if(showErrors) {\r\n                formErrors = formErrors.concat(fieldErrors);\r\n                module.add.prompt(identifier, fieldErrors);\r\n                settings.onInvalid.call($field, fieldErrors);\r\n              }\r\n              return false;\r\n            }\r\n            return true;\r\n          },\r\n\r\n          // takes validation rule and returns whether field passes rule\r\n          rule: function(field, rule) {\r\n            var\r\n              $field       = module.get.field(field.identifier),\r\n              type         = rule.type,\r\n              value        = $field.val(),\r\n              isValid      = true,\r\n              ancillary    = module.get.ancillaryValue(rule),\r\n              ruleName     = module.get.ruleName(rule),\r\n              ruleFunction = settings.rules[ruleName]\r\n            ;\r\n            if( !$.isFunction(ruleFunction) ) {\r\n              module.error(error.noRule, ruleName);\r\n              return;\r\n            }\r\n            // cast to string avoiding encoding special values\r\n            value = (value === undefined || value === '' || value === null)\r\n              ? ''\r\n              : $.trim(value + '')\r\n            ;\r\n            return ruleFunction.call($field, value, ancillary);\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            settings[name] = value;\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if($allModules.length > 1) {\r\n              title += ' ' + '(' + $allModules.length + ')';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n      module.initialize();\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.form.settings = {\r\n\r\n  name              : 'Form',\r\n  namespace         : 'form',\r\n\r\n  debug             : false,\r\n  verbose           : false,\r\n  performance       : true,\r\n\r\n  fields            : false,\r\n\r\n  keyboardShortcuts : true,\r\n  on                : 'submit',\r\n  inline            : false,\r\n\r\n  delay             : 200,\r\n  revalidate        : true,\r\n\r\n  transition        : 'scale',\r\n  duration          : 200,\r\n\r\n  onValid           : function() {},\r\n  onInvalid         : function() {},\r\n  onSuccess         : function() { return true; },\r\n  onFailure         : function() { return false; },\r\n\r\n  metadata : {\r\n    defaultValue : 'default',\r\n    validate     : 'validate'\r\n  },\r\n\r\n  regExp: {\r\n    htmlID  : /^[a-zA-Z][\\w:.-]*$/g,\r\n    bracket : /\\[(.*)\\]/i,\r\n    decimal : /^\\d+\\.?\\d*$/,\r\n    email   : /^[a-z0-9!#$%&'*+\\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,\r\n    escape  : /[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\r\n    flags   : /^\\/(.*)\\/(.*)?/,\r\n    integer : /^\\-?\\d+$/,\r\n    number  : /^\\-?\\d*(\\.\\d+)?$/,\r\n    url     : /(https?:\\/\\/(?:www\\.|(?!www))[^\\s\\.]+\\.[^\\s]{2,}|www\\.[^\\s]+\\.[^\\s]{2,})/i\r\n  },\r\n\r\n  text: {\r\n    unspecifiedRule  : 'Please enter a valid value',\r\n    unspecifiedField : 'This field'\r\n  },\r\n\r\n  prompt: {\r\n    empty                : '{name} must have a value',\r\n    checked              : '{name} must be checked',\r\n    email                : '{name} must be a valid e-mail',\r\n    url                  : '{name} must be a valid url',\r\n    regExp               : '{name} is not formatted correctly',\r\n    integer              : '{name} must be an integer',\r\n    decimal              : '{name} must be a decimal number',\r\n    number               : '{name} must be set to a number',\r\n    is                   : '{name} must be \"{ruleValue}\"',\r\n    isExactly            : '{name} must be exactly \"{ruleValue}\"',\r\n    not                  : '{name} cannot be set to \"{ruleValue}\"',\r\n    notExactly           : '{name} cannot be set to exactly \"{ruleValue}\"',\r\n    contain              : '{name} cannot contain \"{ruleValue}\"',\r\n    containExactly       : '{name} cannot contain exactly \"{ruleValue}\"',\r\n    doesntContain        : '{name} must contain  \"{ruleValue}\"',\r\n    doesntContainExactly : '{name} must contain exactly \"{ruleValue}\"',\r\n    minLength            : '{name} must be at least {ruleValue} characters',\r\n    length               : '{name} must be at least {ruleValue} characters',\r\n    exactLength          : '{name} must be exactly {ruleValue} characters',\r\n    maxLength            : '{name} cannot be longer than {ruleValue} characters',\r\n    match                : '{name} must match {ruleValue} field',\r\n    different            : '{name} must have a different value than {ruleValue} field',\r\n    creditCard           : '{name} must be a valid credit card number',\r\n    minCount             : '{name} must have at least {ruleValue} choices',\r\n    exactCount           : '{name} must have exactly {ruleValue} choices',\r\n    maxCount             : '{name} must have {ruleValue} or less choices'\r\n  },\r\n\r\n  selector : {\r\n    checkbox   : 'input[type=\"checkbox\"], input[type=\"radio\"]',\r\n    clear      : '.clear',\r\n    field      : 'input, textarea, select',\r\n    group      : '.field',\r\n    input      : 'input',\r\n    message    : '.error.message',\r\n    prompt     : '.prompt.label',\r\n    radio      : 'input[type=\"radio\"]',\r\n    reset      : '.reset:not([type=\"reset\"])',\r\n    submit     : '.submit:not([type=\"submit\"])',\r\n    uiCheckbox : '.ui.checkbox',\r\n    uiDropdown : '.ui.dropdown'\r\n  },\r\n\r\n  className : {\r\n    error   : 'error',\r\n    label   : 'ui prompt label',\r\n    pressed : 'down',\r\n    success : 'success'\r\n  },\r\n\r\n  error: {\r\n    identifier : 'You must specify a string identifier for each field',\r\n    method     : 'The method you called is not defined.',\r\n    noRule     : 'There is no rule matching the one you specified',\r\n    oldSyntax  : 'Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically.'\r\n  },\r\n\r\n  templates: {\r\n\r\n    // template that produces error message\r\n    error: function(errors) {\r\n      var\r\n        html = '<ul class=\"list\">'\r\n      ;\r\n      $.each(errors, function(index, value) {\r\n        html += '<li>' + value + '</li>';\r\n      });\r\n      html += '</ul>';\r\n      return $(html);\r\n    },\r\n\r\n    // template that produces label\r\n    prompt: function(errors) {\r\n      return $('<div/>')\r\n        .addClass('ui basic red pointing prompt label')\r\n        .html(errors[0])\r\n      ;\r\n    }\r\n  },\r\n\r\n  rules: {\r\n\r\n    // is not empty or blank string\r\n    empty: function(value) {\r\n      return !(value === undefined || '' === value || $.isArray(value) && value.length === 0);\r\n    },\r\n\r\n    // checkbox checked\r\n    checked: function() {\r\n      return ($(this).filter(':checked').length > 0);\r\n    },\r\n\r\n    // is most likely an email\r\n    email: function(value){\r\n      return $.fn.form.settings.regExp.email.test(value);\r\n    },\r\n\r\n    // value is most likely url\r\n    url: function(value) {\r\n      return $.fn.form.settings.regExp.url.test(value);\r\n    },\r\n\r\n    // matches specified regExp\r\n    regExp: function(value, regExp) {\r\n      if(regExp instanceof RegExp) {\r\n        return value.match(regExp);\r\n      }\r\n      var\r\n        regExpParts = regExp.match($.fn.form.settings.regExp.flags),\r\n        flags\r\n      ;\r\n      // regular expression specified as /baz/gi (flags)\r\n      if(regExpParts) {\r\n        regExp = (regExpParts.length >= 2)\r\n          ? regExpParts[1]\r\n          : regExp\r\n        ;\r\n        flags = (regExpParts.length >= 3)\r\n          ? regExpParts[2]\r\n          : ''\r\n        ;\r\n      }\r\n      return value.match( new RegExp(regExp, flags) );\r\n    },\r\n\r\n    // is valid integer or matches range\r\n    integer: function(value, range) {\r\n      var\r\n        intRegExp = $.fn.form.settings.regExp.integer,\r\n        min,\r\n        max,\r\n        parts\r\n      ;\r\n      if( !range || ['', '..'].indexOf(range) !== -1) {\r\n        // do nothing\r\n      }\r\n      else if(range.indexOf('..') == -1) {\r\n        if(intRegExp.test(range)) {\r\n          min = max = range - 0;\r\n        }\r\n      }\r\n      else {\r\n        parts = range.split('..', 2);\r\n        if(intRegExp.test(parts[0])) {\r\n          min = parts[0] - 0;\r\n        }\r\n        if(intRegExp.test(parts[1])) {\r\n          max = parts[1] - 0;\r\n        }\r\n      }\r\n      return (\r\n        intRegExp.test(value) &&\r\n        (min === undefined || value >= min) &&\r\n        (max === undefined || value <= max)\r\n      );\r\n    },\r\n\r\n    // is valid number (with decimal)\r\n    decimal: function(value) {\r\n      return $.fn.form.settings.regExp.decimal.test(value);\r\n    },\r\n\r\n    // is valid number\r\n    number: function(value) {\r\n      return $.fn.form.settings.regExp.number.test(value);\r\n    },\r\n\r\n    // is value (case insensitive)\r\n    is: function(value, text) {\r\n      text = (typeof text == 'string')\r\n        ? text.toLowerCase()\r\n        : text\r\n      ;\r\n      value = (typeof value == 'string')\r\n        ? value.toLowerCase()\r\n        : value\r\n      ;\r\n      return (value == text);\r\n    },\r\n\r\n    // is value\r\n    isExactly: function(value, text) {\r\n      return (value == text);\r\n    },\r\n\r\n    // value is not another value (case insensitive)\r\n    not: function(value, notValue) {\r\n      value = (typeof value == 'string')\r\n        ? value.toLowerCase()\r\n        : value\r\n      ;\r\n      notValue = (typeof notValue == 'string')\r\n        ? notValue.toLowerCase()\r\n        : notValue\r\n      ;\r\n      return (value != notValue);\r\n    },\r\n\r\n    // value is not another value (case sensitive)\r\n    notExactly: function(value, notValue) {\r\n      return (value != notValue);\r\n    },\r\n\r\n    // value contains text (insensitive)\r\n    contains: function(value, text) {\r\n      // escape regex characters\r\n      text = text.replace($.fn.form.settings.regExp.escape, \"\\\\$&\");\r\n      return (value.search( new RegExp(text, 'i') ) !== -1);\r\n    },\r\n\r\n    // value contains text (case sensitive)\r\n    containsExactly: function(value, text) {\r\n      // escape regex characters\r\n      text = text.replace($.fn.form.settings.regExp.escape, \"\\\\$&\");\r\n      return (value.search( new RegExp(text) ) !== -1);\r\n    },\r\n\r\n    // value contains text (insensitive)\r\n    doesntContain: function(value, text) {\r\n      // escape regex characters\r\n      text = text.replace($.fn.form.settings.regExp.escape, \"\\\\$&\");\r\n      return (value.search( new RegExp(text, 'i') ) === -1);\r\n    },\r\n\r\n    // value contains text (case sensitive)\r\n    doesntContainExactly: function(value, text) {\r\n      // escape regex characters\r\n      text = text.replace($.fn.form.settings.regExp.escape, \"\\\\$&\");\r\n      return (value.search( new RegExp(text) ) === -1);\r\n    },\r\n\r\n    // is at least string length\r\n    minLength: function(value, requiredLength) {\r\n      return (value !== undefined)\r\n        ? (value.length >= requiredLength)\r\n        : false\r\n      ;\r\n    },\r\n\r\n    // see rls notes for 2.0.6 (this is a duplicate of minLength)\r\n    length: function(value, requiredLength) {\r\n      return (value !== undefined)\r\n        ? (value.length >= requiredLength)\r\n        : false\r\n      ;\r\n    },\r\n\r\n    // is exactly length\r\n    exactLength: function(value, requiredLength) {\r\n      return (value !== undefined)\r\n        ? (value.length == requiredLength)\r\n        : false\r\n      ;\r\n    },\r\n\r\n    // is less than length\r\n    maxLength: function(value, maxLength) {\r\n      return (value !== undefined)\r\n        ? (value.length <= maxLength)\r\n        : false\r\n      ;\r\n    },\r\n\r\n    // matches another field\r\n    match: function(value, identifier) {\r\n      var\r\n        $form = $(this),\r\n        matchingValue\r\n      ;\r\n      if( $('[data-validate=\"'+ identifier +'\"]').length > 0 ) {\r\n        matchingValue = $('[data-validate=\"'+ identifier +'\"]').val();\r\n      }\r\n      else if($('#' + identifier).length > 0) {\r\n        matchingValue = $('#' + identifier).val();\r\n      }\r\n      else if($('[name=\"' + identifier +'\"]').length > 0) {\r\n        matchingValue = $('[name=\"' + identifier + '\"]').val();\r\n      }\r\n      else if( $('[name=\"' + identifier +'[]\"]').length > 0 ) {\r\n        matchingValue = $('[name=\"' + identifier +'[]\"]');\r\n      }\r\n      return (matchingValue !== undefined)\r\n        ? ( value.toString() == matchingValue.toString() )\r\n        : false\r\n      ;\r\n    },\r\n\r\n    // different than another field\r\n    different: function(value, identifier) {\r\n      // use either id or name of field\r\n      var\r\n        $form = $(this),\r\n        matchingValue\r\n      ;\r\n      if( $('[data-validate=\"'+ identifier +'\"]').length > 0 ) {\r\n        matchingValue = $('[data-validate=\"'+ identifier +'\"]').val();\r\n      }\r\n      else if($('#' + identifier).length > 0) {\r\n        matchingValue = $('#' + identifier).val();\r\n      }\r\n      else if($('[name=\"' + identifier +'\"]').length > 0) {\r\n        matchingValue = $('[name=\"' + identifier + '\"]').val();\r\n      }\r\n      else if( $('[name=\"' + identifier +'[]\"]').length > 0 ) {\r\n        matchingValue = $('[name=\"' + identifier +'[]\"]');\r\n      }\r\n      return (matchingValue !== undefined)\r\n        ? ( value.toString() !== matchingValue.toString() )\r\n        : false\r\n      ;\r\n    },\r\n\r\n    creditCard: function(cardNumber, cardTypes) {\r\n      var\r\n        cards = {\r\n          visa: {\r\n            pattern : /^4/,\r\n            length  : [16]\r\n          },\r\n          amex: {\r\n            pattern : /^3[47]/,\r\n            length  : [15]\r\n          },\r\n          mastercard: {\r\n            pattern : /^5[1-5]/,\r\n            length  : [16]\r\n          },\r\n          discover: {\r\n            pattern : /^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,\r\n            length  : [16]\r\n          },\r\n          unionPay: {\r\n            pattern : /^(62|88)/,\r\n            length  : [16, 17, 18, 19]\r\n          },\r\n          jcb: {\r\n            pattern : /^35(2[89]|[3-8][0-9])/,\r\n            length  : [16]\r\n          },\r\n          maestro: {\r\n            pattern : /^(5018|5020|5038|6304|6759|676[1-3])/,\r\n            length  : [12, 13, 14, 15, 16, 17, 18, 19]\r\n          },\r\n          dinersClub: {\r\n            pattern : /^(30[0-5]|^36)/,\r\n            length  : [14]\r\n          },\r\n          laser: {\r\n            pattern : /^(6304|670[69]|6771)/,\r\n            length  : [16, 17, 18, 19]\r\n          },\r\n          visaElectron: {\r\n            pattern : /^(4026|417500|4508|4844|491(3|7))/,\r\n            length  : [16]\r\n          }\r\n        },\r\n        valid         = {},\r\n        validCard     = false,\r\n        requiredTypes = (typeof cardTypes == 'string')\r\n          ? cardTypes.split(',')\r\n          : false,\r\n        unionPay,\r\n        validation\r\n      ;\r\n\r\n      if(typeof cardNumber !== 'string' || cardNumber.length === 0) {\r\n        return;\r\n      }\r\n\r\n      // allow dashes in card\r\n      cardNumber = cardNumber.replace(/[\\-]/g, '');\r\n\r\n      // verify card types\r\n      if(requiredTypes) {\r\n        $.each(requiredTypes, function(index, type){\r\n          // verify each card type\r\n          validation = cards[type];\r\n          if(validation) {\r\n            valid = {\r\n              length  : ($.inArray(cardNumber.length, validation.length) !== -1),\r\n              pattern : (cardNumber.search(validation.pattern) !== -1)\r\n            };\r\n            if(valid.length && valid.pattern) {\r\n              validCard = true;\r\n            }\r\n          }\r\n        });\r\n\r\n        if(!validCard) {\r\n          return false;\r\n        }\r\n      }\r\n\r\n      // skip luhn for UnionPay\r\n      unionPay = {\r\n        number  : ($.inArray(cardNumber.length, cards.unionPay.length) !== -1),\r\n        pattern : (cardNumber.search(cards.unionPay.pattern) !== -1)\r\n      };\r\n      if(unionPay.number && unionPay.pattern) {\r\n        return true;\r\n      }\r\n\r\n      // verify luhn, adapted from  <https://gist.github.com/2134376>\r\n      var\r\n        length        = cardNumber.length,\r\n        multiple      = 0,\r\n        producedValue = [\r\n          [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],\r\n          [0, 2, 4, 6, 8, 1, 3, 5, 7, 9]\r\n        ],\r\n        sum           = 0\r\n      ;\r\n      while (length--) {\r\n        sum += producedValue[multiple][parseInt(cardNumber.charAt(length), 10)];\r\n        multiple ^= 1;\r\n      }\r\n      return (sum % 10 === 0 && sum > 0);\r\n    },\r\n\r\n    minCount: function(value, minCount) {\r\n      if(minCount == 0) {\r\n        return true;\r\n      }\r\n      if(minCount == 1) {\r\n        return (value !== '');\r\n      }\r\n      return (value.split(',').length >= minCount);\r\n    },\r\n\r\n    exactCount: function(value, exactCount) {\r\n      if(exactCount == 0) {\r\n        return (value === '');\r\n      }\r\n      if(exactCount == 1) {\r\n        return (value !== '' && value.search(',') === -1);\r\n      }\r\n      return (value.split(',').length == exactCount);\r\n    },\r\n\r\n    maxCount: function(value, maxCount) {\r\n      if(maxCount == 0) {\r\n        return false;\r\n      }\r\n      if(maxCount == 1) {\r\n        return (value.search(',') === -1);\r\n      }\r\n      return (value.split(',').length <= maxCount);\r\n    }\r\n  }\r\n\r\n};\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Accordion\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.accordion = function(parameters) {\r\n  var\r\n    $allModules     = $(this),\r\n\r\n    time            = new Date().getTime(),\r\n    performance     = [],\r\n\r\n    query           = arguments[0],\r\n    methodInvoked   = (typeof query == 'string'),\r\n    queryArguments  = [].slice.call(arguments, 1),\r\n\r\n    requestAnimationFrame = window.requestAnimationFrame\r\n      || window.mozRequestAnimationFrame\r\n      || window.webkitRequestAnimationFrame\r\n      || window.msRequestAnimationFrame\r\n      || function(callback) { setTimeout(callback, 0); },\r\n\r\n    returnedValue\r\n  ;\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings        = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.accordion.settings, parameters)\r\n          : $.extend({}, $.fn.accordion.settings),\r\n\r\n        className       = settings.className,\r\n        namespace       = settings.namespace,\r\n        selector        = settings.selector,\r\n        error           = settings.error,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n        moduleSelector  = $allModules.selector || '',\r\n\r\n        $module  = $(this),\r\n        $title   = $module.find(selector.title),\r\n        $content = $module.find(selector.content),\r\n\r\n        element  = this,\r\n        instance = $module.data(moduleNamespace),\r\n        observer,\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.debug('Initializing', $module);\r\n          module.bind.events();\r\n          if(settings.observeChanges) {\r\n            module.observeChanges();\r\n          }\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.debug('Destroying previous instance', $module);\r\n          $module\r\n            .off(eventNamespace)\r\n            .removeData(moduleNamespace)\r\n          ;\r\n        },\r\n\r\n        refresh: function() {\r\n          $title   = $module.find(selector.title);\r\n          $content = $module.find(selector.content);\r\n        },\r\n\r\n        observeChanges: function() {\r\n          if('MutationObserver' in window) {\r\n            observer = new MutationObserver(function(mutations) {\r\n              module.debug('DOM tree modified, updating selector cache');\r\n              module.refresh();\r\n            });\r\n            observer.observe(element, {\r\n              childList : true,\r\n              subtree   : true\r\n            });\r\n            module.debug('Setting up mutation observer', observer);\r\n          }\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            module.debug('Binding delegated events');\r\n            $module\r\n              .on(settings.on + eventNamespace, selector.trigger, module.event.click)\r\n            ;\r\n          }\r\n        },\r\n\r\n        event: {\r\n          click: function() {\r\n            module.toggle.call(this);\r\n          }\r\n        },\r\n\r\n        toggle: function(query) {\r\n          var\r\n            $activeTitle = (query !== undefined)\r\n              ? (typeof query === 'number')\r\n                ? $title.eq(query)\r\n                : $(query).closest(selector.title)\r\n              : $(this).closest(selector.title),\r\n            $activeContent = $activeTitle.next($content),\r\n            isAnimating = $activeContent.hasClass(className.animating),\r\n            isActive    = $activeContent.hasClass(className.active),\r\n            isOpen      = (isActive && !isAnimating),\r\n            isOpening   = (!isActive && isAnimating)\r\n          ;\r\n          module.debug('Toggling visibility of content', $activeTitle);\r\n          if(isOpen || isOpening) {\r\n            if(settings.collapsible) {\r\n              module.close.call($activeTitle);\r\n            }\r\n            else {\r\n              module.debug('Cannot close accordion content collapsing is disabled');\r\n            }\r\n          }\r\n          else {\r\n            module.open.call($activeTitle);\r\n          }\r\n        },\r\n\r\n        open: function(query) {\r\n          var\r\n            $activeTitle = (query !== undefined)\r\n              ? (typeof query === 'number')\r\n                ? $title.eq(query)\r\n                : $(query).closest(selector.title)\r\n              : $(this).closest(selector.title),\r\n            $activeContent = $activeTitle.next($content),\r\n            isAnimating = $activeContent.hasClass(className.animating),\r\n            isActive    = $activeContent.hasClass(className.active),\r\n            isOpen      = (isActive || isAnimating)\r\n          ;\r\n          if(isOpen) {\r\n            module.debug('Accordion already open, skipping', $activeContent);\r\n            return;\r\n          }\r\n          module.debug('Opening accordion content', $activeTitle);\r\n          settings.onOpening.call($activeContent);\r\n          if(settings.exclusive) {\r\n            module.closeOthers.call($activeTitle);\r\n          }\r\n          $activeTitle\r\n            .addClass(className.active)\r\n          ;\r\n          $activeContent\r\n            .stop(true, true)\r\n            .addClass(className.animating)\r\n          ;\r\n          if(settings.animateChildren) {\r\n            if($.fn.transition !== undefined && $module.transition('is supported')) {\r\n              $activeContent\r\n                .children()\r\n                  .transition({\r\n                    animation   : 'fade in',\r\n                    queue       : false,\r\n                    useFailSafe : true,\r\n                    debug       : settings.debug,\r\n                    verbose     : settings.verbose,\r\n                    duration    : settings.duration\r\n                  })\r\n              ;\r\n            }\r\n            else {\r\n              $activeContent\r\n                .children()\r\n                  .stop(true, true)\r\n                  .animate({\r\n                    opacity: 1\r\n                  }, settings.duration, module.resetOpacity)\r\n              ;\r\n            }\r\n          }\r\n          $activeContent\r\n            .slideDown(settings.duration, settings.easing, function() {\r\n              $activeContent\r\n                .removeClass(className.animating)\r\n                .addClass(className.active)\r\n              ;\r\n              module.reset.display.call(this);\r\n              settings.onOpen.call(this);\r\n              settings.onChange.call(this);\r\n            })\r\n          ;\r\n        },\r\n\r\n        close: function(query) {\r\n          var\r\n            $activeTitle = (query !== undefined)\r\n              ? (typeof query === 'number')\r\n                ? $title.eq(query)\r\n                : $(query).closest(selector.title)\r\n              : $(this).closest(selector.title),\r\n            $activeContent = $activeTitle.next($content),\r\n            isAnimating    = $activeContent.hasClass(className.animating),\r\n            isActive       = $activeContent.hasClass(className.active),\r\n            isOpening      = (!isActive && isAnimating),\r\n            isClosing      = (isActive && isAnimating)\r\n          ;\r\n          if((isActive || isOpening) && !isClosing) {\r\n            module.debug('Closing accordion content', $activeContent);\r\n            settings.onClosing.call($activeContent);\r\n            $activeTitle\r\n              .removeClass(className.active)\r\n            ;\r\n            $activeContent\r\n              .stop(true, true)\r\n              .addClass(className.animating)\r\n            ;\r\n            if(settings.animateChildren) {\r\n              if($.fn.transition !== undefined && $module.transition('is supported')) {\r\n                $activeContent\r\n                  .children()\r\n                    .transition({\r\n                      animation   : 'fade out',\r\n                      queue       : false,\r\n                      useFailSafe : true,\r\n                      debug       : settings.debug,\r\n                      verbose     : settings.verbose,\r\n                      duration    : settings.duration\r\n                    })\r\n                ;\r\n              }\r\n              else {\r\n                $activeContent\r\n                  .children()\r\n                    .stop(true, true)\r\n                    .animate({\r\n                      opacity: 0\r\n                    }, settings.duration, module.resetOpacity)\r\n                ;\r\n              }\r\n            }\r\n            $activeContent\r\n              .slideUp(settings.duration, settings.easing, function() {\r\n                $activeContent\r\n                  .removeClass(className.animating)\r\n                  .removeClass(className.active)\r\n                ;\r\n                module.reset.display.call(this);\r\n                settings.onClose.call(this);\r\n                settings.onChange.call(this);\r\n              })\r\n            ;\r\n          }\r\n        },\r\n\r\n        closeOthers: function(index) {\r\n          var\r\n            $activeTitle = (index !== undefined)\r\n              ? $title.eq(index)\r\n              : $(this).closest(selector.title),\r\n            $parentTitles    = $activeTitle.parents(selector.content).prev(selector.title),\r\n            $activeAccordion = $activeTitle.closest(selector.accordion),\r\n            activeSelector   = selector.title + '.' + className.active + ':visible',\r\n            activeContent    = selector.content + '.' + className.active + ':visible',\r\n            $openTitles,\r\n            $nestedTitles,\r\n            $openContents\r\n          ;\r\n          if(settings.closeNested) {\r\n            $openTitles   = $activeAccordion.find(activeSelector).not($parentTitles);\r\n            $openContents = $openTitles.next($content);\r\n          }\r\n          else {\r\n            $openTitles   = $activeAccordion.find(activeSelector).not($parentTitles);\r\n            $nestedTitles = $activeAccordion.find(activeContent).find(activeSelector).not($parentTitles);\r\n            $openTitles   = $openTitles.not($nestedTitles);\r\n            $openContents = $openTitles.next($content);\r\n          }\r\n          if( ($openTitles.length > 0) ) {\r\n            module.debug('Exclusive enabled, closing other content', $openTitles);\r\n            $openTitles\r\n              .removeClass(className.active)\r\n            ;\r\n            $openContents\r\n              .removeClass(className.animating)\r\n              .stop(true, true)\r\n            ;\r\n            if(settings.animateChildren) {\r\n              if($.fn.transition !== undefined && $module.transition('is supported')) {\r\n                $openContents\r\n                  .children()\r\n                    .transition({\r\n                      animation   : 'fade out',\r\n                      useFailSafe : true,\r\n                      debug       : settings.debug,\r\n                      verbose     : settings.verbose,\r\n                      duration    : settings.duration\r\n                    })\r\n                ;\r\n              }\r\n              else {\r\n                $openContents\r\n                  .children()\r\n                    .stop(true, true)\r\n                    .animate({\r\n                      opacity: 0\r\n                    }, settings.duration, module.resetOpacity)\r\n                ;\r\n              }\r\n            }\r\n            $openContents\r\n              .slideUp(settings.duration , settings.easing, function() {\r\n                $(this).removeClass(className.active);\r\n                module.reset.display.call(this);\r\n              })\r\n            ;\r\n          }\r\n        },\r\n\r\n        reset: {\r\n\r\n          display: function() {\r\n            module.verbose('Removing inline display from element', this);\r\n            $(this).css('display', '');\r\n            if( $(this).attr('style') === '') {\r\n              $(this)\r\n                .attr('style', '')\r\n                .removeAttr('style')\r\n              ;\r\n            }\r\n          },\r\n\r\n          opacity: function() {\r\n            module.verbose('Removing inline opacity from element', this);\r\n            $(this).css('opacity', '');\r\n            if( $(this).attr('style') === '') {\r\n              $(this)\r\n                .attr('style', '')\r\n                .removeAttr('style')\r\n              ;\r\n            }\r\n          },\r\n\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          module.debug('Changing internal', name, value);\r\n          if(value !== undefined) {\r\n            if( $.isPlainObject(name) ) {\r\n              $.extend(true, module, name);\r\n            }\r\n            else {\r\n              module[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.accordion.settings = {\r\n\r\n  name            : 'Accordion',\r\n  namespace       : 'accordion',\r\n\r\n  silent          : false,\r\n  debug           : false,\r\n  verbose         : false,\r\n  performance     : true,\r\n\r\n  on              : 'click', // event on title that opens accordion\r\n\r\n  observeChanges  : true,  // whether accordion should automatically refresh on DOM insertion\r\n\r\n  exclusive       : true,  // whether a single accordion content panel should be open at once\r\n  collapsible     : true,  // whether accordion content can be closed\r\n  closeNested     : false, // whether nested content should be closed when a panel is closed\r\n  animateChildren : true,  // whether children opacity should be animated\r\n\r\n  duration        : 350, // duration of animation\r\n  easing          : 'easeOutQuad', // easing equation for animation\r\n\r\n\r\n  onOpening       : function(){}, // callback before open animation\r\n  onOpen          : function(){}, // callback after open animation\r\n  onClosing       : function(){}, // callback before closing animation\r\n  onClose         : function(){}, // callback after closing animation\r\n  onChange        : function(){}, // callback after closing or opening animation\r\n\r\n  error: {\r\n    method : 'The method you called is not defined'\r\n  },\r\n\r\n  className   : {\r\n    active    : 'active',\r\n    animating : 'animating'\r\n  },\r\n\r\n  selector    : {\r\n    accordion : '.accordion',\r\n    title     : '.title',\r\n    trigger   : '.title',\r\n    content   : '.content'\r\n  }\r\n\r\n};\r\n\r\n// Adds easing\r\n$.extend( $.easing, {\r\n  easeOutQuad: function (x, t, b, c, d) {\r\n    return -c *(t/=d)*(t-2) + b;\r\n  }\r\n});\r\n\r\n})( jQuery, window, document );\r\n\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Checkbox\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.checkbox = function(parameters) {\r\n  var\r\n    $allModules    = $(this),\r\n    moduleSelector = $allModules.selector || '',\r\n\r\n    time           = new Date().getTime(),\r\n    performance    = [],\r\n\r\n    query          = arguments[0],\r\n    methodInvoked  = (typeof query == 'string'),\r\n    queryArguments = [].slice.call(arguments, 1),\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings        = $.extend(true, {}, $.fn.checkbox.settings, parameters),\r\n\r\n        className       = settings.className,\r\n        namespace       = settings.namespace,\r\n        selector        = settings.selector,\r\n        error           = settings.error,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n\r\n        $module         = $(this),\r\n        $label          = $(this).children(selector.label),\r\n        $input          = $(this).children(selector.input),\r\n        input           = $input[0],\r\n\r\n        initialLoad     = false,\r\n        shortcutPressed = false,\r\n        instance        = $module.data(moduleNamespace),\r\n\r\n        observer,\r\n        element         = this,\r\n        module\r\n      ;\r\n\r\n      module      = {\r\n\r\n        initialize: function() {\r\n          module.verbose('Initializing checkbox', settings);\r\n\r\n          module.create.label();\r\n          module.bind.events();\r\n\r\n          module.set.tabbable();\r\n          module.hide.input();\r\n\r\n          module.observeChanges();\r\n          module.instantiate();\r\n          module.setup();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying module');\r\n          module.unbind.events();\r\n          module.show.input();\r\n          $module.removeData(moduleNamespace);\r\n        },\r\n\r\n        fix: {\r\n          reference: function() {\r\n            if( $module.is(selector.input) ) {\r\n              module.debug('Behavior called on <input> adjusting invoked element');\r\n              $module = $module.closest(selector.checkbox);\r\n              module.refresh();\r\n            }\r\n          }\r\n        },\r\n\r\n        setup: function() {\r\n          module.set.initialLoad();\r\n          if( module.is.indeterminate() ) {\r\n            module.debug('Initial value is indeterminate');\r\n            module.indeterminate();\r\n          }\r\n          else if( module.is.checked() ) {\r\n            module.debug('Initial value is checked');\r\n            module.check();\r\n          }\r\n          else {\r\n            module.debug('Initial value is unchecked');\r\n            module.uncheck();\r\n          }\r\n          module.remove.initialLoad();\r\n        },\r\n\r\n        refresh: function() {\r\n          $label = $module.children(selector.label);\r\n          $input = $module.children(selector.input);\r\n          input  = $input[0];\r\n        },\r\n\r\n        hide: {\r\n          input: function() {\r\n            module.verbose('Modifying <input> z-index to be unselectable');\r\n            $input.addClass(className.hidden);\r\n          }\r\n        },\r\n        show: {\r\n          input: function() {\r\n            module.verbose('Modifying <input> z-index to be selectable');\r\n            $input.removeClass(className.hidden);\r\n          }\r\n        },\r\n\r\n        observeChanges: function() {\r\n          if('MutationObserver' in window) {\r\n            observer = new MutationObserver(function(mutations) {\r\n              module.debug('DOM tree modified, updating selector cache');\r\n              module.refresh();\r\n            });\r\n            observer.observe(element, {\r\n              childList : true,\r\n              subtree   : true\r\n            });\r\n            module.debug('Setting up mutation observer', observer);\r\n          }\r\n        },\r\n\r\n        attachEvents: function(selector, event) {\r\n          var\r\n            $element = $(selector)\r\n          ;\r\n          event = $.isFunction(module[event])\r\n            ? module[event]\r\n            : module.toggle\r\n          ;\r\n          if($element.length > 0) {\r\n            module.debug('Attaching checkbox events to element', selector, event);\r\n            $element\r\n              .on('click' + eventNamespace, event)\r\n            ;\r\n          }\r\n          else {\r\n            module.error(error.notFound);\r\n          }\r\n        },\r\n\r\n        event: {\r\n          click: function(event) {\r\n            var\r\n              $target = $(event.target)\r\n            ;\r\n            if( $target.is(selector.input) ) {\r\n              module.verbose('Using default check action on initialized checkbox');\r\n              return;\r\n            }\r\n            if( $target.is(selector.link) ) {\r\n              module.debug('Clicking link inside checkbox, skipping toggle');\r\n              return;\r\n            }\r\n            module.toggle();\r\n            $input.focus();\r\n            event.preventDefault();\r\n          },\r\n          keydown: function(event) {\r\n            var\r\n              key     = event.which,\r\n              keyCode = {\r\n                enter  : 13,\r\n                space  : 32,\r\n                escape : 27\r\n              }\r\n            ;\r\n            if(key == keyCode.escape) {\r\n              module.verbose('Escape key pressed blurring field');\r\n              $input.blur();\r\n              shortcutPressed = true;\r\n            }\r\n            else if(!event.ctrlKey && ( key == keyCode.space || key == keyCode.enter) ) {\r\n              module.verbose('Enter/space key pressed, toggling checkbox');\r\n              module.toggle();\r\n              shortcutPressed = true;\r\n            }\r\n            else {\r\n              shortcutPressed = false;\r\n            }\r\n          },\r\n          keyup: function(event) {\r\n            if(shortcutPressed) {\r\n              event.preventDefault();\r\n            }\r\n          }\r\n        },\r\n\r\n        check: function() {\r\n          if( !module.should.allowCheck() ) {\r\n            return;\r\n          }\r\n          module.debug('Checking checkbox', $input);\r\n          module.set.checked();\r\n          if( !module.should.ignoreCallbacks() ) {\r\n            settings.onChecked.call(input);\r\n            settings.onChange.call(input);\r\n          }\r\n        },\r\n\r\n        uncheck: function() {\r\n          if( !module.should.allowUncheck() ) {\r\n            return;\r\n          }\r\n          module.debug('Unchecking checkbox');\r\n          module.set.unchecked();\r\n          if( !module.should.ignoreCallbacks() ) {\r\n            settings.onUnchecked.call(input);\r\n            settings.onChange.call(input);\r\n          }\r\n        },\r\n\r\n        indeterminate: function() {\r\n          if( module.should.allowIndeterminate() ) {\r\n            module.debug('Checkbox is already indeterminate');\r\n            return;\r\n          }\r\n          module.debug('Making checkbox indeterminate');\r\n          module.set.indeterminate();\r\n          if( !module.should.ignoreCallbacks() ) {\r\n            settings.onIndeterminate.call(input);\r\n            settings.onChange.call(input);\r\n          }\r\n        },\r\n\r\n        determinate: function() {\r\n          if( module.should.allowDeterminate() ) {\r\n            module.debug('Checkbox is already determinate');\r\n            return;\r\n          }\r\n          module.debug('Making checkbox determinate');\r\n          module.set.determinate();\r\n          if( !module.should.ignoreCallbacks() ) {\r\n            settings.onDeterminate.call(input);\r\n            settings.onChange.call(input);\r\n          }\r\n        },\r\n\r\n        enable: function() {\r\n          if( module.is.enabled() ) {\r\n            module.debug('Checkbox is already enabled');\r\n            return;\r\n          }\r\n          module.debug('Enabling checkbox');\r\n          module.set.enabled();\r\n          settings.onEnable.call(input);\r\n          // preserve legacy callbacks\r\n          settings.onEnabled.call(input);\r\n        },\r\n\r\n        disable: function() {\r\n          if( module.is.disabled() ) {\r\n            module.debug('Checkbox is already disabled');\r\n            return;\r\n          }\r\n          module.debug('Disabling checkbox');\r\n          module.set.disabled();\r\n          settings.onDisable.call(input);\r\n          // preserve legacy callbacks\r\n          settings.onDisabled.call(input);\r\n        },\r\n\r\n        get: {\r\n          radios: function() {\r\n            var\r\n              name = module.get.name()\r\n            ;\r\n            return $('input[name=\"' + name + '\"]').closest(selector.checkbox);\r\n          },\r\n          otherRadios: function() {\r\n            return module.get.radios().not($module);\r\n          },\r\n          name: function() {\r\n            return $input.attr('name');\r\n          }\r\n        },\r\n\r\n        is: {\r\n          initialLoad: function() {\r\n            return initialLoad;\r\n          },\r\n          radio: function() {\r\n            return ($input.hasClass(className.radio) || $input.attr('type') == 'radio');\r\n          },\r\n          indeterminate: function() {\r\n            return $input.prop('indeterminate') !== undefined && $input.prop('indeterminate');\r\n          },\r\n          checked: function() {\r\n            return $input.prop('checked') !== undefined && $input.prop('checked');\r\n          },\r\n          disabled: function() {\r\n            return $input.prop('disabled') !== undefined && $input.prop('disabled');\r\n          },\r\n          enabled: function() {\r\n            return !module.is.disabled();\r\n          },\r\n          determinate: function() {\r\n            return !module.is.indeterminate();\r\n          },\r\n          unchecked: function() {\r\n            return !module.is.checked();\r\n          }\r\n        },\r\n\r\n        should: {\r\n          allowCheck: function() {\r\n            if(module.is.determinate() && module.is.checked() && !module.should.forceCallbacks() ) {\r\n              module.debug('Should not allow check, checkbox is already checked');\r\n              return false;\r\n            }\r\n            if(settings.beforeChecked.apply(input) === false) {\r\n              module.debug('Should not allow check, beforeChecked cancelled');\r\n              return false;\r\n            }\r\n            return true;\r\n          },\r\n          allowUncheck: function() {\r\n            if(module.is.determinate() && module.is.unchecked() && !module.should.forceCallbacks() ) {\r\n              module.debug('Should not allow uncheck, checkbox is already unchecked');\r\n              return false;\r\n            }\r\n            if(settings.beforeUnchecked.apply(input) === false) {\r\n              module.debug('Should not allow uncheck, beforeUnchecked cancelled');\r\n              return false;\r\n            }\r\n            return true;\r\n          },\r\n          allowIndeterminate: function() {\r\n            if(module.is.indeterminate() && !module.should.forceCallbacks() ) {\r\n              module.debug('Should not allow indeterminate, checkbox is already indeterminate');\r\n              return false;\r\n            }\r\n            if(settings.beforeIndeterminate.apply(input) === false) {\r\n              module.debug('Should not allow indeterminate, beforeIndeterminate cancelled');\r\n              return false;\r\n            }\r\n            return true;\r\n          },\r\n          allowDeterminate: function() {\r\n            if(module.is.determinate() && !module.should.forceCallbacks() ) {\r\n              module.debug('Should not allow determinate, checkbox is already determinate');\r\n              return false;\r\n            }\r\n            if(settings.beforeDeterminate.apply(input) === false) {\r\n              module.debug('Should not allow determinate, beforeDeterminate cancelled');\r\n              return false;\r\n            }\r\n            return true;\r\n          },\r\n          forceCallbacks: function() {\r\n            return (module.is.initialLoad() && settings.fireOnInit);\r\n          },\r\n          ignoreCallbacks: function() {\r\n            return (initialLoad && !settings.fireOnInit);\r\n          }\r\n        },\r\n\r\n        can: {\r\n          change: function() {\r\n            return !( $module.hasClass(className.disabled) || $module.hasClass(className.readOnly) || $input.prop('disabled') || $input.prop('readonly') );\r\n          },\r\n          uncheck: function() {\r\n            return (typeof settings.uncheckable === 'boolean')\r\n              ? settings.uncheckable\r\n              : !module.is.radio()\r\n            ;\r\n          }\r\n        },\r\n\r\n        set: {\r\n          initialLoad: function() {\r\n            initialLoad = true;\r\n          },\r\n          checked: function() {\r\n            module.verbose('Setting class to checked');\r\n            $module\r\n              .removeClass(className.indeterminate)\r\n              .addClass(className.checked)\r\n            ;\r\n            if( module.is.radio() ) {\r\n              module.uncheckOthers();\r\n            }\r\n            if(!module.is.indeterminate() && module.is.checked()) {\r\n              module.debug('Input is already checked, skipping input property change');\r\n              return;\r\n            }\r\n            module.verbose('Setting state to checked', input);\r\n            $input\r\n              .prop('indeterminate', false)\r\n              .prop('checked', true)\r\n            ;\r\n            module.trigger.change();\r\n          },\r\n          unchecked: function() {\r\n            module.verbose('Removing checked class');\r\n            $module\r\n              .removeClass(className.indeterminate)\r\n              .removeClass(className.checked)\r\n            ;\r\n            if(!module.is.indeterminate() &&  module.is.unchecked() ) {\r\n              module.debug('Input is already unchecked');\r\n              return;\r\n            }\r\n            module.debug('Setting state to unchecked');\r\n            $input\r\n              .prop('indeterminate', false)\r\n              .prop('checked', false)\r\n            ;\r\n            module.trigger.change();\r\n          },\r\n          indeterminate: function() {\r\n            module.verbose('Setting class to indeterminate');\r\n            $module\r\n              .addClass(className.indeterminate)\r\n            ;\r\n            if( module.is.indeterminate() ) {\r\n              module.debug('Input is already indeterminate, skipping input property change');\r\n              return;\r\n            }\r\n            module.debug('Setting state to indeterminate');\r\n            $input\r\n              .prop('indeterminate', true)\r\n            ;\r\n            module.trigger.change();\r\n          },\r\n          determinate: function() {\r\n            module.verbose('Removing indeterminate class');\r\n            $module\r\n              .removeClass(className.indeterminate)\r\n            ;\r\n            if( module.is.determinate() ) {\r\n              module.debug('Input is already determinate, skipping input property change');\r\n              return;\r\n            }\r\n            module.debug('Setting state to determinate');\r\n            $input\r\n              .prop('indeterminate', false)\r\n            ;\r\n          },\r\n          disabled: function() {\r\n            module.verbose('Setting class to disabled');\r\n            $module\r\n              .addClass(className.disabled)\r\n            ;\r\n            if( module.is.disabled() ) {\r\n              module.debug('Input is already disabled, skipping input property change');\r\n              return;\r\n            }\r\n            module.debug('Setting state to disabled');\r\n            $input\r\n              .prop('disabled', 'disabled')\r\n            ;\r\n            module.trigger.change();\r\n          },\r\n          enabled: function() {\r\n            module.verbose('Removing disabled class');\r\n            $module.removeClass(className.disabled);\r\n            if( module.is.enabled() ) {\r\n              module.debug('Input is already enabled, skipping input property change');\r\n              return;\r\n            }\r\n            module.debug('Setting state to enabled');\r\n            $input\r\n              .prop('disabled', false)\r\n            ;\r\n            module.trigger.change();\r\n          },\r\n          tabbable: function() {\r\n            module.verbose('Adding tabindex to checkbox');\r\n            if( $input.attr('tabindex') === undefined) {\r\n              $input.attr('tabindex', 0);\r\n            }\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          initialLoad: function() {\r\n            initialLoad = false;\r\n          }\r\n        },\r\n\r\n        trigger: {\r\n          change: function() {\r\n            var\r\n              events       = document.createEvent('HTMLEvents'),\r\n              inputElement = $input[0]\r\n            ;\r\n            if(inputElement) {\r\n              module.verbose('Triggering native change event');\r\n              events.initEvent('change', true, false);\r\n              inputElement.dispatchEvent(events);\r\n            }\r\n          }\r\n        },\r\n\r\n\r\n        create: {\r\n          label: function() {\r\n            if($input.prevAll(selector.label).length > 0) {\r\n              $input.prev(selector.label).detach().insertAfter($input);\r\n              module.debug('Moving existing label', $label);\r\n            }\r\n            else if( !module.has.label() ) {\r\n              $label = $('<label>').insertAfter($input);\r\n              module.debug('Creating label', $label);\r\n            }\r\n          }\r\n        },\r\n\r\n        has: {\r\n          label: function() {\r\n            return ($label.length > 0);\r\n          }\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            module.verbose('Attaching checkbox events');\r\n            $module\r\n              .on('click'   + eventNamespace, module.event.click)\r\n              .on('keydown' + eventNamespace, selector.input, module.event.keydown)\r\n              .on('keyup'   + eventNamespace, selector.input, module.event.keyup)\r\n            ;\r\n          }\r\n        },\r\n\r\n        unbind: {\r\n          events: function() {\r\n            module.debug('Removing events');\r\n            $module\r\n              .off(eventNamespace)\r\n            ;\r\n          }\r\n        },\r\n\r\n        uncheckOthers: function() {\r\n          var\r\n            $radios = module.get.otherRadios()\r\n          ;\r\n          module.debug('Unchecking other radios', $radios);\r\n          $radios.removeClass(className.checked);\r\n        },\r\n\r\n        toggle: function() {\r\n          if( !module.can.change() ) {\r\n            if(!module.is.radio()) {\r\n              module.debug('Checkbox is read-only or disabled, ignoring toggle');\r\n            }\r\n            return;\r\n          }\r\n          if( module.is.indeterminate() || module.is.unchecked() ) {\r\n            module.debug('Currently unchecked');\r\n            module.check();\r\n          }\r\n          else if( module.is.checked() && module.can.uncheck() ) {\r\n            module.debug('Currently checked');\r\n            module.uncheck();\r\n          }\r\n        },\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.checkbox.settings = {\r\n\r\n  name                : 'Checkbox',\r\n  namespace           : 'checkbox',\r\n\r\n  silent              : false,\r\n  debug               : false,\r\n  verbose             : true,\r\n  performance         : true,\r\n\r\n  // delegated event context\r\n  uncheckable         : 'auto',\r\n  fireOnInit          : false,\r\n\r\n  onChange            : function(){},\r\n\r\n  beforeChecked       : function(){},\r\n  beforeUnchecked     : function(){},\r\n  beforeDeterminate   : function(){},\r\n  beforeIndeterminate : function(){},\r\n\r\n  onChecked           : function(){},\r\n  onUnchecked         : function(){},\r\n\r\n  onDeterminate       : function() {},\r\n  onIndeterminate     : function() {},\r\n\r\n  onEnable            : function(){},\r\n  onDisable           : function(){},\r\n\r\n  // preserve misspelled callbacks (will be removed in 3.0)\r\n  onEnabled           : function(){},\r\n  onDisabled          : function(){},\r\n\r\n  className       : {\r\n    checked       : 'checked',\r\n    indeterminate : 'indeterminate',\r\n    disabled      : 'disabled',\r\n    hidden        : 'hidden',\r\n    radio         : 'radio',\r\n    readOnly      : 'read-only'\r\n  },\r\n\r\n  error     : {\r\n    method       : 'The method you called is not defined'\r\n  },\r\n\r\n  selector : {\r\n    checkbox : '.ui.checkbox',\r\n    label    : 'label, .box',\r\n    input    : 'input[type=\"checkbox\"], input[type=\"radio\"]',\r\n    link     : 'a[href]'\r\n  }\r\n\r\n};\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Dimmer\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.dimmer = function(parameters) {\r\n  var\r\n    $allModules     = $(this),\r\n\r\n    time            = new Date().getTime(),\r\n    performance     = [],\r\n\r\n    query           = arguments[0],\r\n    methodInvoked   = (typeof query == 'string'),\r\n    queryArguments  = [].slice.call(arguments, 1),\r\n\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings        = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.dimmer.settings, parameters)\r\n          : $.extend({}, $.fn.dimmer.settings),\r\n\r\n        selector        = settings.selector,\r\n        namespace       = settings.namespace,\r\n        className       = settings.className,\r\n        error           = settings.error,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n        moduleSelector  = $allModules.selector || '',\r\n\r\n        clickEvent      = ('ontouchstart' in document.documentElement)\r\n          ? 'touchstart'\r\n          : 'click',\r\n\r\n        $module = $(this),\r\n        $dimmer,\r\n        $dimmable,\r\n\r\n        element   = this,\r\n        instance  = $module.data(moduleNamespace),\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        preinitialize: function() {\r\n          if( module.is.dimmer() ) {\r\n\r\n            $dimmable = $module.parent();\r\n            $dimmer   = $module;\r\n          }\r\n          else {\r\n            $dimmable = $module;\r\n            if( module.has.dimmer() ) {\r\n              if(settings.dimmerName) {\r\n                $dimmer = $dimmable.find(selector.dimmer).filter('.' + settings.dimmerName);\r\n              }\r\n              else {\r\n                $dimmer = $dimmable.find(selector.dimmer);\r\n              }\r\n            }\r\n            else {\r\n              $dimmer = module.create();\r\n            }\r\n            module.set.variation();\r\n          }\r\n        },\r\n\r\n        initialize: function() {\r\n          module.debug('Initializing dimmer', settings);\r\n\r\n          module.bind.events();\r\n          module.set.dimmable();\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, instance)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous module', $dimmer);\r\n          module.unbind.events();\r\n          module.remove.variation();\r\n          $dimmable\r\n            .off(eventNamespace)\r\n          ;\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            if(settings.on == 'hover') {\r\n              $dimmable\r\n                .on('mouseenter' + eventNamespace, module.show)\r\n                .on('mouseleave' + eventNamespace, module.hide)\r\n              ;\r\n            }\r\n            else if(settings.on == 'click') {\r\n              $dimmable\r\n                .on(clickEvent + eventNamespace, module.toggle)\r\n              ;\r\n            }\r\n            if( module.is.page() ) {\r\n              module.debug('Setting as a page dimmer', $dimmable);\r\n              module.set.pageDimmer();\r\n            }\r\n\r\n            if( module.is.closable() ) {\r\n              module.verbose('Adding dimmer close event', $dimmer);\r\n              $dimmable\r\n                .on(clickEvent + eventNamespace, selector.dimmer, module.event.click)\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        unbind: {\r\n          events: function() {\r\n            $module\r\n              .removeData(moduleNamespace)\r\n            ;\r\n            $dimmable\r\n              .off(eventNamespace)\r\n            ;\r\n          }\r\n        },\r\n\r\n        event: {\r\n          click: function(event) {\r\n            module.verbose('Determining if event occured on dimmer', event);\r\n            if( $dimmer.find(event.target).length === 0 || $(event.target).is(selector.content) ) {\r\n              module.hide();\r\n              event.stopImmediatePropagation();\r\n            }\r\n          }\r\n        },\r\n\r\n        addContent: function(element) {\r\n          var\r\n            $content = $(element)\r\n          ;\r\n          module.debug('Add content to dimmer', $content);\r\n          if($content.parent()[0] !== $dimmer[0]) {\r\n            $content.detach().appendTo($dimmer);\r\n          }\r\n        },\r\n\r\n        create: function() {\r\n          var\r\n            $element = $( settings.template.dimmer() )\r\n          ;\r\n          if(settings.dimmerName) {\r\n            module.debug('Creating named dimmer', settings.dimmerName);\r\n            $element.addClass(settings.dimmerName);\r\n          }\r\n          $element\r\n            .appendTo($dimmable)\r\n          ;\r\n          return $element;\r\n        },\r\n\r\n        show: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          module.debug('Showing dimmer', $dimmer, settings);\r\n          if( (!module.is.dimmed() || module.is.animating()) && module.is.enabled() ) {\r\n            module.animate.show(callback);\r\n            settings.onShow.call(element);\r\n            settings.onChange.call(element);\r\n          }\r\n          else {\r\n            module.debug('Dimmer is already shown or disabled');\r\n          }\r\n        },\r\n\r\n        hide: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if( module.is.dimmed() || module.is.animating() ) {\r\n            module.debug('Hiding dimmer', $dimmer);\r\n            module.animate.hide(callback);\r\n            settings.onHide.call(element);\r\n            settings.onChange.call(element);\r\n          }\r\n          else {\r\n            module.debug('Dimmer is not visible');\r\n          }\r\n        },\r\n\r\n        toggle: function() {\r\n          module.verbose('Toggling dimmer visibility', $dimmer);\r\n          if( !module.is.dimmed() ) {\r\n            module.show();\r\n          }\r\n          else {\r\n            module.hide();\r\n          }\r\n        },\r\n\r\n        animate: {\r\n          show: function(callback) {\r\n            callback = $.isFunction(callback)\r\n              ? callback\r\n              : function(){}\r\n            ;\r\n            if(settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {\r\n              if(settings.opacity !== 'auto') {\r\n                module.set.opacity();\r\n              }\r\n              $dimmer\r\n                .transition({\r\n                  animation   : settings.transition + ' in',\r\n                  queue       : false,\r\n                  duration    : module.get.duration(),\r\n                  useFailSafe : true,\r\n                  onStart     : function() {\r\n                    module.set.dimmed();\r\n                  },\r\n                  onComplete  : function() {\r\n                    module.set.active();\r\n                    callback();\r\n                  }\r\n                })\r\n              ;\r\n            }\r\n            else {\r\n              module.verbose('Showing dimmer animation with javascript');\r\n              module.set.dimmed();\r\n              if(settings.opacity == 'auto') {\r\n                settings.opacity = 0.8;\r\n              }\r\n              $dimmer\r\n                .stop()\r\n                .css({\r\n                  opacity : 0,\r\n                  width   : '100%',\r\n                  height  : '100%'\r\n                })\r\n                .fadeTo(module.get.duration(), settings.opacity, function() {\r\n                  $dimmer.removeAttr('style');\r\n                  module.set.active();\r\n                  callback();\r\n                })\r\n              ;\r\n            }\r\n          },\r\n          hide: function(callback) {\r\n            callback = $.isFunction(callback)\r\n              ? callback\r\n              : function(){}\r\n            ;\r\n            if(settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {\r\n              module.verbose('Hiding dimmer with css');\r\n              $dimmer\r\n                .transition({\r\n                  animation   : settings.transition + ' out',\r\n                  queue       : false,\r\n                  duration    : module.get.duration(),\r\n                  useFailSafe : true,\r\n                  onStart     : function() {\r\n                    module.remove.dimmed();\r\n                  },\r\n                  onComplete  : function() {\r\n                    module.remove.active();\r\n                    callback();\r\n                  }\r\n                })\r\n              ;\r\n            }\r\n            else {\r\n              module.verbose('Hiding dimmer with javascript');\r\n              module.remove.dimmed();\r\n              $dimmer\r\n                .stop()\r\n                .fadeOut(module.get.duration(), function() {\r\n                  module.remove.active();\r\n                  $dimmer.removeAttr('style');\r\n                  callback();\r\n                })\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        get: {\r\n          dimmer: function() {\r\n            return $dimmer;\r\n          },\r\n          duration: function() {\r\n            if(typeof settings.duration == 'object') {\r\n              if( module.is.active() ) {\r\n                return settings.duration.hide;\r\n              }\r\n              else {\r\n                return settings.duration.show;\r\n              }\r\n            }\r\n            return settings.duration;\r\n          }\r\n        },\r\n\r\n        has: {\r\n          dimmer: function() {\r\n            if(settings.dimmerName) {\r\n              return ($module.find(selector.dimmer).filter('.' + settings.dimmerName).length > 0);\r\n            }\r\n            else {\r\n              return ( $module.find(selector.dimmer).length > 0 );\r\n            }\r\n          }\r\n        },\r\n\r\n        is: {\r\n          active: function() {\r\n            return $dimmer.hasClass(className.active);\r\n          },\r\n          animating: function() {\r\n            return ( $dimmer.is(':animated') || $dimmer.hasClass(className.animating) );\r\n          },\r\n          closable: function() {\r\n            if(settings.closable == 'auto') {\r\n              if(settings.on == 'hover') {\r\n                return false;\r\n              }\r\n              return true;\r\n            }\r\n            return settings.closable;\r\n          },\r\n          dimmer: function() {\r\n            return $module.hasClass(className.dimmer);\r\n          },\r\n          dimmable: function() {\r\n            return $module.hasClass(className.dimmable);\r\n          },\r\n          dimmed: function() {\r\n            return $dimmable.hasClass(className.dimmed);\r\n          },\r\n          disabled: function() {\r\n            return $dimmable.hasClass(className.disabled);\r\n          },\r\n          enabled: function() {\r\n            return !module.is.disabled();\r\n          },\r\n          page: function () {\r\n            return $dimmable.is('body');\r\n          },\r\n          pageDimmer: function() {\r\n            return $dimmer.hasClass(className.pageDimmer);\r\n          }\r\n        },\r\n\r\n        can: {\r\n          show: function() {\r\n            return !$dimmer.hasClass(className.disabled);\r\n          }\r\n        },\r\n\r\n        set: {\r\n          opacity: function(opacity) {\r\n            var\r\n              color      = $dimmer.css('background-color'),\r\n              colorArray = color.split(','),\r\n              isRGB      = (colorArray && colorArray.length == 3),\r\n              isRGBA     = (colorArray && colorArray.length == 4)\r\n            ;\r\n            opacity    = settings.opacity === 0 ? 0 : settings.opacity || opacity;\r\n            if(isRGB || isRGBA) {\r\n              colorArray[3] = opacity + ')';\r\n              color         = colorArray.join(',');\r\n            }\r\n            else {\r\n              color = 'rgba(0, 0, 0, ' + opacity + ')';\r\n            }\r\n            module.debug('Setting opacity to', opacity);\r\n            $dimmer.css('background-color', color);\r\n          },\r\n          active: function() {\r\n            $dimmer.addClass(className.active);\r\n          },\r\n          dimmable: function() {\r\n            $dimmable.addClass(className.dimmable);\r\n          },\r\n          dimmed: function() {\r\n            $dimmable.addClass(className.dimmed);\r\n          },\r\n          pageDimmer: function() {\r\n            $dimmer.addClass(className.pageDimmer);\r\n          },\r\n          disabled: function() {\r\n            $dimmer.addClass(className.disabled);\r\n          },\r\n          variation: function(variation) {\r\n            variation = variation || settings.variation;\r\n            if(variation) {\r\n              $dimmer.addClass(variation);\r\n            }\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          active: function() {\r\n            $dimmer\r\n              .removeClass(className.active)\r\n            ;\r\n          },\r\n          dimmed: function() {\r\n            $dimmable.removeClass(className.dimmed);\r\n          },\r\n          disabled: function() {\r\n            $dimmer.removeClass(className.disabled);\r\n          },\r\n          variation: function(variation) {\r\n            variation = variation || settings.variation;\r\n            if(variation) {\r\n              $dimmer.removeClass(variation);\r\n            }\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if($allModules.length > 1) {\r\n              title += ' ' + '(' + $allModules.length + ')';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      module.preinitialize();\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.dimmer.settings = {\r\n\r\n  name        : 'Dimmer',\r\n  namespace   : 'dimmer',\r\n\r\n  silent      : false,\r\n  debug       : false,\r\n  verbose     : false,\r\n  performance : true,\r\n\r\n  // name to distinguish between multiple dimmers in context\r\n  dimmerName  : false,\r\n\r\n  // whether to add a variation type\r\n  variation   : false,\r\n\r\n  // whether to bind close events\r\n  closable    : 'auto',\r\n\r\n  // whether to use css animations\r\n  useCSS      : true,\r\n\r\n  // css animation to use\r\n  transition  : 'fade',\r\n\r\n  // event to bind to\r\n  on          : false,\r\n\r\n  // overriding opacity value\r\n  opacity     : 'auto',\r\n\r\n  // transition durations\r\n  duration    : {\r\n    show : 500,\r\n    hide : 500\r\n  },\r\n\r\n  onChange    : function(){},\r\n  onShow      : function(){},\r\n  onHide      : function(){},\r\n\r\n  error   : {\r\n    method   : 'The method you called is not defined.'\r\n  },\r\n\r\n  className : {\r\n    active     : 'active',\r\n    animating  : 'animating',\r\n    dimmable   : 'dimmable',\r\n    dimmed     : 'dimmed',\r\n    dimmer     : 'dimmer',\r\n    disabled   : 'disabled',\r\n    hide       : 'hide',\r\n    pageDimmer : 'page',\r\n    show       : 'show'\r\n  },\r\n\r\n  selector: {\r\n    dimmer   : '> .ui.dimmer',\r\n    content  : '.ui.dimmer > .content, .ui.dimmer > .content > .center'\r\n  },\r\n\r\n  template: {\r\n    dimmer: function() {\r\n     return $('<div />').attr('class', 'ui dimmer');\r\n    }\r\n  }\r\n\r\n};\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Dropdown\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.dropdown = function(parameters) {\r\n  var\r\n    $allModules    = $(this),\r\n    $document      = $(document),\r\n\r\n    moduleSelector = $allModules.selector || '',\r\n\r\n    hasTouch       = ('ontouchstart' in document.documentElement),\r\n    time           = new Date().getTime(),\r\n    performance    = [],\r\n\r\n    query          = arguments[0],\r\n    methodInvoked  = (typeof query == 'string'),\r\n    queryArguments = [].slice.call(arguments, 1),\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function(elementIndex) {\r\n      var\r\n        settings          = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.dropdown.settings, parameters)\r\n          : $.extend({}, $.fn.dropdown.settings),\r\n\r\n        className       = settings.className,\r\n        message         = settings.message,\r\n        fields          = settings.fields,\r\n        keys            = settings.keys,\r\n        metadata        = settings.metadata,\r\n        namespace       = settings.namespace,\r\n        regExp          = settings.regExp,\r\n        selector        = settings.selector,\r\n        error           = settings.error,\r\n        templates       = settings.templates,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n\r\n        $module         = $(this),\r\n        $context        = $(settings.context),\r\n        $text           = $module.find(selector.text),\r\n        $search         = $module.find(selector.search),\r\n        $sizer          = $module.find(selector.sizer),\r\n        $input          = $module.find(selector.input),\r\n        $icon           = $module.find(selector.icon),\r\n\r\n        $combo = ($module.prev().find(selector.text).length > 0)\r\n          ? $module.prev().find(selector.text)\r\n          : $module.prev(),\r\n\r\n        $menu           = $module.children(selector.menu),\r\n        $item           = $menu.find(selector.item),\r\n\r\n        activated       = false,\r\n        itemActivated   = false,\r\n        internalChange  = false,\r\n        element         = this,\r\n        instance        = $module.data(moduleNamespace),\r\n\r\n        initialLoad,\r\n        pageLostFocus,\r\n        willRefocus,\r\n        elementNamespace,\r\n        id,\r\n        selectObserver,\r\n        menuObserver,\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.debug('Initializing dropdown', settings);\r\n\r\n          if( module.is.alreadySetup() ) {\r\n            module.setup.reference();\r\n          }\r\n          else {\r\n            module.setup.layout();\r\n            module.refreshData();\r\n\r\n            module.save.defaults();\r\n            module.restore.selected();\r\n\r\n            module.create.id();\r\n            module.bind.events();\r\n\r\n            module.observeChanges();\r\n            module.instantiate();\r\n          }\r\n\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of dropdown', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous dropdown', $module);\r\n          module.remove.tabbable();\r\n          $module\r\n            .off(eventNamespace)\r\n            .removeData(moduleNamespace)\r\n          ;\r\n          $menu\r\n            .off(eventNamespace)\r\n          ;\r\n          $document\r\n            .off(elementNamespace)\r\n          ;\r\n          module.disconnect.menuObserver();\r\n          module.disconnect.selectObserver();\r\n        },\r\n\r\n        observeChanges: function() {\r\n          if('MutationObserver' in window) {\r\n            selectObserver = new MutationObserver(module.event.select.mutation);\r\n            menuObserver   = new MutationObserver(module.event.menu.mutation);\r\n            module.debug('Setting up mutation observer', selectObserver, menuObserver);\r\n            module.observe.select();\r\n            module.observe.menu();\r\n          }\r\n        },\r\n\r\n        disconnect: {\r\n          menuObserver: function() {\r\n            if(menuObserver) {\r\n              menuObserver.disconnect();\r\n            }\r\n          },\r\n          selectObserver: function() {\r\n            if(selectObserver) {\r\n              selectObserver.disconnect();\r\n            }\r\n          }\r\n        },\r\n        observe: {\r\n          select: function() {\r\n            if(module.has.input()) {\r\n              selectObserver.observe($input[0], {\r\n                childList : true,\r\n                subtree   : true\r\n              });\r\n            }\r\n          },\r\n          menu: function() {\r\n            if(module.has.menu()) {\r\n              menuObserver.observe($menu[0], {\r\n                childList : true,\r\n                subtree   : true\r\n              });\r\n            }\r\n          }\r\n        },\r\n\r\n        create: {\r\n          id: function() {\r\n            id = (Math.random().toString(16) + '000000000').substr(2, 8);\r\n            elementNamespace = '.' + id;\r\n            module.verbose('Creating unique id for element', id);\r\n          },\r\n          userChoice: function(values) {\r\n            var\r\n              $userChoices,\r\n              $userChoice,\r\n              isUserValue,\r\n              html\r\n            ;\r\n            values = values || module.get.userValues();\r\n            if(!values) {\r\n              return false;\r\n            }\r\n            values = $.isArray(values)\r\n              ? values\r\n              : [values]\r\n            ;\r\n            $.each(values, function(index, value) {\r\n              if(module.get.item(value) === false) {\r\n                html         = settings.templates.addition( module.add.variables(message.addResult, value) );\r\n                $userChoice  = $('<div />')\r\n                  .html(html)\r\n                  .attr('data-' + metadata.value, value)\r\n                  .attr('data-' + metadata.text, value)\r\n                  .addClass(className.addition)\r\n                  .addClass(className.item)\r\n                ;\r\n                if(settings.hideAdditions) {\r\n                  $userChoice.addClass(className.hidden);\r\n                }\r\n                $userChoices = ($userChoices === undefined)\r\n                  ? $userChoice\r\n                  : $userChoices.add($userChoice)\r\n                ;\r\n                module.verbose('Creating user choices for value', value, $userChoice);\r\n              }\r\n            });\r\n            return $userChoices;\r\n          },\r\n          userLabels: function(value) {\r\n            var\r\n              userValues = module.get.userValues()\r\n            ;\r\n            if(userValues) {\r\n              module.debug('Adding user labels', userValues);\r\n              $.each(userValues, function(index, value) {\r\n                module.verbose('Adding custom user value');\r\n                module.add.label(value, value);\r\n              });\r\n            }\r\n          },\r\n          menu: function() {\r\n            $menu = $('<div />')\r\n              .addClass(className.menu)\r\n              .appendTo($module)\r\n            ;\r\n          },\r\n          sizer: function() {\r\n            $sizer = $('<span />')\r\n              .addClass(className.sizer)\r\n              .insertAfter($search)\r\n            ;\r\n          }\r\n        },\r\n\r\n        search: function(query) {\r\n          query = (query !== undefined)\r\n            ? query\r\n            : module.get.query()\r\n          ;\r\n          module.verbose('Searching for query', query);\r\n          if(module.has.minCharacters(query)) {\r\n            module.filter(query);\r\n          }\r\n          else {\r\n            module.hide();\r\n          }\r\n        },\r\n\r\n        select: {\r\n          firstUnfiltered: function() {\r\n            module.verbose('Selecting first non-filtered element');\r\n            module.remove.selectedItem();\r\n            $item\r\n              .not(selector.unselectable)\r\n              .not(selector.addition + selector.hidden)\r\n                .eq(0)\r\n                .addClass(className.selected)\r\n            ;\r\n          },\r\n          nextAvailable: function($selected) {\r\n            $selected = $selected.eq(0);\r\n            var\r\n              $nextAvailable = $selected.nextAll(selector.item).not(selector.unselectable).eq(0),\r\n              $prevAvailable = $selected.prevAll(selector.item).not(selector.unselectable).eq(0),\r\n              hasNext        = ($nextAvailable.length > 0)\r\n            ;\r\n            if(hasNext) {\r\n              module.verbose('Moving selection to', $nextAvailable);\r\n              $nextAvailable.addClass(className.selected);\r\n            }\r\n            else {\r\n              module.verbose('Moving selection to', $prevAvailable);\r\n              $prevAvailable.addClass(className.selected);\r\n            }\r\n          }\r\n        },\r\n\r\n        setup: {\r\n          api: function() {\r\n            var\r\n              apiSettings = {\r\n                debug   : settings.debug,\r\n                urlData : {\r\n                  value : module.get.value(),\r\n                  query : module.get.query()\r\n                },\r\n                on    : false\r\n              }\r\n            ;\r\n            module.verbose('First request, initializing API');\r\n            $module\r\n              .api(apiSettings)\r\n            ;\r\n          },\r\n          layout: function() {\r\n            if( $module.is('select') ) {\r\n              module.setup.select();\r\n              module.setup.returnedObject();\r\n            }\r\n            if( !module.has.menu() ) {\r\n              module.create.menu();\r\n            }\r\n            if( module.is.search() && !module.has.search() ) {\r\n              module.verbose('Adding search input');\r\n              $search = $('<input />')\r\n                .addClass(className.search)\r\n                .prop('autocomplete', 'off')\r\n                .insertBefore($text)\r\n              ;\r\n            }\r\n            if( module.is.multiple() && module.is.searchSelection() && !module.has.sizer()) {\r\n              module.create.sizer();\r\n            }\r\n            if(settings.allowTab) {\r\n              module.set.tabbable();\r\n            }\r\n          },\r\n          select: function() {\r\n            var\r\n              selectValues  = module.get.selectValues()\r\n            ;\r\n            module.debug('Dropdown initialized on a select', selectValues);\r\n            if( $module.is('select') ) {\r\n              $input = $module;\r\n            }\r\n            // see if select is placed correctly already\r\n            if($input.parent(selector.dropdown).length > 0) {\r\n              module.debug('UI dropdown already exists. Creating dropdown menu only');\r\n              $module = $input.closest(selector.dropdown);\r\n              if( !module.has.menu() ) {\r\n                module.create.menu();\r\n              }\r\n              $menu = $module.children(selector.menu);\r\n              module.setup.menu(selectValues);\r\n            }\r\n            else {\r\n              module.debug('Creating entire dropdown from select');\r\n              $module = $('<div />')\r\n                .attr('class', $input.attr('class') )\r\n                .addClass(className.selection)\r\n                .addClass(className.dropdown)\r\n                .html( templates.dropdown(selectValues) )\r\n                .insertBefore($input)\r\n              ;\r\n              if($input.hasClass(className.multiple) && $input.prop('multiple') === false) {\r\n                module.error(error.missingMultiple);\r\n                $input.prop('multiple', true);\r\n              }\r\n              if($input.is('[multiple]')) {\r\n                module.set.multiple();\r\n              }\r\n              if ($input.prop('disabled')) {\r\n                module.debug('Disabling dropdown');\r\n                $module.addClass(className.disabled);\r\n              }\r\n              $input\r\n                .removeAttr('class')\r\n                .detach()\r\n                .prependTo($module)\r\n              ;\r\n            }\r\n            module.refresh();\r\n          },\r\n          menu: function(values) {\r\n            $menu.html( templates.menu(values, fields));\r\n            $item = $menu.find(selector.item);\r\n          },\r\n          reference: function() {\r\n            module.debug('Dropdown behavior was called on select, replacing with closest dropdown');\r\n            // replace module reference\r\n            $module = $module.parent(selector.dropdown);\r\n            module.refresh();\r\n            module.setup.returnedObject();\r\n            // invoke method in context of current instance\r\n            if(methodInvoked) {\r\n              instance = module;\r\n              module.invoke(query);\r\n            }\r\n          },\r\n          returnedObject: function() {\r\n            var\r\n              $firstModules = $allModules.slice(0, elementIndex),\r\n              $lastModules = $allModules.slice(elementIndex + 1)\r\n            ;\r\n            // adjust all modules to use correct reference\r\n            $allModules = $firstModules.add($module).add($lastModules);\r\n          }\r\n        },\r\n\r\n        refresh: function() {\r\n          module.refreshSelectors();\r\n          module.refreshData();\r\n        },\r\n\r\n        refreshItems: function() {\r\n          $item = $menu.find(selector.item);\r\n        },\r\n\r\n        refreshSelectors: function() {\r\n          module.verbose('Refreshing selector cache');\r\n          $text   = $module.find(selector.text);\r\n          $search = $module.find(selector.search);\r\n          $input  = $module.find(selector.input);\r\n          $icon   = $module.find(selector.icon);\r\n          $combo  = ($module.prev().find(selector.text).length > 0)\r\n            ? $module.prev().find(selector.text)\r\n            : $module.prev()\r\n          ;\r\n          $menu    = $module.children(selector.menu);\r\n          $item    = $menu.find(selector.item);\r\n        },\r\n\r\n        refreshData: function() {\r\n          module.verbose('Refreshing cached metadata');\r\n          $item\r\n            .removeData(metadata.text)\r\n            .removeData(metadata.value)\r\n          ;\r\n        },\r\n\r\n        clearData: function() {\r\n          module.verbose('Clearing metadata');\r\n          $item\r\n            .removeData(metadata.text)\r\n            .removeData(metadata.value)\r\n          ;\r\n          $module\r\n            .removeData(metadata.defaultText)\r\n            .removeData(metadata.defaultValue)\r\n            .removeData(metadata.placeholderText)\r\n          ;\r\n        },\r\n\r\n        toggle: function() {\r\n          module.verbose('Toggling menu visibility');\r\n          if( !module.is.active() ) {\r\n            module.show();\r\n          }\r\n          else {\r\n            module.hide();\r\n          }\r\n        },\r\n\r\n        show: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if(!module.can.show() && module.is.remote()) {\r\n            module.debug('No API results retrieved, searching before show');\r\n            module.queryRemote(module.get.query(), module.show);\r\n          }\r\n          if( module.can.show() && !module.is.active() ) {\r\n            module.debug('Showing dropdown');\r\n            if(module.has.message() && !(module.has.maxSelections() || module.has.allResultsFiltered()) ) {\r\n              module.remove.message();\r\n            }\r\n            if(module.is.allFiltered()) {\r\n              return true;\r\n            }\r\n            if(settings.onShow.call(element) !== false) {\r\n              module.animate.show(function() {\r\n                if( module.can.click() ) {\r\n                  module.bind.intent();\r\n                }\r\n                if(module.has.menuSearch()) {\r\n                  module.focusSearch();\r\n                }\r\n                module.set.visible();\r\n                callback.call(element);\r\n              });\r\n            }\r\n          }\r\n        },\r\n\r\n        hide: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if( module.is.active() ) {\r\n            module.debug('Hiding dropdown');\r\n            if(settings.onHide.call(element) !== false) {\r\n              module.animate.hide(function() {\r\n                module.remove.visible();\r\n                callback.call(element);\r\n              });\r\n            }\r\n          }\r\n        },\r\n\r\n        hideOthers: function() {\r\n          module.verbose('Finding other dropdowns to hide');\r\n          $allModules\r\n            .not($module)\r\n              .has(selector.menu + '.' + className.visible)\r\n                .dropdown('hide')\r\n          ;\r\n        },\r\n\r\n        hideMenu: function() {\r\n          module.verbose('Hiding menu  instantaneously');\r\n          module.remove.active();\r\n          module.remove.visible();\r\n          $menu.transition('hide');\r\n        },\r\n\r\n        hideSubMenus: function() {\r\n          var\r\n            $subMenus = $menu.children(selector.item).find(selector.menu)\r\n          ;\r\n          module.verbose('Hiding sub menus', $subMenus);\r\n          $subMenus.transition('hide');\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            if(hasTouch) {\r\n              module.bind.touchEvents();\r\n            }\r\n            module.bind.keyboardEvents();\r\n            module.bind.inputEvents();\r\n            module.bind.mouseEvents();\r\n          },\r\n          touchEvents: function() {\r\n            module.debug('Touch device detected binding additional touch events');\r\n            if( module.is.searchSelection() ) {\r\n              // do nothing special yet\r\n            }\r\n            else if( module.is.single() ) {\r\n              $module\r\n                .on('touchstart' + eventNamespace, module.event.test.toggle)\r\n              ;\r\n            }\r\n            $menu\r\n              .on('touchstart' + eventNamespace, selector.item, module.event.item.mouseenter)\r\n            ;\r\n          },\r\n          keyboardEvents: function() {\r\n            module.verbose('Binding keyboard events');\r\n            $module\r\n              .on('keydown' + eventNamespace, module.event.keydown)\r\n            ;\r\n            if( module.has.search() ) {\r\n              $module\r\n                .on(module.get.inputEvent() + eventNamespace, selector.search, module.event.input)\r\n              ;\r\n            }\r\n            if( module.is.multiple() ) {\r\n              $document\r\n                .on('keydown' + elementNamespace, module.event.document.keydown)\r\n              ;\r\n            }\r\n          },\r\n          inputEvents: function() {\r\n            module.verbose('Binding input change events');\r\n            $module\r\n              .on('change' + eventNamespace, selector.input, module.event.change)\r\n            ;\r\n          },\r\n          mouseEvents: function() {\r\n            module.verbose('Binding mouse events');\r\n            if(module.is.multiple()) {\r\n              $module\r\n                .on('click'   + eventNamespace, selector.label,  module.event.label.click)\r\n                .on('click'   + eventNamespace, selector.remove, module.event.remove.click)\r\n              ;\r\n            }\r\n            if( module.is.searchSelection() ) {\r\n              $module\r\n                .on('mousedown' + eventNamespace, module.event.mousedown)\r\n                .on('mouseup'   + eventNamespace, module.event.mouseup)\r\n                .on('mousedown' + eventNamespace, selector.menu,   module.event.menu.mousedown)\r\n                .on('mouseup'   + eventNamespace, selector.menu,   module.event.menu.mouseup)\r\n                .on('click'     + eventNamespace, selector.icon,   module.event.icon.click)\r\n                .on('focus'     + eventNamespace, selector.search, module.event.search.focus)\r\n                .on('click'     + eventNamespace, selector.search, module.event.search.focus)\r\n                .on('blur'      + eventNamespace, selector.search, module.event.search.blur)\r\n                .on('click'     + eventNamespace, selector.text,   module.event.text.focus)\r\n              ;\r\n              if(module.is.multiple()) {\r\n                $module\r\n                  .on('click' + eventNamespace, module.event.click)\r\n                ;\r\n              }\r\n            }\r\n            else {\r\n              if(settings.on == 'click') {\r\n                $module\r\n                  .on('click' + eventNamespace, selector.icon, module.event.icon.click)\r\n                  .on('click' + eventNamespace, module.event.test.toggle)\r\n                ;\r\n              }\r\n              else if(settings.on == 'hover') {\r\n                $module\r\n                  .on('mouseenter' + eventNamespace, module.delay.show)\r\n                  .on('mouseleave' + eventNamespace, module.delay.hide)\r\n                ;\r\n              }\r\n              else {\r\n                $module\r\n                  .on(settings.on + eventNamespace, module.toggle)\r\n                ;\r\n              }\r\n              $module\r\n                .on('mousedown' + eventNamespace, module.event.mousedown)\r\n                .on('mouseup'   + eventNamespace, module.event.mouseup)\r\n                .on('focus'     + eventNamespace, module.event.focus)\r\n              ;\r\n              if(module.has.menuSearch() ) {\r\n                $module\r\n                  .on('blur' + eventNamespace, selector.search, module.event.search.blur)\r\n                ;\r\n              }\r\n              else {\r\n                $module\r\n                  .on('blur' + eventNamespace, module.event.blur)\r\n                ;\r\n              }\r\n            }\r\n            $menu\r\n              .on('mouseenter' + eventNamespace, selector.item, module.event.item.mouseenter)\r\n              .on('mouseleave' + eventNamespace, selector.item, module.event.item.mouseleave)\r\n              .on('click'      + eventNamespace, selector.item, module.event.item.click)\r\n            ;\r\n          },\r\n          intent: function() {\r\n            module.verbose('Binding hide intent event to document');\r\n            if(hasTouch) {\r\n              $document\r\n                .on('touchstart' + elementNamespace, module.event.test.touch)\r\n                .on('touchmove'  + elementNamespace, module.event.test.touch)\r\n              ;\r\n            }\r\n            $document\r\n              .on('click' + elementNamespace, module.event.test.hide)\r\n            ;\r\n          }\r\n        },\r\n\r\n        unbind: {\r\n          intent: function() {\r\n            module.verbose('Removing hide intent event from document');\r\n            if(hasTouch) {\r\n              $document\r\n                .off('touchstart' + elementNamespace)\r\n                .off('touchmove' + elementNamespace)\r\n              ;\r\n            }\r\n            $document\r\n              .off('click' + elementNamespace)\r\n            ;\r\n          }\r\n        },\r\n\r\n        filter: function(query) {\r\n          var\r\n            searchTerm = (query !== undefined)\r\n              ? query\r\n              : module.get.query(),\r\n            afterFiltered = function() {\r\n              if(module.is.multiple()) {\r\n                module.filterActive();\r\n              }\r\n              module.select.firstUnfiltered();\r\n              if( module.has.allResultsFiltered() ) {\r\n                if( settings.onNoResults.call(element, searchTerm) ) {\r\n                  if(settings.allowAdditions) {\r\n                    if(settings.hideAdditions) {\r\n                      module.verbose('User addition with no menu, setting empty style');\r\n                      module.set.empty();\r\n                      module.hideMenu();\r\n                    }\r\n                  }\r\n                  else {\r\n                    module.verbose('All items filtered, showing message', searchTerm);\r\n                    module.add.message(message.noResults);\r\n                  }\r\n                }\r\n                else {\r\n                  module.verbose('All items filtered, hiding dropdown', searchTerm);\r\n                  module.hideMenu();\r\n                }\r\n              }\r\n              else {\r\n                module.remove.empty();\r\n                module.remove.message();\r\n              }\r\n              if(settings.allowAdditions) {\r\n                module.add.userSuggestion(query);\r\n              }\r\n              if(module.is.searchSelection() && module.can.show() && module.is.focusedOnSearch() ) {\r\n                module.show();\r\n              }\r\n            }\r\n          ;\r\n          if(settings.useLabels && module.has.maxSelections()) {\r\n            return;\r\n          }\r\n          if(settings.apiSettings) {\r\n            if( module.can.useAPI() ) {\r\n              module.queryRemote(searchTerm, function() {\r\n                if(settings.filterRemoteData) {\r\n                  module.filterItems(searchTerm);\r\n                }\r\n                afterFiltered();\r\n              });\r\n            }\r\n            else {\r\n              module.error(error.noAPI);\r\n            }\r\n          }\r\n          else {\r\n            module.filterItems(searchTerm);\r\n            afterFiltered();\r\n          }\r\n        },\r\n\r\n        queryRemote: function(query, callback) {\r\n          var\r\n            apiSettings = {\r\n              errorDuration : false,\r\n              cache         : 'local',\r\n              throttle      : settings.throttle,\r\n              urlData       : {\r\n                query: query\r\n              },\r\n              onError: function() {\r\n                module.add.message(message.serverError);\r\n                callback();\r\n              },\r\n              onFailure: function() {\r\n                module.add.message(message.serverError);\r\n                callback();\r\n              },\r\n              onSuccess : function(response) {\r\n                module.remove.message();\r\n                module.setup.menu({\r\n                  values: response[fields.remoteValues]\r\n                });\r\n                callback();\r\n              }\r\n            }\r\n          ;\r\n          if( !$module.api('get request') ) {\r\n            module.setup.api();\r\n          }\r\n          apiSettings = $.extend(true, {}, apiSettings, settings.apiSettings);\r\n          $module\r\n            .api('setting', apiSettings)\r\n            .api('query')\r\n          ;\r\n        },\r\n\r\n        filterItems: function(query) {\r\n          var\r\n            searchTerm = (query !== undefined)\r\n              ? query\r\n              : module.get.query(),\r\n            results          =  null,\r\n            escapedTerm      = module.escape.string(searchTerm),\r\n            beginsWithRegExp = new RegExp('^' + escapedTerm, 'igm')\r\n          ;\r\n          // avoid loop if we're matching nothing\r\n          if( module.has.query() ) {\r\n            results = [];\r\n\r\n            module.verbose('Searching for matching values', searchTerm);\r\n            $item\r\n              .each(function(){\r\n                var\r\n                  $choice = $(this),\r\n                  text,\r\n                  value\r\n                ;\r\n                if(settings.match == 'both' || settings.match == 'text') {\r\n                  text = String(module.get.choiceText($choice, false));\r\n                  if(text.search(beginsWithRegExp) !== -1) {\r\n                    results.push(this);\r\n                    return true;\r\n                  }\r\n                  else if (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, text)) {\r\n                    results.push(this);\r\n                    return true;\r\n                  }\r\n                  else if (settings.fullTextSearch === true && module.fuzzySearch(searchTerm, text)) {\r\n                    results.push(this);\r\n                    return true;\r\n                  }\r\n                }\r\n                if(settings.match == 'both' || settings.match == 'value') {\r\n                  value = String(module.get.choiceValue($choice, text));\r\n                  if(value.search(beginsWithRegExp) !== -1) {\r\n                    results.push(this);\r\n                    return true;\r\n                  }\r\n                  else if (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, value)) {\r\n                    results.push(this);\r\n                    return true;\r\n                  }\r\n                  else if (settings.fullTextSearch === true && module.fuzzySearch(searchTerm, value)) {\r\n                    results.push(this);\r\n                    return true;\r\n                  }\r\n                }\r\n              })\r\n            ;\r\n          }\r\n          module.debug('Showing only matched items', searchTerm);\r\n          module.remove.filteredItem();\r\n          if(results) {\r\n            $item\r\n              .not(results)\r\n              .addClass(className.filtered)\r\n            ;\r\n          }\r\n        },\r\n\r\n        fuzzySearch: function(query, term) {\r\n          var\r\n            termLength  = term.length,\r\n            queryLength = query.length\r\n          ;\r\n          query = query.toLowerCase();\r\n          term  = term.toLowerCase();\r\n          if(queryLength > termLength) {\r\n            return false;\r\n          }\r\n          if(queryLength === termLength) {\r\n            return (query === term);\r\n          }\r\n          search: for (var characterIndex = 0, nextCharacterIndex = 0; characterIndex < queryLength; characterIndex++) {\r\n            var\r\n              queryCharacter = query.charCodeAt(characterIndex)\r\n            ;\r\n            while(nextCharacterIndex < termLength) {\r\n              if(term.charCodeAt(nextCharacterIndex++) === queryCharacter) {\r\n                continue search;\r\n              }\r\n            }\r\n            return false;\r\n          }\r\n          return true;\r\n        },\r\n        exactSearch: function (query, term) {\r\n          query = query.toLowerCase();\r\n          term  = term.toLowerCase();\r\n          if(term.indexOf(query) > -1) {\r\n             return true;\r\n          }\r\n          return false;\r\n        },\r\n        filterActive: function() {\r\n          if(settings.useLabels) {\r\n            $item.filter('.' + className.active)\r\n              .addClass(className.filtered)\r\n            ;\r\n          }\r\n        },\r\n\r\n        focusSearch: function(skipHandler) {\r\n          if( module.has.search() && !module.is.focusedOnSearch() ) {\r\n            if(skipHandler) {\r\n              $module.off('focus' + eventNamespace, selector.search);\r\n              $search.focus();\r\n              $module.on('focus'  + eventNamespace, selector.search, module.event.search.focus);\r\n            }\r\n            else {\r\n              $search.focus();\r\n            }\r\n          }\r\n        },\r\n\r\n        forceSelection: function() {\r\n          var\r\n            $currentlySelected = $item.not(className.filtered).filter('.' + className.selected).eq(0),\r\n            $activeItem        = $item.not(className.filtered).filter('.' + className.active).eq(0),\r\n            $selectedItem      = ($currentlySelected.length > 0)\r\n              ? $currentlySelected\r\n              : $activeItem,\r\n            hasSelected = ($selectedItem.length > 0)\r\n          ;\r\n          if(hasSelected && !module.is.multiple()) {\r\n            module.debug('Forcing partial selection to selected item', $selectedItem);\r\n            module.event.item.click.call($selectedItem, {}, true);\r\n            return;\r\n          }\r\n          else {\r\n            if(settings.allowAdditions) {\r\n              module.set.selected(module.get.query());\r\n              module.remove.searchTerm();\r\n            }\r\n            else {\r\n              module.remove.searchTerm();\r\n            }\r\n          }\r\n        },\r\n\r\n        event: {\r\n          change: function() {\r\n            if(!internalChange) {\r\n              module.debug('Input changed, updating selection');\r\n              module.set.selected();\r\n            }\r\n          },\r\n          focus: function() {\r\n            if(settings.showOnFocus && !activated && module.is.hidden() && !pageLostFocus) {\r\n              module.show();\r\n            }\r\n          },\r\n          blur: function(event) {\r\n            pageLostFocus = (document.activeElement === this);\r\n            if(!activated && !pageLostFocus) {\r\n              module.remove.activeLabel();\r\n              module.hide();\r\n            }\r\n          },\r\n          mousedown: function() {\r\n            if(module.is.searchSelection()) {\r\n              // prevent menu hiding on immediate re-focus\r\n              willRefocus = true;\r\n            }\r\n            else {\r\n              // prevents focus callback from occurring on mousedown\r\n              activated = true;\r\n            }\r\n          },\r\n          mouseup: function() {\r\n            if(module.is.searchSelection()) {\r\n              // prevent menu hiding on immediate re-focus\r\n              willRefocus = false;\r\n            }\r\n            else {\r\n              activated = false;\r\n            }\r\n          },\r\n          click: function(event) {\r\n            var\r\n              $target = $(event.target)\r\n            ;\r\n            // focus search\r\n            if($target.is($module)) {\r\n              if(!module.is.focusedOnSearch()) {\r\n                module.focusSearch();\r\n              }\r\n              else {\r\n                module.show();\r\n              }\r\n            }\r\n          },\r\n          search: {\r\n            focus: function() {\r\n              activated = true;\r\n              if(module.is.multiple()) {\r\n                module.remove.activeLabel();\r\n              }\r\n              if(settings.showOnFocus) {\r\n                module.search();\r\n              }\r\n            },\r\n            blur: function(event) {\r\n              pageLostFocus = (document.activeElement === this);\r\n              if(module.is.searchSelection() && !willRefocus) {\r\n                if(!itemActivated && !pageLostFocus) {\r\n                  if(settings.forceSelection) {\r\n                    module.forceSelection();\r\n                  }\r\n                  module.hide();\r\n                }\r\n              }\r\n              willRefocus = false;\r\n            }\r\n          },\r\n          icon: {\r\n            click: function(event) {\r\n              module.toggle();\r\n            }\r\n          },\r\n          text: {\r\n            focus: function(event) {\r\n              activated = true;\r\n              module.focusSearch();\r\n            }\r\n          },\r\n          input: function(event) {\r\n            if(module.is.multiple() || module.is.searchSelection()) {\r\n              module.set.filtered();\r\n            }\r\n            clearTimeout(module.timer);\r\n            module.timer = setTimeout(module.search, settings.delay.search);\r\n          },\r\n          label: {\r\n            click: function(event) {\r\n              var\r\n                $label        = $(this),\r\n                $labels       = $module.find(selector.label),\r\n                $activeLabels = $labels.filter('.' + className.active),\r\n                $nextActive   = $label.nextAll('.' + className.active),\r\n                $prevActive   = $label.prevAll('.' + className.active),\r\n                $range = ($nextActive.length > 0)\r\n                  ? $label.nextUntil($nextActive).add($activeLabels).add($label)\r\n                  : $label.prevUntil($prevActive).add($activeLabels).add($label)\r\n              ;\r\n              if(event.shiftKey) {\r\n                $activeLabels.removeClass(className.active);\r\n                $range.addClass(className.active);\r\n              }\r\n              else if(event.ctrlKey) {\r\n                $label.toggleClass(className.active);\r\n              }\r\n              else {\r\n                $activeLabels.removeClass(className.active);\r\n                $label.addClass(className.active);\r\n              }\r\n              settings.onLabelSelect.apply(this, $labels.filter('.' + className.active));\r\n            }\r\n          },\r\n          remove: {\r\n            click: function() {\r\n              var\r\n                $label = $(this).parent()\r\n              ;\r\n              if( $label.hasClass(className.active) ) {\r\n                // remove all selected labels\r\n                module.remove.activeLabels();\r\n              }\r\n              else {\r\n                // remove this label only\r\n                module.remove.activeLabels( $label );\r\n              }\r\n            }\r\n          },\r\n          test: {\r\n            toggle: function(event) {\r\n              var\r\n                toggleBehavior = (module.is.multiple())\r\n                  ? module.show\r\n                  : module.toggle\r\n              ;\r\n              if(module.is.bubbledLabelClick(event) || module.is.bubbledIconClick(event)) {\r\n                return;\r\n              }\r\n              if( module.determine.eventOnElement(event, toggleBehavior) ) {\r\n                event.preventDefault();\r\n              }\r\n            },\r\n            touch: function(event) {\r\n              module.determine.eventOnElement(event, function() {\r\n                if(event.type == 'touchstart') {\r\n                  module.timer = setTimeout(function() {\r\n                    module.hide();\r\n                  }, settings.delay.touch);\r\n                }\r\n                else if(event.type == 'touchmove') {\r\n                  clearTimeout(module.timer);\r\n                }\r\n              });\r\n              event.stopPropagation();\r\n            },\r\n            hide: function(event) {\r\n              module.determine.eventInModule(event, module.hide);\r\n            }\r\n          },\r\n          select: {\r\n            mutation: function(mutations) {\r\n              module.debug('<select> modified, recreating menu');\r\n              module.setup.select();\r\n            }\r\n          },\r\n          menu: {\r\n            mutation: function(mutations) {\r\n              var\r\n                mutation   = mutations[0],\r\n                $addedNode = mutation.addedNodes\r\n                  ? $(mutation.addedNodes[0])\r\n                  : $(false),\r\n                $removedNode = mutation.removedNodes\r\n                  ? $(mutation.removedNodes[0])\r\n                  : $(false),\r\n                $changedNodes  = $addedNode.add($removedNode),\r\n                isUserAddition = $changedNodes.is(selector.addition) || $changedNodes.closest(selector.addition).length > 0,\r\n                isMessage      = $changedNodes.is(selector.message)  || $changedNodes.closest(selector.message).length > 0\r\n              ;\r\n              if(isUserAddition || isMessage) {\r\n                module.debug('Updating item selector cache');\r\n                module.refreshItems();\r\n              }\r\n              else {\r\n                module.debug('Menu modified, updating selector cache');\r\n                module.refresh();\r\n              }\r\n            },\r\n            mousedown: function() {\r\n              itemActivated = true;\r\n            },\r\n            mouseup: function() {\r\n              itemActivated = false;\r\n            }\r\n          },\r\n          item: {\r\n            mouseenter: function(event) {\r\n              var\r\n                $target        = $(event.target),\r\n                $item          = $(this),\r\n                $subMenu       = $item.children(selector.menu),\r\n                $otherMenus    = $item.siblings(selector.item).children(selector.menu),\r\n                hasSubMenu     = ($subMenu.length > 0),\r\n                isBubbledEvent = ($subMenu.find($target).length > 0)\r\n              ;\r\n              if( !isBubbledEvent && hasSubMenu ) {\r\n                clearTimeout(module.itemTimer);\r\n                module.itemTimer = setTimeout(function() {\r\n                  module.verbose('Showing sub-menu', $subMenu);\r\n                  $.each($otherMenus, function() {\r\n                    module.animate.hide(false, $(this));\r\n                  });\r\n                  module.animate.show(false, $subMenu);\r\n                }, settings.delay.show);\r\n                event.preventDefault();\r\n              }\r\n            },\r\n            mouseleave: function(event) {\r\n              var\r\n                $subMenu = $(this).children(selector.menu)\r\n              ;\r\n              if($subMenu.length > 0) {\r\n                clearTimeout(module.itemTimer);\r\n                module.itemTimer = setTimeout(function() {\r\n                  module.verbose('Hiding sub-menu', $subMenu);\r\n                  module.animate.hide(false, $subMenu);\r\n                }, settings.delay.hide);\r\n              }\r\n            },\r\n            click: function (event, skipRefocus) {\r\n              var\r\n                $choice        = $(this),\r\n                $target        = (event)\r\n                  ? $(event.target)\r\n                  : $(''),\r\n                $subMenu       = $choice.find(selector.menu),\r\n                text           = module.get.choiceText($choice),\r\n                value          = module.get.choiceValue($choice, text),\r\n                hasSubMenu     = ($subMenu.length > 0),\r\n                isBubbledEvent = ($subMenu.find($target).length > 0)\r\n              ;\r\n              // prevents IE11 bug where menu receives focus even though `tabindex=-1`\r\n              if(module.has.menuSearch()) {\r\n                $(document.activeElement).blur();\r\n              }\r\n              if(!isBubbledEvent && (!hasSubMenu || settings.allowCategorySelection)) {\r\n                if(module.is.searchSelection()) {\r\n                  if(settings.allowAdditions) {\r\n                    module.remove.userAddition();\r\n                  }\r\n                  module.remove.searchTerm();\r\n                  if(!module.is.focusedOnSearch() && !(skipRefocus == true)) {\r\n                    module.focusSearch(true);\r\n                  }\r\n                }\r\n                if(!settings.useLabels) {\r\n                  module.remove.filteredItem();\r\n                  module.set.scrollPosition($choice);\r\n                }\r\n                module.determine.selectAction.call(this, text, value);\r\n              }\r\n            }\r\n          },\r\n\r\n          document: {\r\n            // label selection should occur even when element has no focus\r\n            keydown: function(event) {\r\n              var\r\n                pressedKey    = event.which,\r\n                isShortcutKey = module.is.inObject(pressedKey, keys)\r\n              ;\r\n              if(isShortcutKey) {\r\n                var\r\n                  $label            = $module.find(selector.label),\r\n                  $activeLabel      = $label.filter('.' + className.active),\r\n                  activeValue       = $activeLabel.data(metadata.value),\r\n                  labelIndex        = $label.index($activeLabel),\r\n                  labelCount        = $label.length,\r\n                  hasActiveLabel    = ($activeLabel.length > 0),\r\n                  hasMultipleActive = ($activeLabel.length > 1),\r\n                  isFirstLabel      = (labelIndex === 0),\r\n                  isLastLabel       = (labelIndex + 1 == labelCount),\r\n                  isSearch          = module.is.searchSelection(),\r\n                  isFocusedOnSearch = module.is.focusedOnSearch(),\r\n                  isFocused         = module.is.focused(),\r\n                  caretAtStart      = (isFocusedOnSearch && module.get.caretPosition() === 0),\r\n                  $nextLabel\r\n                ;\r\n                if(isSearch && !hasActiveLabel && !isFocusedOnSearch) {\r\n                  return;\r\n                }\r\n\r\n                if(pressedKey == keys.leftArrow) {\r\n                  // activate previous label\r\n                  if((isFocused || caretAtStart) && !hasActiveLabel) {\r\n                    module.verbose('Selecting previous label');\r\n                    $label.last().addClass(className.active);\r\n                  }\r\n                  else if(hasActiveLabel) {\r\n                    if(!event.shiftKey) {\r\n                      module.verbose('Selecting previous label');\r\n                      $label.removeClass(className.active);\r\n                    }\r\n                    else {\r\n                      module.verbose('Adding previous label to selection');\r\n                    }\r\n                    if(isFirstLabel && !hasMultipleActive) {\r\n                      $activeLabel.addClass(className.active);\r\n                    }\r\n                    else {\r\n                      $activeLabel.prev(selector.siblingLabel)\r\n                        .addClass(className.active)\r\n                        .end()\r\n                      ;\r\n                    }\r\n                    event.preventDefault();\r\n                  }\r\n                }\r\n                else if(pressedKey == keys.rightArrow) {\r\n                  // activate first label\r\n                  if(isFocused && !hasActiveLabel) {\r\n                    $label.first().addClass(className.active);\r\n                  }\r\n                  // activate next label\r\n                  if(hasActiveLabel) {\r\n                    if(!event.shiftKey) {\r\n                      module.verbose('Selecting next label');\r\n                      $label.removeClass(className.active);\r\n                    }\r\n                    else {\r\n                      module.verbose('Adding next label to selection');\r\n                    }\r\n                    if(isLastLabel) {\r\n                      if(isSearch) {\r\n                        if(!isFocusedOnSearch) {\r\n                          module.focusSearch();\r\n                        }\r\n                        else {\r\n                          $label.removeClass(className.active);\r\n                        }\r\n                      }\r\n                      else if(hasMultipleActive) {\r\n                        $activeLabel.next(selector.siblingLabel).addClass(className.active);\r\n                      }\r\n                      else {\r\n                        $activeLabel.addClass(className.active);\r\n                      }\r\n                    }\r\n                    else {\r\n                      $activeLabel.next(selector.siblingLabel).addClass(className.active);\r\n                    }\r\n                    event.preventDefault();\r\n                  }\r\n                }\r\n                else if(pressedKey == keys.deleteKey || pressedKey == keys.backspace) {\r\n                  if(hasActiveLabel) {\r\n                    module.verbose('Removing active labels');\r\n                    if(isLastLabel) {\r\n                      if(isSearch && !isFocusedOnSearch) {\r\n                        module.focusSearch();\r\n                      }\r\n                    }\r\n                    $activeLabel.last().next(selector.siblingLabel).addClass(className.active);\r\n                    module.remove.activeLabels($activeLabel);\r\n                    event.preventDefault();\r\n                  }\r\n                  else if(caretAtStart && !hasActiveLabel && pressedKey == keys.backspace) {\r\n                    module.verbose('Removing last label on input backspace');\r\n                    $activeLabel = $label.last().addClass(className.active);\r\n                    module.remove.activeLabels($activeLabel);\r\n                  }\r\n                }\r\n                else {\r\n                  $activeLabel.removeClass(className.active);\r\n                }\r\n              }\r\n            }\r\n          },\r\n\r\n          keydown: function(event) {\r\n            var\r\n              pressedKey    = event.which,\r\n              isShortcutKey = module.is.inObject(pressedKey, keys)\r\n            ;\r\n            if(isShortcutKey) {\r\n              var\r\n                $currentlySelected = $item.not(selector.unselectable).filter('.' + className.selected).eq(0),\r\n                $activeItem        = $menu.children('.' + className.active).eq(0),\r\n                $selectedItem      = ($currentlySelected.length > 0)\r\n                  ? $currentlySelected\r\n                  : $activeItem,\r\n                $visibleItems = ($selectedItem.length > 0)\r\n                  ? $selectedItem.siblings(':not(.' + className.filtered +')').addBack()\r\n                  : $menu.children(':not(.' + className.filtered +')'),\r\n                $subMenu              = $selectedItem.children(selector.menu),\r\n                $parentMenu           = $selectedItem.closest(selector.menu),\r\n                inVisibleMenu         = ($parentMenu.hasClass(className.visible) || $parentMenu.hasClass(className.animating) || $parentMenu.parent(selector.menu).length > 0),\r\n                hasSubMenu            = ($subMenu.length> 0),\r\n                hasSelectedItem       = ($selectedItem.length > 0),\r\n                selectedIsSelectable  = ($selectedItem.not(selector.unselectable).length > 0),\r\n                delimiterPressed      = (pressedKey == keys.delimiter && settings.allowAdditions && module.is.multiple()),\r\n                isAdditionWithoutMenu = (settings.allowAdditions && settings.hideAdditions && (pressedKey == keys.enter || delimiterPressed) && selectedIsSelectable),\r\n                $nextItem,\r\n                isSubMenuItem,\r\n                newIndex\r\n              ;\r\n              // allow selection with menu closed\r\n              if(isAdditionWithoutMenu) {\r\n                module.verbose('Selecting item from keyboard shortcut', $selectedItem);\r\n                module.event.item.click.call($selectedItem, event);\r\n                if(module.is.searchSelection()) {\r\n                  module.remove.searchTerm();\r\n                }\r\n              }\r\n\r\n              // visible menu keyboard shortcuts\r\n              if( module.is.visible() ) {\r\n\r\n                // enter (select or open sub-menu)\r\n                if(pressedKey == keys.enter || delimiterPressed) {\r\n                  if(pressedKey == keys.enter && hasSelectedItem && hasSubMenu && !settings.allowCategorySelection) {\r\n                    module.verbose('Pressed enter on unselectable category, opening sub menu');\r\n                    pressedKey = keys.rightArrow;\r\n                  }\r\n                  else if(selectedIsSelectable) {\r\n                    module.verbose('Selecting item from keyboard shortcut', $selectedItem);\r\n                    module.event.item.click.call($selectedItem, event);\r\n                    if(module.is.searchSelection()) {\r\n                      module.remove.searchTerm();\r\n                    }\r\n                  }\r\n                  event.preventDefault();\r\n                }\r\n\r\n                // sub-menu actions\r\n                if(hasSelectedItem) {\r\n\r\n                  if(pressedKey == keys.leftArrow) {\r\n\r\n                    isSubMenuItem = ($parentMenu[0] !== $menu[0]);\r\n\r\n                    if(isSubMenuItem) {\r\n                      module.verbose('Left key pressed, closing sub-menu');\r\n                      module.animate.hide(false, $parentMenu);\r\n                      $selectedItem\r\n                        .removeClass(className.selected)\r\n                      ;\r\n                      $parentMenu\r\n                        .closest(selector.item)\r\n                          .addClass(className.selected)\r\n                      ;\r\n                      event.preventDefault();\r\n                    }\r\n                  }\r\n\r\n                  // right arrow (show sub-menu)\r\n                  if(pressedKey == keys.rightArrow) {\r\n                    if(hasSubMenu) {\r\n                      module.verbose('Right key pressed, opening sub-menu');\r\n                      module.animate.show(false, $subMenu);\r\n                      $selectedItem\r\n                        .removeClass(className.selected)\r\n                      ;\r\n                      $subMenu\r\n                        .find(selector.item).eq(0)\r\n                          .addClass(className.selected)\r\n                      ;\r\n                      event.preventDefault();\r\n                    }\r\n                  }\r\n                }\r\n\r\n                // up arrow (traverse menu up)\r\n                if(pressedKey == keys.upArrow) {\r\n                  $nextItem = (hasSelectedItem && inVisibleMenu)\r\n                    ? $selectedItem.prevAll(selector.item + ':not(' + selector.unselectable + ')').eq(0)\r\n                    : $item.eq(0)\r\n                  ;\r\n                  if($visibleItems.index( $nextItem ) < 0) {\r\n                    module.verbose('Up key pressed but reached top of current menu');\r\n                    event.preventDefault();\r\n                    return;\r\n                  }\r\n                  else {\r\n                    module.verbose('Up key pressed, changing active item');\r\n                    $selectedItem\r\n                      .removeClass(className.selected)\r\n                    ;\r\n                    $nextItem\r\n                      .addClass(className.selected)\r\n                    ;\r\n                    module.set.scrollPosition($nextItem);\r\n                    if(settings.selectOnKeydown && module.is.single()) {\r\n                      module.set.selectedItem($nextItem);\r\n                    }\r\n                  }\r\n                  event.preventDefault();\r\n                }\r\n\r\n                // down arrow (traverse menu down)\r\n                if(pressedKey == keys.downArrow) {\r\n                  $nextItem = (hasSelectedItem && inVisibleMenu)\r\n                    ? $nextItem = $selectedItem.nextAll(selector.item + ':not(' + selector.unselectable + ')').eq(0)\r\n                    : $item.eq(0)\r\n                  ;\r\n                  if($nextItem.length === 0) {\r\n                    module.verbose('Down key pressed but reached bottom of current menu');\r\n                    event.preventDefault();\r\n                    return;\r\n                  }\r\n                  else {\r\n                    module.verbose('Down key pressed, changing active item');\r\n                    $item\r\n                      .removeClass(className.selected)\r\n                    ;\r\n                    $nextItem\r\n                      .addClass(className.selected)\r\n                    ;\r\n                    module.set.scrollPosition($nextItem);\r\n                    if(settings.selectOnKeydown && module.is.single()) {\r\n                      module.set.selectedItem($nextItem);\r\n                    }\r\n                  }\r\n                  event.preventDefault();\r\n                }\r\n\r\n                // page down (show next page)\r\n                if(pressedKey == keys.pageUp) {\r\n                  module.scrollPage('up');\r\n                  event.preventDefault();\r\n                }\r\n                if(pressedKey == keys.pageDown) {\r\n                  module.scrollPage('down');\r\n                  event.preventDefault();\r\n                }\r\n\r\n                // escape (close menu)\r\n                if(pressedKey == keys.escape) {\r\n                  module.verbose('Escape key pressed, closing dropdown');\r\n                  module.hide();\r\n                }\r\n\r\n              }\r\n              else {\r\n                // delimiter key\r\n                if(delimiterPressed) {\r\n                  event.preventDefault();\r\n                }\r\n                // down arrow (open menu)\r\n                if(pressedKey == keys.downArrow && !module.is.visible()) {\r\n                  module.verbose('Down key pressed, showing dropdown');\r\n                  module.select.firstUnfiltered();\r\n                  module.show();\r\n                  event.preventDefault();\r\n                }\r\n              }\r\n            }\r\n            else {\r\n              if( !module.has.search() ) {\r\n                module.set.selectedLetter( String.fromCharCode(pressedKey) );\r\n              }\r\n            }\r\n          }\r\n        },\r\n\r\n        trigger: {\r\n          change: function() {\r\n            var\r\n              events       = document.createEvent('HTMLEvents'),\r\n              inputElement = $input[0]\r\n            ;\r\n            if(inputElement) {\r\n              module.verbose('Triggering native change event');\r\n              events.initEvent('change', true, false);\r\n              inputElement.dispatchEvent(events);\r\n            }\r\n          }\r\n        },\r\n\r\n        determine: {\r\n          selectAction: function(text, value) {\r\n            module.verbose('Determining action', settings.action);\r\n            if( $.isFunction( module.action[settings.action] ) ) {\r\n              module.verbose('Triggering preset action', settings.action, text, value);\r\n              module.action[ settings.action ].call(element, text, value, this);\r\n            }\r\n            else if( $.isFunction(settings.action) ) {\r\n              module.verbose('Triggering user action', settings.action, text, value);\r\n              settings.action.call(element, text, value, this);\r\n            }\r\n            else {\r\n              module.error(error.action, settings.action);\r\n            }\r\n          },\r\n          eventInModule: function(event, callback) {\r\n            var\r\n              $target    = $(event.target),\r\n              inDocument = ($target.closest(document.documentElement).length > 0),\r\n              inModule   = ($target.closest($module).length > 0)\r\n            ;\r\n            callback = $.isFunction(callback)\r\n              ? callback\r\n              : function(){}\r\n            ;\r\n            if(inDocument && !inModule) {\r\n              module.verbose('Triggering event', callback);\r\n              callback();\r\n              return true;\r\n            }\r\n            else {\r\n              module.verbose('Event occurred in dropdown, canceling callback');\r\n              return false;\r\n            }\r\n          },\r\n          eventOnElement: function(event, callback) {\r\n            var\r\n              $target      = $(event.target),\r\n              $label       = $target.closest(selector.siblingLabel),\r\n              inVisibleDOM = document.body.contains(event.target),\r\n              notOnLabel   = ($module.find($label).length === 0),\r\n              notInMenu    = ($target.closest($menu).length === 0)\r\n            ;\r\n            callback = $.isFunction(callback)\r\n              ? callback\r\n              : function(){}\r\n            ;\r\n            if(inVisibleDOM && notOnLabel && notInMenu) {\r\n              module.verbose('Triggering event', callback);\r\n              callback();\r\n              return true;\r\n            }\r\n            else {\r\n              module.verbose('Event occurred in dropdown menu, canceling callback');\r\n              return false;\r\n            }\r\n          }\r\n        },\r\n\r\n        action: {\r\n\r\n          nothing: function() {},\r\n\r\n          activate: function(text, value, element) {\r\n            value = (value !== undefined)\r\n              ? value\r\n              : text\r\n            ;\r\n            if( module.can.activate( $(element) ) ) {\r\n              module.set.selected(value, $(element));\r\n              if(module.is.multiple() && !module.is.allFiltered()) {\r\n                return;\r\n              }\r\n              else {\r\n                module.hideAndClear();\r\n              }\r\n            }\r\n          },\r\n\r\n          select: function(text, value, element) {\r\n            value = (value !== undefined)\r\n              ? value\r\n              : text\r\n            ;\r\n            if( module.can.activate( $(element) ) ) {\r\n              module.set.value(value, $(element));\r\n              if(module.is.multiple() && !module.is.allFiltered()) {\r\n                return;\r\n              }\r\n              else {\r\n                module.hideAndClear();\r\n              }\r\n            }\r\n          },\r\n\r\n          combo: function(text, value, element) {\r\n            value = (value !== undefined)\r\n              ? value\r\n              : text\r\n            ;\r\n            module.set.selected(value, $(element));\r\n            module.hideAndClear();\r\n          },\r\n\r\n          hide: function(text, value, element) {\r\n            module.set.value(value, text);\r\n            module.hideAndClear();\r\n          }\r\n\r\n        },\r\n\r\n        get: {\r\n          id: function() {\r\n            return id;\r\n          },\r\n          defaultText: function() {\r\n            return $module.data(metadata.defaultText);\r\n          },\r\n          defaultValue: function() {\r\n            return $module.data(metadata.defaultValue);\r\n          },\r\n          placeholderText: function() {\r\n            return $module.data(metadata.placeholderText) || '';\r\n          },\r\n          text: function() {\r\n            return $text.text();\r\n          },\r\n          query: function() {\r\n            return $.trim($search.val());\r\n          },\r\n          searchWidth: function(value) {\r\n            value = (value !== undefined)\r\n              ? value\r\n              : $search.val()\r\n            ;\r\n            $sizer.text(value);\r\n            // prevent rounding issues\r\n            return Math.ceil( $sizer.width() + 1);\r\n          },\r\n          selectionCount: function() {\r\n            var\r\n              values = module.get.values(),\r\n              count\r\n            ;\r\n            count = ( module.is.multiple() )\r\n              ? $.isArray(values)\r\n                ? values.length\r\n                : 0\r\n              : (module.get.value() !== '')\r\n                ? 1\r\n                : 0\r\n            ;\r\n            return count;\r\n          },\r\n          transition: function($subMenu) {\r\n            return (settings.transition == 'auto')\r\n              ? module.is.upward($subMenu)\r\n                ? 'slide up'\r\n                : 'slide down'\r\n              : settings.transition\r\n            ;\r\n          },\r\n          userValues: function() {\r\n            var\r\n              values = module.get.values()\r\n            ;\r\n            if(!values) {\r\n              return false;\r\n            }\r\n            values = $.isArray(values)\r\n              ? values\r\n              : [values]\r\n            ;\r\n            return $.grep(values, function(value) {\r\n              return (module.get.item(value) === false);\r\n            });\r\n          },\r\n          uniqueArray: function(array) {\r\n            return $.grep(array, function (value, index) {\r\n                return $.inArray(value, array) === index;\r\n            });\r\n          },\r\n          caretPosition: function() {\r\n            var\r\n              input = $search.get(0),\r\n              range,\r\n              rangeLength\r\n            ;\r\n            if('selectionStart' in input) {\r\n              return input.selectionStart;\r\n            }\r\n            else if (document.selection) {\r\n              input.focus();\r\n              range       = document.selection.createRange();\r\n              rangeLength = range.text.length;\r\n              range.moveStart('character', -input.value.length);\r\n              return range.text.length - rangeLength;\r\n            }\r\n          },\r\n          value: function() {\r\n            var\r\n              value = ($input.length > 0)\r\n                ? $input.val()\r\n                : $module.data(metadata.value),\r\n              isEmptyMultiselect = ($.isArray(value) && value.length === 1 && value[0] === '')\r\n            ;\r\n            // prevents placeholder element from being selected when multiple\r\n            return (value === undefined || isEmptyMultiselect)\r\n              ? ''\r\n              : value\r\n            ;\r\n          },\r\n          values: function() {\r\n            var\r\n              value = module.get.value()\r\n            ;\r\n            if(value === '') {\r\n              return '';\r\n            }\r\n            return ( !module.has.selectInput() && module.is.multiple() )\r\n              ? (typeof value == 'string') // delimited string\r\n                ? value.split(settings.delimiter)\r\n                : ''\r\n              : value\r\n            ;\r\n          },\r\n          remoteValues: function() {\r\n            var\r\n              values = module.get.values(),\r\n              remoteValues = false\r\n            ;\r\n            if(values) {\r\n              if(typeof values == 'string') {\r\n                values = [values];\r\n              }\r\n              $.each(values, function(index, value) {\r\n                var\r\n                  name = module.read.remoteData(value)\r\n                ;\r\n                module.verbose('Restoring value from session data', name, value);\r\n                if(name) {\r\n                  if(!remoteValues) {\r\n                    remoteValues = {};\r\n                  }\r\n                  remoteValues[value] = name;\r\n                }\r\n              });\r\n            }\r\n            return remoteValues;\r\n          },\r\n          choiceText: function($choice, preserveHTML) {\r\n            preserveHTML = (preserveHTML !== undefined)\r\n              ? preserveHTML\r\n              : settings.preserveHTML\r\n            ;\r\n            if($choice) {\r\n              if($choice.find(selector.menu).length > 0) {\r\n                module.verbose('Retrieving text of element with sub-menu');\r\n                $choice = $choice.clone();\r\n                $choice.find(selector.menu).remove();\r\n                $choice.find(selector.menuIcon).remove();\r\n              }\r\n              return ($choice.data(metadata.text) !== undefined)\r\n                ? $choice.data(metadata.text)\r\n                : (preserveHTML)\r\n                  ? $.trim($choice.html())\r\n                  : $.trim($choice.text())\r\n              ;\r\n            }\r\n          },\r\n          choiceValue: function($choice, choiceText) {\r\n            choiceText = choiceText || module.get.choiceText($choice);\r\n            if(!$choice) {\r\n              return false;\r\n            }\r\n            return ($choice.data(metadata.value) !== undefined)\r\n              ? String( $choice.data(metadata.value) )\r\n              : (typeof choiceText === 'string')\r\n                ? $.trim(choiceText.toLowerCase())\r\n                : String(choiceText)\r\n            ;\r\n          },\r\n          inputEvent: function() {\r\n            var\r\n              input = $search[0]\r\n            ;\r\n            if(input) {\r\n              return (input.oninput !== undefined)\r\n                ? 'input'\r\n                : (input.onpropertychange !== undefined)\r\n                  ? 'propertychange'\r\n                  : 'keyup'\r\n              ;\r\n            }\r\n            return false;\r\n          },\r\n          selectValues: function() {\r\n            var\r\n              select = {}\r\n            ;\r\n            select.values = [];\r\n            $module\r\n              .find('option')\r\n                .each(function() {\r\n                  var\r\n                    $option  = $(this),\r\n                    name     = $option.html(),\r\n                    disabled = $option.attr('disabled'),\r\n                    value    = ( $option.attr('value') !== undefined )\r\n                      ? $option.attr('value')\r\n                      : name\r\n                  ;\r\n                  if(settings.placeholder === 'auto' && value === '') {\r\n                    select.placeholder = name;\r\n                  }\r\n                  else {\r\n                    select.values.push({\r\n                      name     : name,\r\n                      value    : value,\r\n                      disabled : disabled\r\n                    });\r\n                  }\r\n                })\r\n            ;\r\n            if(settings.placeholder && settings.placeholder !== 'auto') {\r\n              module.debug('Setting placeholder value to', settings.placeholder);\r\n              select.placeholder = settings.placeholder;\r\n            }\r\n            if(settings.sortSelect) {\r\n              select.values.sort(function(a, b) {\r\n                return (a.name > b.name)\r\n                  ? 1\r\n                  : -1\r\n                ;\r\n              });\r\n              module.debug('Retrieved and sorted values from select', select);\r\n            }\r\n            else {\r\n              module.debug('Retrieved values from select', select);\r\n            }\r\n            return select;\r\n          },\r\n          activeItem: function() {\r\n            return $item.filter('.'  + className.active);\r\n          },\r\n          selectedItem: function() {\r\n            var\r\n              $selectedItem = $item.not(selector.unselectable).filter('.'  + className.selected)\r\n            ;\r\n            return ($selectedItem.length > 0)\r\n              ? $selectedItem\r\n              : $item.eq(0)\r\n            ;\r\n          },\r\n          itemWithAdditions: function(value) {\r\n            var\r\n              $items       = module.get.item(value),\r\n              $userItems   = module.create.userChoice(value),\r\n              hasUserItems = ($userItems && $userItems.length > 0)\r\n            ;\r\n            if(hasUserItems) {\r\n              $items = ($items.length > 0)\r\n                ? $items.add($userItems)\r\n                : $userItems\r\n              ;\r\n            }\r\n            return $items;\r\n          },\r\n          item: function(value, strict) {\r\n            var\r\n              $selectedItem = false,\r\n              shouldSearch,\r\n              isMultiple\r\n            ;\r\n            value = (value !== undefined)\r\n              ? value\r\n              : ( module.get.values() !== undefined)\r\n                ? module.get.values()\r\n                : module.get.text()\r\n            ;\r\n            shouldSearch = (isMultiple)\r\n              ? (value.length > 0)\r\n              : (value !== undefined && value !== null)\r\n            ;\r\n            isMultiple = (module.is.multiple() && $.isArray(value));\r\n            strict     = (value === '' || value === 0)\r\n              ? true\r\n              : strict || false\r\n            ;\r\n            if(shouldSearch) {\r\n              $item\r\n                .each(function() {\r\n                  var\r\n                    $choice       = $(this),\r\n                    optionText    = module.get.choiceText($choice),\r\n                    optionValue   = module.get.choiceValue($choice, optionText)\r\n                  ;\r\n                  // safe early exit\r\n                  if(optionValue === null || optionValue === undefined) {\r\n                    return;\r\n                  }\r\n                  if(isMultiple) {\r\n                    if($.inArray( String(optionValue), value) !== -1 || $.inArray(optionText, value) !== -1) {\r\n                      $selectedItem = ($selectedItem)\r\n                        ? $selectedItem.add($choice)\r\n                        : $choice\r\n                      ;\r\n                    }\r\n                  }\r\n                  else if(strict) {\r\n                    module.verbose('Ambiguous dropdown value using strict type check', $choice, value);\r\n                    if( optionValue === value || optionText === value) {\r\n                      $selectedItem = $choice;\r\n                      return true;\r\n                    }\r\n                  }\r\n                  else {\r\n                    if( String(optionValue) == String(value) || optionText == value) {\r\n                      module.verbose('Found select item by value', optionValue, value);\r\n                      $selectedItem = $choice;\r\n                      return true;\r\n                    }\r\n                  }\r\n                })\r\n              ;\r\n            }\r\n            return $selectedItem;\r\n          }\r\n        },\r\n\r\n        check: {\r\n          maxSelections: function(selectionCount) {\r\n            if(settings.maxSelections) {\r\n              selectionCount = (selectionCount !== undefined)\r\n                ? selectionCount\r\n                : module.get.selectionCount()\r\n              ;\r\n              if(selectionCount >= settings.maxSelections) {\r\n                module.debug('Maximum selection count reached');\r\n                if(settings.useLabels) {\r\n                  $item.addClass(className.filtered);\r\n                  module.add.message(message.maxSelections);\r\n                }\r\n                return true;\r\n              }\r\n              else {\r\n                module.verbose('No longer at maximum selection count');\r\n                module.remove.message();\r\n                module.remove.filteredItem();\r\n                if(module.is.searchSelection()) {\r\n                  module.filterItems();\r\n                }\r\n                return false;\r\n              }\r\n            }\r\n            return true;\r\n          }\r\n        },\r\n\r\n        restore: {\r\n          defaults: function() {\r\n            module.clear();\r\n            module.restore.defaultText();\r\n            module.restore.defaultValue();\r\n          },\r\n          defaultText: function() {\r\n            var\r\n              defaultText     = module.get.defaultText(),\r\n              placeholderText = module.get.placeholderText\r\n            ;\r\n            if(defaultText === placeholderText) {\r\n              module.debug('Restoring default placeholder text', defaultText);\r\n              module.set.placeholderText(defaultText);\r\n            }\r\n            else {\r\n              module.debug('Restoring default text', defaultText);\r\n              module.set.text(defaultText);\r\n            }\r\n          },\r\n          placeholderText: function() {\r\n            module.set.placeholderText();\r\n          },\r\n          defaultValue: function() {\r\n            var\r\n              defaultValue = module.get.defaultValue()\r\n            ;\r\n            if(defaultValue !== undefined) {\r\n              module.debug('Restoring default value', defaultValue);\r\n              if(defaultValue !== '') {\r\n                module.set.value(defaultValue);\r\n                module.set.selected();\r\n              }\r\n              else {\r\n                module.remove.activeItem();\r\n                module.remove.selectedItem();\r\n              }\r\n            }\r\n          },\r\n          labels: function() {\r\n            if(settings.allowAdditions) {\r\n              if(!settings.useLabels) {\r\n                module.error(error.labels);\r\n                settings.useLabels = true;\r\n              }\r\n              module.debug('Restoring selected values');\r\n              module.create.userLabels();\r\n            }\r\n            module.check.maxSelections();\r\n          },\r\n          selected: function() {\r\n            module.restore.values();\r\n            if(module.is.multiple()) {\r\n              module.debug('Restoring previously selected values and labels');\r\n              module.restore.labels();\r\n            }\r\n            else {\r\n              module.debug('Restoring previously selected values');\r\n            }\r\n          },\r\n          values: function() {\r\n            // prevents callbacks from occurring on initial load\r\n            module.set.initialLoad();\r\n            if(settings.apiSettings && settings.saveRemoteData && module.get.remoteValues()) {\r\n              module.restore.remoteValues();\r\n            }\r\n            else {\r\n              module.set.selected();\r\n            }\r\n            module.remove.initialLoad();\r\n          },\r\n          remoteValues: function() {\r\n            var\r\n              values = module.get.remoteValues()\r\n            ;\r\n            module.debug('Recreating selected from session data', values);\r\n            if(values) {\r\n              if( module.is.single() ) {\r\n                $.each(values, function(value, name) {\r\n                  module.set.text(name);\r\n                });\r\n              }\r\n              else {\r\n                $.each(values, function(value, name) {\r\n                  module.add.label(value, name);\r\n                });\r\n              }\r\n            }\r\n          }\r\n        },\r\n\r\n        read: {\r\n          remoteData: function(value) {\r\n            var\r\n              name\r\n            ;\r\n            if(window.Storage === undefined) {\r\n              module.error(error.noStorage);\r\n              return;\r\n            }\r\n            name = sessionStorage.getItem(value);\r\n            return (name !== undefined)\r\n              ? name\r\n              : false\r\n            ;\r\n          }\r\n        },\r\n\r\n        save: {\r\n          defaults: function() {\r\n            module.save.defaultText();\r\n            module.save.placeholderText();\r\n            module.save.defaultValue();\r\n          },\r\n          defaultValue: function() {\r\n            var\r\n              value = module.get.value()\r\n            ;\r\n            module.verbose('Saving default value as', value);\r\n            $module.data(metadata.defaultValue, value);\r\n          },\r\n          defaultText: function() {\r\n            var\r\n              text = module.get.text()\r\n            ;\r\n            module.verbose('Saving default text as', text);\r\n            $module.data(metadata.defaultText, text);\r\n          },\r\n          placeholderText: function() {\r\n            var\r\n              text\r\n            ;\r\n            if(settings.placeholder !== false && $text.hasClass(className.placeholder)) {\r\n              text = module.get.text();\r\n              module.verbose('Saving placeholder text as', text);\r\n              $module.data(metadata.placeholderText, text);\r\n            }\r\n          },\r\n          remoteData: function(name, value) {\r\n            if(window.Storage === undefined) {\r\n              module.error(error.noStorage);\r\n              return;\r\n            }\r\n            module.verbose('Saving remote data to session storage', value, name);\r\n            sessionStorage.setItem(value, name);\r\n          }\r\n        },\r\n\r\n        clear: function() {\r\n          if(module.is.multiple() && settings.useLabels) {\r\n            module.remove.labels();\r\n          }\r\n          else {\r\n            module.remove.activeItem();\r\n            module.remove.selectedItem();\r\n          }\r\n          module.set.placeholderText();\r\n          module.clearValue();\r\n        },\r\n\r\n        clearValue: function() {\r\n          module.set.value('');\r\n        },\r\n\r\n        scrollPage: function(direction, $selectedItem) {\r\n          var\r\n            $currentItem  = $selectedItem || module.get.selectedItem(),\r\n            $menu         = $currentItem.closest(selector.menu),\r\n            menuHeight    = $menu.outerHeight(),\r\n            currentScroll = $menu.scrollTop(),\r\n            itemHeight    = $item.eq(0).outerHeight(),\r\n            itemsPerPage  = Math.floor(menuHeight / itemHeight),\r\n            maxScroll     = $menu.prop('scrollHeight'),\r\n            newScroll     = (direction == 'up')\r\n              ? currentScroll - (itemHeight * itemsPerPage)\r\n              : currentScroll + (itemHeight * itemsPerPage),\r\n            $selectableItem = $item.not(selector.unselectable),\r\n            isWithinRange,\r\n            $nextSelectedItem,\r\n            elementIndex\r\n          ;\r\n          elementIndex      = (direction == 'up')\r\n            ? $selectableItem.index($currentItem) - itemsPerPage\r\n            : $selectableItem.index($currentItem) + itemsPerPage\r\n          ;\r\n          isWithinRange = (direction == 'up')\r\n            ? (elementIndex >= 0)\r\n            : (elementIndex < $selectableItem.length)\r\n          ;\r\n          $nextSelectedItem = (isWithinRange)\r\n            ? $selectableItem.eq(elementIndex)\r\n            : (direction == 'up')\r\n              ? $selectableItem.first()\r\n              : $selectableItem.last()\r\n          ;\r\n          if($nextSelectedItem.length > 0) {\r\n            module.debug('Scrolling page', direction, $nextSelectedItem);\r\n            $currentItem\r\n              .removeClass(className.selected)\r\n            ;\r\n            $nextSelectedItem\r\n              .addClass(className.selected)\r\n            ;\r\n            if(settings.selectOnKeydown && module.is.single()) {\r\n              module.set.selectedItem($nextSelectedItem);\r\n            }\r\n            $menu\r\n              .scrollTop(newScroll)\r\n            ;\r\n          }\r\n        },\r\n\r\n        set: {\r\n          filtered: function() {\r\n            var\r\n              isMultiple       = module.is.multiple(),\r\n              isSearch         = module.is.searchSelection(),\r\n              isSearchMultiple = (isMultiple && isSearch),\r\n              searchValue      = (isSearch)\r\n                ? module.get.query()\r\n                : '',\r\n              hasSearchValue   = (typeof searchValue === 'string' && searchValue.length > 0),\r\n              searchWidth      = module.get.searchWidth(),\r\n              valueIsSet       = searchValue !== ''\r\n            ;\r\n            if(isMultiple && hasSearchValue) {\r\n              module.verbose('Adjusting input width', searchWidth, settings.glyphWidth);\r\n              $search.css('width', searchWidth);\r\n            }\r\n            if(hasSearchValue || (isSearchMultiple && valueIsSet)) {\r\n              module.verbose('Hiding placeholder text');\r\n              $text.addClass(className.filtered);\r\n            }\r\n            else if(!isMultiple || (isSearchMultiple && !valueIsSet)) {\r\n              module.verbose('Showing placeholder text');\r\n              $text.removeClass(className.filtered);\r\n            }\r\n          },\r\n          empty: function() {\r\n            $module.addClass(className.empty);\r\n          },\r\n          loading: function() {\r\n            $module.addClass(className.loading);\r\n          },\r\n          placeholderText: function(text) {\r\n            text = text || module.get.placeholderText();\r\n            module.debug('Setting placeholder text', text);\r\n            module.set.text(text);\r\n            $text.addClass(className.placeholder);\r\n          },\r\n          tabbable: function() {\r\n            if( module.is.searchSelection() ) {\r\n              module.debug('Added tabindex to searchable dropdown');\r\n              $search\r\n                .val('')\r\n                .attr('tabindex', 0)\r\n              ;\r\n              $menu\r\n                .attr('tabindex', -1)\r\n              ;\r\n            }\r\n            else {\r\n              module.debug('Added tabindex to dropdown');\r\n              if( $module.attr('tabindex') === undefined) {\r\n                $module\r\n                  .attr('tabindex', 0)\r\n                ;\r\n                $menu\r\n                  .attr('tabindex', -1)\r\n                ;\r\n              }\r\n            }\r\n          },\r\n          initialLoad: function() {\r\n            module.verbose('Setting initial load');\r\n            initialLoad = true;\r\n          },\r\n          activeItem: function($item) {\r\n            if( settings.allowAdditions && $item.filter(selector.addition).length > 0 ) {\r\n              $item.addClass(className.filtered);\r\n            }\r\n            else {\r\n              $item.addClass(className.active);\r\n            }\r\n          },\r\n          partialSearch: function(text) {\r\n            var\r\n              length = module.get.query().length\r\n            ;\r\n            $search.val( text.substr(0 , length));\r\n          },\r\n          scrollPosition: function($item, forceScroll) {\r\n            var\r\n              edgeTolerance = 5,\r\n              $menu,\r\n              hasActive,\r\n              offset,\r\n              itemHeight,\r\n              itemOffset,\r\n              menuOffset,\r\n              menuScroll,\r\n              menuHeight,\r\n              abovePage,\r\n              belowPage\r\n            ;\r\n\r\n            $item       = $item || module.get.selectedItem();\r\n            $menu       = $item.closest(selector.menu);\r\n            hasActive   = ($item && $item.length > 0);\r\n            forceScroll = (forceScroll !== undefined)\r\n              ? forceScroll\r\n              : false\r\n            ;\r\n            if($item && $menu.length > 0 && hasActive) {\r\n              itemOffset = $item.position().top;\r\n\r\n              $menu.addClass(className.loading);\r\n              menuScroll = $menu.scrollTop();\r\n              menuOffset = $menu.offset().top;\r\n              itemOffset = $item.offset().top;\r\n              offset     = menuScroll - menuOffset + itemOffset;\r\n              if(!forceScroll) {\r\n                menuHeight = $menu.height();\r\n                belowPage  = menuScroll + menuHeight < (offset + edgeTolerance);\r\n                abovePage  = ((offset - edgeTolerance) < menuScroll);\r\n              }\r\n              module.debug('Scrolling to active item', offset);\r\n              if(forceScroll || abovePage || belowPage) {\r\n                $menu.scrollTop(offset);\r\n              }\r\n              $menu.removeClass(className.loading);\r\n            }\r\n          },\r\n          text: function(text) {\r\n            if(settings.action !== 'select') {\r\n              if(settings.action == 'combo') {\r\n                module.debug('Changing combo button text', text, $combo);\r\n                if(settings.preserveHTML) {\r\n                  $combo.html(text);\r\n                }\r\n                else {\r\n                  $combo.text(text);\r\n                }\r\n              }\r\n              else {\r\n                if(text !== module.get.placeholderText()) {\r\n                  $text.removeClass(className.placeholder);\r\n                }\r\n                module.debug('Changing text', text, $text);\r\n                $text\r\n                  .removeClass(className.filtered)\r\n                ;\r\n                if(settings.preserveHTML) {\r\n                  $text.html(text);\r\n                }\r\n                else {\r\n                  $text.text(text);\r\n                }\r\n              }\r\n            }\r\n          },\r\n          selectedItem: function($item) {\r\n            var\r\n              value      = module.get.choiceValue($item),\r\n              searchText = module.get.choiceText($item, false),\r\n              text       = module.get.choiceText($item, true)\r\n            ;\r\n            module.debug('Setting user selection to item', $item);\r\n            module.remove.activeItem();\r\n            module.set.partialSearch(searchText);\r\n            module.set.activeItem($item);\r\n            module.set.selected(value, $item);\r\n            module.set.text(text);\r\n          },\r\n          selectedLetter: function(letter) {\r\n            var\r\n              $selectedItem         = $item.filter('.' + className.selected),\r\n              alreadySelectedLetter = $selectedItem.length > 0 && module.has.firstLetter($selectedItem, letter),\r\n              $nextValue            = false,\r\n              $nextItem\r\n            ;\r\n            // check next of same letter\r\n            if(alreadySelectedLetter) {\r\n              $nextItem = $selectedItem.nextAll($item).eq(0);\r\n              if( module.has.firstLetter($nextItem, letter) ) {\r\n                $nextValue  = $nextItem;\r\n              }\r\n            }\r\n            // check all values\r\n            if(!$nextValue) {\r\n              $item\r\n                .each(function(){\r\n                  if(module.has.firstLetter($(this), letter)) {\r\n                    $nextValue = $(this);\r\n                    return false;\r\n                  }\r\n                })\r\n              ;\r\n            }\r\n            // set next value\r\n            if($nextValue) {\r\n              module.verbose('Scrolling to next value with letter', letter);\r\n              module.set.scrollPosition($nextValue);\r\n              $selectedItem.removeClass(className.selected);\r\n              $nextValue.addClass(className.selected);\r\n              if(settings.selectOnKeydown && module.is.single()) {\r\n                module.set.selectedItem($nextValue);\r\n              }\r\n            }\r\n          },\r\n          direction: function($menu) {\r\n            if(settings.direction == 'auto') {\r\n              if(module.is.onScreen($menu)) {\r\n                module.remove.upward($menu);\r\n              }\r\n              else {\r\n                module.set.upward($menu);\r\n              }\r\n            }\r\n            else if(settings.direction == 'upward') {\r\n              module.set.upward($menu);\r\n            }\r\n          },\r\n          upward: function($menu) {\r\n            var $element = $menu || $module;\r\n            $element.addClass(className.upward);\r\n          },\r\n          value: function(value, text, $selected) {\r\n            var\r\n              escapedValue = module.escape.value(value),\r\n              hasInput     = ($input.length > 0),\r\n              isAddition   = !module.has.value(value),\r\n              currentValue = module.get.values(),\r\n              stringValue  = (value !== undefined)\r\n                ? String(value)\r\n                : value,\r\n              newValue\r\n            ;\r\n            if(hasInput) {\r\n              if(!settings.allowReselection && stringValue == currentValue) {\r\n                module.verbose('Skipping value update already same value', value, currentValue);\r\n                if(!module.is.initialLoad()) {\r\n                  return;\r\n                }\r\n              }\r\n\r\n              if( module.is.single() && module.has.selectInput() && module.can.extendSelect() ) {\r\n                module.debug('Adding user option', value);\r\n                module.add.optionValue(value);\r\n              }\r\n              module.debug('Updating input value', escapedValue, currentValue);\r\n              internalChange = true;\r\n              $input\r\n                .val(escapedValue)\r\n              ;\r\n              if(settings.fireOnInit === false && module.is.initialLoad()) {\r\n                module.debug('Input native change event ignored on initial load');\r\n              }\r\n              else {\r\n                module.trigger.change();\r\n              }\r\n              internalChange = false;\r\n            }\r\n            else {\r\n              module.verbose('Storing value in metadata', escapedValue, $input);\r\n              if(escapedValue !== currentValue) {\r\n                $module.data(metadata.value, stringValue);\r\n              }\r\n            }\r\n            if(settings.fireOnInit === false && module.is.initialLoad()) {\r\n              module.verbose('No callback on initial load', settings.onChange);\r\n            }\r\n            else {\r\n              settings.onChange.call(element, value, text, $selected);\r\n            }\r\n          },\r\n          active: function() {\r\n            $module\r\n              .addClass(className.active)\r\n            ;\r\n          },\r\n          multiple: function() {\r\n            $module.addClass(className.multiple);\r\n          },\r\n          visible: function() {\r\n            $module.addClass(className.visible);\r\n          },\r\n          exactly: function(value, $selectedItem) {\r\n            module.debug('Setting selected to exact values');\r\n            module.clear();\r\n            module.set.selected(value, $selectedItem);\r\n          },\r\n          selected: function(value, $selectedItem) {\r\n            var\r\n              isMultiple = module.is.multiple(),\r\n              $userSelectedItem\r\n            ;\r\n            $selectedItem = (settings.allowAdditions)\r\n              ? $selectedItem || module.get.itemWithAdditions(value)\r\n              : $selectedItem || module.get.item(value)\r\n            ;\r\n            if(!$selectedItem) {\r\n              return;\r\n            }\r\n            module.debug('Setting selected menu item to', $selectedItem);\r\n            if(module.is.multiple()) {\r\n              module.remove.searchWidth();\r\n            }\r\n            if(module.is.single()) {\r\n              module.remove.activeItem();\r\n              module.remove.selectedItem();\r\n            }\r\n            else if(settings.useLabels) {\r\n              module.remove.selectedItem();\r\n            }\r\n            // select each item\r\n            $selectedItem\r\n              .each(function() {\r\n                var\r\n                  $selected      = $(this),\r\n                  selectedText   = module.get.choiceText($selected),\r\n                  selectedValue  = module.get.choiceValue($selected, selectedText),\r\n\r\n                  isFiltered     = $selected.hasClass(className.filtered),\r\n                  isActive       = $selected.hasClass(className.active),\r\n                  isUserValue    = $selected.hasClass(className.addition),\r\n                  shouldAnimate  = (isMultiple && $selectedItem.length == 1)\r\n                ;\r\n                if(isMultiple) {\r\n                  if(!isActive || isUserValue) {\r\n                    if(settings.apiSettings && settings.saveRemoteData) {\r\n                      module.save.remoteData(selectedText, selectedValue);\r\n                    }\r\n                    if(settings.useLabels) {\r\n                      module.add.value(selectedValue, selectedText, $selected);\r\n                      module.add.label(selectedValue, selectedText, shouldAnimate);\r\n                      module.set.activeItem($selected);\r\n                      module.filterActive();\r\n                      module.select.nextAvailable($selectedItem);\r\n                    }\r\n                    else {\r\n                      module.add.value(selectedValue, selectedText, $selected);\r\n                      module.set.text(module.add.variables(message.count));\r\n                      module.set.activeItem($selected);\r\n                    }\r\n                  }\r\n                  else if(!isFiltered) {\r\n                    module.debug('Selected active value, removing label');\r\n                    module.remove.selected(selectedValue);\r\n                  }\r\n                }\r\n                else {\r\n                  if(settings.apiSettings && settings.saveRemoteData) {\r\n                    module.save.remoteData(selectedText, selectedValue);\r\n                  }\r\n                  module.set.text(selectedText);\r\n                  module.set.value(selectedValue, selectedText, $selected);\r\n                  $selected\r\n                    .addClass(className.active)\r\n                    .addClass(className.selected)\r\n                  ;\r\n                }\r\n              })\r\n            ;\r\n          }\r\n        },\r\n\r\n        add: {\r\n          label: function(value, text, shouldAnimate) {\r\n            var\r\n              $next  = module.is.searchSelection()\r\n                ? $search\r\n                : $text,\r\n              escapedValue = module.escape.value(value),\r\n              $label\r\n            ;\r\n            $label =  $('<a />')\r\n              .addClass(className.label)\r\n              .attr('data-' + metadata.value, escapedValue)\r\n              .html(templates.label(escapedValue, text))\r\n            ;\r\n            $label = settings.onLabelCreate.call($label, escapedValue, text);\r\n\r\n            if(module.has.label(value)) {\r\n              module.debug('Label already exists, skipping', escapedValue);\r\n              return;\r\n            }\r\n            if(settings.label.variation) {\r\n              $label.addClass(settings.label.variation);\r\n            }\r\n            if(shouldAnimate === true) {\r\n              module.debug('Animating in label', $label);\r\n              $label\r\n                .addClass(className.hidden)\r\n                .insertBefore($next)\r\n                .transition(settings.label.transition, settings.label.duration)\r\n              ;\r\n            }\r\n            else {\r\n              module.debug('Adding selection label', $label);\r\n              $label\r\n                .insertBefore($next)\r\n              ;\r\n            }\r\n          },\r\n          message: function(message) {\r\n            var\r\n              $message = $menu.children(selector.message),\r\n              html     = settings.templates.message(module.add.variables(message))\r\n            ;\r\n            if($message.length > 0) {\r\n              $message\r\n                .html(html)\r\n              ;\r\n            }\r\n            else {\r\n              $message = $('<div/>')\r\n                .html(html)\r\n                .addClass(className.message)\r\n                .appendTo($menu)\r\n              ;\r\n            }\r\n          },\r\n          optionValue: function(value) {\r\n            var\r\n              escapedValue = module.escape.value(value),\r\n              $option      = $input.find('option[value=\"' + module.escape.string(escapedValue) + '\"]'),\r\n              hasOption    = ($option.length > 0)\r\n            ;\r\n            if(hasOption) {\r\n              return;\r\n            }\r\n            // temporarily disconnect observer\r\n            module.disconnect.selectObserver();\r\n            if( module.is.single() ) {\r\n              module.verbose('Removing previous user addition');\r\n              $input.find('option.' + className.addition).remove();\r\n            }\r\n            $('<option/>')\r\n              .prop('value', escapedValue)\r\n              .addClass(className.addition)\r\n              .html(value)\r\n              .appendTo($input)\r\n            ;\r\n            module.verbose('Adding user addition as an <option>', value);\r\n            module.observe.select();\r\n          },\r\n          userSuggestion: function(value) {\r\n            var\r\n              $addition         = $menu.children(selector.addition),\r\n              $existingItem     = module.get.item(value),\r\n              alreadyHasValue   = $existingItem && $existingItem.not(selector.addition).length,\r\n              hasUserSuggestion = $addition.length > 0,\r\n              html\r\n            ;\r\n            if(settings.useLabels && module.has.maxSelections()) {\r\n              return;\r\n            }\r\n            if(value === '' || alreadyHasValue) {\r\n              $addition.remove();\r\n              return;\r\n            }\r\n            if(hasUserSuggestion) {\r\n              $addition\r\n                .data(metadata.value, value)\r\n                .data(metadata.text, value)\r\n                .attr('data-' + metadata.value, value)\r\n                .attr('data-' + metadata.text, value)\r\n                .removeClass(className.filtered)\r\n              ;\r\n              if(!settings.hideAdditions) {\r\n                html = settings.templates.addition( module.add.variables(message.addResult, value) );\r\n                $addition\r\n                  .html(html)\r\n                ;\r\n              }\r\n              module.verbose('Replacing user suggestion with new value', $addition);\r\n            }\r\n            else {\r\n              $addition = module.create.userChoice(value);\r\n              $addition\r\n                .prependTo($menu)\r\n              ;\r\n              module.verbose('Adding item choice to menu corresponding with user choice addition', $addition);\r\n            }\r\n            if(!settings.hideAdditions || module.is.allFiltered()) {\r\n              $addition\r\n                .addClass(className.selected)\r\n                .siblings()\r\n                .removeClass(className.selected)\r\n              ;\r\n            }\r\n            module.refreshItems();\r\n          },\r\n          variables: function(message, term) {\r\n            var\r\n              hasCount    = (message.search('{count}') !== -1),\r\n              hasMaxCount = (message.search('{maxCount}') !== -1),\r\n              hasTerm     = (message.search('{term}') !== -1),\r\n              values,\r\n              count,\r\n              query\r\n            ;\r\n            module.verbose('Adding templated variables to message', message);\r\n            if(hasCount) {\r\n              count  = module.get.selectionCount();\r\n              message = message.replace('{count}', count);\r\n            }\r\n            if(hasMaxCount) {\r\n              count  = module.get.selectionCount();\r\n              message = message.replace('{maxCount}', settings.maxSelections);\r\n            }\r\n            if(hasTerm) {\r\n              query   = term || module.get.query();\r\n              message = message.replace('{term}', query);\r\n            }\r\n            return message;\r\n          },\r\n          value: function(addedValue, addedText, $selectedItem) {\r\n            var\r\n              currentValue = module.get.values(),\r\n              newValue\r\n            ;\r\n            if(addedValue === '') {\r\n              module.debug('Cannot select blank values from multiselect');\r\n              return;\r\n            }\r\n            // extend current array\r\n            if($.isArray(currentValue)) {\r\n              newValue = currentValue.concat([addedValue]);\r\n              newValue = module.get.uniqueArray(newValue);\r\n            }\r\n            else {\r\n              newValue = [addedValue];\r\n            }\r\n            // add values\r\n            if( module.has.selectInput() ) {\r\n              if(module.can.extendSelect()) {\r\n                module.debug('Adding value to select', addedValue, newValue, $input);\r\n                module.add.optionValue(addedValue);\r\n              }\r\n            }\r\n            else {\r\n              newValue = newValue.join(settings.delimiter);\r\n              module.debug('Setting hidden input to delimited value', newValue, $input);\r\n            }\r\n\r\n            if(settings.fireOnInit === false && module.is.initialLoad()) {\r\n              module.verbose('Skipping onadd callback on initial load', settings.onAdd);\r\n            }\r\n            else {\r\n              settings.onAdd.call(element, addedValue, addedText, $selectedItem);\r\n            }\r\n            module.set.value(newValue, addedValue, addedText, $selectedItem);\r\n            module.check.maxSelections();\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          active: function() {\r\n            $module.removeClass(className.active);\r\n          },\r\n          activeLabel: function() {\r\n            $module.find(selector.label).removeClass(className.active);\r\n          },\r\n          empty: function() {\r\n            $module.removeClass(className.empty);\r\n          },\r\n          loading: function() {\r\n            $module.removeClass(className.loading);\r\n          },\r\n          initialLoad: function() {\r\n            initialLoad = false;\r\n          },\r\n          upward: function($menu) {\r\n            var $element = $menu || $module;\r\n            $element.removeClass(className.upward);\r\n          },\r\n          visible: function() {\r\n            $module.removeClass(className.visible);\r\n          },\r\n          activeItem: function() {\r\n            $item.removeClass(className.active);\r\n          },\r\n          filteredItem: function() {\r\n            if(settings.useLabels && module.has.maxSelections() ) {\r\n              return;\r\n            }\r\n            if(settings.useLabels && module.is.multiple()) {\r\n              $item.not('.' + className.active).removeClass(className.filtered);\r\n            }\r\n            else {\r\n              $item.removeClass(className.filtered);\r\n            }\r\n            module.remove.empty();\r\n          },\r\n          optionValue: function(value) {\r\n            var\r\n              escapedValue = module.escape.value(value),\r\n              $option      = $input.find('option[value=\"' + module.escape.string(escapedValue) + '\"]'),\r\n              hasOption    = ($option.length > 0)\r\n            ;\r\n            if(!hasOption || !$option.hasClass(className.addition)) {\r\n              return;\r\n            }\r\n            // temporarily disconnect observer\r\n            if(selectObserver) {\r\n              selectObserver.disconnect();\r\n              module.verbose('Temporarily disconnecting mutation observer');\r\n            }\r\n            $option.remove();\r\n            module.verbose('Removing user addition as an <option>', escapedValue);\r\n            if(selectObserver) {\r\n              selectObserver.observe($input[0], {\r\n                childList : true,\r\n                subtree   : true\r\n              });\r\n            }\r\n          },\r\n          message: function() {\r\n            $menu.children(selector.message).remove();\r\n          },\r\n          searchWidth: function() {\r\n            $search.css('width', '');\r\n          },\r\n          searchTerm: function() {\r\n            module.verbose('Cleared search term');\r\n            $search.val('');\r\n            module.set.filtered();\r\n          },\r\n          userAddition: function() {\r\n            $item.filter(selector.addition).remove();\r\n          },\r\n          selected: function(value, $selectedItem) {\r\n            $selectedItem = (settings.allowAdditions)\r\n              ? $selectedItem || module.get.itemWithAdditions(value)\r\n              : $selectedItem || module.get.item(value)\r\n            ;\r\n\r\n            if(!$selectedItem) {\r\n              return false;\r\n            }\r\n\r\n            $selectedItem\r\n              .each(function() {\r\n                var\r\n                  $selected     = $(this),\r\n                  selectedText  = module.get.choiceText($selected),\r\n                  selectedValue = module.get.choiceValue($selected, selectedText)\r\n                ;\r\n                if(module.is.multiple()) {\r\n                  if(settings.useLabels) {\r\n                    module.remove.value(selectedValue, selectedText, $selected);\r\n                    module.remove.label(selectedValue);\r\n                  }\r\n                  else {\r\n                    module.remove.value(selectedValue, selectedText, $selected);\r\n                    if(module.get.selectionCount() === 0) {\r\n                      module.set.placeholderText();\r\n                    }\r\n                    else {\r\n                      module.set.text(module.add.variables(message.count));\r\n                    }\r\n                  }\r\n                }\r\n                else {\r\n                  module.remove.value(selectedValue, selectedText, $selected);\r\n                }\r\n                $selected\r\n                  .removeClass(className.filtered)\r\n                  .removeClass(className.active)\r\n                ;\r\n                if(settings.useLabels) {\r\n                  $selected.removeClass(className.selected);\r\n                }\r\n              })\r\n            ;\r\n          },\r\n          selectedItem: function() {\r\n            $item.removeClass(className.selected);\r\n          },\r\n          value: function(removedValue, removedText, $removedItem) {\r\n            var\r\n              values = module.get.values(),\r\n              newValue\r\n            ;\r\n            if( module.has.selectInput() ) {\r\n              module.verbose('Input is <select> removing selected option', removedValue);\r\n              newValue = module.remove.arrayValue(removedValue, values);\r\n              module.remove.optionValue(removedValue);\r\n            }\r\n            else {\r\n              module.verbose('Removing from delimited values', removedValue);\r\n              newValue = module.remove.arrayValue(removedValue, values);\r\n              newValue = newValue.join(settings.delimiter);\r\n            }\r\n            if(settings.fireOnInit === false && module.is.initialLoad()) {\r\n              module.verbose('No callback on initial load', settings.onRemove);\r\n            }\r\n            else {\r\n              settings.onRemove.call(element, removedValue, removedText, $removedItem);\r\n            }\r\n            module.set.value(newValue, removedText, $removedItem);\r\n            module.check.maxSelections();\r\n          },\r\n          arrayValue: function(removedValue, values) {\r\n            if( !$.isArray(values) ) {\r\n              values = [values];\r\n            }\r\n            values = $.grep(values, function(value){\r\n              return (removedValue != value);\r\n            });\r\n            module.verbose('Removed value from delimited string', removedValue, values);\r\n            return values;\r\n          },\r\n          label: function(value, shouldAnimate) {\r\n            var\r\n              $labels       = $module.find(selector.label),\r\n              $removedLabel = $labels.filter('[data-' + metadata.value + '=\"' + module.escape.string(value) +'\"]')\r\n            ;\r\n            module.verbose('Removing label', $removedLabel);\r\n            $removedLabel.remove();\r\n          },\r\n          activeLabels: function($activeLabels) {\r\n            $activeLabels = $activeLabels || $module.find(selector.label).filter('.' + className.active);\r\n            module.verbose('Removing active label selections', $activeLabels);\r\n            module.remove.labels($activeLabels);\r\n          },\r\n          labels: function($labels) {\r\n            $labels = $labels || $module.find(selector.label);\r\n            module.verbose('Removing labels', $labels);\r\n            $labels\r\n              .each(function(){\r\n                var\r\n                  $label      = $(this),\r\n                  value       = $label.data(metadata.value),\r\n                  stringValue = (value !== undefined)\r\n                    ? String(value)\r\n                    : value,\r\n                  isUserValue = module.is.userValue(stringValue)\r\n                ;\r\n                if(settings.onLabelRemove.call($label, value) === false) {\r\n                  module.debug('Label remove callback cancelled removal');\r\n                  return;\r\n                }\r\n                module.remove.message();\r\n                if(isUserValue) {\r\n                  module.remove.value(stringValue);\r\n                  module.remove.label(stringValue);\r\n                }\r\n                else {\r\n                  // selected will also remove label\r\n                  module.remove.selected(stringValue);\r\n                }\r\n              })\r\n            ;\r\n          },\r\n          tabbable: function() {\r\n            if( module.is.searchSelection() ) {\r\n              module.debug('Searchable dropdown initialized');\r\n              $search\r\n                .removeAttr('tabindex')\r\n              ;\r\n              $menu\r\n                .removeAttr('tabindex')\r\n              ;\r\n            }\r\n            else {\r\n              module.debug('Simple selection dropdown initialized');\r\n              $module\r\n                .removeAttr('tabindex')\r\n              ;\r\n              $menu\r\n                .removeAttr('tabindex')\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        has: {\r\n          menuSearch: function() {\r\n            return (module.has.search() && $search.closest($menu).length > 0);\r\n          },\r\n          search: function() {\r\n            return ($search.length > 0);\r\n          },\r\n          sizer: function() {\r\n            return ($sizer.length > 0);\r\n          },\r\n          selectInput: function() {\r\n            return ( $input.is('select') );\r\n          },\r\n          minCharacters: function(searchTerm) {\r\n            if(settings.minCharacters) {\r\n              searchTerm = (searchTerm !== undefined)\r\n                ? String(searchTerm)\r\n                : String(module.get.query())\r\n              ;\r\n              return (searchTerm.length >= settings.minCharacters);\r\n            }\r\n            return true;\r\n          },\r\n          firstLetter: function($item, letter) {\r\n            var\r\n              text,\r\n              firstLetter\r\n            ;\r\n            if(!$item || $item.length === 0 || typeof letter !== 'string') {\r\n              return false;\r\n            }\r\n            text        = module.get.choiceText($item, false);\r\n            letter      = letter.toLowerCase();\r\n            firstLetter = String(text).charAt(0).toLowerCase();\r\n            return (letter == firstLetter);\r\n          },\r\n          input: function() {\r\n            return ($input.length > 0);\r\n          },\r\n          items: function() {\r\n            return ($item.length > 0);\r\n          },\r\n          menu: function() {\r\n            return ($menu.length > 0);\r\n          },\r\n          message: function() {\r\n            return ($menu.children(selector.message).length !== 0);\r\n          },\r\n          label: function(value) {\r\n            var\r\n              escapedValue = module.escape.value(value),\r\n              $labels      = $module.find(selector.label)\r\n            ;\r\n            return ($labels.filter('[data-' + metadata.value + '=\"' + module.escape.string(escapedValue) +'\"]').length > 0);\r\n          },\r\n          maxSelections: function() {\r\n            return (settings.maxSelections && module.get.selectionCount() >= settings.maxSelections);\r\n          },\r\n          allResultsFiltered: function() {\r\n            var\r\n              $normalResults = $item.not(selector.addition)\r\n            ;\r\n            return ($normalResults.filter(selector.unselectable).length === $normalResults.length);\r\n          },\r\n          userSuggestion: function() {\r\n            return ($menu.children(selector.addition).length > 0);\r\n          },\r\n          query: function() {\r\n            return (module.get.query() !== '');\r\n          },\r\n          value: function(value) {\r\n            var\r\n              values   = module.get.values(),\r\n              hasValue = $.isArray(values)\r\n               ? values && ($.inArray(value, values) !== -1)\r\n               : (values == value)\r\n            ;\r\n            return (hasValue)\r\n              ? true\r\n              : false\r\n            ;\r\n          }\r\n        },\r\n\r\n        is: {\r\n          active: function() {\r\n            return $module.hasClass(className.active);\r\n          },\r\n          bubbledLabelClick: function(event) {\r\n            return $(event.target).is('select, input') && $module.closest('label').length > 0;\r\n          },\r\n          bubbledIconClick: function(event) {\r\n            return $(event.target).closest($icon).length > 0;\r\n          },\r\n          alreadySetup: function() {\r\n            return ($module.is('select') && $module.parent(selector.dropdown).length > 0  && $module.prev().length === 0);\r\n          },\r\n          animating: function($subMenu) {\r\n            return ($subMenu)\r\n              ? $subMenu.transition && $subMenu.transition('is animating')\r\n              : $menu.transition    && $menu.transition('is animating')\r\n            ;\r\n          },\r\n          disabled: function() {\r\n            return $module.hasClass(className.disabled);\r\n          },\r\n          focused: function() {\r\n            return (document.activeElement === $module[0]);\r\n          },\r\n          focusedOnSearch: function() {\r\n            return (document.activeElement === $search[0]);\r\n          },\r\n          allFiltered: function() {\r\n            return( (module.is.multiple() || module.has.search()) && !(settings.hideAdditions == false && module.has.userSuggestion()) && !module.has.message() && module.has.allResultsFiltered() );\r\n          },\r\n          hidden: function($subMenu) {\r\n            return !module.is.visible($subMenu);\r\n          },\r\n          initialLoad: function() {\r\n            return initialLoad;\r\n          },\r\n          onScreen: function($subMenu) {\r\n            var\r\n              $currentMenu   = $subMenu || $menu,\r\n              canOpenDownward = true,\r\n              onScreen = {},\r\n              calculations\r\n            ;\r\n            $currentMenu.addClass(className.loading);\r\n            calculations = {\r\n              context: {\r\n                scrollTop : $context.scrollTop(),\r\n                height    : $context.outerHeight()\r\n              },\r\n              menu : {\r\n                offset: $currentMenu.offset(),\r\n                height: $currentMenu.outerHeight()\r\n              }\r\n            };\r\n            if(module.is.verticallyScrollableContext()) {\r\n              calculations.menu.offset.top += calculations.context.scrollTop;\r\n            }\r\n            onScreen = {\r\n              above : (calculations.context.scrollTop) <= calculations.menu.offset.top - calculations.menu.height,\r\n              below : (calculations.context.scrollTop + calculations.context.height) >= calculations.menu.offset.top + calculations.menu.height\r\n            };\r\n            if(onScreen.below) {\r\n              module.verbose('Dropdown can fit in context downward', onScreen);\r\n              canOpenDownward = true;\r\n            }\r\n            else if(!onScreen.below && !onScreen.above) {\r\n              module.verbose('Dropdown cannot fit in either direction, favoring downward', onScreen);\r\n              canOpenDownward = true;\r\n            }\r\n            else {\r\n              module.verbose('Dropdown cannot fit below, opening upward', onScreen);\r\n              canOpenDownward = false;\r\n            }\r\n            $currentMenu.removeClass(className.loading);\r\n            return canOpenDownward;\r\n          },\r\n          inObject: function(needle, object) {\r\n            var\r\n              found = false\r\n            ;\r\n            $.each(object, function(index, property) {\r\n              if(property == needle) {\r\n                found = true;\r\n                return true;\r\n              }\r\n            });\r\n            return found;\r\n          },\r\n          multiple: function() {\r\n            return $module.hasClass(className.multiple);\r\n          },\r\n          remote: function() {\r\n            return settings.apiSettings && module.can.useAPI();\r\n          },\r\n          single: function() {\r\n            return !module.is.multiple();\r\n          },\r\n          selectMutation: function(mutations) {\r\n            var\r\n              selectChanged = false\r\n            ;\r\n            $.each(mutations, function(index, mutation) {\r\n              if(mutation.target && $(mutation.target).is('select')) {\r\n                selectChanged = true;\r\n                return true;\r\n              }\r\n            });\r\n            return selectChanged;\r\n          },\r\n          search: function() {\r\n            return $module.hasClass(className.search);\r\n          },\r\n          searchSelection: function() {\r\n            return ( module.has.search() && $search.parent(selector.dropdown).length === 1 );\r\n          },\r\n          selection: function() {\r\n            return $module.hasClass(className.selection);\r\n          },\r\n          userValue: function(value) {\r\n            return ($.inArray(value, module.get.userValues()) !== -1);\r\n          },\r\n          upward: function($menu) {\r\n            var $element = $menu || $module;\r\n            return $element.hasClass(className.upward);\r\n          },\r\n          visible: function($subMenu) {\r\n            return ($subMenu)\r\n              ? $subMenu.hasClass(className.visible)\r\n              : $menu.hasClass(className.visible)\r\n            ;\r\n          },\r\n          verticallyScrollableContext: function() {\r\n            var\r\n              overflowY = ($context.get(0) !== window)\r\n                ? $context.css('overflow-y')\r\n                : false\r\n            ;\r\n            return (overflowY == 'auto' || overflowY == 'scroll');\r\n          }\r\n        },\r\n\r\n        can: {\r\n          activate: function($item) {\r\n            if(settings.useLabels) {\r\n              return true;\r\n            }\r\n            if(!module.has.maxSelections()) {\r\n              return true;\r\n            }\r\n            if(module.has.maxSelections() && $item.hasClass(className.active)) {\r\n              return true;\r\n            }\r\n            return false;\r\n          },\r\n          click: function() {\r\n            return (hasTouch || settings.on == 'click');\r\n          },\r\n          extendSelect: function() {\r\n            return settings.allowAdditions || settings.apiSettings;\r\n          },\r\n          show: function() {\r\n            return !module.is.disabled() && (module.has.items() || module.has.message());\r\n          },\r\n          useAPI: function() {\r\n            return $.fn.api !== undefined;\r\n          }\r\n        },\r\n\r\n        animate: {\r\n          show: function(callback, $subMenu) {\r\n            var\r\n              $currentMenu = $subMenu || $menu,\r\n              start = ($subMenu)\r\n                ? function() {}\r\n                : function() {\r\n                  module.hideSubMenus();\r\n                  module.hideOthers();\r\n                  module.set.active();\r\n                },\r\n              transition\r\n            ;\r\n            callback = $.isFunction(callback)\r\n              ? callback\r\n              : function(){}\r\n            ;\r\n            module.verbose('Doing menu show animation', $currentMenu);\r\n            module.set.direction($subMenu);\r\n            transition = module.get.transition($subMenu);\r\n            if( module.is.selection() ) {\r\n              module.set.scrollPosition(module.get.selectedItem(), true);\r\n            }\r\n            if( module.is.hidden($currentMenu) || module.is.animating($currentMenu) ) {\r\n              if(transition == 'none') {\r\n                start();\r\n                $currentMenu.transition('show');\r\n                callback.call(element);\r\n              }\r\n              else if($.fn.transition !== undefined && $module.transition('is supported')) {\r\n                $currentMenu\r\n                  .transition({\r\n                    animation  : transition + ' in',\r\n                    debug      : settings.debug,\r\n                    verbose    : settings.verbose,\r\n                    duration   : settings.duration,\r\n                    queue      : true,\r\n                    onStart    : start,\r\n                    onComplete : function() {\r\n                      callback.call(element);\r\n                    }\r\n                  })\r\n                ;\r\n              }\r\n              else {\r\n                module.error(error.noTransition, transition);\r\n              }\r\n            }\r\n          },\r\n          hide: function(callback, $subMenu) {\r\n            var\r\n              $currentMenu = $subMenu || $menu,\r\n              duration = ($subMenu)\r\n                ? (settings.duration * 0.9)\r\n                : settings.duration,\r\n              start = ($subMenu)\r\n                ? function() {}\r\n                : function() {\r\n                  if( module.can.click() ) {\r\n                    module.unbind.intent();\r\n                  }\r\n                  module.remove.active();\r\n                },\r\n              transition = module.get.transition($subMenu)\r\n            ;\r\n            callback = $.isFunction(callback)\r\n              ? callback\r\n              : function(){}\r\n            ;\r\n            if( module.is.visible($currentMenu) || module.is.animating($currentMenu) ) {\r\n              module.verbose('Doing menu hide animation', $currentMenu);\r\n\r\n              if(transition == 'none') {\r\n                start();\r\n                $currentMenu.transition('hide');\r\n                callback.call(element);\r\n              }\r\n              else if($.fn.transition !== undefined && $module.transition('is supported')) {\r\n                $currentMenu\r\n                  .transition({\r\n                    animation  : transition + ' out',\r\n                    duration   : settings.duration,\r\n                    debug      : settings.debug,\r\n                    verbose    : settings.verbose,\r\n                    queue      : true,\r\n                    onStart    : start,\r\n                    onComplete : function() {\r\n                      if(settings.direction == 'auto') {\r\n                        module.remove.upward($subMenu);\r\n                      }\r\n                      callback.call(element);\r\n                    }\r\n                  })\r\n                ;\r\n              }\r\n              else {\r\n                module.error(error.transition);\r\n              }\r\n            }\r\n          }\r\n        },\r\n\r\n        hideAndClear: function() {\r\n          module.remove.searchTerm();\r\n          if( module.has.maxSelections() ) {\r\n            return;\r\n          }\r\n          if(module.has.search()) {\r\n            module.hide(function() {\r\n              module.remove.filteredItem();\r\n            });\r\n          }\r\n          else {\r\n            module.hide();\r\n          }\r\n        },\r\n\r\n        delay: {\r\n          show: function() {\r\n            module.verbose('Delaying show event to ensure user intent');\r\n            clearTimeout(module.timer);\r\n            module.timer = setTimeout(module.show, settings.delay.show);\r\n          },\r\n          hide: function() {\r\n            module.verbose('Delaying hide event to ensure user intent');\r\n            clearTimeout(module.timer);\r\n            module.timer = setTimeout(module.hide, settings.delay.hide);\r\n          }\r\n        },\r\n\r\n        escape: {\r\n          value: function(value) {\r\n            var\r\n              multipleValues = $.isArray(value),\r\n              stringValue    = (typeof value === 'string'),\r\n              isUnparsable   = (!stringValue && !multipleValues),\r\n              hasQuotes      = (stringValue && value.search(regExp.quote) !== -1),\r\n              values         = []\r\n            ;\r\n            if(isUnparsable || !hasQuotes) {\r\n              return value;\r\n            }\r\n            module.debug('Encoding quote values for use in select', value);\r\n            if(multipleValues) {\r\n              $.each(value, function(index, value){\r\n                values.push(value.replace(regExp.quote, '&quot;'));\r\n              });\r\n              return values;\r\n            }\r\n            return value.replace(regExp.quote, '&quot;');\r\n          },\r\n          string: function(text) {\r\n            text =  String(text);\r\n            return text.replace(regExp.escape, '\\\\$&');\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : $allModules\r\n  ;\r\n};\r\n\r\n$.fn.dropdown.settings = {\r\n\r\n  silent                 : false,\r\n  debug                  : false,\r\n  verbose                : false,\r\n  performance            : true,\r\n\r\n  on                     : 'click',    // what event should show menu action on item selection\r\n  action                 : 'activate', // action on item selection (nothing, activate, select, combo, hide, function(){})\r\n\r\n\r\n  apiSettings            : false,\r\n  selectOnKeydown        : true,       // Whether selection should occur automatically when keyboard shortcuts used\r\n  minCharacters          : 0,          // Minimum characters required to trigger API call\r\n\r\n  filterRemoteData       : false,      // Whether API results should be filtered after being returned for query term\r\n  saveRemoteData         : true,       // Whether remote name/value pairs should be stored in sessionStorage to allow remote data to be restored on page refresh\r\n\r\n  throttle               : 200,        // How long to wait after last user input to search remotely\r\n\r\n  context                : window,     // Context to use when determining if on screen\r\n  direction              : 'auto',     // Whether dropdown should always open in one direction\r\n  keepOnScreen           : true,       // Whether dropdown should check whether it is on screen before showing\r\n\r\n  match                  : 'both',     // what to match against with search selection (both, text, or label)\r\n  fullTextSearch         : false,      // search anywhere in value (set to 'exact' to require exact matches)\r\n\r\n  placeholder            : 'auto',     // whether to convert blank <select> values to placeholder text\r\n  preserveHTML           : true,       // preserve html when selecting value\r\n  sortSelect             : false,      // sort selection on init\r\n\r\n  forceSelection         : true,       // force a choice on blur with search selection\r\n\r\n  allowAdditions         : false,      // whether multiple select should allow user added values\r\n  hideAdditions          : true,      // whether or not to hide special message prompting a user they can enter a value\r\n\r\n  maxSelections          : false,      // When set to a number limits the number of selections to this count\r\n  useLabels              : true,       // whether multiple select should filter currently active selections from choices\r\n  delimiter              : ',',        // when multiselect uses normal <input> the values will be delimited with this character\r\n\r\n  showOnFocus            : true,       // show menu on focus\r\n  allowReselection       : false,      // whether current value should trigger callbacks when reselected\r\n  allowTab               : true,       // add tabindex to element\r\n  allowCategorySelection : false,      // allow elements with sub-menus to be selected\r\n\r\n  fireOnInit             : false,      // Whether callbacks should fire when initializing dropdown values\r\n\r\n  transition             : 'auto',     // auto transition will slide down or up based on direction\r\n  duration               : 200,        // duration of transition\r\n\r\n  glyphWidth             : 1.037,      // widest glyph width in em (W is 1.037 em) used to calculate multiselect input width\r\n\r\n  // label settings on multi-select\r\n  label: {\r\n    transition : 'scale',\r\n    duration   : 200,\r\n    variation  : false\r\n  },\r\n\r\n  // delay before event\r\n  delay : {\r\n    hide   : 300,\r\n    show   : 200,\r\n    search : 20,\r\n    touch  : 50\r\n  },\r\n\r\n  /* Callbacks */\r\n  onChange      : function(value, text, $selected){},\r\n  onAdd         : function(value, text, $selected){},\r\n  onRemove      : function(value, text, $selected){},\r\n\r\n  onLabelSelect : function($selectedLabels){},\r\n  onLabelCreate : function(value, text) { return $(this); },\r\n  onLabelRemove : function(value) { return true; },\r\n  onNoResults   : function(searchTerm) { return true; },\r\n  onShow        : function(){},\r\n  onHide        : function(){},\r\n\r\n  /* Component */\r\n  name           : 'Dropdown',\r\n  namespace      : 'dropdown',\r\n\r\n  message: {\r\n    addResult     : 'Add <b>{term}</b>',\r\n    count         : '{count} selected',\r\n    maxSelections : 'Max {maxCount} selections',\r\n    noResults     : 'Sin resultados.',\r\n    serverError   : 'There was an error contacting the server'\r\n  },\r\n\r\n  error : {\r\n    action          : 'You called a dropdown action that was not defined',\r\n    alreadySetup    : 'Once a select has been initialized behaviors must be called on the created ui dropdown',\r\n    labels          : 'Allowing user additions currently requires the use of labels.',\r\n    missingMultiple : '<select> requires multiple property to be set to correctly preserve multiple values',\r\n    method          : 'The method you called is not defined.',\r\n    noAPI           : 'The API module is required to load resources remotely',\r\n    noStorage       : 'Saving remote data requires session storage',\r\n    noTransition    : 'This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>'\r\n  },\r\n\r\n  regExp : {\r\n    escape   : /[-[\\]{}()*+?.,\\\\^$|#\\s]/g,\r\n    quote    : /\"/g\r\n  },\r\n\r\n  metadata : {\r\n    defaultText     : 'defaultText',\r\n    defaultValue    : 'defaultValue',\r\n    placeholderText : 'placeholder',\r\n    text            : 'text',\r\n    value           : 'value'\r\n  },\r\n\r\n  // property names for remote query\r\n  fields: {\r\n    remoteValues : 'results',  // grouping for api results\r\n    values       : 'values',   // grouping for all dropdown values\r\n    disabled     : 'disabled', // whether value should be disabled\r\n    name         : 'name',     // displayed dropdown text\r\n    value        : 'value',    // actual dropdown value\r\n    text         : 'text'      // displayed text when selected\r\n  },\r\n\r\n  keys : {\r\n    backspace  : 8,\r\n    delimiter  : 188, // comma\r\n    deleteKey  : 46,\r\n    enter      : 13,\r\n    escape     : 27,\r\n    pageUp     : 33,\r\n    pageDown   : 34,\r\n    leftArrow  : 37,\r\n    upArrow    : 38,\r\n    rightArrow : 39,\r\n    downArrow  : 40\r\n  },\r\n\r\n  selector : {\r\n    addition     : '.addition',\r\n    dropdown     : '.ui.dropdown',\r\n    hidden       : '.hidden',\r\n    icon         : '> .dropdown.icon',\r\n    input        : '> input[type=\"hidden\"], > select',\r\n    item         : '.item',\r\n    label        : '> .label',\r\n    remove       : '> .label > .delete.icon',\r\n    siblingLabel : '.label',\r\n    menu         : '.menu',\r\n    message      : '.message',\r\n    menuIcon     : '.dropdown.icon',\r\n    search       : 'input.search, .menu > .search > input, .menu input.search',\r\n    sizer        : '> input.sizer',\r\n    text         : '> .text:not(.icon)',\r\n    unselectable : '.disabled, .filtered'\r\n  },\r\n\r\n  className : {\r\n    active      : 'active',\r\n    addition    : 'addition',\r\n    animating   : 'animating',\r\n    disabled    : 'disabled',\r\n    empty       : 'empty',\r\n    dropdown    : 'ui dropdown',\r\n    filtered    : 'filtered',\r\n    hidden      : 'hidden transition',\r\n    item        : 'item',\r\n    label       : 'ui label',\r\n    loading     : 'loading',\r\n    menu        : 'menu',\r\n    message     : 'message',\r\n    multiple    : 'multiple',\r\n    placeholder : 'default',\r\n    sizer       : 'sizer',\r\n    search      : 'search',\r\n    selected    : 'selected',\r\n    selection   : 'selection',\r\n    upward      : 'upward',\r\n    visible     : 'visible'\r\n  }\r\n\r\n};\r\n\r\n/* Templates */\r\n$.fn.dropdown.settings.templates = {\r\n\r\n  // generates dropdown from select values\r\n  dropdown: function(select) {\r\n    var\r\n      placeholder = select.placeholder || false,\r\n      values      = select.values || {},\r\n      html        = ''\r\n    ;\r\n    html +=  '<i class=\"dropdown icon\"></i>';\r\n    if(select.placeholder) {\r\n      html += '<div class=\"default text\">' + placeholder + '</div>';\r\n    }\r\n    else {\r\n      html += '<div class=\"text\"></div>';\r\n    }\r\n    html += '<div class=\"menu\">';\r\n    $.each(select.values, function(index, option) {\r\n      html += (option.disabled)\r\n        ? '<div class=\"disabled item\" data-value=\"' + option.value + '\">' + option.name + '</div>'\r\n        : '<div class=\"item\" data-value=\"' + option.value + '\">' + option.name + '</div>'\r\n      ;\r\n    });\r\n    html += '</div>';\r\n    return html;\r\n  },\r\n\r\n  // generates just menu from select\r\n  menu: function(response, fields) {\r\n    var\r\n      values = response[fields.values] || {},\r\n      html   = ''\r\n    ;\r\n    $.each(values, function(index, option) {\r\n      var\r\n        maybeText = (option[fields.text])\r\n          ? 'data-text=\"' + option[fields.text] + '\"'\r\n          : '',\r\n        maybeDisabled = (option[fields.disabled])\r\n          ? 'disabled '\r\n          : ''\r\n      ;\r\n      html += '<div class=\"'+ maybeDisabled +'item\" data-value=\"' + option[fields.value] + '\"' + maybeText + '>'\r\n      html +=   option[fields.name];\r\n      html += '</div>';\r\n    });\r\n    return html;\r\n  },\r\n\r\n  // generates label for multiselect\r\n  label: function(value, text) {\r\n    return text + '<i class=\"delete icon\"></i>';\r\n  },\r\n\r\n\r\n  // generates messages like \"No results\"\r\n  message: function(message) {\r\n    return message;\r\n  },\r\n\r\n  // generates user addition to selection menu\r\n  addition: function(choice) {\r\n    return choice;\r\n  }\r\n\r\n};\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Embed\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.embed = function(parameters) {\r\n\r\n  var\r\n    $allModules     = $(this),\r\n\r\n    moduleSelector  = $allModules.selector || '',\r\n\r\n    time            = new Date().getTime(),\r\n    performance     = [],\r\n\r\n    query           = arguments[0],\r\n    methodInvoked   = (typeof query == 'string'),\r\n    queryArguments  = [].slice.call(arguments, 1),\r\n\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings        = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.embed.settings, parameters)\r\n          : $.extend({}, $.fn.embed.settings),\r\n\r\n        selector        = settings.selector,\r\n        className       = settings.className,\r\n        sources         = settings.sources,\r\n        error           = settings.error,\r\n        metadata        = settings.metadata,\r\n        namespace       = settings.namespace,\r\n        templates       = settings.templates,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n\r\n        $window         = $(window),\r\n        $module         = $(this),\r\n        $placeholder    = $module.find(selector.placeholder),\r\n        $icon           = $module.find(selector.icon),\r\n        $embed          = $module.find(selector.embed),\r\n\r\n        element         = this,\r\n        instance        = $module.data(moduleNamespace),\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.debug('Initializing embed');\r\n          module.determine.autoplay();\r\n          module.create();\r\n          module.bind.events();\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous instance of embed');\r\n          module.reset();\r\n          $module\r\n            .removeData(moduleNamespace)\r\n            .off(eventNamespace)\r\n          ;\r\n        },\r\n\r\n        refresh: function() {\r\n          module.verbose('Refreshing selector cache');\r\n          $placeholder = $module.find(selector.placeholder);\r\n          $icon        = $module.find(selector.icon);\r\n          $embed       = $module.find(selector.embed);\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            if( module.has.placeholder() ) {\r\n              module.debug('Adding placeholder events');\r\n              $module\r\n                .on('click' + eventNamespace, selector.placeholder, module.createAndShow)\r\n                .on('click' + eventNamespace, selector.icon, module.createAndShow)\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        create: function() {\r\n          var\r\n            placeholder = module.get.placeholder()\r\n          ;\r\n          if(placeholder) {\r\n            module.createPlaceholder();\r\n          }\r\n          else {\r\n            module.createAndShow();\r\n          }\r\n        },\r\n\r\n        createPlaceholder: function(placeholder) {\r\n          var\r\n            icon  = module.get.icon(),\r\n            url   = module.get.url(),\r\n            embed = module.generate.embed(url)\r\n          ;\r\n          placeholder = placeholder || module.get.placeholder();\r\n          $module.html( templates.placeholder(placeholder, icon) );\r\n          module.debug('Creating placeholder for embed', placeholder, icon);\r\n        },\r\n\r\n        createEmbed: function(url) {\r\n          module.refresh();\r\n          url = url || module.get.url();\r\n          $embed = $('<div/>')\r\n            .addClass(className.embed)\r\n            .html( module.generate.embed(url) )\r\n            .appendTo($module)\r\n          ;\r\n          settings.onCreate.call(element, url);\r\n          module.debug('Creating embed object', $embed);\r\n        },\r\n\r\n        changeEmbed: function(url) {\r\n          $embed\r\n            .html( module.generate.embed(url) )\r\n          ;\r\n        },\r\n\r\n        createAndShow: function() {\r\n          module.createEmbed();\r\n          module.show();\r\n        },\r\n\r\n        // sets new embed\r\n        change: function(source, id, url) {\r\n          module.debug('Changing video to ', source, id, url);\r\n          $module\r\n            .data(metadata.source, source)\r\n            .data(metadata.id, id)\r\n          ;\r\n          if(url) {\r\n            $module.data(metadata.url, url);\r\n          }\r\n          else {\r\n            $module.removeData(metadata.url);\r\n          }\r\n          if(module.has.embed()) {\r\n            module.changeEmbed();\r\n          }\r\n          else {\r\n            module.create();\r\n          }\r\n        },\r\n\r\n        // clears embed\r\n        reset: function() {\r\n          module.debug('Clearing embed and showing placeholder');\r\n          module.remove.active();\r\n          module.remove.embed();\r\n          module.showPlaceholder();\r\n          settings.onReset.call(element);\r\n        },\r\n\r\n        // shows current embed\r\n        show: function() {\r\n          module.debug('Showing embed');\r\n          module.set.active();\r\n          settings.onDisplay.call(element);\r\n        },\r\n\r\n        hide: function() {\r\n          module.debug('Hiding embed');\r\n          module.showPlaceholder();\r\n        },\r\n\r\n        showPlaceholder: function() {\r\n          module.debug('Showing placeholder image');\r\n          module.remove.active();\r\n          settings.onPlaceholderDisplay.call(element);\r\n        },\r\n\r\n        get: {\r\n          id: function() {\r\n            return settings.id || $module.data(metadata.id);\r\n          },\r\n          placeholder: function() {\r\n            return settings.placeholder || $module.data(metadata.placeholder);\r\n          },\r\n          icon: function() {\r\n            return (settings.icon)\r\n              ? settings.icon\r\n              : ($module.data(metadata.icon) !== undefined)\r\n                ? $module.data(metadata.icon)\r\n                : module.determine.icon()\r\n            ;\r\n          },\r\n          source: function(url) {\r\n            return (settings.source)\r\n              ? settings.source\r\n              : ($module.data(metadata.source) !== undefined)\r\n                ? $module.data(metadata.source)\r\n                : module.determine.source()\r\n            ;\r\n          },\r\n          type: function() {\r\n            var source = module.get.source();\r\n            return (sources[source] !== undefined)\r\n              ? sources[source].type\r\n              : false\r\n            ;\r\n          },\r\n          url: function() {\r\n            return (settings.url)\r\n              ? settings.url\r\n              : ($module.data(metadata.url) !== undefined)\r\n                ? $module.data(metadata.url)\r\n                : module.determine.url()\r\n            ;\r\n          }\r\n        },\r\n\r\n        determine: {\r\n          autoplay: function() {\r\n            if(module.should.autoplay()) {\r\n              settings.autoplay = true;\r\n            }\r\n          },\r\n          source: function(url) {\r\n            var\r\n              matchedSource = false\r\n            ;\r\n            url = url || module.get.url();\r\n            if(url) {\r\n              $.each(sources, function(name, source) {\r\n                if(url.search(source.domain) !== -1) {\r\n                  matchedSource = name;\r\n                  return false;\r\n                }\r\n              });\r\n            }\r\n            return matchedSource;\r\n          },\r\n          icon: function() {\r\n            var\r\n              source = module.get.source()\r\n            ;\r\n            return (sources[source] !== undefined)\r\n              ? sources[source].icon\r\n              : false\r\n            ;\r\n          },\r\n          url: function() {\r\n            var\r\n              id     = settings.id     || $module.data(metadata.id),\r\n              source = settings.source || $module.data(metadata.source),\r\n              url\r\n            ;\r\n            url = (sources[source] !== undefined)\r\n              ? sources[source].url.replace('{id}', id)\r\n              : false\r\n            ;\r\n            if(url) {\r\n              $module.data(metadata.url, url);\r\n            }\r\n            return url;\r\n          }\r\n        },\r\n\r\n\r\n        set: {\r\n          active: function() {\r\n            $module.addClass(className.active);\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          active: function() {\r\n            $module.removeClass(className.active);\r\n          },\r\n          embed: function() {\r\n            $embed.empty();\r\n          }\r\n        },\r\n\r\n        encode: {\r\n          parameters: function(parameters) {\r\n            var\r\n              urlString = [],\r\n              index\r\n            ;\r\n            for (index in parameters) {\r\n              urlString.push( encodeURIComponent(index) + '=' + encodeURIComponent( parameters[index] ) );\r\n            }\r\n            return urlString.join('&amp;');\r\n          }\r\n        },\r\n\r\n        generate: {\r\n          embed: function(url) {\r\n            module.debug('Generating embed html');\r\n            var\r\n              source = module.get.source(),\r\n              html,\r\n              parameters\r\n            ;\r\n            url = module.get.url(url);\r\n            if(url) {\r\n              parameters = module.generate.parameters(source);\r\n              html       = templates.iframe(url, parameters);\r\n            }\r\n            else {\r\n              module.error(error.noURL, $module);\r\n            }\r\n            return html;\r\n          },\r\n          parameters: function(source, extraParameters) {\r\n            var\r\n              parameters = (sources[source] && sources[source].parameters !== undefined)\r\n                ? sources[source].parameters(settings)\r\n                : {}\r\n            ;\r\n            extraParameters = extraParameters || settings.parameters;\r\n            if(extraParameters) {\r\n              parameters = $.extend({}, parameters, extraParameters);\r\n            }\r\n            parameters = settings.onEmbed(parameters);\r\n            return module.encode.parameters(parameters);\r\n          }\r\n        },\r\n\r\n        has: {\r\n          embed: function() {\r\n            return ($embed.length > 0);\r\n          },\r\n          placeholder: function() {\r\n            return settings.placeholder || $module.data(metadata.placeholder);\r\n          }\r\n        },\r\n\r\n        should: {\r\n          autoplay: function() {\r\n            return (settings.autoplay === 'auto')\r\n              ? (settings.placeholder || $module.data(metadata.placeholder) !== undefined)\r\n              : settings.autoplay\r\n            ;\r\n          }\r\n        },\r\n\r\n        is: {\r\n          video: function() {\r\n            return module.get.type() == 'video';\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if($allModules.length > 1) {\r\n              title += ' ' + '(' + $allModules.length + ')';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.embed.settings = {\r\n\r\n  name        : 'Embed',\r\n  namespace   : 'embed',\r\n\r\n  silent      : false,\r\n  debug       : false,\r\n  verbose     : false,\r\n  performance : true,\r\n\r\n  icon     : false,\r\n  source   : false,\r\n  url      : false,\r\n  id       : false,\r\n\r\n  // standard video settings\r\n  autoplay  : 'auto',\r\n  color     : '#444444',\r\n  hd        : true,\r\n  brandedUI : false,\r\n\r\n  // additional parameters to include with the embed\r\n  parameters: false,\r\n\r\n  onDisplay            : function() {},\r\n  onPlaceholderDisplay : function() {},\r\n  onReset              : function() {},\r\n  onCreate             : function(url) {},\r\n  onEmbed              : function(parameters) {\r\n    return parameters;\r\n  },\r\n\r\n  metadata    : {\r\n    id          : 'id',\r\n    icon        : 'icon',\r\n    placeholder : 'placeholder',\r\n    source      : 'source',\r\n    url         : 'url'\r\n  },\r\n\r\n  error : {\r\n    noURL  : 'No URL specified',\r\n    method : 'The method you called is not defined'\r\n  },\r\n\r\n  className : {\r\n    active : 'active',\r\n    embed  : 'embed'\r\n  },\r\n\r\n  selector : {\r\n    embed       : '.embed',\r\n    placeholder : '.placeholder',\r\n    icon        : '.icon'\r\n  },\r\n\r\n  sources: {\r\n    youtube: {\r\n      name   : 'youtube',\r\n      type   : 'video',\r\n      icon   : 'video play',\r\n      domain : 'youtube.com',\r\n      url    : '//www.youtube.com/embed/{id}',\r\n      parameters: function(settings) {\r\n        return {\r\n          autohide       : !settings.brandedUI,\r\n          autoplay       : settings.autoplay,\r\n          color          : settings.color || undefined,\r\n          hq             : settings.hd,\r\n          jsapi          : settings.api,\r\n          modestbranding : !settings.brandedUI\r\n        };\r\n      }\r\n    },\r\n    vimeo: {\r\n      name   : 'vimeo',\r\n      type   : 'video',\r\n      icon   : 'video play',\r\n      domain : 'vimeo.com',\r\n      url    : '//player.vimeo.com/video/{id}',\r\n      parameters: function(settings) {\r\n        return {\r\n          api      : settings.api,\r\n          autoplay : settings.autoplay,\r\n          byline   : settings.brandedUI,\r\n          color    : settings.color || undefined,\r\n          portrait : settings.brandedUI,\r\n          title    : settings.brandedUI\r\n        };\r\n      }\r\n    }\r\n  },\r\n\r\n  templates: {\r\n    iframe : function(url, parameters) {\r\n      var src = url;\r\n      if (parameters) {\r\n          src += '?' + parameters;\r\n      }\r\n      return ''\r\n        + '<iframe src=\"' + src + '\"'\r\n        + ' width=\"100%\" height=\"100%\"'\r\n        + ' frameborder=\"0\" scrolling=\"no\" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'\r\n      ;\r\n    },\r\n    placeholder : function(image, icon) {\r\n      var\r\n        html = ''\r\n      ;\r\n      if(icon) {\r\n        html += '<i class=\"' + icon + ' icon\"></i>';\r\n      }\r\n      if(image) {\r\n        html += '<img class=\"placeholder\" src=\"' + image + '\">';\r\n      }\r\n      return html;\r\n    }\r\n  },\r\n\r\n  // NOT YET IMPLEMENTED\r\n  api     : false,\r\n  onPause : function() {},\r\n  onPlay  : function() {},\r\n  onStop  : function() {}\r\n\r\n};\r\n\r\n\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Modal\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.modal = function(parameters) {\r\n  var\r\n    $allModules    = $(this),\r\n    $window        = $(window),\r\n    $document      = $(document),\r\n    $body          = $('body'),\r\n\r\n    moduleSelector = $allModules.selector || '',\r\n\r\n    time           = new Date().getTime(),\r\n    performance    = [],\r\n\r\n    query          = arguments[0],\r\n    methodInvoked  = (typeof query == 'string'),\r\n    queryArguments = [].slice.call(arguments, 1),\r\n\r\n    requestAnimationFrame = window.requestAnimationFrame\r\n      || window.mozRequestAnimationFrame\r\n      || window.webkitRequestAnimationFrame\r\n      || window.msRequestAnimationFrame\r\n      || function(callback) { setTimeout(callback, 0); },\r\n\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings    = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.modal.settings, parameters)\r\n          : $.extend({}, $.fn.modal.settings),\r\n\r\n        selector        = settings.selector,\r\n        className       = settings.className,\r\n        namespace       = settings.namespace,\r\n        error           = settings.error,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n\r\n        $module         = $(this),\r\n        $context        = $(settings.context),\r\n        $close          = $module.find(selector.close),\r\n\r\n        $allModals,\r\n        $otherModals,\r\n        $focusedElement,\r\n        $dimmable,\r\n        $dimmer,\r\n\r\n        element         = this,\r\n        instance        = $module.data(moduleNamespace),\r\n\r\n        ignoreRepeatedEvents = false,\r\n\r\n        elementEventNamespace,\r\n        id,\r\n        observer,\r\n        module\r\n      ;\r\n      module  = {\r\n\r\n        initialize: function() {\r\n          module.verbose('Initializing dimmer', $context);\r\n\r\n          module.create.id();\r\n          module.create.dimmer();\r\n          module.refreshModals();\r\n\r\n          module.bind.events();\r\n          if(settings.observeChanges) {\r\n            module.observeChanges();\r\n          }\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of modal');\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, instance)\r\n          ;\r\n        },\r\n\r\n        create: {\r\n          dimmer: function() {\r\n            var\r\n              defaultSettings = {\r\n                debug      : settings.debug,\r\n                dimmerName : 'modals',\r\n                duration   : {\r\n                  show     : settings.duration,\r\n                  hide     : settings.duration\r\n                }\r\n              },\r\n              dimmerSettings = $.extend(true, defaultSettings, settings.dimmerSettings)\r\n            ;\r\n            if(settings.inverted) {\r\n              dimmerSettings.variation = (dimmerSettings.variation !== undefined)\r\n                ? dimmerSettings.variation + ' inverted'\r\n                : 'inverted'\r\n              ;\r\n            }\r\n            if($.fn.dimmer === undefined) {\r\n              module.error(error.dimmer);\r\n              return;\r\n            }\r\n            module.debug('Creating dimmer with settings', dimmerSettings);\r\n            $dimmable = $context.dimmer(dimmerSettings);\r\n            if(settings.detachable) {\r\n              module.verbose('Modal is detachable, moving content into dimmer');\r\n              $dimmable.dimmer('add content', $module);\r\n            }\r\n            else {\r\n              module.set.undetached();\r\n            }\r\n            if(settings.blurring) {\r\n              $dimmable.addClass(className.blurring);\r\n            }\r\n            $dimmer = $dimmable.dimmer('get dimmer');\r\n          },\r\n          id: function() {\r\n            id = (Math.random().toString(16) + '000000000').substr(2,8);\r\n            elementEventNamespace = '.' + id;\r\n            module.verbose('Creating unique id for element', id);\r\n          }\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous modal');\r\n          $module\r\n            .removeData(moduleNamespace)\r\n            .off(eventNamespace)\r\n          ;\r\n          $window.off(elementEventNamespace);\r\n          $dimmer.off(elementEventNamespace);\r\n          $close.off(eventNamespace);\r\n          $context.dimmer('destroy');\r\n        },\r\n\r\n        observeChanges: function() {\r\n          if('MutationObserver' in window) {\r\n            observer = new MutationObserver(function(mutations) {\r\n              module.debug('DOM tree modified, refreshing');\r\n              module.refresh();\r\n            });\r\n            observer.observe(element, {\r\n              childList : true,\r\n              subtree   : true\r\n            });\r\n            module.debug('Setting up mutation observer', observer);\r\n          }\r\n        },\r\n\r\n        refresh: function() {\r\n          module.remove.scrolling();\r\n          module.cacheSizes();\r\n          module.set.screenHeight();\r\n          module.set.type();\r\n          module.set.position();\r\n        },\r\n\r\n        refreshModals: function() {\r\n          $otherModals = $module.siblings(selector.modal);\r\n          $allModals   = $otherModals.add($module);\r\n        },\r\n\r\n        attachEvents: function(selector, event) {\r\n          var\r\n            $toggle = $(selector)\r\n          ;\r\n          event = $.isFunction(module[event])\r\n            ? module[event]\r\n            : module.toggle\r\n          ;\r\n          if($toggle.length > 0) {\r\n            module.debug('Attaching modal events to element', selector, event);\r\n            $toggle\r\n              .off(eventNamespace)\r\n              .on('click' + eventNamespace, event)\r\n            ;\r\n          }\r\n          else {\r\n            module.error(error.notFound, selector);\r\n          }\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            module.verbose('Attaching events');\r\n            $module\r\n              .on('click' + eventNamespace, selector.close, module.event.close)\r\n              .on('click' + eventNamespace, selector.approve, module.event.approve)\r\n              .on('click' + eventNamespace, selector.deny, module.event.deny)\r\n            ;\r\n            $window\r\n              .on('resize' + elementEventNamespace, module.event.resize)\r\n            ;\r\n          }\r\n        },\r\n\r\n        get: {\r\n          id: function() {\r\n            return (Math.random().toString(16) + '000000000').substr(2,8);\r\n          }\r\n        },\r\n\r\n        event: {\r\n          approve: function() {\r\n            if(ignoreRepeatedEvents || settings.onApprove.call(element, $(this)) === false) {\r\n              module.verbose('Approve callback returned false cancelling hide');\r\n              return;\r\n            }\r\n            ignoreRepeatedEvents = true;\r\n            module.hide(function() {\r\n              ignoreRepeatedEvents = false;\r\n            });\r\n          },\r\n          deny: function() {\r\n            if(ignoreRepeatedEvents || settings.onDeny.call(element, $(this)) === false) {\r\n              module.verbose('Deny callback returned false cancelling hide');\r\n              return;\r\n            }\r\n            ignoreRepeatedEvents = true;\r\n            module.hide(function() {\r\n              ignoreRepeatedEvents = false;\r\n            });\r\n          },\r\n          close: function() {\r\n            module.hide();\r\n          },\r\n          click: function(event) {\r\n            var\r\n              $target   = $(event.target),\r\n              isInModal = ($target.closest(selector.modal).length > 0),\r\n              isInDOM   = $.contains(document.documentElement, event.target)\r\n            ;\r\n            if(!isInModal && isInDOM) {\r\n              module.debug('Dimmer clicked, hiding all modals');\r\n              if( module.is.active() ) {\r\n                module.remove.clickaway();\r\n                if(settings.allowMultiple) {\r\n                  module.hide();\r\n                }\r\n                else {\r\n                  module.hideAll();\r\n                }\r\n              }\r\n            }\r\n          },\r\n          debounce: function(method, delay) {\r\n            clearTimeout(module.timer);\r\n            module.timer = setTimeout(method, delay);\r\n          },\r\n          keyboard: function(event) {\r\n            var\r\n              keyCode   = event.which,\r\n              escapeKey = 27\r\n            ;\r\n            if(keyCode == escapeKey) {\r\n              if(settings.closable) {\r\n                module.debug('Escape key pressed hiding modal');\r\n                module.hide();\r\n              }\r\n              else {\r\n                module.debug('Escape key pressed, but closable is set to false');\r\n              }\r\n              event.preventDefault();\r\n            }\r\n          },\r\n          resize: function() {\r\n            if( $dimmable.dimmer('is active') ) {\r\n              requestAnimationFrame(module.refresh);\r\n            }\r\n          }\r\n        },\r\n\r\n        toggle: function() {\r\n          if( module.is.active() || module.is.animating() ) {\r\n            module.hide();\r\n          }\r\n          else {\r\n            module.show();\r\n          }\r\n        },\r\n\r\n        show: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          module.refreshModals();\r\n          module.showModal(callback);\r\n        },\r\n\r\n        hide: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          module.refreshModals();\r\n          module.hideModal(callback);\r\n        },\r\n\r\n        showModal: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if( module.is.animating() || !module.is.active() ) {\r\n\r\n            module.showDimmer();\r\n            module.cacheSizes();\r\n            module.set.position();\r\n            module.set.screenHeight();\r\n            module.set.type();\r\n            module.set.clickaway();\r\n\r\n            if( !settings.allowMultiple && module.others.active() ) {\r\n              module.hideOthers(module.showModal);\r\n            }\r\n            else {\r\n              settings.onShow.call(element);\r\n              if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {\r\n                module.debug('Showing modal with css animations');\r\n                $module\r\n                  .transition({\r\n                    debug       : settings.debug,\r\n                    animation   : settings.transition + ' in',\r\n                    queue       : settings.queue,\r\n                    duration    : settings.duration,\r\n                    useFailSafe : true,\r\n                    onComplete : function() {\r\n                      settings.onVisible.apply(element);\r\n                      if(settings.keyboardShortcuts) {\r\n                        module.add.keyboardShortcuts();\r\n                      }\r\n                      module.save.focus();\r\n                      module.set.active();\r\n                      if(settings.autofocus) {\r\n                        module.set.autofocus();\r\n                      }\r\n                      callback();\r\n                    }\r\n                  })\r\n                ;\r\n              }\r\n              else {\r\n                module.error(error.noTransition);\r\n              }\r\n            }\r\n          }\r\n          else {\r\n            module.debug('Modal is already visible');\r\n          }\r\n        },\r\n\r\n        hideModal: function(callback, keepDimmed) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          module.debug('Hiding modal');\r\n          if(settings.onHide.call(element, $(this)) === false) {\r\n            module.verbose('Hide callback returned false cancelling hide');\r\n            return;\r\n          }\r\n\r\n          if( module.is.animating() || module.is.active() ) {\r\n            if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {\r\n              module.remove.active();\r\n              $module\r\n                .transition({\r\n                  debug       : settings.debug,\r\n                  animation   : settings.transition + ' out',\r\n                  queue       : settings.queue,\r\n                  duration    : settings.duration,\r\n                  useFailSafe : true,\r\n                  onStart     : function() {\r\n                    if(!module.others.active() && !keepDimmed) {\r\n                      module.hideDimmer();\r\n                    }\r\n                    if(settings.keyboardShortcuts) {\r\n                      module.remove.keyboardShortcuts();\r\n                    }\r\n                  },\r\n                  onComplete : function() {\r\n                    settings.onHidden.call(element);\r\n                    module.restore.focus();\r\n                    callback();\r\n                  }\r\n                })\r\n              ;\r\n            }\r\n            else {\r\n              module.error(error.noTransition);\r\n            }\r\n          }\r\n        },\r\n\r\n        showDimmer: function() {\r\n          if($dimmable.dimmer('is animating') || !$dimmable.dimmer('is active') ) {\r\n            module.debug('Showing dimmer');\r\n            $dimmable.dimmer('show');\r\n          }\r\n          else {\r\n            module.debug('Dimmer already visible');\r\n          }\r\n        },\r\n\r\n        hideDimmer: function() {\r\n          if( $dimmable.dimmer('is animating') || ($dimmable.dimmer('is active')) ) {\r\n            $dimmable.dimmer('hide', function() {\r\n              module.remove.clickaway();\r\n              module.remove.screenHeight();\r\n            });\r\n          }\r\n          else {\r\n            module.debug('Dimmer is not visible cannot hide');\r\n            return;\r\n          }\r\n        },\r\n\r\n        hideAll: function(callback) {\r\n          var\r\n            $visibleModals = $allModals.filter('.' + className.active + ', .' + className.animating)\r\n          ;\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if( $visibleModals.length > 0 ) {\r\n            module.debug('Hiding all visible modals');\r\n            module.hideDimmer();\r\n            $visibleModals\r\n              .modal('hide modal', callback)\r\n            ;\r\n          }\r\n        },\r\n\r\n        hideOthers: function(callback) {\r\n          var\r\n            $visibleModals = $otherModals.filter('.' + className.active + ', .' + className.animating)\r\n          ;\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if( $visibleModals.length > 0 ) {\r\n            module.debug('Hiding other modals', $otherModals);\r\n            $visibleModals\r\n              .modal('hide modal', callback, true)\r\n            ;\r\n          }\r\n        },\r\n\r\n        others: {\r\n          active: function() {\r\n            return ($otherModals.filter('.' + className.active).length > 0);\r\n          },\r\n          animating: function() {\r\n            return ($otherModals.filter('.' + className.animating).length > 0);\r\n          }\r\n        },\r\n\r\n\r\n        add: {\r\n          keyboardShortcuts: function() {\r\n            module.verbose('Adding keyboard shortcuts');\r\n            $document\r\n              .on('keyup' + eventNamespace, module.event.keyboard)\r\n            ;\r\n          }\r\n        },\r\n\r\n        save: {\r\n          focus: function() {\r\n            $focusedElement = $(document.activeElement).blur();\r\n          }\r\n        },\r\n\r\n        restore: {\r\n          focus: function() {\r\n            if($focusedElement && $focusedElement.length > 0) {\r\n              $focusedElement.focus();\r\n            }\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          active: function() {\r\n            $module.removeClass(className.active);\r\n          },\r\n          clickaway: function() {\r\n            if(settings.closable) {\r\n              $dimmer\r\n                .off('click' + elementEventNamespace)\r\n              ;\r\n            }\r\n          },\r\n          bodyStyle: function() {\r\n            if($body.attr('style') === '') {\r\n              module.verbose('Removing style attribute');\r\n              $body.removeAttr('style');\r\n            }\r\n          },\r\n          screenHeight: function() {\r\n            module.debug('Removing page height');\r\n            $body\r\n              .css('height', '')\r\n            ;\r\n          },\r\n          keyboardShortcuts: function() {\r\n            module.verbose('Removing keyboard shortcuts');\r\n            $document\r\n              .off('keyup' + eventNamespace)\r\n            ;\r\n          },\r\n          scrolling: function() {\r\n            $dimmable.removeClass(className.scrolling);\r\n            $module.removeClass(className.scrolling);\r\n          }\r\n        },\r\n\r\n        cacheSizes: function() {\r\n          var\r\n            modalHeight = $module.outerHeight()\r\n          ;\r\n          if(module.cache === undefined || modalHeight !== 0) {\r\n            module.cache = {\r\n              pageHeight    : $(document).outerHeight(),\r\n              height        : modalHeight + settings.offset,\r\n              contextHeight : (settings.context == 'body')\r\n                ? $(window).height()\r\n                : $dimmable.height()\r\n            };\r\n          }\r\n          module.debug('Caching modal and container sizes', module.cache);\r\n        },\r\n\r\n        can: {\r\n          fit: function() {\r\n            return ( ( module.cache.height + (settings.padding * 2) ) < module.cache.contextHeight);\r\n          }\r\n        },\r\n\r\n        is: {\r\n          active: function() {\r\n            return $module.hasClass(className.active);\r\n          },\r\n          animating: function() {\r\n            return $module.transition('is supported')\r\n              ? $module.transition('is animating')\r\n              : $module.is(':visible')\r\n            ;\r\n          },\r\n          scrolling: function() {\r\n            return $dimmable.hasClass(className.scrolling);\r\n          },\r\n          modernBrowser: function() {\r\n            // appName for IE11 reports 'Netscape' can no longer use\r\n            return !(window.ActiveXObject || \"ActiveXObject\" in window);\r\n          }\r\n        },\r\n\r\n        set: {\r\n          autofocus: function() {\r\n            var\r\n              $inputs    = $module.find('[tabindex], :input').filter(':visible'),\r\n              $autofocus = $inputs.filter('[autofocus]'),\r\n              $input     = ($autofocus.length > 0)\r\n                ? $autofocus.first()\r\n                : $inputs.first()\r\n            ;\r\n            if($input.length > 0) {\r\n              $input.focus();\r\n            }\r\n          },\r\n          clickaway: function() {\r\n            if(settings.closable) {\r\n              $dimmer\r\n                .on('click' + elementEventNamespace, module.event.click)\r\n              ;\r\n            }\r\n          },\r\n          screenHeight: function() {\r\n            if( module.can.fit() ) {\r\n              $body.css('height', '');\r\n            }\r\n            else {\r\n              module.debug('Modal is taller than page content, resizing page height');\r\n              $body\r\n                .css('height', module.cache.height + (settings.padding * 2) )\r\n              ;\r\n            }\r\n          },\r\n          active: function() {\r\n            $module.addClass(className.active);\r\n          },\r\n          scrolling: function() {\r\n            $dimmable.addClass(className.scrolling);\r\n            $module.addClass(className.scrolling);\r\n          },\r\n          type: function() {\r\n            if(module.can.fit()) {\r\n              module.verbose('Modal fits on screen');\r\n              if(!module.others.active() && !module.others.animating()) {\r\n                module.remove.scrolling();\r\n              }\r\n            }\r\n            else {\r\n              module.verbose('Modal cannot fit on screen setting to scrolling');\r\n              module.set.scrolling();\r\n            }\r\n          },\r\n          position: function() {\r\n            module.verbose('Centering modal on page', module.cache);\r\n            if(module.can.fit()) {\r\n              $module\r\n                .css({\r\n                  top: '',\r\n                  marginTop: -(module.cache.height / 2)\r\n                })\r\n              ;\r\n            }\r\n            else {\r\n              $module\r\n                .css({\r\n                  marginTop : '',\r\n                  top       : $document.scrollTop()\r\n                })\r\n              ;\r\n            }\r\n          },\r\n          undetached: function() {\r\n            $dimmable.addClass(className.undetached);\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.modal.settings = {\r\n\r\n  name           : 'Modal',\r\n  namespace      : 'modal',\r\n\r\n  silent         : false,\r\n  debug          : false,\r\n  verbose        : false,\r\n  performance    : true,\r\n\r\n  observeChanges : false,\r\n\r\n  allowMultiple  : false,\r\n  detachable     : true,\r\n  closable       : true,\r\n  autofocus      : true,\r\n\r\n  inverted       : false,\r\n  blurring       : false,\r\n\r\n  dimmerSettings : {\r\n    closable : false,\r\n    useCSS   : true\r\n  },\r\n\r\n  // whether to use keyboard shortcuts\r\n  keyboardShortcuts: true,\r\n\r\n  context    : 'body',\r\n\r\n  queue      : false,\r\n  duration   : 500,\r\n  offset     : 0,\r\n  transition : 'scale',\r\n\r\n  // padding with edge of page\r\n  padding    : 50,\r\n\r\n  // called before show animation\r\n  onShow     : function(){},\r\n\r\n  // called after show animation\r\n  onVisible  : function(){},\r\n\r\n  // called before hide animation\r\n  onHide     : function(){ return true; },\r\n\r\n  // called after hide animation\r\n  onHidden   : function(){},\r\n\r\n  // called after approve selector match\r\n  onApprove  : function(){ return true; },\r\n\r\n  // called after deny selector match\r\n  onDeny     : function(){ return true; },\r\n\r\n  selector    : {\r\n    close    : '> .close',\r\n    approve  : '.actions .positive, .actions .approve, .actions .ok',\r\n    deny     : '.actions .negative, .actions .deny, .actions .cancel',\r\n    modal    : '.ui.modal'\r\n  },\r\n  error : {\r\n    dimmer    : 'UI Dimmer, a required component is not included in this page',\r\n    method    : 'The method you called is not defined.',\r\n    notFound  : 'The element you specified could not be found'\r\n  },\r\n  className : {\r\n    active     : 'active',\r\n    animating  : 'animating',\r\n    blurring   : 'blurring',\r\n    scrolling  : 'scrolling',\r\n    undetached : 'undetached'\r\n  }\r\n};\r\n\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Nag\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.nag = function(parameters) {\r\n  var\r\n    $allModules    = $(this),\r\n    moduleSelector = $allModules.selector || '',\r\n\r\n    time           = new Date().getTime(),\r\n    performance    = [],\r\n\r\n    query          = arguments[0],\r\n    methodInvoked  = (typeof query == 'string'),\r\n    queryArguments = [].slice.call(arguments, 1),\r\n    returnedValue\r\n  ;\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings          = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.nag.settings, parameters)\r\n          : $.extend({}, $.fn.nag.settings),\r\n\r\n        className       = settings.className,\r\n        selector        = settings.selector,\r\n        error           = settings.error,\r\n        namespace       = settings.namespace,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = namespace + '-module',\r\n\r\n        $module         = $(this),\r\n\r\n        $close          = $module.find(selector.close),\r\n        $context        = (settings.context)\r\n          ? $(settings.context)\r\n          : $('body'),\r\n\r\n        element         = this,\r\n        instance        = $module.data(moduleNamespace),\r\n\r\n        moduleOffset,\r\n        moduleHeight,\r\n\r\n        contextWidth,\r\n        contextHeight,\r\n        contextOffset,\r\n\r\n        yOffset,\r\n        yPosition,\r\n\r\n        timer,\r\n        module,\r\n\r\n        requestAnimationFrame = window.requestAnimationFrame\r\n          || window.mozRequestAnimationFrame\r\n          || window.webkitRequestAnimationFrame\r\n          || window.msRequestAnimationFrame\r\n          || function(callback) { setTimeout(callback, 0); }\r\n      ;\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.verbose('Initializing element');\r\n\r\n          $module\r\n            .on('click' + eventNamespace, selector.close, module.dismiss)\r\n            .data(moduleNamespace, module)\r\n          ;\r\n\r\n          if(settings.detachable && $module.parent()[0] !== $context[0]) {\r\n            $module\r\n              .detach()\r\n              .prependTo($context)\r\n            ;\r\n          }\r\n\r\n          if(settings.displayTime > 0) {\r\n            setTimeout(module.hide, settings.displayTime);\r\n          }\r\n          module.show();\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying instance');\r\n          $module\r\n            .removeData(moduleNamespace)\r\n            .off(eventNamespace)\r\n          ;\r\n        },\r\n\r\n        show: function() {\r\n          if( module.should.show() && !$module.is(':visible') ) {\r\n            module.debug('Showing nag', settings.animation.show);\r\n            if(settings.animation.show == 'fade') {\r\n              $module\r\n                .fadeIn(settings.duration, settings.easing)\r\n              ;\r\n            }\r\n            else {\r\n              $module\r\n                .slideDown(settings.duration, settings.easing)\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        hide: function() {\r\n          module.debug('Showing nag', settings.animation.hide);\r\n          if(settings.animation.show == 'fade') {\r\n            $module\r\n              .fadeIn(settings.duration, settings.easing)\r\n            ;\r\n          }\r\n          else {\r\n            $module\r\n              .slideUp(settings.duration, settings.easing)\r\n            ;\r\n          }\r\n        },\r\n\r\n        onHide: function() {\r\n          module.debug('Removing nag', settings.animation.hide);\r\n          $module.remove();\r\n          if (settings.onHide) {\r\n            settings.onHide();\r\n          }\r\n        },\r\n\r\n        dismiss: function(event) {\r\n          if(settings.storageMethod) {\r\n            module.storage.set(settings.key, settings.value);\r\n          }\r\n          module.hide();\r\n          event.stopImmediatePropagation();\r\n          event.preventDefault();\r\n        },\r\n\r\n        should: {\r\n          show: function() {\r\n            if(settings.persist) {\r\n              module.debug('Persistent nag is set, can show nag');\r\n              return true;\r\n            }\r\n            if( module.storage.get(settings.key) != settings.value.toString() ) {\r\n              module.debug('Stored value is not set, can show nag', module.storage.get(settings.key));\r\n              return true;\r\n            }\r\n            module.debug('Stored value is set, cannot show nag', module.storage.get(settings.key));\r\n            return false;\r\n          }\r\n        },\r\n\r\n        get: {\r\n          storageOptions: function() {\r\n            var\r\n              options = {}\r\n            ;\r\n            if(settings.expires) {\r\n              options.expires = settings.expires;\r\n            }\r\n            if(settings.domain) {\r\n              options.domain = settings.domain;\r\n            }\r\n            if(settings.path) {\r\n              options.path = settings.path;\r\n            }\r\n            return options;\r\n          }\r\n        },\r\n\r\n        clear: function() {\r\n          module.storage.remove(settings.key);\r\n        },\r\n\r\n        storage: {\r\n          set: function(key, value) {\r\n            var\r\n              options = module.get.storageOptions()\r\n            ;\r\n            if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {\r\n              window.localStorage.setItem(key, value);\r\n              module.debug('Value stored using local storage', key, value);\r\n            }\r\n            else if(settings.storageMethod == 'sessionstorage' && window.sessionStorage !== undefined) {\r\n              window.sessionStorage.setItem(key, value);\r\n              module.debug('Value stored using session storage', key, value);\r\n            }\r\n            else if($.cookie !== undefined) {\r\n              $.cookie(key, value, options);\r\n              module.debug('Value stored using cookie', key, value, options);\r\n            }\r\n            else {\r\n              module.error(error.noCookieStorage);\r\n              return;\r\n            }\r\n          },\r\n          get: function(key, value) {\r\n            var\r\n              storedValue\r\n            ;\r\n            if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {\r\n              storedValue = window.localStorage.getItem(key);\r\n            }\r\n            else if(settings.storageMethod == 'sessionstorage' && window.sessionStorage !== undefined) {\r\n              storedValue = window.sessionStorage.getItem(key);\r\n            }\r\n            // get by cookie\r\n            else if($.cookie !== undefined) {\r\n              storedValue = $.cookie(key);\r\n            }\r\n            else {\r\n              module.error(error.noCookieStorage);\r\n            }\r\n            if(storedValue == 'undefined' || storedValue == 'null' || storedValue === undefined || storedValue === null) {\r\n              storedValue = undefined;\r\n            }\r\n            return storedValue;\r\n          },\r\n          remove: function(key) {\r\n            var\r\n              options = module.get.storageOptions()\r\n            ;\r\n            if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {\r\n              window.localStorage.removeItem(key);\r\n            }\r\n            else if(settings.storageMethod == 'sessionstorage' && window.sessionStorage !== undefined) {\r\n              window.sessionStorage.removeItem(key);\r\n            }\r\n            // store by cookie\r\n            else if($.cookie !== undefined) {\r\n              $.removeCookie(key, options);\r\n            }\r\n            else {\r\n              module.error(error.noStorage);\r\n            }\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.nag.settings = {\r\n\r\n  name        : 'Nag',\r\n\r\n  silent      : false,\r\n  debug       : false,\r\n  verbose     : false,\r\n  performance : true,\r\n\r\n  namespace   : 'Nag',\r\n\r\n  // allows cookie to be overridden\r\n  persist     : false,\r\n\r\n  // set to zero to require manually dismissal, otherwise hides on its own\r\n  displayTime : 0,\r\n\r\n  animation   : {\r\n    show : 'slide',\r\n    hide : 'slide'\r\n  },\r\n\r\n  context       : false,\r\n  detachable    : false,\r\n\r\n  expires       : 30,\r\n  domain        : false,\r\n  path          : '/',\r\n\r\n  // type of storage to use\r\n  storageMethod : 'cookie',\r\n\r\n  // value to store in dismissed localstorage/cookie\r\n  key           : 'nag',\r\n  value         : 'dismiss',\r\n\r\n  error: {\r\n    noCookieStorage : '$.cookie is not included. A storage solution is required.',\r\n    noStorage       : 'Neither $.cookie or store is defined. A storage solution is required for storing state',\r\n    method          : 'The method you called is not defined.'\r\n  },\r\n\r\n  className     : {\r\n    bottom : 'bottom',\r\n    fixed  : 'fixed'\r\n  },\r\n\r\n  selector      : {\r\n    close : '.close.icon'\r\n  },\r\n\r\n  speed         : 500,\r\n  easing        : 'easeOutQuad',\r\n\r\n  onHide: function() {}\r\n\r\n};\r\n\r\n// Adds easing\r\n$.extend( $.easing, {\r\n  easeOutQuad: function (x, t, b, c, d) {\r\n    return -c *(t/=d)*(t-2) + b;\r\n  }\r\n});\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Popup\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.popup = function(parameters) {\r\n  var\r\n    $allModules    = $(this),\r\n    $document      = $(document),\r\n    $window        = $(window),\r\n    $body          = $('body'),\r\n\r\n    moduleSelector = $allModules.selector || '',\r\n\r\n    hasTouch       = (true),\r\n    time           = new Date().getTime(),\r\n    performance    = [],\r\n\r\n    query          = arguments[0],\r\n    methodInvoked  = (typeof query == 'string'),\r\n    queryArguments = [].slice.call(arguments, 1),\r\n\r\n    returnedValue\r\n  ;\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings        = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.popup.settings, parameters)\r\n          : $.extend({}, $.fn.popup.settings),\r\n\r\n        selector           = settings.selector,\r\n        className          = settings.className,\r\n        error              = settings.error,\r\n        metadata           = settings.metadata,\r\n        namespace          = settings.namespace,\r\n\r\n        eventNamespace     = '.' + settings.namespace,\r\n        moduleNamespace    = 'module-' + namespace,\r\n\r\n        $module            = $(this),\r\n        $context           = $(settings.context),\r\n        $scrollContext     = $(settings.scrollContext),\r\n        $boundary          = $(settings.boundary),\r\n        $target            = (settings.target)\r\n          ? $(settings.target)\r\n          : $module,\r\n\r\n        $popup,\r\n        $offsetParent,\r\n\r\n        searchDepth        = 0,\r\n        triedPositions     = false,\r\n        openedWithTouch    = false,\r\n\r\n        element            = this,\r\n        instance           = $module.data(moduleNamespace),\r\n\r\n        documentObserver,\r\n        elementNamespace,\r\n        id,\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        // binds events\r\n        initialize: function() {\r\n          module.debug('Initializing', $module);\r\n          module.createID();\r\n          module.bind.events();\r\n          if(!module.exists() && settings.preserve) {\r\n            module.create();\r\n          }\r\n          if(settings.observeChanges) {\r\n            module.observeChanges();\r\n          }\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, instance)\r\n          ;\r\n        },\r\n\r\n        observeChanges: function() {\r\n          if('MutationObserver' in window) {\r\n            documentObserver = new MutationObserver(module.event.documentChanged);\r\n            documentObserver.observe(document, {\r\n              childList : true,\r\n              subtree   : true\r\n            });\r\n            module.debug('Setting up mutation observer', documentObserver);\r\n          }\r\n        },\r\n\r\n        refresh: function() {\r\n          if(settings.popup) {\r\n            $popup = $(settings.popup).eq(0);\r\n          }\r\n          else {\r\n            if(settings.inline) {\r\n              $popup = $target.nextAll(selector.popup).eq(0);\r\n              settings.popup = $popup;\r\n            }\r\n          }\r\n          if(settings.popup) {\r\n            $popup.addClass(className.loading);\r\n            $offsetParent = module.get.offsetParent();\r\n            $popup.removeClass(className.loading);\r\n            if(settings.movePopup && module.has.popup() && module.get.offsetParent($popup)[0] !== $offsetParent[0]) {\r\n              module.debug('Moving popup to the same offset parent as activating element');\r\n              $popup\r\n                .detach()\r\n                .appendTo($offsetParent)\r\n              ;\r\n            }\r\n          }\r\n          else {\r\n            $offsetParent = (settings.inline)\r\n              ? module.get.offsetParent($target)\r\n              : module.has.popup()\r\n                ? module.get.offsetParent($popup)\r\n                : $body\r\n            ;\r\n          }\r\n          if( $offsetParent.is('html') && $offsetParent[0] !== $body[0] ) {\r\n            module.debug('Setting page as offset parent');\r\n            $offsetParent = $body;\r\n          }\r\n          if( module.get.variation() ) {\r\n            module.set.variation();\r\n          }\r\n        },\r\n\r\n        reposition: function() {\r\n          module.refresh();\r\n          module.set.position();\r\n        },\r\n\r\n        destroy: function() {\r\n          module.debug('Destroying previous module');\r\n          if(documentObserver) {\r\n            documentObserver.disconnect();\r\n          }\r\n          // remove element only if was created dynamically\r\n          if($popup && !settings.preserve) {\r\n            module.removePopup();\r\n          }\r\n          // clear all timeouts\r\n          clearTimeout(module.hideTimer);\r\n          clearTimeout(module.showTimer);\r\n          // remove events\r\n          module.unbind.close();\r\n          module.unbind.events();\r\n          $module\r\n            .removeData(moduleNamespace)\r\n          ;\r\n        },\r\n\r\n        event: {\r\n          start:  function(event) {\r\n            var\r\n              delay = ($.isPlainObject(settings.delay))\r\n                ? settings.delay.show\r\n                : settings.delay\r\n            ;\r\n            clearTimeout(module.hideTimer);\r\n            if(!openedWithTouch) {\r\n              module.showTimer = setTimeout(module.show, delay);\r\n            }\r\n          },\r\n          end:  function() {\r\n            var\r\n              delay = ($.isPlainObject(settings.delay))\r\n                ? settings.delay.hide\r\n                : settings.delay\r\n            ;\r\n            clearTimeout(module.showTimer);\r\n            module.hideTimer = setTimeout(module.hide, delay);\r\n          },\r\n          touchstart: function(event) {\r\n            openedWithTouch = true;\r\n            module.show();\r\n          },\r\n          resize: function() {\r\n            if( module.is.visible() ) {\r\n              module.set.position();\r\n            }\r\n          },\r\n          documentChanged: function(mutations) {\r\n            [].forEach.call(mutations, function(mutation) {\r\n              if(mutation.removedNodes) {\r\n                [].forEach.call(mutation.removedNodes, function(node) {\r\n                  if(node == element || $(node).find(element).length > 0) {\r\n                    module.debug('Element removed from DOM, tearing down events');\r\n                    module.destroy();\r\n                  }\r\n                });\r\n              }\r\n            });\r\n          },\r\n          hideGracefully: function(event) {\r\n            var\r\n              $target = $(event.target),\r\n              isInDOM = $.contains(document.documentElement, event.target),\r\n              inPopup = ($target.closest(selector.popup).length > 0)\r\n            ;\r\n            // don't close on clicks inside popup\r\n            if(event && !inPopup && isInDOM) {\r\n              module.debug('Click occurred outside popup hiding popup');\r\n              module.hide();\r\n            }\r\n            else {\r\n              module.debug('Click was inside popup, keeping popup open');\r\n            }\r\n          }\r\n        },\r\n\r\n        // generates popup html from metadata\r\n        create: function() {\r\n          var\r\n            html      = module.get.html(),\r\n            title     = module.get.title(),\r\n            content   = module.get.content()\r\n          ;\r\n\r\n          if(html || content || title) {\r\n            module.debug('Creating pop-up html');\r\n            if(!html) {\r\n              html = settings.templates.popup({\r\n                title   : title,\r\n                content : content\r\n              });\r\n            }\r\n            $popup = $('<div/>')\r\n              .addClass(className.popup)\r\n              .data(metadata.activator, $module)\r\n              .html(html)\r\n            ;\r\n            if(settings.inline) {\r\n              module.verbose('Inserting popup element inline', $popup);\r\n              $popup\r\n                .insertAfter($module)\r\n              ;\r\n            }\r\n            else {\r\n              module.verbose('Appending popup element to body', $popup);\r\n              $popup\r\n                .appendTo( $context )\r\n              ;\r\n            }\r\n            module.refresh();\r\n            module.set.variation();\r\n\r\n            if(settings.hoverable) {\r\n              module.bind.popup();\r\n            }\r\n            settings.onCreate.call($popup, element);\r\n          }\r\n          else if($target.next(selector.popup).length !== 0) {\r\n            module.verbose('Pre-existing popup found');\r\n            settings.inline = true;\r\n            settings.popup  = $target.next(selector.popup).data(metadata.activator, $module);\r\n            module.refresh();\r\n            if(settings.hoverable) {\r\n              module.bind.popup();\r\n            }\r\n          }\r\n          else if(settings.popup) {\r\n            $(settings.popup).data(metadata.activator, $module);\r\n            module.verbose('Used popup specified in settings');\r\n            module.refresh();\r\n            if(settings.hoverable) {\r\n              module.bind.popup();\r\n            }\r\n          }\r\n          else {\r\n            module.debug('No content specified skipping display', element);\r\n          }\r\n        },\r\n\r\n        createID: function() {\r\n          id = (Math.random().toString(16) + '000000000').substr(2, 8);\r\n          elementNamespace = '.' + id;\r\n          module.verbose('Creating unique id for element', id);\r\n        },\r\n\r\n        // determines popup state\r\n        toggle: function() {\r\n          module.debug('Toggling pop-up');\r\n          if( module.is.hidden() ) {\r\n            module.debug('Popup is hidden, showing pop-up');\r\n            module.unbind.close();\r\n            module.show();\r\n          }\r\n          else {\r\n            module.debug('Popup is visible, hiding pop-up');\r\n            module.hide();\r\n          }\r\n        },\r\n\r\n        show: function(callback) {\r\n          callback = callback || function(){};\r\n          module.debug('Showing pop-up', settings.transition);\r\n          if(module.is.hidden() && !( module.is.active() && module.is.dropdown()) ) {\r\n            if( !module.exists() ) {\r\n              module.create();\r\n            }\r\n            if(settings.onShow.call($popup, element) === false) {\r\n              module.debug('onShow callback returned false, cancelling popup animation');\r\n              return;\r\n            }\r\n            else if(!settings.preserve && !settings.popup) {\r\n              module.refresh();\r\n            }\r\n            if( $popup && module.set.position() ) {\r\n              module.save.conditions();\r\n              if(settings.exclusive) {\r\n                module.hideAll();\r\n              }\r\n              module.animate.show(callback);\r\n            }\r\n          }\r\n        },\r\n\r\n\r\n        hide: function(callback) {\r\n          callback = callback || function(){};\r\n          if( module.is.visible() || module.is.animating() ) {\r\n            if(settings.onHide.call($popup, element) === false) {\r\n              module.debug('onHide callback returned false, cancelling popup animation');\r\n              return;\r\n            }\r\n            module.remove.visible();\r\n            module.unbind.close();\r\n            module.restore.conditions();\r\n            module.animate.hide(callback);\r\n          }\r\n        },\r\n\r\n        hideAll: function() {\r\n          $(selector.popup)\r\n            .filter('.' + className.visible)\r\n            .each(function() {\r\n              $(this)\r\n                .data(metadata.activator)\r\n                  .popup('hide')\r\n              ;\r\n            })\r\n          ;\r\n        },\r\n        exists: function() {\r\n          if(!$popup) {\r\n            return false;\r\n          }\r\n          if(settings.inline || settings.popup) {\r\n            return ( module.has.popup() );\r\n          }\r\n          else {\r\n            return ( $popup.closest($context).length >= 1 )\r\n              ? true\r\n              : false\r\n            ;\r\n          }\r\n        },\r\n\r\n        removePopup: function() {\r\n          if( module.has.popup() && !settings.popup) {\r\n            module.debug('Removing popup', $popup);\r\n            $popup.remove();\r\n            $popup = undefined;\r\n            settings.onRemove.call($popup, element);\r\n          }\r\n        },\r\n\r\n        save: {\r\n          conditions: function() {\r\n            module.cache = {\r\n              title: $module.attr('title')\r\n            };\r\n            if (module.cache.title) {\r\n              $module.removeAttr('title');\r\n            }\r\n            module.verbose('Saving original attributes', module.cache.title);\r\n          }\r\n        },\r\n        restore: {\r\n          conditions: function() {\r\n            if(module.cache && module.cache.title) {\r\n              $module.attr('title', module.cache.title);\r\n              module.verbose('Restoring original attributes', module.cache.title);\r\n            }\r\n            return true;\r\n          }\r\n        },\r\n        supports: {\r\n          svg: function() {\r\n            return (typeof SVGGraphicsElement === undefined);\r\n          }\r\n        },\r\n        animate: {\r\n          show: function(callback) {\r\n            callback = $.isFunction(callback) ? callback : function(){};\r\n            if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {\r\n              module.set.visible();\r\n              $popup\r\n                .transition({\r\n                  animation  : settings.transition + ' in',\r\n                  queue      : false,\r\n                  debug      : settings.debug,\r\n                  verbose    : settings.verbose,\r\n                  duration   : settings.duration,\r\n                  onComplete : function() {\r\n                    module.bind.close();\r\n                    callback.call($popup, element);\r\n                    settings.onVisible.call($popup, element);\r\n                  }\r\n                })\r\n              ;\r\n            }\r\n            else {\r\n              module.error(error.noTransition);\r\n            }\r\n          },\r\n          hide: function(callback) {\r\n            callback = $.isFunction(callback) ? callback : function(){};\r\n            module.debug('Hiding pop-up');\r\n            if(settings.onHide.call($popup, element) === false) {\r\n              module.debug('onHide callback returned false, cancelling popup animation');\r\n              return;\r\n            }\r\n            if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {\r\n              $popup\r\n                .transition({\r\n                  animation  : settings.transition + ' out',\r\n                  queue      : false,\r\n                  duration   : settings.duration,\r\n                  debug      : settings.debug,\r\n                  verbose    : settings.verbose,\r\n                  onComplete : function() {\r\n                    module.reset();\r\n                    callback.call($popup, element);\r\n                    settings.onHidden.call($popup, element);\r\n                  }\r\n                })\r\n              ;\r\n            }\r\n            else {\r\n              module.error(error.noTransition);\r\n            }\r\n          }\r\n        },\r\n\r\n        change: {\r\n          content: function(html) {\r\n            $popup.html(html);\r\n          }\r\n        },\r\n\r\n        get: {\r\n          html: function() {\r\n            $module.removeData(metadata.html);\r\n            return $module.data(metadata.html) || settings.html;\r\n          },\r\n          title: function() {\r\n            $module.removeData(metadata.title);\r\n            return $module.data(metadata.title) || settings.title;\r\n          },\r\n          content: function() {\r\n            $module.removeData(metadata.content);\r\n            return $module.data(metadata.content) || $module.attr('title') || settings.content;\r\n          },\r\n          variation: function() {\r\n            $module.removeData(metadata.variation);\r\n            return $module.data(metadata.variation) || settings.variation;\r\n          },\r\n          popup: function() {\r\n            return $popup;\r\n          },\r\n          popupOffset: function() {\r\n            return $popup.offset();\r\n          },\r\n          calculations: function() {\r\n            var\r\n              targetElement    = $target[0],\r\n              isWindow         = ($boundary[0] == window),\r\n              targetPosition   = (settings.inline || (settings.popup && settings.movePopup))\r\n                ? $target.position()\r\n                : $target.offset(),\r\n              screenPosition = (isWindow)\r\n                ? { top: 0, left: 0 }\r\n                : $boundary.offset(),\r\n              calculations   = {},\r\n              scroll = (isWindow)\r\n                ? { top: $window.scrollTop(), left: $window.scrollLeft() }\r\n                : { top: 0, left: 0},\r\n              screen\r\n            ;\r\n            calculations = {\r\n              // element which is launching popup\r\n              target : {\r\n                element : $target[0],\r\n                width   : $target.outerWidth(),\r\n                height  : $target.outerHeight(),\r\n                top     : targetPosition.top,\r\n                left    : targetPosition.left,\r\n                margin  : {}\r\n              },\r\n              // popup itself\r\n              popup : {\r\n                width  : $popup.outerWidth(),\r\n                height : $popup.outerHeight()\r\n              },\r\n              // offset container (or 3d context)\r\n              parent : {\r\n                width  : $offsetParent.outerWidth(),\r\n                height : $offsetParent.outerHeight()\r\n              },\r\n              // screen boundaries\r\n              screen : {\r\n                top  : screenPosition.top,\r\n                left : screenPosition.left,\r\n                scroll: {\r\n                  top  : scroll.top,\r\n                  left : scroll.left\r\n                },\r\n                width  : $boundary.width(),\r\n                height : $boundary.height()\r\n              }\r\n            };\r\n\r\n            // add in container calcs if fluid\r\n            if( settings.setFluidWidth && module.is.fluid() ) {\r\n              calculations.container = {\r\n                width: $popup.parent().outerWidth()\r\n              };\r\n              calculations.popup.width = calculations.container.width;\r\n            }\r\n\r\n            // add in margins if inline\r\n            calculations.target.margin.top = (settings.inline)\r\n              ? parseInt( window.getComputedStyle(targetElement).getPropertyValue('margin-top'), 10)\r\n              : 0\r\n            ;\r\n            calculations.target.margin.left = (settings.inline)\r\n              ? module.is.rtl()\r\n                ? parseInt( window.getComputedStyle(targetElement).getPropertyValue('margin-right'), 10)\r\n                : parseInt( window.getComputedStyle(targetElement).getPropertyValue('margin-left'), 10)\r\n              : 0\r\n            ;\r\n            // calculate screen boundaries\r\n            screen = calculations.screen;\r\n            calculations.boundary = {\r\n              top    : screen.top + screen.scroll.top,\r\n              bottom : screen.top + screen.scroll.top + screen.height,\r\n              left   : screen.left + screen.scroll.left,\r\n              right  : screen.left + screen.scroll.left + screen.width\r\n            };\r\n            return calculations;\r\n          },\r\n          id: function() {\r\n            return id;\r\n          },\r\n          startEvent: function() {\r\n            if(settings.on == 'hover') {\r\n              return 'mouseenter';\r\n            }\r\n            else if(settings.on == 'focus') {\r\n              return 'focus';\r\n            }\r\n            return false;\r\n          },\r\n          scrollEvent: function() {\r\n            return 'scroll';\r\n          },\r\n          endEvent: function() {\r\n            if(settings.on == 'hover') {\r\n              return 'mouseleave';\r\n            }\r\n            else if(settings.on == 'focus') {\r\n              return 'blur';\r\n            }\r\n            return false;\r\n          },\r\n          distanceFromBoundary: function(offset, calculations) {\r\n            var\r\n              distanceFromBoundary = {},\r\n              popup,\r\n              boundary\r\n            ;\r\n            calculations = calculations || module.get.calculations();\r\n\r\n            // shorthand\r\n            popup        = calculations.popup;\r\n            boundary     = calculations.boundary;\r\n\r\n            if(offset) {\r\n              distanceFromBoundary = {\r\n                top    : (offset.top - boundary.top),\r\n                left   : (offset.left - boundary.left),\r\n                right  : (boundary.right - (offset.left + popup.width) ),\r\n                bottom : (boundary.bottom - (offset.top + popup.height) )\r\n              };\r\n              module.verbose('Distance from boundaries determined', offset, distanceFromBoundary);\r\n            }\r\n            return distanceFromBoundary;\r\n          },\r\n          offsetParent: function($target) {\r\n            var\r\n              element = ($target !== undefined)\r\n                ? $target[0]\r\n                : $module[0],\r\n              parentNode = element.parentNode,\r\n              $node    = $(parentNode)\r\n            ;\r\n            if(parentNode) {\r\n              var\r\n                is2D     = ($node.css('transform') === 'none'),\r\n                isStatic = ($node.css('position') === 'static'),\r\n                isHTML   = $node.is('html')\r\n              ;\r\n              while(parentNode && !isHTML && isStatic && is2D) {\r\n                parentNode = parentNode.parentNode;\r\n                $node    = $(parentNode);\r\n                is2D     = ($node.css('transform') === 'none');\r\n                isStatic = ($node.css('position') === 'static');\r\n                isHTML   = $node.is('html');\r\n              }\r\n            }\r\n            return ($node && $node.length > 0)\r\n              ? $node\r\n              : $()\r\n            ;\r\n          },\r\n          positions: function() {\r\n            return {\r\n              'top left'      : false,\r\n              'top center'    : false,\r\n              'top right'     : false,\r\n              'bottom left'   : false,\r\n              'bottom center' : false,\r\n              'bottom right'  : false,\r\n              'left center'   : false,\r\n              'right center'  : false\r\n            };\r\n          },\r\n          nextPosition: function(position) {\r\n            var\r\n              positions          = position.split(' '),\r\n              verticalPosition   = positions[0],\r\n              horizontalPosition = positions[1],\r\n              opposite = {\r\n                top    : 'bottom',\r\n                bottom : 'top',\r\n                left   : 'right',\r\n                right  : 'left'\r\n              },\r\n              adjacent = {\r\n                left   : 'center',\r\n                center : 'right',\r\n                right  : 'left'\r\n              },\r\n              backup = {\r\n                'top left'      : 'top center',\r\n                'top center'    : 'top right',\r\n                'top right'     : 'right center',\r\n                'right center'  : 'bottom right',\r\n                'bottom right'  : 'bottom center',\r\n                'bottom center' : 'bottom left',\r\n                'bottom left'   : 'left center',\r\n                'left center'   : 'top left'\r\n              },\r\n              adjacentsAvailable = (verticalPosition == 'top' || verticalPosition == 'bottom'),\r\n              oppositeTried = false,\r\n              adjacentTried = false,\r\n              nextPosition  = false\r\n            ;\r\n            if(!triedPositions) {\r\n              module.verbose('All available positions available');\r\n              triedPositions = module.get.positions();\r\n            }\r\n\r\n            module.debug('Recording last position tried', position);\r\n            triedPositions[position] = true;\r\n\r\n            if(settings.prefer === 'opposite') {\r\n              nextPosition  = [opposite[verticalPosition], horizontalPosition];\r\n              nextPosition  = nextPosition.join(' ');\r\n              oppositeTried = (triedPositions[nextPosition] === true);\r\n              module.debug('Trying opposite strategy', nextPosition);\r\n            }\r\n            if((settings.prefer === 'adjacent') && adjacentsAvailable ) {\r\n              nextPosition  = [verticalPosition, adjacent[horizontalPosition]];\r\n              nextPosition  = nextPosition.join(' ');\r\n              adjacentTried = (triedPositions[nextPosition] === true);\r\n              module.debug('Trying adjacent strategy', nextPosition);\r\n            }\r\n            if(adjacentTried || oppositeTried) {\r\n              module.debug('Using backup position', nextPosition);\r\n              nextPosition = backup[position];\r\n            }\r\n            return nextPosition;\r\n          }\r\n        },\r\n\r\n        set: {\r\n          position: function(position, calculations) {\r\n\r\n            // exit conditions\r\n            if($target.length === 0 || $popup.length === 0) {\r\n              module.error(error.notFound);\r\n              return;\r\n            }\r\n            var\r\n              offset,\r\n              distanceAway,\r\n              target,\r\n              popup,\r\n              parent,\r\n              positioning,\r\n              popupOffset,\r\n              distanceFromBoundary\r\n            ;\r\n\r\n            calculations = calculations || module.get.calculations();\r\n            position     = position     || $module.data(metadata.position) || settings.position;\r\n\r\n            offset       = $module.data(metadata.offset) || settings.offset;\r\n            distanceAway = settings.distanceAway;\r\n\r\n            // shorthand\r\n            target = calculations.target;\r\n            popup  = calculations.popup;\r\n            parent = calculations.parent;\r\n\r\n            if(target.width === 0 && target.height === 0 && !module.is.svg(target.element)) {\r\n              module.debug('Popup target is hidden, no action taken');\r\n              return false;\r\n            }\r\n\r\n            if(settings.inline) {\r\n              module.debug('Adding margin to calculation', target.margin);\r\n              if(position == 'left center' || position == 'right center') {\r\n                offset       +=  target.margin.top;\r\n                distanceAway += -target.margin.left;\r\n              }\r\n              else if (position == 'top left' || position == 'top center' || position == 'top right') {\r\n                offset       += target.margin.left;\r\n                distanceAway -= target.margin.top;\r\n              }\r\n              else {\r\n                offset       += target.margin.left;\r\n                distanceAway += target.margin.top;\r\n              }\r\n            }\r\n\r\n            module.debug('Determining popup position from calculations', position, calculations);\r\n\r\n            if (module.is.rtl()) {\r\n              position = position.replace(/left|right/g, function (match) {\r\n                return (match == 'left')\r\n                  ? 'right'\r\n                  : 'left'\r\n                ;\r\n              });\r\n              module.debug('RTL: Popup position updated', position);\r\n            }\r\n\r\n            // if last attempt use specified last resort position\r\n            if(searchDepth == settings.maxSearchDepth && typeof settings.lastResort === 'string') {\r\n              position = settings.lastResort;\r\n            }\r\n\r\n            switch (position) {\r\n              case 'top left':\r\n                positioning = {\r\n                  top    : 'auto',\r\n                  bottom : parent.height - target.top + distanceAway,\r\n                  left   : target.left + offset,\r\n                  right  : 'auto'\r\n                };\r\n              break;\r\n              case 'top center':\r\n                positioning = {\r\n                  bottom : parent.height - target.top + distanceAway,\r\n                  left   : target.left + (target.width / 2) - (popup.width / 2) + offset,\r\n                  top    : 'auto',\r\n                  right  : 'auto'\r\n                };\r\n              break;\r\n              case 'top right':\r\n                positioning = {\r\n                  bottom :  parent.height - target.top + distanceAway,\r\n                  right  :  parent.width - target.left - target.width - offset,\r\n                  top    : 'auto',\r\n                  left   : 'auto'\r\n                };\r\n              break;\r\n              case 'left center':\r\n                positioning = {\r\n                  top    : target.top + (target.height / 2) - (popup.height / 2) + offset,\r\n                  right  : parent.width - target.left + distanceAway,\r\n                  left   : 'auto',\r\n                  bottom : 'auto'\r\n                };\r\n              break;\r\n              case 'right center':\r\n                positioning = {\r\n                  top    : target.top + (target.height / 2) - (popup.height / 2) + offset,\r\n                  left   : target.left + target.width + distanceAway,\r\n                  bottom : 'auto',\r\n                  right  : 'auto'\r\n                };\r\n              break;\r\n              case 'bottom left':\r\n                positioning = {\r\n                  top    : target.top + target.height + distanceAway,\r\n                  left   : target.left + offset,\r\n                  bottom : 'auto',\r\n                  right  : 'auto'\r\n                };\r\n              break;\r\n              case 'bottom center':\r\n                positioning = {\r\n                  top    : target.top + target.height + distanceAway,\r\n                  left   : target.left + (target.width / 2) - (popup.width / 2) + offset,\r\n                  bottom : 'auto',\r\n                  right  : 'auto'\r\n                };\r\n              break;\r\n              case 'bottom right':\r\n                positioning = {\r\n                  top    : target.top + target.height + distanceAway,\r\n                  right  : parent.width - target.left  - target.width - offset,\r\n                  left   : 'auto',\r\n                  bottom : 'auto'\r\n                };\r\n              break;\r\n            }\r\n            if(positioning === undefined) {\r\n              module.error(error.invalidPosition, position);\r\n            }\r\n\r\n            module.debug('Calculated popup positioning values', positioning);\r\n\r\n            // tentatively place on stage\r\n            $popup\r\n              .css(positioning)\r\n              .removeClass(className.position)\r\n              .addClass(position)\r\n              .addClass(className.loading)\r\n            ;\r\n\r\n            popupOffset = module.get.popupOffset();\r\n\r\n            // see if any boundaries are surpassed with this tentative position\r\n            distanceFromBoundary = module.get.distanceFromBoundary(popupOffset, calculations);\r\n\r\n            if( module.is.offstage(distanceFromBoundary, position) ) {\r\n              module.debug('Position is outside viewport', position);\r\n              if(searchDepth < settings.maxSearchDepth) {\r\n                searchDepth++;\r\n                position = module.get.nextPosition(position);\r\n                module.debug('Trying new position', position);\r\n                return ($popup)\r\n                  ? module.set.position(position, calculations)\r\n                  : false\r\n                ;\r\n              }\r\n              else {\r\n                if(settings.lastResort) {\r\n                  module.debug('No position found, showing with last position');\r\n                }\r\n                else {\r\n                  module.debug('Popup could not find a position to display', $popup);\r\n                  module.error(error.cannotPlace, element);\r\n                  module.remove.attempts();\r\n                  module.remove.loading();\r\n                  module.reset();\r\n                  settings.onUnplaceable.call($popup, element);\r\n                  return false;\r\n                }\r\n              }\r\n            }\r\n            module.debug('Position is on stage', position);\r\n            module.remove.attempts();\r\n            module.remove.loading();\r\n            if( settings.setFluidWidth && module.is.fluid() ) {\r\n              module.set.fluidWidth(calculations);\r\n            }\r\n            return true;\r\n          },\r\n\r\n          fluidWidth: function(calculations) {\r\n            calculations = calculations || module.get.calculations();\r\n            module.debug('Automatically setting element width to parent width', calculations.parent.width);\r\n            $popup.css('width', calculations.container.width);\r\n          },\r\n\r\n          variation: function(variation) {\r\n            variation = variation || module.get.variation();\r\n            if(variation && module.has.popup() ) {\r\n              module.verbose('Adding variation to popup', variation);\r\n              $popup.addClass(variation);\r\n            }\r\n          },\r\n\r\n          visible: function() {\r\n            $module.addClass(className.visible);\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          loading: function() {\r\n            $popup.removeClass(className.loading);\r\n          },\r\n          variation: function(variation) {\r\n            variation = variation || module.get.variation();\r\n            if(variation) {\r\n              module.verbose('Removing variation', variation);\r\n              $popup.removeClass(variation);\r\n            }\r\n          },\r\n          visible: function() {\r\n            $module.removeClass(className.visible);\r\n          },\r\n          attempts: function() {\r\n            module.verbose('Resetting all searched positions');\r\n            searchDepth    = 0;\r\n            triedPositions = false;\r\n          }\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            module.debug('Binding popup events to module');\r\n            if(settings.on == 'click') {\r\n              $module\r\n                .on('click' + eventNamespace, module.toggle)\r\n              ;\r\n            }\r\n            if(settings.on == 'hover' && hasTouch) {\r\n              $module\r\n                .on('touchstart' + eventNamespace, module.event.touchstart)\r\n              ;\r\n            }\r\n            if( module.get.startEvent() ) {\r\n              $module\r\n                .on(module.get.startEvent() + eventNamespace, module.event.start)\r\n                .on(module.get.endEvent() + eventNamespace, module.event.end)\r\n              ;\r\n            }\r\n            if(settings.target) {\r\n              module.debug('Target set to element', $target);\r\n            }\r\n            $window.on('resize' + elementNamespace, module.event.resize);\r\n          },\r\n          popup: function() {\r\n            module.verbose('Allowing hover events on popup to prevent closing');\r\n            if( $popup && module.has.popup() ) {\r\n              $popup\r\n                .on('mouseenter' + eventNamespace, module.event.start)\r\n                .on('mouseleave' + eventNamespace, module.event.end)\r\n              ;\r\n            }\r\n          },\r\n          close: function() {\r\n            if(settings.hideOnScroll === true || (settings.hideOnScroll == 'auto' && settings.on != 'click')) {\r\n              $scrollContext\r\n                .one(module.get.scrollEvent() + elementNamespace, module.event.hideGracefully)\r\n              ;\r\n            }\r\n            if(settings.on == 'hover' && openedWithTouch) {\r\n              module.verbose('Binding popup close event to document');\r\n              $document\r\n                .on('touchstart' + elementNamespace, function(event) {\r\n                  module.verbose('Touched away from popup');\r\n                  module.event.hideGracefully.call(element, event);\r\n                })\r\n              ;\r\n            }\r\n            if(settings.on == 'click' && settings.closable) {\r\n              module.verbose('Binding popup close event to document');\r\n              $document\r\n                .on('click' + elementNamespace, function(event) {\r\n                  module.verbose('Clicked away from popup');\r\n                  module.event.hideGracefully.call(element, event);\r\n                })\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        unbind: {\r\n          events: function() {\r\n            $window\r\n              .off(elementNamespace)\r\n            ;\r\n            $module\r\n              .off(eventNamespace)\r\n            ;\r\n          },\r\n          close: function() {\r\n            $document\r\n              .off(elementNamespace)\r\n            ;\r\n            $scrollContext\r\n              .off(elementNamespace)\r\n            ;\r\n          },\r\n        },\r\n\r\n        has: {\r\n          popup: function() {\r\n            return ($popup && $popup.length > 0);\r\n          }\r\n        },\r\n\r\n        is: {\r\n          offstage: function(distanceFromBoundary, position) {\r\n            var\r\n              offstage = []\r\n            ;\r\n            // return boundaries that have been surpassed\r\n            $.each(distanceFromBoundary, function(direction, distance) {\r\n              if(distance < -settings.jitter) {\r\n                module.debug('Position exceeds allowable distance from edge', direction, distance, position);\r\n                offstage.push(direction);\r\n              }\r\n            });\r\n            if(offstage.length > 0) {\r\n              return true;\r\n            }\r\n            else {\r\n              return false;\r\n            }\r\n          },\r\n          svg: function(element) {\r\n            return module.supports.svg() && (element instanceof SVGGraphicsElement);\r\n          },\r\n          active: function() {\r\n            return $module.hasClass(className.active);\r\n          },\r\n          animating: function() {\r\n            return ($popup !== undefined && $popup.hasClass(className.animating) );\r\n          },\r\n          fluid: function() {\r\n            return ($popup !== undefined && $popup.hasClass(className.fluid));\r\n          },\r\n          visible: function() {\r\n            return ($popup !== undefined && $popup.hasClass(className.visible));\r\n          },\r\n          dropdown: function() {\r\n            return $module.hasClass(className.dropdown);\r\n          },\r\n          hidden: function() {\r\n            return !module.is.visible();\r\n          },\r\n          rtl: function () {\r\n            return $module.css('direction') == 'rtl';\r\n          }\r\n        },\r\n\r\n        reset: function() {\r\n          module.remove.visible();\r\n          if(settings.preserve) {\r\n            if($.fn.transition !== undefined) {\r\n              $popup\r\n                .transition('remove transition')\r\n              ;\r\n            }\r\n          }\r\n          else {\r\n            module.removePopup();\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            settings[name] = value;\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.popup.settings = {\r\n\r\n  name           : 'Popup',\r\n\r\n  // module settings\r\n  silent         : false,\r\n  debug          : false,\r\n  verbose        : false,\r\n  performance    : true,\r\n  namespace      : 'popup',\r\n\r\n  // whether it should use dom mutation observers\r\n  observeChanges : true,\r\n\r\n  // callback only when element added to dom\r\n  onCreate       : function(){},\r\n\r\n  // callback before element removed from dom\r\n  onRemove       : function(){},\r\n\r\n  // callback before show animation\r\n  onShow         : function(){},\r\n\r\n  // callback after show animation\r\n  onVisible      : function(){},\r\n\r\n  // callback before hide animation\r\n  onHide         : function(){},\r\n\r\n  // callback when popup cannot be positioned in visible screen\r\n  onUnplaceable  : function(){},\r\n\r\n  // callback after hide animation\r\n  onHidden       : function(){},\r\n\r\n  // when to show popup\r\n  on             : 'hover',\r\n\r\n  // element to use to determine if popup is out of boundary\r\n  boundary       : window,\r\n\r\n  // whether to add touchstart events when using hover\r\n  addTouchEvents : true,\r\n\r\n  // default position relative to element\r\n  position       : 'top left',\r\n\r\n  // name of variation to use\r\n  variation      : '',\r\n\r\n  // whether popup should be moved to context\r\n  movePopup      : true,\r\n\r\n  // element which popup should be relative to\r\n  target         : false,\r\n\r\n  // jq selector or element that should be used as popup\r\n  popup          : false,\r\n\r\n  // popup should remain inline next to activator\r\n  inline         : false,\r\n\r\n  // popup should be removed from page on hide\r\n  preserve       : false,\r\n\r\n  // popup should not close when being hovered on\r\n  hoverable      : false,\r\n\r\n  // explicitly set content\r\n  content        : false,\r\n\r\n  // explicitly set html\r\n  html           : false,\r\n\r\n  // explicitly set title\r\n  title          : false,\r\n\r\n  // whether automatically close on clickaway when on click\r\n  closable       : true,\r\n\r\n  // automatically hide on scroll\r\n  hideOnScroll   : 'auto',\r\n\r\n  // hide other popups on show\r\n  exclusive      : false,\r\n\r\n  // context to attach popups\r\n  context        : 'body',\r\n\r\n  // context for binding scroll events\r\n  scrollContext  : window,\r\n\r\n  // position to prefer when calculating new position\r\n  prefer         : 'opposite',\r\n\r\n  // specify position to appear even if it doesn't fit\r\n  lastResort     : false,\r\n\r\n  // delay used to prevent accidental refiring of animations due to user error\r\n  delay        : {\r\n    show : 50,\r\n    hide : 70\r\n  },\r\n\r\n  // whether fluid variation should assign width explicitly\r\n  setFluidWidth  : true,\r\n\r\n  // transition settings\r\n  duration       : 200,\r\n  transition     : 'scale',\r\n\r\n  // distance away from activating element in px\r\n  distanceAway   : 0,\r\n\r\n  // number of pixels an element is allowed to be \"offstage\" for a position to be chosen (allows for rounding)\r\n  jitter         : 2,\r\n\r\n  // offset on aligning axis from calculated position\r\n  offset         : 0,\r\n\r\n  // maximum times to look for a position before failing (9 positions total)\r\n  maxSearchDepth : 15,\r\n\r\n  error: {\r\n    invalidPosition : 'The position you specified is not a valid position',\r\n    cannotPlace     : 'Popup does not fit within the boundaries of the viewport',\r\n    method          : 'The method you called is not defined.',\r\n    noTransition    : 'This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>',\r\n    notFound        : 'The target or popup you specified does not exist on the page'\r\n  },\r\n\r\n  metadata: {\r\n    activator : 'activator',\r\n    content   : 'content',\r\n    html      : 'html',\r\n    offset    : 'offset',\r\n    position  : 'position',\r\n    title     : 'title',\r\n    variation : 'variation'\r\n  },\r\n\r\n  className   : {\r\n    active    : 'active',\r\n    animating : 'animating',\r\n    dropdown  : 'dropdown',\r\n    fluid     : 'fluid',\r\n    loading   : 'loading',\r\n    popup     : 'ui popup',\r\n    position  : 'top left center bottom right',\r\n    visible   : 'visible'\r\n  },\r\n\r\n  selector    : {\r\n    popup    : '.ui.popup'\r\n  },\r\n\r\n  templates: {\r\n    escape: function(string) {\r\n      var\r\n        badChars     = /[&<>\"'`]/g,\r\n        shouldEscape = /[&<>\"'`]/,\r\n        escape       = {\r\n          \"&\": \"&amp;\",\r\n          \"<\": \"&lt;\",\r\n          \">\": \"&gt;\",\r\n          '\"': \"&quot;\",\r\n          \"'\": \"&#x27;\",\r\n          \"`\": \"&#x60;\"\r\n        },\r\n        escapedChar  = function(chr) {\r\n          return escape[chr];\r\n        }\r\n      ;\r\n      if(shouldEscape.test(string)) {\r\n        return string.replace(badChars, escapedChar);\r\n      }\r\n      return string;\r\n    },\r\n    popup: function(text) {\r\n      var\r\n        html   = '',\r\n        escape = $.fn.popup.settings.templates.escape\r\n      ;\r\n      if(typeof text !== undefined) {\r\n        if(typeof text.title !== undefined && text.title) {\r\n          text.title = escape(text.title);\r\n          html += '<div class=\"header\">' + text.title + '</div>';\r\n        }\r\n        if(typeof text.content !== undefined && text.content) {\r\n          text.content = escape(text.content);\r\n          html += '<div class=\"content\">' + text.content + '</div>';\r\n        }\r\n      }\r\n      return html;\r\n    }\r\n  }\r\n\r\n};\r\n\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Progress\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\nvar\r\n  global = (typeof window != 'undefined' && window.Math == Math)\r\n    ? window\r\n    : (typeof self != 'undefined' && self.Math == Math)\r\n      ? self\r\n      : Function('return this')()\r\n;\r\n\r\n$.fn.progress = function(parameters) {\r\n  var\r\n    $allModules    = $(this),\r\n\r\n    moduleSelector = $allModules.selector || '',\r\n\r\n    time           = new Date().getTime(),\r\n    performance    = [],\r\n\r\n    query          = arguments[0],\r\n    methodInvoked  = (typeof query == 'string'),\r\n    queryArguments = [].slice.call(arguments, 1),\r\n\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings          = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.progress.settings, parameters)\r\n          : $.extend({}, $.fn.progress.settings),\r\n\r\n        className       = settings.className,\r\n        metadata        = settings.metadata,\r\n        namespace       = settings.namespace,\r\n        selector        = settings.selector,\r\n        error           = settings.error,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n\r\n        $module         = $(this),\r\n        $bar            = $(this).find(selector.bar),\r\n        $progress       = $(this).find(selector.progress),\r\n        $label          = $(this).find(selector.label),\r\n\r\n        element         = this,\r\n        instance        = $module.data(moduleNamespace),\r\n\r\n        animating = false,\r\n        transitionEnd,\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.debug('Initializing progress bar', settings);\r\n\r\n          module.set.duration();\r\n          module.set.transitionEvent();\r\n\r\n          module.read.metadata();\r\n          module.read.settings();\r\n\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of progress', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n        destroy: function() {\r\n          module.verbose('Destroying previous progress for', $module);\r\n          clearInterval(instance.interval);\r\n          module.remove.state();\r\n          $module.removeData(moduleNamespace);\r\n          instance = undefined;\r\n        },\r\n\r\n        reset: function() {\r\n          module.remove.nextValue();\r\n          module.update.progress(0);\r\n        },\r\n\r\n        complete: function() {\r\n          if(module.percent === undefined || module.percent < 100) {\r\n            module.remove.progressPoll();\r\n            module.set.percent(100);\r\n          }\r\n        },\r\n\r\n        read: {\r\n          metadata: function() {\r\n            var\r\n              data = {\r\n                percent : $module.data(metadata.percent),\r\n                total   : $module.data(metadata.total),\r\n                value   : $module.data(metadata.value)\r\n              }\r\n            ;\r\n            if(data.percent) {\r\n              module.debug('Current percent value set from metadata', data.percent);\r\n              module.set.percent(data.percent);\r\n            }\r\n            if(data.total) {\r\n              module.debug('Total value set from metadata', data.total);\r\n              module.set.total(data.total);\r\n            }\r\n            if(data.value) {\r\n              module.debug('Current value set from metadata', data.value);\r\n              module.set.value(data.value);\r\n              module.set.progress(data.value);\r\n            }\r\n          },\r\n          settings: function() {\r\n            if(settings.total !== false) {\r\n              module.debug('Current total set in settings', settings.total);\r\n              module.set.total(settings.total);\r\n            }\r\n            if(settings.value !== false) {\r\n              module.debug('Current value set in settings', settings.value);\r\n              module.set.value(settings.value);\r\n              module.set.progress(module.value);\r\n            }\r\n            if(settings.percent !== false) {\r\n              module.debug('Current percent set in settings', settings.percent);\r\n              module.set.percent(settings.percent);\r\n            }\r\n          }\r\n        },\r\n\r\n        bind: {\r\n          transitionEnd: function(callback) {\r\n            var\r\n              transitionEnd = module.get.transitionEnd()\r\n            ;\r\n            $bar\r\n              .one(transitionEnd + eventNamespace, function(event) {\r\n                clearTimeout(module.failSafeTimer);\r\n                callback.call(this, event);\r\n              })\r\n            ;\r\n            module.failSafeTimer = setTimeout(function() {\r\n              $bar.triggerHandler(transitionEnd);\r\n            }, settings.duration + settings.failSafeDelay);\r\n            module.verbose('Adding fail safe timer', module.timer);\r\n          }\r\n        },\r\n\r\n        increment: function(incrementValue) {\r\n          var\r\n            maxValue,\r\n            startValue,\r\n            newValue\r\n          ;\r\n          if( module.has.total() ) {\r\n            startValue     = module.get.value();\r\n            incrementValue = incrementValue || 1;\r\n            newValue       = startValue + incrementValue;\r\n          }\r\n          else {\r\n            startValue     = module.get.percent();\r\n            incrementValue = incrementValue || module.get.randomValue();\r\n\r\n            newValue       = startValue + incrementValue;\r\n            maxValue       = 100;\r\n            module.debug('Incrementing percentage by', startValue, newValue);\r\n          }\r\n          newValue = module.get.normalizedValue(newValue);\r\n          module.set.progress(newValue);\r\n        },\r\n        decrement: function(decrementValue) {\r\n          var\r\n            total     = module.get.total(),\r\n            startValue,\r\n            newValue\r\n          ;\r\n          if(total) {\r\n            startValue     =  module.get.value();\r\n            decrementValue =  decrementValue || 1;\r\n            newValue       =  startValue - decrementValue;\r\n            module.debug('Decrementing value by', decrementValue, startValue);\r\n          }\r\n          else {\r\n            startValue     =  module.get.percent();\r\n            decrementValue =  decrementValue || module.get.randomValue();\r\n            newValue       =  startValue - decrementValue;\r\n            module.debug('Decrementing percentage by', decrementValue, startValue);\r\n          }\r\n          newValue = module.get.normalizedValue(newValue);\r\n          module.set.progress(newValue);\r\n        },\r\n\r\n        has: {\r\n          progressPoll: function() {\r\n            return module.progressPoll;\r\n          },\r\n          total: function() {\r\n            return (module.get.total() !== false);\r\n          }\r\n        },\r\n\r\n        get: {\r\n          text: function(templateText) {\r\n            var\r\n              value   = module.value                || 0,\r\n              total   = module.total                || 0,\r\n              percent = (animating)\r\n                ? module.get.displayPercent()\r\n                : module.percent || 0,\r\n              left = (module.total > 0)\r\n                ? (total - value)\r\n                : (100 - percent)\r\n            ;\r\n            templateText = templateText || '';\r\n            templateText = templateText\r\n              .replace('{value}', value)\r\n              .replace('{total}', total)\r\n              .replace('{left}', left)\r\n              .replace('{percent}', percent)\r\n            ;\r\n            module.verbose('Adding variables to progress bar text', templateText);\r\n            return templateText;\r\n          },\r\n\r\n          normalizedValue: function(value) {\r\n            if(value < 0) {\r\n              module.debug('Value cannot decrement below 0');\r\n              return 0;\r\n            }\r\n            if(module.has.total()) {\r\n              if(value > module.total) {\r\n                module.debug('Value cannot increment above total', module.total);\r\n                return module.total;\r\n              }\r\n            }\r\n            else if(value > 100 ) {\r\n              module.debug('Value cannot increment above 100 percent');\r\n              return 100;\r\n            }\r\n            return value;\r\n          },\r\n\r\n          updateInterval: function() {\r\n            if(settings.updateInterval == 'auto') {\r\n              return settings.duration;\r\n            }\r\n            return settings.updateInterval;\r\n          },\r\n\r\n          randomValue: function() {\r\n            module.debug('Generating random increment percentage');\r\n            return Math.floor((Math.random() * settings.random.max) + settings.random.min);\r\n          },\r\n\r\n          numericValue: function(value) {\r\n            return (typeof value === 'string')\r\n              ? (value.replace(/[^\\d.]/g, '') !== '')\r\n                ? +(value.replace(/[^\\d.]/g, ''))\r\n                : false\r\n              : value\r\n            ;\r\n          },\r\n\r\n          transitionEnd: function() {\r\n            var\r\n              element     = document.createElement('element'),\r\n              transitions = {\r\n                'transition'       :'transitionend',\r\n                'OTransition'      :'oTransitionEnd',\r\n                'MozTransition'    :'transitionend',\r\n                'WebkitTransition' :'webkitTransitionEnd'\r\n              },\r\n              transition\r\n            ;\r\n            for(transition in transitions){\r\n              if( element.style[transition] !== undefined ){\r\n                return transitions[transition];\r\n              }\r\n            }\r\n          },\r\n\r\n          // gets current displayed percentage (if animating values this is the intermediary value)\r\n          displayPercent: function() {\r\n            var\r\n              barWidth       = $bar.width(),\r\n              totalWidth     = $module.width(),\r\n              minDisplay     = parseInt($bar.css('min-width'), 10),\r\n              displayPercent = (barWidth > minDisplay)\r\n                ? (barWidth / totalWidth * 100)\r\n                : module.percent\r\n            ;\r\n            return (settings.precision > 0)\r\n              ? Math.round(displayPercent * (10 * settings.precision)) / (10 * settings.precision)\r\n              : Math.round(displayPercent)\r\n            ;\r\n          },\r\n\r\n          percent: function() {\r\n            return module.percent || 0;\r\n          },\r\n          value: function() {\r\n            return module.nextValue || module.value || 0;\r\n          },\r\n          total: function() {\r\n            return module.total || false;\r\n          }\r\n        },\r\n\r\n        create: {\r\n          progressPoll: function() {\r\n            module.progressPoll = setTimeout(function() {\r\n              module.update.toNextValue();\r\n              module.remove.progressPoll();\r\n            }, module.get.updateInterval());\r\n          },\r\n        },\r\n\r\n        is: {\r\n          complete: function() {\r\n            return module.is.success() || module.is.warning() || module.is.error();\r\n          },\r\n          success: function() {\r\n            return $module.hasClass(className.success);\r\n          },\r\n          warning: function() {\r\n            return $module.hasClass(className.warning);\r\n          },\r\n          error: function() {\r\n            return $module.hasClass(className.error);\r\n          },\r\n          active: function() {\r\n            return $module.hasClass(className.active);\r\n          },\r\n          visible: function() {\r\n            return $module.is(':visible');\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          progressPoll: function() {\r\n            module.verbose('Removing progress poll timer');\r\n            if(module.progressPoll) {\r\n              clearTimeout(module.progressPoll);\r\n              delete module.progressPoll;\r\n            }\r\n          },\r\n          nextValue: function() {\r\n            module.verbose('Removing progress value stored for next update');\r\n            delete module.nextValue;\r\n          },\r\n          state: function() {\r\n            module.verbose('Removing stored state');\r\n            delete module.total;\r\n            delete module.percent;\r\n            delete module.value;\r\n          },\r\n          active: function() {\r\n            module.verbose('Removing active state');\r\n            $module.removeClass(className.active);\r\n          },\r\n          success: function() {\r\n            module.verbose('Removing success state');\r\n            $module.removeClass(className.success);\r\n          },\r\n          warning: function() {\r\n            module.verbose('Removing warning state');\r\n            $module.removeClass(className.warning);\r\n          },\r\n          error: function() {\r\n            module.verbose('Removing error state');\r\n            $module.removeClass(className.error);\r\n          }\r\n        },\r\n\r\n        set: {\r\n          barWidth: function(value) {\r\n            if(value > 100) {\r\n              module.error(error.tooHigh, value);\r\n            }\r\n            else if (value < 0) {\r\n              module.error(error.tooLow, value);\r\n            }\r\n            else {\r\n              $bar\r\n                .css('width', value + '%')\r\n              ;\r\n              $module\r\n                .attr('data-percent', parseInt(value, 10))\r\n              ;\r\n            }\r\n          },\r\n          duration: function(duration) {\r\n            duration = duration || settings.duration;\r\n            duration = (typeof duration == 'number')\r\n              ? duration + 'ms'\r\n              : duration\r\n            ;\r\n            module.verbose('Setting progress bar transition duration', duration);\r\n            $bar\r\n              .css({\r\n                'transition-duration':  duration\r\n              })\r\n            ;\r\n          },\r\n          percent: function(percent) {\r\n            percent = (typeof percent == 'string')\r\n              ? +(percent.replace('%', ''))\r\n              : percent\r\n            ;\r\n            // round display percentage\r\n            percent = (settings.precision > 0)\r\n              ? Math.round(percent * (10 * settings.precision)) / (10 * settings.precision)\r\n              : Math.round(percent)\r\n            ;\r\n            module.percent = percent;\r\n            if( !module.has.total() ) {\r\n              module.value = (settings.precision > 0)\r\n                ? Math.round( (percent / 100) * module.total * (10 * settings.precision)) / (10 * settings.precision)\r\n                : Math.round( (percent / 100) * module.total * 10) / 10\r\n              ;\r\n              if(settings.limitValues) {\r\n                module.value = (module.value > 100)\r\n                  ? 100\r\n                  : (module.value < 0)\r\n                    ? 0\r\n                    : module.value\r\n                ;\r\n              }\r\n            }\r\n            module.set.barWidth(percent);\r\n            module.set.labelInterval();\r\n            module.set.labels();\r\n            settings.onChange.call(element, percent, module.value, module.total);\r\n          },\r\n          labelInterval: function() {\r\n            var\r\n              animationCallback = function() {\r\n                module.verbose('Bar finished animating, removing continuous label updates');\r\n                clearInterval(module.interval);\r\n                animating = false;\r\n                module.set.labels();\r\n              }\r\n            ;\r\n            clearInterval(module.interval);\r\n            module.bind.transitionEnd(animationCallback);\r\n            animating = true;\r\n            module.interval = setInterval(function() {\r\n              var\r\n                isInDOM = $.contains(document.documentElement, element)\r\n              ;\r\n              if(!isInDOM) {\r\n                clearInterval(module.interval);\r\n                animating = false;\r\n              }\r\n              module.set.labels();\r\n            }, settings.framerate);\r\n          },\r\n          labels: function() {\r\n            module.verbose('Setting both bar progress and outer label text');\r\n            module.set.barLabel();\r\n            module.set.state();\r\n          },\r\n          label: function(text) {\r\n            text = text || '';\r\n            if(text) {\r\n              text = module.get.text(text);\r\n              module.verbose('Setting label to text', text);\r\n              $label.text(text);\r\n            }\r\n          },\r\n          state: function(percent) {\r\n            percent = (percent !== undefined)\r\n              ? percent\r\n              : module.percent\r\n            ;\r\n            if(percent === 100) {\r\n              if(settings.autoSuccess && !(module.is.warning() || module.is.error() || module.is.success())) {\r\n                module.set.success();\r\n                module.debug('Automatically triggering success at 100%');\r\n              }\r\n              else {\r\n                module.verbose('Reached 100% removing active state');\r\n                module.remove.active();\r\n                module.remove.progressPoll();\r\n              }\r\n            }\r\n            else if(percent > 0) {\r\n              module.verbose('Adjusting active progress bar label', percent);\r\n              module.set.active();\r\n            }\r\n            else {\r\n              module.remove.active();\r\n              module.set.label(settings.text.active);\r\n            }\r\n          },\r\n          barLabel: function(text) {\r\n            if(text !== undefined) {\r\n              $progress.text( module.get.text(text) );\r\n            }\r\n            else if(settings.label == 'ratio' && module.total) {\r\n              module.verbose('Adding ratio to bar label');\r\n              $progress.text( module.get.text(settings.text.ratio) );\r\n            }\r\n            else if(settings.label == 'percent') {\r\n              module.verbose('Adding percentage to bar label');\r\n              $progress.text( module.get.text(settings.text.percent) );\r\n            }\r\n          },\r\n          active: function(text) {\r\n            text = text || settings.text.active;\r\n            module.debug('Setting active state');\r\n            if(settings.showActivity && !module.is.active() ) {\r\n              $module.addClass(className.active);\r\n            }\r\n            module.remove.warning();\r\n            module.remove.error();\r\n            module.remove.success();\r\n            text = settings.onLabelUpdate('active', text, module.value, module.total);\r\n            if(text) {\r\n              module.set.label(text);\r\n            }\r\n            module.bind.transitionEnd(function() {\r\n              settings.onActive.call(element, module.value, module.total);\r\n            });\r\n          },\r\n          success : function(text) {\r\n            text = text || settings.text.success || settings.text.active;\r\n            module.debug('Setting success state');\r\n            $module.addClass(className.success);\r\n            module.remove.active();\r\n            module.remove.warning();\r\n            module.remove.error();\r\n            module.complete();\r\n            if(settings.text.success) {\r\n              text = settings.onLabelUpdate('success', text, module.value, module.total);\r\n              module.set.label(text);\r\n            }\r\n            else {\r\n              text = settings.onLabelUpdate('active', text, module.value, module.total);\r\n              module.set.label(text);\r\n            }\r\n            module.bind.transitionEnd(function() {\r\n              settings.onSuccess.call(element, module.total);\r\n            });\r\n          },\r\n          warning : function(text) {\r\n            text = text || settings.text.warning;\r\n            module.debug('Setting warning state');\r\n            $module.addClass(className.warning);\r\n            module.remove.active();\r\n            module.remove.success();\r\n            module.remove.error();\r\n            module.complete();\r\n            text = settings.onLabelUpdate('warning', text, module.value, module.total);\r\n            if(text) {\r\n              module.set.label(text);\r\n            }\r\n            module.bind.transitionEnd(function() {\r\n              settings.onWarning.call(element, module.value, module.total);\r\n            });\r\n          },\r\n          error : function(text) {\r\n            text = text || settings.text.error;\r\n            module.debug('Setting error state');\r\n            $module.addClass(className.error);\r\n            module.remove.active();\r\n            module.remove.success();\r\n            module.remove.warning();\r\n            module.complete();\r\n            text = settings.onLabelUpdate('error', text, module.value, module.total);\r\n            if(text) {\r\n              module.set.label(text);\r\n            }\r\n            module.bind.transitionEnd(function() {\r\n              settings.onError.call(element, module.value, module.total);\r\n            });\r\n          },\r\n          transitionEvent: function() {\r\n            transitionEnd = module.get.transitionEnd();\r\n          },\r\n          total: function(totalValue) {\r\n            module.total = totalValue;\r\n          },\r\n          value: function(value) {\r\n            module.value = value;\r\n          },\r\n          progress: function(value) {\r\n            if(!module.has.progressPoll()) {\r\n              module.debug('First update in progress update interval, immediately updating', value);\r\n              module.update.progress(value);\r\n              module.create.progressPoll();\r\n            }\r\n            else {\r\n              module.debug('Updated within interval, setting next update to use new value', value);\r\n              module.set.nextValue(value);\r\n            }\r\n          },\r\n          nextValue: function(value) {\r\n            module.nextValue = value;\r\n          }\r\n        },\r\n\r\n        update: {\r\n          toNextValue: function() {\r\n            var\r\n              nextValue = module.nextValue\r\n            ;\r\n            if(nextValue) {\r\n              module.debug('Update interval complete using last updated value', nextValue);\r\n              module.update.progress(nextValue);\r\n              module.remove.nextValue();\r\n            }\r\n          },\r\n          progress: function(value) {\r\n            var\r\n              percentComplete\r\n            ;\r\n            value = module.get.numericValue(value);\r\n            if(value === false) {\r\n              module.error(error.nonNumeric, value);\r\n            }\r\n            value = module.get.normalizedValue(value);\r\n            if( module.has.total() ) {\r\n              module.set.value(value);\r\n              percentComplete = (value / module.total) * 100;\r\n              module.debug('Calculating percent complete from total', percentComplete);\r\n              module.set.percent( percentComplete );\r\n            }\r\n            else {\r\n              percentComplete = value;\r\n              module.debug('Setting value to exact percentage value', percentComplete);\r\n              module.set.percent( percentComplete );\r\n            }\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.progress.settings = {\r\n\r\n  name         : 'Progress',\r\n  namespace    : 'progress',\r\n\r\n  silent       : false,\r\n  debug        : false,\r\n  verbose      : false,\r\n  performance  : true,\r\n\r\n  random       : {\r\n    min : 2,\r\n    max : 5\r\n  },\r\n\r\n  duration       : 300,\r\n\r\n  updateInterval : 'auto',\r\n\r\n  autoSuccess    : true,\r\n  showActivity   : true,\r\n  limitValues    : true,\r\n\r\n  label          : 'percent',\r\n  precision      : 0,\r\n  framerate      : (1000 / 30), /// 30 fps\r\n\r\n  percent        : false,\r\n  total          : false,\r\n  value          : false,\r\n\r\n  // delay in ms for fail safe animation callback\r\n  failSafeDelay : 100,\r\n\r\n  onLabelUpdate : function(state, text, value, total){\r\n    return text;\r\n  },\r\n  onChange      : function(percent, value, total){},\r\n  onSuccess     : function(total){},\r\n  onActive      : function(value, total){},\r\n  onError       : function(value, total){},\r\n  onWarning     : function(value, total){},\r\n\r\n  error    : {\r\n    method     : 'The method you called is not defined.',\r\n    nonNumeric : 'Progress value is non numeric',\r\n    tooHigh    : 'Value specified is above 100%',\r\n    tooLow     : 'Value specified is below 0%'\r\n  },\r\n\r\n  regExp: {\r\n    variable: /\\{\\$*[A-z0-9]+\\}/g\r\n  },\r\n\r\n  metadata: {\r\n    percent : 'percent',\r\n    total   : 'total',\r\n    value   : 'value'\r\n  },\r\n\r\n  selector : {\r\n    bar      : '> .bar',\r\n    label    : '> .label',\r\n    progress : '.bar > .progress'\r\n  },\r\n\r\n  text : {\r\n    active  : false,\r\n    error   : false,\r\n    success : false,\r\n    warning : false,\r\n    percent : '{percent}%',\r\n    ratio   : '{value} of {total}'\r\n  },\r\n\r\n  className : {\r\n    active  : 'active',\r\n    error   : 'error',\r\n    success : 'success',\r\n    warning : 'warning'\r\n  }\r\n\r\n};\r\n\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Rating\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.rating = function(parameters) {\r\n  var\r\n    $allModules     = $(this),\r\n    moduleSelector  = $allModules.selector || '',\r\n\r\n    time            = new Date().getTime(),\r\n    performance     = [],\r\n\r\n    query           = arguments[0],\r\n    methodInvoked   = (typeof query == 'string'),\r\n    queryArguments  = [].slice.call(arguments, 1),\r\n    returnedValue\r\n  ;\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings        = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.rating.settings, parameters)\r\n          : $.extend({}, $.fn.rating.settings),\r\n\r\n        namespace       = settings.namespace,\r\n        className       = settings.className,\r\n        metadata        = settings.metadata,\r\n        selector        = settings.selector,\r\n        error           = settings.error,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n\r\n        element         = this,\r\n        instance        = $(this).data(moduleNamespace),\r\n\r\n        $module         = $(this),\r\n        $icon           = $module.find(selector.icon),\r\n\r\n        initialLoad,\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.verbose('Initializing rating module', settings);\r\n\r\n          if($icon.length === 0) {\r\n            module.setup.layout();\r\n          }\r\n\r\n          if(settings.interactive) {\r\n            module.enable();\r\n          }\r\n          else {\r\n            module.disable();\r\n          }\r\n          module.set.initialLoad();\r\n          module.set.rating( module.get.initialRating() );\r\n          module.remove.initialLoad();\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Instantiating module', settings);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous instance', instance);\r\n          module.remove.events();\r\n          $module\r\n            .removeData(moduleNamespace)\r\n          ;\r\n        },\r\n\r\n        refresh: function() {\r\n          $icon   = $module.find(selector.icon);\r\n        },\r\n\r\n        setup: {\r\n          layout: function() {\r\n            var\r\n              maxRating = module.get.maxRating(),\r\n              html      = $.fn.rating.settings.templates.icon(maxRating)\r\n            ;\r\n            module.debug('Generating icon html dynamically');\r\n            $module\r\n              .html(html)\r\n            ;\r\n            module.refresh();\r\n          }\r\n        },\r\n\r\n        event: {\r\n          mouseenter: function() {\r\n            var\r\n              $activeIcon = $(this)\r\n            ;\r\n            $activeIcon\r\n              .nextAll()\r\n                .removeClass(className.selected)\r\n            ;\r\n            $module\r\n              .addClass(className.selected)\r\n            ;\r\n            $activeIcon\r\n              .addClass(className.selected)\r\n                .prevAll()\r\n                .addClass(className.selected)\r\n            ;\r\n          },\r\n          mouseleave: function() {\r\n            $module\r\n              .removeClass(className.selected)\r\n            ;\r\n            $icon\r\n              .removeClass(className.selected)\r\n            ;\r\n          },\r\n          click: function() {\r\n            var\r\n              $activeIcon   = $(this),\r\n              currentRating = module.get.rating(),\r\n              rating        = $icon.index($activeIcon) + 1,\r\n              canClear      = (settings.clearable == 'auto')\r\n               ? ($icon.length === 1)\r\n               : settings.clearable\r\n            ;\r\n            if(canClear && currentRating == rating) {\r\n              module.clearRating();\r\n            }\r\n            else {\r\n              module.set.rating( rating );\r\n            }\r\n          }\r\n        },\r\n\r\n        clearRating: function() {\r\n          module.debug('Clearing current rating');\r\n          module.set.rating(0);\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            module.verbose('Binding events');\r\n            $module\r\n              .on('mouseenter' + eventNamespace, selector.icon, module.event.mouseenter)\r\n              .on('mouseleave' + eventNamespace, selector.icon, module.event.mouseleave)\r\n              .on('click'      + eventNamespace, selector.icon, module.event.click)\r\n            ;\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          events: function() {\r\n            module.verbose('Removing events');\r\n            $module\r\n              .off(eventNamespace)\r\n            ;\r\n          },\r\n          initialLoad: function() {\r\n            initialLoad = false;\r\n          }\r\n        },\r\n\r\n        enable: function() {\r\n          module.debug('Setting rating to interactive mode');\r\n          module.bind.events();\r\n          $module\r\n            .removeClass(className.disabled)\r\n          ;\r\n        },\r\n\r\n        disable: function() {\r\n          module.debug('Setting rating to read-only mode');\r\n          module.remove.events();\r\n          $module\r\n            .addClass(className.disabled)\r\n          ;\r\n        },\r\n\r\n        is: {\r\n          initialLoad: function() {\r\n            return initialLoad;\r\n          }\r\n        },\r\n\r\n        get: {\r\n          initialRating: function() {\r\n            if($module.data(metadata.rating) !== undefined) {\r\n              $module.removeData(metadata.rating);\r\n              return $module.data(metadata.rating);\r\n            }\r\n            return settings.initialRating;\r\n          },\r\n          maxRating: function() {\r\n            if($module.data(metadata.maxRating) !== undefined) {\r\n              $module.removeData(metadata.maxRating);\r\n              return $module.data(metadata.maxRating);\r\n            }\r\n            return settings.maxRating;\r\n          },\r\n          rating: function() {\r\n            var\r\n              currentRating = $icon.filter('.' + className.active).length\r\n            ;\r\n            module.verbose('Current rating retrieved', currentRating);\r\n            return currentRating;\r\n          }\r\n        },\r\n\r\n        set: {\r\n          rating: function(rating) {\r\n            var\r\n              ratingIndex = (rating - 1 >= 0)\r\n                ? (rating - 1)\r\n                : 0,\r\n              $activeIcon = $icon.eq(ratingIndex)\r\n            ;\r\n            $module\r\n              .removeClass(className.selected)\r\n            ;\r\n            $icon\r\n              .removeClass(className.selected)\r\n              .removeClass(className.active)\r\n            ;\r\n            if(rating > 0) {\r\n              module.verbose('Setting current rating to', rating);\r\n              $activeIcon\r\n                .prevAll()\r\n                .addBack()\r\n                  .addClass(className.active)\r\n              ;\r\n            }\r\n            if(!module.is.initialLoad()) {\r\n              settings.onRate.call(element, rating);\r\n            }\r\n          },\r\n          initialLoad: function() {\r\n            initialLoad = true;\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if($allModules.length > 1) {\r\n              title += ' ' + '(' + $allModules.length + ')';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.rating.settings = {\r\n\r\n  name          : 'Rating',\r\n  namespace     : 'rating',\r\n\r\n  slent         : false,\r\n  debug         : false,\r\n  verbose       : false,\r\n  performance   : true,\r\n\r\n  initialRating : 0,\r\n  interactive   : true,\r\n  maxRating     : 4,\r\n  clearable     : 'auto',\r\n\r\n  fireOnInit    : false,\r\n\r\n  onRate        : function(rating){},\r\n\r\n  error         : {\r\n    method    : 'The method you called is not defined',\r\n    noMaximum : 'No maximum rating specified. Cannot generate HTML automatically'\r\n  },\r\n\r\n\r\n  metadata: {\r\n    rating    : 'rating',\r\n    maxRating : 'maxRating'\r\n  },\r\n\r\n  className : {\r\n    active   : 'active',\r\n    disabled : 'disabled',\r\n    selected : 'selected',\r\n    loading  : 'loading'\r\n  },\r\n\r\n  selector  : {\r\n    icon : '.icon'\r\n  },\r\n\r\n  templates: {\r\n    icon: function(maxRating) {\r\n      var\r\n        icon = 1,\r\n        html = ''\r\n      ;\r\n      while(icon <= maxRating) {\r\n        html += '<i class=\"icon\"></i>';\r\n        icon++;\r\n      }\r\n      return html;\r\n    }\r\n  }\r\n\r\n};\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Search\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.search = function(parameters) {\r\n  var\r\n    $allModules     = $(this),\r\n    moduleSelector  = $allModules.selector || '',\r\n\r\n    time            = new Date().getTime(),\r\n    performance     = [],\r\n\r\n    query           = arguments[0],\r\n    methodInvoked   = (typeof query == 'string'),\r\n    queryArguments  = [].slice.call(arguments, 1),\r\n    returnedValue\r\n  ;\r\n  $(this)\r\n    .each(function() {\r\n      var\r\n        settings          = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.search.settings, parameters)\r\n          : $.extend({}, $.fn.search.settings),\r\n\r\n        className        = settings.className,\r\n        metadata         = settings.metadata,\r\n        regExp           = settings.regExp,\r\n        fields           = settings.fields,\r\n        selector         = settings.selector,\r\n        error            = settings.error,\r\n        namespace        = settings.namespace,\r\n\r\n        eventNamespace   = '.' + namespace,\r\n        moduleNamespace  = namespace + '-module',\r\n\r\n        $module          = $(this),\r\n        $prompt          = $module.find(selector.prompt),\r\n        $searchButton    = $module.find(selector.searchButton),\r\n        $results         = $module.find(selector.results),\r\n        $result          = $module.find(selector.result),\r\n        $category        = $module.find(selector.category),\r\n\r\n        element          = this,\r\n        instance         = $module.data(moduleNamespace),\r\n\r\n        disabledBubbled  = false,\r\n        resultsDismissed = false,\r\n\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.verbose('Initializing module');\r\n          module.determine.searchFields();\r\n          module.bind.events();\r\n          module.set.type();\r\n          module.create.results();\r\n          module.instantiate();\r\n        },\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n        destroy: function() {\r\n          module.verbose('Destroying instance');\r\n          $module\r\n            .off(eventNamespace)\r\n            .removeData(moduleNamespace)\r\n          ;\r\n        },\r\n\r\n        refresh: function() {\r\n          module.debug('Refreshing selector cache');\r\n          $prompt         = $module.find(selector.prompt);\r\n          $searchButton   = $module.find(selector.searchButton);\r\n          $category       = $module.find(selector.category);\r\n          $results        = $module.find(selector.results);\r\n          $result         = $module.find(selector.result);\r\n        },\r\n\r\n        refreshResults: function() {\r\n          $results = $module.find(selector.results);\r\n          $result  = $module.find(selector.result);\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            module.verbose('Binding events to search');\r\n            if(settings.automatic) {\r\n              $module\r\n                .on(module.get.inputEvent() + eventNamespace, selector.prompt, module.event.input)\r\n              ;\r\n              $prompt\r\n                .attr('autocomplete', 'off')\r\n              ;\r\n            }\r\n            $module\r\n              // prompt\r\n              .on('focus'     + eventNamespace, selector.prompt, module.event.focus)\r\n              .on('blur'      + eventNamespace, selector.prompt, module.event.blur)\r\n              .on('keydown'   + eventNamespace, selector.prompt, module.handleKeyboard)\r\n              // search button\r\n              .on('click'     + eventNamespace, selector.searchButton, module.query)\r\n              // results\r\n              .on('mousedown' + eventNamespace, selector.results, module.event.result.mousedown)\r\n              .on('mouseup'   + eventNamespace, selector.results, module.event.result.mouseup)\r\n              .on('click'     + eventNamespace, selector.result,  module.event.result.click)\r\n            ;\r\n          }\r\n        },\r\n\r\n        determine: {\r\n          searchFields: function() {\r\n            // this makes sure $.extend does not add specified search fields to default fields\r\n            // this is the only setting which should not extend defaults\r\n            if(parameters && parameters.searchFields !== undefined) {\r\n              settings.searchFields = parameters.searchFields;\r\n            }\r\n          }\r\n        },\r\n\r\n        event: {\r\n          input: function() {\r\n            clearTimeout(module.timer);\r\n            module.timer = setTimeout(module.query, settings.searchDelay);\r\n          },\r\n          focus: function() {\r\n            module.set.focus();\r\n            if(settings.searchOnFocus && module.has.minimumCharacters() ) {\r\n              module.query(function() {\r\n                if(module.can.show() ) {\r\n                  module.showResults();\r\n                }\r\n              });\r\n            }\r\n          },\r\n          blur: function(event) {\r\n            var\r\n              pageLostFocus = (document.activeElement === this),\r\n              callback      = function() {\r\n                module.cancel.query();\r\n                module.remove.focus();\r\n                module.timer = setTimeout(module.hideResults, settings.hideDelay);\r\n              }\r\n            ;\r\n            if(pageLostFocus) {\r\n              return;\r\n            }\r\n            resultsDismissed = false;\r\n            if(module.resultsClicked) {\r\n              module.debug('Determining if user action caused search to close');\r\n              $module\r\n                .one('click.close' + eventNamespace, selector.results, function(event) {\r\n                  if(module.is.inMessage(event) || disabledBubbled) {\r\n                    $prompt.focus();\r\n                    return;\r\n                  }\r\n                  disabledBubbled = false;\r\n                  if( !module.is.animating() && !module.is.hidden()) {\r\n                    callback();\r\n                  }\r\n                })\r\n              ;\r\n            }\r\n            else {\r\n              module.debug('Input blurred without user action, closing results');\r\n              callback();\r\n            }\r\n          },\r\n          result: {\r\n            mousedown: function() {\r\n              module.resultsClicked = true;\r\n            },\r\n            mouseup: function() {\r\n              module.resultsClicked = false;\r\n            },\r\n            click: function(event) {\r\n              module.debug('Search result selected');\r\n              var\r\n                $result = $(this),\r\n                $title  = $result.find(selector.title).eq(0),\r\n                $link   = $result.is('a[href]')\r\n                  ? $result\r\n                  : $result.find('a[href]').eq(0),\r\n                href    = $link.attr('href')   || false,\r\n                target  = $link.attr('target') || false,\r\n                title   = $title.html(),\r\n                // title is used for result lookup\r\n                value   = ($title.length > 0)\r\n                  ? $title.text()\r\n                  : false,\r\n                results = module.get.results(),\r\n                result  = $result.data(metadata.result) || module.get.result(value, results),\r\n                returnedValue\r\n              ;\r\n              if( $.isFunction(settings.onSelect) ) {\r\n                if(settings.onSelect.call(element, result, results) === false) {\r\n                  module.debug('Custom onSelect callback cancelled default select action');\r\n                  disabledBubbled = true;\r\n                  return;\r\n                }\r\n              }\r\n              module.hideResults();\r\n              if(value) {\r\n                module.set.value(value);\r\n              }\r\n              if(href) {\r\n                module.verbose('Opening search link found in result', $link);\r\n                if(target == '_blank' || event.ctrlKey) {\r\n                  window.open(href);\r\n                }\r\n                else {\r\n                  window.location.href = (href);\r\n                }\r\n              }\r\n            }\r\n          }\r\n        },\r\n        handleKeyboard: function(event) {\r\n          var\r\n            // force selector refresh\r\n            $result         = $module.find(selector.result),\r\n            $category       = $module.find(selector.category),\r\n            $activeResult   = $result.filter('.' + className.active),\r\n            currentIndex    = $result.index( $activeResult ),\r\n            resultSize      = $result.length,\r\n            hasActiveResult = $activeResult.length > 0,\r\n\r\n            keyCode         = event.which,\r\n            keys            = {\r\n              backspace : 8,\r\n              enter     : 13,\r\n              escape    : 27,\r\n              upArrow   : 38,\r\n              downArrow : 40\r\n            },\r\n            newIndex\r\n          ;\r\n          // search shortcuts\r\n          if(keyCode == keys.escape) {\r\n            module.verbose('Escape key pressed, blurring search field');\r\n            module.hideResults();\r\n            resultsDismissed = true;\r\n          }\r\n          if( module.is.visible() ) {\r\n            if(keyCode == keys.enter) {\r\n              module.verbose('Enter key pressed, selecting active result');\r\n              if( $result.filter('.' + className.active).length > 0 ) {\r\n                module.event.result.click.call($result.filter('.' + className.active), event);\r\n                event.preventDefault();\r\n                return false;\r\n              }\r\n            }\r\n            else if(keyCode == keys.upArrow && hasActiveResult) {\r\n              module.verbose('Up key pressed, changing active result');\r\n              newIndex = (currentIndex - 1 < 0)\r\n                ? currentIndex\r\n                : currentIndex - 1\r\n              ;\r\n              $category\r\n                .removeClass(className.active)\r\n              ;\r\n              $result\r\n                .removeClass(className.active)\r\n                .eq(newIndex)\r\n                  .addClass(className.active)\r\n                  .closest($category)\r\n                    .addClass(className.active)\r\n              ;\r\n              event.preventDefault();\r\n            }\r\n            else if(keyCode == keys.downArrow) {\r\n              module.verbose('Down key pressed, changing active result');\r\n              newIndex = (currentIndex + 1 >= resultSize)\r\n                ? currentIndex\r\n                : currentIndex + 1\r\n              ;\r\n              $category\r\n                .removeClass(className.active)\r\n              ;\r\n              $result\r\n                .removeClass(className.active)\r\n                .eq(newIndex)\r\n                  .addClass(className.active)\r\n                  .closest($category)\r\n                    .addClass(className.active)\r\n              ;\r\n              event.preventDefault();\r\n            }\r\n          }\r\n          else {\r\n            // query shortcuts\r\n            if(keyCode == keys.enter) {\r\n              module.verbose('Enter key pressed, executing query');\r\n              module.query();\r\n              module.set.buttonPressed();\r\n              $prompt.one('keyup', module.remove.buttonFocus);\r\n            }\r\n          }\r\n        },\r\n\r\n        setup: {\r\n          api: function(searchTerm, callback) {\r\n            var\r\n              apiSettings = {\r\n                debug             : settings.debug,\r\n                on                : false,\r\n                cache             : true,\r\n                action            : 'search',\r\n                urlData           : {\r\n                  query : searchTerm\r\n                },\r\n                onSuccess         : function(response) {\r\n                  module.parse.response.call(element, response, searchTerm);\r\n                  callback();\r\n                },\r\n                onFailure         : function() {\r\n                  module.displayMessage(error.serverError);\r\n                  callback();\r\n                },\r\n                onAbort : function(response) {\r\n                },\r\n                onError           : module.error\r\n              },\r\n              searchHTML\r\n            ;\r\n            $.extend(true, apiSettings, settings.apiSettings);\r\n            module.verbose('Setting up API request', apiSettings);\r\n            $module.api(apiSettings);\r\n          }\r\n        },\r\n\r\n        can: {\r\n          useAPI: function() {\r\n            return $.fn.api !== undefined;\r\n          },\r\n          show: function() {\r\n            return module.is.focused() && !module.is.visible() && !module.is.empty();\r\n          },\r\n          transition: function() {\r\n            return settings.transition && $.fn.transition !== undefined && $module.transition('is supported');\r\n          }\r\n        },\r\n\r\n        is: {\r\n          animating: function() {\r\n            return $results.hasClass(className.animating);\r\n          },\r\n          hidden: function() {\r\n            return $results.hasClass(className.hidden);\r\n          },\r\n          inMessage: function(event) {\r\n            if(!event.target) {\r\n              return;\r\n            }\r\n            var\r\n              $target = $(event.target),\r\n              isInDOM = $.contains(document.documentElement, event.target)\r\n            ;\r\n            return (isInDOM && $target.closest(selector.message).length > 0);\r\n          },\r\n          empty: function() {\r\n            return ($results.html() === '');\r\n          },\r\n          visible: function() {\r\n            return ($results.filter(':visible').length > 0);\r\n          },\r\n          focused: function() {\r\n            return ($prompt.filter(':focus').length > 0);\r\n          }\r\n        },\r\n\r\n        get: {\r\n          inputEvent: function() {\r\n            var\r\n              prompt = $prompt[0],\r\n              inputEvent   = (prompt !== undefined && prompt.oninput !== undefined)\r\n                ? 'input'\r\n                : (prompt !== undefined && prompt.onpropertychange !== undefined)\r\n                  ? 'propertychange'\r\n                  : 'keyup'\r\n            ;\r\n            return inputEvent;\r\n          },\r\n          value: function() {\r\n            return $prompt.val();\r\n          },\r\n          results: function() {\r\n            var\r\n              results = $module.data(metadata.results)\r\n            ;\r\n            return results;\r\n          },\r\n          result: function(value, results) {\r\n            var\r\n              lookupFields = ['title', 'id'],\r\n              result       = false\r\n            ;\r\n            value = (value !== undefined)\r\n              ? value\r\n              : module.get.value()\r\n            ;\r\n            results = (results !== undefined)\r\n              ? results\r\n              : module.get.results()\r\n            ;\r\n            if(settings.type === 'category') {\r\n              module.debug('Finding result that matches', value);\r\n              $.each(results, function(index, category) {\r\n                if($.isArray(category.results)) {\r\n                  result = module.search.object(value, category.results, lookupFields)[0];\r\n                  // don't continue searching if a result is found\r\n                  if(result) {\r\n                    return false;\r\n                  }\r\n                }\r\n              });\r\n            }\r\n            else {\r\n              module.debug('Finding result in results object', value);\r\n              result = module.search.object(value, results, lookupFields)[0];\r\n            }\r\n            return result || false;\r\n          },\r\n        },\r\n\r\n        select: {\r\n          firstResult: function() {\r\n            module.verbose('Selecting first result');\r\n            $result.first().addClass(className.active);\r\n          }\r\n        },\r\n\r\n        set: {\r\n          focus: function() {\r\n            $module.addClass(className.focus);\r\n          },\r\n          loading: function() {\r\n            $module.addClass(className.loading);\r\n          },\r\n          value: function(value) {\r\n            module.verbose('Setting search input value', value);\r\n            $prompt\r\n              .val(value)\r\n            ;\r\n          },\r\n          type: function(type) {\r\n            type = type || settings.type;\r\n            if(settings.type == 'category') {\r\n              $module.addClass(settings.type);\r\n            }\r\n          },\r\n          buttonPressed: function() {\r\n            $searchButton.addClass(className.pressed);\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          loading: function() {\r\n            $module.removeClass(className.loading);\r\n          },\r\n          focus: function() {\r\n            $module.removeClass(className.focus);\r\n          },\r\n          buttonPressed: function() {\r\n            $searchButton.removeClass(className.pressed);\r\n          }\r\n        },\r\n\r\n        query: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          var\r\n            searchTerm = module.get.value(),\r\n            cache = module.read.cache(searchTerm)\r\n          ;\r\n          callback = callback || function() {};\r\n          if( module.has.minimumCharacters() )  {\r\n            if(cache) {\r\n              module.debug('Reading result from cache', searchTerm);\r\n              module.save.results(cache.results);\r\n              module.addResults(cache.html);\r\n              module.inject.id(cache.results);\r\n              callback();\r\n            }\r\n            else {\r\n              module.debug('Querying for', searchTerm);\r\n              if($.isPlainObject(settings.source) || $.isArray(settings.source)) {\r\n                module.search.local(searchTerm);\r\n                callback();\r\n              }\r\n              else if( module.can.useAPI() ) {\r\n                module.search.remote(searchTerm, callback);\r\n              }\r\n              else {\r\n                module.error(error.source);\r\n                callback();\r\n              }\r\n            }\r\n            settings.onSearchQuery.call(element, searchTerm);\r\n          }\r\n          else {\r\n            module.hideResults();\r\n          }\r\n        },\r\n\r\n        search: {\r\n          local: function(searchTerm) {\r\n            var\r\n              results = module.search.object(searchTerm, settings.content),\r\n              searchHTML\r\n            ;\r\n            module.set.loading();\r\n            module.save.results(results);\r\n            module.debug('Returned local search results', results);\r\n\r\n            searchHTML = module.generateResults({\r\n              results: results\r\n            });\r\n            module.remove.loading();\r\n            module.addResults(searchHTML);\r\n            module.inject.id(results);\r\n            module.write.cache(searchTerm, {\r\n              html    : searchHTML,\r\n              results : results\r\n            });\r\n          },\r\n          remote: function(searchTerm, callback) {\r\n            callback = $.isFunction(callback)\r\n              ? callback\r\n              : function(){}\r\n            ;\r\n            if($module.api('is loading')) {\r\n              $module.api('abort');\r\n            }\r\n            module.setup.api(searchTerm, callback);\r\n            $module\r\n              .api('query')\r\n            ;\r\n          },\r\n          object: function(searchTerm, source, searchFields) {\r\n            var\r\n              results      = [],\r\n              fuzzyResults = [],\r\n              searchExp    = searchTerm.toString().replace(regExp.escape, '\\\\$&'),\r\n              matchRegExp  = new RegExp(regExp.beginsWith + searchExp, 'i'),\r\n\r\n              // avoid duplicates when pushing results\r\n              addResult = function(array, result) {\r\n                var\r\n                  notResult      = ($.inArray(result, results) == -1),\r\n                  notFuzzyResult = ($.inArray(result, fuzzyResults) == -1)\r\n                ;\r\n                if(notResult && notFuzzyResult) {\r\n                  array.push(result);\r\n                }\r\n              }\r\n            ;\r\n            source = source || settings.source;\r\n            searchFields = (searchFields !== undefined)\r\n              ? searchFields\r\n              : settings.searchFields\r\n            ;\r\n\r\n            // search fields should be array to loop correctly\r\n            if(!$.isArray(searchFields)) {\r\n              searchFields = [searchFields];\r\n            }\r\n\r\n            // exit conditions if no source\r\n            if(source === undefined || source === false) {\r\n              module.error(error.source);\r\n              return [];\r\n            }\r\n\r\n            // iterate through search fields looking for matches\r\n            $.each(searchFields, function(index, field) {\r\n              $.each(source, function(label, content) {\r\n                var\r\n                  fieldExists = (typeof content[field] == 'string')\r\n                ;\r\n                if(fieldExists) {\r\n                  if( content[field].search(matchRegExp) !== -1) {\r\n                    // content starts with value (first in results)\r\n                    addResult(results, content);\r\n                  }\r\n                  else if(settings.searchFullText && module.fuzzySearch(searchTerm, content[field]) ) {\r\n                    // content fuzzy matches (last in results)\r\n                    addResult(fuzzyResults, content);\r\n                  }\r\n                }\r\n              });\r\n            });\r\n            return $.merge(results, fuzzyResults);\r\n          }\r\n        },\r\n\r\n        fuzzySearch: function(query, term) {\r\n          var\r\n            termLength  = term.length,\r\n            queryLength = query.length\r\n          ;\r\n          if(typeof query !== 'string') {\r\n            return false;\r\n          }\r\n          query = query.toLowerCase();\r\n          term  = term.toLowerCase();\r\n          if(queryLength > termLength) {\r\n            return false;\r\n          }\r\n          if(queryLength === termLength) {\r\n            return (query === term);\r\n          }\r\n          search: for (var characterIndex = 0, nextCharacterIndex = 0; characterIndex < queryLength; characterIndex++) {\r\n            var\r\n              queryCharacter = query.charCodeAt(characterIndex)\r\n            ;\r\n            while(nextCharacterIndex < termLength) {\r\n              if(term.charCodeAt(nextCharacterIndex++) === queryCharacter) {\r\n                continue search;\r\n              }\r\n            }\r\n            return false;\r\n          }\r\n          return true;\r\n        },\r\n\r\n        parse: {\r\n          response: function(response, searchTerm) {\r\n            var\r\n              searchHTML = module.generateResults(response)\r\n            ;\r\n            module.verbose('Parsing server response', response);\r\n            if(response !== undefined) {\r\n              if(searchTerm !== undefined && response[fields.results] !== undefined) {\r\n                module.addResults(searchHTML);\r\n                module.inject.id(response[fields.results]);\r\n                module.write.cache(searchTerm, {\r\n                  html    : searchHTML,\r\n                  results : response[fields.results]\r\n                });\r\n                module.save.results(response[fields.results]);\r\n              }\r\n            }\r\n          }\r\n        },\r\n\r\n        cancel: {\r\n          query: function() {\r\n            if( module.can.useAPI() ) {\r\n              $module.api('abort');\r\n            }\r\n          }\r\n        },\r\n\r\n        has: {\r\n          minimumCharacters: function() {\r\n            var\r\n              searchTerm    = module.get.value(),\r\n              numCharacters = searchTerm.length\r\n            ;\r\n            return (numCharacters >= settings.minCharacters);\r\n          },\r\n          results: function() {\r\n            if($results.length === 0) {\r\n              return false;\r\n            }\r\n            var\r\n              html = $results.html()\r\n            ;\r\n            return html != '';\r\n          }\r\n        },\r\n\r\n        clear: {\r\n          cache: function(value) {\r\n            var\r\n              cache = $module.data(metadata.cache)\r\n            ;\r\n            if(!value) {\r\n              module.debug('Clearing cache', value);\r\n              $module.removeData(metadata.cache);\r\n            }\r\n            else if(value && cache && cache[value]) {\r\n              module.debug('Removing value from cache', value);\r\n              delete cache[value];\r\n              $module.data(metadata.cache, cache);\r\n            }\r\n          }\r\n        },\r\n\r\n        read: {\r\n          cache: function(name) {\r\n            var\r\n              cache = $module.data(metadata.cache)\r\n            ;\r\n            if(settings.cache) {\r\n              module.verbose('Checking cache for generated html for query', name);\r\n              return (typeof cache == 'object') && (cache[name] !== undefined)\r\n                ? cache[name]\r\n                : false\r\n              ;\r\n            }\r\n            return false;\r\n          }\r\n        },\r\n\r\n        create: {\r\n          id: function(resultIndex, categoryIndex) {\r\n            var\r\n              resultID      = (resultIndex + 1), // not zero indexed\r\n              categoryID    = (categoryIndex + 1),\r\n              firstCharCode,\r\n              letterID,\r\n              id\r\n            ;\r\n            if(categoryIndex !== undefined) {\r\n              // start char code for \"A\"\r\n              letterID = String.fromCharCode(97 + categoryIndex);\r\n              id          = letterID + resultID;\r\n              module.verbose('Creating category result id', id);\r\n            }\r\n            else {\r\n              id = resultID;\r\n              module.verbose('Creating result id', id);\r\n            }\r\n            return id;\r\n          },\r\n          results: function() {\r\n            if($results.length === 0) {\r\n              $results = $('<div />')\r\n                .addClass(className.results)\r\n                .appendTo($module)\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        inject: {\r\n          result: function(result, resultIndex, categoryIndex) {\r\n            module.verbose('Injecting result into results');\r\n            var\r\n              $selectedResult = (categoryIndex !== undefined)\r\n                ? $results\r\n                    .children().eq(categoryIndex)\r\n                      .children(selector.result).eq(resultIndex)\r\n                : $results\r\n                    .children(selector.result).eq(resultIndex)\r\n            ;\r\n            module.verbose('Injecting results metadata', $selectedResult);\r\n            $selectedResult\r\n              .data(metadata.result, result)\r\n            ;\r\n          },\r\n          id: function(results) {\r\n            module.debug('Injecting unique ids into results');\r\n            var\r\n              // since results may be object, we must use counters\r\n              categoryIndex = 0,\r\n              resultIndex   = 0\r\n            ;\r\n            if(settings.type === 'category') {\r\n              // iterate through each category result\r\n              $.each(results, function(index, category) {\r\n                resultIndex = 0;\r\n                $.each(category.results, function(index, value) {\r\n                  var\r\n                    result = category.results[index]\r\n                  ;\r\n                  if(result.id === undefined) {\r\n                    result.id = module.create.id(resultIndex, categoryIndex);\r\n                  }\r\n                  module.inject.result(result, resultIndex, categoryIndex);\r\n                  resultIndex++;\r\n                });\r\n                categoryIndex++;\r\n              });\r\n            }\r\n            else {\r\n              // top level\r\n              $.each(results, function(index, value) {\r\n                var\r\n                  result = results[index]\r\n                ;\r\n                if(result.id === undefined) {\r\n                  result.id = module.create.id(resultIndex);\r\n                }\r\n                module.inject.result(result, resultIndex);\r\n                resultIndex++;\r\n              });\r\n            }\r\n            return results;\r\n          }\r\n        },\r\n\r\n        save: {\r\n          results: function(results) {\r\n            module.verbose('Saving current search results to metadata', results);\r\n            $module.data(metadata.results, results);\r\n          }\r\n        },\r\n\r\n        write: {\r\n          cache: function(name, value) {\r\n            var\r\n              cache = ($module.data(metadata.cache) !== undefined)\r\n                ? $module.data(metadata.cache)\r\n                : {}\r\n            ;\r\n            if(settings.cache) {\r\n              module.verbose('Writing generated html to cache', name, value);\r\n              cache[name] = value;\r\n              $module\r\n                .data(metadata.cache, cache)\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        addResults: function(html) {\r\n          if( $.isFunction(settings.onResultsAdd) ) {\r\n            if( settings.onResultsAdd.call($results, html) === false ) {\r\n              module.debug('onResultsAdd callback cancelled default action');\r\n              return false;\r\n            }\r\n          }\r\n          if(html) {\r\n            $results\r\n              .html(html)\r\n            ;\r\n            module.refreshResults();\r\n            if(settings.selectFirstResult) {\r\n              module.select.firstResult();\r\n            }\r\n            module.showResults();\r\n          }\r\n          else {\r\n            module.hideResults(function() {\r\n              $results.empty();\r\n            });\r\n          }\r\n        },\r\n\r\n        showResults: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if(resultsDismissed) {\r\n            return;\r\n          }\r\n          if(!module.is.visible() && module.has.results()) {\r\n            if( module.can.transition() ) {\r\n              module.debug('Showing results with css animations');\r\n              $results\r\n                .transition({\r\n                  animation  : settings.transition + ' in',\r\n                  debug      : settings.debug,\r\n                  verbose    : settings.verbose,\r\n                  duration   : settings.duration,\r\n                  onComplete : function() {\r\n                    callback();\r\n                  },\r\n                  queue      : true\r\n                })\r\n              ;\r\n            }\r\n            else {\r\n              module.debug('Showing results with javascript');\r\n              $results\r\n                .stop()\r\n                .fadeIn(settings.duration, settings.easing)\r\n              ;\r\n            }\r\n            settings.onResultsOpen.call($results);\r\n          }\r\n        },\r\n        hideResults: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if( module.is.visible() ) {\r\n            if( module.can.transition() ) {\r\n              module.debug('Hiding results with css animations');\r\n              $results\r\n                .transition({\r\n                  animation  : settings.transition + ' out',\r\n                  debug      : settings.debug,\r\n                  verbose    : settings.verbose,\r\n                  duration   : settings.duration,\r\n                  onComplete : function() {\r\n                    callback();\r\n                  },\r\n                  queue      : true\r\n                })\r\n              ;\r\n            }\r\n            else {\r\n              module.debug('Hiding results with javascript');\r\n              $results\r\n                .stop()\r\n                .fadeOut(settings.duration, settings.easing)\r\n              ;\r\n            }\r\n            settings.onResultsClose.call($results);\r\n          }\r\n        },\r\n\r\n        generateResults: function(response) {\r\n          module.debug('Generating html from response', response);\r\n          var\r\n            template       = settings.templates[settings.type],\r\n            isProperObject = ($.isPlainObject(response[fields.results]) && !$.isEmptyObject(response[fields.results])),\r\n            isProperArray  = ($.isArray(response[fields.results]) && response[fields.results].length > 0),\r\n            html           = ''\r\n          ;\r\n          if(isProperObject || isProperArray ) {\r\n            if(settings.maxResults > 0) {\r\n              if(isProperObject) {\r\n                if(settings.type == 'standard') {\r\n                  module.error(error.maxResults);\r\n                }\r\n              }\r\n              else {\r\n                response[fields.results] = response[fields.results].slice(0, settings.maxResults);\r\n              }\r\n            }\r\n            if($.isFunction(template)) {\r\n              html = template(response, fields);\r\n            }\r\n            else {\r\n              module.error(error.noTemplate, false);\r\n            }\r\n          }\r\n          else if(settings.showNoResults) {\r\n            html = module.displayMessage(error.noResults, 'empty');\r\n          }\r\n          settings.onResults.call(element, response);\r\n          return html;\r\n        },\r\n\r\n        displayMessage: function(text, type) {\r\n          type = type || 'standard';\r\n          module.debug('Displaying message', text, type);\r\n          module.addResults( settings.templates.message(text, type) );\r\n          return settings.templates.message(text, type);\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            settings[name] = value;\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if($allModules.length > 1) {\r\n              title += ' ' + '(' + $allModules.length + ')';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.search.settings = {\r\n\r\n  name              : 'Search',\r\n  namespace         : 'search',\r\n\r\n  silent            : false,\r\n  debug             : false,\r\n  verbose           : false,\r\n  performance       : true,\r\n\r\n  // template to use (specified in settings.templates)\r\n  type              : 'standard',\r\n\r\n  // minimum characters required to search\r\n  minCharacters     : 1,\r\n\r\n  // whether to select first result after searching automatically\r\n  selectFirstResult : false,\r\n\r\n  // API config\r\n  apiSettings       : false,\r\n\r\n  // object to search\r\n  source            : false,\r\n\r\n  // Whether search should query current term on focus\r\n  searchOnFocus     : true,\r\n\r\n  // fields to search\r\n  searchFields   : [\r\n    'title',\r\n    'description'\r\n  ],\r\n\r\n  // field to display in standard results template\r\n  displayField   : '',\r\n\r\n  // whether to include fuzzy results in local search\r\n  searchFullText : true,\r\n\r\n  // whether to add events to prompt automatically\r\n  automatic      : true,\r\n\r\n  // delay before hiding menu after blur\r\n  hideDelay      : 0,\r\n\r\n  // delay before searching\r\n  searchDelay    : 200,\r\n\r\n  // maximum results returned from local\r\n  maxResults     : 7,\r\n\r\n  // whether to store lookups in local cache\r\n  cache          : true,\r\n\r\n  // whether no results errors should be shown\r\n  showNoResults  : true,\r\n\r\n  // transition settings\r\n  transition     : 'scale',\r\n  duration       : 200,\r\n  easing         : 'easeOutExpo',\r\n\r\n  // callbacks\r\n  onSelect       : false,\r\n  onResultsAdd   : false,\r\n\r\n  onSearchQuery  : function(query){},\r\n  onResults      : function(response){},\r\n\r\n  onResultsOpen  : function(){},\r\n  onResultsClose : function(){},\r\n\r\n  className: {\r\n    animating : 'animating',\r\n    active    : 'active',\r\n    empty     : 'empty',\r\n    focus     : 'focus',\r\n    hidden    : 'hidden',\r\n    loading   : 'loading',\r\n    results   : 'results',\r\n    pressed   : 'down'\r\n  },\r\n\r\n  error : {\r\n    source      : 'Cannot search. No source used, and Semantic API module was not included',\r\n    noResults   : 'Your search returned no results',\r\n    logging     : 'Error in debug logging, exiting.',\r\n    noEndpoint  : 'No search endpoint was specified',\r\n    noTemplate  : 'A valid template name was not specified.',\r\n    serverError : 'There was an issue querying the server.',\r\n    maxResults  : 'Results must be an array to use maxResults setting',\r\n    method      : 'The method you called is not defined.'\r\n  },\r\n\r\n  metadata: {\r\n    cache   : 'cache',\r\n    results : 'results',\r\n    result  : 'result'\r\n  },\r\n\r\n  regExp: {\r\n    escape     : /[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\r\n    beginsWith : '(?:\\s|^)'\r\n  },\r\n\r\n  // maps api response attributes to internal representation\r\n  fields: {\r\n    categories      : 'results',     // array of categories (category view)\r\n    categoryName    : 'name',        // name of category (category view)\r\n    categoryResults : 'results',     // array of results (category view)\r\n    description     : 'description', // result description\r\n    image           : 'image',       // result image\r\n    price           : 'price',       // result price\r\n    results         : 'results',     // array of results (standard)\r\n    title           : 'title',       // result title\r\n    url             : 'url',         // result url\r\n    action          : 'action',      // \"view more\" object name\r\n    actionText      : 'text',        // \"view more\" text\r\n    actionURL       : 'url'          // \"view more\" url\r\n  },\r\n\r\n  selector : {\r\n    prompt       : '.prompt',\r\n    searchButton : '.search.button',\r\n    results      : '.results',\r\n    message      : '.results > .message',\r\n    category     : '.category',\r\n    result       : '.result',\r\n    title        : '.title, .name'\r\n  },\r\n\r\n  templates: {\r\n    escape: function(string) {\r\n      var\r\n        badChars     = /[&<>\"'`]/g,\r\n        shouldEscape = /[&<>\"'`]/,\r\n        escape       = {\r\n          \"&\": \"&amp;\",\r\n          \"<\": \"&lt;\",\r\n          \">\": \"&gt;\",\r\n          '\"': \"&quot;\",\r\n          \"'\": \"&#x27;\",\r\n          \"`\": \"&#x60;\"\r\n        },\r\n        escapedChar  = function(chr) {\r\n          return escape[chr];\r\n        }\r\n      ;\r\n      if(shouldEscape.test(string)) {\r\n        return string.replace(badChars, escapedChar);\r\n      }\r\n      return string;\r\n    },\r\n    message: function(message, type) {\r\n      var\r\n        html = ''\r\n      ;\r\n      if(message !== undefined && type !== undefined) {\r\n        html +=  ''\r\n          + '<div class=\"message ' + type + '\">'\r\n        ;\r\n        // message type\r\n        if(type == 'empty') {\r\n          html += ''\r\n            + '<div class=\"header\">No Results</div class=\"header\">'\r\n            + '<div class=\"description\">' + message + '</div class=\"description\">'\r\n          ;\r\n        }\r\n        else {\r\n          html += ' <div class=\"description\">' + message + '</div>';\r\n        }\r\n        html += '</div>';\r\n      }\r\n      return html;\r\n    },\r\n    category: function(response, fields) {\r\n      var\r\n        html = '',\r\n        escape = $.fn.search.settings.templates.escape\r\n      ;\r\n      if(response[fields.categoryResults] !== undefined) {\r\n\r\n        // each category\r\n        $.each(response[fields.categoryResults], function(index, category) {\r\n          if(category[fields.results] !== undefined && category.results.length > 0) {\r\n\r\n            html  += '<div class=\"category\">';\r\n\r\n            if(category[fields.categoryName] !== undefined) {\r\n              html += '<div class=\"name\">' + category[fields.categoryName] + '</div>';\r\n            }\r\n\r\n            // each item inside category\r\n            $.each(category.results, function(index, result) {\r\n              if(result[fields.url]) {\r\n                html  += '<a class=\"result\" href=\"' + result[fields.url] + '\">';\r\n              }\r\n              else {\r\n                html  += '<a class=\"result\">';\r\n              }\r\n              if(result[fields.image] !== undefined) {\r\n                html += ''\r\n                  + '<div class=\"image\">'\r\n                  + ' <img src=\"' + result[fields.image] + '\">'\r\n                  + '</div>'\r\n                ;\r\n              }\r\n              html += '<div class=\"content\">';\r\n              if(result[fields.price] !== undefined) {\r\n                html += '<div class=\"price\">' + result[fields.price] + '</div>';\r\n              }\r\n              if(result[fields.title] !== undefined) {\r\n                html += '<div class=\"title\">' + result[fields.title] + '</div>';\r\n              }\r\n              if(result[fields.description] !== undefined) {\r\n                html += '<div class=\"description\">' + result[fields.description] + '</div>';\r\n              }\r\n              html  += ''\r\n                + '</div>'\r\n              ;\r\n              html += '</a>';\r\n            });\r\n            html  += ''\r\n              + '</div>'\r\n            ;\r\n          }\r\n        });\r\n        if(response[fields.action]) {\r\n          html += ''\r\n          + '<a href=\"' + response[fields.action][fields.actionURL] + '\" class=\"action\">'\r\n          +   response[fields.action][fields.actionText]\r\n          + '</a>';\r\n        }\r\n        return html;\r\n      }\r\n      return false;\r\n    },\r\n    standard: function(response, fields) {\r\n      var\r\n        html = ''\r\n      ;\r\n      if(response[fields.results] !== undefined) {\r\n\r\n        // each result\r\n        $.each(response[fields.results], function(index, result) {\r\n          if(result[fields.url]) {\r\n            html  += '<a class=\"result\" href=\"' + result[fields.url] + '\">';\r\n          }\r\n          else {\r\n            html  += '<a class=\"result\">';\r\n          }\r\n          if(result[fields.image] !== undefined) {\r\n            html += ''\r\n              + '<div class=\"image\">'\r\n              + ' <img src=\"' + result[fields.image] + '\">'\r\n              + '</div>'\r\n            ;\r\n          }\r\n          html += '<div class=\"content\">';\r\n          if(result[fields.price] !== undefined) {\r\n            html += '<div class=\"price\">' + result[fields.price] + '</div>';\r\n          }\r\n          if(result[fields.title] !== undefined) {\r\n            html += '<div class=\"title\">' + result[fields.title] + '</div>';\r\n          }\r\n          if(result[fields.description] !== undefined) {\r\n            html += '<div class=\"description\">' + result[fields.description] + '</div>';\r\n          }\r\n          html  += ''\r\n            + '</div>'\r\n          ;\r\n          html += '</a>';\r\n        });\r\n\r\n        if(response[fields.action]) {\r\n          html += ''\r\n          + '<a href=\"' + response[fields.action][fields.actionURL] + '\" class=\"action\">'\r\n          +   response[fields.action][fields.actionText]\r\n          + '</a>';\r\n        }\r\n        return html;\r\n      }\r\n      return false;\r\n    }\r\n  }\r\n};\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Shape\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.shape = function(parameters) {\r\n  var\r\n    $allModules     = $(this),\r\n    $body           = $('body'),\r\n\r\n    time            = new Date().getTime(),\r\n    performance     = [],\r\n\r\n    query           = arguments[0],\r\n    methodInvoked   = (typeof query == 'string'),\r\n    queryArguments  = [].slice.call(arguments, 1),\r\n\r\n    requestAnimationFrame = window.requestAnimationFrame\r\n      || window.mozRequestAnimationFrame\r\n      || window.webkitRequestAnimationFrame\r\n      || window.msRequestAnimationFrame\r\n      || function(callback) { setTimeout(callback, 0); },\r\n\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        moduleSelector = $allModules.selector || '',\r\n        settings       = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.shape.settings, parameters)\r\n          : $.extend({}, $.fn.shape.settings),\r\n\r\n        // internal aliases\r\n        namespace     = settings.namespace,\r\n        selector      = settings.selector,\r\n        error         = settings.error,\r\n        className     = settings.className,\r\n\r\n        // define namespaces for modules\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n\r\n        // selector cache\r\n        $module       = $(this),\r\n        $sides        = $module.find(selector.sides),\r\n        $side         = $module.find(selector.side),\r\n\r\n        // private variables\r\n        nextIndex = false,\r\n        $activeSide,\r\n        $nextSide,\r\n\r\n        // standard module\r\n        element       = this,\r\n        instance      = $module.data(moduleNamespace),\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.verbose('Initializing module for', element);\r\n          module.set.defaultSide();\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, instance)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous module for', element);\r\n          $module\r\n            .removeData(moduleNamespace)\r\n            .off(eventNamespace)\r\n          ;\r\n        },\r\n\r\n        refresh: function() {\r\n          module.verbose('Refreshing selector cache for', element);\r\n          $module = $(element);\r\n          $sides  = $(this).find(selector.shape);\r\n          $side   = $(this).find(selector.side);\r\n        },\r\n\r\n        repaint: function() {\r\n          module.verbose('Forcing repaint event');\r\n          var\r\n            shape          = $sides[0] || document.createElement('div'),\r\n            fakeAssignment = shape.offsetWidth\r\n          ;\r\n        },\r\n\r\n        animate: function(propertyObject, callback) {\r\n          module.verbose('Animating box with properties', propertyObject);\r\n          callback = callback || function(event) {\r\n            module.verbose('Executing animation callback');\r\n            if(event !== undefined) {\r\n              event.stopPropagation();\r\n            }\r\n            module.reset();\r\n            module.set.active();\r\n          };\r\n          settings.beforeChange.call($nextSide[0]);\r\n          if(module.get.transitionEvent()) {\r\n            module.verbose('Starting CSS animation');\r\n            $module\r\n              .addClass(className.animating)\r\n            ;\r\n            $sides\r\n              .css(propertyObject)\r\n              .one(module.get.transitionEvent(), callback)\r\n            ;\r\n            module.set.duration(settings.duration);\r\n            requestAnimationFrame(function() {\r\n              $module\r\n                .addClass(className.animating)\r\n              ;\r\n              $activeSide\r\n                .addClass(className.hidden)\r\n              ;\r\n            });\r\n          }\r\n          else {\r\n            callback();\r\n          }\r\n        },\r\n\r\n        queue: function(method) {\r\n          module.debug('Queueing animation of', method);\r\n          $sides\r\n            .one(module.get.transitionEvent(), function() {\r\n              module.debug('Executing queued animation');\r\n              setTimeout(function(){\r\n                $module.shape(method);\r\n              }, 0);\r\n            })\r\n          ;\r\n        },\r\n\r\n        reset: function() {\r\n          module.verbose('Animating states reset');\r\n          $module\r\n            .removeClass(className.animating)\r\n            .attr('style', '')\r\n            .removeAttr('style')\r\n          ;\r\n          // removeAttr style does not consistently work in safari\r\n          $sides\r\n            .attr('style', '')\r\n            .removeAttr('style')\r\n          ;\r\n          $side\r\n            .attr('style', '')\r\n            .removeAttr('style')\r\n            .removeClass(className.hidden)\r\n          ;\r\n          $nextSide\r\n            .removeClass(className.animating)\r\n            .attr('style', '')\r\n            .removeAttr('style')\r\n          ;\r\n        },\r\n\r\n        is: {\r\n          complete: function() {\r\n            return ($side.filter('.' + className.active)[0] == $nextSide[0]);\r\n          },\r\n          animating: function() {\r\n            return $module.hasClass(className.animating);\r\n          }\r\n        },\r\n\r\n        set: {\r\n\r\n          defaultSide: function() {\r\n            $activeSide = $module.find('.' + settings.className.active);\r\n            $nextSide   = ( $activeSide.next(selector.side).length > 0 )\r\n              ? $activeSide.next(selector.side)\r\n              : $module.find(selector.side).first()\r\n            ;\r\n            nextIndex = false;\r\n            module.verbose('Active side set to', $activeSide);\r\n            module.verbose('Next side set to', $nextSide);\r\n          },\r\n\r\n          duration: function(duration) {\r\n            duration = duration || settings.duration;\r\n            duration = (typeof duration == 'number')\r\n              ? duration + 'ms'\r\n              : duration\r\n            ;\r\n            module.verbose('Setting animation duration', duration);\r\n            if(settings.duration || settings.duration === 0) {\r\n              $sides.add($side)\r\n                .css({\r\n                  '-webkit-transition-duration': duration,\r\n                  '-moz-transition-duration': duration,\r\n                  '-ms-transition-duration': duration,\r\n                  '-o-transition-duration': duration,\r\n                  'transition-duration': duration\r\n                })\r\n              ;\r\n            }\r\n          },\r\n\r\n          currentStageSize: function() {\r\n            var\r\n              $activeSide = $module.find('.' + settings.className.active),\r\n              width       = $activeSide.outerWidth(true),\r\n              height      = $activeSide.outerHeight(true)\r\n            ;\r\n            $module\r\n              .css({\r\n                width: width,\r\n                height: height\r\n              })\r\n            ;\r\n          },\r\n\r\n          stageSize: function() {\r\n            var\r\n              $clone      = $module.clone().addClass(className.loading),\r\n              $activeSide = $clone.find('.' + settings.className.active),\r\n              $nextSide   = (nextIndex)\r\n                ? $clone.find(selector.side).eq(nextIndex)\r\n                : ( $activeSide.next(selector.side).length > 0 )\r\n                  ? $activeSide.next(selector.side)\r\n                  : $clone.find(selector.side).first(),\r\n              newWidth    = (settings.width == 'next')\r\n                ? $nextSide.outerWidth(true)\r\n                : (settings.width == 'initial')\r\n                  ? $module.width()\r\n                  : settings.width,\r\n              newHeight    = (settings.height == 'next')\r\n                ? $nextSide.outerHeight(true)\r\n                : (settings.height == 'initial')\r\n                  ? $module.height()\r\n                  : settings.height\r\n            ;\r\n            $activeSide.removeClass(className.active);\r\n            $nextSide.addClass(className.active);\r\n            $clone.insertAfter($module);\r\n            $clone.remove();\r\n            if(settings.width != 'auto') {\r\n              $module.css('width', newWidth + settings.jitter);\r\n              module.verbose('Specifying width during animation', newWidth);\r\n            }\r\n            if(settings.height != 'auto') {\r\n              $module.css('height', newHeight + settings.jitter);\r\n              module.verbose('Specifying height during animation', newHeight);\r\n            }\r\n          },\r\n\r\n          nextSide: function(selector) {\r\n            nextIndex = selector;\r\n            $nextSide = $side.filter(selector);\r\n            nextIndex = $side.index($nextSide);\r\n            if($nextSide.length === 0) {\r\n              module.set.defaultSide();\r\n              module.error(error.side);\r\n            }\r\n            module.verbose('Next side manually set to', $nextSide);\r\n          },\r\n\r\n          active: function() {\r\n            module.verbose('Setting new side to active', $nextSide);\r\n            $side\r\n              .removeClass(className.active)\r\n            ;\r\n            $nextSide\r\n              .addClass(className.active)\r\n            ;\r\n            settings.onChange.call($nextSide[0]);\r\n            module.set.defaultSide();\r\n          }\r\n        },\r\n\r\n        flip: {\r\n\r\n          up: function() {\r\n            if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {\r\n              module.debug('Side already visible', $nextSide);\r\n              return;\r\n            }\r\n            if( !module.is.animating()) {\r\n              module.debug('Flipping up', $nextSide);\r\n              var\r\n                transform = module.get.transform.up()\r\n              ;\r\n              module.set.stageSize();\r\n              module.stage.above();\r\n              module.animate(transform);\r\n            }\r\n            else {\r\n              module.queue('flip up');\r\n            }\r\n          },\r\n\r\n          down: function() {\r\n            if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {\r\n              module.debug('Side already visible', $nextSide);\r\n              return;\r\n            }\r\n            if( !module.is.animating()) {\r\n              module.debug('Flipping down', $nextSide);\r\n              var\r\n                transform = module.get.transform.down()\r\n              ;\r\n              module.set.stageSize();\r\n              module.stage.below();\r\n              module.animate(transform);\r\n            }\r\n            else {\r\n              module.queue('flip down');\r\n            }\r\n          },\r\n\r\n          left: function() {\r\n            if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {\r\n              module.debug('Side already visible', $nextSide);\r\n              return;\r\n            }\r\n            if( !module.is.animating()) {\r\n              module.debug('Flipping left', $nextSide);\r\n              var\r\n                transform = module.get.transform.left()\r\n              ;\r\n              module.set.stageSize();\r\n              module.stage.left();\r\n              module.animate(transform);\r\n            }\r\n            else {\r\n              module.queue('flip left');\r\n            }\r\n          },\r\n\r\n          right: function() {\r\n            if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {\r\n              module.debug('Side already visible', $nextSide);\r\n              return;\r\n            }\r\n            if( !module.is.animating()) {\r\n              module.debug('Flipping right', $nextSide);\r\n              var\r\n                transform = module.get.transform.right()\r\n              ;\r\n              module.set.stageSize();\r\n              module.stage.right();\r\n              module.animate(transform);\r\n            }\r\n            else {\r\n              module.queue('flip right');\r\n            }\r\n          },\r\n\r\n          over: function() {\r\n            if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {\r\n              module.debug('Side already visible', $nextSide);\r\n              return;\r\n            }\r\n            if( !module.is.animating()) {\r\n              module.debug('Flipping over', $nextSide);\r\n              module.set.stageSize();\r\n              module.stage.behind();\r\n              module.animate(module.get.transform.over() );\r\n            }\r\n            else {\r\n              module.queue('flip over');\r\n            }\r\n          },\r\n\r\n          back: function() {\r\n            if(module.is.complete() && !module.is.animating() && !settings.allowRepeats) {\r\n              module.debug('Side already visible', $nextSide);\r\n              return;\r\n            }\r\n            if( !module.is.animating()) {\r\n              module.debug('Flipping back', $nextSide);\r\n              module.set.stageSize();\r\n              module.stage.behind();\r\n              module.animate(module.get.transform.back() );\r\n            }\r\n            else {\r\n              module.queue('flip back');\r\n            }\r\n          }\r\n\r\n        },\r\n\r\n        get: {\r\n\r\n          transform: {\r\n            up: function() {\r\n              var\r\n                translate = {\r\n                  y: -(($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2),\r\n                  z: -($activeSide.outerHeight(true) / 2)\r\n                }\r\n              ;\r\n              return {\r\n                transform: 'translateY(' + translate.y + 'px) translateZ('+ translate.z + 'px) rotateX(-90deg)'\r\n              };\r\n            },\r\n\r\n            down: function() {\r\n              var\r\n                translate = {\r\n                  y: -(($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2),\r\n                  z: -($activeSide.outerHeight(true) / 2)\r\n                }\r\n              ;\r\n              return {\r\n                transform: 'translateY(' + translate.y + 'px) translateZ('+ translate.z + 'px) rotateX(90deg)'\r\n              };\r\n            },\r\n\r\n            left: function() {\r\n              var\r\n                translate = {\r\n                  x : -(($activeSide.outerWidth(true) - $nextSide.outerWidth(true)) / 2),\r\n                  z : -($activeSide.outerWidth(true) / 2)\r\n                }\r\n              ;\r\n              return {\r\n                transform: 'translateX(' + translate.x + 'px) translateZ(' + translate.z + 'px) rotateY(90deg)'\r\n              };\r\n            },\r\n\r\n            right: function() {\r\n              var\r\n                translate = {\r\n                  x : -(($activeSide.outerWidth(true) - $nextSide.outerWidth(true)) / 2),\r\n                  z : -($activeSide.outerWidth(true) / 2)\r\n                }\r\n              ;\r\n              return {\r\n                transform: 'translateX(' + translate.x + 'px) translateZ(' + translate.z + 'px) rotateY(-90deg)'\r\n              };\r\n            },\r\n\r\n            over: function() {\r\n              var\r\n                translate = {\r\n                  x : -(($activeSide.outerWidth(true) - $nextSide.outerWidth(true)) / 2)\r\n                }\r\n              ;\r\n              return {\r\n                transform: 'translateX(' + translate.x + 'px) rotateY(180deg)'\r\n              };\r\n            },\r\n\r\n            back: function() {\r\n              var\r\n                translate = {\r\n                  x : -(($activeSide.outerWidth(true) - $nextSide.outerWidth(true)) / 2)\r\n                }\r\n              ;\r\n              return {\r\n                transform: 'translateX(' + translate.x + 'px) rotateY(-180deg)'\r\n              };\r\n            }\r\n          },\r\n\r\n          transitionEvent: function() {\r\n            var\r\n              element     = document.createElement('element'),\r\n              transitions = {\r\n                'transition'       :'transitionend',\r\n                'OTransition'      :'oTransitionEnd',\r\n                'MozTransition'    :'transitionend',\r\n                'WebkitTransition' :'webkitTransitionEnd'\r\n              },\r\n              transition\r\n            ;\r\n            for(transition in transitions){\r\n              if( element.style[transition] !== undefined ){\r\n                return transitions[transition];\r\n              }\r\n            }\r\n          },\r\n\r\n          nextSide: function() {\r\n            return ( $activeSide.next(selector.side).length > 0 )\r\n              ? $activeSide.next(selector.side)\r\n              : $module.find(selector.side).first()\r\n            ;\r\n          }\r\n\r\n        },\r\n\r\n        stage: {\r\n\r\n          above: function() {\r\n            var\r\n              box = {\r\n                origin : (($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2),\r\n                depth  : {\r\n                  active : ($nextSide.outerHeight(true) / 2),\r\n                  next   : ($activeSide.outerHeight(true) / 2)\r\n                }\r\n              }\r\n            ;\r\n            module.verbose('Setting the initial animation position as above', $nextSide, box);\r\n            $sides\r\n              .css({\r\n                'transform' : 'translateZ(-' + box.depth.active + 'px)'\r\n              })\r\n            ;\r\n            $activeSide\r\n              .css({\r\n                'transform' : 'rotateY(0deg) translateZ(' + box.depth.active + 'px)'\r\n              })\r\n            ;\r\n            $nextSide\r\n              .addClass(className.animating)\r\n              .css({\r\n                'top'       : box.origin + 'px',\r\n                'transform' : 'rotateX(90deg) translateZ(' + box.depth.next + 'px)'\r\n              })\r\n            ;\r\n          },\r\n\r\n          below: function() {\r\n            var\r\n              box = {\r\n                origin : (($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2),\r\n                depth  : {\r\n                  active : ($nextSide.outerHeight(true) / 2),\r\n                  next   : ($activeSide.outerHeight(true) / 2)\r\n                }\r\n              }\r\n            ;\r\n            module.verbose('Setting the initial animation position as below', $nextSide, box);\r\n            $sides\r\n              .css({\r\n                'transform' : 'translateZ(-' + box.depth.active + 'px)'\r\n              })\r\n            ;\r\n            $activeSide\r\n              .css({\r\n                'transform' : 'rotateY(0deg) translateZ(' + box.depth.active + 'px)'\r\n              })\r\n            ;\r\n            $nextSide\r\n              .addClass(className.animating)\r\n              .css({\r\n                'top'       : box.origin + 'px',\r\n                'transform' : 'rotateX(-90deg) translateZ(' + box.depth.next + 'px)'\r\n              })\r\n            ;\r\n          },\r\n\r\n          left: function() {\r\n            var\r\n              height = {\r\n                active : $activeSide.outerWidth(true),\r\n                next   : $nextSide.outerWidth(true)\r\n              },\r\n              box = {\r\n                origin : ( ( height.active - height.next ) / 2),\r\n                depth  : {\r\n                  active : (height.next / 2),\r\n                  next   : (height.active / 2)\r\n                }\r\n              }\r\n            ;\r\n            module.verbose('Setting the initial animation position as left', $nextSide, box);\r\n            $sides\r\n              .css({\r\n                'transform' : 'translateZ(-' + box.depth.active + 'px)'\r\n              })\r\n            ;\r\n            $activeSide\r\n              .css({\r\n                'transform' : 'rotateY(0deg) translateZ(' + box.depth.active + 'px)'\r\n              })\r\n            ;\r\n            $nextSide\r\n              .addClass(className.animating)\r\n              .css({\r\n                'left'      : box.origin + 'px',\r\n                'transform' : 'rotateY(-90deg) translateZ(' + box.depth.next + 'px)'\r\n              })\r\n            ;\r\n          },\r\n\r\n          right: function() {\r\n            var\r\n              height = {\r\n                active : $activeSide.outerWidth(true),\r\n                next   : $nextSide.outerWidth(true)\r\n              },\r\n              box = {\r\n                origin : ( ( height.active - height.next ) / 2),\r\n                depth  : {\r\n                  active : (height.next / 2),\r\n                  next   : (height.active / 2)\r\n                }\r\n              }\r\n            ;\r\n            module.verbose('Setting the initial animation position as left', $nextSide, box);\r\n            $sides\r\n              .css({\r\n                'transform' : 'translateZ(-' + box.depth.active + 'px)'\r\n              })\r\n            ;\r\n            $activeSide\r\n              .css({\r\n                'transform' : 'rotateY(0deg) translateZ(' + box.depth.active + 'px)'\r\n              })\r\n            ;\r\n            $nextSide\r\n              .addClass(className.animating)\r\n              .css({\r\n                'left'      : box.origin + 'px',\r\n                'transform' : 'rotateY(90deg) translateZ(' + box.depth.next + 'px)'\r\n              })\r\n            ;\r\n          },\r\n\r\n          behind: function() {\r\n            var\r\n              height = {\r\n                active : $activeSide.outerWidth(true),\r\n                next   : $nextSide.outerWidth(true)\r\n              },\r\n              box = {\r\n                origin : ( ( height.active - height.next ) / 2),\r\n                depth  : {\r\n                  active : (height.next / 2),\r\n                  next   : (height.active / 2)\r\n                }\r\n              }\r\n            ;\r\n            module.verbose('Setting the initial animation position as behind', $nextSide, box);\r\n            $activeSide\r\n              .css({\r\n                'transform' : 'rotateY(0deg)'\r\n              })\r\n            ;\r\n            $nextSide\r\n              .addClass(className.animating)\r\n              .css({\r\n                'left'      : box.origin + 'px',\r\n                'transform' : 'rotateY(-180deg)'\r\n              })\r\n            ;\r\n          }\r\n        },\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if($allModules.length > 1) {\r\n              title += ' ' + '(' + $allModules.length + ')';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.shape.settings = {\r\n\r\n  // module info\r\n  name : 'Shape',\r\n\r\n  // hide all debug content\r\n  silent     : false,\r\n\r\n  // debug content outputted to console\r\n  debug      : false,\r\n\r\n  // verbose debug output\r\n  verbose    : false,\r\n\r\n  // fudge factor in pixels when swapping from 2d to 3d (can be useful to correct rounding errors)\r\n  jitter     : 0,\r\n\r\n  // performance data output\r\n  performance: true,\r\n\r\n  // event namespace\r\n  namespace  : 'shape',\r\n\r\n  // width during animation, can be set to 'auto', initial', 'next' or pixel amount\r\n  width: 'initial',\r\n\r\n  // height during animation, can be set to 'auto', 'initial', 'next' or pixel amount\r\n  height: 'initial',\r\n\r\n  // callback occurs on side change\r\n  beforeChange : function() {},\r\n  onChange     : function() {},\r\n\r\n  // allow animation to same side\r\n  allowRepeats: false,\r\n\r\n  // animation duration\r\n  duration   : false,\r\n\r\n  // possible errors\r\n  error: {\r\n    side   : 'You tried to switch to a side that does not exist.',\r\n    method : 'The method you called is not defined'\r\n  },\r\n\r\n  // classnames used\r\n  className   : {\r\n    animating : 'animating',\r\n    hidden    : 'hidden',\r\n    loading   : 'loading',\r\n    active    : 'active'\r\n  },\r\n\r\n  // selectors used\r\n  selector    : {\r\n    sides : '.sides',\r\n    side  : '.side'\r\n  }\r\n\r\n};\r\n\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Sidebar\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.sidebar = function(parameters) {\r\n  var\r\n    $allModules     = $(this),\r\n    $window         = $(window),\r\n    $document       = $(document),\r\n    $html           = $('html'),\r\n    $head           = $('head'),\r\n\r\n    moduleSelector  = $allModules.selector || '',\r\n\r\n    time            = new Date().getTime(),\r\n    performance     = [],\r\n\r\n    query           = arguments[0],\r\n    methodInvoked   = (typeof query == 'string'),\r\n    queryArguments  = [].slice.call(arguments, 1),\r\n\r\n    requestAnimationFrame = window.requestAnimationFrame\r\n      || window.mozRequestAnimationFrame\r\n      || window.webkitRequestAnimationFrame\r\n      || window.msRequestAnimationFrame\r\n      || function(callback) { setTimeout(callback, 0); },\r\n\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings        = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.sidebar.settings, parameters)\r\n          : $.extend({}, $.fn.sidebar.settings),\r\n\r\n        selector        = settings.selector,\r\n        className       = settings.className,\r\n        namespace       = settings.namespace,\r\n        regExp          = settings.regExp,\r\n        error           = settings.error,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n\r\n        $module         = $(this),\r\n        $context        = $(settings.context),\r\n\r\n        $sidebars       = $module.children(selector.sidebar),\r\n        $fixed          = $context.children(selector.fixed),\r\n        $pusher         = $context.children(selector.pusher),\r\n        $style,\r\n\r\n        element         = this,\r\n        instance        = $module.data(moduleNamespace),\r\n\r\n        elementNamespace,\r\n        id,\r\n        currentScroll,\r\n        transitionEvent,\r\n\r\n        module\r\n      ;\r\n\r\n      module      = {\r\n\r\n        initialize: function() {\r\n          module.debug('Initializing sidebar', parameters);\r\n\r\n          module.create.id();\r\n\r\n          transitionEvent = module.get.transitionEvent();\r\n\r\n          if(module.is.ios()) {\r\n            module.set.ios();\r\n          }\r\n\r\n          // avoids locking rendering if initialized in onReady\r\n          if(settings.delaySetup) {\r\n            requestAnimationFrame(module.setup.layout);\r\n          }\r\n          else {\r\n            module.setup.layout();\r\n          }\r\n\r\n          requestAnimationFrame(function() {\r\n            module.setup.cache();\r\n          });\r\n\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n\r\n        create: {\r\n          id: function() {\r\n            id = (Math.random().toString(16) + '000000000').substr(2,8);\r\n            elementNamespace = '.' + id;\r\n            module.verbose('Creating unique id for element', id);\r\n          }\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous module for', $module);\r\n          $module\r\n            .off(eventNamespace)\r\n            .removeData(moduleNamespace)\r\n          ;\r\n          if(module.is.ios()) {\r\n            module.remove.ios();\r\n          }\r\n          // bound by uuid\r\n          $context.off(elementNamespace);\r\n          $window.off(elementNamespace);\r\n          $document.off(elementNamespace);\r\n        },\r\n\r\n        event: {\r\n          clickaway: function(event) {\r\n            var\r\n              clickedInPusher = ($pusher.find(event.target).length > 0 || $pusher.is(event.target)),\r\n              clickedContext  = ($context.is(event.target))\r\n            ;\r\n            if(clickedInPusher) {\r\n              module.verbose('User clicked on dimmed page');\r\n              module.hide();\r\n            }\r\n            if(clickedContext) {\r\n              module.verbose('User clicked on dimmable context (scaled out page)');\r\n              module.hide();\r\n            }\r\n          },\r\n          touch: function(event) {\r\n            //event.stopPropagation();\r\n          },\r\n          containScroll: function(event) {\r\n            if(element.scrollTop <= 0)  {\r\n              element.scrollTop = 1;\r\n            }\r\n            if((element.scrollTop + element.offsetHeight) >= element.scrollHeight) {\r\n              element.scrollTop = element.scrollHeight - element.offsetHeight - 1;\r\n            }\r\n          },\r\n          scroll: function(event) {\r\n            if( $(event.target).closest(selector.sidebar).length === 0 ) {\r\n              event.preventDefault();\r\n            }\r\n          }\r\n        },\r\n\r\n        bind: {\r\n          clickaway: function() {\r\n            module.verbose('Adding clickaway events to context', $context);\r\n            if(settings.closable) {\r\n              $context\r\n                .on('click'    + elementNamespace, module.event.clickaway)\r\n                .on('touchend' + elementNamespace, module.event.clickaway)\r\n              ;\r\n            }\r\n          },\r\n          scrollLock: function() {\r\n            if(settings.scrollLock) {\r\n              module.debug('Disabling page scroll');\r\n              $window\r\n                .on('DOMMouseScroll' + elementNamespace, module.event.scroll)\r\n              ;\r\n            }\r\n            module.verbose('Adding events to contain sidebar scroll');\r\n            $document\r\n              .on('touchmove' + elementNamespace, module.event.touch)\r\n            ;\r\n            $module\r\n              .on('scroll' + eventNamespace, module.event.containScroll)\r\n            ;\r\n          }\r\n        },\r\n        unbind: {\r\n          clickaway: function() {\r\n            module.verbose('Removing clickaway events from context', $context);\r\n            $context.off(elementNamespace);\r\n          },\r\n          scrollLock: function() {\r\n            module.verbose('Removing scroll lock from page');\r\n            $document.off(elementNamespace);\r\n            $window.off(elementNamespace);\r\n            $module.off('scroll' + eventNamespace);\r\n          }\r\n        },\r\n\r\n        add: {\r\n          inlineCSS: function() {\r\n            var\r\n              width     = module.cache.width  || $module.outerWidth(),\r\n              height    = module.cache.height || $module.outerHeight(),\r\n              isRTL     = module.is.rtl(),\r\n              direction = module.get.direction(),\r\n              distance  = {\r\n                left   : width,\r\n                right  : -width,\r\n                top    : height,\r\n                bottom : -height\r\n              },\r\n              style\r\n            ;\r\n\r\n            if(isRTL){\r\n              module.verbose('RTL detected, flipping widths');\r\n              distance.left = -width;\r\n              distance.right = width;\r\n            }\r\n\r\n            style  = '<style>';\r\n\r\n            if(direction === 'left' || direction === 'right') {\r\n              module.debug('Adding CSS rules for animation distance', width);\r\n              style  += ''\r\n                + ' .ui.visible.' + direction + '.sidebar ~ .fixed,'\r\n                + ' .ui.visible.' + direction + '.sidebar ~ .pusher {'\r\n                + '   -webkit-transform: translate3d('+ distance[direction] + 'px, 0, 0);'\r\n                + '           transform: translate3d('+ distance[direction] + 'px, 0, 0);'\r\n                + ' }'\r\n              ;\r\n            }\r\n            else if(direction === 'top' || direction == 'bottom') {\r\n              style  += ''\r\n                + ' .ui.visible.' + direction + '.sidebar ~ .fixed,'\r\n                + ' .ui.visible.' + direction + '.sidebar ~ .pusher {'\r\n                + '   -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'\r\n                + '           transform: translate3d(0, ' + distance[direction] + 'px, 0);'\r\n                + ' }'\r\n              ;\r\n            }\r\n\r\n            /* IE is only browser not to create context with transforms */\r\n            /* https://www.w3.org/Bugs/Public/show_bug.cgi?id=16328 */\r\n            if( module.is.ie() ) {\r\n              if(direction === 'left' || direction === 'right') {\r\n                module.debug('Adding CSS rules for animation distance', width);\r\n                style  += ''\r\n                  + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher:after {'\r\n                  + '   -webkit-transform: translate3d('+ distance[direction] + 'px, 0, 0);'\r\n                  + '           transform: translate3d('+ distance[direction] + 'px, 0, 0);'\r\n                  + ' }'\r\n                ;\r\n              }\r\n              else if(direction === 'top' || direction == 'bottom') {\r\n                style  += ''\r\n                  + ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher:after {'\r\n                  + '   -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'\r\n                  + '           transform: translate3d(0, ' + distance[direction] + 'px, 0);'\r\n                  + ' }'\r\n                ;\r\n              }\r\n              /* opposite sides visible forces content overlay */\r\n              style += ''\r\n                + ' body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher:after,'\r\n                + ' body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher:after {'\r\n                + '   -webkit-transform: translate3d(0px, 0, 0);'\r\n                + '           transform: translate3d(0px, 0, 0);'\r\n                + ' }'\r\n              ;\r\n            }\r\n            style += '</style>';\r\n            $style = $(style)\r\n              .appendTo($head)\r\n            ;\r\n            module.debug('Adding sizing css to head', $style);\r\n          }\r\n        },\r\n\r\n        refresh: function() {\r\n          module.verbose('Refreshing selector cache');\r\n          $context  = $(settings.context);\r\n          $sidebars = $context.children(selector.sidebar);\r\n          $pusher   = $context.children(selector.pusher);\r\n          $fixed    = $context.children(selector.fixed);\r\n          module.clear.cache();\r\n        },\r\n\r\n        refreshSidebars: function() {\r\n          module.verbose('Refreshing other sidebars');\r\n          $sidebars = $context.children(selector.sidebar);\r\n        },\r\n\r\n        repaint: function() {\r\n          module.verbose('Forcing repaint event');\r\n          element.style.display = 'none';\r\n          var ignored = element.offsetHeight;\r\n          element.scrollTop = element.scrollTop;\r\n          element.style.display = '';\r\n        },\r\n\r\n        setup: {\r\n          cache: function() {\r\n            module.cache = {\r\n              width  : $module.outerWidth(),\r\n              height : $module.outerHeight(),\r\n              rtl    : ($module.css('direction') == 'rtl')\r\n            };\r\n          },\r\n          layout: function() {\r\n            if( $context.children(selector.pusher).length === 0 ) {\r\n              module.debug('Adding wrapper element for sidebar');\r\n              module.error(error.pusher);\r\n              $pusher = $('<div class=\"pusher\" />');\r\n              $context\r\n                .children()\r\n                  .not(selector.omitted)\r\n                  .not($sidebars)\r\n                  .wrapAll($pusher)\r\n              ;\r\n              module.refresh();\r\n            }\r\n            if($module.nextAll(selector.pusher).length === 0 || $module.nextAll(selector.pusher)[0] !== $pusher[0]) {\r\n              module.debug('Moved sidebar to correct parent element');\r\n              module.error(error.movedSidebar, element);\r\n              $module.detach().prependTo($context);\r\n              module.refresh();\r\n            }\r\n            module.clear.cache();\r\n            module.set.pushable();\r\n            module.set.direction();\r\n          }\r\n        },\r\n\r\n        attachEvents: function(selector, event) {\r\n          var\r\n            $toggle = $(selector)\r\n          ;\r\n          event = $.isFunction(module[event])\r\n            ? module[event]\r\n            : module.toggle\r\n          ;\r\n          if($toggle.length > 0) {\r\n            module.debug('Attaching sidebar events to element', selector, event);\r\n            $toggle\r\n              .on('click' + eventNamespace, event)\r\n            ;\r\n          }\r\n          else {\r\n            module.error(error.notFound, selector);\r\n          }\r\n        },\r\n\r\n        show: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if(module.is.hidden()) {\r\n            module.refreshSidebars();\r\n            if(settings.overlay)  {\r\n              module.error(error.overlay);\r\n              settings.transition = 'overlay';\r\n            }\r\n            module.refresh();\r\n            if(module.othersActive()) {\r\n              module.debug('Other sidebars currently visible');\r\n              if(settings.exclusive) {\r\n                // if not overlay queue animation after hide\r\n                if(settings.transition != 'overlay') {\r\n                  module.hideOthers(module.show);\r\n                  return;\r\n                }\r\n                else {\r\n                  module.hideOthers();\r\n                }\r\n              }\r\n              else {\r\n                settings.transition = 'overlay';\r\n              }\r\n            }\r\n            module.pushPage(function() {\r\n              callback.call(element);\r\n              settings.onShow.call(element);\r\n            });\r\n            settings.onChange.call(element);\r\n            settings.onVisible.call(element);\r\n          }\r\n          else {\r\n            module.debug('Sidebar is already visible');\r\n          }\r\n        },\r\n\r\n        hide: function(callback) {\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if(module.is.visible() || module.is.animating()) {\r\n            module.debug('Hiding sidebar', callback);\r\n            module.refreshSidebars();\r\n            module.pullPage(function() {\r\n              callback.call(element);\r\n              settings.onHidden.call(element);\r\n            });\r\n            settings.onChange.call(element);\r\n            settings.onHide.call(element);\r\n          }\r\n        },\r\n\r\n        othersAnimating: function() {\r\n          return ($sidebars.not($module).filter('.' + className.animating).length > 0);\r\n        },\r\n        othersVisible: function() {\r\n          return ($sidebars.not($module).filter('.' + className.visible).length > 0);\r\n        },\r\n        othersActive: function() {\r\n          return(module.othersVisible() || module.othersAnimating());\r\n        },\r\n\r\n        hideOthers: function(callback) {\r\n          var\r\n            $otherSidebars = $sidebars.not($module).filter('.' + className.visible),\r\n            sidebarCount   = $otherSidebars.length,\r\n            callbackCount  = 0\r\n          ;\r\n          callback = callback || function(){};\r\n          $otherSidebars\r\n            .sidebar('hide', function() {\r\n              callbackCount++;\r\n              if(callbackCount == sidebarCount) {\r\n                callback();\r\n              }\r\n            })\r\n          ;\r\n        },\r\n\r\n        toggle: function() {\r\n          module.verbose('Determining toggled direction');\r\n          if(module.is.hidden()) {\r\n            module.show();\r\n          }\r\n          else {\r\n            module.hide();\r\n          }\r\n        },\r\n\r\n        pushPage: function(callback) {\r\n          var\r\n            transition = module.get.transition(),\r\n            $transition = (transition === 'overlay' || module.othersActive())\r\n              ? $module\r\n              : $pusher,\r\n            animate,\r\n            dim,\r\n            transitionEnd\r\n          ;\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          if(settings.transition == 'scale down') {\r\n            module.scrollToTop();\r\n          }\r\n          module.set.transition(transition);\r\n          module.repaint();\r\n          animate = function() {\r\n            module.bind.clickaway();\r\n            module.add.inlineCSS();\r\n            module.set.animating();\r\n            module.set.visible();\r\n          };\r\n          dim = function() {\r\n            module.set.dimmed();\r\n          };\r\n          transitionEnd = function(event) {\r\n            if( event.target == $transition[0] ) {\r\n              $transition.off(transitionEvent + elementNamespace, transitionEnd);\r\n              module.remove.animating();\r\n              module.bind.scrollLock();\r\n              callback.call(element);\r\n            }\r\n          };\r\n          $transition.off(transitionEvent + elementNamespace);\r\n          $transition.on(transitionEvent + elementNamespace, transitionEnd);\r\n          requestAnimationFrame(animate);\r\n          if(settings.dimPage && !module.othersVisible()) {\r\n            requestAnimationFrame(dim);\r\n          }\r\n        },\r\n\r\n        pullPage: function(callback) {\r\n          var\r\n            transition = module.get.transition(),\r\n            $transition = (transition == 'overlay' || module.othersActive())\r\n              ? $module\r\n              : $pusher,\r\n            animate,\r\n            transitionEnd\r\n          ;\r\n          callback = $.isFunction(callback)\r\n            ? callback\r\n            : function(){}\r\n          ;\r\n          module.verbose('Removing context push state', module.get.direction());\r\n\r\n          module.unbind.clickaway();\r\n          module.unbind.scrollLock();\r\n\r\n          animate = function() {\r\n            module.set.transition(transition);\r\n            module.set.animating();\r\n            module.remove.visible();\r\n            if(settings.dimPage && !module.othersVisible()) {\r\n              $pusher.removeClass(className.dimmed);\r\n            }\r\n          };\r\n          transitionEnd = function(event) {\r\n            if( event.target == $transition[0] ) {\r\n              $transition.off(transitionEvent + elementNamespace, transitionEnd);\r\n              module.remove.animating();\r\n              module.remove.transition();\r\n              module.remove.inlineCSS();\r\n              if(transition == 'scale down' || (settings.returnScroll && module.is.mobile()) ) {\r\n                module.scrollBack();\r\n              }\r\n              callback.call(element);\r\n            }\r\n          };\r\n          $transition.off(transitionEvent + elementNamespace);\r\n          $transition.on(transitionEvent + elementNamespace, transitionEnd);\r\n          requestAnimationFrame(animate);\r\n        },\r\n\r\n        scrollToTop: function() {\r\n          module.verbose('Scrolling to top of page to avoid animation issues');\r\n          currentScroll = $(window).scrollTop();\r\n          $module.scrollTop(0);\r\n          window.scrollTo(0, 0);\r\n        },\r\n\r\n        scrollBack: function() {\r\n          module.verbose('Scrolling back to original page position');\r\n          window.scrollTo(0, currentScroll);\r\n        },\r\n\r\n        clear: {\r\n          cache: function() {\r\n            module.verbose('Clearing cached dimensions');\r\n            module.cache = {};\r\n          }\r\n        },\r\n\r\n        set: {\r\n\r\n          // ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios\r\n          ios: function() {\r\n            $html.addClass(className.ios);\r\n          },\r\n\r\n          // container\r\n          pushed: function() {\r\n            $context.addClass(className.pushed);\r\n          },\r\n          pushable: function() {\r\n            $context.addClass(className.pushable);\r\n          },\r\n\r\n          // pusher\r\n          dimmed: function() {\r\n            $pusher.addClass(className.dimmed);\r\n          },\r\n\r\n          // sidebar\r\n          active: function() {\r\n            $module.addClass(className.active);\r\n          },\r\n          animating: function() {\r\n            $module.addClass(className.animating);\r\n          },\r\n          transition: function(transition) {\r\n            transition = transition || module.get.transition();\r\n            $module.addClass(transition);\r\n          },\r\n          direction: function(direction) {\r\n            direction = direction || module.get.direction();\r\n            $module.addClass(className[direction]);\r\n          },\r\n          visible: function() {\r\n            $module.addClass(className.visible);\r\n          },\r\n          overlay: function() {\r\n            $module.addClass(className.overlay);\r\n          }\r\n        },\r\n        remove: {\r\n\r\n          inlineCSS: function() {\r\n            module.debug('Removing inline css styles', $style);\r\n            if($style && $style.length > 0) {\r\n              $style.remove();\r\n            }\r\n          },\r\n\r\n          // ios scroll on html not document\r\n          ios: function() {\r\n            $html.removeClass(className.ios);\r\n          },\r\n\r\n          // context\r\n          pushed: function() {\r\n            $context.removeClass(className.pushed);\r\n          },\r\n          pushable: function() {\r\n            $context.removeClass(className.pushable);\r\n          },\r\n\r\n          // sidebar\r\n          active: function() {\r\n            $module.removeClass(className.active);\r\n          },\r\n          animating: function() {\r\n            $module.removeClass(className.animating);\r\n          },\r\n          transition: function(transition) {\r\n            transition = transition || module.get.transition();\r\n            $module.removeClass(transition);\r\n          },\r\n          direction: function(direction) {\r\n            direction = direction || module.get.direction();\r\n            $module.removeClass(className[direction]);\r\n          },\r\n          visible: function() {\r\n            $module.removeClass(className.visible);\r\n          },\r\n          overlay: function() {\r\n            $module.removeClass(className.overlay);\r\n          }\r\n        },\r\n\r\n        get: {\r\n          direction: function() {\r\n            if($module.hasClass(className.top)) {\r\n              return className.top;\r\n            }\r\n            else if($module.hasClass(className.right)) {\r\n              return className.right;\r\n            }\r\n            else if($module.hasClass(className.bottom)) {\r\n              return className.bottom;\r\n            }\r\n            return className.left;\r\n          },\r\n          transition: function() {\r\n            var\r\n              direction = module.get.direction(),\r\n              transition\r\n            ;\r\n            transition = ( module.is.mobile() )\r\n              ? (settings.mobileTransition == 'auto')\r\n                ? settings.defaultTransition.mobile[direction]\r\n                : settings.mobileTransition\r\n              : (settings.transition == 'auto')\r\n                ? settings.defaultTransition.computer[direction]\r\n                : settings.transition\r\n            ;\r\n            module.verbose('Determined transition', transition);\r\n            return transition;\r\n          },\r\n          transitionEvent: function() {\r\n            var\r\n              element     = document.createElement('element'),\r\n              transitions = {\r\n                'transition'       :'transitionend',\r\n                'OTransition'      :'oTransitionEnd',\r\n                'MozTransition'    :'transitionend',\r\n                'WebkitTransition' :'webkitTransitionEnd'\r\n              },\r\n              transition\r\n            ;\r\n            for(transition in transitions){\r\n              if( element.style[transition] !== undefined ){\r\n                return transitions[transition];\r\n              }\r\n            }\r\n          }\r\n        },\r\n\r\n        is: {\r\n\r\n          ie: function() {\r\n            var\r\n              isIE11 = (!(window.ActiveXObject) && 'ActiveXObject' in window),\r\n              isIE   = ('ActiveXObject' in window)\r\n            ;\r\n            return (isIE11 || isIE);\r\n          },\r\n\r\n          ios: function() {\r\n            var\r\n              userAgent      = navigator.userAgent,\r\n              isIOS          = userAgent.match(regExp.ios),\r\n              isMobileChrome = userAgent.match(regExp.mobileChrome)\r\n            ;\r\n            if(isIOS && !isMobileChrome) {\r\n              module.verbose('Browser was found to be iOS', userAgent);\r\n              return true;\r\n            }\r\n            else {\r\n              return false;\r\n            }\r\n          },\r\n          mobile: function() {\r\n            var\r\n              userAgent    = navigator.userAgent,\r\n              isMobile     = userAgent.match(regExp.mobile)\r\n            ;\r\n            if(isMobile) {\r\n              module.verbose('Browser was found to be mobile', userAgent);\r\n              return true;\r\n            }\r\n            else {\r\n              module.verbose('Browser is not mobile, using regular transition', userAgent);\r\n              return false;\r\n            }\r\n          },\r\n          hidden: function() {\r\n            return !module.is.visible();\r\n          },\r\n          visible: function() {\r\n            return $module.hasClass(className.visible);\r\n          },\r\n          // alias\r\n          open: function() {\r\n            return module.is.visible();\r\n          },\r\n          closed: function() {\r\n            return module.is.hidden();\r\n          },\r\n          vertical: function() {\r\n            return $module.hasClass(className.top);\r\n          },\r\n          animating: function() {\r\n            return $context.hasClass(className.animating);\r\n          },\r\n          rtl: function () {\r\n            if(module.cache.rtl === undefined) {\r\n              module.cache.rtl = ($module.css('direction') == 'rtl');\r\n            }\r\n            return module.cache.rtl;\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      }\r\n    ;\r\n\r\n    if(methodInvoked) {\r\n      if(instance === undefined) {\r\n        module.initialize();\r\n      }\r\n      module.invoke(query);\r\n    }\r\n    else {\r\n      if(instance !== undefined) {\r\n        module.invoke('destroy');\r\n      }\r\n      module.initialize();\r\n    }\r\n  });\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.sidebar.settings = {\r\n\r\n  name              : 'Sidebar',\r\n  namespace         : 'sidebar',\r\n\r\n  silent            : false,\r\n  debug             : false,\r\n  verbose           : false,\r\n  performance       : true,\r\n\r\n  transition        : 'auto',\r\n  mobileTransition  : 'auto',\r\n\r\n  defaultTransition : {\r\n    computer: {\r\n      left   : 'uncover',\r\n      right  : 'uncover',\r\n      top    : 'overlay',\r\n      bottom : 'overlay'\r\n    },\r\n    mobile: {\r\n      left   : 'uncover',\r\n      right  : 'uncover',\r\n      top    : 'overlay',\r\n      bottom : 'overlay'\r\n    }\r\n  },\r\n\r\n  context           : 'body',\r\n  exclusive         : false,\r\n  closable          : true,\r\n  dimPage           : true,\r\n  scrollLock        : false,\r\n  returnScroll      : false,\r\n  delaySetup        : false,\r\n\r\n  duration          : 500,\r\n\r\n  onChange          : function(){},\r\n  onShow            : function(){},\r\n  onHide            : function(){},\r\n\r\n  onHidden          : function(){},\r\n  onVisible         : function(){},\r\n\r\n  className         : {\r\n    active    : 'active',\r\n    animating : 'animating',\r\n    dimmed    : 'dimmed',\r\n    ios       : 'ios',\r\n    pushable  : 'pushable',\r\n    pushed    : 'pushed',\r\n    right     : 'right',\r\n    top       : 'top',\r\n    left      : 'left',\r\n    bottom    : 'bottom',\r\n    visible   : 'visible'\r\n  },\r\n\r\n  selector: {\r\n    fixed   : '.fixed',\r\n    omitted : 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed',\r\n    pusher  : '.pusher',\r\n    sidebar : '.ui.sidebar'\r\n  },\r\n\r\n  regExp: {\r\n    ios          : /(iPad|iPhone|iPod)/g,\r\n    mobileChrome : /(CriOS)/g,\r\n    mobile       : /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g\r\n  },\r\n\r\n  error   : {\r\n    method       : 'The method you called is not defined.',\r\n    pusher       : 'Had to add pusher element. For optimal performance make sure body content is inside a pusher element',\r\n    movedSidebar : 'Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag',\r\n    overlay      : 'The overlay setting is no longer supported, use animation: overlay',\r\n    notFound     : 'There were no elements that matched the specified selector'\r\n  }\r\n\r\n};\r\n\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Sticky\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.sticky = function(parameters) {\r\n  var\r\n    $allModules    = $(this),\r\n    moduleSelector = $allModules.selector || '',\r\n\r\n    time           = new Date().getTime(),\r\n    performance    = [],\r\n\r\n    query          = arguments[0],\r\n    methodInvoked  = (typeof query == 'string'),\r\n    queryArguments = [].slice.call(arguments, 1),\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings              = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.sticky.settings, parameters)\r\n          : $.extend({}, $.fn.sticky.settings),\r\n\r\n        className             = settings.className,\r\n        namespace             = settings.namespace,\r\n        error                 = settings.error,\r\n\r\n        eventNamespace        = '.' + namespace,\r\n        moduleNamespace       = 'module-' + namespace,\r\n\r\n        $module               = $(this),\r\n        $window               = $(window),\r\n        $scroll               = $(settings.scrollContext),\r\n        $container,\r\n        $context,\r\n\r\n        selector              = $module.selector || '',\r\n        instance              = $module.data(moduleNamespace),\r\n\r\n        requestAnimationFrame = window.requestAnimationFrame\r\n          || window.mozRequestAnimationFrame\r\n          || window.webkitRequestAnimationFrame\r\n          || window.msRequestAnimationFrame\r\n          || function(callback) { setTimeout(callback, 0); },\r\n\r\n        element         = this,\r\n\r\n        documentObserver,\r\n        observer,\r\n        module\r\n      ;\r\n\r\n      module      = {\r\n\r\n        initialize: function() {\r\n\r\n          module.determineContainer();\r\n          module.determineContext();\r\n          module.verbose('Initializing sticky', settings, $container);\r\n\r\n          module.save.positions();\r\n          module.checkErrors();\r\n          module.bind.events();\r\n\r\n          if(settings.observeChanges) {\r\n            module.observeChanges();\r\n          }\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous instance');\r\n          module.reset();\r\n          if(documentObserver) {\r\n            documentObserver.disconnect();\r\n          }\r\n          if(observer) {\r\n            observer.disconnect();\r\n          }\r\n          $window\r\n            .off('load' + eventNamespace, module.event.load)\r\n            .off('resize' + eventNamespace, module.event.resize)\r\n          ;\r\n          $scroll\r\n            .off('scrollchange' + eventNamespace, module.event.scrollchange)\r\n          ;\r\n          $module.removeData(moduleNamespace);\r\n        },\r\n\r\n        observeChanges: function() {\r\n          if('MutationObserver' in window) {\r\n            documentObserver = new MutationObserver(module.event.documentChanged);\r\n            observer         = new MutationObserver(module.event.changed);\r\n            documentObserver.observe(document, {\r\n              childList : true,\r\n              subtree   : true\r\n            });\r\n            observer.observe(element, {\r\n              childList : true,\r\n              subtree   : true\r\n            });\r\n            observer.observe($context[0], {\r\n              childList : true,\r\n              subtree   : true\r\n            });\r\n            module.debug('Setting up mutation observer', observer);\r\n          }\r\n        },\r\n\r\n        determineContainer: function() {\r\n          if(settings.container) {\r\n            $container = $(settings.container);\r\n          }\r\n          else {\r\n            $container = $module.offsetParent();\r\n          }\r\n        },\r\n\r\n        determineContext: function() {\r\n          if(settings.context) {\r\n            $context = $(settings.context);\r\n          }\r\n          else {\r\n            $context = $container;\r\n          }\r\n          if($context.length === 0) {\r\n            module.error(error.invalidContext, settings.context, $module);\r\n            return;\r\n          }\r\n        },\r\n\r\n        checkErrors: function() {\r\n          if( module.is.hidden() ) {\r\n            module.error(error.visible, $module);\r\n          }\r\n          if(module.cache.element.height > module.cache.context.height) {\r\n            module.reset();\r\n            module.error(error.elementSize, $module);\r\n            return;\r\n          }\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            $window\r\n              .on('load' + eventNamespace, module.event.load)\r\n              .on('resize' + eventNamespace, module.event.resize)\r\n            ;\r\n            // pub/sub pattern\r\n            $scroll\r\n              .off('scroll' + eventNamespace)\r\n              .on('scroll' + eventNamespace, module.event.scroll)\r\n              .on('scrollchange' + eventNamespace, module.event.scrollchange)\r\n            ;\r\n          }\r\n        },\r\n\r\n        event: {\r\n          changed: function(mutations) {\r\n            clearTimeout(module.timer);\r\n            module.timer = setTimeout(function() {\r\n              module.verbose('DOM tree modified, updating sticky menu', mutations);\r\n              module.refresh();\r\n            }, 100);\r\n          },\r\n          documentChanged: function(mutations) {\r\n            [].forEach.call(mutations, function(mutation) {\r\n              if(mutation.removedNodes) {\r\n                [].forEach.call(mutation.removedNodes, function(node) {\r\n                  if(node == element || $(node).find(element).length > 0) {\r\n                    module.debug('Element removed from DOM, tearing down events');\r\n                    module.destroy();\r\n                  }\r\n                });\r\n              }\r\n            });\r\n          },\r\n          load: function() {\r\n            module.verbose('Page contents finished loading');\r\n            requestAnimationFrame(module.refresh);\r\n          },\r\n          resize: function() {\r\n            module.verbose('Window resized');\r\n            requestAnimationFrame(module.refresh);\r\n          },\r\n          scroll: function() {\r\n            requestAnimationFrame(function() {\r\n              $scroll.triggerHandler('scrollchange' + eventNamespace, $scroll.scrollTop() );\r\n            });\r\n          },\r\n          scrollchange: function(event, scrollPosition) {\r\n            module.stick(scrollPosition);\r\n            settings.onScroll.call(element);\r\n          }\r\n        },\r\n\r\n        refresh: function(hardRefresh) {\r\n          module.reset();\r\n          if(!settings.context) {\r\n            module.determineContext();\r\n          }\r\n          if(hardRefresh) {\r\n            module.determineContainer();\r\n          }\r\n          module.save.positions();\r\n          module.stick();\r\n          settings.onReposition.call(element);\r\n        },\r\n\r\n        supports: {\r\n          sticky: function() {\r\n            var\r\n              $element = $('<div/>'),\r\n              element = $element[0]\r\n            ;\r\n            $element.addClass(className.supported);\r\n            return($element.css('position').match('sticky'));\r\n          }\r\n        },\r\n\r\n        save: {\r\n          lastScroll: function(scroll) {\r\n            module.lastScroll = scroll;\r\n          },\r\n          elementScroll: function(scroll) {\r\n            module.elementScroll = scroll;\r\n          },\r\n          positions: function() {\r\n            var\r\n              scrollContext = {\r\n                height : $scroll.height()\r\n              },\r\n              element = {\r\n                margin: {\r\n                  top    : parseInt($module.css('margin-top'), 10),\r\n                  bottom : parseInt($module.css('margin-bottom'), 10),\r\n                },\r\n                offset : $module.offset(),\r\n                width  : $module.outerWidth(),\r\n                height : $module.outerHeight()\r\n              },\r\n              context = {\r\n                offset : $context.offset(),\r\n                height : $context.outerHeight()\r\n              },\r\n              container = {\r\n                height: $container.outerHeight()\r\n              }\r\n            ;\r\n            if( !module.is.standardScroll() ) {\r\n              module.debug('Non-standard scroll. Removing scroll offset from element offset');\r\n\r\n              scrollContext.top  = $scroll.scrollTop();\r\n              scrollContext.left = $scroll.scrollLeft();\r\n\r\n              element.offset.top  += scrollContext.top;\r\n              context.offset.top  += scrollContext.top;\r\n              element.offset.left += scrollContext.left;\r\n              context.offset.left += scrollContext.left;\r\n            }\r\n            module.cache = {\r\n              fits : ( element.height < scrollContext.height ),\r\n              scrollContext : {\r\n                height : scrollContext.height\r\n              },\r\n              element: {\r\n                margin : element.margin,\r\n                top    : element.offset.top - element.margin.top,\r\n                left   : element.offset.left,\r\n                width  : element.width,\r\n                height : element.height,\r\n                bottom : element.offset.top + element.height\r\n              },\r\n              context: {\r\n                top           : context.offset.top,\r\n                height        : context.height,\r\n                bottom        : context.offset.top + context.height\r\n              }\r\n            };\r\n            module.set.containerSize();\r\n            module.set.size();\r\n            module.stick();\r\n            module.debug('Caching element positions', module.cache);\r\n          }\r\n        },\r\n\r\n        get: {\r\n          direction: function(scroll) {\r\n            var\r\n              direction = 'down'\r\n            ;\r\n            scroll = scroll || $scroll.scrollTop();\r\n            if(module.lastScroll !== undefined) {\r\n              if(module.lastScroll < scroll) {\r\n                direction = 'down';\r\n              }\r\n              else if(module.lastScroll > scroll) {\r\n                direction = 'up';\r\n              }\r\n            }\r\n            return direction;\r\n          },\r\n          scrollChange: function(scroll) {\r\n            scroll = scroll || $scroll.scrollTop();\r\n            return (module.lastScroll)\r\n              ? (scroll - module.lastScroll)\r\n              : 0\r\n            ;\r\n          },\r\n          currentElementScroll: function() {\r\n            if(module.elementScroll) {\r\n              return module.elementScroll;\r\n            }\r\n            return ( module.is.top() )\r\n              ? Math.abs(parseInt($module.css('top'), 10))    || 0\r\n              : Math.abs(parseInt($module.css('bottom'), 10)) || 0\r\n            ;\r\n          },\r\n\r\n          elementScroll: function(scroll) {\r\n            scroll = scroll || $scroll.scrollTop();\r\n            var\r\n              element        = module.cache.element,\r\n              scrollContext  = module.cache.scrollContext,\r\n              delta          = module.get.scrollChange(scroll),\r\n              maxScroll      = (element.height - scrollContext.height + settings.offset),\r\n              elementScroll  = module.get.currentElementScroll(),\r\n              possibleScroll = (elementScroll + delta)\r\n            ;\r\n            if(module.cache.fits || possibleScroll < 0) {\r\n              elementScroll = 0;\r\n            }\r\n            else if(possibleScroll > maxScroll ) {\r\n              elementScroll = maxScroll;\r\n            }\r\n            else {\r\n              elementScroll = possibleScroll;\r\n            }\r\n            return elementScroll;\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          lastScroll: function() {\r\n            delete module.lastScroll;\r\n          },\r\n          elementScroll: function(scroll) {\r\n            delete module.elementScroll;\r\n          },\r\n          offset: function() {\r\n            $module.css('margin-top', '');\r\n          }\r\n        },\r\n\r\n        set: {\r\n          offset: function() {\r\n            module.verbose('Setting offset on element', settings.offset);\r\n            $module\r\n              .css('margin-top', settings.offset)\r\n            ;\r\n          },\r\n          containerSize: function() {\r\n            var\r\n              tagName = $container.get(0).tagName\r\n            ;\r\n            if(tagName === 'HTML' || tagName == 'body') {\r\n              // this can trigger for too many reasons\r\n              //module.error(error.container, tagName, $module);\r\n              module.determineContainer();\r\n            }\r\n            else {\r\n              if( Math.abs($container.outerHeight() - module.cache.context.height) > settings.jitter) {\r\n                module.debug('Context has padding, specifying exact height for container', module.cache.context.height);\r\n                $container.css({\r\n                  height: module.cache.context.height\r\n                });\r\n              }\r\n            }\r\n          },\r\n          minimumSize: function() {\r\n            var\r\n              element   = module.cache.element\r\n            ;\r\n            $container\r\n              .css('min-height', element.height)\r\n            ;\r\n          },\r\n          scroll: function(scroll) {\r\n            module.debug('Setting scroll on element', scroll);\r\n            if(module.elementScroll == scroll) {\r\n              return;\r\n            }\r\n            if( module.is.top() ) {\r\n              $module\r\n                .css('bottom', '')\r\n                .css('top', -scroll)\r\n              ;\r\n            }\r\n            if( module.is.bottom() ) {\r\n              $module\r\n                .css('top', '')\r\n                .css('bottom', scroll)\r\n              ;\r\n            }\r\n          },\r\n          size: function() {\r\n            if(module.cache.element.height !== 0 && module.cache.element.width !== 0) {\r\n              element.style.setProperty('width',  module.cache.element.width  + 'px', 'important');\r\n              element.style.setProperty('height', module.cache.element.height + 'px', 'important');\r\n            }\r\n          }\r\n        },\r\n\r\n        is: {\r\n          standardScroll: function() {\r\n            return ($scroll[0] == window);\r\n          },\r\n          top: function() {\r\n            return $module.hasClass(className.top);\r\n          },\r\n          bottom: function() {\r\n            return $module.hasClass(className.bottom);\r\n          },\r\n          initialPosition: function() {\r\n            return (!module.is.fixed() && !module.is.bound());\r\n          },\r\n          hidden: function() {\r\n            return (!$module.is(':visible'));\r\n          },\r\n          bound: function() {\r\n            return $module.hasClass(className.bound);\r\n          },\r\n          fixed: function() {\r\n            return $module.hasClass(className.fixed);\r\n          }\r\n        },\r\n\r\n        stick: function(scroll) {\r\n          var\r\n            cachedPosition = scroll || $scroll.scrollTop(),\r\n            cache          = module.cache,\r\n            fits           = cache.fits,\r\n            element        = cache.element,\r\n            scrollContext  = cache.scrollContext,\r\n            context        = cache.context,\r\n            offset         = (module.is.bottom() && settings.pushing)\r\n              ? settings.bottomOffset\r\n              : settings.offset,\r\n            scroll         = {\r\n              top    : cachedPosition + offset,\r\n              bottom : cachedPosition + offset + scrollContext.height\r\n            },\r\n            direction      = module.get.direction(scroll.top),\r\n            elementScroll  = (fits)\r\n              ? 0\r\n              : module.get.elementScroll(scroll.top),\r\n\r\n            // shorthand\r\n            doesntFit      = !fits,\r\n            elementVisible = (element.height !== 0)\r\n          ;\r\n\r\n          if(elementVisible) {\r\n\r\n            if( module.is.initialPosition() ) {\r\n              if(scroll.top >= context.bottom) {\r\n                module.debug('Initial element position is bottom of container');\r\n                module.bindBottom();\r\n              }\r\n              else if(scroll.top > element.top) {\r\n                if( (element.height + scroll.top - elementScroll) >= context.bottom ) {\r\n                  module.debug('Initial element position is bottom of container');\r\n                  module.bindBottom();\r\n                }\r\n                else {\r\n                  module.debug('Initial element position is fixed');\r\n                  module.fixTop();\r\n                }\r\n              }\r\n\r\n            }\r\n            else if( module.is.fixed() ) {\r\n\r\n              // currently fixed top\r\n              if( module.is.top() ) {\r\n                if( scroll.top <= element.top ) {\r\n                  module.debug('Fixed element reached top of container');\r\n                  module.setInitialPosition();\r\n                }\r\n                else if( (element.height + scroll.top - elementScroll) >= context.bottom ) {\r\n                  module.debug('Fixed element reached bottom of container');\r\n                  module.bindBottom();\r\n                }\r\n                // scroll element if larger than screen\r\n                else if(doesntFit) {\r\n                  module.set.scroll(elementScroll);\r\n                  module.save.lastScroll(scroll.top);\r\n                  module.save.elementScroll(elementScroll);\r\n                }\r\n              }\r\n\r\n              // currently fixed bottom\r\n              else if(module.is.bottom() ) {\r\n\r\n                // top edge\r\n                if( (scroll.bottom - element.height) <= element.top) {\r\n                  module.debug('Bottom fixed rail has reached top of container');\r\n                  module.setInitialPosition();\r\n                }\r\n                // bottom edge\r\n                else if(scroll.bottom >= context.bottom) {\r\n                  module.debug('Bottom fixed rail has reached bottom of container');\r\n                  module.bindBottom();\r\n                }\r\n                // scroll element if larger than screen\r\n                else if(doesntFit) {\r\n                  module.set.scroll(elementScroll);\r\n                  module.save.lastScroll(scroll.top);\r\n                  module.save.elementScroll(elementScroll);\r\n                }\r\n\r\n              }\r\n            }\r\n            else if( module.is.bottom() ) {\r\n              if( scroll.top <= element.top ) {\r\n                module.debug('Jumped from bottom fixed to top fixed, most likely used home/end button');\r\n                module.setInitialPosition();\r\n              }\r\n              else {\r\n                if(settings.pushing) {\r\n                  if(module.is.bound() && scroll.bottom <= context.bottom ) {\r\n                    module.debug('Fixing bottom attached element to bottom of browser.');\r\n                    module.fixBottom();\r\n                  }\r\n                }\r\n                else {\r\n                  if(module.is.bound() && (scroll.top <= context.bottom - element.height) ) {\r\n                    module.debug('Fixing bottom attached element to top of browser.');\r\n                    module.fixTop();\r\n                  }\r\n                }\r\n              }\r\n            }\r\n          }\r\n        },\r\n\r\n        bindTop: function() {\r\n          module.debug('Binding element to top of parent container');\r\n          module.remove.offset();\r\n          $module\r\n            .css({\r\n              left         : '',\r\n              top          : '',\r\n              marginBottom : ''\r\n            })\r\n            .removeClass(className.fixed)\r\n            .removeClass(className.bottom)\r\n            .addClass(className.bound)\r\n            .addClass(className.top)\r\n          ;\r\n          settings.onTop.call(element);\r\n          settings.onUnstick.call(element);\r\n        },\r\n        bindBottom: function() {\r\n          module.debug('Binding element to bottom of parent container');\r\n          module.remove.offset();\r\n          $module\r\n            .css({\r\n              left         : '',\r\n              top          : ''\r\n            })\r\n            .removeClass(className.fixed)\r\n            .removeClass(className.top)\r\n            .addClass(className.bound)\r\n            .addClass(className.bottom)\r\n          ;\r\n          settings.onBottom.call(element);\r\n          settings.onUnstick.call(element);\r\n        },\r\n\r\n        setInitialPosition: function() {\r\n          module.debug('Returning to initial position');\r\n          module.unfix();\r\n          module.unbind();\r\n        },\r\n\r\n\r\n        fixTop: function() {\r\n          module.debug('Fixing element to top of page');\r\n          module.set.minimumSize();\r\n          module.set.offset();\r\n          $module\r\n            .css({\r\n              left         : module.cache.element.left,\r\n              bottom       : '',\r\n              marginBottom : ''\r\n            })\r\n            .removeClass(className.bound)\r\n            .removeClass(className.bottom)\r\n            .addClass(className.fixed)\r\n            .addClass(className.top)\r\n          ;\r\n          settings.onStick.call(element);\r\n        },\r\n\r\n        fixBottom: function() {\r\n          module.debug('Sticking element to bottom of page');\r\n          module.set.minimumSize();\r\n          module.set.offset();\r\n          $module\r\n            .css({\r\n              left         : module.cache.element.left,\r\n              bottom       : '',\r\n              marginBottom : ''\r\n            })\r\n            .removeClass(className.bound)\r\n            .removeClass(className.top)\r\n            .addClass(className.fixed)\r\n            .addClass(className.bottom)\r\n          ;\r\n          settings.onStick.call(element);\r\n        },\r\n\r\n        unbind: function() {\r\n          if( module.is.bound() ) {\r\n            module.debug('Removing container bound position on element');\r\n            module.remove.offset();\r\n            $module\r\n              .removeClass(className.bound)\r\n              .removeClass(className.top)\r\n              .removeClass(className.bottom)\r\n            ;\r\n          }\r\n        },\r\n\r\n        unfix: function() {\r\n          if( module.is.fixed() ) {\r\n            module.debug('Removing fixed position on element');\r\n            module.remove.offset();\r\n            $module\r\n              .removeClass(className.fixed)\r\n              .removeClass(className.top)\r\n              .removeClass(className.bottom)\r\n            ;\r\n            settings.onUnstick.call(element);\r\n          }\r\n        },\r\n\r\n        reset: function() {\r\n          module.debug('Resetting elements position');\r\n          module.unbind();\r\n          module.unfix();\r\n          module.resetCSS();\r\n          module.remove.offset();\r\n          module.remove.lastScroll();\r\n        },\r\n\r\n        resetCSS: function() {\r\n          $module\r\n            .css({\r\n              width  : '',\r\n              height : ''\r\n            })\r\n          ;\r\n          $container\r\n            .css({\r\n              height: ''\r\n            })\r\n          ;\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            settings[name] = value;\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 0);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.sticky.settings = {\r\n\r\n  name           : 'Sticky',\r\n  namespace      : 'sticky',\r\n\r\n  silent         : false,\r\n  debug          : false,\r\n  verbose        : true,\r\n  performance    : true,\r\n\r\n  // whether to stick in the opposite direction on scroll up\r\n  pushing        : false,\r\n\r\n  context        : false,\r\n  container      : false,\r\n\r\n  // Context to watch scroll events\r\n  scrollContext  : window,\r\n\r\n  // Offset to adjust scroll\r\n  offset         : 0,\r\n\r\n  // Offset to adjust scroll when attached to bottom of screen\r\n  bottomOffset   : 0,\r\n\r\n  jitter         : 5, // will only set container height if difference between context and container is larger than this number\r\n\r\n  // Whether to automatically observe changes with Mutation Observers\r\n  observeChanges : false,\r\n\r\n  // Called when position is recalculated\r\n  onReposition   : function(){},\r\n\r\n  // Called on each scroll\r\n  onScroll       : function(){},\r\n\r\n  // Called when element is stuck to viewport\r\n  onStick        : function(){},\r\n\r\n  // Called when element is unstuck from viewport\r\n  onUnstick      : function(){},\r\n\r\n  // Called when element reaches top of context\r\n  onTop          : function(){},\r\n\r\n  // Called when element reaches bottom of context\r\n  onBottom       : function(){},\r\n\r\n  error         : {\r\n    container      : 'Sticky element must be inside a relative container',\r\n    visible        : 'Element is hidden, you must call refresh after element becomes visible. Use silent setting to surpress this warning in production.',\r\n    method         : 'The method you called is not defined.',\r\n    invalidContext : 'Context specified does not exist',\r\n    elementSize    : 'Sticky element is larger than its container, cannot create sticky.'\r\n  },\r\n\r\n  className : {\r\n    bound     : 'bound',\r\n    fixed     : 'fixed',\r\n    supported : 'native',\r\n    top       : 'top',\r\n    bottom    : 'bottom'\r\n  }\r\n\r\n};\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Tab\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.tab = function(parameters) {\r\n\r\n  var\r\n    // use window context if none specified\r\n    $allModules     = $.isFunction(this)\r\n        ? $(window)\r\n        : $(this),\r\n\r\n    moduleSelector  = $allModules.selector || '',\r\n    time            = new Date().getTime(),\r\n    performance     = [],\r\n\r\n    query           = arguments[0],\r\n    methodInvoked   = (typeof query == 'string'),\r\n    queryArguments  = [].slice.call(arguments, 1),\r\n\r\n    initializedHistory = false,\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n\r\n        settings        = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.tab.settings, parameters)\r\n          : $.extend({}, $.fn.tab.settings),\r\n\r\n        className       = settings.className,\r\n        metadata        = settings.metadata,\r\n        selector        = settings.selector,\r\n        error           = settings.error,\r\n\r\n        eventNamespace  = '.' + settings.namespace,\r\n        moduleNamespace = 'module-' + settings.namespace,\r\n\r\n        $module         = $(this),\r\n        $context,\r\n        $tabs,\r\n\r\n        cache           = {},\r\n        firstLoad       = true,\r\n        recursionDepth  = 0,\r\n        element         = this,\r\n        instance        = $module.data(moduleNamespace),\r\n\r\n        activeTabPath,\r\n        parameterArray,\r\n        module,\r\n\r\n        historyEvent\r\n\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.debug('Initializing tab menu item', $module);\r\n          module.fix.callbacks();\r\n          module.determineTabs();\r\n\r\n          module.debug('Determining tabs', settings.context, $tabs);\r\n          // set up automatic routing\r\n          if(settings.auto) {\r\n            module.set.auto();\r\n          }\r\n          module.bind.events();\r\n\r\n          if(settings.history && !initializedHistory) {\r\n            module.initializeHistory();\r\n            initializedHistory = true;\r\n          }\r\n\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function () {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.debug('Destroying tabs', $module);\r\n          $module\r\n            .removeData(moduleNamespace)\r\n            .off(eventNamespace)\r\n          ;\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            // if using $.tab don't add events\r\n            if( !$.isWindow( element ) ) {\r\n              module.debug('Attaching tab activation events to element', $module);\r\n              $module\r\n                .on('click' + eventNamespace, module.event.click)\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        determineTabs: function() {\r\n          var\r\n            $reference\r\n          ;\r\n\r\n          // determine tab context\r\n          if(settings.context === 'parent') {\r\n            if($module.closest(selector.ui).length > 0) {\r\n              $reference = $module.closest(selector.ui);\r\n              module.verbose('Using closest UI element as parent', $reference);\r\n            }\r\n            else {\r\n              $reference = $module;\r\n            }\r\n            $context = $reference.parent();\r\n            module.verbose('Determined parent element for creating context', $context);\r\n          }\r\n          else if(settings.context) {\r\n            $context = $(settings.context);\r\n            module.verbose('Using selector for tab context', settings.context, $context);\r\n          }\r\n          else {\r\n            $context = $('body');\r\n          }\r\n          // find tabs\r\n          if(settings.childrenOnly) {\r\n            $tabs = $context.children(selector.tabs);\r\n            module.debug('Searching tab context children for tabs', $context, $tabs);\r\n          }\r\n          else {\r\n            $tabs = $context.find(selector.tabs);\r\n            module.debug('Searching tab context for tabs', $context, $tabs);\r\n          }\r\n        },\r\n\r\n        fix: {\r\n          callbacks: function() {\r\n            if( $.isPlainObject(parameters) && (parameters.onTabLoad || parameters.onTabInit) ) {\r\n              if(parameters.onTabLoad) {\r\n                parameters.onLoad = parameters.onTabLoad;\r\n                delete parameters.onTabLoad;\r\n                module.error(error.legacyLoad, parameters.onLoad);\r\n              }\r\n              if(parameters.onTabInit) {\r\n                parameters.onFirstLoad = parameters.onTabInit;\r\n                delete parameters.onTabInit;\r\n                module.error(error.legacyInit, parameters.onFirstLoad);\r\n              }\r\n              settings = $.extend(true, {}, $.fn.tab.settings, parameters);\r\n            }\r\n          }\r\n        },\r\n\r\n        initializeHistory: function() {\r\n          module.debug('Initializing page state');\r\n          if( $.address === undefined ) {\r\n            module.error(error.state);\r\n            return false;\r\n          }\r\n          else {\r\n            if(settings.historyType == 'state') {\r\n              module.debug('Using HTML5 to manage state');\r\n              if(settings.path !== false) {\r\n                $.address\r\n                  .history(true)\r\n                  .state(settings.path)\r\n                ;\r\n              }\r\n              else {\r\n                module.error(error.path);\r\n                return false;\r\n              }\r\n            }\r\n            $.address\r\n              .bind('change', module.event.history.change)\r\n            ;\r\n          }\r\n        },\r\n\r\n        event: {\r\n          click: function(event) {\r\n            var\r\n              tabPath = $(this).data(metadata.tab)\r\n            ;\r\n            if(tabPath !== undefined) {\r\n              if(settings.history) {\r\n                module.verbose('Updating page state', event);\r\n                $.address.value(tabPath);\r\n              }\r\n              else {\r\n                module.verbose('Changing tab', event);\r\n                module.changeTab(tabPath);\r\n              }\r\n              event.preventDefault();\r\n            }\r\n            else {\r\n              module.debug('No tab specified');\r\n            }\r\n          },\r\n          history: {\r\n            change: function(event) {\r\n              var\r\n                tabPath   = event.pathNames.join('/') || module.get.initialPath(),\r\n                pageTitle = settings.templates.determineTitle(tabPath) || false\r\n              ;\r\n              module.performance.display();\r\n              module.debug('History change event', tabPath, event);\r\n              historyEvent = event;\r\n              if(tabPath !== undefined) {\r\n                module.changeTab(tabPath);\r\n              }\r\n              if(pageTitle) {\r\n                $.address.title(pageTitle);\r\n              }\r\n            }\r\n          }\r\n        },\r\n\r\n        refresh: function() {\r\n          if(activeTabPath) {\r\n            module.debug('Refreshing tab', activeTabPath);\r\n            module.changeTab(activeTabPath);\r\n          }\r\n        },\r\n\r\n        cache: {\r\n\r\n          read: function(cacheKey) {\r\n            return (cacheKey !== undefined)\r\n              ? cache[cacheKey]\r\n              : false\r\n            ;\r\n          },\r\n          add: function(cacheKey, content) {\r\n            cacheKey = cacheKey || activeTabPath;\r\n            module.debug('Adding cached content for', cacheKey);\r\n            cache[cacheKey] = content;\r\n          },\r\n          remove: function(cacheKey) {\r\n            cacheKey = cacheKey || activeTabPath;\r\n            module.debug('Removing cached content for', cacheKey);\r\n            delete cache[cacheKey];\r\n          }\r\n        },\r\n\r\n        set: {\r\n          auto: function() {\r\n            var\r\n              url = (typeof settings.path == 'string')\r\n                ? settings.path.replace(/\\/$/, '') + '/{$tab}'\r\n                : '/{$tab}'\r\n            ;\r\n            module.verbose('Setting up automatic tab retrieval from server', url);\r\n            if($.isPlainObject(settings.apiSettings)) {\r\n              settings.apiSettings.url = url;\r\n            }\r\n            else {\r\n              settings.apiSettings = {\r\n                url: url\r\n              };\r\n            }\r\n          },\r\n          loading: function(tabPath) {\r\n            var\r\n              $tab      = module.get.tabElement(tabPath),\r\n              isLoading = $tab.hasClass(className.loading)\r\n            ;\r\n            if(!isLoading) {\r\n              module.verbose('Setting loading state for', $tab);\r\n              $tab\r\n                .addClass(className.loading)\r\n                .siblings($tabs)\r\n                  .removeClass(className.active + ' ' + className.loading)\r\n              ;\r\n              if($tab.length > 0) {\r\n                settings.onRequest.call($tab[0], tabPath);\r\n              }\r\n            }\r\n          },\r\n          state: function(state) {\r\n            $.address.value(state);\r\n          }\r\n        },\r\n\r\n        changeTab: function(tabPath) {\r\n          var\r\n            pushStateAvailable = (window.history && window.history.pushState),\r\n            shouldIgnoreLoad   = (pushStateAvailable && settings.ignoreFirstLoad && firstLoad),\r\n            remoteContent      = (settings.auto || $.isPlainObject(settings.apiSettings) ),\r\n            // only add default path if not remote content\r\n            pathArray = (remoteContent && !shouldIgnoreLoad)\r\n              ? module.utilities.pathToArray(tabPath)\r\n              : module.get.defaultPathArray(tabPath)\r\n          ;\r\n          tabPath = module.utilities.arrayToPath(pathArray);\r\n          $.each(pathArray, function(index, tab) {\r\n            var\r\n              currentPathArray   = pathArray.slice(0, index + 1),\r\n              currentPath        = module.utilities.arrayToPath(currentPathArray),\r\n\r\n              isTab              = module.is.tab(currentPath),\r\n              isLastIndex        = (index + 1 == pathArray.length),\r\n\r\n              $tab               = module.get.tabElement(currentPath),\r\n              $anchor,\r\n              nextPathArray,\r\n              nextPath,\r\n              isLastTab\r\n            ;\r\n            module.verbose('Looking for tab', tab);\r\n            if(isTab) {\r\n              module.verbose('Tab was found', tab);\r\n              // scope up\r\n              activeTabPath  = currentPath;\r\n              parameterArray = module.utilities.filterArray(pathArray, currentPathArray);\r\n\r\n              if(isLastIndex) {\r\n                isLastTab = true;\r\n              }\r\n              else {\r\n                nextPathArray = pathArray.slice(0, index + 2);\r\n                nextPath      = module.utilities.arrayToPath(nextPathArray);\r\n                isLastTab     = ( !module.is.tab(nextPath) );\r\n                if(isLastTab) {\r\n                  module.verbose('Tab parameters found', nextPathArray);\r\n                }\r\n              }\r\n              if(isLastTab && remoteContent) {\r\n                if(!shouldIgnoreLoad) {\r\n                  module.activate.navigation(currentPath);\r\n                  module.fetch.content(currentPath, tabPath);\r\n                }\r\n                else {\r\n                  module.debug('Ignoring remote content on first tab load', currentPath);\r\n                  firstLoad = false;\r\n                  module.cache.add(tabPath, $tab.html());\r\n                  module.activate.all(currentPath);\r\n                  settings.onFirstLoad.call($tab[0], currentPath, parameterArray, historyEvent);\r\n                  settings.onLoad.call($tab[0], currentPath, parameterArray, historyEvent);\r\n                }\r\n                return false;\r\n              }\r\n              else {\r\n                module.debug('Opened local tab', currentPath);\r\n                module.activate.all(currentPath);\r\n                if( !module.cache.read(currentPath) ) {\r\n                  module.cache.add(currentPath, true);\r\n                  module.debug('First time tab loaded calling tab init');\r\n                  settings.onFirstLoad.call($tab[0], currentPath, parameterArray, historyEvent);\r\n                }\r\n                settings.onLoad.call($tab[0], currentPath, parameterArray, historyEvent);\r\n              }\r\n\r\n            }\r\n            else if(tabPath.search('/') == -1 && tabPath !== '') {\r\n              // look for in page anchor\r\n              $anchor     = $('#' + tabPath + ', a[name=\"' + tabPath + '\"]');\r\n              currentPath = $anchor.closest('[data-tab]').data(metadata.tab);\r\n              $tab        = module.get.tabElement(currentPath);\r\n              // if anchor exists use parent tab\r\n              if($anchor && $anchor.length > 0 && currentPath) {\r\n                module.debug('Anchor link used, opening parent tab', $tab, $anchor);\r\n                if( !$tab.hasClass(className.active) ) {\r\n                  setTimeout(function() {\r\n                    module.scrollTo($anchor);\r\n                  }, 0);\r\n                }\r\n                module.activate.all(currentPath);\r\n                if( !module.cache.read(currentPath) ) {\r\n                  module.cache.add(currentPath, true);\r\n                  module.debug('First time tab loaded calling tab init');\r\n                  settings.onFirstLoad.call($tab[0], currentPath, parameterArray, historyEvent);\r\n                }\r\n                settings.onLoad.call($tab[0], currentPath, parameterArray, historyEvent);\r\n                return false;\r\n              }\r\n            }\r\n            else {\r\n              module.error(error.missingTab, $module, $context, currentPath);\r\n              return false;\r\n            }\r\n          });\r\n        },\r\n\r\n        scrollTo: function($element) {\r\n          var\r\n            scrollOffset = ($element && $element.length > 0)\r\n              ? $element.offset().top\r\n              : false\r\n          ;\r\n          if(scrollOffset !== false) {\r\n            module.debug('Forcing scroll to an in-page link in a hidden tab', scrollOffset, $element);\r\n            $(document).scrollTop(scrollOffset);\r\n          }\r\n        },\r\n\r\n        update: {\r\n          content: function(tabPath, html, evaluateScripts) {\r\n            var\r\n              $tab = module.get.tabElement(tabPath),\r\n              tab  = $tab[0]\r\n            ;\r\n            evaluateScripts = (evaluateScripts !== undefined)\r\n              ? evaluateScripts\r\n              : settings.evaluateScripts\r\n            ;\r\n            if(typeof settings.cacheType == 'string' && settings.cacheType.toLowerCase() == 'dom' && typeof html !== 'string') {\r\n              $tab\r\n                .empty()\r\n                .append($(html).clone(true))\r\n              ;\r\n            }\r\n            else {\r\n              if(evaluateScripts) {\r\n                module.debug('Updating HTML and evaluating inline scripts', tabPath, html);\r\n                $tab.html(html);\r\n              }\r\n              else {\r\n                module.debug('Updating HTML', tabPath, html);\r\n                tab.innerHTML = html;\r\n              }\r\n            }\r\n          }\r\n        },\r\n\r\n        fetch: {\r\n\r\n          content: function(tabPath, fullTabPath) {\r\n            var\r\n              $tab        = module.get.tabElement(tabPath),\r\n              apiSettings = {\r\n                dataType         : 'html',\r\n                encodeParameters : false,\r\n                on               : 'now',\r\n                cache            : settings.alwaysRefresh,\r\n                headers          : {\r\n                  'X-Remote': true\r\n                },\r\n                onSuccess : function(response) {\r\n                  if(settings.cacheType == 'response') {\r\n                    module.cache.add(fullTabPath, response);\r\n                  }\r\n                  module.update.content(tabPath, response);\r\n                  if(tabPath == activeTabPath) {\r\n                    module.debug('Content loaded', tabPath);\r\n                    module.activate.tab(tabPath);\r\n                  }\r\n                  else {\r\n                    module.debug('Content loaded in background', tabPath);\r\n                  }\r\n                  settings.onFirstLoad.call($tab[0], tabPath, parameterArray, historyEvent);\r\n                  settings.onLoad.call($tab[0], tabPath, parameterArray, historyEvent);\r\n\r\n                  if(settings.loadOnce) {\r\n                    module.cache.add(fullTabPath, true);\r\n                  }\r\n                  else if(typeof settings.cacheType == 'string' && settings.cacheType.toLowerCase() == 'dom' && $tab.children().length > 0) {\r\n                    setTimeout(function() {\r\n                      var\r\n                        $clone = $tab.children().clone(true)\r\n                      ;\r\n                      $clone = $clone.not('script');\r\n                      module.cache.add(fullTabPath, $clone);\r\n                    }, 0);\r\n                  }\r\n                  else {\r\n                    module.cache.add(fullTabPath, $tab.html());\r\n                  }\r\n                },\r\n                urlData: {\r\n                  tab: fullTabPath\r\n                }\r\n              },\r\n              request         = $tab.api('get request') || false,\r\n              existingRequest = ( request && request.state() === 'pending' ),\r\n              requestSettings,\r\n              cachedContent\r\n            ;\r\n\r\n            fullTabPath   = fullTabPath || tabPath;\r\n            cachedContent = module.cache.read(fullTabPath);\r\n\r\n\r\n            if(settings.cache && cachedContent) {\r\n              module.activate.tab(tabPath);\r\n              module.debug('Adding cached content', fullTabPath);\r\n              if(!settings.loadOnce) {\r\n                if(settings.evaluateScripts == 'once') {\r\n                  module.update.content(tabPath, cachedContent, false);\r\n                }\r\n                else {\r\n                  module.update.content(tabPath, cachedContent);\r\n                }\r\n              }\r\n              settings.onLoad.call($tab[0], tabPath, parameterArray, historyEvent);\r\n            }\r\n            else if(existingRequest) {\r\n              module.set.loading(tabPath);\r\n              module.debug('Content is already loading', fullTabPath);\r\n            }\r\n            else if($.api !== undefined) {\r\n              requestSettings = $.extend(true, {}, settings.apiSettings, apiSettings);\r\n              module.debug('Retrieving remote content', fullTabPath, requestSettings);\r\n              module.set.loading(tabPath);\r\n              $tab.api(requestSettings);\r\n            }\r\n            else {\r\n              module.error(error.api);\r\n            }\r\n          }\r\n        },\r\n\r\n        activate: {\r\n          all: function(tabPath) {\r\n            module.activate.tab(tabPath);\r\n            module.activate.navigation(tabPath);\r\n          },\r\n          tab: function(tabPath) {\r\n            var\r\n              $tab          = module.get.tabElement(tabPath),\r\n              $deactiveTabs = (settings.deactivate == 'siblings')\r\n                ? $tab.siblings($tabs)\r\n                : $tabs.not($tab),\r\n              isActive      = $tab.hasClass(className.active)\r\n            ;\r\n            module.verbose('Showing tab content for', $tab);\r\n            if(!isActive) {\r\n              $tab\r\n                .addClass(className.active)\r\n              ;\r\n              $deactiveTabs\r\n                .removeClass(className.active + ' ' + className.loading)\r\n              ;\r\n              if($tab.length > 0) {\r\n                settings.onVisible.call($tab[0], tabPath);\r\n              }\r\n            }\r\n          },\r\n          navigation: function(tabPath) {\r\n            var\r\n              $navigation         = module.get.navElement(tabPath),\r\n              $deactiveNavigation = (settings.deactivate == 'siblings')\r\n                ? $navigation.siblings($allModules)\r\n                : $allModules.not($navigation),\r\n              isActive    = $navigation.hasClass(className.active)\r\n            ;\r\n            module.verbose('Activating tab navigation for', $navigation, tabPath);\r\n            if(!isActive) {\r\n              $navigation\r\n                .addClass(className.active)\r\n              ;\r\n              $deactiveNavigation\r\n                .removeClass(className.active + ' ' + className.loading)\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        deactivate: {\r\n          all: function() {\r\n            module.deactivate.navigation();\r\n            module.deactivate.tabs();\r\n          },\r\n          navigation: function() {\r\n            $allModules\r\n              .removeClass(className.active)\r\n            ;\r\n          },\r\n          tabs: function() {\r\n            $tabs\r\n              .removeClass(className.active + ' ' + className.loading)\r\n            ;\r\n          }\r\n        },\r\n\r\n        is: {\r\n          tab: function(tabName) {\r\n            return (tabName !== undefined)\r\n              ? ( module.get.tabElement(tabName).length > 0 )\r\n              : false\r\n            ;\r\n          }\r\n        },\r\n\r\n        get: {\r\n          initialPath: function() {\r\n            return $allModules.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);\r\n          },\r\n          path: function() {\r\n            return $.address.value();\r\n          },\r\n          // adds default tabs to tab path\r\n          defaultPathArray: function(tabPath) {\r\n            return module.utilities.pathToArray( module.get.defaultPath(tabPath) );\r\n          },\r\n          defaultPath: function(tabPath) {\r\n            var\r\n              $defaultNav = $allModules.filter('[data-' + metadata.tab + '^=\"' + tabPath + '/\"]').eq(0),\r\n              defaultTab  = $defaultNav.data(metadata.tab) || false\r\n            ;\r\n            if( defaultTab ) {\r\n              module.debug('Found default tab', defaultTab);\r\n              if(recursionDepth < settings.maxDepth) {\r\n                recursionDepth++;\r\n                return module.get.defaultPath(defaultTab);\r\n              }\r\n              module.error(error.recursion);\r\n            }\r\n            else {\r\n              module.debug('No default tabs found for', tabPath, $tabs);\r\n            }\r\n            recursionDepth = 0;\r\n            return tabPath;\r\n          },\r\n          navElement: function(tabPath) {\r\n            tabPath = tabPath || activeTabPath;\r\n            return $allModules.filter('[data-' + metadata.tab + '=\"' + tabPath + '\"]');\r\n          },\r\n          tabElement: function(tabPath) {\r\n            var\r\n              $fullPathTab,\r\n              $simplePathTab,\r\n              tabPathArray,\r\n              lastTab\r\n            ;\r\n            tabPath        = tabPath || activeTabPath;\r\n            tabPathArray   = module.utilities.pathToArray(tabPath);\r\n            lastTab        = module.utilities.last(tabPathArray);\r\n            $fullPathTab   = $tabs.filter('[data-' + metadata.tab + '=\"' + tabPath + '\"]');\r\n            $simplePathTab = $tabs.filter('[data-' + metadata.tab + '=\"' + lastTab + '\"]');\r\n            return ($fullPathTab.length > 0)\r\n              ? $fullPathTab\r\n              : $simplePathTab\r\n            ;\r\n          },\r\n          tab: function() {\r\n            return activeTabPath;\r\n          }\r\n        },\r\n\r\n        utilities: {\r\n          filterArray: function(keepArray, removeArray) {\r\n            return $.grep(keepArray, function(keepValue) {\r\n              return ( $.inArray(keepValue, removeArray) == -1);\r\n            });\r\n          },\r\n          last: function(array) {\r\n            return $.isArray(array)\r\n              ? array[ array.length - 1]\r\n              : false\r\n            ;\r\n          },\r\n          pathToArray: function(pathName) {\r\n            if(pathName === undefined) {\r\n              pathName = activeTabPath;\r\n            }\r\n            return typeof pathName == 'string'\r\n              ? pathName.split('/')\r\n              : [pathName]\r\n            ;\r\n          },\r\n          arrayToPath: function(pathArray) {\r\n            return $.isArray(pathArray)\r\n              ? pathArray.join('/')\r\n              : false\r\n            ;\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n\r\n};\r\n\r\n// shortcut for tabbed content with no defined navigation\r\n$.tab = function() {\r\n  $(window).tab.apply(this, arguments);\r\n};\r\n\r\n$.fn.tab.settings = {\r\n\r\n  name            : 'Tab',\r\n  namespace       : 'tab',\r\n\r\n  silent          : false,\r\n  debug           : false,\r\n  verbose         : false,\r\n  performance     : true,\r\n\r\n  auto            : false,      // uses pjax style endpoints fetching content from same url with remote-content headers\r\n  history         : false,      // use browser history\r\n  historyType     : 'hash',     // #/ or html5 state\r\n  path            : false,      // base path of url\r\n\r\n  context         : false,      // specify a context that tabs must appear inside\r\n  childrenOnly    : false,      // use only tabs that are children of context\r\n  maxDepth        : 25,         // max depth a tab can be nested\r\n\r\n  deactivate      : 'siblings', // whether tabs should deactivate sibling menu elements or all elements initialized together\r\n\r\n  alwaysRefresh   : false,      // load tab content new every tab click\r\n  cache           : true,       // cache the content requests to pull locally\r\n  loadOnce        : false,      // Whether tab data should only be loaded once when using remote content\r\n  cacheType       : 'response', // Whether to cache exact response, or to html cache contents after scripts execute\r\n  ignoreFirstLoad : false,      // don't load remote content on first load\r\n\r\n  apiSettings     : false,      // settings for api call\r\n  evaluateScripts : 'once',     // whether inline scripts should be parsed (true/false/once). Once will not re-evaluate on cached content\r\n\r\n  onFirstLoad : function(tabPath, parameterArray, historyEvent) {}, // called first time loaded\r\n  onLoad      : function(tabPath, parameterArray, historyEvent) {}, // called on every load\r\n  onVisible   : function(tabPath, parameterArray, historyEvent) {}, // called every time tab visible\r\n  onRequest   : function(tabPath, parameterArray, historyEvent) {}, // called ever time a tab beings loading remote content\r\n\r\n  templates : {\r\n    determineTitle: function(tabArray) {} // returns page title for path\r\n  },\r\n\r\n  error: {\r\n    api        : 'You attempted to load content without API module',\r\n    method     : 'The method you called is not defined',\r\n    missingTab : 'Activated tab cannot be found. Tabs are case-sensitive.',\r\n    noContent  : 'The tab you specified is missing a content url.',\r\n    path       : 'History enabled, but no path was specified',\r\n    recursion  : 'Max recursive depth reached',\r\n    legacyInit : 'onTabInit has been renamed to onFirstLoad in 2.0, please adjust your code.',\r\n    legacyLoad : 'onTabLoad has been renamed to onLoad in 2.0. Please adjust your code',\r\n    state      : 'History requires Asual\\'s Address library <https://github.com/asual/jquery-address>'\r\n  },\r\n\r\n  metadata : {\r\n    tab    : 'tab',\r\n    loaded : 'loaded',\r\n    promise: 'promise'\r\n  },\r\n\r\n  className   : {\r\n    loading : 'loading',\r\n    active  : 'active'\r\n  },\r\n\r\n  selector    : {\r\n    tabs : '.ui.tab',\r\n    ui   : '.ui'\r\n  }\r\n\r\n};\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Transition\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.transition = function() {\r\n  var\r\n    $allModules     = $(this),\r\n    moduleSelector  = $allModules.selector || '',\r\n\r\n    time            = new Date().getTime(),\r\n    performance     = [],\r\n\r\n    moduleArguments = arguments,\r\n    query           = moduleArguments[0],\r\n    queryArguments  = [].slice.call(arguments, 1),\r\n    methodInvoked   = (typeof query === 'string'),\r\n\r\n    requestAnimationFrame = window.requestAnimationFrame\r\n      || window.mozRequestAnimationFrame\r\n      || window.webkitRequestAnimationFrame\r\n      || window.msRequestAnimationFrame\r\n      || function(callback) { setTimeout(callback, 0); },\r\n\r\n    returnedValue\r\n  ;\r\n  $allModules\r\n    .each(function(index) {\r\n      var\r\n        $module  = $(this),\r\n        element  = this,\r\n\r\n        // set at run time\r\n        settings,\r\n        instance,\r\n\r\n        error,\r\n        className,\r\n        metadata,\r\n        animationEnd,\r\n        animationName,\r\n\r\n        namespace,\r\n        moduleNamespace,\r\n        eventNamespace,\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n\r\n          // get full settings\r\n          settings        = module.get.settings.apply(element, moduleArguments);\r\n\r\n          // shorthand\r\n          className       = settings.className;\r\n          error           = settings.error;\r\n          metadata        = settings.metadata;\r\n\r\n          // define namespace\r\n          eventNamespace  = '.' + settings.namespace;\r\n          moduleNamespace = 'module-' + settings.namespace;\r\n          instance        = $module.data(moduleNamespace) || module;\r\n\r\n          // get vendor specific events\r\n          animationEnd    = module.get.animationEndEvent();\r\n\r\n          if(methodInvoked) {\r\n            methodInvoked = module.invoke(query);\r\n          }\r\n\r\n          // method not invoked, lets run an animation\r\n          if(methodInvoked === false) {\r\n            module.verbose('Converted arguments into settings object', settings);\r\n            if(settings.interval) {\r\n              module.delay(settings.animate);\r\n            }\r\n            else  {\r\n              module.animate();\r\n            }\r\n            module.instantiate();\r\n          }\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, instance)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous module for', element);\r\n          $module\r\n            .removeData(moduleNamespace)\r\n          ;\r\n        },\r\n\r\n        refresh: function() {\r\n          module.verbose('Refreshing display type on next animation');\r\n          delete module.displayType;\r\n        },\r\n\r\n        forceRepaint: function() {\r\n          module.verbose('Forcing element repaint');\r\n          var\r\n            $parentElement = $module.parent(),\r\n            $nextElement = $module.next()\r\n          ;\r\n          if($nextElement.length === 0) {\r\n            $module.detach().appendTo($parentElement);\r\n          }\r\n          else {\r\n            $module.detach().insertBefore($nextElement);\r\n          }\r\n        },\r\n\r\n        repaint: function() {\r\n          module.verbose('Repainting element');\r\n          var\r\n            fakeAssignment = element.offsetWidth\r\n          ;\r\n        },\r\n\r\n        delay: function(interval) {\r\n          var\r\n            direction = module.get.animationDirection(),\r\n            shouldReverse,\r\n            delay\r\n          ;\r\n          if(!direction) {\r\n            direction = module.can.transition()\r\n              ? module.get.direction()\r\n              : 'static'\r\n            ;\r\n          }\r\n          interval = (interval !== undefined)\r\n            ? interval\r\n            : settings.interval\r\n          ;\r\n          shouldReverse = (settings.reverse == 'auto' && direction == className.outward);\r\n          delay = (shouldReverse || settings.reverse == true)\r\n            ? ($allModules.length - index) * settings.interval\r\n            : index * settings.interval\r\n          ;\r\n          module.debug('Delaying animation by', delay);\r\n          setTimeout(module.animate, delay);\r\n        },\r\n\r\n        animate: function(overrideSettings) {\r\n          settings = overrideSettings || settings;\r\n          if(!module.is.supported()) {\r\n            module.error(error.support);\r\n            return false;\r\n          }\r\n          module.debug('Preparing animation', settings.animation);\r\n          if(module.is.animating()) {\r\n            if(settings.queue) {\r\n              if(!settings.allowRepeats && module.has.direction() && module.is.occurring() && module.queuing !== true) {\r\n                module.debug('Animation is currently occurring, preventing queueing same animation', settings.animation);\r\n              }\r\n              else {\r\n                module.queue(settings.animation);\r\n              }\r\n              return false;\r\n            }\r\n            else if(!settings.allowRepeats && module.is.occurring()) {\r\n              module.debug('Animation is already occurring, will not execute repeated animation', settings.animation);\r\n              return false;\r\n            }\r\n            else {\r\n              module.debug('New animation started, completing previous early', settings.animation);\r\n              instance.complete();\r\n            }\r\n          }\r\n          if( module.can.animate() ) {\r\n            module.set.animating(settings.animation);\r\n          }\r\n          else {\r\n            module.error(error.noAnimation, settings.animation, element);\r\n          }\r\n        },\r\n\r\n        reset: function() {\r\n          module.debug('Resetting animation to beginning conditions');\r\n          module.remove.animationCallbacks();\r\n          module.restore.conditions();\r\n          module.remove.animating();\r\n        },\r\n\r\n        queue: function(animation) {\r\n          module.debug('Queueing animation of', animation);\r\n          module.queuing = true;\r\n          $module\r\n            .one(animationEnd + '.queue' + eventNamespace, function() {\r\n              module.queuing = false;\r\n              module.repaint();\r\n              module.animate.apply(this, settings);\r\n            })\r\n          ;\r\n        },\r\n\r\n        complete: function (event) {\r\n          module.debug('Animation complete', settings.animation);\r\n          module.remove.completeCallback();\r\n          module.remove.failSafe();\r\n          if(!module.is.looping()) {\r\n            if( module.is.outward() ) {\r\n              module.verbose('Animation is outward, hiding element');\r\n              module.restore.conditions();\r\n              module.hide();\r\n            }\r\n            else if( module.is.inward() ) {\r\n              module.verbose('Animation is outward, showing element');\r\n              module.restore.conditions();\r\n              module.show();\r\n            }\r\n            else {\r\n              module.verbose('Static animation completed');\r\n              module.restore.conditions();\r\n              settings.onComplete.call(element);\r\n            }\r\n          }\r\n        },\r\n\r\n        force: {\r\n          visible: function() {\r\n            var\r\n              style          = $module.attr('style'),\r\n              userStyle      = module.get.userStyle(),\r\n              displayType    = module.get.displayType(),\r\n              overrideStyle  = userStyle + 'display: ' + displayType + ' !important;',\r\n              currentDisplay = $module.css('display'),\r\n              emptyStyle     = (style === undefined || style === '')\r\n            ;\r\n            if(currentDisplay !== displayType) {\r\n              module.verbose('Overriding default display to show element', displayType);\r\n              $module\r\n                .attr('style', overrideStyle)\r\n              ;\r\n            }\r\n            else if(emptyStyle) {\r\n              $module.removeAttr('style');\r\n            }\r\n          },\r\n          hidden: function() {\r\n            var\r\n              style          = $module.attr('style'),\r\n              currentDisplay = $module.css('display'),\r\n              emptyStyle     = (style === undefined || style === '')\r\n            ;\r\n            if(currentDisplay !== 'none' && !module.is.hidden()) {\r\n              module.verbose('Overriding default display to hide element');\r\n              $module\r\n                .css('display', 'none')\r\n              ;\r\n            }\r\n            else if(emptyStyle) {\r\n              $module\r\n                .removeAttr('style')\r\n              ;\r\n            }\r\n          }\r\n        },\r\n\r\n        has: {\r\n          direction: function(animation) {\r\n            var\r\n              hasDirection = false\r\n            ;\r\n            animation = animation || settings.animation;\r\n            if(typeof animation === 'string') {\r\n              animation = animation.split(' ');\r\n              $.each(animation, function(index, word){\r\n                if(word === className.inward || word === className.outward) {\r\n                  hasDirection = true;\r\n                }\r\n              });\r\n            }\r\n            return hasDirection;\r\n          },\r\n          inlineDisplay: function() {\r\n            var\r\n              style = $module.attr('style') || ''\r\n            ;\r\n            return $.isArray(style.match(/display.*?;/, ''));\r\n          }\r\n        },\r\n\r\n        set: {\r\n          animating: function(animation) {\r\n            var\r\n              animationClass,\r\n              direction\r\n            ;\r\n            // remove previous callbacks\r\n            module.remove.completeCallback();\r\n\r\n            // determine exact animation\r\n            animation      = animation || settings.animation;\r\n            animationClass = module.get.animationClass(animation);\r\n\r\n            // save animation class in cache to restore class names\r\n            module.save.animation(animationClass);\r\n\r\n            // override display if necessary so animation appears visibly\r\n            module.force.visible();\r\n\r\n            module.remove.hidden();\r\n            module.remove.direction();\r\n\r\n            module.start.animation(animationClass);\r\n\r\n          },\r\n          duration: function(animationName, duration) {\r\n            duration = duration || settings.duration;\r\n            duration = (typeof duration == 'number')\r\n              ? duration + 'ms'\r\n              : duration\r\n            ;\r\n            if(duration || duration === 0) {\r\n              module.verbose('Setting animation duration', duration);\r\n              $module\r\n                .css({\r\n                  'animation-duration':  duration\r\n                })\r\n              ;\r\n            }\r\n          },\r\n          direction: function(direction) {\r\n            direction = direction || module.get.direction();\r\n            if(direction == className.inward) {\r\n              module.set.inward();\r\n            }\r\n            else {\r\n              module.set.outward();\r\n            }\r\n          },\r\n          looping: function() {\r\n            module.debug('Transition set to loop');\r\n            $module\r\n              .addClass(className.looping)\r\n            ;\r\n          },\r\n          hidden: function() {\r\n            $module\r\n              .addClass(className.transition)\r\n              .addClass(className.hidden)\r\n            ;\r\n          },\r\n          inward: function() {\r\n            module.debug('Setting direction to inward');\r\n            $module\r\n              .removeClass(className.outward)\r\n              .addClass(className.inward)\r\n            ;\r\n          },\r\n          outward: function() {\r\n            module.debug('Setting direction to outward');\r\n            $module\r\n              .removeClass(className.inward)\r\n              .addClass(className.outward)\r\n            ;\r\n          },\r\n          visible: function() {\r\n            $module\r\n              .addClass(className.transition)\r\n              .addClass(className.visible)\r\n            ;\r\n          }\r\n        },\r\n\r\n        start: {\r\n          animation: function(animationClass) {\r\n            animationClass = animationClass || module.get.animationClass();\r\n            module.debug('Starting tween', animationClass);\r\n            $module\r\n              .addClass(animationClass)\r\n              .one(animationEnd + '.complete' + eventNamespace, module.complete)\r\n            ;\r\n            if(settings.useFailSafe) {\r\n              module.add.failSafe();\r\n            }\r\n            module.set.duration(settings.duration);\r\n            settings.onStart.call(element);\r\n          }\r\n        },\r\n\r\n        save: {\r\n          animation: function(animation) {\r\n            if(!module.cache) {\r\n              module.cache = {};\r\n            }\r\n            module.cache.animation = animation;\r\n          },\r\n          displayType: function(displayType) {\r\n            if(displayType !== 'none') {\r\n              $module.data(metadata.displayType, displayType);\r\n            }\r\n          },\r\n          transitionExists: function(animation, exists) {\r\n            $.fn.transition.exists[animation] = exists;\r\n            module.verbose('Saving existence of transition', animation, exists);\r\n          }\r\n        },\r\n\r\n        restore: {\r\n          conditions: function() {\r\n            var\r\n              animation = module.get.currentAnimation()\r\n            ;\r\n            if(animation) {\r\n              $module\r\n                .removeClass(animation)\r\n              ;\r\n              module.verbose('Removing animation class', module.cache);\r\n            }\r\n            module.remove.duration();\r\n          }\r\n        },\r\n\r\n        add: {\r\n          failSafe: function() {\r\n            var\r\n              duration = module.get.duration()\r\n            ;\r\n            module.timer = setTimeout(function() {\r\n              $module.triggerHandler(animationEnd);\r\n            }, duration + settings.failSafeDelay);\r\n            module.verbose('Adding fail safe timer', module.timer);\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          animating: function() {\r\n            $module.removeClass(className.animating);\r\n          },\r\n          animationCallbacks: function() {\r\n            module.remove.queueCallback();\r\n            module.remove.completeCallback();\r\n          },\r\n          queueCallback: function() {\r\n            $module.off('.queue' + eventNamespace);\r\n          },\r\n          completeCallback: function() {\r\n            $module.off('.complete' + eventNamespace);\r\n          },\r\n          display: function() {\r\n            $module.css('display', '');\r\n          },\r\n          direction: function() {\r\n            $module\r\n              .removeClass(className.inward)\r\n              .removeClass(className.outward)\r\n            ;\r\n          },\r\n          duration: function() {\r\n            $module\r\n              .css('animation-duration', '')\r\n            ;\r\n          },\r\n          failSafe: function() {\r\n            module.verbose('Removing fail safe timer', module.timer);\r\n            if(module.timer) {\r\n              clearTimeout(module.timer);\r\n            }\r\n          },\r\n          hidden: function() {\r\n            $module.removeClass(className.hidden);\r\n          },\r\n          visible: function() {\r\n            $module.removeClass(className.visible);\r\n          },\r\n          looping: function() {\r\n            module.debug('Transitions are no longer looping');\r\n            if( module.is.looping() ) {\r\n              module.reset();\r\n              $module\r\n                .removeClass(className.looping)\r\n              ;\r\n            }\r\n          },\r\n          transition: function() {\r\n            $module\r\n              .removeClass(className.visible)\r\n              .removeClass(className.hidden)\r\n            ;\r\n          }\r\n        },\r\n        get: {\r\n          settings: function(animation, duration, onComplete) {\r\n            // single settings object\r\n            if(typeof animation == 'object') {\r\n              return $.extend(true, {}, $.fn.transition.settings, animation);\r\n            }\r\n            // all arguments provided\r\n            else if(typeof onComplete == 'function') {\r\n              return $.extend({}, $.fn.transition.settings, {\r\n                animation  : animation,\r\n                onComplete : onComplete,\r\n                duration   : duration\r\n              });\r\n            }\r\n            // only duration provided\r\n            else if(typeof duration == 'string' || typeof duration == 'number') {\r\n              return $.extend({}, $.fn.transition.settings, {\r\n                animation : animation,\r\n                duration  : duration\r\n              });\r\n            }\r\n            // duration is actually settings object\r\n            else if(typeof duration == 'object') {\r\n              return $.extend({}, $.fn.transition.settings, duration, {\r\n                animation : animation\r\n              });\r\n            }\r\n            // duration is actually callback\r\n            else if(typeof duration == 'function') {\r\n              return $.extend({}, $.fn.transition.settings, {\r\n                animation  : animation,\r\n                onComplete : duration\r\n              });\r\n            }\r\n            // only animation provided\r\n            else {\r\n              return $.extend({}, $.fn.transition.settings, {\r\n                animation : animation\r\n              });\r\n            }\r\n          },\r\n          animationClass: function(animation) {\r\n            var\r\n              animationClass = animation || settings.animation,\r\n              directionClass = (module.can.transition() && !module.has.direction())\r\n                ? module.get.direction() + ' '\r\n                : ''\r\n            ;\r\n            return className.animating + ' '\r\n              + className.transition + ' '\r\n              + directionClass\r\n              + animationClass\r\n            ;\r\n          },\r\n          currentAnimation: function() {\r\n            return (module.cache && module.cache.animation !== undefined)\r\n              ? module.cache.animation\r\n              : false\r\n            ;\r\n          },\r\n          currentDirection: function() {\r\n            return module.is.inward()\r\n              ? className.inward\r\n              : className.outward\r\n            ;\r\n          },\r\n          direction: function() {\r\n            return module.is.hidden() || !module.is.visible()\r\n              ? className.inward\r\n              : className.outward\r\n            ;\r\n          },\r\n          animationDirection: function(animation) {\r\n            var\r\n              direction\r\n            ;\r\n            animation = animation || settings.animation;\r\n            if(typeof animation === 'string') {\r\n              animation = animation.split(' ');\r\n              // search animation name for out/in class\r\n              $.each(animation, function(index, word){\r\n                if(word === className.inward) {\r\n                  direction = className.inward;\r\n                }\r\n                else if(word === className.outward) {\r\n                  direction = className.outward;\r\n                }\r\n              });\r\n            }\r\n            // return found direction\r\n            if(direction) {\r\n              return direction;\r\n            }\r\n            return false;\r\n          },\r\n          duration: function(duration) {\r\n            duration = duration || settings.duration;\r\n            if(duration === false) {\r\n              duration = $module.css('animation-duration') || 0;\r\n            }\r\n            return (typeof duration === 'string')\r\n              ? (duration.indexOf('ms') > -1)\r\n                ? parseFloat(duration)\r\n                : parseFloat(duration) * 1000\r\n              : duration\r\n            ;\r\n          },\r\n          displayType: function(shouldDetermine) {\r\n            shouldDetermine = (shouldDetermine !== undefined)\r\n              ? shouldDetermine\r\n              : true\r\n            ;\r\n            if(settings.displayType) {\r\n              return settings.displayType;\r\n            }\r\n            if(shouldDetermine && $module.data(metadata.displayType) === undefined) {\r\n              // create fake element to determine display state\r\n              module.can.transition(true);\r\n            }\r\n            return $module.data(metadata.displayType);\r\n          },\r\n          userStyle: function(style) {\r\n            style = style || $module.attr('style') || '';\r\n            return style.replace(/display.*?;/, '');\r\n          },\r\n          transitionExists: function(animation) {\r\n            return $.fn.transition.exists[animation];\r\n          },\r\n          animationStartEvent: function() {\r\n            var\r\n              element     = document.createElement('div'),\r\n              animations  = {\r\n                'animation'       :'animationstart',\r\n                'OAnimation'      :'oAnimationStart',\r\n                'MozAnimation'    :'mozAnimationStart',\r\n                'WebkitAnimation' :'webkitAnimationStart'\r\n              },\r\n              animation\r\n            ;\r\n            for(animation in animations){\r\n              if( element.style[animation] !== undefined ){\r\n                return animations[animation];\r\n              }\r\n            }\r\n            return false;\r\n          },\r\n          animationEndEvent: function() {\r\n            var\r\n              element     = document.createElement('div'),\r\n              animations  = {\r\n                'animation'       :'animationend',\r\n                'OAnimation'      :'oAnimationEnd',\r\n                'MozAnimation'    :'mozAnimationEnd',\r\n                'WebkitAnimation' :'webkitAnimationEnd'\r\n              },\r\n              animation\r\n            ;\r\n            for(animation in animations){\r\n              if( element.style[animation] !== undefined ){\r\n                return animations[animation];\r\n              }\r\n            }\r\n            return false;\r\n          }\r\n\r\n        },\r\n\r\n        can: {\r\n          transition: function(forced) {\r\n            var\r\n              animation         = settings.animation,\r\n              transitionExists  = module.get.transitionExists(animation),\r\n              displayType       = module.get.displayType(false),\r\n              elementClass,\r\n              tagName,\r\n              $clone,\r\n              currentAnimation,\r\n              inAnimation,\r\n              directionExists\r\n            ;\r\n            if( transitionExists === undefined || forced) {\r\n              module.verbose('Determining whether animation exists');\r\n              elementClass = $module.attr('class');\r\n              tagName      = $module.prop('tagName');\r\n\r\n              $clone = $('<' + tagName + ' />').addClass( elementClass ).insertAfter($module);\r\n              currentAnimation = $clone\r\n                .addClass(animation)\r\n                .removeClass(className.inward)\r\n                .removeClass(className.outward)\r\n                .addClass(className.animating)\r\n                .addClass(className.transition)\r\n                .css('animationName')\r\n              ;\r\n              inAnimation = $clone\r\n                .addClass(className.inward)\r\n                .css('animationName')\r\n              ;\r\n              if(!displayType) {\r\n                displayType = $clone\r\n                  .attr('class', elementClass)\r\n                  .removeAttr('style')\r\n                  .removeClass(className.hidden)\r\n                  .removeClass(className.visible)\r\n                  .show()\r\n                  .css('display')\r\n                ;\r\n                module.verbose('Determining final display state', displayType);\r\n                module.save.displayType(displayType);\r\n              }\r\n\r\n              $clone.remove();\r\n              if(currentAnimation != inAnimation) {\r\n                module.debug('Direction exists for animation', animation);\r\n                directionExists = true;\r\n              }\r\n              else if(currentAnimation == 'none' || !currentAnimation) {\r\n                module.debug('No animation defined in css', animation);\r\n                return;\r\n              }\r\n              else {\r\n                module.debug('Static animation found', animation, displayType);\r\n                directionExists = false;\r\n              }\r\n              module.save.transitionExists(animation, directionExists);\r\n            }\r\n            return (transitionExists !== undefined)\r\n              ? transitionExists\r\n              : directionExists\r\n            ;\r\n          },\r\n          animate: function() {\r\n            // can transition does not return a value if animation does not exist\r\n            return (module.can.transition() !== undefined);\r\n          }\r\n        },\r\n\r\n        is: {\r\n          animating: function() {\r\n            return $module.hasClass(className.animating);\r\n          },\r\n          inward: function() {\r\n            return $module.hasClass(className.inward);\r\n          },\r\n          outward: function() {\r\n            return $module.hasClass(className.outward);\r\n          },\r\n          looping: function() {\r\n            return $module.hasClass(className.looping);\r\n          },\r\n          occurring: function(animation) {\r\n            animation = animation || settings.animation;\r\n            animation = '.' + animation.replace(' ', '.');\r\n            return ( $module.filter(animation).length > 0 );\r\n          },\r\n          visible: function() {\r\n            return $module.is(':visible');\r\n          },\r\n          hidden: function() {\r\n            return $module.css('visibility') === 'hidden';\r\n          },\r\n          supported: function() {\r\n            return(animationEnd !== false);\r\n          }\r\n        },\r\n\r\n        hide: function() {\r\n          module.verbose('Hiding element');\r\n          if( module.is.animating() ) {\r\n            module.reset();\r\n          }\r\n          element.blur(); // IE will trigger focus change if element is not blurred before hiding\r\n          module.remove.display();\r\n          module.remove.visible();\r\n          module.set.hidden();\r\n          module.force.hidden();\r\n          settings.onHide.call(element);\r\n          settings.onComplete.call(element);\r\n          // module.repaint();\r\n        },\r\n\r\n        show: function(display) {\r\n          module.verbose('Showing element', display);\r\n          module.remove.hidden();\r\n          module.set.visible();\r\n          module.force.visible();\r\n          settings.onShow.call(element);\r\n          settings.onComplete.call(element);\r\n          // module.repaint();\r\n        },\r\n\r\n        toggle: function() {\r\n          if( module.is.visible() ) {\r\n            module.hide();\r\n          }\r\n          else {\r\n            module.show();\r\n          }\r\n        },\r\n\r\n        stop: function() {\r\n          module.debug('Stopping current animation');\r\n          $module.triggerHandler(animationEnd);\r\n        },\r\n\r\n        stopAll: function() {\r\n          module.debug('Stopping all animation');\r\n          module.remove.queueCallback();\r\n          $module.triggerHandler(animationEnd);\r\n        },\r\n\r\n        clear: {\r\n          queue: function() {\r\n            module.debug('Clearing animation queue');\r\n            module.remove.queueCallback();\r\n          }\r\n        },\r\n\r\n        enable: function() {\r\n          module.verbose('Starting animation');\r\n          $module.removeClass(className.disabled);\r\n        },\r\n\r\n        disable: function() {\r\n          module.debug('Stopping animation');\r\n          $module.addClass(className.disabled);\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if($allModules.length > 1) {\r\n              title += ' ' + '(' + $allModules.length + ')';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        // modified for transition to return invoke success\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return (found !== undefined)\r\n            ? found\r\n            : false\r\n          ;\r\n        }\r\n      };\r\n      module.initialize();\r\n    })\r\n  ;\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n// Records if CSS transition is available\r\n$.fn.transition.exists = {};\r\n\r\n$.fn.transition.settings = {\r\n\r\n  // module info\r\n  name          : 'Transition',\r\n\r\n  // hide all output from this component regardless of other settings\r\n  silent        : false,\r\n\r\n  // debug content outputted to console\r\n  debug         : false,\r\n\r\n  // verbose debug output\r\n  verbose       : false,\r\n\r\n  // performance data output\r\n  performance   : true,\r\n\r\n  // event namespace\r\n  namespace     : 'transition',\r\n\r\n  // delay between animations in group\r\n  interval      : 0,\r\n\r\n  // whether group animations should be reversed\r\n  reverse       : 'auto',\r\n\r\n  // animation callback event\r\n  onStart       : function() {},\r\n  onComplete    : function() {},\r\n  onShow        : function() {},\r\n  onHide        : function() {},\r\n\r\n  // whether timeout should be used to ensure callback fires in cases animationend does not\r\n  useFailSafe   : true,\r\n\r\n  // delay in ms for fail safe\r\n  failSafeDelay : 100,\r\n\r\n  // whether EXACT animation can occur twice in a row\r\n  allowRepeats  : false,\r\n\r\n  // Override final display type on visible\r\n  displayType   : false,\r\n\r\n  // animation duration\r\n  animation     : 'fade',\r\n  duration      : false,\r\n\r\n  // new animations will occur after previous ones\r\n  queue         : true,\r\n\r\n  metadata : {\r\n    displayType: 'display'\r\n  },\r\n\r\n  className   : {\r\n    animating  : 'animating',\r\n    disabled   : 'disabled',\r\n    hidden     : 'hidden',\r\n    inward     : 'in',\r\n    loading    : 'loading',\r\n    looping    : 'looping',\r\n    outward    : 'out',\r\n    transition : 'transition',\r\n    visible    : 'visible'\r\n  },\r\n\r\n  // possible errors\r\n  error: {\r\n    noAnimation : 'Element is no longer attached to DOM. Unable to animate.  Use silent setting to surpress this warning in production.',\r\n    repeated    : 'That animation is already occurring, cancelling repeated animation',\r\n    method      : 'The method you called is not defined',\r\n    support     : 'This browser does not support CSS animations'\r\n  }\r\n\r\n};\r\n\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - API\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nvar\r\n  window = (typeof window != 'undefined' && window.Math == Math)\r\n    ? window\r\n    : (typeof self != 'undefined' && self.Math == Math)\r\n      ? self\r\n      : Function('return this')()\r\n;\r\n\r\n$.api = $.fn.api = function(parameters) {\r\n\r\n  var\r\n    // use window context if none specified\r\n    $allModules     = $.isFunction(this)\r\n        ? $(window)\r\n        : $(this),\r\n    moduleSelector = $allModules.selector || '',\r\n    time           = new Date().getTime(),\r\n    performance    = [],\r\n\r\n    query          = arguments[0],\r\n    methodInvoked  = (typeof query == 'string'),\r\n    queryArguments = [].slice.call(arguments, 1),\r\n\r\n    returnedValue\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings          = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.api.settings, parameters)\r\n          : $.extend({}, $.fn.api.settings),\r\n\r\n        // internal aliases\r\n        namespace       = settings.namespace,\r\n        metadata        = settings.metadata,\r\n        selector        = settings.selector,\r\n        error           = settings.error,\r\n        className       = settings.className,\r\n\r\n        // define namespaces for modules\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n\r\n        // element that creates request\r\n        $module         = $(this),\r\n        $form           = $module.closest(selector.form),\r\n\r\n        // context used for state\r\n        $context        = (settings.stateContext)\r\n          ? $(settings.stateContext)\r\n          : $module,\r\n\r\n        // request details\r\n        ajaxSettings,\r\n        requestSettings,\r\n        url,\r\n        data,\r\n        requestStartTime,\r\n\r\n        // standard module\r\n        element         = this,\r\n        context         = $context[0],\r\n        instance        = $module.data(moduleNamespace),\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n          if(!methodInvoked) {\r\n            module.bind.events();\r\n          }\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, instance)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous module for', element);\r\n          $module\r\n            .removeData(moduleNamespace)\r\n            .off(eventNamespace)\r\n          ;\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            var\r\n              triggerEvent = module.get.event()\r\n            ;\r\n            if( triggerEvent ) {\r\n              module.verbose('Attaching API events to element', triggerEvent);\r\n              $module\r\n                .on(triggerEvent + eventNamespace, module.event.trigger)\r\n              ;\r\n            }\r\n            else if(settings.on == 'now') {\r\n              module.debug('Querying API endpoint immediately');\r\n              module.query();\r\n            }\r\n          }\r\n        },\r\n\r\n        decode: {\r\n          json: function(response) {\r\n            if(response !== undefined && typeof response == 'string') {\r\n              try {\r\n               response = JSON.parse(response);\r\n              }\r\n              catch(e) {\r\n                // isnt json string\r\n              }\r\n            }\r\n            return response;\r\n          }\r\n        },\r\n\r\n        read: {\r\n          cachedResponse: function(url) {\r\n            var\r\n              response\r\n            ;\r\n            if(window.Storage === undefined) {\r\n              module.error(error.noStorage);\r\n              return;\r\n            }\r\n            response = sessionStorage.getItem(url);\r\n            module.debug('Using cached response', url, response);\r\n            response = module.decode.json(response);\r\n            return response;\r\n          }\r\n        },\r\n        write: {\r\n          cachedResponse: function(url, response) {\r\n            if(response && response === '') {\r\n              module.debug('Response empty, not caching', response);\r\n              return;\r\n            }\r\n            if(window.Storage === undefined) {\r\n              module.error(error.noStorage);\r\n              return;\r\n            }\r\n            if( $.isPlainObject(response) ) {\r\n              response = JSON.stringify(response);\r\n            }\r\n            sessionStorage.setItem(url, response);\r\n            module.verbose('Storing cached response for url', url, response);\r\n          }\r\n        },\r\n\r\n        query: function() {\r\n\r\n          if(module.is.disabled()) {\r\n            module.debug('Element is disabled API request aborted');\r\n            return;\r\n          }\r\n\r\n          if(module.is.loading()) {\r\n            if(settings.interruptRequests) {\r\n              module.debug('Interrupting previous request');\r\n              module.abort();\r\n            }\r\n            else {\r\n              module.debug('Cancelling request, previous request is still pending');\r\n              return;\r\n            }\r\n          }\r\n\r\n          // pass element metadata to url (value, text)\r\n          if(settings.defaultData) {\r\n            $.extend(true, settings.urlData, module.get.defaultData());\r\n          }\r\n\r\n          // Add form content\r\n          if(settings.serializeForm) {\r\n            settings.data = module.add.formData(settings.data);\r\n          }\r\n\r\n          // call beforesend and get any settings changes\r\n          requestSettings = module.get.settings();\r\n\r\n          // check if before send cancelled request\r\n          if(requestSettings === false) {\r\n            module.cancelled = true;\r\n            module.error(error.beforeSend);\r\n            return;\r\n          }\r\n          else {\r\n            module.cancelled = false;\r\n          }\r\n\r\n          // get url\r\n          url = module.get.templatedURL();\r\n\r\n          if(!url && !module.is.mocked()) {\r\n            module.error(error.missingURL);\r\n            return;\r\n          }\r\n\r\n          // replace variables\r\n          url = module.add.urlData( url );\r\n          // missing url parameters\r\n          if( !url && !module.is.mocked()) {\r\n            return;\r\n          }\r\n\r\n          requestSettings.url = settings.base + url;\r\n\r\n          // look for jQuery ajax parameters in settings\r\n          ajaxSettings = $.extend(true, {}, settings, {\r\n            type       : settings.method || settings.type,\r\n            data       : data,\r\n            url        : settings.base + url,\r\n            beforeSend : settings.beforeXHR,\r\n            success    : function() {},\r\n            failure    : function() {},\r\n            complete   : function() {}\r\n          });\r\n\r\n          module.debug('Querying URL', ajaxSettings.url);\r\n          module.verbose('Using AJAX settings', ajaxSettings);\r\n          if(settings.cache === 'local' && module.read.cachedResponse(url)) {\r\n            module.debug('Response returned from local cache');\r\n            module.request = module.create.request();\r\n            module.request.resolveWith(context, [ module.read.cachedResponse(url) ]);\r\n            return;\r\n          }\r\n\r\n          if( !settings.throttle ) {\r\n            module.debug('Sending request', data, ajaxSettings.method);\r\n            module.send.request();\r\n          }\r\n          else {\r\n            if(!settings.throttleFirstRequest && !module.timer) {\r\n              module.debug('Sending request', data, ajaxSettings.method);\r\n              module.send.request();\r\n              module.timer = setTimeout(function(){}, settings.throttle);\r\n            }\r\n            else {\r\n              module.debug('Throttling request', settings.throttle);\r\n              clearTimeout(module.timer);\r\n              module.timer = setTimeout(function() {\r\n                if(module.timer) {\r\n                  delete module.timer;\r\n                }\r\n                module.debug('Sending throttled request', data, ajaxSettings.method);\r\n                module.send.request();\r\n              }, settings.throttle);\r\n            }\r\n          }\r\n\r\n        },\r\n\r\n        should: {\r\n          removeError: function() {\r\n            return ( settings.hideError === true || (settings.hideError === 'auto' && !module.is.form()) );\r\n          }\r\n        },\r\n\r\n        is: {\r\n          disabled: function() {\r\n            return ($module.filter(selector.disabled).length > 0);\r\n          },\r\n          expectingJSON: function() {\r\n            return settings.dataType === 'json' || settings.dataType === 'jsonp';\r\n          },\r\n          form: function() {\r\n            return $module.is('form') || $context.is('form');\r\n          },\r\n          mocked: function() {\r\n            return (settings.mockResponse || settings.mockResponseAsync || settings.response || settings.responseAsync);\r\n          },\r\n          input: function() {\r\n            return $module.is('input');\r\n          },\r\n          loading: function() {\r\n            return (module.request)\r\n              ? (module.request.state() == 'pending')\r\n              : false\r\n            ;\r\n          },\r\n          abortedRequest: function(xhr) {\r\n            if(xhr && xhr.readyState !== undefined && xhr.readyState === 0) {\r\n              module.verbose('XHR request determined to be aborted');\r\n              return true;\r\n            }\r\n            else {\r\n              module.verbose('XHR request was not aborted');\r\n              return false;\r\n            }\r\n          },\r\n          validResponse: function(response) {\r\n            if( (!module.is.expectingJSON()) || !$.isFunction(settings.successTest) ) {\r\n              module.verbose('Response is not JSON, skipping validation', settings.successTest, response);\r\n              return true;\r\n            }\r\n            module.debug('Checking JSON returned success', settings.successTest, response);\r\n            if( settings.successTest(response) ) {\r\n              module.debug('Response passed success test', response);\r\n              return true;\r\n            }\r\n            else {\r\n              module.debug('Response failed success test', response);\r\n              return false;\r\n            }\r\n          }\r\n        },\r\n\r\n        was: {\r\n          cancelled: function() {\r\n            return (module.cancelled || false);\r\n          },\r\n          succesful: function() {\r\n            return (module.request && module.request.state() == 'resolved');\r\n          },\r\n          failure: function() {\r\n            return (module.request && module.request.state() == 'rejected');\r\n          },\r\n          complete: function() {\r\n            return (module.request && (module.request.state() == 'resolved' || module.request.state() == 'rejected') );\r\n          }\r\n        },\r\n\r\n        add: {\r\n          urlData: function(url, urlData) {\r\n            var\r\n              requiredVariables,\r\n              optionalVariables\r\n            ;\r\n            if(url) {\r\n              requiredVariables = url.match(settings.regExp.required);\r\n              optionalVariables = url.match(settings.regExp.optional);\r\n              urlData           = urlData || settings.urlData;\r\n              if(requiredVariables) {\r\n                module.debug('Looking for required URL variables', requiredVariables);\r\n                $.each(requiredVariables, function(index, templatedString) {\r\n                  var\r\n                    // allow legacy {$var} style\r\n                    variable = (templatedString.indexOf('$') !== -1)\r\n                      ? templatedString.substr(2, templatedString.length - 3)\r\n                      : templatedString.substr(1, templatedString.length - 2),\r\n                    value   = ($.isPlainObject(urlData) && urlData[variable] !== undefined)\r\n                      ? urlData[variable]\r\n                      : ($module.data(variable) !== undefined)\r\n                        ? $module.data(variable)\r\n                        : ($context.data(variable) !== undefined)\r\n                          ? $context.data(variable)\r\n                          : urlData[variable]\r\n                  ;\r\n                  // remove value\r\n                  if(value === undefined) {\r\n                    module.error(error.requiredParameter, variable, url);\r\n                    url = false;\r\n                    return false;\r\n                  }\r\n                  else {\r\n                    module.verbose('Found required variable', variable, value);\r\n                    value = (settings.encodeParameters)\r\n                      ? module.get.urlEncodedValue(value)\r\n                      : value\r\n                    ;\r\n                    url = url.replace(templatedString, value);\r\n                  }\r\n                });\r\n              }\r\n              if(optionalVariables) {\r\n                module.debug('Looking for optional URL variables', requiredVariables);\r\n                $.each(optionalVariables, function(index, templatedString) {\r\n                  var\r\n                    // allow legacy {/$var} style\r\n                    variable = (templatedString.indexOf('$') !== -1)\r\n                      ? templatedString.substr(3, templatedString.length - 4)\r\n                      : templatedString.substr(2, templatedString.length - 3),\r\n                    value   = ($.isPlainObject(urlData) && urlData[variable] !== undefined)\r\n                      ? urlData[variable]\r\n                      : ($module.data(variable) !== undefined)\r\n                        ? $module.data(variable)\r\n                        : ($context.data(variable) !== undefined)\r\n                          ? $context.data(variable)\r\n                          : urlData[variable]\r\n                  ;\r\n                  // optional replacement\r\n                  if(value !== undefined) {\r\n                    module.verbose('Optional variable Found', variable, value);\r\n                    url = url.replace(templatedString, value);\r\n                  }\r\n                  else {\r\n                    module.verbose('Optional variable not found', variable);\r\n                    // remove preceding slash if set\r\n                    if(url.indexOf('/' + templatedString) !== -1) {\r\n                      url = url.replace('/' + templatedString, '');\r\n                    }\r\n                    else {\r\n                      url = url.replace(templatedString, '');\r\n                    }\r\n                  }\r\n                });\r\n              }\r\n            }\r\n            return url;\r\n          },\r\n          formData: function(data) {\r\n            var\r\n              canSerialize = ($.fn.serializeObject !== undefined),\r\n              formData     = (canSerialize)\r\n                ? $form.serializeObject()\r\n                : $form.serialize(),\r\n              hasOtherData\r\n            ;\r\n            data         = data || settings.data;\r\n            hasOtherData = $.isPlainObject(data);\r\n\r\n            if(hasOtherData) {\r\n              if(canSerialize) {\r\n                module.debug('Extending existing data with form data', data, formData);\r\n                data = $.extend(true, {}, data, formData);\r\n              }\r\n              else {\r\n                module.error(error.missingSerialize);\r\n                module.debug('Cant extend data. Replacing data with form data', data, formData);\r\n                data = formData;\r\n              }\r\n            }\r\n            else {\r\n              module.debug('Adding form data', formData);\r\n              data = formData;\r\n            }\r\n            return data;\r\n          }\r\n        },\r\n\r\n        send: {\r\n          request: function() {\r\n            module.set.loading();\r\n            module.request = module.create.request();\r\n            if( module.is.mocked() ) {\r\n              module.mockedXHR = module.create.mockedXHR();\r\n            }\r\n            else {\r\n              module.xhr = module.create.xhr();\r\n            }\r\n            settings.onRequest.call(context, module.request, module.xhr);\r\n          }\r\n        },\r\n\r\n        event: {\r\n          trigger: function(event) {\r\n            module.query();\r\n            if(event.type == 'submit' || event.type == 'click') {\r\n              event.preventDefault();\r\n            }\r\n          },\r\n          xhr: {\r\n            always: function() {\r\n              // nothing special\r\n            },\r\n            done: function(response, textStatus, xhr) {\r\n              var\r\n                context            = this,\r\n                elapsedTime        = (new Date().getTime() - requestStartTime),\r\n                timeLeft           = (settings.loadingDuration - elapsedTime),\r\n                translatedResponse = ( $.isFunction(settings.onResponse) )\r\n                  ? module.is.expectingJSON()\r\n                    ? settings.onResponse.call(context, $.extend(true, {}, response))\r\n                    : settings.onResponse.call(context, response)\r\n                  : false\r\n              ;\r\n              timeLeft = (timeLeft > 0)\r\n                ? timeLeft\r\n                : 0\r\n              ;\r\n              if(translatedResponse) {\r\n                module.debug('Modified API response in onResponse callback', settings.onResponse, translatedResponse, response);\r\n                response = translatedResponse;\r\n              }\r\n              if(timeLeft > 0) {\r\n                module.debug('Response completed early delaying state change by', timeLeft);\r\n              }\r\n              setTimeout(function() {\r\n                if( module.is.validResponse(response) ) {\r\n                  module.request.resolveWith(context, [response, xhr]);\r\n                }\r\n                else {\r\n                  module.request.rejectWith(context, [xhr, 'invalid']);\r\n                }\r\n              }, timeLeft);\r\n            },\r\n            fail: function(xhr, status, httpMessage) {\r\n              var\r\n                context     = this,\r\n                elapsedTime = (new Date().getTime() - requestStartTime),\r\n                timeLeft    = (settings.loadingDuration - elapsedTime)\r\n              ;\r\n              timeLeft = (timeLeft > 0)\r\n                ? timeLeft\r\n                : 0\r\n              ;\r\n              if(timeLeft > 0) {\r\n                module.debug('Response completed early delaying state change by', timeLeft);\r\n              }\r\n              setTimeout(function() {\r\n                if( module.is.abortedRequest(xhr) ) {\r\n                  module.request.rejectWith(context, [xhr, 'aborted', httpMessage]);\r\n                }\r\n                else {\r\n                  module.request.rejectWith(context, [xhr, 'error', status, httpMessage]);\r\n                }\r\n              }, timeLeft);\r\n            }\r\n          },\r\n          request: {\r\n            done: function(response, xhr) {\r\n              module.debug('Successful API Response', response);\r\n              if(settings.cache === 'local' && url) {\r\n                module.write.cachedResponse(url, response);\r\n                module.debug('Saving server response locally', module.cache);\r\n              }\r\n              settings.onSuccess.call(context, response, $module, xhr);\r\n            },\r\n            complete: function(firstParameter, secondParameter) {\r\n              var\r\n                xhr,\r\n                response\r\n              ;\r\n              // have to guess callback parameters based on request success\r\n              if( module.was.succesful() ) {\r\n                response = firstParameter;\r\n                xhr      = secondParameter;\r\n              }\r\n              else {\r\n                xhr      = firstParameter;\r\n                response = module.get.responseFromXHR(xhr);\r\n              }\r\n              module.remove.loading();\r\n              settings.onComplete.call(context, response, $module, xhr);\r\n            },\r\n            fail: function(xhr, status, httpMessage) {\r\n              var\r\n                // pull response from xhr if available\r\n                response     = module.get.responseFromXHR(xhr),\r\n                errorMessage = module.get.errorFromRequest(response, status, httpMessage)\r\n              ;\r\n              if(status == 'aborted') {\r\n                module.debug('XHR Aborted (Most likely caused by page navigation or CORS Policy)', status, httpMessage);\r\n                settings.onAbort.call(context, status, $module, xhr);\r\n                return true;\r\n              }\r\n              else if(status == 'invalid') {\r\n                module.debug('JSON did not pass success test. A server-side error has most likely occurred', response);\r\n              }\r\n              else if(status == 'error') {\r\n                if(xhr !== undefined) {\r\n                  module.debug('XHR produced a server error', status, httpMessage);\r\n                  // make sure we have an error to display to console\r\n                  if( xhr.status != 200 && httpMessage !== undefined && httpMessage !== '') {\r\n                    module.error(error.statusMessage + httpMessage, ajaxSettings.url);\r\n                  }\r\n                  settings.onError.call(context, errorMessage, $module, xhr);\r\n                }\r\n              }\r\n\r\n              if(settings.errorDuration && status !== 'aborted') {\r\n                module.debug('Adding error state');\r\n                module.set.error();\r\n                if( module.should.removeError() ) {\r\n                  setTimeout(module.remove.error, settings.errorDuration);\r\n                }\r\n              }\r\n              module.debug('API Request failed', errorMessage, xhr);\r\n              settings.onFailure.call(context, response, $module, xhr);\r\n            }\r\n          }\r\n        },\r\n\r\n        create: {\r\n\r\n          request: function() {\r\n            // api request promise\r\n            return $.Deferred()\r\n              .always(module.event.request.complete)\r\n              .done(module.event.request.done)\r\n              .fail(module.event.request.fail)\r\n            ;\r\n          },\r\n\r\n          mockedXHR: function () {\r\n            var\r\n              // xhr does not simulate these properties of xhr but must return them\r\n              textStatus     = false,\r\n              status         = false,\r\n              httpMessage    = false,\r\n              responder      = settings.mockResponse      || settings.response,\r\n              asyncResponder = settings.mockResponseAsync || settings.responseAsync,\r\n              asyncCallback,\r\n              response,\r\n              mockedXHR\r\n            ;\r\n\r\n            mockedXHR = $.Deferred()\r\n              .always(module.event.xhr.complete)\r\n              .done(module.event.xhr.done)\r\n              .fail(module.event.xhr.fail)\r\n            ;\r\n\r\n            if(responder) {\r\n              if( $.isFunction(responder) ) {\r\n                module.debug('Using specified synchronous callback', responder);\r\n                response = responder.call(context, requestSettings);\r\n              }\r\n              else {\r\n                module.debug('Using settings specified response', responder);\r\n                response = responder;\r\n              }\r\n              // simulating response\r\n              mockedXHR.resolveWith(context, [ response, textStatus, { responseText: response }]);\r\n            }\r\n            else if( $.isFunction(asyncResponder) ) {\r\n              asyncCallback = function(response) {\r\n                module.debug('Async callback returned response', response);\r\n\r\n                if(response) {\r\n                  mockedXHR.resolveWith(context, [ response, textStatus, { responseText: response }]);\r\n                }\r\n                else {\r\n                  mockedXHR.rejectWith(context, [{ responseText: response }, status, httpMessage]);\r\n                }\r\n              };\r\n              module.debug('Using specified async response callback', asyncResponder);\r\n              asyncResponder.call(context, requestSettings, asyncCallback);\r\n            }\r\n            return mockedXHR;\r\n          },\r\n\r\n          xhr: function() {\r\n            var\r\n              xhr\r\n            ;\r\n            // ajax request promise\r\n            xhr = $.ajax(ajaxSettings)\r\n              .always(module.event.xhr.always)\r\n              .done(module.event.xhr.done)\r\n              .fail(module.event.xhr.fail)\r\n            ;\r\n            module.verbose('Created server request', xhr, ajaxSettings);\r\n            return xhr;\r\n          }\r\n        },\r\n\r\n        set: {\r\n          error: function() {\r\n            module.verbose('Adding error state to element', $context);\r\n            $context.addClass(className.error);\r\n          },\r\n          loading: function() {\r\n            module.verbose('Adding loading state to element', $context);\r\n            $context.addClass(className.loading);\r\n            requestStartTime = new Date().getTime();\r\n          }\r\n        },\r\n\r\n        remove: {\r\n          error: function() {\r\n            module.verbose('Removing error state from element', $context);\r\n            $context.removeClass(className.error);\r\n          },\r\n          loading: function() {\r\n            module.verbose('Removing loading state from element', $context);\r\n            $context.removeClass(className.loading);\r\n          }\r\n        },\r\n\r\n        get: {\r\n          responseFromXHR: function(xhr) {\r\n            return $.isPlainObject(xhr)\r\n              ? (module.is.expectingJSON())\r\n                ? module.decode.json(xhr.responseText)\r\n                : xhr.responseText\r\n              : false\r\n            ;\r\n          },\r\n          errorFromRequest: function(response, status, httpMessage) {\r\n            return ($.isPlainObject(response) && response.error !== undefined)\r\n              ? response.error // use json error message\r\n              : (settings.error[status] !== undefined) // use server error message\r\n                ? settings.error[status]\r\n                : httpMessage\r\n            ;\r\n          },\r\n          request: function() {\r\n            return module.request || false;\r\n          },\r\n          xhr: function() {\r\n            return module.xhr || false;\r\n          },\r\n          settings: function() {\r\n            var\r\n              runSettings\r\n            ;\r\n            runSettings = settings.beforeSend.call(context, settings);\r\n            if(runSettings) {\r\n              if(runSettings.success !== undefined) {\r\n                module.debug('Legacy success callback detected', runSettings);\r\n                module.error(error.legacyParameters, runSettings.success);\r\n                runSettings.onSuccess = runSettings.success;\r\n              }\r\n              if(runSettings.failure !== undefined) {\r\n                module.debug('Legacy failure callback detected', runSettings);\r\n                module.error(error.legacyParameters, runSettings.failure);\r\n                runSettings.onFailure = runSettings.failure;\r\n              }\r\n              if(runSettings.complete !== undefined) {\r\n                module.debug('Legacy complete callback detected', runSettings);\r\n                module.error(error.legacyParameters, runSettings.complete);\r\n                runSettings.onComplete = runSettings.complete;\r\n              }\r\n            }\r\n            if(runSettings === undefined) {\r\n              module.error(error.noReturnedValue);\r\n            }\r\n            if(runSettings === false) {\r\n              return runSettings;\r\n            }\r\n            return (runSettings !== undefined)\r\n              ? $.extend(true, {}, runSettings)\r\n              : $.extend(true, {}, settings)\r\n            ;\r\n          },\r\n          urlEncodedValue: function(value) {\r\n            var\r\n              decodedValue   = window.decodeURIComponent(value),\r\n              encodedValue   = window.encodeURIComponent(value),\r\n              alreadyEncoded = (decodedValue !== value)\r\n            ;\r\n            if(alreadyEncoded) {\r\n              module.debug('URL value is already encoded, avoiding double encoding', value);\r\n              return value;\r\n            }\r\n            module.verbose('Encoding value using encodeURIComponent', value, encodedValue);\r\n            return encodedValue;\r\n          },\r\n          defaultData: function() {\r\n            var\r\n              data = {}\r\n            ;\r\n            if( !$.isWindow(element) ) {\r\n              if( module.is.input() ) {\r\n                data.value = $module.val();\r\n              }\r\n              else if( module.is.form() ) {\r\n\r\n              }\r\n              else {\r\n                data.text = $module.text();\r\n              }\r\n            }\r\n            return data;\r\n          },\r\n          event: function() {\r\n            if( $.isWindow(element) || settings.on == 'now' ) {\r\n              module.debug('API called without element, no events attached');\r\n              return false;\r\n            }\r\n            else if(settings.on == 'auto') {\r\n              if( $module.is('input') ) {\r\n                return (element.oninput !== undefined)\r\n                  ? 'input'\r\n                  : (element.onpropertychange !== undefined)\r\n                    ? 'propertychange'\r\n                    : 'keyup'\r\n                ;\r\n              }\r\n              else if( $module.is('form') ) {\r\n                return 'submit';\r\n              }\r\n              else {\r\n                return 'click';\r\n              }\r\n            }\r\n            else {\r\n              return settings.on;\r\n            }\r\n          },\r\n          templatedURL: function(action) {\r\n            action = action || $module.data(metadata.action) || settings.action || false;\r\n            url    = $module.data(metadata.url) || settings.url || false;\r\n            if(url) {\r\n              module.debug('Using specified url', url);\r\n              return url;\r\n            }\r\n            if(action) {\r\n              module.debug('Looking up url for action', action, settings.api);\r\n              if(settings.api[action] === undefined && !module.is.mocked()) {\r\n                module.error(error.missingAction, settings.action, settings.api);\r\n                return;\r\n              }\r\n              url = settings.api[action];\r\n            }\r\n            else if( module.is.form() ) {\r\n              url = $module.attr('action') || $context.attr('action') || false;\r\n              module.debug('No url or action specified, defaulting to form action', url);\r\n            }\r\n            return url;\r\n          }\r\n        },\r\n\r\n        abort: function() {\r\n          var\r\n            xhr = module.get.xhr()\r\n          ;\r\n          if( xhr && xhr.state() !== 'resolved') {\r\n            module.debug('Cancelling API request');\r\n            xhr.abort();\r\n          }\r\n        },\r\n\r\n        // reset state\r\n        reset: function() {\r\n          module.remove.error();\r\n          module.remove.loading();\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                //'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.api.settings = {\r\n\r\n  name              : 'API',\r\n  namespace         : 'api',\r\n\r\n  debug             : false,\r\n  verbose           : false,\r\n  performance       : true,\r\n\r\n  // object containing all templates endpoints\r\n  api               : {},\r\n\r\n  // whether to cache responses\r\n  cache             : true,\r\n\r\n  // whether new requests should abort previous requests\r\n  interruptRequests : true,\r\n\r\n  // event binding\r\n  on                : 'auto',\r\n\r\n  // context for applying state classes\r\n  stateContext      : false,\r\n\r\n  // duration for loading state\r\n  loadingDuration   : 0,\r\n\r\n  // whether to hide errors after a period of time\r\n  hideError         : 'auto',\r\n\r\n  // duration for error state\r\n  errorDuration     : 2000,\r\n\r\n  // whether parameters should be encoded with encodeURIComponent\r\n  encodeParameters  : true,\r\n\r\n  // API action to use\r\n  action            : false,\r\n\r\n  // templated URL to use\r\n  url               : false,\r\n\r\n  // base URL to apply to all endpoints\r\n  base              : '',\r\n\r\n  // data that will\r\n  urlData           : {},\r\n\r\n  // whether to add default data to url data\r\n  defaultData          : true,\r\n\r\n  // whether to serialize closest form\r\n  serializeForm        : false,\r\n\r\n  // how long to wait before request should occur\r\n  throttle             : 0,\r\n\r\n  // whether to throttle first request or only repeated\r\n  throttleFirstRequest : true,\r\n\r\n  // standard ajax settings\r\n  method            : 'get',\r\n  data              : {},\r\n  dataType          : 'json',\r\n\r\n  // mock response\r\n  mockResponse      : false,\r\n  mockResponseAsync : false,\r\n\r\n  // aliases for mock\r\n  response          : false,\r\n  responseAsync     : false,\r\n\r\n  // callbacks before request\r\n  beforeSend  : function(settings) { return settings; },\r\n  beforeXHR   : function(xhr) {},\r\n  onRequest   : function(promise, xhr) {},\r\n\r\n  // after request\r\n  onResponse  : false, // function(response) { },\r\n\r\n  // response was successful, if JSON passed validation\r\n  onSuccess   : function(response, $module) {},\r\n\r\n  // request finished without aborting\r\n  onComplete  : function(response, $module) {},\r\n\r\n  // failed JSON success test\r\n  onFailure   : function(response, $module) {},\r\n\r\n  // server error\r\n  onError     : function(errorMessage, $module) {},\r\n\r\n  // request aborted\r\n  onAbort     : function(errorMessage, $module) {},\r\n\r\n  successTest : false,\r\n\r\n  // errors\r\n  error : {\r\n    beforeSend        : 'The before send function has aborted the request',\r\n    error             : 'There was an error with your request',\r\n    exitConditions    : 'API Request Aborted. Exit conditions met',\r\n    JSONParse         : 'JSON could not be parsed during error handling',\r\n    legacyParameters  : 'You are using legacy API success callback names',\r\n    method            : 'The method you called is not defined',\r\n    missingAction     : 'API action used but no url was defined',\r\n    missingSerialize  : 'jquery-serialize-object is required to add form data to an existing data object',\r\n    missingURL        : 'No URL specified for api event',\r\n    noReturnedValue   : 'The beforeSend callback must return a settings object, beforeSend ignored.',\r\n    noStorage         : 'Caching responses locally requires session storage',\r\n    parseError        : 'There was an error parsing your request',\r\n    requiredParameter : 'Missing a required URL parameter: ',\r\n    statusMessage     : 'Server gave an error: ',\r\n    timeout           : 'Your request timed out'\r\n  },\r\n\r\n  regExp  : {\r\n    required : /\\{\\$*[A-z0-9]+\\}/g,\r\n    optional : /\\{\\/\\$*[A-z0-9]+\\}/g,\r\n  },\r\n\r\n  className: {\r\n    loading : 'loading',\r\n    error   : 'error'\r\n  },\r\n\r\n  selector: {\r\n    disabled : '.disabled',\r\n    form      : 'form'\r\n  },\r\n\r\n  metadata: {\r\n    action  : 'action',\r\n    url     : 'url'\r\n  }\r\n};\r\n\r\n\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - State\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.state = function(parameters) {\r\n  var\r\n    $allModules     = $(this),\r\n\r\n    moduleSelector  = $allModules.selector || '',\r\n\r\n    hasTouch        = ('ontouchstart' in document.documentElement),\r\n    time            = new Date().getTime(),\r\n    performance     = [],\r\n\r\n    query           = arguments[0],\r\n    methodInvoked   = (typeof query == 'string'),\r\n    queryArguments  = [].slice.call(arguments, 1),\r\n\r\n    returnedValue\r\n  ;\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings          = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.state.settings, parameters)\r\n          : $.extend({}, $.fn.state.settings),\r\n\r\n        error           = settings.error,\r\n        metadata        = settings.metadata,\r\n        className       = settings.className,\r\n        namespace       = settings.namespace,\r\n        states          = settings.states,\r\n        text            = settings.text,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = namespace + '-module',\r\n\r\n        $module         = $(this),\r\n\r\n        element         = this,\r\n        instance        = $module.data(moduleNamespace),\r\n\r\n        module\r\n      ;\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.verbose('Initializing module');\r\n\r\n          // allow module to guess desired state based on element\r\n          if(settings.automatic) {\r\n            module.add.defaults();\r\n          }\r\n\r\n          // bind events with delegated events\r\n          if(settings.context && moduleSelector !== '') {\r\n            $(settings.context)\r\n              .on(moduleSelector, 'mouseenter' + eventNamespace, module.change.text)\r\n              .on(moduleSelector, 'mouseleave' + eventNamespace, module.reset.text)\r\n              .on(moduleSelector, 'click'      + eventNamespace, module.toggle.state)\r\n            ;\r\n          }\r\n          else {\r\n            $module\r\n              .on('mouseenter' + eventNamespace, module.change.text)\r\n              .on('mouseleave' + eventNamespace, module.reset.text)\r\n              .on('click'      + eventNamespace, module.toggle.state)\r\n            ;\r\n          }\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.verbose('Storing instance of module', module);\r\n          instance = module;\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous module', instance);\r\n          $module\r\n            .off(eventNamespace)\r\n            .removeData(moduleNamespace)\r\n          ;\r\n        },\r\n\r\n        refresh: function() {\r\n          module.verbose('Refreshing selector cache');\r\n          $module = $(element);\r\n        },\r\n\r\n        add: {\r\n          defaults: function() {\r\n            var\r\n              userStates = parameters && $.isPlainObject(parameters.states)\r\n                ? parameters.states\r\n                : {}\r\n            ;\r\n            $.each(settings.defaults, function(type, typeStates) {\r\n              if( module.is[type] !== undefined && module.is[type]() ) {\r\n                module.verbose('Adding default states', type, element);\r\n                $.extend(settings.states, typeStates, userStates);\r\n              }\r\n            });\r\n          }\r\n        },\r\n\r\n        is: {\r\n\r\n          active: function() {\r\n            return $module.hasClass(className.active);\r\n          },\r\n          loading: function() {\r\n            return $module.hasClass(className.loading);\r\n          },\r\n          inactive: function() {\r\n            return !( $module.hasClass(className.active) );\r\n          },\r\n          state: function(state) {\r\n            if(className[state] === undefined) {\r\n              return false;\r\n            }\r\n            return $module.hasClass( className[state] );\r\n          },\r\n\r\n          enabled: function() {\r\n            return !( $module.is(settings.filter.active) );\r\n          },\r\n          disabled: function() {\r\n            return ( $module.is(settings.filter.active) );\r\n          },\r\n          textEnabled: function() {\r\n            return !( $module.is(settings.filter.text) );\r\n          },\r\n\r\n          // definitions for automatic type detection\r\n          button: function() {\r\n            return $module.is('.button:not(a, .submit)');\r\n          },\r\n          input: function() {\r\n            return $module.is('input');\r\n          },\r\n          progress: function() {\r\n            return $module.is('.ui.progress');\r\n          }\r\n        },\r\n\r\n        allow: function(state) {\r\n          module.debug('Now allowing state', state);\r\n          states[state] = true;\r\n        },\r\n        disallow: function(state) {\r\n          module.debug('No longer allowing', state);\r\n          states[state] = false;\r\n        },\r\n\r\n        allows: function(state) {\r\n          return states[state] || false;\r\n        },\r\n\r\n        enable: function() {\r\n          $module.removeClass(className.disabled);\r\n        },\r\n\r\n        disable: function() {\r\n          $module.addClass(className.disabled);\r\n        },\r\n\r\n        setState: function(state) {\r\n          if(module.allows(state)) {\r\n            $module.addClass( className[state] );\r\n          }\r\n        },\r\n\r\n        removeState: function(state) {\r\n          if(module.allows(state)) {\r\n            $module.removeClass( className[state] );\r\n          }\r\n        },\r\n\r\n        toggle: {\r\n          state: function() {\r\n            var\r\n              apiRequest,\r\n              requestCancelled\r\n            ;\r\n            if( module.allows('active') && module.is.enabled() ) {\r\n              module.refresh();\r\n              if($.fn.api !== undefined) {\r\n                apiRequest       = $module.api('get request');\r\n                requestCancelled = $module.api('was cancelled');\r\n                if( requestCancelled ) {\r\n                  module.debug('API Request cancelled by beforesend');\r\n                  settings.activateTest   = function(){ return false; };\r\n                  settings.deactivateTest = function(){ return false; };\r\n                }\r\n                else if(apiRequest) {\r\n                  module.listenTo(apiRequest);\r\n                  return;\r\n                }\r\n              }\r\n              module.change.state();\r\n            }\r\n          }\r\n        },\r\n\r\n        listenTo: function(apiRequest) {\r\n          module.debug('API request detected, waiting for state signal', apiRequest);\r\n          if(apiRequest) {\r\n            if(text.loading) {\r\n              module.update.text(text.loading);\r\n            }\r\n            $.when(apiRequest)\r\n              .then(function() {\r\n                if(apiRequest.state() == 'resolved') {\r\n                  module.debug('API request succeeded');\r\n                  settings.activateTest   = function(){ return true; };\r\n                  settings.deactivateTest = function(){ return true; };\r\n                }\r\n                else {\r\n                  module.debug('API request failed');\r\n                  settings.activateTest   = function(){ return false; };\r\n                  settings.deactivateTest = function(){ return false; };\r\n                }\r\n                module.change.state();\r\n              })\r\n            ;\r\n          }\r\n        },\r\n\r\n        // checks whether active/inactive state can be given\r\n        change: {\r\n\r\n          state: function() {\r\n            module.debug('Determining state change direction');\r\n            // inactive to active change\r\n            if( module.is.inactive() ) {\r\n              module.activate();\r\n            }\r\n            else {\r\n              module.deactivate();\r\n            }\r\n            if(settings.sync) {\r\n              module.sync();\r\n            }\r\n            settings.onChange.call(element);\r\n          },\r\n\r\n          text: function() {\r\n            if( module.is.textEnabled() ) {\r\n              if(module.is.disabled() ) {\r\n                module.verbose('Changing text to disabled text', text.hover);\r\n                module.update.text(text.disabled);\r\n              }\r\n              else if( module.is.active() ) {\r\n                if(text.hover) {\r\n                  module.verbose('Changing text to hover text', text.hover);\r\n                  module.update.text(text.hover);\r\n                }\r\n                else if(text.deactivate) {\r\n                  module.verbose('Changing text to deactivating text', text.deactivate);\r\n                  module.update.text(text.deactivate);\r\n                }\r\n              }\r\n              else {\r\n                if(text.hover) {\r\n                  module.verbose('Changing text to hover text', text.hover);\r\n                  module.update.text(text.hover);\r\n                }\r\n                else if(text.activate){\r\n                  module.verbose('Changing text to activating text', text.activate);\r\n                  module.update.text(text.activate);\r\n                }\r\n              }\r\n            }\r\n          }\r\n\r\n        },\r\n\r\n        activate: function() {\r\n          if( settings.activateTest.call(element) ) {\r\n            module.debug('Setting state to active');\r\n            $module\r\n              .addClass(className.active)\r\n            ;\r\n            module.update.text(text.active);\r\n            settings.onActivate.call(element);\r\n          }\r\n        },\r\n\r\n        deactivate: function() {\r\n          if( settings.deactivateTest.call(element) ) {\r\n            module.debug('Setting state to inactive');\r\n            $module\r\n              .removeClass(className.active)\r\n            ;\r\n            module.update.text(text.inactive);\r\n            settings.onDeactivate.call(element);\r\n          }\r\n        },\r\n\r\n        sync: function() {\r\n          module.verbose('Syncing other buttons to current state');\r\n          if( module.is.active() ) {\r\n            $allModules\r\n              .not($module)\r\n                .state('activate');\r\n          }\r\n          else {\r\n            $allModules\r\n              .not($module)\r\n                .state('deactivate')\r\n            ;\r\n          }\r\n        },\r\n\r\n        get: {\r\n          text: function() {\r\n            return (settings.selector.text)\r\n              ? $module.find(settings.selector.text).text()\r\n              : $module.html()\r\n            ;\r\n          },\r\n          textFor: function(state) {\r\n            return text[state] || false;\r\n          }\r\n        },\r\n\r\n        flash: {\r\n          text: function(text, duration, callback) {\r\n            var\r\n              previousText = module.get.text()\r\n            ;\r\n            module.debug('Flashing text message', text, duration);\r\n            text     = text     || settings.text.flash;\r\n            duration = duration || settings.flashDuration;\r\n            callback = callback || function() {};\r\n            module.update.text(text);\r\n            setTimeout(function(){\r\n              module.update.text(previousText);\r\n              callback.call(element);\r\n            }, duration);\r\n          }\r\n        },\r\n\r\n        reset: {\r\n          // on mouseout sets text to previous value\r\n          text: function() {\r\n            var\r\n              activeText   = text.active   || $module.data(metadata.storedText),\r\n              inactiveText = text.inactive || $module.data(metadata.storedText)\r\n            ;\r\n            if( module.is.textEnabled() ) {\r\n              if( module.is.active() && activeText) {\r\n                module.verbose('Resetting active text', activeText);\r\n                module.update.text(activeText);\r\n              }\r\n              else if(inactiveText) {\r\n                module.verbose('Resetting inactive text', activeText);\r\n                module.update.text(inactiveText);\r\n              }\r\n            }\r\n          }\r\n        },\r\n\r\n        update: {\r\n          text: function(text) {\r\n            var\r\n              currentText = module.get.text()\r\n            ;\r\n            if(text && text !== currentText) {\r\n              module.debug('Updating text', text);\r\n              if(settings.selector.text) {\r\n                $module\r\n                  .data(metadata.storedText, text)\r\n                  .find(settings.selector.text)\r\n                    .text(text)\r\n                ;\r\n              }\r\n              else {\r\n                $module\r\n                  .data(metadata.storedText, text)\r\n                  .html(text)\r\n                ;\r\n              }\r\n            }\r\n            else {\r\n              module.debug('Text is already set, ignoring update', text);\r\n            }\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          module.debug('Changing setting', name, value);\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            if($.isPlainObject(settings[name])) {\r\n              $.extend(true, settings[name], value);\r\n            }\r\n            else {\r\n              settings[name] = value;\r\n            }\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.state.settings = {\r\n\r\n  // module info\r\n  name           : 'State',\r\n\r\n  // debug output\r\n  debug          : false,\r\n\r\n  // verbose debug output\r\n  verbose        : false,\r\n\r\n  // namespace for events\r\n  namespace      : 'state',\r\n\r\n  // debug data includes performance\r\n  performance    : true,\r\n\r\n  // callback occurs on state change\r\n  onActivate     : function() {},\r\n  onDeactivate   : function() {},\r\n  onChange       : function() {},\r\n\r\n  // state test functions\r\n  activateTest   : function() { return true; },\r\n  deactivateTest : function() { return true; },\r\n\r\n  // whether to automatically map default states\r\n  automatic      : true,\r\n\r\n  // activate / deactivate changes all elements instantiated at same time\r\n  sync           : false,\r\n\r\n  // default flash text duration, used for temporarily changing text of an element\r\n  flashDuration  : 1000,\r\n\r\n  // selector filter\r\n  filter     : {\r\n    text   : '.loading, .disabled',\r\n    active : '.disabled'\r\n  },\r\n\r\n  context    : false,\r\n\r\n  // error\r\n  error: {\r\n    beforeSend : 'The before send function has cancelled state change',\r\n    method     : 'The method you called is not defined.'\r\n  },\r\n\r\n  // metadata\r\n  metadata: {\r\n    promise    : 'promise',\r\n    storedText : 'stored-text'\r\n  },\r\n\r\n  // change class on state\r\n  className: {\r\n    active   : 'active',\r\n    disabled : 'disabled',\r\n    error    : 'error',\r\n    loading  : 'loading',\r\n    success  : 'success',\r\n    warning  : 'warning'\r\n  },\r\n\r\n  selector: {\r\n    // selector for text node\r\n    text: false\r\n  },\r\n\r\n  defaults : {\r\n    input: {\r\n      disabled : true,\r\n      loading  : true,\r\n      active   : true\r\n    },\r\n    button: {\r\n      disabled : true,\r\n      loading  : true,\r\n      active   : true,\r\n    },\r\n    progress: {\r\n      active   : true,\r\n      success  : true,\r\n      warning  : true,\r\n      error    : true\r\n    }\r\n  },\r\n\r\n  states     : {\r\n    active   : true,\r\n    disabled : true,\r\n    error    : true,\r\n    loading  : true,\r\n    success  : true,\r\n    warning  : true\r\n  },\r\n\r\n  text     : {\r\n    disabled   : false,\r\n    flash      : false,\r\n    hover      : false,\r\n    active     : false,\r\n    inactive   : false,\r\n    activate   : false,\r\n    deactivate : false\r\n  }\r\n\r\n};\r\n\r\n\r\n\r\n})( jQuery, window, document );\r\n\r\n/*!\r\n * # Semantic UI 2.2.10 - Visibility\r\n * http://github.com/semantic-org/semantic-ui/\r\n *\r\n *\r\n * Released under the MIT license\r\n * http://opensource.org/licenses/MIT\r\n *\r\n */\r\n\r\n;(function ($, window, document, undefined) {\r\n\r\n\"use strict\";\r\n\r\nwindow = (typeof window != 'undefined' && window.Math == Math)\r\n  ? window\r\n  : (typeof self != 'undefined' && self.Math == Math)\r\n    ? self\r\n    : Function('return this')()\r\n;\r\n\r\n$.fn.visibility = function(parameters) {\r\n  var\r\n    $allModules    = $(this),\r\n    moduleSelector = $allModules.selector || '',\r\n\r\n    time           = new Date().getTime(),\r\n    performance    = [],\r\n\r\n    query          = arguments[0],\r\n    methodInvoked  = (typeof query == 'string'),\r\n    queryArguments = [].slice.call(arguments, 1),\r\n    returnedValue,\r\n\r\n    moduleCount    = $allModules.length,\r\n    loadedCount    = 0\r\n  ;\r\n\r\n  $allModules\r\n    .each(function() {\r\n      var\r\n        settings        = ( $.isPlainObject(parameters) )\r\n          ? $.extend(true, {}, $.fn.visibility.settings, parameters)\r\n          : $.extend({}, $.fn.visibility.settings),\r\n\r\n        className       = settings.className,\r\n        namespace       = settings.namespace,\r\n        error           = settings.error,\r\n        metadata        = settings.metadata,\r\n\r\n        eventNamespace  = '.' + namespace,\r\n        moduleNamespace = 'module-' + namespace,\r\n\r\n        $window         = $(window),\r\n\r\n        $module         = $(this),\r\n        $context        = $(settings.context),\r\n\r\n        $placeholder,\r\n\r\n        selector        = $module.selector || '',\r\n        instance        = $module.data(moduleNamespace),\r\n\r\n        requestAnimationFrame = window.requestAnimationFrame\r\n          || window.mozRequestAnimationFrame\r\n          || window.webkitRequestAnimationFrame\r\n          || window.msRequestAnimationFrame\r\n          || function(callback) { setTimeout(callback, 0); },\r\n\r\n        element         = this,\r\n        disabled        = false,\r\n\r\n        contextObserver,\r\n        observer,\r\n        module\r\n      ;\r\n\r\n      module = {\r\n\r\n        initialize: function() {\r\n          module.debug('Initializing', settings);\r\n\r\n          module.setup.cache();\r\n\r\n          if( module.should.trackChanges() ) {\r\n\r\n            if(settings.type == 'image') {\r\n              module.setup.image();\r\n            }\r\n            if(settings.type == 'fixed') {\r\n              module.setup.fixed();\r\n            }\r\n\r\n            if(settings.observeChanges) {\r\n              module.observeChanges();\r\n            }\r\n            module.bind.events();\r\n          }\r\n\r\n          module.save.position();\r\n          if( !module.is.visible() ) {\r\n            module.error(error.visible, $module);\r\n          }\r\n\r\n          if(settings.initialCheck) {\r\n            module.checkVisibility();\r\n          }\r\n          module.instantiate();\r\n        },\r\n\r\n        instantiate: function() {\r\n          module.debug('Storing instance', module);\r\n          $module\r\n            .data(moduleNamespace, module)\r\n          ;\r\n          instance = module;\r\n        },\r\n\r\n        destroy: function() {\r\n          module.verbose('Destroying previous module');\r\n          if(observer) {\r\n            observer.disconnect();\r\n          }\r\n          if(contextObserver) {\r\n            contextObserver.disconnect();\r\n          }\r\n          $window\r\n            .off('load'   + eventNamespace, module.event.load)\r\n            .off('resize' + eventNamespace, module.event.resize)\r\n          ;\r\n          $context\r\n            .off('scroll'       + eventNamespace, module.event.scroll)\r\n            .off('scrollchange' + eventNamespace, module.event.scrollchange)\r\n          ;\r\n          if(settings.type == 'fixed') {\r\n            module.resetFixed();\r\n            module.remove.placeholder();\r\n          }\r\n          $module\r\n            .off(eventNamespace)\r\n            .removeData(moduleNamespace)\r\n          ;\r\n        },\r\n\r\n        observeChanges: function() {\r\n          if('MutationObserver' in window) {\r\n            contextObserver = new MutationObserver(module.event.contextChanged);\r\n            observer        = new MutationObserver(module.event.changed);\r\n            contextObserver.observe(document, {\r\n              childList : true,\r\n              subtree   : true\r\n            });\r\n            observer.observe(element, {\r\n              childList : true,\r\n              subtree   : true\r\n            });\r\n            module.debug('Setting up mutation observer', observer);\r\n          }\r\n        },\r\n\r\n        bind: {\r\n          events: function() {\r\n            module.verbose('Binding visibility events to scroll and resize');\r\n            if(settings.refreshOnLoad) {\r\n              $window\r\n                .on('load'   + eventNamespace, module.event.load)\r\n              ;\r\n            }\r\n            $window\r\n              .on('resize' + eventNamespace, module.event.resize)\r\n            ;\r\n            // pub/sub pattern\r\n            $context\r\n              .off('scroll'      + eventNamespace)\r\n              .on('scroll'       + eventNamespace, module.event.scroll)\r\n              .on('scrollchange' + eventNamespace, module.event.scrollchange)\r\n            ;\r\n          }\r\n        },\r\n\r\n        event: {\r\n          changed: function(mutations) {\r\n            module.verbose('DOM tree modified, updating visibility calculations');\r\n            module.timer = setTimeout(function() {\r\n              module.verbose('DOM tree modified, updating sticky menu');\r\n              module.refresh();\r\n            }, 100);\r\n          },\r\n          contextChanged: function(mutations) {\r\n            [].forEach.call(mutations, function(mutation) {\r\n              if(mutation.removedNodes) {\r\n                [].forEach.call(mutation.removedNodes, function(node) {\r\n                  if(node == element || $(node).find(element).length > 0) {\r\n                    module.debug('Element removed from DOM, tearing down events');\r\n                    module.destroy();\r\n                  }\r\n                });\r\n              }\r\n            });\r\n          },\r\n          resize: function() {\r\n            module.debug('Window resized');\r\n            if(settings.refreshOnResize) {\r\n              requestAnimationFrame(module.refresh);\r\n            }\r\n          },\r\n          load: function() {\r\n            module.debug('Page finished loading');\r\n            requestAnimationFrame(module.refresh);\r\n          },\r\n          // publishes scrollchange event on one scroll\r\n          scroll: function() {\r\n            if(settings.throttle) {\r\n              clearTimeout(module.timer);\r\n              module.timer = setTimeout(function() {\r\n                $context.triggerHandler('scrollchange' + eventNamespace, [ $context.scrollTop() ]);\r\n              }, settings.throttle);\r\n            }\r\n            else {\r\n              requestAnimationFrame(function() {\r\n                $context.triggerHandler('scrollchange' + eventNamespace, [ $context.scrollTop() ]);\r\n              });\r\n            }\r\n          },\r\n          // subscribes to scrollchange\r\n          scrollchange: function(event, scrollPosition) {\r\n            module.checkVisibility(scrollPosition);\r\n          },\r\n        },\r\n\r\n        precache: function(images, callback) {\r\n          if (!(images instanceof Array)) {\r\n            images = [images];\r\n          }\r\n          var\r\n            imagesLength  = images.length,\r\n            loadedCounter = 0,\r\n            cache         = [],\r\n            cacheImage    = document.createElement('img'),\r\n            handleLoad    = function() {\r\n              loadedCounter++;\r\n              if (loadedCounter >= images.length) {\r\n                if ($.isFunction(callback)) {\r\n                  callback();\r\n                }\r\n              }\r\n            }\r\n          ;\r\n          while (imagesLength--) {\r\n            cacheImage         = document.createElement('img');\r\n            cacheImage.onload  = handleLoad;\r\n            cacheImage.onerror = handleLoad;\r\n            cacheImage.src     = images[imagesLength];\r\n            cache.push(cacheImage);\r\n          }\r\n        },\r\n\r\n        enableCallbacks: function() {\r\n          module.debug('Allowing callbacks to occur');\r\n          disabled = false;\r\n        },\r\n\r\n        disableCallbacks: function() {\r\n          module.debug('Disabling all callbacks temporarily');\r\n          disabled = true;\r\n        },\r\n\r\n        should: {\r\n          trackChanges: function() {\r\n            if(methodInvoked) {\r\n              module.debug('One time query, no need to bind events');\r\n              return false;\r\n            }\r\n            module.debug('Callbacks being attached');\r\n            return true;\r\n          }\r\n        },\r\n\r\n        setup: {\r\n          cache: function() {\r\n            module.cache = {\r\n              occurred : {},\r\n              screen   : {},\r\n              element  : {},\r\n            };\r\n          },\r\n          image: function() {\r\n            var\r\n              src = $module.data(metadata.src)\r\n            ;\r\n            if(src) {\r\n              module.verbose('Lazy loading image', src);\r\n              settings.once           = true;\r\n              settings.observeChanges = false;\r\n\r\n              // show when top visible\r\n              settings.onOnScreen = function() {\r\n                module.debug('Image on screen', element);\r\n                module.precache(src, function() {\r\n                  module.set.image(src, function() {\r\n                    loadedCount++;\r\n                    if(loadedCount == moduleCount) {\r\n                      settings.onAllLoaded.call(this);\r\n                    }\r\n                    settings.onLoad.call(this);\r\n                  });\r\n                });\r\n              };\r\n            }\r\n          },\r\n          fixed: function() {\r\n            module.debug('Setting up fixed');\r\n            settings.once           = false;\r\n            settings.observeChanges = false;\r\n            settings.initialCheck   = true;\r\n            settings.refreshOnLoad  = true;\r\n            if(!parameters.transition) {\r\n              settings.transition = false;\r\n            }\r\n            module.create.placeholder();\r\n            module.debug('Added placeholder', $placeholder);\r\n            settings.onTopPassed = function() {\r\n              module.debug('Element passed, adding fixed position', $module);\r\n              module.show.placeholder();\r\n              module.set.fixed();\r\n              if(settings.transition) {\r\n                if($.fn.transition !== undefined) {\r\n                  $module.transition(settings.transition, settings.duration);\r\n                }\r\n              }\r\n            };\r\n            settings.onTopPassedReverse = function() {\r\n              module.debug('Element returned to position, removing fixed', $module);\r\n              module.hide.placeholder();\r\n              module.remove.fixed();\r\n            };\r\n          }\r\n        },\r\n\r\n        create: {\r\n          placeholder: function() {\r\n            module.verbose('Creating fixed position placeholder');\r\n            $placeholder = $module\r\n              .clone(false)\r\n              .css('display', 'none')\r\n              .addClass(className.placeholder)\r\n              .insertAfter($module)\r\n            ;\r\n          }\r\n        },\r\n\r\n        show: {\r\n          placeholder: function() {\r\n            module.verbose('Showing placeholder');\r\n            $placeholder\r\n              .css('display', 'block')\r\n              .css('visibility', 'hidden')\r\n            ;\r\n          }\r\n        },\r\n        hide: {\r\n          placeholder: function() {\r\n            module.verbose('Hiding placeholder');\r\n            $placeholder\r\n              .css('display', 'none')\r\n              .css('visibility', '')\r\n            ;\r\n          }\r\n        },\r\n\r\n        set: {\r\n          fixed: function() {\r\n            module.verbose('Setting element to fixed position');\r\n            $module\r\n              .addClass(className.fixed)\r\n              .css({\r\n                position : 'fixed',\r\n                top      : settings.offset + 'px',\r\n                left     : 'auto',\r\n                zIndex   : settings.zIndex\r\n              })\r\n            ;\r\n            settings.onFixed.call(element);\r\n          },\r\n          image: function(src, callback) {\r\n            $module\r\n              .attr('src', src)\r\n            ;\r\n            if(settings.transition) {\r\n              if( $.fn.transition !== undefined) {\r\n                if($module.hasClass(className.visible)) {\r\n                  module.debug('Transition already occurred on this image, skipping animation');\r\n                  return;\r\n                }\r\n                $module.transition(settings.transition, settings.duration, callback);\r\n              }\r\n              else {\r\n                $module.fadeIn(settings.duration, callback);\r\n              }\r\n            }\r\n            else {\r\n              $module.show();\r\n            }\r\n          }\r\n        },\r\n\r\n        is: {\r\n          onScreen: function() {\r\n            var\r\n              calculations   = module.get.elementCalculations()\r\n            ;\r\n            return calculations.onScreen;\r\n          },\r\n          offScreen: function() {\r\n            var\r\n              calculations   = module.get.elementCalculations()\r\n            ;\r\n            return calculations.offScreen;\r\n          },\r\n          visible: function() {\r\n            if(module.cache && module.cache.element) {\r\n              return !(module.cache.element.width === 0 && module.cache.element.offset.top === 0);\r\n            }\r\n            return false;\r\n          },\r\n          verticallyScrollableContext: function() {\r\n            var\r\n              overflowY = ($context.get(0) !== window)\r\n                ? $context.css('overflow-y')\r\n                : false\r\n            ;\r\n            return (overflowY == 'auto' || overflowY == 'scroll');\r\n          },\r\n          horizontallyScrollableContext: function() {\r\n            var\r\n              overflowX = ($context.get(0) !== window)\r\n                ? $context.css('overflow-x')\r\n                : false\r\n            ;\r\n            return (overflowX == 'auto' || overflowX == 'scroll');\r\n          }\r\n        },\r\n\r\n        refresh: function() {\r\n          module.debug('Refreshing constants (width/height)');\r\n          if(settings.type == 'fixed') {\r\n            module.resetFixed();\r\n          }\r\n          module.reset();\r\n          module.save.position();\r\n          if(settings.checkOnRefresh) {\r\n            module.checkVisibility();\r\n          }\r\n          settings.onRefresh.call(element);\r\n        },\r\n\r\n        resetFixed: function () {\r\n          module.remove.fixed();\r\n          module.remove.occurred();\r\n        },\r\n\r\n        reset: function() {\r\n          module.verbose('Resetting all cached values');\r\n          if( $.isPlainObject(module.cache) ) {\r\n            module.cache.screen = {};\r\n            module.cache.element = {};\r\n          }\r\n        },\r\n\r\n        checkVisibility: function(scroll) {\r\n          module.verbose('Checking visibility of element', module.cache.element);\r\n\r\n          if( !disabled && module.is.visible() ) {\r\n\r\n            // save scroll position\r\n            module.save.scroll(scroll);\r\n\r\n            // update calculations derived from scroll\r\n            module.save.calculations();\r\n\r\n            // percentage\r\n            module.passed();\r\n\r\n            // reverse (must be first)\r\n            module.passingReverse();\r\n            module.topVisibleReverse();\r\n            module.bottomVisibleReverse();\r\n            module.topPassedReverse();\r\n            module.bottomPassedReverse();\r\n\r\n            // one time\r\n            module.onScreen();\r\n            module.offScreen();\r\n            module.passing();\r\n            module.topVisible();\r\n            module.bottomVisible();\r\n            module.topPassed();\r\n            module.bottomPassed();\r\n\r\n            // on update callback\r\n            if(settings.onUpdate) {\r\n              settings.onUpdate.call(element, module.get.elementCalculations());\r\n            }\r\n          }\r\n        },\r\n\r\n        passed: function(amount, newCallback) {\r\n          var\r\n            calculations   = module.get.elementCalculations(),\r\n            amountInPixels\r\n          ;\r\n          // assign callback\r\n          if(amount && newCallback) {\r\n            settings.onPassed[amount] = newCallback;\r\n          }\r\n          else if(amount !== undefined) {\r\n            return (module.get.pixelsPassed(amount) > calculations.pixelsPassed);\r\n          }\r\n          else if(calculations.passing) {\r\n            $.each(settings.onPassed, function(amount, callback) {\r\n              if(calculations.bottomVisible || calculations.pixelsPassed > module.get.pixelsPassed(amount)) {\r\n                module.execute(callback, amount);\r\n              }\r\n              else if(!settings.once) {\r\n                module.remove.occurred(callback);\r\n              }\r\n            });\r\n          }\r\n        },\r\n\r\n        onScreen: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onOnScreen,\r\n            callbackName = 'onScreen'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for onScreen', newCallback);\r\n            settings.onOnScreen = newCallback;\r\n          }\r\n          if(calculations.onScreen) {\r\n            module.execute(callback, callbackName);\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback !== undefined) {\r\n            return calculations.onOnScreen;\r\n          }\r\n        },\r\n\r\n        offScreen: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onOffScreen,\r\n            callbackName = 'offScreen'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for offScreen', newCallback);\r\n            settings.onOffScreen = newCallback;\r\n          }\r\n          if(calculations.offScreen) {\r\n            module.execute(callback, callbackName);\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback !== undefined) {\r\n            return calculations.onOffScreen;\r\n          }\r\n        },\r\n\r\n        passing: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onPassing,\r\n            callbackName = 'passing'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for passing', newCallback);\r\n            settings.onPassing = newCallback;\r\n          }\r\n          if(calculations.passing) {\r\n            module.execute(callback, callbackName);\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback !== undefined) {\r\n            return calculations.passing;\r\n          }\r\n        },\r\n\r\n\r\n        topVisible: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onTopVisible,\r\n            callbackName = 'topVisible'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for top visible', newCallback);\r\n            settings.onTopVisible = newCallback;\r\n          }\r\n          if(calculations.topVisible) {\r\n            module.execute(callback, callbackName);\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback === undefined) {\r\n            return calculations.topVisible;\r\n          }\r\n        },\r\n\r\n        bottomVisible: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onBottomVisible,\r\n            callbackName = 'bottomVisible'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for bottom visible', newCallback);\r\n            settings.onBottomVisible = newCallback;\r\n          }\r\n          if(calculations.bottomVisible) {\r\n            module.execute(callback, callbackName);\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback === undefined) {\r\n            return calculations.bottomVisible;\r\n          }\r\n        },\r\n\r\n        topPassed: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onTopPassed,\r\n            callbackName = 'topPassed'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for top passed', newCallback);\r\n            settings.onTopPassed = newCallback;\r\n          }\r\n          if(calculations.topPassed) {\r\n            module.execute(callback, callbackName);\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback === undefined) {\r\n            return calculations.topPassed;\r\n          }\r\n        },\r\n\r\n        bottomPassed: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onBottomPassed,\r\n            callbackName = 'bottomPassed'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for bottom passed', newCallback);\r\n            settings.onBottomPassed = newCallback;\r\n          }\r\n          if(calculations.bottomPassed) {\r\n            module.execute(callback, callbackName);\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback === undefined) {\r\n            return calculations.bottomPassed;\r\n          }\r\n        },\r\n\r\n        passingReverse: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onPassingReverse,\r\n            callbackName = 'passingReverse'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for passing reverse', newCallback);\r\n            settings.onPassingReverse = newCallback;\r\n          }\r\n          if(!calculations.passing) {\r\n            if(module.get.occurred('passing')) {\r\n              module.execute(callback, callbackName);\r\n            }\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback !== undefined) {\r\n            return !calculations.passing;\r\n          }\r\n        },\r\n\r\n\r\n        topVisibleReverse: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onTopVisibleReverse,\r\n            callbackName = 'topVisibleReverse'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for top visible reverse', newCallback);\r\n            settings.onTopVisibleReverse = newCallback;\r\n          }\r\n          if(!calculations.topVisible) {\r\n            if(module.get.occurred('topVisible')) {\r\n              module.execute(callback, callbackName);\r\n            }\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback === undefined) {\r\n            return !calculations.topVisible;\r\n          }\r\n        },\r\n\r\n        bottomVisibleReverse: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onBottomVisibleReverse,\r\n            callbackName = 'bottomVisibleReverse'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for bottom visible reverse', newCallback);\r\n            settings.onBottomVisibleReverse = newCallback;\r\n          }\r\n          if(!calculations.bottomVisible) {\r\n            if(module.get.occurred('bottomVisible')) {\r\n              module.execute(callback, callbackName);\r\n            }\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback === undefined) {\r\n            return !calculations.bottomVisible;\r\n          }\r\n        },\r\n\r\n        topPassedReverse: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onTopPassedReverse,\r\n            callbackName = 'topPassedReverse'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for top passed reverse', newCallback);\r\n            settings.onTopPassedReverse = newCallback;\r\n          }\r\n          if(!calculations.topPassed) {\r\n            if(module.get.occurred('topPassed')) {\r\n              module.execute(callback, callbackName);\r\n            }\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback === undefined) {\r\n            return !calculations.onTopPassed;\r\n          }\r\n        },\r\n\r\n        bottomPassedReverse: function(newCallback) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            callback     = newCallback || settings.onBottomPassedReverse,\r\n            callbackName = 'bottomPassedReverse'\r\n          ;\r\n          if(newCallback) {\r\n            module.debug('Adding callback for bottom passed reverse', newCallback);\r\n            settings.onBottomPassedReverse = newCallback;\r\n          }\r\n          if(!calculations.bottomPassed) {\r\n            if(module.get.occurred('bottomPassed')) {\r\n              module.execute(callback, callbackName);\r\n            }\r\n          }\r\n          else if(!settings.once) {\r\n            module.remove.occurred(callbackName);\r\n          }\r\n          if(newCallback === undefined) {\r\n            return !calculations.bottomPassed;\r\n          }\r\n        },\r\n\r\n        execute: function(callback, callbackName) {\r\n          var\r\n            calculations = module.get.elementCalculations(),\r\n            screen       = module.get.screenCalculations()\r\n          ;\r\n          callback = callback || false;\r\n          if(callback) {\r\n            if(settings.continuous) {\r\n              module.debug('Callback being called continuously', callbackName, calculations);\r\n              callback.call(element, calculations, screen);\r\n            }\r\n            else if(!module.get.occurred(callbackName)) {\r\n              module.debug('Conditions met', callbackName, calculations);\r\n              callback.call(element, calculations, screen);\r\n            }\r\n          }\r\n          module.save.occurred(callbackName);\r\n        },\r\n\r\n        remove: {\r\n          fixed: function() {\r\n            module.debug('Removing fixed position');\r\n            $module\r\n              .removeClass(className.fixed)\r\n              .css({\r\n                position : '',\r\n                top      : '',\r\n                left     : '',\r\n                zIndex   : ''\r\n              })\r\n            ;\r\n            settings.onUnfixed.call(element);\r\n          },\r\n          placeholder: function() {\r\n            module.debug('Removing placeholder content');\r\n            if($placeholder) {\r\n              $placeholder.remove();\r\n            }\r\n          },\r\n          occurred: function(callback) {\r\n            if(callback) {\r\n              var\r\n                occurred = module.cache.occurred\r\n              ;\r\n              if(occurred[callback] !== undefined && occurred[callback] === true) {\r\n                module.debug('Callback can now be called again', callback);\r\n                module.cache.occurred[callback] = false;\r\n              }\r\n            }\r\n            else {\r\n              module.cache.occurred = {};\r\n            }\r\n          }\r\n        },\r\n\r\n        save: {\r\n          calculations: function() {\r\n            module.verbose('Saving all calculations necessary to determine positioning');\r\n            module.save.direction();\r\n            module.save.screenCalculations();\r\n            module.save.elementCalculations();\r\n          },\r\n          occurred: function(callback) {\r\n            if(callback) {\r\n              if(module.cache.occurred[callback] === undefined || (module.cache.occurred[callback] !== true)) {\r\n                module.verbose('Saving callback occurred', callback);\r\n                module.cache.occurred[callback] = true;\r\n              }\r\n            }\r\n          },\r\n          scroll: function(scrollPosition) {\r\n            scrollPosition      = scrollPosition + settings.offset || $context.scrollTop() + settings.offset;\r\n            module.cache.scroll = scrollPosition;\r\n          },\r\n          direction: function() {\r\n            var\r\n              scroll     = module.get.scroll(),\r\n              lastScroll = module.get.lastScroll(),\r\n              direction\r\n            ;\r\n            if(scroll > lastScroll && lastScroll) {\r\n              direction = 'down';\r\n            }\r\n            else if(scroll < lastScroll && lastScroll) {\r\n              direction = 'up';\r\n            }\r\n            else {\r\n              direction = 'static';\r\n            }\r\n            module.cache.direction = direction;\r\n            return module.cache.direction;\r\n          },\r\n          elementPosition: function() {\r\n            var\r\n              element = module.cache.element,\r\n              screen  = module.get.screenSize()\r\n            ;\r\n            module.verbose('Saving element position');\r\n            // (quicker than $.extend)\r\n            element.fits          = (element.height < screen.height);\r\n            element.offset        = $module.offset();\r\n            element.width         = $module.outerWidth();\r\n            element.height        = $module.outerHeight();\r\n            // compensate for scroll in context\r\n            if(module.is.verticallyScrollableContext()) {\r\n              element.offset.top += $context.scrollTop() - $context.offset().top;\r\n            }\r\n            if(module.is.horizontallyScrollableContext()) {\r\n              element.offset.left += $context.scrollLeft - $context.offset().left;\r\n            }\r\n            // store\r\n            module.cache.element = element;\r\n            return element;\r\n          },\r\n          elementCalculations: function() {\r\n            var\r\n              screen     = module.get.screenCalculations(),\r\n              element    = module.get.elementPosition()\r\n            ;\r\n            // offset\r\n            if(settings.includeMargin) {\r\n              element.margin        = {};\r\n              element.margin.top    = parseInt($module.css('margin-top'), 10);\r\n              element.margin.bottom = parseInt($module.css('margin-bottom'), 10);\r\n              element.top    = element.offset.top - element.margin.top;\r\n              element.bottom = element.offset.top + element.height + element.margin.bottom;\r\n            }\r\n            else {\r\n              element.top    = element.offset.top;\r\n              element.bottom = element.offset.top + element.height;\r\n            }\r\n\r\n            // visibility\r\n            element.topPassed        = (screen.top >= element.top);\r\n            element.bottomPassed     = (screen.top >= element.bottom);\r\n            element.topVisible       = (screen.bottom >= element.top) && !element.bottomPassed;\r\n            element.bottomVisible    = (screen.bottom >= element.bottom) && !element.topPassed;\r\n            element.pixelsPassed     = 0;\r\n            element.percentagePassed = 0;\r\n\r\n            // meta calculations\r\n            element.onScreen  = (element.topVisible && !element.bottomPassed);\r\n            element.passing   = (element.topPassed && !element.bottomPassed);\r\n            element.offScreen = (!element.onScreen);\r\n\r\n            // passing calculations\r\n            if(element.passing) {\r\n              element.pixelsPassed     = (screen.top - element.top);\r\n              element.percentagePassed = (screen.top - element.top) / element.height;\r\n            }\r\n            module.cache.element = element;\r\n            module.verbose('Updated element calculations', element);\r\n            return element;\r\n          },\r\n          screenCalculations: function() {\r\n            var\r\n              scroll = module.get.scroll()\r\n            ;\r\n            module.save.direction();\r\n            module.cache.screen.top    = scroll;\r\n            module.cache.screen.bottom = scroll + module.cache.screen.height;\r\n            return module.cache.screen;\r\n          },\r\n          screenSize: function() {\r\n            module.verbose('Saving window position');\r\n            module.cache.screen = {\r\n              height: $context.height()\r\n            };\r\n          },\r\n          position: function() {\r\n            module.save.screenSize();\r\n            module.save.elementPosition();\r\n          }\r\n        },\r\n\r\n        get: {\r\n          pixelsPassed: function(amount) {\r\n            var\r\n              element = module.get.elementCalculations()\r\n            ;\r\n            if(amount.search('%') > -1) {\r\n              return ( element.height * (parseInt(amount, 10) / 100) );\r\n            }\r\n            return parseInt(amount, 10);\r\n          },\r\n          occurred: function(callback) {\r\n            return (module.cache.occurred !== undefined)\r\n              ? module.cache.occurred[callback] || false\r\n              : false\r\n            ;\r\n          },\r\n          direction: function() {\r\n            if(module.cache.direction === undefined) {\r\n              module.save.direction();\r\n            }\r\n            return module.cache.direction;\r\n          },\r\n          elementPosition: function() {\r\n            if(module.cache.element === undefined) {\r\n              module.save.elementPosition();\r\n            }\r\n            return module.cache.element;\r\n          },\r\n          elementCalculations: function() {\r\n            if(module.cache.element === undefined) {\r\n              module.save.elementCalculations();\r\n            }\r\n            return module.cache.element;\r\n          },\r\n          screenCalculations: function() {\r\n            if(module.cache.screen === undefined) {\r\n              module.save.screenCalculations();\r\n            }\r\n            return module.cache.screen;\r\n          },\r\n          screenSize: function() {\r\n            if(module.cache.screen === undefined) {\r\n              module.save.screenSize();\r\n            }\r\n            return module.cache.screen;\r\n          },\r\n          scroll: function() {\r\n            if(module.cache.scroll === undefined) {\r\n              module.save.scroll();\r\n            }\r\n            return module.cache.scroll;\r\n          },\r\n          lastScroll: function() {\r\n            if(module.cache.screen === undefined) {\r\n              module.debug('First scroll event, no last scroll could be found');\r\n              return false;\r\n            }\r\n            return module.cache.screen.top;\r\n          }\r\n        },\r\n\r\n        setting: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, settings, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            settings[name] = value;\r\n          }\r\n          else {\r\n            return settings[name];\r\n          }\r\n        },\r\n        internal: function(name, value) {\r\n          if( $.isPlainObject(name) ) {\r\n            $.extend(true, module, name);\r\n          }\r\n          else if(value !== undefined) {\r\n            module[name] = value;\r\n          }\r\n          else {\r\n            return module[name];\r\n          }\r\n        },\r\n        debug: function() {\r\n          if(!settings.silent && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.debug.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        verbose: function() {\r\n          if(!settings.silent && settings.verbose && settings.debug) {\r\n            if(settings.performance) {\r\n              module.performance.log(arguments);\r\n            }\r\n            else {\r\n              module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\r\n              module.verbose.apply(console, arguments);\r\n            }\r\n          }\r\n        },\r\n        error: function() {\r\n          if(!settings.silent) {\r\n            module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\r\n            module.error.apply(console, arguments);\r\n          }\r\n        },\r\n        performance: {\r\n          log: function(message) {\r\n            var\r\n              currentTime,\r\n              executionTime,\r\n              previousTime\r\n            ;\r\n            if(settings.performance) {\r\n              currentTime   = new Date().getTime();\r\n              previousTime  = time || currentTime;\r\n              executionTime = currentTime - previousTime;\r\n              time          = currentTime;\r\n              performance.push({\r\n                'Name'           : message[0],\r\n                'Arguments'      : [].slice.call(message, 1) || '',\r\n                'Element'        : element,\r\n                'Execution Time' : executionTime\r\n              });\r\n            }\r\n            clearTimeout(module.performance.timer);\r\n            module.performance.timer = setTimeout(module.performance.display, 500);\r\n          },\r\n          display: function() {\r\n            var\r\n              title = settings.name + ':',\r\n              totalTime = 0\r\n            ;\r\n            time = false;\r\n            clearTimeout(module.performance.timer);\r\n            $.each(performance, function(index, data) {\r\n              totalTime += data['Execution Time'];\r\n            });\r\n            title += ' ' + totalTime + 'ms';\r\n            if(moduleSelector) {\r\n              title += ' \\'' + moduleSelector + '\\'';\r\n            }\r\n            if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\r\n              console.groupCollapsed(title);\r\n              if(console.table) {\r\n                console.table(performance);\r\n              }\r\n              else {\r\n                $.each(performance, function(index, data) {\r\n                  console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\r\n                });\r\n              }\r\n              console.groupEnd();\r\n            }\r\n            performance = [];\r\n          }\r\n        },\r\n        invoke: function(query, passedArguments, context) {\r\n          var\r\n            object = instance,\r\n            maxDepth,\r\n            found,\r\n            response\r\n          ;\r\n          passedArguments = passedArguments || queryArguments;\r\n          context         = element         || context;\r\n          if(typeof query == 'string' && object !== undefined) {\r\n            query    = query.split(/[\\. ]/);\r\n            maxDepth = query.length - 1;\r\n            $.each(query, function(depth, value) {\r\n              var camelCaseValue = (depth != maxDepth)\r\n                ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\r\n                : query\r\n              ;\r\n              if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\r\n                object = object[camelCaseValue];\r\n              }\r\n              else if( object[camelCaseValue] !== undefined ) {\r\n                found = object[camelCaseValue];\r\n                return false;\r\n              }\r\n              else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\r\n                object = object[value];\r\n              }\r\n              else if( object[value] !== undefined ) {\r\n                found = object[value];\r\n                return false;\r\n              }\r\n              else {\r\n                module.error(error.method, query);\r\n                return false;\r\n              }\r\n            });\r\n          }\r\n          if ( $.isFunction( found ) ) {\r\n            response = found.apply(context, passedArguments);\r\n          }\r\n          else if(found !== undefined) {\r\n            response = found;\r\n          }\r\n          if($.isArray(returnedValue)) {\r\n            returnedValue.push(response);\r\n          }\r\n          else if(returnedValue !== undefined) {\r\n            returnedValue = [returnedValue, response];\r\n          }\r\n          else if(response !== undefined) {\r\n            returnedValue = response;\r\n          }\r\n          return found;\r\n        }\r\n      };\r\n\r\n      if(methodInvoked) {\r\n        if(instance === undefined) {\r\n          module.initialize();\r\n        }\r\n        instance.save.scroll();\r\n        instance.save.calculations();\r\n        module.invoke(query);\r\n      }\r\n      else {\r\n        if(instance !== undefined) {\r\n          instance.invoke('destroy');\r\n        }\r\n        module.initialize();\r\n      }\r\n    })\r\n  ;\r\n\r\n  return (returnedValue !== undefined)\r\n    ? returnedValue\r\n    : this\r\n  ;\r\n};\r\n\r\n$.fn.visibility.settings = {\r\n\r\n  name                   : 'Visibility',\r\n  namespace              : 'visibility',\r\n\r\n  debug                  : false,\r\n  verbose                : false,\r\n  performance            : true,\r\n\r\n  // whether to use mutation observers to follow changes\r\n  observeChanges         : true,\r\n\r\n  // check position immediately on init\r\n  initialCheck           : true,\r\n\r\n  // whether to refresh calculations after all page images load\r\n  refreshOnLoad          : true,\r\n\r\n  // whether to refresh calculations after page resize event\r\n  refreshOnResize        : true,\r\n\r\n  // should call callbacks on refresh event (resize, etc)\r\n  checkOnRefresh         : true,\r\n\r\n  // callback should only occur one time\r\n  once                   : true,\r\n\r\n  // callback should fire continuously whe evaluates to true\r\n  continuous             : false,\r\n\r\n  // offset to use with scroll top\r\n  offset                 : 0,\r\n\r\n  // whether to include margin in elements position\r\n  includeMargin          : false,\r\n\r\n  // scroll context for visibility checks\r\n  context                : window,\r\n\r\n  // visibility check delay in ms (defaults to animationFrame)\r\n  throttle               : false,\r\n\r\n  // special visibility type (image, fixed)\r\n  type                   : false,\r\n\r\n  // z-index to use with visibility 'fixed'\r\n  zIndex                 : '10',\r\n\r\n  // image only animation settings\r\n  transition             : 'fade in',\r\n  duration               : 1000,\r\n\r\n  // array of callbacks for percentage\r\n  onPassed               : {},\r\n\r\n  // standard callbacks\r\n  onOnScreen             : false,\r\n  onOffScreen            : false,\r\n  onPassing              : false,\r\n  onTopVisible           : false,\r\n  onBottomVisible        : false,\r\n  onTopPassed            : false,\r\n  onBottomPassed         : false,\r\n\r\n  // reverse callbacks\r\n  onPassingReverse       : false,\r\n  onTopVisibleReverse    : false,\r\n  onBottomVisibleReverse : false,\r\n  onTopPassedReverse     : false,\r\n  onBottomPassedReverse  : false,\r\n\r\n  // special callbacks for image\r\n  onLoad                 : function() {},\r\n  onAllLoaded            : function() {},\r\n\r\n  // special callbacks for fixed position\r\n  onFixed                : function() {},\r\n  onUnfixed              : function() {},\r\n\r\n  // utility callbacks\r\n  onUpdate               : false, // disabled by default for performance\r\n  onRefresh              : function(){},\r\n\r\n  metadata : {\r\n    src: 'src'\r\n  },\r\n\r\n  className: {\r\n    fixed       : 'fixed',\r\n    placeholder : 'placeholder',\r\n    visible     : 'visible'\r\n  },\r\n\r\n  error : {\r\n    method  : 'The method you called is not defined.',\r\n    visible : 'Element is hidden, you must call refresh after element becomes visible'\r\n  }\r\n\r\n};\r\n\r\n})( jQuery, window, document );\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/assets/Semantic/semantic.js\n// module id = 453\n// module chunks = 2","(function ($, moment)\r\n{\r\n   var pluginName = \"bootstrapMaterialDatePicker\";\r\n   var pluginDataName = \"plugin_\" + pluginName;\r\n\r\n   moment.locale('en');\r\n\r\n   function Plugin(element, options)\r\n   {\r\n      this.currentView = 0;\r\n\r\n      this.minDate;\r\n      this.maxDate;\r\n\r\n      this._attachedEvents = [];\r\n\r\n      this.element = element;\r\n      this.$element = $(element);\r\n\r\n      this.params = {date: true, time: true, format: 'YYYY-MM-DD', minDate: null, maxDate: null, currentDate: null, lang: 'en', weekStart: 0, shortTime: false, clearButton: false, nowButton: false, cancelText: 'Cancel', okText: 'OK', clearText: 'Clear', nowText: 'Ahora', switchOnClick: false, triggerEvent: 'focus', monthPicker: false};\r\n      this.params = $.fn.extend(this.params, options);\r\n\r\n      this.name = \"dtp_\" + this.setName();\r\n      this.$element.attr(\"data-dtp\", this.name);\r\n\r\n      moment.locale(this.params.lang);\r\n\r\n      this.init();\r\n   }\r\n\r\n   $.fn[pluginName] = function (options, p)\r\n   {\r\n      this.each(function ()\r\n      {\r\n         if (!$.data(this, pluginDataName))\r\n         {\r\n            $.data(this, pluginDataName, new Plugin(this, options));\r\n         } else\r\n         {\r\n            if (typeof ($.data(this, pluginDataName)[options]) === 'function')\r\n            {\r\n               $.data(this, pluginDataName)[options](p);\r\n            }\r\n            if (options === 'destroy')\r\n            {\r\n               delete $.data(this, pluginDataName);\r\n            }\r\n         }\r\n      });\r\n      return this;\r\n   };\r\n\r\n   Plugin.prototype =\r\n           {\r\n              init: function ()\r\n              {\r\n                 this.initDays();\r\n                 this.initDates();\r\n\r\n                 this.initTemplate();\r\n\r\n                 this.initButtons();\r\n\r\n                 this._attachEvent($(window), 'resize', this._centerBox.bind(this));\r\n                 this._attachEvent(this.$dtpElement.find('.dtp-content'), 'click', this._onElementClick.bind(this));\r\n                 this._attachEvent(this.$dtpElement, 'click', this._onBackgroundClick.bind(this));\r\n                 this._attachEvent(this.$dtpElement.find('.dtp-close > a'), 'click', this._onCloseClick.bind(this));\r\n                 this._attachEvent(this.$element, this.params.triggerEvent, this._fireCalendar.bind(this));\r\n              },\r\n              initDays: function ()\r\n              {\r\n                 this.days = [];\r\n                 for (var i = this.params.weekStart; this.days.length < 7; i++)\r\n                 {\r\n                    if (i > 6)\r\n                    {\r\n                       i = 0;\r\n                    }\r\n                    this.days.push(i.toString());\r\n                 }\r\n              },\r\n              initDates: function ()\r\n              {\r\n                 if (this.$element.val().length > 0)\r\n                 {\r\n                    if (typeof (this.params.format) !== 'undefined' && this.params.format !== null)\r\n                    {\r\n                       this.currentDate = moment(this.$element.val(), this.params.format).locale(this.params.lang);\r\n                    } else\r\n                    {\r\n                       this.currentDate = moment(this.$element.val()).locale(this.params.lang);\r\n                    }\r\n                 } else\r\n                 {\r\n                    if (typeof (this.$element.attr('value')) !== 'undefined' && this.$element.attr('value') !== null && this.$element.attr('value') !== \"\")\r\n                    {\r\n                       if (typeof (this.$element.attr('value')) === 'string')\r\n                       {\r\n                          if (typeof (this.params.format) !== 'undefined' && this.params.format !== null)\r\n                          {\r\n                             this.currentDate = moment(this.$element.attr('value'), this.params.format).locale(this.params.lang);\r\n                          } else\r\n                          {\r\n                             this.currentDate = moment(this.$element.attr('value')).locale(this.params.lang);\r\n                          }\r\n                       }\r\n                    } else\r\n                    {\r\n                       if (typeof (this.params.currentDate) !== 'undefined' && this.params.currentDate !== null)\r\n                       {\r\n                          if (typeof (this.params.currentDate) === 'string')\r\n                          {\r\n                             if (typeof (this.params.format) !== 'undefined' && this.params.format !== null)\r\n                             {\r\n                                this.currentDate = moment(this.params.currentDate, this.params.format).locale(this.params.lang);\r\n                             } else\r\n                             {\r\n                                this.currentDate = moment(this.params.currentDate).locale(this.params.lang);\r\n                             }\r\n                          } else\r\n                          {\r\n                             if (typeof (this.params.currentDate.isValid) === 'undefined' || typeof (this.params.currentDate.isValid) !== 'function')\r\n                             {\r\n                                var x = this.params.currentDate.getTime();\r\n                                this.currentDate = moment(x, \"x\").locale(this.params.lang);\r\n                             } else\r\n                             {\r\n                                this.currentDate = this.params.currentDate;\r\n                             }\r\n                          }\r\n                          this.$element.val(this.currentDate.format(this.params.format));\r\n                       } else\r\n                          this.currentDate = moment();\r\n                    }\r\n                 }\r\n\r\n                 if (typeof (this.params.minDate) !== 'undefined' && this.params.minDate !== null)\r\n                 {\r\n                    if (typeof (this.params.minDate) === 'string')\r\n                    {\r\n                       if (typeof (this.params.format) !== 'undefined' && this.params.format !== null)\r\n                       {\r\n                          this.minDate = moment(this.params.minDate, this.params.format).locale(this.params.lang);\r\n                       } else\r\n                       {\r\n                          this.minDate = moment(this.params.minDate).locale(this.params.lang);\r\n                       }\r\n                    } else\r\n                    {\r\n                       if (typeof (this.params.minDate.isValid) === 'undefined' || typeof (this.params.minDate.isValid) !== 'function')\r\n                       {\r\n                          var x = this.params.minDate.getTime();\r\n                          this.minDate = moment(x, \"x\").locale(this.params.lang);\r\n                       } else\r\n                       {\r\n                          this.minDate = this.params.minDate;\r\n                       }\r\n                    }\r\n                 } else if (this.params.minDate === null)\r\n                 {\r\n                    this.minDate = null;\r\n                 }\r\n\r\n                 if (typeof (this.params.maxDate) !== 'undefined' && this.params.maxDate !== null)\r\n                 {\r\n                    if (typeof (this.params.maxDate) === 'string')\r\n                    {\r\n                       if (typeof (this.params.format) !== 'undefined' && this.params.format !== null)\r\n                       {\r\n                          this.maxDate = moment(this.params.maxDate, this.params.format).locale(this.params.lang);\r\n                       } else\r\n                       {\r\n                          this.maxDate = moment(this.params.maxDate).locale(this.params.lang);\r\n                       }\r\n                    } else\r\n                    {\r\n                       if (typeof (this.params.maxDate.isValid) === 'undefined' || typeof (this.params.maxDate.isValid) !== 'function')\r\n                       {\r\n                          var x = this.params.maxDate.getTime();\r\n                          this.maxDate = moment(x, \"x\").locale(this.params.lang);\r\n                       } else\r\n                       {\r\n                          this.maxDate = this.params.maxDate;\r\n                       }\r\n                    }\r\n                 } else if (this.params.maxDate === null)\r\n                 {\r\n                    this.maxDate = null;\r\n                 }\r\n\r\n                 if (!this.isAfterMinDate(this.currentDate))\r\n                 {\r\n                    this.currentDate = moment(this.minDate);\r\n                 }\r\n                 if (!this.isBeforeMaxDate(this.currentDate))\r\n                 {\r\n                    this.currentDate = moment(this.maxDate);\r\n                 }\r\n              },\r\n              initTemplate: function ()\r\n              {\r\n                 this.template = '<div class=\"dtp hidden\" id=\"' + this.name + '\">' +\r\n                         '<div class=\"dtp-content\">' +\r\n                         '<div class=\"dtp-date-view\">' +\r\n                         '<header class=\"dtp-header\">' +\r\n                         '<div class=\"dtp-actual-day\">Lundi</div>' +\r\n                         '<div class=\"dtp-close\"><a href=\"javascript:void(0);\"><i class=\"material-icons\">clear</i></a></div>' +\r\n                         '</header>' +\r\n                         '<div class=\"dtp-date hidden\">' +\r\n                         '<div>' +\r\n                         '<div class=\"left center p10\">' +\r\n                         '<a href=\"javascript:void(0);\" class=\"dtp-select-month-before\"><i class=\"material-icons\">chevron_left</i></a>' +\r\n                         '</div>' +\r\n                         '<div class=\"dtp-actual-month p80\">MAR</div>' +\r\n                         '<div class=\"right center p10\">' +\r\n                         '<a href=\"javascript:void(0);\" class=\"dtp-select-month-after\"><i class=\"material-icons\">chevron_right</i></a>' +\r\n                         '</div>' +\r\n                         '<div class=\"clearfix\"></div>' +\r\n                         '</div>' +\r\n                         '<div class=\"dtp-actual-num\">13</div>' +\r\n                         '<div>' +\r\n                         '<div class=\"left center p10\">' +\r\n                         '<a href=\"javascript:void(0);\" class=\"dtp-select-year-before\"><i class=\"material-icons\">chevron_left</i></a>' +\r\n                         '</div>' +\r\n                         '<div class=\"dtp-actual-year p80\">2014</div>' +\r\n                         '<div class=\"right center p10\">' +\r\n                         '<a href=\"javascript:void(0);\" class=\"dtp-select-year-after\"><i class=\"material-icons\">chevron_right</i></a>' +\r\n                         '</div>' +\r\n                         '<div class=\"clearfix\"></div>' +\r\n                         '</div>' +\r\n                         '</div>' +\r\n                         '<div class=\"dtp-time hidden\">' +\r\n                         '<div class=\"dtp-actual-maxtime\">23:55</div>' +\r\n                         '</div>' +\r\n                         '<div class=\"dtp-picker\">' +\r\n                         '<div class=\"dtp-picker-calendar\"></div>' +\r\n                         '<div class=\"dtp-picker-datetime hidden\">' +\r\n                         '<div class=\"dtp-actual-meridien\">' +\r\n                         '<div class=\"left p20\">' +\r\n                         '<a class=\"dtp-meridien-am\" href=\"javascript:void(0);\">AM</a>' +\r\n                         '</div>' +\r\n                         '<div class=\"dtp-actual-time p60\"></div>' +\r\n                         '<div class=\"right p20\">' +\r\n                         '<a class=\"dtp-meridien-pm\" href=\"javascript:void(0);\">PM</a>' +\r\n                         '</div>' +\r\n                         '<div class=\"clearfix\"></div>' +\r\n                         '</div>' +\r\n                         '<div id=\"dtp-svg-clock\">' +\r\n                         '</div>' +\r\n                         '</div>' +\r\n                         '</div>' +\r\n                         '</div>' +\r\n                         '<div class=\"dtp-buttons\">' +\r\n                         '<button class=\"dtp-btn-now btn btn-flat hidden\">' + this.params.nowText + '</button>' +\r\n                         '<button class=\"dtp-btn-clear btn btn-flat hidden\">' + this.params.clearText + '</button>' +\r\n                         '<button class=\"dtp-btn-cancel btn btn-flat\">' + this.params.cancelText + '</button>' +\r\n                         '<button class=\"dtp-btn-ok btn btn-flat\">' + this.params.okText + '</button>' +\r\n                         '<div class=\"clearfix\"></div>' +\r\n                         '</div>' +\r\n                         '</div>' +\r\n                         '</div>';\r\n\r\n                 if ($('body').find(\"#\" + this.name).length <= 0)\r\n                 {\r\n                    $('body').append(this.template);\r\n\r\n                    if (this)\r\n                       this.dtpElement = $('body').find(\"#\" + this.name);\r\n                    this.$dtpElement = $(this.dtpElement);\r\n                 }\r\n              },\r\n              initButtons: function ()\r\n              {\r\n                 this._attachEvent(this.$dtpElement.find('.dtp-btn-cancel'), 'click', this._onCancelClick.bind(this));\r\n                 this._attachEvent(this.$dtpElement.find('.dtp-btn-ok'), 'click', this._onOKClick.bind(this));\r\n                 this._attachEvent(this.$dtpElement.find('a.dtp-select-month-before'), 'click', this._onMonthBeforeClick.bind(this));\r\n                 this._attachEvent(this.$dtpElement.find('a.dtp-select-month-after'), 'click', this._onMonthAfterClick.bind(this));\r\n                 this._attachEvent(this.$dtpElement.find('a.dtp-select-year-before'), 'click', this._onYearBeforeClick.bind(this));\r\n                 this._attachEvent(this.$dtpElement.find('a.dtp-select-year-after'), 'click', this._onYearAfterClick.bind(this));\r\n\r\n                 if (this.params.clearButton === true)\r\n                 {\r\n                    this._attachEvent(this.$dtpElement.find('.dtp-btn-clear'), 'click', this._onClearClick.bind(this));\r\n                    this.$dtpElement.find('.dtp-btn-clear').removeClass('hidden');\r\n                 }\r\n\r\n                 if (this.params.nowButton === true)\r\n                 {\r\n                    this._attachEvent(this.$dtpElement.find('.dtp-btn-now'), 'click', this._onNowClick.bind(this));\r\n                    this.$dtpElement.find('.dtp-btn-now').removeClass('hidden');\r\n                 }\r\n\r\n                 if ((this.params.nowButton === true) && (this.params.clearButton === true))\r\n                 {\r\n                    this.$dtpElement.find('.dtp-btn-clear, .dtp-btn-now, .dtp-btn-cancel, .dtp-btn-ok').addClass('btn-xs');\r\n                 } else if ((this.params.nowButton === true) || (this.params.clearButton === true))\r\n                 {\r\n                    this.$dtpElement.find('.dtp-btn-clear, .dtp-btn-now, .dtp-btn-cancel, .dtp-btn-ok').addClass('btn-sm');\r\n                 }\r\n              },\r\n              initMeridienButtons: function ()\r\n              {\r\n                 this.$dtpElement.find('a.dtp-meridien-am').off('click').on('click', this._onSelectAM.bind(this));\r\n                 this.$dtpElement.find('a.dtp-meridien-pm').off('click').on('click', this._onSelectPM.bind(this));\r\n              },\r\n              initDate: function (d)\r\n              {\r\n                 this.currentView = 0;\r\n\r\n                 if (this.params.monthPicker === false)\r\n                 {\r\n                    this.$dtpElement.find('.dtp-picker-calendar').removeClass('hidden');\r\n                 }\r\n                 this.$dtpElement.find('.dtp-picker-datetime').addClass('hidden');\r\n\r\n                 var _date = ((typeof (this.currentDate) !== 'undefined' && this.currentDate !== null) ? this.currentDate : null);\r\n                 var _calendar = this.generateCalendar(this.currentDate);\r\n\r\n                 if (typeof (_calendar.week) !== 'undefined' && typeof (_calendar.days) !== 'undefined')\r\n                 {\r\n                    var _template = this.constructHTMLCalendar(_date, _calendar);\r\n\r\n                    this.$dtpElement.find('a.dtp-select-day').off('click');\r\n                    this.$dtpElement.find('.dtp-picker-calendar').html(_template);\r\n\r\n                    this.$dtpElement.find('a.dtp-select-day').on('click', this._onSelectDate.bind(this));\r\n\r\n                    this.toggleButtons(_date);\r\n                 }\r\n\r\n                 this._centerBox();\r\n                 this.showDate(_date);\r\n              },\r\n              initHours: function ()\r\n              {\r\n                 this.currentView = 1;\r\n\r\n                 this.showTime(this.currentDate);\r\n                 this.initMeridienButtons();\r\n\r\n                 if (this.currentDate.hour() < 12)\r\n                 {\r\n                    this.$dtpElement.find('a.dtp-meridien-am').click();\r\n                 } else\r\n                 {\r\n                    this.$dtpElement.find('a.dtp-meridien-pm').click();\r\n                 }\r\n\r\n                 var hFormat = ((this.params.shortTime) ? 'h' : 'H');\r\n\r\n                 this.$dtpElement.find('.dtp-picker-datetime').removeClass('hidden');\r\n                 this.$dtpElement.find('.dtp-picker-calendar').addClass('hidden');\r\n\r\n                 var svgClockElement = this.createSVGClock(true);\r\n\r\n                 for (var i = 0; i < 12; i++)\r\n                 {\r\n                    var x = -(162 * (Math.sin(-Math.PI * 2 * (i / 12))));\r\n                    var y = -(162 * (Math.cos(-Math.PI * 2 * (i / 12))));\r\n\r\n                    var fill = ((this.currentDate.format(hFormat) == i) ? \"#CB0036\" : 'transparent');\r\n                    var color = ((this.currentDate.format(hFormat) == i) ? \"#fff\" : '#000');\r\n\r\n                    var svgHourCircle = this.createSVGElement(\"circle\", {'id': 'h-' + i, 'class': 'dtp-select-hour', 'style': 'cursor:pointer', r: '30', cx: x, cy: y, fill: fill, 'data-hour': i});\r\n\r\n                    var svgHourText = this.createSVGElement(\"text\", {'id': 'th-' + i, 'class': 'dtp-select-hour-text', 'text-anchor': 'middle', 'style': 'cursor:pointer', 'font-weight': 'bold', 'font-size': '20', x: x, y: y + 7, fill: color, 'data-hour': i});\r\n                    svgHourText.textContent = ((i === 0) ? ((this.params.shortTime) ? 12 : i) : i);\r\n\r\n                    if (!this.toggleTime(i, true))\r\n                    {\r\n                       svgHourCircle.className += \" disabled\";\r\n                       svgHourText.className += \" disabled\";\r\n                       svgHourText.setAttribute('fill', '#CB0036');\r\n                    } else\r\n                    {\r\n                       svgHourCircle.addEventListener('click', this._onSelectHour.bind(this));\r\n                       svgHourText.addEventListener('click', this._onSelectHour.bind(this));\r\n                    }\r\n\r\n                    svgClockElement.appendChild(svgHourCircle)\r\n                    svgClockElement.appendChild(svgHourText)\r\n                 }\r\n\r\n                 if (!this.params.shortTime)\r\n                 {\r\n                    for (var i = 0; i < 12; i++)\r\n                    {\r\n                       var x = -(110 * (Math.sin(-Math.PI * 2 * (i / 12))));\r\n                       var y = -(110 * (Math.cos(-Math.PI * 2 * (i / 12))));\r\n\r\n                       var fill = ((this.currentDate.format(hFormat) == (i + 12)) ? \"#CB0036\" : 'transparent');\r\n                       var color = ((this.currentDate.format(hFormat) == (i + 12)) ? \"#fff\" : '#000');\r\n\r\n                       var svgHourCircle = this.createSVGElement(\"circle\", {'id': 'h-' + (i + 12), 'class': 'dtp-select-hour', 'style': 'cursor:pointer', r: '30', cx: x, cy: y, fill: fill, 'data-hour': (i + 12)});\r\n\r\n                       var svgHourText = this.createSVGElement(\"text\", {'id': 'th-' + (i + 12), 'class': 'dtp-select-hour-text', 'text-anchor': 'middle', 'style': 'cursor:pointer', 'font-weight': 'bold', 'font-size': '22', x: x, y: y + 7, fill: color, 'data-hour': (i + 12)});\r\n                       svgHourText.textContent = i + 12;\r\n\r\n                       if (!this.toggleTime(i + 12, true))\r\n                       {\r\n                          svgHourCircle.className += \" disabled\";\r\n                          svgHourText.className += \" disabled\";\r\n                          svgHourText.setAttribute('fill', '#CB0036');\r\n                       } else\r\n                       {\r\n                          svgHourCircle.addEventListener('click', this._onSelectHour.bind(this));\r\n                          svgHourText.addEventListener('click', this._onSelectHour.bind(this));\r\n                       }\r\n\r\n                       svgClockElement.appendChild(svgHourCircle)\r\n                       svgClockElement.appendChild(svgHourText)\r\n                    }\r\n\r\n                    this.$dtpElement.find('a.dtp-meridien-am').addClass('hidden');\r\n                    this.$dtpElement.find('a.dtp-meridien-pm').addClass('hidden');\r\n                 }\r\n\r\n                 this._centerBox();\r\n              },\r\n              initMinutes: function ()\r\n              {\r\n                 this.currentView = 2;\r\n\r\n                 this.showTime(this.currentDate);\r\n\r\n                 this.initMeridienButtons();\r\n\r\n                 if (this.currentDate.hour() < 12)\r\n                 {\r\n                    this.$dtpElement.find('a.dtp-meridien-am').click();\r\n                 } else\r\n                 {\r\n                    this.$dtpElement.find('a.dtp-meridien-pm').click();\r\n                 }\r\n\r\n                 this.$dtpElement.find('.dtp-picker-calendar').addClass('hidden');\r\n                 this.$dtpElement.find('.dtp-picker-datetime').removeClass('hidden');\r\n\r\n                 var svgClockElement = this.createSVGClock(false);\r\n\r\n                 for (var i = 0; i < 60; i++)\r\n                 {\r\n                    var s = ((i % 5 === 0) ? 162 : 158);\r\n                    var r = ((i % 5 === 0) ? 30 : 20);\r\n\r\n                    var x = -(s * (Math.sin(-Math.PI * 2 * (i / 60))));\r\n                    var y = -(s * (Math.cos(-Math.PI * 2 * (i / 60))));\r\n\r\n                    var color = ((this.currentDate.format(\"m\") == i) ? \"#CB0036\" : 'transparent');\r\n\r\n                    var svgMinuteCircle = this.createSVGElement(\"circle\", {'id': 'm-' + i, 'class': 'dtp-select-minute', 'style': 'cursor:pointer', r: r, cx: x, cy: y, fill: color, 'data-minute': i});\r\n\r\n                    if (!this.toggleTime(i, false))\r\n                    {\r\n                       svgMinuteCircle.className += \" disabled\";\r\n                    } else\r\n                    {\r\n                       svgMinuteCircle.addEventListener('click', this._onSelectMinute.bind(this));\r\n                    }\r\n\r\n                    svgClockElement.appendChild(svgMinuteCircle)\r\n                 }\r\n\r\n                 for (var i = 0; i < 60; i++)\r\n                 {\r\n                    if ((i % 5) === 0)\r\n                    {\r\n                       var x = -(162 * (Math.sin(-Math.PI * 2 * (i / 60))));\r\n                       var y = -(162 * (Math.cos(-Math.PI * 2 * (i / 60))));\r\n\r\n                       var color = ((this.currentDate.format(\"m\") == i) ? \"#fff\" : '#000');\r\n\r\n                       var svgMinuteText = this.createSVGElement(\"text\", {'id': 'tm-' + i, 'class': 'dtp-select-minute-text', 'text-anchor': 'middle', 'style': 'cursor:pointer', 'font-weight': 'bold', 'font-size': '20', x: x, y: y + 7, fill: color, 'data-minute': i});\r\n                       svgMinuteText.textContent = i;\r\n\r\n                       if (!this.toggleTime(i, false))\r\n                       {\r\n                          svgMinuteText.className += \" disabled\";\r\n                          svgMinuteText.setAttribute('fill', '#CB0036');\r\n                       } else\r\n                       {\r\n                          svgMinuteText.addEventListener('click', this._onSelectMinute.bind(this));\r\n                       }\r\n\r\n                       svgClockElement.appendChild(svgMinuteText)\r\n                    }\r\n                 }\r\n\r\n                 this._centerBox();\r\n              },\r\n              animateHands: function ()\r\n              {\r\n                 var H = this.currentDate.hour();\r\n                 var M = this.currentDate.minute();\r\n\r\n                 var hh = this.$dtpElement.find('.hour-hand');\r\n                 hh[0].setAttribute('transform', \"rotate(\" + 360 * H / 12 + \")\");\r\n\r\n                 var mh = this.$dtpElement.find('.minute-hand');\r\n                 mh[0].setAttribute('transform', \"rotate(\" + 360 * M / 60 + \")\");\r\n              },\r\n              createSVGClock: function (isHour)\r\n              {\r\n                 var hl = ((this.params.shortTime) ? -120 : -90);\r\n\r\n                 var svgElement = this.createSVGElement(\"svg\", {class: 'svg-clock', viewBox: '0,0,400,400'});\r\n                 var svgGElement = this.createSVGElement(\"g\", {transform: 'translate(200,200) '});\r\n                 var svgClockFace = this.createSVGElement(\"circle\", { r: '192', fill: '#eee', stroke: '#E8E8E8', 'stroke-width': 2 });\r\n                 var svgClockCenter = this.createSVGElement(\"circle\", { r: '15', fill: '#CB0036' });\r\n\r\n                 svgGElement.appendChild(svgClockFace)\r\n\r\n                 if (isHour)\r\n                 {\r\n                    var svgMinuteHand = this.createSVGElement(\"line\", {class: 'minute-hand', x1: 0, y1: 0, x2: 0, y2: -150, stroke: '#bdbdbd', 'stroke-width': 2});\r\n                    var svgHourHand = this.createSVGElement(\"line\", { class: 'hour-hand', x1: 0, y1: 0, x2: 0, y2: hl, stroke: '#CB0036', 'stroke-width': 8 });\r\n\r\n                    svgGElement.appendChild(svgMinuteHand);\r\n                    svgGElement.appendChild(svgHourHand);\r\n                 } else\r\n                 {\r\n                     var svgMinuteHand = this.createSVGElement(\"line\", { class: 'minute-hand', x1: 0, y1: 0, x2: 0, y2: -150, stroke: '#CB0036', 'stroke-width': 2 });\r\n                    var svgHourHand = this.createSVGElement(\"line\", {class: 'hour-hand', x1: 0, y1: 0, x2: 0, y2: hl, stroke: '#bdbdbd', 'stroke-width': 8});\r\n\r\n                    svgGElement.appendChild(svgHourHand);\r\n                    svgGElement.appendChild(svgMinuteHand);\r\n                 }\r\n\r\n                 svgGElement.appendChild(svgClockCenter)\r\n\r\n                 svgElement.appendChild(svgGElement)\r\n\r\n                 this.$dtpElement.find(\"#dtp-svg-clock\").empty();\r\n                 this.$dtpElement.find(\"#dtp-svg-clock\")[0].appendChild(svgElement);\r\n\r\n                 this.animateHands();\r\n\r\n                 return svgGElement;\r\n              },\r\n              createSVGElement: function (tag, attrs)\r\n              {\r\n                 var el = document.createElementNS('http://www.w3.org/2000/svg', tag);\r\n                 for (var k in attrs)\r\n                 {\r\n                    el.setAttribute(k, attrs[k]);\r\n                 }\r\n                 return el;\r\n              },\r\n              isAfterMinDate: function (date, checkHour, checkMinute)\r\n              {\r\n                 var _return = true;\r\n\r\n                 if (typeof (this.minDate) !== 'undefined' && this.minDate !== null)\r\n                 {\r\n                    var _minDate = moment(this.minDate);\r\n                    var _date = moment(date);\r\n\r\n                    if (!checkHour && !checkMinute)\r\n                    {\r\n                       _minDate.hour(0);\r\n                       _minDate.minute(0);\r\n\r\n                       _date.hour(0);\r\n                       _date.minute(0);\r\n                    }\r\n\r\n                    _minDate.second(0);\r\n                    _date.second(0);\r\n                    _minDate.millisecond(0);\r\n                    _date.millisecond(0);\r\n\r\n                    if (!checkMinute)\r\n                    {\r\n                       _date.minute(0);\r\n                       _minDate.minute(0);\r\n\r\n                       _return = (parseInt(_date.format(\"X\")) >= parseInt(_minDate.format(\"X\")));\r\n                    } else\r\n                    {\r\n                       _return = (parseInt(_date.format(\"X\")) >= parseInt(_minDate.format(\"X\")));\r\n                    }\r\n                 }\r\n\r\n                 return _return;\r\n              },\r\n              isBeforeMaxDate: function (date, checkTime, checkMinute)\r\n              {\r\n                 var _return = true;\r\n\r\n                 if (typeof (this.maxDate) !== 'undefined' && this.maxDate !== null)\r\n                 {\r\n                    var _maxDate = moment(this.maxDate);\r\n                    var _date = moment(date);\r\n\r\n                    if (!checkTime && !checkMinute)\r\n                    {\r\n                       _maxDate.hour(0);\r\n                       _maxDate.minute(0);\r\n\r\n                       _date.hour(0);\r\n                       _date.minute(0);\r\n                    }\r\n\r\n                    _maxDate.second(0);\r\n                    _date.second(0);\r\n                    _maxDate.millisecond(0);\r\n                    _date.millisecond(0);\r\n\r\n                    if (!checkMinute)\r\n                    {\r\n                       _date.minute(0);\r\n                       _maxDate.minute(0);\r\n\r\n                       _return = (parseInt(_date.format(\"X\")) <= parseInt(_maxDate.format(\"X\")));\r\n                    } else\r\n                    {\r\n                       _return = (parseInt(_date.format(\"X\")) <= parseInt(_maxDate.format(\"X\")));\r\n                    }\r\n                 }\r\n\r\n                 return _return;\r\n              },\r\n              rotateElement: function (el, deg)\r\n              {\r\n                 $(el).css\r\n                         ({\r\n                            WebkitTransform: 'rotate(' + deg + 'deg)',\r\n                            '-moz-transform': 'rotate(' + deg + 'deg)'\r\n                         });\r\n              },\r\n              showDate: function (date)\r\n              {\r\n                 if (date)\r\n                 {\r\n                    this.$dtpElement.find('.dtp-actual-day').html(date.locale(this.params.lang).format('dddd'));\r\n                    this.$dtpElement.find('.dtp-actual-month').html(date.locale(this.params.lang).format('MMM').toUpperCase());\r\n                    this.$dtpElement.find('.dtp-actual-num').html(date.locale(this.params.lang).format('DD'));\r\n                    this.$dtpElement.find('.dtp-actual-year').html(date.locale(this.params.lang).format('YYYY'));\r\n                 }\r\n              },\r\n              showTime: function (date)\r\n              {\r\n                 if (date)\r\n                 {\r\n                    var minutes = date.minute();\r\n                    var content = ((this.params.shortTime) ? date.format('hh') : date.format('HH')) + ':' + ((minutes.toString().length == 2) ? minutes : '0' + minutes) + ((this.params.shortTime) ? ' ' + date.format('A') : '');\r\n\r\n                    if (this.params.date)\r\n                       this.$dtpElement.find('.dtp-actual-time').html(content);\r\n                    else\r\n                    {\r\n                       if (this.params.shortTime)\r\n                          this.$dtpElement.find('.dtp-actual-day').html(date.format('A'));\r\n                       else\r\n                          this.$dtpElement.find('.dtp-actual-day').html('&nbsp;');\r\n\r\n                       this.$dtpElement.find('.dtp-actual-maxtime').html(content);\r\n                    }\r\n                 }\r\n              },\r\n              selectDate: function (date)\r\n              {\r\n                 if (date)\r\n                 {\r\n                    this.currentDate.date(date);\r\n\r\n                    this.showDate(this.currentDate);\r\n                    this.$element.trigger('dateSelected', this.currentDate);\r\n                 }\r\n              },\r\n              generateCalendar: function (date)\r\n              {\r\n                 var _calendar = {};\r\n\r\n                 if (date !== null)\r\n                 {\r\n                    var startOfMonth = moment(date).locale(this.params.lang).startOf('month');\r\n                    var endOfMonth = moment(date).locale(this.params.lang).endOf('month');\r\n\r\n                    var iNumDay = startOfMonth.format('d');\r\n\r\n                    _calendar.week = this.days;\r\n                    _calendar.days = [];\r\n\r\n                    for (var i = startOfMonth.date(); i <= endOfMonth.date(); i++)\r\n                    {\r\n                       if (i === startOfMonth.date())\r\n                       {\r\n                          var iWeek = _calendar.week.indexOf(iNumDay.toString());\r\n                          if (iWeek > 0)\r\n                          {\r\n                             for (var x = 0; x < iWeek; x++)\r\n                             {\r\n                                _calendar.days.push(0);\r\n                             }\r\n                          }\r\n                       }\r\n                       _calendar.days.push(moment(startOfMonth).locale(this.params.lang).date(i));\r\n                    }\r\n                 }\r\n\r\n                 return _calendar;\r\n              },\r\n              constructHTMLCalendar: function (date, calendar)\r\n              {\r\n                 var _template = \"\";\r\n\r\n                 _template += '<div class=\"dtp-picker-month\">' + date.locale(this.params.lang).format('MMMM YYYY') + '</div>';\r\n                 _template += '<table class=\"table dtp-picker-days\"><thead>';\r\n                 for (var i = 0; i < calendar.week.length; i++)\r\n                 {\r\n                    _template += '<th>' + moment(parseInt(calendar.week[i]), \"d\").locale(this.params.lang).format(\"dd\").substring(0, 1) + '</th>';\r\n                 }\r\n\r\n                 _template += '</thead>';\r\n                 _template += '<tbody><tr>';\r\n\r\n                 for (var i = 0; i < calendar.days.length; i++)\r\n                 {\r\n                    if (i % 7 == 0)\r\n                       _template += '</tr><tr>';\r\n                    _template += '<td data-date=\"' + moment(calendar.days[i]).locale(this.params.lang).format(\"D\") + '\">';\r\n                    if (calendar.days[i] != 0)\r\n                    {\r\n                       if (this.isBeforeMaxDate(moment(calendar.days[i]), false, false) === false || this.isAfterMinDate(moment(calendar.days[i]), false, false) === false)\r\n                       {\r\n                          _template += '<span class=\"dtp-select-day\">' + moment(calendar.days[i]).locale(this.params.lang).format(\"DD\") + '</span>';\r\n                       } else\r\n                       {\r\n                          if (moment(calendar.days[i]).locale(this.params.lang).format(\"DD\") === moment(this.currentDate).locale(this.params.lang).format(\"DD\"))\r\n                          {\r\n                             _template += '<a href=\"javascript:void(0);\" class=\"dtp-select-day selected\">' + moment(calendar.days[i]).locale(this.params.lang).format(\"DD\") + '</a>';\r\n                          } else\r\n                          {\r\n                             _template += '<a href=\"javascript:void(0);\" class=\"dtp-select-day\">' + moment(calendar.days[i]).locale(this.params.lang).format(\"DD\") + '</a>';\r\n                          }\r\n                       }\r\n\r\n                       _template += '</td>';\r\n                    }\r\n                 }\r\n                 _template += '</tr></tbody></table>';\r\n\r\n                 return _template;\r\n              },\r\n              setName: function ()\r\n              {\r\n                 var text = \"\";\r\n                 var possible = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n\r\n                 for (var i = 0; i < 5; i++)\r\n                 {\r\n                    text += possible.charAt(Math.floor(Math.random() * possible.length));\r\n                 }\r\n\r\n                 return text;\r\n              },\r\n              isPM: function ()\r\n              {\r\n                 return this.$dtpElement.find('a.dtp-meridien-pm').hasClass('selected');\r\n              },\r\n              setElementValue: function ()\r\n              {\r\n                 this.$element.trigger('beforeChange', this.currentDate);\r\n                 if (typeof ($.material) !== 'undefined')\r\n                 {\r\n                    this.$element.removeClass('empty');\r\n                 }\r\n                 this.$element.val(moment(this.currentDate).locale(this.params.lang).format(this.params.format));\r\n                 this.$element.trigger('change', this.currentDate);\r\n              },\r\n              toggleButtons: function (date)\r\n              {\r\n                 if (date && date.isValid())\r\n                 {\r\n                    var startOfMonth = moment(date).locale(this.params.lang).startOf('month');\r\n                    var endOfMonth = moment(date).locale(this.params.lang).endOf('month');\r\n\r\n                    if (!this.isAfterMinDate(startOfMonth, false, false))\r\n                    {\r\n                       this.$dtpElement.find('a.dtp-select-month-before').addClass('invisible');\r\n                    } else\r\n                    {\r\n                       this.$dtpElement.find('a.dtp-select-month-before').removeClass('invisible');\r\n                    }\r\n\r\n                    if (!this.isBeforeMaxDate(endOfMonth, false, false))\r\n                    {\r\n                       this.$dtpElement.find('a.dtp-select-month-after').addClass('invisible');\r\n                    } else\r\n                    {\r\n                       this.$dtpElement.find('a.dtp-select-month-after').removeClass('invisible');\r\n                    }\r\n\r\n                    var startOfYear = moment(date).locale(this.params.lang).startOf('year');\r\n                    var endOfYear = moment(date).locale(this.params.lang).endOf('year');\r\n\r\n                    if (!this.isAfterMinDate(startOfYear, false, false))\r\n                    {\r\n                       this.$dtpElement.find('a.dtp-select-year-before').addClass('invisible');\r\n                    } else\r\n                    {\r\n                       this.$dtpElement.find('a.dtp-select-year-before').removeClass('invisible');\r\n                    }\r\n\r\n                    if (!this.isBeforeMaxDate(endOfYear, false, false))\r\n                    {\r\n                       this.$dtpElement.find('a.dtp-select-year-after').addClass('invisible');\r\n                    } else\r\n                    {\r\n                       this.$dtpElement.find('a.dtp-select-year-after').removeClass('invisible');\r\n                    }\r\n                 }\r\n              },\r\n              toggleTime: function (value, isHours)\r\n              {\r\n                 var result = false;\r\n\r\n                 if (isHours)\r\n                 {\r\n                    var _date = moment(this.currentDate);\r\n                    _date.hour(this.convertHours(value)).minute(0).second(0);\r\n\r\n                    result = !(this.isAfterMinDate(_date, true, false) === false || this.isBeforeMaxDate(_date, true, false) === false);\r\n                 } else\r\n                 {\r\n                    var _date = moment(this.currentDate);\r\n                    _date.minute(value).second(0);\r\n\r\n                    result = !(this.isAfterMinDate(_date, true, true) === false || this.isBeforeMaxDate(_date, true, true) === false);\r\n                 }\r\n\r\n                 return result;\r\n              },\r\n              _attachEvent: function (el, ev, fn)\r\n              {\r\n                 el.on(ev, null, null, fn);\r\n                 this._attachedEvents.push([el, ev, fn]);\r\n              },\r\n              _detachEvents: function ()\r\n              {\r\n                 for (var i = this._attachedEvents.length - 1; i >= 0; i--)\r\n                 {\r\n                    this._attachedEvents[i][0].off(this._attachedEvents[i][1], this._attachedEvents[i][2]);\r\n                    this._attachedEvents.splice(i, 1);\r\n                 }\r\n              },\r\n              _fireCalendar: function ()\r\n              {\r\n                 this.currentView = 0;\r\n                 this.$element.blur();\r\n\r\n                 this.initDates();\r\n\r\n                 this.show();\r\n\r\n                 if (this.params.date)\r\n                 {\r\n                    this.$dtpElement.find('.dtp-date').removeClass('hidden');\r\n                    this.initDate();\r\n                 } else\r\n                 {\r\n                    if (this.params.time)\r\n                    {\r\n                       this.$dtpElement.find('.dtp-time').removeClass('hidden');\r\n                       this.initHours();\r\n                    }\r\n                 }\r\n              },\r\n              _onBackgroundClick: function (e)\r\n              {\r\n                 e.stopPropagation();\r\n                 this.hide();\r\n              },\r\n              _onElementClick: function (e)\r\n              {\r\n                 e.stopPropagation();\r\n              },\r\n              _onKeydown: function (e)\r\n              {\r\n                 if (e.which === 27)\r\n                 {\r\n                    this.hide();\r\n                 }\r\n              },\r\n              _onCloseClick: function ()\r\n              {\r\n                 this.hide();\r\n              },\r\n              _onClearClick: function ()\r\n              {\r\n                 this.currentDate = null;\r\n                 this.$element.trigger('beforeChange', this.currentDate);\r\n                 this.hide();\r\n                 if (typeof ($.material) !== 'undefined')\r\n                 {\r\n                    this.$element.addClass('empty');\r\n                 }\r\n                 this.$element.val('');\r\n                 this.$element.trigger('change', this.currentDate);\r\n              },\r\n              _onNowClick: function ()\r\n              {\r\n                 this.currentDate = moment();\r\n\r\n                 if (this.params.date === true)\r\n                 {\r\n                    this.showDate(this.currentDate);\r\n\r\n                    if (this.currentView === 0)\r\n                    {\r\n                       this.initDate();\r\n                    }\r\n                 }\r\n\r\n                 if (this.params.time === true)\r\n                 {\r\n                    this.showTime(this.currentDate);\r\n\r\n                    switch (this.currentView)\r\n                    {\r\n                       case 1 :\r\n                          this.initHours();\r\n                          break;\r\n                       case 2 :\r\n                          this.initMinutes();\r\n                          break;\r\n                    }\r\n\r\n                    this.animateHands();\r\n                 }\r\n              },\r\n              _onOKClick: function ()\r\n              {\r\n                 switch (this.currentView)\r\n                 {\r\n                    case 0:\r\n                       if (this.params.time === true)\r\n                       {\r\n                          this.initHours();\r\n                       } else\r\n                       {\r\n                          this.setElementValue();\r\n                          this.hide();\r\n                       }\r\n                       break;\r\n                    case 1:\r\n                       this.initMinutes();\r\n                       break;\r\n                    case 2:\r\n                       this.setElementValue();\r\n                       this.hide();\r\n                       break;\r\n                 }\r\n              },\r\n              _onCancelClick: function ()\r\n              {\r\n                 if (this.params.time)\r\n                 {\r\n                    switch (this.currentView)\r\n                    {\r\n                       case 0:\r\n                          this.hide();\r\n                          break;\r\n                       case 1:\r\n                          if (this.params.date)\r\n                          {\r\n                             this.initDate();\r\n                          } else\r\n                          {\r\n                             this.hide();\r\n                          }\r\n                          break;\r\n                       case 2:\r\n                          this.initHours();\r\n                          break;\r\n                    }\r\n                 } else\r\n                 {\r\n                    this.hide();\r\n                 }\r\n              },\r\n              _onMonthBeforeClick: function ()\r\n              {\r\n                 this.currentDate.subtract(1, 'months');\r\n                 this.initDate(this.currentDate);\r\n              },\r\n              _onMonthAfterClick: function ()\r\n              {\r\n                 this.currentDate.add(1, 'months');\r\n                 this.initDate(this.currentDate);\r\n              },\r\n              _onYearBeforeClick: function ()\r\n              {\r\n                 this.currentDate.subtract(1, 'years');\r\n                 this.initDate(this.currentDate);\r\n              },\r\n              _onYearAfterClick: function ()\r\n              {\r\n                 this.currentDate.add(1, 'years');\r\n                 this.initDate(this.currentDate);\r\n              },\r\n              _onSelectDate: function (e)\r\n              {\r\n                 this.$dtpElement.find('a.dtp-select-day').removeClass('selected');\r\n                 $(e.currentTarget).addClass('selected');\r\n\r\n                 this.selectDate($(e.currentTarget).parent().data(\"date\"));\r\n\r\n                 if (this.params.switchOnClick === true && this.params.time === true)\r\n                    setTimeout(this.initHours.bind(this), 200);\r\n\r\n                 if(this.params.switchOnClick === true && this.params.time === false) {\r\n                    setTimeout(this._onOKClick.bind(this), 200);\r\n                 }\r\n\r\n              },\r\n              _onSelectHour: function (e)\r\n              {\r\n                 if (!$(e.target).hasClass('disabled'))\r\n                 {\r\n                    var value = $(e.target).data('hour');\r\n                    var parent = $(e.target).parent();\r\n\r\n                    var h = parent.find('.dtp-select-hour');\r\n                    for (var i = 0; i < h.length; i++)\r\n                    {\r\n                       $(h[i]).attr('fill', 'transparent');\r\n                    }\r\n                    var th = parent.find('.dtp-select-hour-text');\r\n                    for (var i = 0; i < th.length; i++)\r\n                    {\r\n                       $(th[i]).attr('fill', '#000');\r\n                    }\r\n\r\n                    $(parent.find('#h-' + value)).attr('fill', '#CB0036');\r\n                    $(parent.find('#th-' + value)).attr('fill', '#fff');\r\n\r\n                    this.currentDate.hour(parseInt(value));\r\n\r\n                    if (this.params.shortTime === true && this.isPM())\r\n                    {\r\n                       this.currentDate.add(12, 'hours');\r\n                    }\r\n\r\n                    this.showTime(this.currentDate);\r\n\r\n                    this.animateHands();\r\n\r\n                    if (this.params.switchOnClick === true)\r\n                       setTimeout(this.initMinutes.bind(this), 200);\r\n                 }\r\n              },\r\n              _onSelectMinute: function (e)\r\n              {\r\n                 if (!$(e.target).hasClass('disabled'))\r\n                 {\r\n                    var value = $(e.target).data('minute');\r\n                    var parent = $(e.target).parent();\r\n\r\n                    var m = parent.find('.dtp-select-minute');\r\n                    for (var i = 0; i < m.length; i++)\r\n                    {\r\n                       $(m[i]).attr('fill', 'transparent');\r\n                    }\r\n                    var tm = parent.find('.dtp-select-minute-text');\r\n                    for (var i = 0; i < tm.length; i++)\r\n                    {\r\n                       $(tm[i]).attr('fill', '#000');\r\n                    }\r\n\r\n                    $(parent.find('#m-' + value)).attr('fill', '#CB0036');\r\n                    $(parent.find('#tm-' + value)).attr('fill', '#fff');\r\n\r\n                    this.currentDate.minute(parseInt(value));\r\n                    this.showTime(this.currentDate);\r\n\r\n                    this.animateHands();\r\n\r\n                    if (this.params.switchOnClick === true)\r\n                       setTimeout(function ()\r\n                       {\r\n                          this.setElementValue();\r\n                          this.hide();\r\n                       }.bind(this), 200);\r\n                 }\r\n              },\r\n              _onSelectAM: function (e)\r\n              {\r\n                 $('.dtp-actual-meridien').find('a').removeClass('selected');\r\n                 $(e.currentTarget).addClass('selected');\r\n\r\n                 if (this.currentDate.hour() >= 12)\r\n                 {\r\n                    if (this.currentDate.subtract(12, 'hours'))\r\n                       this.showTime(this.currentDate);\r\n                 }\r\n                 this.toggleTime((this.currentView === 1));\r\n              },\r\n              _onSelectPM: function (e)\r\n              {\r\n                 $('.dtp-actual-meridien').find('a').removeClass('selected');\r\n                 $(e.currentTarget).addClass('selected');\r\n\r\n                 if (this.currentDate.hour() < 12)\r\n                 {\r\n                    if (this.currentDate.add(12, 'hours'))\r\n                       this.showTime(this.currentDate);\r\n                 }\r\n                 this.toggleTime((this.currentView === 1));\r\n              },\r\n              _hideCalendar: function() {\r\n                 this.$dtpElement.find('.dtp-picker-calendar').addClass('hidden');\r\n              },\r\n              convertHours: function (h)\r\n              {\r\n                 var _return = h;\r\n\r\n                 if (this.params.shortTime === true)\r\n                 {\r\n                    if ((h < 12) && this.isPM())\r\n                    {\r\n                       _return += 12;\r\n                    }\r\n                 }\r\n\r\n                 return _return;\r\n              },\r\n              setDate: function (date)\r\n              {\r\n                 this.params.currentDate = date;\r\n                 this.initDates();\r\n              },\r\n              setMinDate: function (date)\r\n              {\r\n                 this.params.minDate = date;\r\n                 this.initDates();\r\n              },\r\n              setMaxDate: function (date)\r\n              {\r\n                 this.params.maxDate = date;\r\n                 this.initDates();\r\n              },\r\n              destroy: function ()\r\n              {\r\n                 this._detachEvents();\r\n                 this.$dtpElement.remove();\r\n              },\r\n              show: function ()\r\n              {\r\n                 this.$dtpElement.removeClass('hidden');\r\n                 this._attachEvent($(window), 'keydown', this._onKeydown.bind(this));\r\n                 this._centerBox();\r\n                 this.$element.trigger('open');\r\n                 if (this.params.monthPicker === true)\r\n                 {\r\n                    this._hideCalendar();\r\n                 }\r\n              },\r\n              hide: function ()\r\n              {\r\n                 $(window).off('keydown', null, null, this._onKeydown.bind(this));\r\n                 this.$dtpElement.addClass('hidden');\r\n                 this.$element.trigger('close');\r\n              },\r\n              _centerBox: function ()\r\n              {\r\n                 var h = (this.$dtpElement.height() - this.$dtpElement.find('.dtp-content').height()) / 2;\r\n                 this.$dtpElement.find('.dtp-content').css('marginLeft', -(this.$dtpElement.find('.dtp-content').width() / 2) + 'px');\r\n                 this.$dtpElement.find('.dtp-content').css('top', h + 'px');\r\n              },\r\n              enableDays: function ()\r\n              {\r\n                 var enableDays = this.params.enableDays;\r\n                 if (enableDays) {\r\n                    $(\".dtp-picker-days tbody tr td\").each(function () {\r\n                       if (!(($.inArray($(this).index(), enableDays)) >= 0)) {\r\n                          $(this).find('a').css({\r\n                             \"background\": \"#e3e3e3\",\r\n                             \"cursor\": \"no-drop\",\r\n                             \"opacity\": \"0.5\"\r\n                          }).off(\"click\");\r\n                       }\r\n                    });\r\n                 }\r\n              }\r\n\r\n           };\r\n})(jQuery, moment);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/assets/datapicker/bootstrap-material-datetimepicker.js\n// module id = 454\n// module chunks = 2","/*!\r\n * bootstrap-fileinput v4.3.9\r\n * http://plugins.krajee.com/file-input\r\n *\r\n * Author: Kartik Visweswaran\r\n * Copyright: 2014 - 2017, Kartik Visweswaran, Krajee.com\r\n *\r\n * Licensed under the BSD 3-Clause\r\n * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md\r\n */!function(e){\"use strict\";\"function\"==typeof define&&define.amd?define([\"jquery\"],e):\"object\"==typeof module&&module.exports?module.exports=e(require(\"jquery\")):e(window.jQuery)}(function(e){\"use strict\";e.fn.fileinputLocales={},e.fn.fileinputThemes={};var i,t;i={NAMESPACE:\".fileinput\",MODAL_ID:\"kvFileinputModal\",FRAMES:\".kv-preview-thumb\",SORT_CSS:\"file-sortable\",STYLE_SETTING:'style=\"width:{width};height:{height};\"',OBJECT_PARAMS:'<param name=\"controller\" value=\"true\" />\\n<param name=\"allowFullScreen\" value=\"true\" />\\n<param name=\"allowScriptAccess\" value=\"always\" />\\n<param name=\"autoPlay\" value=\"false\" />\\n<param name=\"autoStart\" value=\"false\" />\\n<param name=\"quality\" value=\"high\" />\\n',DEFAULT_PREVIEW:'<div class=\"file-preview-other\">\\n<span class=\"{previewFileIconClass}\">{previewFileIcon}</span>\\n</div>',objUrl:window.URL||window.webkitURL,compare:function(e,i,t){return void 0!==e&&(t?e===i:e.match(i))},handler:function(e,t,a,r){var n=r?t:t.split(\" \").join(i.NAMESPACE+\" \")+i.NAMESPACE;e.length&&e.off(n).on(n,a)},isIE:function(e){if(\"Microsoft Internet Explorer\"!==navigator.appName)return!1;if(10===e)return new RegExp(\"msie\\\\s\"+e,\"i\").test(navigator.userAgent);var i,t=document.createElement(\"div\");return t.innerHTML=\"<!--[if IE \"+e+\"]> <i></i> <![endif]-->\",i=t.getElementsByTagName(\"i\").length,document.body.appendChild(t),t.parentNode.removeChild(t),i},isEmpty:function(i,t){return void 0===i||null===i||0===i.length||t&&\"\"===e.trim(i)},isArray:function(e){return Array.isArray(e)||\"[object Array]\"===Object.prototype.toString.call(e)},ifSet:function(e,i,t){return t=t||\"\",i&&\"object\"==typeof i&&e in i?i[e]:t},getNum:function(e,i){return i=i||0,\"number\"==typeof e?e:(\"string\"==typeof e&&(e=parseFloat(e)),isNaN(e)?i:e)},hasFileAPISupport:function(){return!(!window.File||!window.FileReader)},hasDragDropSupport:function(){var e=document.createElement(\"div\");return!i.isIE(9)&&(void 0!==e.draggable||void 0!==e.ondragstart&&void 0!==e.ondrop)},hasFileUploadSupport:function(){return i.hasFileAPISupport()&&window.FormData},addCss:function(e,i){e.removeClass(i).addClass(i)},getElement:function(t,a,r){return i.isEmpty(t)||i.isEmpty(t[a])?r:e(t[a])},uniqId:function(){return Math.round((new Date).getTime()+100*Math.random())},htmlEncode:function(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&apos;\")},replaceTags:function(i,t){var a=i;return t?(e.each(t,function(e,i){\"function\"==typeof i&&(i=i()),a=a.split(e).join(i)}),a):a},cleanMemory:function(e){var t=e.is(\"img\")?e.attr(\"src\"):e.find(\"source\").attr(\"src\");i.objUrl.revokeObjectURL(t)},findFileName:function(e){var i=e.lastIndexOf(\"/\");return-1===i&&(i=e.lastIndexOf(\"\\\\\")),e.split(e.substring(i,i+1)).pop()},checkFullScreen:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},toggleFullScreen:function(e){var t=document,a=t.documentElement;a&&e&&!i.checkFullScreen()?a.requestFullscreen?a.requestFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen&&a.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen()},moveArray:function(e,i,t){if(t>=e.length)for(var a=t-e.length;a--+1;)e.push(void 0);return e.splice(t,0,e.splice(i,1)[0]),e},cleanZoomCache:function(e){var i=e.closest(\".kv-zoom-cache-theme\");i.length||(i=e.closest(\".kv-zoom-cache\")),i.remove()}},t=function(t,a){var r=this;r.$element=e(t),r._validate()&&(r.isPreviewable=i.hasFileAPISupport(),r.isIE9=i.isIE(9),r.isIE10=i.isIE(10),r.isPreviewable||r.isIE9?(r._init(a),r._listen()):r.$element.removeClass(\"file-loading\"))},t.prototype={constructor:t,_init:function(t){var a,r=this,n=r.$element;r.options=t,e.each(t,function(e,t){switch(e){case\"minFileCount\":case\"maxFileCount\":case\"maxFileSize\":r[e]=i.getNum(t);break;default:r[e]=t}}),r._initTemplateDefaults(),r.fileInputCleared=!1,r.fileBatchCompleted=!0,r.isPreviewable||(r.showPreview=!1),r.uploadFileAttr=i.isEmpty(n.attr(\"name\"))?\"file_data\":n.attr(\"name\"),r.reader=null,r.formdata={},r.clearStack(),r.uploadCount=0,r.uploadStatus={},r.uploadLog=[],r.uploadAsyncCount=0,r.loadedImages=[],r.totalImagesCount=0,r.ajaxRequests=[],r.isError=!1,r.ajaxAborted=!1,r.cancelling=!1,a=r._getLayoutTemplate(\"progress\"),r.progressTemplate=a.replace(\"{class}\",r.progressClass),r.progressCompleteTemplate=a.replace(\"{class}\",r.progressCompleteClass),r.progressErrorTemplate=a.replace(\"{class}\",r.progressErrorClass),r.dropZoneEnabled=i.hasDragDropSupport()&&r.dropZoneEnabled,r.isDisabled=r.$element.attr(\"disabled\")||r.$element.attr(\"readonly\"),r.isUploadable=i.hasFileUploadSupport()&&!i.isEmpty(r.uploadUrl),r.isClickable=r.browseOnZoneClick&&r.showPreview&&(r.isUploadable&&r.dropZoneEnabled||!i.isEmpty(r.defaultPreviewContent)),r.slug=\"function\"==typeof t.slugCallback?t.slugCallback:r._slugDefault,r.mainTemplate=r.showCaption?r._getLayoutTemplate(\"main1\"):r._getLayoutTemplate(\"main2\"),r.captionTemplate=r._getLayoutTemplate(\"caption\"),r.previewGenericTemplate=r._getPreviewTemplate(\"generic\"),r.resizeImage&&(r.maxImageWidth||r.maxImageHeight)&&(r.imageCanvas=document.createElement(\"canvas\"),r.imageCanvasContext=r.imageCanvas.getContext(\"2d\")),i.isEmpty(r.$element.attr(\"id\"))&&r.$element.attr(\"id\",i.uniqId()),void 0===r.$container?r.$container=r._createContainer():r._refreshContainer(),r.$dropZone=r.$container.find(\".file-drop-zone\"),r.$progress=r.$container.find(\".kv-upload-progress\"),r.$btnUpload=r.$container.find(\".fileinput-upload\"),r.$captionContainer=i.getElement(t,\"elCaptionContainer\",r.$container.find(\".file-caption\")),r.$caption=i.getElement(t,\"elCaptionText\",r.$container.find(\".file-caption-name\")),r.$previewContainer=i.getElement(t,\"elPreviewContainer\",r.$container.find(\".file-preview\")),r.$preview=i.getElement(t,\"elPreviewImage\",r.$container.find(\".file-preview-thumbnails\")),r.$previewStatus=i.getElement(t,\"elPreviewStatus\",r.$container.find(\".file-preview-status\")),r.$errorContainer=i.getElement(t,\"elErrorContainer\",r.$previewContainer.find(\".kv-fileinput-error\")),i.isEmpty(r.msgErrorClass)||i.addCss(r.$errorContainer,r.msgErrorClass),r.$errorContainer.hide(),r.previewInitId=\"preview-\"+i.uniqId(),r._initPreviewCache(),r._initPreview(!0),r._initPreviewActions(),r._setFileDropZoneTitle(),r.$element.removeClass(\"file-loading\"),r.$element.attr(\"disabled\")&&r.disable(),r._initZoom()},_initTemplateDefaults:function(){var t,a,r,n,o,l,s,d,c,p,u,f,m,g,v,h,w,_,b,C,E,y,x,T,S,F,P,I,k,$,A,z,D,U,j=this;t='{preview}\\n<div class=\"kv-upload-progress hide\"></div>\\n<div class=\"input-group {class}\">\\n   {caption}\\n   <div class=\"input-group-btn\">\\n       {remove}\\n       {cancel}\\n       {upload}\\n       {browse}\\n   </div>\\n</div>',a='{preview}\\n<div class=\"kv-upload-progress hide\"></div>\\n{remove}\\n{cancel}\\n{upload}\\n{browse}\\n',r='<div class=\"file-preview {class}\">\\n    {close}    <div class=\"{dropClass}\">\\n    <div class=\"file-preview-thumbnails\">\\n    </div>\\n    <div class=\"clearfix\"></div>    <div class=\"file-preview-status text-center text-success\"></div>\\n    <div class=\"kv-fileinput-error\"></div>\\n    </div>\\n</div>',o='<div class=\"close fileinput-remove\">&times;</div>\\n',n='<i class=\"glyphicon glyphicon-file kv-caption-icon\"></i>',l='<div tabindex=\"500\" class=\"form-control file-caption {class}\">\\n   <div class=\"file-caption-name\"></div>\\n</div>\\n',s='<button type=\"{type}\" tabindex=\"500\" title=\"{title}\" class=\"{css}\" {status}>{icon} {label}</button>',d='<a href=\"{href}\" tabindex=\"500\" title=\"{title}\" class=\"{css}\" {status}>{icon} {label}</a>',c='<div tabindex=\"500\" class=\"{css}\" {status}>{icon} {label}</div>',p='<div id=\"'+i.MODAL_ID+'\" class=\"file-zoom-dialog modal fade\" tabindex=\"-1\" aria-labelledby=\"'+i.MODAL_ID+'Label\"></div>',u='<div class=\"modal-dialog modal-lg\" role=\"document\">\\n  <div class=\"modal-content\">\\n    <div class=\"modal-header\">\\n      <div class=\"kv-zoom-actions pull-right\">{toggleheader}{fullscreen}{borderless}{close}</div>\\n      <h3 class=\"modal-title\">{heading} <small><span class=\"kv-zoom-title\"></span></small></h3>\\n    </div>\\n    <div class=\"modal-body\">\\n      <div class=\"floating-buttons\"></div>\\n      <div class=\"kv-zoom-body file-zoom-content\"></div>\\n{prev} {next}\\n    </div>\\n  </div>\\n</div>\\n',f='<div class=\"progress\">\\n    <div class=\"{class}\" role=\"progressbar\" aria-valuenow=\"{percent}\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width:{percent}%;\">\\n        {percent}%\\n     </div>\\n</div>',m=\" <samp>({sizeText})</samp>\",g='<div class=\"file-thumbnail-footer\">\\n    <div class=\"file-footer-caption\" title=\"{caption}\">{caption}<br>{size}</div>\\n    {progress} {actions}\\n</div>',v='<div class=\"file-upload-indicator\" title=\"{indicatorTitle}\">{indicator}</div>\\n{drag}\\n<div class=\"file-actions\">\\n    <div class=\"file-footer-buttons\">\\n        {upload} {delete} {zoom} {other}    </div>\\n    <div class=\"clearfix\"></div>\\n</div>',h='<button type=\"button\" class=\"kv-file-remove {removeClass}\" title=\"{removeTitle}\" {dataUrl}{dataKey}>{removeIcon}</button>\\n',w='<button type=\"button\" class=\"kv-file-upload {uploadClass}\" title=\"{uploadTitle}\">{uploadIcon}</button>',_='<button type=\"button\" class=\"kv-file-zoom {zoomClass}\" title=\"{zoomTitle}\">{zoomIcon}</button>',b='<span class=\"file-drag-handle {dragClass}\" title=\"{dragTitle}\">{dragIcon}</span>',C='<div class=\"file-preview-frame {frameClass}\" id=\"{previewId}\" data-fileindex=\"{fileindex}\" data-template=\"{template}\"',E=C+'><div class=\"kv-file-content\">\\n',y=C+' title=\"{caption}\"><div class=\"kv-file-content\">\\n',x=\"</div>{footer}\\n</div>\\n\",T=\"{content}\\n\",S='<div class=\"kv-preview-data file-preview-html\" title=\"{caption}\" '+i.STYLE_SETTING+\">{data}</div>\\n\",F='<img src=\"{data}\" class=\"file-preview-image kv-preview-data\" title=\"{caption}\" alt=\"{caption}\" '+i.STYLE_SETTING+\">\\n\",P='<textarea class=\"kv-preview-data file-preview-text\" title=\"{caption}\" readonly '+i.STYLE_SETTING+\">{data}</textarea>\\n\",I='<video class=\"kv-preview-data file-preview-video\" width=\"{width}\" height=\"{height}\" controls>\\n<source src=\"{data}\" type=\"{type}\">\\n'+i.DEFAULT_PREVIEW+\"\\n</video>\\n\",k='<div class=\"file-preview-audio\"><audio class=\"kv-preview-data\" controls>\\n<source src=\"{data}\" type=\"{type}\">\\n'+i.DEFAULT_PREVIEW+\"\\n</audio></div>\\n\",$='<object class=\"kv-preview-data file-object\" type=\"application/x-shockwave-flash\" width=\"{width}\" height=\"{height}\" data=\"{data}\">\\n'+i.OBJECT_PARAMS+\" \"+i.DEFAULT_PREVIEW+\"\\n</object>\\n\",A='<object class=\"kv-preview-data file-object\" data=\"{data}\" type=\"{type}\" width=\"{width}\" height=\"{height}\">\\n<param name=\"movie\" value=\"{caption}\" />\\n'+i.OBJECT_PARAMS+\" \"+i.DEFAULT_PREVIEW+\"\\n</object>\\n\",z='<embed class=\"kv-preview-data\" src=\"{data}\" width=\"{width}\" height=\"{height}\" type=\"application/pdf\">\\n',D='<div class=\"kv-preview-data file-preview-other-frame\">\\n'+i.DEFAULT_PREVIEW+\"\\n</div>\\n\",U='<div class=\"kv-zoom-cache\" style=\"display:none\">{zoomContent}</div>',j.defaults={layoutTemplates:{main1:t,main2:a,preview:r,close:o,fileIcon:n,caption:l,modalMain:p,modal:u,progress:f,size:m,footer:g,actions:v,actionDelete:h,actionUpload:w,actionZoom:_,actionDrag:b,btnDefault:s,btnLink:d,btnBrowse:c,zoomCache:U},previewMarkupTags:{tagBefore1:E,tagBefore2:y,tagAfter:x},previewContentTemplates:{generic:T,html:S,image:F,text:P,video:I,audio:k,flash:$,object:A,pdf:z,other:D},allowedPreviewTypes:[\"image\",\"html\",\"text\",\"video\",\"audio\",\"flash\",\"pdf\",\"object\"],previewTemplates:{},previewSettings:{image:{width:\"auto\",height:\"160px\"},html:{width:\"213px\",height:\"160px\"},text:{width:\"213px\",height:\"160px\"},video:{width:\"213px\",height:\"160px\"},audio:{width:\"213px\",height:\"80px\"},flash:{width:\"213px\",height:\"160px\"},object:{width:\"160px\",height:\"auto\"},pdf:{width:\"160px\",height:\"160px\"},other:{width:\"160px\",height:\"160px\"}},previewZoomSettings:{image:{width:\"auto\",height:\"auto\",\"max-width\":\"100%\",\"max-height\":\"100%\"},html:{width:\"100%\",height:\"100%\",\"min-height\":\"480px\"},text:{width:\"100%\",height:\"100%\",\"min-height\":\"480px\"},video:{width:\"auto\",height:\"100%\",\"max-width\":\"100%\"},audio:{width:\"100%\",height:\"30px\"},flash:{width:\"auto\",height:\"480px\"},object:{width:\"auto\",height:\"100%\",\"min-height\":\"480px\"},pdf:{width:\"100%\",height:\"100%\",\"min-height\":\"480px\"},other:{width:\"auto\",height:\"100%\",\"min-height\":\"480px\"}},fileTypeSettings:{image:function(e,t){return i.compare(e,\"image.*\")||i.compare(t,/\\.(gif|png|jpe?g)$/i)},html:function(e,t){return i.compare(e,\"text/html\")||i.compare(t,/\\.(htm|html)$/i)},text:function(e,t){return i.compare(e,\"text.*\")||i.compare(t,/\\.(xml|javascript)$/i)||i.compare(t,/\\.(txt|md|csv|nfo|ini|json|php|js|css)$/i)},video:function(e,t){return i.compare(e,\"video.*\")&&(i.compare(e,/(ogg|mp4|mp?g|mov|webm|3gp)$/i)||i.compare(t,/\\.(og?|mp4|webm|mp?g|mov|3gp)$/i))},audio:function(e,t){return i.compare(e,\"audio.*\")&&(i.compare(t,/(ogg|mp3|mp?g|wav)$/i)||i.compare(t,/\\.(og?|mp3|mp?g|wav)$/i))},flash:function(e,t){return i.compare(e,\"application/x-shockwave-flash\",!0)||i.compare(t,/\\.(swf)$/i)},pdf:function(e,t){return i.compare(e,\"application/pdf\",!0)||i.compare(t,/\\.(pdf)$/i)},object:function(){return!0},other:function(){return!0}},fileActionSettings:{showRemove:!0,showUpload:!0,showZoom:!0,showDrag:!0,removeIcon:'<i class=\"glyphicon glyphicon-trash text-danger\"></i>',removeClass:\"btn btn-xs btn-default\",removeTitle:\"Remove file\",uploadIcon:'<i class=\"glyphicon glyphicon-upload text-info\"></i>',uploadClass:\"btn btn-xs btn-default\",uploadTitle:\"Upload file\",zoomIcon:'<i class=\"glyphicon glyphicon-zoom-in\"></i>',zoomClass:\"btn btn-xs btn-default\",zoomTitle:\"View Details\",dragIcon:'<i class=\"glyphicon glyphicon-menu-hamburger\"></i>',dragClass:\"text-info\",dragTitle:\"Move / Rearrange\",dragSettings:{},indicatorNew:'<i class=\"glyphicon glyphicon-hand-down text-warning\"></i>',indicatorSuccess:'<i class=\"glyphicon glyphicon-ok-sign text-success\"></i>',indicatorError:'<i class=\"glyphicon glyphicon-exclamation-sign text-danger\"></i>',indicatorLoading:'<i class=\"glyphicon glyphicon-hand-up text-muted\"></i>',indicatorNewTitle:\"Not uploaded yet\",indicatorSuccessTitle:\"Uploaded\",indicatorErrorTitle:\"Upload Error\",indicatorLoadingTitle:\"Uploading ...\"}},e.each(j.defaults,function(i,t){return\"allowedPreviewTypes\"===i?void(void 0===j.allowedPreviewTypes&&(j.allowedPreviewTypes=t)):void(j[i]=e.extend(!0,{},t,j[i]))}),j._initPreviewTemplates()},_initPreviewTemplates:function(){var t,a=this,r=a.defaults,n=a.previewMarkupTags,o=n.tagAfter;e.each(r.previewContentTemplates,function(e,r){i.isEmpty(a.previewTemplates[e])&&(t=n.tagBefore2,\"generic\"!==e&&\"image\"!==e&&\"html\"!==e&&\"text\"!==e||(t=n.tagBefore1),a.previewTemplates[e]=t+r+o)})},_initPreviewCache:function(){var t=this;t.previewCache={data:{},init:function(){var e=t.initialPreview;e.length>0&&!i.isArray(e)&&(e=e.split(t.initialPreviewDelimiter)),t.previewCache.data={content:e,config:t.initialPreviewConfig,tags:t.initialPreviewThumbTags}},fetch:function(){return t.previewCache.data.content.filter(function(e){return null!==e})},count:function(e){return t.previewCache.data&&t.previewCache.data.content?e?t.previewCache.data.content.length:t.previewCache.fetch().length:0},get:function(a,r){var n,o,l,s,d,c,p,u=\"init_\"+a,f=t.previewCache.data,m=f.config[a],g=f.content[a],v=t.previewInitId+\"-\"+u,h=i.ifSet(\"previewAsData\",m,t.initialPreviewAsData),w=function(e,a,r,n,o,l,s,d,c){return d=\" file-preview-initial \"+i.SORT_CSS+(d?\" \"+d:\"\"),t._generatePreviewTemplate(e,a,r,n,o,!1,null,d,l,s,c)};return g?(r=void 0===r?!0:r,l=i.ifSet(\"type\",m,t.initialPreviewFileType||\"generic\"),d=i.ifSet(\"filename\",m,i.ifSet(\"caption\",m)),c=i.ifSet(\"filetype\",m,l),s=t.previewCache.footer(a,r,m&&m.size||null),p=i.ifSet(\"frameClass\",m),n=h?w(l,g,d,c,v,s,u,p):w(\"generic\",g,d,c,v,s,u,p,l).replace(/\\{content}/g,f.content[a]),f.tags.length&&f.tags[a]&&(n=i.replaceTags(n,f.tags[a])),i.isEmpty(m)||i.isEmpty(m.frameAttr)||(o=e(document.createElement(\"div\")).html(n),o.find(\".file-preview-initial\").attr(m.frameAttr),n=o.html(),o.remove()),n):\"\"},add:function(e,a,r,n){var o,l=t.previewCache.data;return i.isArray(e)||(e=e.split(t.initialPreviewDelimiter)),n?(o=l.content.push(e)-1,l.config[o]=a,l.tags[o]=r):(o=e.length-1,l.content=e,l.config=a,l.tags=r),t.previewCache.data=l,o},set:function(e,a,r,n){var o,l,s=t.previewCache.data;if(e&&e.length&&(i.isArray(e)||(e=e.split(t.initialPreviewDelimiter)),l=e.filter(function(e){return null!==e}),l.length)){if(void 0===s.content&&(s.content=[]),void 0===s.config&&(s.config=[]),void 0===s.tags&&(s.tags=[]),n){for(o=0;o<e.length;o++)e[o]&&s.content.push(e[o]);for(o=0;o<a.length;o++)a[o]&&s.config.push(a[o]);for(o=0;o<r.length;o++)r[o]&&s.tags.push(r[o])}else s.content=e,s.config=a,s.tags=r;t.previewCache.data=s}},unset:function(e){var i=t.previewCache.count();if(i){if(1===i)return t.previewCache.data.content=[],t.previewCache.data.config=[],t.previewCache.data.tags=[],t.initialPreview=[],t.initialPreviewConfig=[],void(t.initialPreviewThumbTags=[]);t.previewCache.data.content[e]=null,t.previewCache.data.config[e]=null,t.previewCache.data.tags[e]=null}},out:function(){var e,i,a=\"\",r=t.previewCache.count(!0);if(0===r)return{content:\"\",caption:\"\"};for(i=0;r>i;i++)a+=t.previewCache.get(i);return e=t._getMsgSelected(t.previewCache.count()),{content:a,caption:e}},footer:function(e,a,r){var n=t.previewCache.data;if(!n||!n.config||0===n.config.length||i.isEmpty(n.config[e]))return\"\";a=void 0===a?!0:a;var o=n.config[e],l=i.ifSet(\"caption\",o),s=\"\",d=i.ifSet(\"width\",o,\"auto\"),c=i.ifSet(\"url\",o,!1),p=i.ifSet(\"key\",o,null),u=t.fileActionSettings,f=i.ifSet(\"showDelete\",o,!0),m=i.ifSet(\"showZoom\",o,u.showZoom),g=i.ifSet(\"showDrag\",o,u.showDrag),v=c===!1&&a;return t.initialPreviewShowDelete&&(s=t._renderFileActions(!1,f,m,g,v,c,p,!0)),t._getLayoutTemplate(\"footer\").replace(/\\{progress}/g,t._renderThumbProgress()).replace(/\\{actions}/g,s).replace(/\\{caption}/g,l).replace(/\\{size}/g,t._getSize(r)).replace(/\\{width}/g,d).replace(/\\{indicator}/g,\"\").replace(/\\{indicatorTitle}/g,\"\")}},t.previewCache.init()},_log:function(e){var i=this,t=i.$element.attr(\"id\");t&&(e='\"'+t+'\": '+e),\"undefined\"!=typeof window.console.log?window.console.log(e):window.alert(e)},_validate:function(){var e=this,i=\"file\"===e.$element.attr(\"type\");return i||e._log('The input \"type\" must be set to \"file\" for initializing the \"bootstrap-fileinput\" plugin.'),i},_errorsExist:function(){var i,t=this;return t.$errorContainer.find(\"li\").length?!0:(i=e(document.createElement(\"div\")).html(t.$errorContainer.html()),i.find(\"span.kv-error-close\").remove(),i.find(\"ul\").remove(),!!e.trim(i.text()).length)},_errorHandler:function(e,i){var t=this,a=e.target.error;a.code===a.NOT_FOUND_ERR?t._showError(t.msgFileNotFound.replace(\"{name}\",i)):a.code===a.SECURITY_ERR?t._showError(t.msgFileSecured.replace(\"{name}\",i)):a.code===a.NOT_READABLE_ERR?t._showError(t.msgFileNotReadable.replace(\"{name}\",i)):a.code===a.ABORT_ERR?t._showError(t.msgFilePreviewAborted.replace(\"{name}\",i)):t._showError(t.msgFilePreviewError.replace(\"{name}\",i))},_addError:function(e){var t=this,a=t.$errorContainer;e&&a.length&&(a.html(t.errorCloseButton+e),i.handler(a.find(\".kv-error-close\"),\"click\",function(){a.fadeOut(\"slow\")}))},_resetErrors:function(e){var i=this,t=i.$errorContainer;i.isError=!1,i.$container.removeClass(\"has-error\"),t.html(\"\"),e?t.fadeOut(\"slow\"):t.hide()},_showFolderError:function(e){var t,a=this,r=a.$errorContainer;e&&(t=a.msgFoldersNotAllowed.replace(/\\{n}/g,e),a._addError(t),i.addCss(a.$container,\"has-error\"),r.fadeIn(800),a._raise(\"filefoldererror\",[e,t]))},_showUploadError:function(e,t,a){var r=this,n=r.$errorContainer,o=a||\"fileuploaderror\",l=t&&t.id?'<li data-file-id=\"'+t.id+'\">'+e+\"</li>\":\"<li>\"+e+\"</li>\";return 0===n.find(\"ul\").length?r._addError(\"<ul>\"+l+\"</ul>\"):n.find(\"ul\").append(l),n.fadeIn(800),r._raise(o,[t,e]),r.$container.removeClass(\"file-input-new\"),i.addCss(r.$container,\"has-error\"),!0},_showError:function(e,t,a){var r=this,n=r.$errorContainer,o=a||\"fileerror\";return t=t||{},t.reader=r.reader,r._addError(e),n.fadeIn(800),r._raise(o,[t,e]),r.isUploadable||r._clearFileInput(),r.$container.removeClass(\"file-input-new\"),i.addCss(r.$container,\"has-error\"),r.$btnUpload.attr(\"disabled\",!0),!0},_noFilesError:function(e){var t=this,a=t.minFileCount>1?t.filePlural:t.fileSingle,r=t.msgFilesTooLess.replace(\"{n}\",t.minFileCount).replace(\"{files}\",a),n=t.$errorContainer;t._addError(r),t.isError=!0,t._updateFileDetails(0),n.fadeIn(800),t._raise(\"fileerror\",[e,r]),t._clearFileInput(),i.addCss(t.$container,\"has-error\")},_parseError:function(i,t,a,r){var n=this,o=e.trim(a+\"\"),l=\".\"===o.slice(-1)?\"\":\".\",s=void 0!==t.responseJSON&&void 0!==t.responseJSON.error?t.responseJSON.error:t.responseText;return n.cancelling&&n.msgUploadAborted&&(o=n.msgUploadAborted),n.showAjaxErrorDetails&&s?(s=e.trim(s.replace(/\\n\\s*\\n/g,\"\\n\")),s=s.length>0?\"<pre>\"+s+\"</pre>\":\"\",o+=l+s):o+=l,o===l&&(o=n.msgAjaxError.replace(\"{operation}\",i)),n.cancelling=!1,r?\"<b>\"+r+\": </b>\"+o:o},_parseFileType:function(e){var t,a,r,n,o=this,l=o.allowedPreviewTypes;for(n=0;n<l.length;n++)if(r=l[n],t=o.fileTypeSettings[r],a=t(e.type,e.name)?r:\"\",!i.isEmpty(a))return a;return\"other\"},_getPreviewIcon:function(i){var t,a=this,r=null;return i&&i.indexOf(\".\")>-1&&(t=i.split(\".\").pop(),a.previewFileIconSettings&&a.previewFileIconSettings[t]&&(r=a.previewFileIconSettings[t]),a.previewFileExtSettings&&e.each(a.previewFileExtSettings,function(e,i){return a.previewFileIconSettings[e]&&i(t)?void(r=a.previewFileIconSettings[e]):void 0})),r},_parseFilePreviewIcon:function(e,i){var t=this,a=t._getPreviewIcon(i)||t.previewFileIcon;return e.indexOf(\"{previewFileIcon}\")>-1&&(e=e.replace(/\\{previewFileIconClass}/g,t.previewFileIconClass).replace(/\\{previewFileIcon}/g,a)),e},_raise:function(i,t){var a=this,r=e.Event(i);if(void 0!==t?a.$element.trigger(r,t):a.$element.trigger(r),r.isDefaultPrevented())return!1;if(!r.result)return r.result;switch(i){case\"filebatchuploadcomplete\":case\"filebatchuploadsuccess\":case\"fileuploaded\":case\"fileclear\":case\"filecleared\":case\"filereset\":case\"fileerror\":case\"filefoldererror\":case\"fileuploaderror\":case\"filebatchuploaderror\":case\"filedeleteerror\":case\"filecustomerror\":case\"filesuccessremove\":break;default:a.ajaxAborted=r.result}return!0},_listenFullScreen:function(e){var i,t,a=this,r=a.$modal;r&&r.length&&(i=r&&r.find(\".btn-fullscreen\"),t=r&&r.find(\".btn-borderless\"),i.length&&t.length&&(i.removeClass(\"active\").attr(\"aria-pressed\",\"false\"),t.removeClass(\"active\").attr(\"aria-pressed\",\"false\"),e?i.addClass(\"active\").attr(\"aria-pressed\",\"true\"):t.addClass(\"active\").attr(\"aria-pressed\",\"true\"),r.hasClass(\"file-zoom-fullscreen\")?a._maximizeZoomDialog():e?a._maximizeZoomDialog():t.removeClass(\"active\").attr(\"aria-pressed\",\"false\")))},_listen:function(){var t=this,a=t.$element,r=a.closest(\"form\"),n=t.$container;i.handler(a,\"change\",e.proxy(t._change,t)),t.showBrowse&&i.handler(t.$btnFile,\"click\",e.proxy(t._browse,t)),i.handler(r,\"reset\",e.proxy(t.reset,t)),i.handler(n.find(\".fileinput-remove:not([disabled])\"),\"click\",e.proxy(t.clear,t)),i.handler(n.find(\".fileinput-cancel\"),\"click\",e.proxy(t.cancel,t)),t._initDragDrop(),t.isUploadable||i.handler(r,\"submit\",e.proxy(t._submitForm,t)),i.handler(t.$container.find(\".fileinput-upload\"),\"click\",e.proxy(t._uploadClick,t)),i.handler(e(window),\"resize\",function(){t._listenFullScreen(screen.width===window.innerWidth&&screen.height===window.innerHeight)}),i.handler(e(document),\"webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange\",function(){t._listenFullScreen(i.checkFullScreen())}),t._initClickable()},_initClickable:function(){var t,a=this;a.isClickable&&(t=a.isUploadable?a.$dropZone:a.$preview.find(\".file-default-preview\"),i.addCss(t,\"clickable\"),t.attr(\"tabindex\",-1),i.handler(t,\"click\",function(i){var r=e(i.target);r.parents(\".file-preview-thumbnails\").length&&!r.parents(\".file-default-preview\").length||(a.$element.trigger(\"click\"),t.blur())}))},_initDragDrop:function(){var t=this,a=t.$dropZone;t.isUploadable&&t.dropZoneEnabled&&t.showPreview&&(i.handler(a,\"dragenter dragover\",e.proxy(t._zoneDragEnter,t)),i.handler(a,\"dragleave\",e.proxy(t._zoneDragLeave,t)),i.handler(a,\"drop\",e.proxy(t._zoneDrop,t)),i.handler(e(document),\"dragenter dragover drop\",t._zoneDragDropInit))},_zoneDragDropInit:function(e){e.stopPropagation(),e.preventDefault()},_zoneDragEnter:function(t){var a=this,r=e.inArray(\"Files\",t.originalEvent.dataTransfer.types)>-1;return a._zoneDragDropInit(t),a.isDisabled||!r?(t.originalEvent.dataTransfer.effectAllowed=\"none\",void(t.originalEvent.dataTransfer.dropEffect=\"none\")):void i.addCss(a.$dropZone,\"file-highlighted\")},_zoneDragLeave:function(e){var i=this;i._zoneDragDropInit(e),i.isDisabled||i.$dropZone.removeClass(\"file-highlighted\")},_zoneDrop:function(e){var t=this;e.preventDefault(),t.isDisabled||i.isEmpty(e.originalEvent.dataTransfer.files)||(t._change(e,\"dragdrop\"),t.$dropZone.removeClass(\"file-highlighted\"))},_uploadClick:function(e){var t,a=this,r=a.$container.find(\".fileinput-upload\"),n=!r.hasClass(\"disabled\")&&i.isEmpty(r.attr(\"disabled\"));if(!e||!e.isDefaultPrevented()){if(!a.isUploadable)return void(n&&\"submit\"!==r.attr(\"type\")&&(t=r.closest(\"form\"),t.length&&t.trigger(\"submit\"),e.preventDefault()));e.preventDefault(),n&&a.upload()}},_submitForm:function(){var e=this,i=e.$element,t=i.get(0).files;return t&&e.minFileCount>0&&e._getFileCount(t.length)<e.minFileCount?(e._noFilesError({}),!1):!e._abort({})},_clearPreview:function(){var t=this,a=t.$preview,r=t.showUploadedThumbs?a.find(i.FRAMES+\":not(.file-preview-success)\"):a.find(i.FRAMES);r.each(function(){var t=e(this);t.remove(),i.cleanZoomCache(a.find(\"#zoom-\"+t.attr(\"id\")))}),t.$preview.find(i.FRAMES).length&&t.showPreview||t._resetUpload(),t._validateDefaultPreview()},_initSortable:function(){var t,a=this,r=a.$preview,n=\".\"+i.SORT_CSS;window.KvSortable&&0!==r.find(n).length&&(t={handle:\".drag-handle-init\",dataIdAttr:\"data-preview-id\",draggable:n,onSort:function(t){var r,n,o=t.oldIndex,l=t.newIndex;a.initialPreview=i.moveArray(a.initialPreview,o,l),a.initialPreviewConfig=i.moveArray(a.initialPreviewConfig,o,l),a.previewCache.init();for(var s=0;s<a.initialPreviewConfig.length;s++)null!==a.initialPreviewConfig[s]&&(r=a.initialPreviewConfig[s].key,n=e(\".kv-file-remove[data-key='\"+r+\"']\").closest(i.FRAMES),n.attr(\"data-fileindex\",\"init_\"+s).data(\"fileindex\",\"init_\"+s));a._raise(\"filesorted\",{previewId:e(t.item).attr(\"id\"),oldIndex:o,newIndex:l,stack:a.initialPreviewConfig})}},r.data(\"kvsortable\")&&r.kvsortable(\"destroy\"),e.extend(!0,t,a.fileActionSettings.dragSettings),r.kvsortable(t))},_initPreview:function(e){var t,a=this,r=a.initialCaption||\"\";return a.previewCache.count()?(t=a.previewCache.out(),r=e&&a.initialCaption?a.initialCaption:t.caption,a.$preview.html(t.content),a._setInitThumbAttr(),a._setCaption(r),a._initSortable(),void(i.isEmpty(t.content)||a.$container.removeClass(\"file-input-new\"))):(a._clearPreview(),void(e?a._setCaption(r):a._initCaption()))},_getZoomButton:function(e){var i=this,t=i.previewZoomButtonIcons[e],a=i.previewZoomButtonClasses[e],r=' title=\"'+(i.previewZoomButtonTitles[e]||\"\")+'\" ',n=r+(\"close\"===e?' data-dismiss=\"modal\" aria-hidden=\"true\"':\"\");return\"fullscreen\"!==e&&\"borderless\"!==e&&\"toggleheader\"!==e||(n+=' data-toggle=\"button\" aria-pressed=\"false\" autocomplete=\"off\"'),'<button type=\"button\" class=\"'+a+\" btn-\"+e+'\"'+n+\">\"+t+\"</button>\"},_getModalContent:function(){var e=this;return e._getLayoutTemplate(\"modal\").replace(/\\{heading}/g,e.msgZoomModalHeading).replace(/\\{prev}/g,e._getZoomButton(\"prev\")).replace(/\\{next}/g,e._getZoomButton(\"next\")).replace(/\\{toggleheader}/g,e._getZoomButton(\"toggleheader\")).replace(/\\{fullscreen}/g,e._getZoomButton(\"fullscreen\")).replace(/\\{borderless}/g,e._getZoomButton(\"borderless\")).replace(/\\{close}/g,e._getZoomButton(\"close\"))},_listenModalEvent:function(e){var t=this,a=t.$modal,r=function(e){return{sourceEvent:e,previewId:a.data(\"previewId\"),modal:a}};a.on(e+\".bs.modal\",function(n){var o=a.find(\".btn-fullscreen\"),l=a.find(\".btn-borderless\");t._raise(\"filezoom\"+e,r(n)),\"shown\"===e&&(l.removeClass(\"active\").attr(\"aria-pressed\",\"false\"),o.removeClass(\"active\").attr(\"aria-pressed\",\"false\"),a.hasClass(\"file-zoom-fullscreen\")&&(t._maximizeZoomDialog(),i.checkFullScreen()?o.addClass(\"active\").attr(\"aria-pressed\",\"true\"):l.addClass(\"active\").attr(\"aria-pressed\",\"true\")))})},_initZoom:function(){var t,a=this,r=a._getLayoutTemplate(\"modalMain\"),n=\"#\"+i.MODAL_ID;a.$modal=e(n),a.$modal&&a.$modal.length||(t=e(document.createElement(\"div\")).html(r).insertAfter(a.$container),a.$modal=e(\"#\"+i.MODAL_ID).insertBefore(t),t.remove()),a.$modal.html(a._getModalContent()),a._listenModalEvent(\"show\"),a._listenModalEvent(\"shown\"),a._listenModalEvent(\"hide\"),a._listenModalEvent(\"hidden\"),a._listenModalEvent(\"loaded\")},_initZoomButtons:function(){var t,a,r=this,n=r.$modal.data(\"previewId\")||\"\",o=r.$preview,l=o.find(i.FRAMES).toArray(),s=l.length,d=r.$modal.find(\".btn-prev\"),c=r.$modal.find(\".btn-next\");return l.length<2?(d.hide(),void c.hide()):(d.show(),c.show(),void(s&&(t=e(l[0]),a=e(l[s-1]),d.removeAttr(\"disabled\"),c.removeAttr(\"disabled\"),t.length&&t.attr(\"id\")===n&&d.attr(\"disabled\",!0),a.length&&a.attr(\"id\")===n&&c.attr(\"disabled\",!0))))},_maximizeZoomDialog:function(){var i=this,t=i.$modal,a=t.find(\".modal-header:visible\"),r=t.find(\".modal-footer:visible\"),n=t.find(\".modal-body\"),o=e(window).height(),l=0;t.addClass(\"file-zoom-fullscreen\"),a&&a.length&&(o-=a.outerHeight(!0)),r&&r.length&&(o-=r.outerHeight(!0)),n&&n.length&&(l=n.outerHeight(!0)-n.height(),o-=l),t.find(\".kv-zoom-body\").height(o)},_resizeZoomDialog:function(e){var t=this,a=t.$modal,r=a.find(\".btn-fullscreen\"),n=a.find(\".btn-borderless\");if(a.hasClass(\"file-zoom-fullscreen\"))i.toggleFullScreen(!1),e?r.hasClass(\"active\")||(a.removeClass(\"file-zoom-fullscreen\"),t._resizeZoomDialog(!0),n.hasClass(\"active\")&&n.removeClass(\"active\").attr(\"aria-pressed\",\"false\")):r.hasClass(\"active\")?r.removeClass(\"active\").attr(\"aria-pressed\",\"false\"):(a.removeClass(\"file-zoom-fullscreen\"),t.$modal.find(\".kv-zoom-body\").css(\"height\",t.zoomModalHeight));else{if(!e)return void t._maximizeZoomDialog();i.toggleFullScreen(!0)}a.focus()},_setZoomContent:function(t,a){var r,n,o,l,s,d,c,p,u,f,m=this,g=t.attr(\"id\"),v=m.$modal,h=v.find(\".btn-prev\"),w=v.find(\".btn-next\"),_=v.find(\".btn-fullscreen\"),b=v.find(\".btn-borderless\"),C=v.find(\".btn-toggleheader\"),E=m.$preview.find(\"#zoom-\"+g);n=E.attr(\"data-template\")||\"generic\",r=E.find(\".kv-file-content\"),o=r.length?r.html():\"\",u=t.data(\"caption\")||\"\",f=t.data(\"size\")||\"\",l=u+\" \"+f,v.find(\".kv-zoom-title\").html(l),s=v.find(\".kv-zoom-body\"),v.removeClass(\"kv-single-content\"),a?(p=s.clone().insertAfter(s),s.html(o).hide(),p.fadeOut(\"fast\",function(){s.fadeIn(\"fast\"),p.remove()})):s.html(o),c=m.previewZoomSettings[n],c&&(d=s.find(\".kv-preview-data\"),i.addCss(d,\"file-zoom-detail\"),e.each(c,function(e,i){d.css(e,i),(d.attr(\"width\")&&\"width\"===e||d.attr(\"height\")&&\"height\"===e)&&d.removeAttr(e)})),v.data(\"previewId\",g),i.handler(h,\"click\",function(){m._zoomSlideShow(\"prev\",g)}),i.handler(w,\"click\",function(){m._zoomSlideShow(\"next\",g)}),i.handler(_,\"click\",function(){m._resizeZoomDialog(!0)}),i.handler(b,\"click\",function(){m._resizeZoomDialog(!1)}),i.handler(C,\"click\",function(){var e,i=v.find(\".modal-header\"),t=v.find(\".modal-body .floating-buttons\"),a=i.find(\".kv-zoom-actions\"),r=function(e){var t=m.$modal.find(\".kv-zoom-body\"),a=m.zoomModalHeight;v.hasClass(\"file-zoom-fullscreen\")&&(a=t.outerHeight(!0),e||(a-=i.outerHeight(!0))),t.css(\"height\",e?a+e:a)};i.is(\":visible\")?(e=i.outerHeight(!0),i.slideUp(\"slow\",function(){a.find(\".btn\").appendTo(t),r(e)})):(t.find(\".btn\").appendTo(a),i.slideDown(\"slow\",function(){r()})),v.focus()}),\r\ni.handler(v,\"keydown\",function(e){var i=e.which||e.keyCode;37!==i||h.attr(\"disabled\")||m._zoomSlideShow(\"prev\",g),39!==i||w.attr(\"disabled\")||m._zoomSlideShow(\"next\",g)})},_zoomPreview:function(t){var a,r=this,n=e(\"body\"),o=r.$modal;if(!t.length)throw\"Cannot zoom to detailed preview!\";n.length&&o.appendTo(n),o.html(r._getModalContent()),a=t.closest(i.FRAMES),r._setZoomContent(a),o.modal(\"show\"),r._initZoomButtons()},_zoomSlideShow:function(t,a){var r,n,o,l=this,s=l.$modal.find(\".kv-zoom-actions .btn-\"+t),d=l.$preview.find(i.FRAMES).toArray(),c=d.length;if(!s.attr(\"disabled\")){for(n=0;c>n;n++)if(e(d[n]).attr(\"id\")===a){o=\"prev\"===t?n-1:n+1;break}0>o||o>=c||!d[o]||(r=e(d[o]),r.length&&l._setZoomContent(r,!0),l._initZoomButtons(),l._raise(\"filezoom\"+t,{previewId:a,modal:l.$modal}))}},_initZoomButton:function(){var t=this;t.$preview.find(\".kv-file-zoom\").each(function(){var a=e(this);i.handler(a,\"click\",function(){t._zoomPreview(a)})})},_initPreviewActions:function(){var t=this,a=t.$preview,r=t.deleteExtraData||{},n=i.FRAMES+\" .kv-file-remove\",o=function(){var e=t.isUploadable?t.previewCache.count():t.$element.get(0).files.length;0!==a.find(n).length||e||(t.reset(),t.initialCaption=\"\")};t._initZoomButton(),a.find(n).each(function(){var n=e(this),l=n.data(\"url\")||t.deleteUrl,s=n.data(\"key\");if(!i.isEmpty(l)&&void 0!==s){var d,c,p,u,f=n.closest(i.FRAMES),m=t.previewCache.data,g=f.data(\"fileindex\");g=parseInt(g.replace(\"init_\",\"\")),p=i.isEmpty(m.config)&&i.isEmpty(m.config[g])?null:m.config[g],u=i.isEmpty(p)||i.isEmpty(p.extra)?r:p.extra,\"function\"==typeof u&&(u=u()),c={id:n.attr(\"id\"),key:s,extra:u},d=e.extend(!0,{},{url:l,type:\"POST\",dataType:\"json\",data:e.extend(!0,{},{key:s},u),beforeSend:function(e){t.ajaxAborted=!1,t._raise(\"filepredelete\",[s,e,u]),t.ajaxAborted?e.abort():(i.addCss(f,\"file-uploading\"),i.addCss(n,\"disabled\"))},success:function(e,r,l){var d,p;return i.isEmpty(e)||i.isEmpty(e.error)?(t.previewCache.init(),g=parseInt(f.data(\"fileindex\").replace(\"init_\",\"\")),t.previewCache.unset(g),d=t.previewCache.count(),p=d>0?t._getMsgSelected(d):\"\",t._raise(\"filedeleted\",[s,l,u]),t._setCaption(p),f.removeClass(\"file-uploading\").addClass(\"file-deleted\"),void f.fadeOut(\"slow\",function(){i.cleanZoomCache(a.find(\"#zoom-\"+f.attr(\"id\"))),t._clearObjects(f),f.remove(),o(),d||0!==t.getFileStack().length||(t._setCaption(\"\"),t.reset())})):(c.jqXHR=l,c.response=e,t._showError(e.error,c,\"filedeleteerror\"),f.removeClass(\"file-uploading\"),n.removeClass(\"disabled\"),void o())},error:function(e,i,a){var r=t.ajaxOperations.deleteThumb,n=t._parseError(r,e,a);c.jqXHR=e,c.response={},t._showError(n,c,\"filedeleteerror\"),f.removeClass(\"file-uploading\"),o()}},t.ajaxDeleteSettings),i.handler(n,\"click\",function(){return t._validateMinCount()?void e.ajax(d):!1})}})},_clearObjects:function(i){i.find(\"video audio\").each(function(){this.pause(),e(this).remove()}),i.find(\"img object div\").each(function(){e(this).remove()})},_clearFileInput:function(){var t,a,r,n=this,o=n.$element;n.fileInputCleared=!0,i.isEmpty(o.val())||(n.isIE9||n.isIE10?(t=o.closest(\"form\"),a=e(document.createElement(\"form\")),r=e(document.createElement(\"div\")),o.before(r),t.length?t.after(a):r.after(a),a.append(o).trigger(\"reset\"),r.before(o).remove(),a.remove()):o.val(\"\"))},_resetUpload:function(){var e=this;e.uploadCache={content:[],config:[],tags:[],append:!0},e.uploadCount=0,e.uploadStatus={},e.uploadLog=[],e.uploadAsyncCount=0,e.loadedImages=[],e.totalImagesCount=0,e.$btnUpload.removeAttr(\"disabled\"),e._setProgress(0),i.addCss(e.$progress,\"hide\"),e._resetErrors(!1),e.ajaxAborted=!1,e.ajaxRequests=[],e._resetCanvas(),e.cacheInitialPreview={}},_resetCanvas:function(){var e=this;e.canvas&&e.imageCanvasContext&&e.imageCanvasContext.clearRect(0,0,e.canvas.width,e.canvas.height)},_hasInitialPreview:function(){var e=this;return!e.overwriteInitial&&e.previewCache.count()},_resetPreview:function(){var e,i,t=this;t.previewCache.count()?(e=t.previewCache.out(),t.$preview.html(e.content),t._setInitThumbAttr(),i=t.initialCaption?t.initialCaption:e.caption,t._setCaption(i)):(t._clearPreview(),t._initCaption()),t.showPreview&&(t._initZoom(),t._initSortable())},_clearDefaultPreview:function(){var e=this;e.$preview.find(\".file-default-preview\").remove()},_validateDefaultPreview:function(){var e=this;e.showPreview&&!i.isEmpty(e.defaultPreviewContent)&&(e.$preview.html('<div class=\"file-default-preview\">'+e.defaultPreviewContent+\"</div>\"),e.$container.removeClass(\"file-input-new\"),e._initClickable())},_resetPreviewThumbs:function(e){var i,t=this;return e?(t._clearPreview(),void t.clearStack()):void(t._hasInitialPreview()?(i=t.previewCache.out(),t.$preview.html(i.content),t._setInitThumbAttr(),t._setCaption(i.caption),t._initPreviewActions()):t._clearPreview())},_getLayoutTemplate:function(e){var t=this,a=t.layoutTemplates[e];return i.isEmpty(t.customLayoutTags)?a:i.replaceTags(a,t.customLayoutTags)},_getPreviewTemplate:function(e){var t=this,a=t.previewTemplates[e];return i.isEmpty(t.customPreviewTags)?a:i.replaceTags(a,t.customPreviewTags)},_getOutData:function(e,i,t){var a=this;return e=e||{},i=i||{},t=t||a.filestack.slice(0)||{},{form:a.formdata,files:t,filenames:a.filenames,filescount:a.getFilesCount(),extra:a._getExtraData(),response:i,reader:a.reader,jqXHR:e}},_getMsgSelected:function(e){var i=this,t=1===e?i.fileSingle:i.filePlural;return e>0?i.msgSelected.replace(\"{n}\",e).replace(\"{files}\",t):i.msgNoFilesSelected},_getThumbs:function(e){return e=e||\"\",this.$preview.find(i.FRAMES+\":not(.file-preview-initial)\"+e)},_getExtraData:function(e,i){var t=this,a=t.uploadExtraData;return\"function\"==typeof t.uploadExtraData&&(a=t.uploadExtraData(e,i)),a},_initXhr:function(e,i,t){var a=this;return e.upload&&e.upload.addEventListener(\"progress\",function(e){var r=0,n=e.total,o=e.loaded||e.position;e.lengthComputable&&(r=Math.floor(o/n*100)),i?a._setAsyncUploadStatus(i,r,t):a._setProgress(r)},!1),e},_ajaxSubmit:function(i,t,a,r,n,o){var l,s=this;s._raise(\"filepreajax\",[n,o]),s._uploadExtra(n,o),l=e.extend(!0,{},{xhr:function(){var i=e.ajaxSettings.xhr();return s._initXhr(i,n,s.getFileStack().length)},url:s.uploadUrl,type:\"POST\",dataType:\"json\",data:s.formdata,cache:!1,processData:!1,contentType:!1,beforeSend:i,success:t,complete:a,error:r},s.ajaxSettings),s.ajaxRequests.push(e.ajax(l))},_initUploadSuccess:function(t,a,r){var n,o,l,s,d,c,p,u,f,m=this,g=function(e,i){m[e]instanceof Array||(m[e]=[]),i&&i.length&&(m[e]=m[e].concat(i))};m.showPreview&&\"object\"==typeof t&&!e.isEmptyObject(t)&&void 0!==t.initialPreview&&t.initialPreview.length>0&&(m.hasInitData=!0,c=t.initialPreview||[],p=t.initialPreviewConfig||[],u=t.initialPreviewThumbTags||[],n=!(void 0!==t.append&&!t.append),c.length>0&&!i.isArray(c)&&(c=c.split(m.initialPreviewDelimiter)),m.overwriteInitial=!1,g(\"initialPreview\",c),g(\"initialPreviewConfig\",p),g(\"initialPreviewThumbTags\",u),void 0!==a?r?(f=a.attr(\"data-fileindex\"),m.uploadCache.content[f]=c[0],m.uploadCache.config[f]=p[0]||[],m.uploadCache.tags[f]=u[0]||[],m.uploadCache.append=n):(l=m.previewCache.add(c,p[0],u[0],n),o=m.previewCache.get(l,!1),s=e(document.createElement(\"div\")).html(o).hide().insertAfter(a),d=s.find(\".kv-zoom-cache\"),d&&d.length&&d.insertAfter(a),a.fadeOut(\"slow\",function(){var e=s.find(\".file-preview-frame\");e&&e.length&&e.insertBefore(a).fadeIn(\"slow\").css(\"display:inline-block\"),m._initPreviewActions(),m._clearFileInput(),i.cleanZoomCache(m.$preview.find(\"#zoom-\"+a.attr(\"id\"))),a.remove(),s.remove(),m._initSortable()})):(m.previewCache.set(c,p,u,n),m._initPreview(),m._initPreviewActions()))},_initSuccessThumbs:function(){var t=this;t.showPreview&&t._getThumbs(i.FRAMES+\" .file-preview-success\").each(function(){var a=e(this),r=t.$preview,n=a.find(\".kv-file-remove\");n.removeAttr(\"disabled\"),i.handler(n,\"click\",function(){var e=a.attr(\"id\"),n=t._raise(\"filesuccessremove\",[e,a.data(\"fileindex\")]);i.cleanMemory(a),n!==!1&&a.fadeOut(\"slow\",function(){i.cleanZoomCache(r.find(\"#zoom-\"+e)),a.remove(),r.find(i.FRAMES).length||t.reset()})})})},_checkAsyncComplete:function(){var i,t,a=this;for(t=0;t<a.filestack.length;t++)if(a.filestack[t]&&(i=a.previewInitId+\"-\"+t,-1===e.inArray(i,a.uploadLog)))return!1;return a.uploadAsyncCount===a.uploadLog.length},_uploadExtra:function(i,t){var a=this,r=a._getExtraData(i,t);0!==r.length&&e.each(r,function(e,i){a.formdata.append(e,i)})},_uploadSingle:function(t,a,r){var n,o,l,s,d,c,p,u,f,m,g=this,v=g.getFileStack().length,h=new FormData,w=g.previewInitId+\"-\"+t,_=g.filestack.length>0||!e.isEmptyObject(g.uploadExtraData),b=e(\"#\"+w).find(\".file-thumb-progress\"),C={id:w,index:t};g.formdata=h,g.showPreview&&(o=e(\"#\"+w+\":not(.file-preview-initial)\"),s=o.find(\".kv-file-upload\"),d=o.find(\".kv-file-remove\"),b.removeClass(\"hide\")),0===v||!_||s&&s.hasClass(\"disabled\")||g._abort(C)||(m=function(e,i){g.updateStack(e,void 0),g.uploadLog.push(i),g._checkAsyncComplete()&&(g.fileBatchCompleted=!0)},l=function(){var e,t,a,r,n=g.uploadCache,o=g.cacheInitialPreview;g.fileBatchCompleted&&setTimeout(function(){if(g.showPreview){if(g.previewCache.set(n.content,n.config,n.tags,n.append),r=o&&o.content?o.content.length:0){for(t=0;t<n.content.length;t++)a=t+r,o.content[a]=n.content[t],o.config.length&&(o.config[a]=n.config[t]),o.tags.length&&(o.tags[a]=n.tags[t]);g.initialPreview=o.content,g.initialPreviewConfig=o.config,g.initialPreviewThumbTags=o.tags}else g.initialPreview=n.content,g.initialPreviewConfig=n.config,g.initialPreviewThumbTags=n.tags;g.cacheInitialPreview={},g.hasInitData&&(g._initPreview(),g._initPreviewActions())}g.unlock(),g._clearFileInput(),e=g.$preview.find(\".file-preview-initial\"),g.uploadAsync&&e.length&&(i.addCss(e,i.SORT_CSS),g._initSortable()),g._raise(\"filebatchuploadcomplete\",[g.filestack,g._getExtraData()]),g.uploadCount=0,g.uploadStatus={},g.uploadLog=[],g._setProgress(101)},100)},c=function(a){n=g._getOutData(a),g.fileBatchCompleted=!1,g.showPreview&&(o.hasClass(\"file-preview-success\")||(g._setThumbStatus(o,\"Loading\"),i.addCss(o,\"file-uploading\")),s.attr(\"disabled\",!0),d.attr(\"disabled\",!0)),r||g.lock(),g._raise(\"filepreupload\",[n,w,t]),e.extend(!0,C,n),g._abort(C)&&(a.abort(),g._setProgressCancelled())},p=function(a,l,d){var c=g.showPreview&&o.attr(\"id\")?o.attr(\"id\"):w;n=g._getOutData(d,a),e.extend(!0,C,n),setTimeout(function(){i.isEmpty(a)||i.isEmpty(a.error)?(g.showPreview&&(g._setThumbStatus(o,\"Success\"),s.hide(),g._initUploadSuccess(a,o,r),g._setProgress(101,b)),g._raise(\"fileuploaded\",[n,c,t]),r?m(t,c):g.updateStack(t,void 0)):(g._showUploadError(a.error,C),g._setPreviewError(o,t),r&&m(t,c))},100)},u=function(){setTimeout(function(){g.showPreview&&(s.removeAttr(\"disabled\"),d.removeAttr(\"disabled\"),o.removeClass(\"file-uploading\")),r?l():(g.unlock(!1),g._clearFileInput()),g._initSuccessThumbs()},100)},f=function(i,n,l){var s=g.ajaxOperations.uploadThumb,d=g._parseError(s,i,l,r?a[t].name:null);setTimeout(function(){r&&m(t,w),g.uploadStatus[w]=100,g._setPreviewError(o,t),e.extend(!0,C,g._getOutData(i)),g._setProgress(101,b,g.msgAjaxProgressError.replace(\"{operation}\",s)),g._showUploadError(d,C)},100)},h.append(g.uploadFileAttr,a[t],g.filenames[t]),h.append(\"file_id\",t),g._ajaxSubmit(c,p,u,f,w,t))},_uploadBatch:function(){var t,a,r,n,o,l=this,s=l.filestack,d=s.length,c={},p=l.filestack.length>0||!e.isEmptyObject(l.uploadExtraData);l.formdata=new FormData,0!==d&&p&&!l._abort(c)&&(o=function(){e.each(s,function(e){l.updateStack(e,void 0)}),l._clearFileInput()},t=function(t){l.lock();var a=l._getOutData(t);l.showPreview&&l._getThumbs().each(function(){var t=e(this),a=t.find(\".kv-file-upload\"),r=t.find(\".kv-file-remove\");t.hasClass(\"file-preview-success\")||(l._setThumbStatus(t,\"Loading\"),i.addCss(t,\"file-uploading\")),a.attr(\"disabled\",!0),r.attr(\"disabled\",!0)}),l._raise(\"filebatchpreupload\",[a]),l._abort(a)&&(t.abort(),l._setProgressCancelled())},a=function(t,a,r){var n=l._getOutData(r,t),s=l._getThumbs(\":not(.file-preview-error)\"),d=0,c=i.isEmpty(t)||i.isEmpty(t.errorkeys)?[]:t.errorkeys;i.isEmpty(t)||i.isEmpty(t.error)?(l._raise(\"filebatchuploadsuccess\",[n]),o(),l.showPreview?(s.each(function(){var i=e(this),t=i.find(\".kv-file-upload\");i.find(\".kv-file-upload\").hide(),l._setThumbStatus(i,\"Success\"),i.removeClass(\"file-uploading\"),t.removeAttr(\"disabled\")}),l._initUploadSuccess(t)):l.reset(),l._setProgress(101)):(l.showPreview&&(s.each(function(){var i=e(this),t=i.find(\".kv-file-remove\"),a=i.find(\".kv-file-upload\");return i.removeClass(\"file-uploading\"),a.removeAttr(\"disabled\"),t.removeAttr(\"disabled\"),0===c.length?void l._setPreviewError(i):(-1!==e.inArray(d,c)?l._setPreviewError(i):(i.find(\".kv-file-upload\").hide(),l._setThumbStatus(i,\"Success\"),l.updateStack(d,void 0)),void d++)}),l._initUploadSuccess(t)),l._showUploadError(t.error,n,\"filebatchuploaderror\"))},n=function(){l.unlock(),l._initSuccessThumbs(),l._clearFileInput(),l._raise(\"filebatchuploadcomplete\",[l.filestack,l._getExtraData()])},r=function(i,t,a){var r=l._getOutData(i),n=l.ajaxOperations.uploadBatch,o=l._parseError(n,i,a);l._showUploadError(o,r,\"filebatchuploaderror\"),l.uploadFileCount=d-1,l.showPreview&&(l._getThumbs().each(function(){var i=e(this),t=i.attr(\"data-fileindex\");i.removeClass(\"file-uploading\"),void 0!==l.filestack[t]&&l._setPreviewError(i)}),l._getThumbs().removeClass(\"file-uploading\"),l._getThumbs(\" .kv-file-upload\").removeAttr(\"disabled\"),l._getThumbs(\" .kv-file-delete\").removeAttr(\"disabled\"),l._setProgress(101,l.$progress,l.msgAjaxProgressError.replace(\"{operation}\",n)))},e.each(s,function(e,t){i.isEmpty(s[e])||l.formdata.append(l.uploadFileAttr,t,l.filenames[e])}),l._ajaxSubmit(t,a,n,r))},_uploadExtraOnly:function(){var e,t,a,r,n=this,o={};n.formdata=new FormData,n._abort(o)||(e=function(e){n.lock();var i=n._getOutData(e);n._raise(\"filebatchpreupload\",[i]),n._setProgress(50),o.data=i,o.xhr=e,n._abort(o)&&(e.abort(),n._setProgressCancelled())},t=function(e,t,a){var r=n._getOutData(a,e);i.isEmpty(e)||i.isEmpty(e.error)?(n._raise(\"filebatchuploadsuccess\",[r]),n._clearFileInput(),n._initUploadSuccess(e),n._setProgress(101)):n._showUploadError(e.error,r,\"filebatchuploaderror\")},a=function(){n.unlock(),n._clearFileInput(),n._raise(\"filebatchuploadcomplete\",[n.filestack,n._getExtraData()])},r=function(e,i,t){var a=n._getOutData(e),r=n.ajaxOperations.uploadExtra,l=n._parseError(r,e,t);o.data=a,n._showUploadError(l,a,\"filebatchuploaderror\"),n._setProgress(101,n.$progress,n.msgAjaxProgressError.replace(\"{operation}\",r))},n._ajaxSubmit(e,t,a,r))},_initFileActions:function(){var t=this,a=t.$preview;t.showPreview&&(t._initZoomButton(),a.find(i.FRAMES+\" .kv-file-remove\").each(function(){var r,n,o,l,s=e(this),d=s.closest(i.FRAMES),c=d.attr(\"id\"),p=d.attr(\"data-fileindex\");i.handler(s,\"click\",function(){return l=t._raise(\"filepreremove\",[c,p]),l!==!1&&t._validateMinCount()?(r=d.hasClass(\"file-preview-error\"),i.cleanMemory(d),void d.fadeOut(\"slow\",function(){i.cleanZoomCache(a.find(\"#zoom-\"+c)),t.updateStack(p,void 0),t._clearObjects(d),d.remove(),c&&r&&t.$errorContainer.find('li[data-file-id=\"'+c+'\"]').fadeOut(\"fast\",function(){e(this).remove(),t._errorsExist()||t._resetErrors()}),t._clearFileInput();var l=t.getFileStack(!0),s=t.previewCache.count(),u=l.length,f=t.showPreview&&a.find(i.FRAMES).length;0!==u||0!==s||f?(n=s+u,o=n>1?t._getMsgSelected(n):l[0]?t._getFileNames()[0]:\"\",t._setCaption(o)):t.reset(),t._raise(\"fileremoved\",[c,p])})):!1})}),t.$preview.find(i.FRAMES+\" .kv-file-upload\").each(function(){var a=e(this);i.handler(a,\"click\",function(){var e=a.closest(i.FRAMES),r=e.attr(\"data-fileindex\");e.hasClass(\"file-preview-error\")||t._uploadSingle(r,t.filestack,!1)})}))},_hideFileIcon:function(){this.overwriteInitial&&this.$captionContainer.find(\".kv-caption-icon\").hide()},_showFileIcon:function(){this.$captionContainer.find(\".kv-caption-icon\").show()},_getSize:function(i){var t,a,r,n=this,o=parseFloat(i),l=n.fileSizeGetter;return e.isNumeric(i)&&e.isNumeric(o)?(\"function\"==typeof l?r=l(o):(t=Math.floor(Math.log(o)/Math.log(1024)),a=[\"B\",\"KB\",\"MB\",\"GB\",\"TB\",\"PB\",\"EB\",\"ZB\",\"YB\"],r=1*(o/Math.pow(1024,t)).toFixed(2)+\" \"+a[t]),n._getLayoutTemplate(\"size\").replace(\"{sizeText}\",r)):\"\"},_generatePreviewTemplate:function(e,t,a,r,n,o,l,s,d,c,p){var u,f=this,m=f.slug(a),g=\"\",v=f.previewSettings[e]||f.defaults.previewSettings[e],h=v&&v.width?v.width:\"\",w=v&&v.height?v.height:\"\",_=d||f._renderFileFooter(m,l,i.isEmpty(h)?\"auto\":h,o),b=f._getPreviewIcon(a),C=b&&f.preferIconicPreview,E=b&&f.preferIconicZoomPreview,y=function(t,o,l,d){var u=l?\"zoom-\"+n:n,g=f._getPreviewTemplate(t),v=(s||\"\")+\" \"+d;return f.frameClass&&(v=f.frameClass+\" \"+v),l&&(v=v.replace(\" \"+i.SORT_CSS,\"\")),g=f._parseFilePreviewIcon(g,a),\"text\"===t&&(o=i.htmlEncode(o)),g.replace(/\\{previewId}/g,u).replace(/\\{caption}/g,m).replace(/\\{frameClass}/g,v).replace(/\\{type}/g,r).replace(/\\{fileindex}/g,c).replace(/\\{width}/g,h).replace(/\\{height}/g,w).replace(/\\{footer}/g,_).replace(/\\{data}/g,o).replace(/\\{template}/g,p||e)};return c=c||n.slice(n.lastIndexOf(\"-\")+1),f.fileActionSettings.showZoom&&(g=y(E?\"other\":e,t,!0,\"kv-zoom-thumb\")),g=\"\\n\"+f._getLayoutTemplate(\"zoomCache\").replace(\"{zoomContent}\",g),u=y(C?\"other\":e,t,!1,\"kv-preview-thumb\"),u+g},_previewDefault:function(t,a,r){var n=this,o=n.$preview;if(n.showPreview){var l,s=t?t.name:\"\",d=t?t.type:\"\",c=t.size,p=n.slug(s),u=r===!0&&!n.isUploadable,f=i.objUrl.createObjectURL(t);n._clearDefaultPreview(),l=n._generatePreviewTemplate(\"other\",f,s,d,a,u,c),o.append(\"\\n\"+l),n._setThumbAttr(a,p,c),r===!0&&n.isUploadable&&n._setThumbStatus(e(\"#\"+a),\"Error\")}},_previewFile:function(e,i,t,a,r){if(this.showPreview){var n,o=this,l=o._parseFileType(i),s=i?i.name:\"\",d=o.slug(s),c=o.allowedPreviewTypes,p=o.allowedPreviewMimeTypes,u=o.$preview,f=c&&c.indexOf(l)>=0,m=i.size,g=\"text\"===l||\"html\"===l||\"image\"===l?t.target.result:r,v=p&&-1!==p.indexOf(i.type);\"html\"===l&&o.purifyHtml&&window.DOMPurify&&(g=window.DOMPurify.sanitize(g)),f||v?(n=o._generatePreviewTemplate(l,g,s,i.type,a,!1,m),o._clearDefaultPreview(),u.append(\"\\n\"+n),o._validateImage(a,d,i.type)):o._previewDefault(i,a),o._setThumbAttr(a,d,m),o._initSortable()}},_setThumbAttr:function(i,t,a){var r=this,n=e(\"#\"+i);n.length&&(a=a&&a>0?r._getSize(a):\"\",n.data({caption:t,size:a}))},_setInitThumbAttr:function(){var e,t,a,r,n=this,o=n.previewCache.data,l=n.previewCache.count(!0);if(0!==l)for(var s=0;l>s;s++)e=o.config[s],r=n.previewInitId+\"-init_\"+s,t=i.ifSet(\"caption\",e,i.ifSet(\"filename\",e)),a=i.ifSet(\"size\",e),n._setThumbAttr(r,t,a)},_slugDefault:function(e){return i.isEmpty(e)?\"\":String(e).replace(/[\\-\\[\\]\\/\\{}:;#%=\\(\\)\\*\\+\\?\\\\\\^\\$\\|<>&\"']/g,\"_\")},_readFiles:function(t){this.reader=new FileReader;var a,r=this,n=r.$element,o=r.$preview,l=r.reader,s=r.$previewContainer,d=r.$previewStatus,c=r.msgLoading,p=r.msgProgress,u=r.previewInitId,f=t.length,m=r.fileTypeSettings,g=r.filestack.length,v=r.allowedFileTypes,h=v?v.length:0,w=r.allowedFileExtensions,_=i.isEmpty(w)?\"\":w.join(\", \"),b=r.maxFilePreviewSize&&parseFloat(r.maxFilePreviewSize),C=o.length&&(!b||isNaN(b)),E=function(i,n,o,l){var s=e.extend(!0,{},r._getOutData({},{},t),{id:o,index:l}),d={id:o,index:l,file:n,files:t};return r._previewDefault(n,o,!0),r.isUploadable&&(r.addToStack(void 0),setTimeout(function(){a(l+1)},100)),r._initFileActions(),r.removeFromPreviewOnError&&e(\"#\"+o).remove(),r.isUploadable?r._showUploadError(i,s):r._showError(i,d)};r.loadedImages=[],r.totalImagesCount=0,e.each(t,function(e,i){var t=r.fileTypeSettings.image;t&&t(i.type)&&r.totalImagesCount++}),a=function(e){if(i.isEmpty(n.attr(\"multiple\"))&&(f=1),e>=f)return r.isUploadable&&r.filestack.length>0?r._raise(\"filebatchselected\",[r.getFileStack()]):r._raise(\"filebatchselected\",[t]),s.removeClass(\"file-thumb-loading\"),void d.html(\"\");var y,x,T,S,F,P,I,k,$,A=g+e,z=u+\"-\"+A,D=t[e],U=D.name?r.slug(D.name):\"\",j=(D.size||0)/1e3,R=\"\",L=i.objUrl.createObjectURL(D),M=0,O=\"\";if(h>0)for(S=0;h>S;S++)k=v[S],$=r.msgFileTypes[k]||k,O+=0===S?$:\", \"+$;if(U===!1)return void a(e+1);if(0===U.length)return F=r.msgInvalidFileName.replace(\"{name}\",i.htmlEncode(D.name)),void(r.isError=E(F,D,z,e));if(i.isEmpty(w)||(R=new RegExp(\"\\\\.(\"+w.join(\"|\")+\")$\",\"i\")),T=j.toFixed(2),r.maxFileSize>0&&j>r.maxFileSize)return F=r.msgSizeTooLarge.replace(\"{name}\",U).replace(\"{size}\",T).replace(\"{maxSize}\",r.maxFileSize),void(r.isError=E(F,D,z,e));if(null!==r.minFileSize&&j<=i.getNum(r.minFileSize))return F=r.msgSizeTooSmall.replace(\"{name}\",U).replace(\"{size}\",T).replace(\"{minSize}\",r.minFileSize),void(r.isError=E(F,D,z,e));if(!i.isEmpty(v)&&i.isArray(v)){for(S=0;S<v.length;S+=1)P=v[S],M+=m[P]?1:0;if(0===M)return F=r.msgInvalidFileType.replace(\"{name}\",U).replace(\"{types}\",O),void(r.isError=E(F,D,z,e))}return 0!==M||i.isEmpty(w)||!i.isArray(w)||i.isEmpty(R)||(I=i.compare(U,R),M+=i.isEmpty(I)?0:I.length,0!==M)?r.showPreview?!C&&j>b?(r.addToStack(D),s.addClass(\"file-thumb-loading\"),r._previewDefault(D,z),r._initFileActions(),r._updateFileDetails(f),void a(e+1)):(o.length&&void 0!==FileReader?(d.html(c.replace(\"{index}\",e+1).replace(\"{files}\",f)),s.addClass(\"file-thumb-loading\"),l.onerror=function(e){r._errorHandler(e,U)},l.onload=function(i){r._previewFile(e,D,i,z,L),r._initFileActions()},l.onloadend=function(){F=p.replace(\"{index}\",e+1).replace(\"{files}\",f).replace(\"{percent}\",50).replace(\"{name}\",U),setTimeout(function(){d.html(F),r._updateFileDetails(f),a(e+1)},100),r._raise(\"fileloaded\",[D,z,e,l])},l.onprogress=function(i){if(i.lengthComputable){var t=i.loaded/i.total*100,a=Math.ceil(t);F=p.replace(\"{index}\",e+1).replace(\"{files}\",f).replace(\"{percent}\",a).replace(\"{name}\",U),setTimeout(function(){d.html(F)},100)}},y=m.text,x=m.image,y(D.type,U)?l.readAsText(D,r.textEncoding):x(D.type,U)?l.readAsDataURL(D):l.readAsArrayBuffer(D)):(r._previewDefault(D,z),setTimeout(function(){a(e+1),r._updateFileDetails(f)},100),r._raise(\"fileloaded\",[D,z,e,l])),void r.addToStack(D)):(r.addToStack(D),setTimeout(function(){a(e+1)},100),void r._raise(\"fileloaded\",[D,z,e,l])):(F=r.msgInvalidFileExtension.replace(\"{name}\",U).replace(\"{extensions}\",_),void(r.isError=E(F,D,z,e)))},a(0),r._updateFileDetails(f,!1)},_updateFileDetails:function(e){var t=this,a=t.$element,r=t.getFileStack(),n=i.isIE(9)&&i.findFileName(a.val())||a[0].files[0]&&a[0].files[0].name||r.length&&r[0].name||\"\",o=t.slug(n),l=t.isUploadable?r.length:e,s=t.previewCache.count()+l,d=l>1?t._getMsgSelected(s):o;t.isError?(t.$previewContainer.removeClass(\"file-thumb-loading\"),t.$previewStatus.html(\"\"),t.$captionContainer.find(\".kv-caption-icon\").hide()):t._showFileIcon(),t._setCaption(d,t.isError),t.$container.removeClass(\"file-input-new file-input-ajax-new\"),1===arguments.length&&t._raise(\"fileselect\",[e,o]),t.previewCache.count()&&t._initPreviewActions()},_setThumbStatus:function(e,i){var t=this;if(t.showPreview){var a=\"indicator\"+i,r=a+\"Title\",n=\"file-preview-\"+i.toLowerCase(),o=e.find(\".file-upload-indicator\"),l=t.fileActionSettings;e.removeClass(\"file-preview-success file-preview-error file-preview-loading\"),\"Error\"===i&&e.find(\".kv-file-upload\").attr(\"disabled\",!0),\"Success\"===i&&(e.find(\".file-drag-handle\").remove(),o.css(\"margin-left\",0)),o.html(l[a]),o.attr(\"title\",l[r]),e.addClass(n)}},_setProgressCancelled:function(){var e=this;e._setProgress(101,e.$progress,e.msgCancelled)},_setProgress:function(e,t,a){var r=this,n=Math.min(e,100),o=100>n?r.progressTemplate:a?r.progressErrorTemplate:100>=e?r.progressTemplate:r.progressCompleteTemplate,l=r.progressUploadThreshold;if(t=t||r.$progress,!i.isEmpty(o)){if(l&&n>l&&100>=e){var s=o.replace(\"{percent}\",l).replace(\"{percent}\",l).replace(\"{percent}%\",r.msgUploadThreshold);t.html(s)}else t.html(o.replace(/\\{percent}/g,n));a&&t.find('[role=\"progressbar\"]').html(a)}},_setFileDropZoneTitle:function(){var e,t=this,a=t.$container.find(\".file-drop-zone\"),r=t.dropZoneTitle;t.isClickable&&(e=i.isEmpty(t.$element.attr(\"multiple\"))?t.fileSingle:t.filePlural,r+=t.dropZoneClickTitle.replace(\"{files}\",e)),a.find(\".\"+t.dropZoneTitleClass).remove(),t.isUploadable&&t.showPreview&&0!==a.length&&!(t.getFileStack().length>0)&&t.dropZoneEnabled&&(0===a.find(i.FRAMES).length&&i.isEmpty(t.defaultPreviewContent)&&a.prepend('<div class=\"'+t.dropZoneTitleClass+'\">'+r+\"</div>\"),t.$container.removeClass(\"file-input-new\"),i.addCss(t.$container,\"file-input-ajax-new\"))},_setAsyncUploadStatus:function(i,t,a){var r=this,n=0;r._setProgress(t,e(\"#\"+i).find(\".file-thumb-progress\")),r.uploadStatus[i]=t,e.each(r.uploadStatus,function(e,i){n+=i}),r._setProgress(Math.floor(n/a))},_validateMinCount:function(){var e=this,i=e.isUploadable?e.getFileStack().length:e.$element.get(0).files.length;return e.validateInitialCount&&e.minFileCount>0&&e._getFileCount(i-1)<e.minFileCount?(e._noFilesError({}),!1):!0},_getFileCount:function(e){var i=this,t=0;return i.validateInitialCount&&!i.overwriteInitial&&(t=i.previewCache.count(),e+=t),e},_getFileName:function(e){return e&&e.name?this.slug(e.name):void 0},_getFileNames:function(e){var i=this;return i.filenames.filter(function(i){return e?void 0!==i:void 0!==i&&null!==i})},_setPreviewError:function(e,i,t){var a=this;void 0!==i&&a.updateStack(i,t),a.removeFromPreviewOnError?e.remove():a._setThumbStatus(e,\"Error\")},_checkDimensions:function(e,t,a,r,n,o,l){var s,d,c,p,u=this,f=\"Small\"===t?\"min\":\"max\",m=u[f+\"Image\"+o];!i.isEmpty(m)&&a.length&&(c=a[0],d=\"Width\"===o?c.naturalWidth||c.width:c.naturalHeight||c.height,p=\"Small\"===t?d>=m:m>=d,p||(s=u[\"msgImage\"+o+t].replace(\"{name}\",n).replace(\"{size}\",m),u._showUploadError(s,l),u._setPreviewError(r,e,null)))},_validateImage:function(e,t,a){var r,n,o,l=this,s=l.$preview,d=s.find(\"#\"+e),c=d.attr(\"data-fileindex\"),p=d.find(\"img\");t=t||\"Untitled\",p.length&&i.handler(p,\"load\",function(){n=d.width(),o=s.width(),n>o&&(p.css(\"width\",\"100%\"),d.css(\"width\",\"97%\")),r={ind:c,id:e},l._checkDimensions(c,\"Small\",p,d,t,\"Width\",r),l._checkDimensions(c,\"Small\",p,d,t,\"Height\",r),l.resizeImage||(l._checkDimensions(c,\"Large\",p,d,t,\"Width\",r),l._checkDimensions(c,\"Large\",p,d,t,\"Height\",r)),l._raise(\"fileimageloaded\",[e]),l.loadedImages.push({ind:c,img:p,thumb:d,pid:e,typ:a}),l._validateAllImages()})},_validateAllImages:function(){var e,i=this,t={val:0},a=i.loadedImages.length;if(a===i.totalImagesCount&&(i._raise(\"fileimagesloaded\"),i.resizeImage))for(e=0;e<i.loadedImages.length;e++)i._getResizedImage(i.loadedImages[e],t,a)},_getResizedImage:function(i,t,a){var r,n,o,l,s=this,d=e(i.img)[0],c=d.naturalWidth,p=d.naturalHeight,u=1,f=s.maxImageWidth||c,m=s.maxImageHeight||p,g=!(!c||!p),v=s.imageCanvas,h=s.imageCanvasContext,w=i.typ,_=i.pid,b=i.ind,C=i.thumb;if(o=function(e,i,t){s.isUploadable?s._showUploadError(e,i,t):s._showError(e,i,t),s._setPreviewError(C,b)},(!s.filestack[b]||!g||f>=c&&m>=p)&&(g&&s.filestack[b]&&s._raise(\"fileimageresized\",[_,b]),t.val++,t.val===a&&s._raise(\"fileimagesresized\"),!g))return void o(s.msgImageResizeError,{id:_,index:b},\"fileimageresizeerror\");w=w||s.resizeDefaultImageType,r=c>f,n=p>m,u=\"width\"===s.resizePreference?r?f/c:n?m/p:1:n?m/p:r?f/c:1,s._resetCanvas(),c*=u,p*=u,v.width=c,v.height=p;try{h.drawImage(d,0,0,c,p),v.toBlob(function(e){s.filestack[b]=e,s._raise(\"fileimageresized\",[_,b]),t.val++,t.val===a&&s._raise(\"fileimagesresized\",[void 0,void 0]),e instanceof Blob||o(s.msgImageResizeError,{id:_,index:b},\"fileimageresizeerror\")},w,s.resizeQuality)}catch(E){t.val++,t.val===a&&s._raise(\"fileimagesresized\",[void 0,void 0]),l=s.msgImageResizeException.replace(\"{errors}\",E.message),o(l,{id:_,index:b},\"fileimageresizeexception\")}},_initBrowse:function(e){var i=this;i.showBrowse?(i.$btnFile=e.find(\".btn-file\"),i.$btnFile.append(i.$element)):i.$element.hide()},_initCaption:function(){var e=this,t=e.initialCaption||\"\";return e.overwriteInitial||i.isEmpty(t)?(e.$caption.html(\"\"),!1):(e._setCaption(t),!0)},_setCaption:function(t,a){var r,n,o,l,s=this,d=s.getFileStack();if(s.$caption.length){if(a)r=e(\"<div>\"+s.msgValidationError+\"</div>\").text(),o=d.length,l=o?1===o&&d[0]?s._getFileNames()[0]:s._getMsgSelected(o):s._getMsgSelected(s.msgNo),n='<span class=\"'+s.msgValidationErrorClass+'\">'+s.msgValidationErrorIcon+(i.isEmpty(t)?l:t)+\"</span>\";else{if(i.isEmpty(t))return;r=e(\"<div>\"+t+\"</div>\").text(),n=s._getLayoutTemplate(\"fileIcon\")+r}s.$caption.html(n),s.$caption.attr(\"title\",r),s.$captionContainer.find(\".file-caption-ellipsis\").attr(\"title\",r)}},_createContainer:function(){var i=this,t=e(document.createElement(\"div\")).attr({\"class\":\"file-input file-input-new\"}).html(i._renderMain());return i.$element.before(t),i._initBrowse(t),i.theme&&t.addClass(\"theme-\"+i.theme),t},_refreshContainer:function(){var e=this,i=e.$container;i.before(e.$element),i.html(e._renderMain()),e._initBrowse(i)},_renderMain:function(){var e=this,i=e.isUploadable&&e.dropZoneEnabled?\" file-drop-zone\":\"file-drop-disabled\",t=e.showClose?e._getLayoutTemplate(\"close\"):\"\",a=e.showPreview?e._getLayoutTemplate(\"preview\").replace(/\\{class}/g,e.previewClass).replace(/\\{dropClass}/g,i):\"\",r=e.isDisabled?e.captionClass+\" file-caption-disabled\":e.captionClass,n=e.captionTemplate.replace(/\\{class}/g,r+\" kv-fileinput-caption\");return e.mainTemplate.replace(/\\{class}/g,e.mainClass+(!e.showBrowse&&e.showCaption?\" no-browse\":\"\")).replace(/\\{preview}/g,a).replace(/\\{close}/g,t).replace(/\\{caption}/g,n).replace(/\\{upload}/g,e._renderButton(\"upload\")).replace(/\\{remove}/g,e._renderButton(\"remove\")).replace(/\\{cancel}/g,e._renderButton(\"cancel\")).replace(/\\{browse}/g,e._renderButton(\"browse\"))},_renderButton:function(e){var t=this,a=t._getLayoutTemplate(\"btnDefault\"),r=t[e+\"Class\"],n=t[e+\"Title\"],o=t[e+\"Icon\"],l=t[e+\"Label\"],s=t.isDisabled?\" disabled\":\"\",d=\"button\";switch(e){case\"remove\":if(!t.showRemove)return\"\";break;case\"cancel\":if(!t.showCancel)return\"\";r+=\" hide\";break;case\"upload\":if(!t.showUpload)return\"\";t.isUploadable&&!t.isDisabled?a=t._getLayoutTemplate(\"btnLink\").replace(\"{href}\",t.uploadUrl):d=\"submit\";break;case\"browse\":if(!t.showBrowse)return\"\";a=t._getLayoutTemplate(\"btnBrowse\");break;default:return\"\"}return r+=\"browse\"===e?\" btn-file\":\" fileinput-\"+e+\" fileinput-\"+e+\"-button\",i.isEmpty(l)||(l=' <span class=\"'+t.buttonLabelClass+'\">'+l+\"</span>\"),a.replace(\"{type}\",d).replace(\"{css}\",r).replace(\"{title}\",n).replace(\"{status}\",s).replace(\"{icon}\",o).replace(\"{label}\",l)},_renderThumbProgress:function(){return'<div class=\"file-thumb-progress hide\">'+this.progressTemplate.replace(/\\{percent}/g,\"0\")+\"</div>\"},_renderFileFooter:function(e,t,a,r){var n,o=this,l=o.fileActionSettings,s=l.showRemove,d=l.showDrag,c=l.showUpload,p=l.showZoom,u=o._getLayoutTemplate(\"footer\"),f=r?l.indicatorError:l.indicatorNew,m=r?l.indicatorErrorTitle:l.indicatorNewTitle;return t=o._getSize(t),n=o.isUploadable?u.replace(/\\{actions}/g,o._renderFileActions(c,s,p,d,!1,!1,!1)).replace(/\\{caption}/g,e).replace(/\\{size}/g,t).replace(/\\{width}/g,a).replace(/\\{progress}/g,o._renderThumbProgress()).replace(/\\{indicator}/g,f).replace(/\\{indicatorTitle}/g,m):u.replace(/\\{actions}/g,o._renderFileActions(!1,!1,p,d,!1,!1,!1)).replace(/\\{caption}/g,e).replace(/\\{size}/g,t).replace(/\\{width}/g,a).replace(/\\{progress}/g,\"\").replace(/\\{indicator}/g,f).replace(/\\{indicatorTitle}/g,m),n=i.replaceTags(n,o.previewThumbTags)},_renderFileActions:function(e,i,t,a,r,n,o,l){if(!(e||i||t||a))return\"\";var s,d=this,c=n===!1?\"\":' data-url=\"'+n+'\"',p=o===!1?\"\":' data-key=\"'+o+'\"',u=\"\",f=\"\",m=\"\",g=\"\",v=d._getLayoutTemplate(\"actions\"),h=d.fileActionSettings,w=d.otherActionButtons.replace(/\\{dataKey}/g,p),_=r?h.removeClass+\" disabled\":h.removeClass;return i&&(u=d._getLayoutTemplate(\"actionDelete\").replace(/\\{removeClass}/g,_).replace(/\\{removeIcon}/g,h.removeIcon).replace(/\\{removeTitle}/g,h.removeTitle).replace(/\\{dataUrl}/g,c).replace(/\\{dataKey}/g,p)),e&&(f=d._getLayoutTemplate(\"actionUpload\").replace(/\\{uploadClass}/g,h.uploadClass).replace(/\\{uploadIcon}/g,h.uploadIcon).replace(/\\{uploadTitle}/g,h.uploadTitle)),t&&(m=d._getLayoutTemplate(\"actionZoom\").replace(/\\{zoomClass}/g,h.zoomClass).replace(/\\{zoomIcon}/g,h.zoomIcon).replace(/\\{zoomTitle}/g,h.zoomTitle)),a&&l&&(s=\"drag-handle-init \"+h.dragClass,\r\ng=d._getLayoutTemplate(\"actionDrag\").replace(/\\{dragClass}/g,s).replace(/\\{dragTitle}/g,h.dragTitle).replace(/\\{dragIcon}/g,h.dragIcon)),v.replace(/\\{delete}/g,u).replace(/\\{upload}/g,f).replace(/\\{zoom}/g,m).replace(/\\{drag}/g,g).replace(/\\{other}/g,w)},_browse:function(e){var i=this;i._raise(\"filebrowse\"),e&&e.isDefaultPrevented()||(i.isError&&!i.isUploadable&&i.clear(),i.$captionContainer.focus())},_change:function(t){var a=this,r=a.$element;if(!a.isUploadable&&i.isEmpty(r.val())&&a.fileInputCleared)return void(a.fileInputCleared=!1);a.fileInputCleared=!1;var n,o,l,s,d,c,p=arguments.length>1,u=a.isUploadable,f=0,m=p?t.originalEvent.dataTransfer.files:r.get(0).files,g=a.filestack.length,v=i.isEmpty(r.attr(\"multiple\")),h=v&&g>0,w=0,_=function(i,t,r,n){var o=e.extend(!0,{},a._getOutData({},{},m),{id:r,index:n}),l={id:r,index:n,file:t,files:m};return a.isUploadable?a._showUploadError(i,o):a._showError(i,l)};if(a.reader=null,a._resetUpload(),a._hideFileIcon(),a.isUploadable&&a.$container.find(\".file-drop-zone .\"+a.dropZoneTitleClass).remove(),p)for(n=[];m[f];)s=m[f],s.type||s.size%4096!==0?n.push(s):w++,f++;else n=void 0===t.target.files?t.target&&t.target.value?[{name:t.target.value.replace(/^.+\\\\/,\"\")}]:[]:t.target.files;if(i.isEmpty(n)||0===n.length)return u||a.clear(),a._showFolderError(w),void a._raise(\"fileselectnone\");if(a._resetErrors(),c=n.length,l=a._getFileCount(a.isUploadable?a.getFileStack().length+c:c),a.maxFileCount>0&&l>a.maxFileCount){if(!a.autoReplace||c>a.maxFileCount)return d=a.autoReplace&&c>a.maxFileCount?c:l,o=a.msgFilesTooMany.replace(\"{m}\",a.maxFileCount).replace(\"{n}\",d),a.isError=_(o,null,null,null),a.$captionContainer.find(\".kv-caption-icon\").hide(),a._setCaption(\"\",!0),void a.$container.removeClass(\"file-input-new file-input-ajax-new\");l>a.maxFileCount&&a._resetPreviewThumbs(u)}else!u||h?(a._resetPreviewThumbs(!1),h&&a.clearStack()):!u||0!==g||a.previewCache.count()&&!a.overwriteInitial||a._resetPreviewThumbs(!0);a.isPreviewable?a._readFiles(n):a._updateFileDetails(1),a._showFolderError(w)},_abort:function(i){var t,a=this;return a.ajaxAborted&&\"object\"==typeof a.ajaxAborted&&void 0!==a.ajaxAborted.message?(t=e.extend(!0,{},a._getOutData(),i),t.abortData=a.ajaxAborted.data||{},t.abortMessage=a.ajaxAborted.message,a.cancel(),a._setProgress(101,a.$progress,a.msgCancelled),a._showUploadError(a.ajaxAborted.message,t,\"filecustomerror\"),!0):!1},_resetFileStack:function(){var t=this,a=0,r=[],n=[];t._getThumbs().each(function(){var o=e(this),l=o.attr(\"data-fileindex\"),s=t.filestack[l];-1!==l&&(void 0!==s?(r[a]=s,n[a]=t._getFileName(s),o.attr({id:t.previewInitId+\"-\"+a,\"data-fileindex\":a}),a++):o.attr({id:\"uploaded-\"+i.uniqId(),\"data-fileindex\":\"-1\"}))}),t.filestack=r,t.filenames=n},clearStack:function(){var e=this;return e.filestack=[],e.filenames=[],e.$element},updateStack:function(e,i){var t=this;return t.filestack[e]=i,t.filenames[e]=t._getFileName(i),t.$element},addToStack:function(e){var i=this;return i.filestack.push(e),i.filenames.push(i._getFileName(e)),i.$element},getFileStack:function(e){var i=this;return i.filestack.filter(function(i){return e?void 0!==i:void 0!==i&&null!==i})},getFilesCount:function(){var e=this,i=e.isUploadable?e.getFileStack().length:e.$element.get(0).files.length;return e._getFileCount(i)},lock:function(){var e=this;return e._resetErrors(),e.disable(),e.showRemove&&i.addCss(e.$container.find(\".fileinput-remove\"),\"hide\"),e.showCancel&&e.$container.find(\".fileinput-cancel\").removeClass(\"hide\"),e._raise(\"filelock\",[e.filestack,e._getExtraData()]),e.$element},unlock:function(e){var t=this;return void 0===e&&(e=!0),t.enable(),t.showCancel&&i.addCss(t.$container.find(\".fileinput-cancel\"),\"hide\"),t.showRemove&&t.$container.find(\".fileinput-remove\").removeClass(\"hide\"),e&&t._resetFileStack(),t._raise(\"fileunlock\",[t.filestack,t._getExtraData()]),t.$element},cancel:function(){var i,t=this,a=t.ajaxRequests,r=a.length;if(r>0)for(i=0;r>i;i+=1)t.cancelling=!0,a[i].abort();return t._setProgressCancelled(),t._getThumbs().each(function(){var i=e(this),a=i.attr(\"data-fileindex\");i.removeClass(\"file-uploading\"),void 0!==t.filestack[a]&&(i.find(\".kv-file-upload\").removeClass(\"disabled\").removeAttr(\"disabled\"),i.find(\".kv-file-remove\").removeClass(\"disabled\").removeAttr(\"disabled\")),t.unlock()}),t.$element},clear:function(){var t,a=this;return a.$btnUpload.removeAttr(\"disabled\"),a._getThumbs().find(\"video,audio,img\").each(function(){i.cleanMemory(e(this))}),a._resetUpload(),a.clearStack(),a._clearFileInput(),a._resetErrors(!0),a._raise(\"fileclear\"),a._hasInitialPreview()?(a._showFileIcon(),a._resetPreview(),a._initPreviewActions(),a.$container.removeClass(\"file-input-new\")):(a._getThumbs().each(function(){a._clearObjects(e(this))}),a.isUploadable&&(a.previewCache.data={}),a.$preview.html(\"\"),t=!a.overwriteInitial&&a.initialCaption.length>0?a.initialCaption:\"\",a.$caption.html(t),a.$caption.attr(\"title\",\"\"),i.addCss(a.$container,\"file-input-new\"),a._validateDefaultPreview()),0===a.$container.find(i.FRAMES).length&&(a._initCaption()||a.$captionContainer.find(\".kv-caption-icon\").hide()),a._hideFileIcon(),a._raise(\"filecleared\"),a.$captionContainer.focus(),a._setFileDropZoneTitle(),a.$element},reset:function(){var e=this;return e._resetPreview(),e.$container.find(\".fileinput-filename\").text(\"\"),e._raise(\"filereset\"),i.addCss(e.$container,\"file-input-new\"),(e.$preview.find(i.FRAMES).length||e.isUploadable&&e.dropZoneEnabled)&&e.$container.removeClass(\"file-input-new\"),e._setFileDropZoneTitle(),e.clearStack(),e.formdata={},e.$element},disable:function(){var e=this;return e.isDisabled=!0,e._raise(\"filedisabled\"),e.$element.attr(\"disabled\",\"disabled\"),e.$container.find(\".kv-fileinput-caption\").addClass(\"file-caption-disabled\"),e.$container.find(\".btn-file, .fileinput-remove, .fileinput-upload, .file-preview-frame button\").attr(\"disabled\",!0),e._initDragDrop(),e.$element},enable:function(){var e=this;return e.isDisabled=!1,e._raise(\"fileenabled\"),e.$element.removeAttr(\"disabled\"),e.$container.find(\".kv-fileinput-caption\").removeClass(\"file-caption-disabled\"),e.$container.find(\".btn-file, .fileinput-remove, .fileinput-upload, .file-preview-frame button\").removeAttr(\"disabled\"),e._initDragDrop(),e.$element},upload:function(){var t,a,r,n=this,o=n.getFileStack().length,l={},s=!e.isEmptyObject(n._getExtraData());if(n.isUploadable&&!n.isDisabled){if(n.minFileCount>0&&n._getFileCount(o)<n.minFileCount)return void n._noFilesError(l);if(0===o&&!s)return n._resetUpload(),void n._showUploadError(n.msgUploadEmpty);if(n._resetUpload(),n.$progress.removeClass(\"hide\"),n.uploadCount=0,n.uploadStatus={},n.uploadLog=[],n.lock(),n._setProgress(2),0===o&&s)return void n._uploadExtraOnly();if(r=n.filestack.length,n.hasInitData=!1,!n.uploadAsync)return n._uploadBatch(),n.$element;for(a=n._getOutData(),n._raise(\"filebatchpreupload\",[a]),n.fileBatchCompleted=!1,n.uploadCache={content:[],config:[],tags:[],append:!0},n.uploadAsyncCount=n.getFileStack().length,t=0;r>t;t++)n.uploadCache.content[t]=null,n.uploadCache.config[t]=null,n.uploadCache.tags[t]=null;for(n.$preview.find(\".file-preview-initial\").removeClass(i.SORT_CSS),n._initSortable(),n.cacheInitialPreview={content:n.initialPreview,config:n.initialPreviewConfig,tags:n.initialPreviewThumbTags},t=0;r>t;t++)void 0!==n.filestack[t]&&n._uploadSingle(t,n.filestack,!0)}},destroy:function(){var e=this,t=e.$container;return t.find(\".file-drop-zone\").off(),e.$element.insertBefore(t).off(i.NAMESPACE).removeData(),t.off().remove(),e.$element},refresh:function(i){var t=this,a=t.$element;return i=i?e.extend(!0,{},t.options,i):t.options,t.destroy(),a.fileinput(i),a.val()&&a.trigger(\"change.fileinput\"),a}},e.fn.fileinput=function(a){if(i.hasFileAPISupport()||i.isIE(9)){var r=Array.apply(null,arguments),n=[];switch(r.shift(),this.each(function(){var o,l=e(this),s=l.data(\"fileinput\"),d=\"object\"==typeof a&&a,c=d.theme||l.data(\"theme\"),p={},u={},f=d.language||l.data(\"language\")||e.fn.fileinput.defaults.language||\"en\";s||(c&&(u=e.fn.fileinputThemes[c]||{}),\"en\"===f||i.isEmpty(e.fn.fileinputLocales[f])||(p=e.fn.fileinputLocales[f]||{}),o=e.extend(!0,{},e.fn.fileinput.defaults,u,e.fn.fileinputLocales.en,p,d,l.data()),s=new t(this,o),l.data(\"fileinput\",s)),\"string\"==typeof a&&n.push(s[a].apply(s,r))}),n.length){case 0:return this;case 1:return n[0];default:return n}}},e.fn.fileinput.defaults={language:\"en\",showCaption:!0,showBrowse:!0,showPreview:!0,showRemove:!0,showUpload:!0,showCancel:!0,showClose:!0,showUploadedThumbs:!0,browseOnZoneClick:!1,autoReplace:!1,previewClass:\"\",captionClass:\"\",frameClass:\"krajee-default\",mainClass:\"file-caption-main\",mainTemplate:null,purifyHtml:!0,fileSizeGetter:null,initialCaption:\"\",initialPreview:[],initialPreviewDelimiter:\"*$$*\",initialPreviewAsData:!1,initialPreviewFileType:\"image\",initialPreviewConfig:[],initialPreviewThumbTags:[],previewThumbTags:{},initialPreviewShowDelete:!0,removeFromPreviewOnError:!1,deleteUrl:\"\",deleteExtraData:{},overwriteInitial:!0,previewZoomButtonIcons:{prev:'<i class=\"glyphicon glyphicon-triangle-left\"></i>',next:'<i class=\"glyphicon glyphicon-triangle-right\"></i>',toggleheader:'<i class=\"glyphicon glyphicon-resize-vertical\"></i>',fullscreen:'<i class=\"glyphicon glyphicon-fullscreen\"></i>',borderless:'<i class=\"glyphicon glyphicon-resize-full\"></i>',close:'<i class=\"glyphicon glyphicon-remove\"></i>'},previewZoomButtonClasses:{prev:\"btn btn-navigate\",next:\"btn btn-navigate\",toggleheader:\"btn btn-default btn-header-toggle\",fullscreen:\"btn btn-default\",borderless:\"btn btn-default\",close:\"btn btn-default\"},preferIconicPreview:!1,preferIconicZoomPreview:!1,allowedPreviewTypes:void 0,allowedPreviewMimeTypes:null,allowedFileTypes:null,allowedFileExtensions:null,defaultPreviewContent:null,customLayoutTags:{},customPreviewTags:{},previewFileIcon:'<i class=\"glyphicon glyphicon-file\"></i>',previewFileIconClass:\"file-other-icon\",previewFileIconSettings:{},previewFileExtSettings:{},buttonLabelClass:\"hidden-xs\",browseIcon:'<i class=\"glyphicon glyphicon-folder-open\"></i>&nbsp;',browseClass:\"btn btn-primary\",removeIcon:'<i class=\"glyphicon glyphicon-trash\"></i>',removeClass:\"btn btn-default\",cancelIcon:'<i class=\"glyphicon glyphicon-ban-circle\"></i>',cancelClass:\"btn btn-default\",uploadIcon:'<i class=\"glyphicon glyphicon-upload\"></i>',uploadClass:\"btn btn-default\",uploadUrl:null,uploadAsync:!0,uploadExtraData:{},zoomModalHeight:480,minImageWidth:null,minImageHeight:null,maxImageWidth:null,maxImageHeight:null,resizeImage:!1,resizePreference:\"width\",resizeQuality:.92,resizeDefaultImageType:\"image/jpeg\",minFileSize:0,maxFileSize:0,maxFilePreviewSize:25600,minFileCount:0,maxFileCount:0,validateInitialCount:!1,msgValidationErrorClass:\"text-danger\",msgValidationErrorIcon:'<i class=\"glyphicon glyphicon-exclamation-sign\"></i> ',msgErrorClass:\"file-error-message\",progressThumbClass:\"progress-bar progress-bar-success progress-bar-striped active\",progressClass:\"progress-bar progress-bar-success progress-bar-striped active\",progressCompleteClass:\"progress-bar progress-bar-success\",progressErrorClass:\"progress-bar progress-bar-danger\",progressUploadThreshold:99,previewFileType:\"image\",elCaptionContainer:null,elCaptionText:null,elPreviewContainer:null,elPreviewImage:null,elPreviewStatus:null,elErrorContainer:null,errorCloseButton:'<span class=\"close kv-error-close\">&times;</span>',slugCallback:null,dropZoneEnabled:!0,dropZoneTitleClass:\"file-drop-zone-title\",fileActionSettings:{},otherActionButtons:\"\",textEncoding:\"UTF-8\",ajaxSettings:{},ajaxDeleteSettings:{},showAjaxErrorDetails:!0},e.fn.fileinputLocales.en={fileSingle:\"file\",filePlural:\"files\",browseLabel:\"Browse &hellip;\",removeLabel:\"Remove\",removeTitle:\"Clear selected files\",cancelLabel:\"Cancel\",cancelTitle:\"Abort ongoing upload\",uploadLabel:\"Upload\",uploadTitle:\"Upload selected files\",msgNo:\"No\",msgNoFilesSelected:\"No files selected\",msgCancelled:\"Cancelled\",msgZoomModalHeading:\"Detailed Preview\",msgSizeTooSmall:'File \"{name}\" (<b>{size} KB</b>) is too small and must be larger than <b>{minSize} KB</b>.',msgSizeTooLarge:'File \"{name}\" (<b>{size} KB</b>) exceeds maximum allowed upload size of <b>{maxSize} KB</b>.',msgFilesTooLess:\"You must select at least <b>{n}</b> {files} to upload.\",msgFilesTooMany:\"Number of files selected for upload <b>({n})</b> exceeds maximum allowed limit of <b>{m}</b>.\",msgFileNotFound:'File \"{name}\" not found!',msgFileSecured:'Security restrictions prevent reading the file \"{name}\".',msgFileNotReadable:'File \"{name}\" is not readable.',msgFilePreviewAborted:'File preview aborted for \"{name}\".',msgFilePreviewError:'An error occurred while reading the file \"{name}\".',msgInvalidFileName:'Invalid or unsupported characters in file name \"{name}\".',msgInvalidFileType:'Invalid type for file \"{name}\". Only \"{types}\" files are supported.',msgInvalidFileExtension:'Invalid extension for file \"{name}\". Only \"{extensions}\" files are supported.',msgFileTypes:{image:\"image\",html:\"HTML\",text:\"text\",video:\"video\",audio:\"audio\",flash:\"flash\",pdf:\"PDF\",object:\"object\"},msgUploadAborted:\"The file upload was aborted\",msgUploadThreshold:\"Processing...\",msgUploadEmpty:\"No valid data available for upload.\",msgValidationError:\"Validation Error\",msgLoading:\"Loading file {index} of {files} &hellip;\",msgProgress:\"Loading file {index} of {files} - {name} - {percent}% completed.\",msgSelected:\"{n} {files} selected\",msgFoldersNotAllowed:\"Drag & drop files only! {n} folder(s) dropped were skipped.\",msgImageWidthSmall:'Width of image file \"{name}\" must be at least {size} px.',msgImageHeightSmall:'Height of image file \"{name}\" must be at least {size} px.',msgImageWidthLarge:'Width of image file \"{name}\" cannot exceed {size} px.',msgImageHeightLarge:'Height of image file \"{name}\" cannot exceed {size} px.',msgImageResizeError:\"Could not get the image dimensions to resize.\",msgImageResizeException:\"Error while resizing the image.<pre>{errors}</pre>\",msgAjaxError:\"Something went wrong with the {operation} operation. Please try again later!\",msgAjaxProgressError:\"{operation} failed\",ajaxOperations:{deleteThumb:\"file delete\",uploadThumb:\"single file upload\",uploadBatch:\"batch file upload\",uploadExtra:\"form data upload\"},dropZoneTitle:\"Drag & drop files here &hellip;\",dropZoneClickTitle:\"<br>(or click to select {files})\",previewZoomButtonTitles:{prev:\"View previous file\",next:\"View next file\",toggleheader:\"Toggle header\",fullscreen:\"Toggle full screen\",borderless:\"Toggle borderless mode\",close:\"Close detailed preview\"}},e.fn.fileinput.Constructor=t,e(document).ready(function(){var i=e(\"input.file[type=file]\");i.length&&i.fileinput()})});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/assets/fileinput/fileinput.min.js\n// module id = 455\n// module chunks = 2","\"use strict\";\r\nvar ConnectableObservable_1 = require('../observable/ConnectableObservable');\r\n/* tslint:disable:max-line-length */\r\n/**\r\n * Returns an Observable that emits the results of invoking a specified selector on items\r\n * emitted by a ConnectableObservable that shares a single subscription to the underlying stream.\r\n *\r\n * <img src=\"./img/multicast.png\" width=\"100%\">\r\n *\r\n * @param {Function|Subject} Factory function to create an intermediate subject through\r\n * which the source sequence's elements will be multicast to the selector function\r\n * or Subject to push source elements into.\r\n * @param {Function} Optional selector function that can use the multicasted source stream\r\n * as many times as needed, without causing multiple subscriptions to the source stream.\r\n * Subscribers to the given source will receive all notifications of the source from the\r\n * time of the subscription forward.\r\n * @return {Observable} an Observable that emits the results of invoking the selector\r\n * on the items emitted by a `ConnectableObservable` that shares a single subscription to\r\n * the underlying stream.\r\n * @method multicast\r\n * @owner Observable\r\n */\r\nfunction multicast(subjectOrSubjectFactory, selector) {\r\n    var subjectFactory;\r\n    if (typeof subjectOrSubjectFactory === 'function') {\r\n        subjectFactory = subjectOrSubjectFactory;\r\n    }\r\n    else {\r\n        subjectFactory = function subjectFactory() {\r\n            return subjectOrSubjectFactory;\r\n        };\r\n    }\r\n    if (typeof selector === 'function') {\r\n        return this.lift(new MulticastOperator(subjectFactory, selector));\r\n    }\r\n    var connectable = Object.create(this, ConnectableObservable_1.connectableObservableDescriptor);\r\n    connectable.source = this;\r\n    connectable.subjectFactory = subjectFactory;\r\n    return connectable;\r\n}\r\nexports.multicast = multicast;\r\nvar MulticastOperator = (function () {\r\n    function MulticastOperator(subjectFactory, selector) {\r\n        this.subjectFactory = subjectFactory;\r\n        this.selector = selector;\r\n    }\r\n    MulticastOperator.prototype.call = function (subscriber, source) {\r\n        var selector = this.selector;\r\n        var subject = this.subjectFactory();\r\n        var subscription = selector(subject).subscribe(subscriber);\r\n        subscription.add(source.subscribe(subject));\r\n        return subscription;\r\n    };\r\n    return MulticastOperator;\r\n}());\r\nexports.MulticastOperator = MulticastOperator;\r\n//# sourceMappingURL=multicast.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/multicast.js\n// module id = 456\n// module chunks = 2","\"use strict\";\r\nvar Observable_1 = require('./Observable');\r\n/**\r\n * Represents a push-based event or value that an {@link Observable} can emit.\r\n * This class is particularly useful for operators that manage notifications,\r\n * like {@link materialize}, {@link dematerialize}, {@link observeOn}, and\r\n * others. Besides wrapping the actual delivered value, it also annotates it\r\n * with metadata of, for instance, what type of push message it is (`next`,\r\n * `error`, or `complete`).\r\n *\r\n * @see {@link materialize}\r\n * @see {@link dematerialize}\r\n * @see {@link observeOn}\r\n *\r\n * @class Notification<T>\r\n */\r\nvar Notification = (function () {\r\n    function Notification(kind, value, error) {\r\n        this.kind = kind;\r\n        this.value = value;\r\n        this.error = error;\r\n        this.hasValue = kind === 'N';\r\n    }\r\n    /**\r\n     * Delivers to the given `observer` the value wrapped by this Notification.\r\n     * @param {Observer} observer\r\n     * @return\r\n     */\r\n    Notification.prototype.observe = function (observer) {\r\n        switch (this.kind) {\r\n            case 'N':\r\n                return observer.next && observer.next(this.value);\r\n            case 'E':\r\n                return observer.error && observer.error(this.error);\r\n            case 'C':\r\n                return observer.complete && observer.complete();\r\n        }\r\n    };\r\n    /**\r\n     * Given some {@link Observer} callbacks, deliver the value represented by the\r\n     * current Notification to the correctly corresponding callback.\r\n     * @param {function(value: T): void} next An Observer `next` callback.\r\n     * @param {function(err: any): void} [error] An Observer `error` callback.\r\n     * @param {function(): void} [complete] An Observer `complete` callback.\r\n     * @return {any}\r\n     */\r\n    Notification.prototype.do = function (next, error, complete) {\r\n        var kind = this.kind;\r\n        switch (kind) {\r\n            case 'N':\r\n                return next && next(this.value);\r\n            case 'E':\r\n                return error && error(this.error);\r\n            case 'C':\r\n                return complete && complete();\r\n        }\r\n    };\r\n    /**\r\n     * Takes an Observer or its individual callback functions, and calls `observe`\r\n     * or `do` methods accordingly.\r\n     * @param {Observer|function(value: T): void} nextOrObserver An Observer or\r\n     * the `next` callback.\r\n     * @param {function(err: any): void} [error] An Observer `error` callback.\r\n     * @param {function(): void} [complete] An Observer `complete` callback.\r\n     * @return {any}\r\n     */\r\n    Notification.prototype.accept = function (nextOrObserver, error, complete) {\r\n        if (nextOrObserver && typeof nextOrObserver.next === 'function') {\r\n            return this.observe(nextOrObserver);\r\n        }\r\n        else {\r\n            return this.do(nextOrObserver, error, complete);\r\n        }\r\n    };\r\n    /**\r\n     * Returns a simple Observable that just delivers the notification represented\r\n     * by this Notification instance.\r\n     * @return {any}\r\n     */\r\n    Notification.prototype.toObservable = function () {\r\n        var kind = this.kind;\r\n        switch (kind) {\r\n            case 'N':\r\n                return Observable_1.Observable.of(this.value);\r\n            case 'E':\r\n                return Observable_1.Observable.throw(this.error);\r\n            case 'C':\r\n                return Observable_1.Observable.empty();\r\n        }\r\n        throw new Error('unexpected notification kind value');\r\n    };\r\n    /**\r\n     * A shortcut to create a Notification instance of the type `next` from a\r\n     * given value.\r\n     * @param {T} value The `next` value.\r\n     * @return {Notification<T>} The \"next\" Notification representing the\r\n     * argument.\r\n     */\r\n    Notification.createNext = function (value) {\r\n        if (typeof value !== 'undefined') {\r\n            return new Notification('N', value);\r\n        }\r\n        return this.undefinedValueNotification;\r\n    };\r\n    /**\r\n     * A shortcut to create a Notification instance of the type `error` from a\r\n     * given error.\r\n     * @param {any} [err] The `error` error.\r\n     * @return {Notification<T>} The \"error\" Notification representing the\r\n     * argument.\r\n     */\r\n    Notification.createError = function (err) {\r\n        return new Notification('E', undefined, err);\r\n    };\r\n    /**\r\n     * A shortcut to create a Notification instance of the type `complete`.\r\n     * @return {Notification<any>} The valueless \"complete\" Notification.\r\n     */\r\n    Notification.createComplete = function () {\r\n        return this.completeNotification;\r\n    };\r\n    Notification.completeNotification = new Notification('C');\r\n    Notification.undefinedValueNotification = new Notification('N', undefined);\r\n    return Notification;\r\n}());\r\nexports.Notification = Notification;\r\n//# sourceMappingURL=Notification.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/Notification.js\n// module id = 457\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subscriber_1 = require('../Subscriber');\r\n/* tslint:disable:max-line-length */\r\n/**\r\n * Applies an accumulator function over the source Observable, and returns the\r\n * accumulated result when the source completes, given an optional seed value.\r\n *\r\n * <span class=\"informal\">Combines together all values emitted on the source,\r\n * using an accumulator function that knows how to join a new source value into\r\n * the accumulation from the past.</span>\r\n *\r\n * <img src=\"./img/reduce.png\" width=\"100%\">\r\n *\r\n * Like\r\n * [Array.prototype.reduce()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce),\r\n * `reduce` applies an `accumulator` function against an accumulation and each\r\n * value of the source Observable (from the past) to reduce it to a single\r\n * value, emitted on the output Observable. Note that `reduce` will only emit\r\n * one value, only when the source Observable completes. It is equivalent to\r\n * applying operator {@link scan} followed by operator {@link last}.\r\n *\r\n * Returns an Observable that applies a specified `accumulator` function to each\r\n * item emitted by the source Observable. If a `seed` value is specified, then\r\n * that value will be used as the initial value for the accumulator. If no seed\r\n * value is specified, the first item of the source is used as the seed.\r\n *\r\n * @example <caption>Count the number of click events that happened in 5 seconds</caption>\r\n * var clicksInFiveSeconds = Rx.Observable.fromEvent(document, 'click')\r\n *   .takeUntil(Rx.Observable.interval(5000));\r\n * var ones = clicksInFiveSeconds.mapTo(1);\r\n * var seed = 0;\r\n * var count = ones.reduce((acc, one) => acc + one, seed);\r\n * count.subscribe(x => console.log(x));\r\n *\r\n * @see {@link count}\r\n * @see {@link expand}\r\n * @see {@link mergeScan}\r\n * @see {@link scan}\r\n *\r\n * @param {function(acc: R, value: T): R} accumulator The accumulator function\r\n * called on each source value.\r\n * @param {R} [seed] The initial accumulation value.\r\n * @return {Observable<R>} An observable of the accumulated values.\r\n * @return {Observable<R>} An Observable that emits a single value that is the\r\n * result of accumulating the values emitted by the source Observable.\r\n * @method reduce\r\n * @owner Observable\r\n */\r\nfunction reduce(accumulator, seed) {\r\n    var hasSeed = false;\r\n    // providing a seed of `undefined` *should* be valid and trigger\r\n    // hasSeed! so don't use `seed !== undefined` checks!\r\n    // For this reason, we have to check it here at the original call site\r\n    // otherwise inside Operator/Subscriber we won't know if `undefined`\r\n    // means they didn't provide anything or if they literally provided `undefined`\r\n    if (arguments.length >= 2) {\r\n        hasSeed = true;\r\n    }\r\n    return this.lift(new ReduceOperator(accumulator, seed, hasSeed));\r\n}\r\nexports.reduce = reduce;\r\nvar ReduceOperator = (function () {\r\n    function ReduceOperator(accumulator, seed, hasSeed) {\r\n        if (hasSeed === void 0) { hasSeed = false; }\r\n        this.accumulator = accumulator;\r\n        this.seed = seed;\r\n        this.hasSeed = hasSeed;\r\n    }\r\n    ReduceOperator.prototype.call = function (subscriber, source) {\r\n        return source.subscribe(new ReduceSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));\r\n    };\r\n    return ReduceOperator;\r\n}());\r\nexports.ReduceOperator = ReduceOperator;\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar ReduceSubscriber = (function (_super) {\r\n    __extends(ReduceSubscriber, _super);\r\n    function ReduceSubscriber(destination, accumulator, seed, hasSeed) {\r\n        _super.call(this, destination);\r\n        this.accumulator = accumulator;\r\n        this.hasSeed = hasSeed;\r\n        this.hasValue = false;\r\n        this.acc = seed;\r\n    }\r\n    ReduceSubscriber.prototype._next = function (value) {\r\n        if (this.hasValue || (this.hasValue = this.hasSeed)) {\r\n            this._tryReduce(value);\r\n        }\r\n        else {\r\n            this.acc = value;\r\n            this.hasValue = true;\r\n        }\r\n    };\r\n    ReduceSubscriber.prototype._tryReduce = function (value) {\r\n        var result;\r\n        try {\r\n            result = this.accumulator(this.acc, value);\r\n        }\r\n        catch (err) {\r\n            this.destination.error(err);\r\n            return;\r\n        }\r\n        this.acc = result;\r\n    };\r\n    ReduceSubscriber.prototype._complete = function () {\r\n        if (this.hasValue || this.hasSeed) {\r\n            this.destination.next(this.acc);\r\n        }\r\n        this.destination.complete();\r\n    };\r\n    return ReduceSubscriber;\r\n}(Subscriber_1.Subscriber));\r\nexports.ReduceSubscriber = ReduceSubscriber;\r\n//# sourceMappingURL=reduce.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/reduce.js\n// module id = 460\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subject_1 = require('./Subject');\r\nvar ObjectUnsubscribedError_1 = require('./util/ObjectUnsubscribedError');\r\n/**\r\n * @class BehaviorSubject<T>\r\n */\r\nvar BehaviorSubject = (function (_super) {\r\n    __extends(BehaviorSubject, _super);\r\n    function BehaviorSubject(_value) {\r\n        _super.call(this);\r\n        this._value = _value;\r\n    }\r\n    Object.defineProperty(BehaviorSubject.prototype, \"value\", {\r\n        get: function () {\r\n            return this.getValue();\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    BehaviorSubject.prototype._subscribe = function (subscriber) {\r\n        var subscription = _super.prototype._subscribe.call(this, subscriber);\r\n        if (subscription && !subscription.closed) {\r\n            subscriber.next(this._value);\r\n        }\r\n        return subscription;\r\n    };\r\n    BehaviorSubject.prototype.getValue = function () {\r\n        if (this.hasError) {\r\n            throw this.thrownError;\r\n        }\r\n        else if (this.closed) {\r\n            throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\r\n        }\r\n        else {\r\n            return this._value;\r\n        }\r\n    };\r\n    BehaviorSubject.prototype.next = function (value) {\r\n        _super.prototype.next.call(this, this._value = value);\r\n    };\r\n    return BehaviorSubject;\r\n}(Subject_1.Subject));\r\nexports.BehaviorSubject = BehaviorSubject;\r\n//# sourceMappingURL=BehaviorSubject.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/BehaviorSubject.js\n// module id = 461\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subscriber_1 = require('../Subscriber');\r\nvar Notification_1 = require('../Notification');\r\n/**\r\n * @see {@link Notification}\r\n *\r\n * @param scheduler\r\n * @param delay\r\n * @return {Observable<R>|WebSocketSubject<T>|Observable<T>}\r\n * @method observeOn\r\n * @owner Observable\r\n */\r\nfunction observeOn(scheduler, delay) {\r\n    if (delay === void 0) { delay = 0; }\r\n    return this.lift(new ObserveOnOperator(scheduler, delay));\r\n}\r\nexports.observeOn = observeOn;\r\nvar ObserveOnOperator = (function () {\r\n    function ObserveOnOperator(scheduler, delay) {\r\n        if (delay === void 0) { delay = 0; }\r\n        this.scheduler = scheduler;\r\n        this.delay = delay;\r\n    }\r\n    ObserveOnOperator.prototype.call = function (subscriber, source) {\r\n        return source.subscribe(new ObserveOnSubscriber(subscriber, this.scheduler, this.delay));\r\n    };\r\n    return ObserveOnOperator;\r\n}());\r\nexports.ObserveOnOperator = ObserveOnOperator;\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar ObserveOnSubscriber = (function (_super) {\r\n    __extends(ObserveOnSubscriber, _super);\r\n    function ObserveOnSubscriber(destination, scheduler, delay) {\r\n        if (delay === void 0) { delay = 0; }\r\n        _super.call(this, destination);\r\n        this.scheduler = scheduler;\r\n        this.delay = delay;\r\n    }\r\n    ObserveOnSubscriber.dispatch = function (arg) {\r\n        var notification = arg.notification, destination = arg.destination;\r\n        notification.observe(destination);\r\n    };\r\n    ObserveOnSubscriber.prototype.scheduleMessage = function (notification) {\r\n        this.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch, this.delay, new ObserveOnMessage(notification, this.destination)));\r\n    };\r\n    ObserveOnSubscriber.prototype._next = function (value) {\r\n        this.scheduleMessage(Notification_1.Notification.createNext(value));\r\n    };\r\n    ObserveOnSubscriber.prototype._error = function (err) {\r\n        this.scheduleMessage(Notification_1.Notification.createError(err));\r\n    };\r\n    ObserveOnSubscriber.prototype._complete = function () {\r\n        this.scheduleMessage(Notification_1.Notification.createComplete());\r\n    };\r\n    return ObserveOnSubscriber;\r\n}(Subscriber_1.Subscriber));\r\nexports.ObserveOnSubscriber = ObserveOnSubscriber;\r\nvar ObserveOnMessage = (function () {\r\n    function ObserveOnMessage(notification, destination) {\r\n        this.notification = notification;\r\n        this.destination = destination;\r\n    }\r\n    return ObserveOnMessage;\r\n}());\r\nexports.ObserveOnMessage = ObserveOnMessage;\r\n//# sourceMappingURL=observeOn.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/observeOn.js\n// module id = 462\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subscription_1 = require('./Subscription');\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar SubjectSubscription = (function (_super) {\r\n    __extends(SubjectSubscription, _super);\r\n    function SubjectSubscription(subject, subscriber) {\r\n        _super.call(this);\r\n        this.subject = subject;\r\n        this.subscriber = subscriber;\r\n        this.closed = false;\r\n    }\r\n    SubjectSubscription.prototype.unsubscribe = function () {\r\n        if (this.closed) {\r\n            return;\r\n        }\r\n        this.closed = true;\r\n        var subject = this.subject;\r\n        var observers = subject.observers;\r\n        this.subject = null;\r\n        if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {\r\n            return;\r\n        }\r\n        var subscriberIndex = observers.indexOf(this.subscriber);\r\n        if (subscriberIndex !== -1) {\r\n            observers.splice(subscriberIndex, 1);\r\n        }\r\n    };\r\n    return SubjectSubscription;\r\n}(Subscription_1.Subscription));\r\nexports.SubjectSubscription = SubjectSubscription;\r\n//# sourceMappingURL=SubjectSubscription.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/SubjectSubscription.js\n// module id = 467\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subject_1 = require('../Subject');\r\nvar Observable_1 = require('../Observable');\r\nvar Subscriber_1 = require('../Subscriber');\r\nvar Subscription_1 = require('../Subscription');\r\n/**\r\n * @class ConnectableObservable<T>\r\n */\r\nvar ConnectableObservable = (function (_super) {\r\n    __extends(ConnectableObservable, _super);\r\n    function ConnectableObservable(source, subjectFactory) {\r\n        _super.call(this);\r\n        this.source = source;\r\n        this.subjectFactory = subjectFactory;\r\n        this._refCount = 0;\r\n    }\r\n    ConnectableObservable.prototype._subscribe = function (subscriber) {\r\n        return this.getSubject().subscribe(subscriber);\r\n    };\r\n    ConnectableObservable.prototype.getSubject = function () {\r\n        var subject = this._subject;\r\n        if (!subject || subject.isStopped) {\r\n            this._subject = this.subjectFactory();\r\n        }\r\n        return this._subject;\r\n    };\r\n    ConnectableObservable.prototype.connect = function () {\r\n        var connection = this._connection;\r\n        if (!connection) {\r\n            connection = this._connection = new Subscription_1.Subscription();\r\n            connection.add(this.source\r\n                .subscribe(new ConnectableSubscriber(this.getSubject(), this)));\r\n            if (connection.closed) {\r\n                this._connection = null;\r\n                connection = Subscription_1.Subscription.EMPTY;\r\n            }\r\n            else {\r\n                this._connection = connection;\r\n            }\r\n        }\r\n        return connection;\r\n    };\r\n    ConnectableObservable.prototype.refCount = function () {\r\n        return this.lift(new RefCountOperator(this));\r\n    };\r\n    return ConnectableObservable;\r\n}(Observable_1.Observable));\r\nexports.ConnectableObservable = ConnectableObservable;\r\nexports.connectableObservableDescriptor = {\r\n    operator: { value: null },\r\n    _refCount: { value: 0, writable: true },\r\n    _subscribe: { value: ConnectableObservable.prototype._subscribe },\r\n    getSubject: { value: ConnectableObservable.prototype.getSubject },\r\n    connect: { value: ConnectableObservable.prototype.connect },\r\n    refCount: { value: ConnectableObservable.prototype.refCount }\r\n};\r\nvar ConnectableSubscriber = (function (_super) {\r\n    __extends(ConnectableSubscriber, _super);\r\n    function ConnectableSubscriber(destination, connectable) {\r\n        _super.call(this, destination);\r\n        this.connectable = connectable;\r\n    }\r\n    ConnectableSubscriber.prototype._error = function (err) {\r\n        this._unsubscribe();\r\n        _super.prototype._error.call(this, err);\r\n    };\r\n    ConnectableSubscriber.prototype._complete = function () {\r\n        this._unsubscribe();\r\n        _super.prototype._complete.call(this);\r\n    };\r\n    ConnectableSubscriber.prototype._unsubscribe = function () {\r\n        var connectable = this.connectable;\r\n        if (connectable) {\r\n            this.connectable = null;\r\n            var connection = connectable._connection;\r\n            connectable._refCount = 0;\r\n            connectable._subject = null;\r\n            connectable._connection = null;\r\n            if (connection) {\r\n                connection.unsubscribe();\r\n            }\r\n        }\r\n    };\r\n    return ConnectableSubscriber;\r\n}(Subject_1.SubjectSubscriber));\r\nvar RefCountOperator = (function () {\r\n    function RefCountOperator(connectable) {\r\n        this.connectable = connectable;\r\n    }\r\n    RefCountOperator.prototype.call = function (subscriber, source) {\r\n        var connectable = this.connectable;\r\n        connectable._refCount++;\r\n        var refCounter = new RefCountSubscriber(subscriber, connectable);\r\n        var subscription = source.subscribe(refCounter);\r\n        if (!refCounter.closed) {\r\n            refCounter.connection = connectable.connect();\r\n        }\r\n        return subscription;\r\n    };\r\n    return RefCountOperator;\r\n}());\r\nvar RefCountSubscriber = (function (_super) {\r\n    __extends(RefCountSubscriber, _super);\r\n    function RefCountSubscriber(destination, connectable) {\r\n        _super.call(this, destination);\r\n        this.connectable = connectable;\r\n    }\r\n    RefCountSubscriber.prototype._unsubscribe = function () {\r\n        var connectable = this.connectable;\r\n        if (!connectable) {\r\n            this.connection = null;\r\n            return;\r\n        }\r\n        this.connectable = null;\r\n        var refCount = connectable._refCount;\r\n        if (refCount <= 0) {\r\n            this.connection = null;\r\n            return;\r\n        }\r\n        connectable._refCount = refCount - 1;\r\n        if (refCount > 1) {\r\n            this.connection = null;\r\n            return;\r\n        }\r\n        ///\r\n        // Compare the local RefCountSubscriber's connection Subscription to the\r\n        // connection Subscription on the shared ConnectableObservable. In cases\r\n        // where the ConnectableObservable source synchronously emits values, and\r\n        // the RefCountSubscriber's downstream Observers synchronously unsubscribe,\r\n        // execution continues to here before the RefCountOperator has a chance to\r\n        // supply the RefCountSubscriber with the shared connection Subscription.\r\n        // For example:\r\n        // ```\r\n        // Observable.range(0, 10)\r\n        //   .publish()\r\n        //   .refCount()\r\n        //   .take(5)\r\n        //   .subscribe();\r\n        // ```\r\n        // In order to account for this case, RefCountSubscriber should only dispose\r\n        // the ConnectableObservable's shared connection Subscription if the\r\n        // connection Subscription exists, *and* either:\r\n        //   a. RefCountSubscriber doesn't have a reference to the shared connection\r\n        //      Subscription yet, or,\r\n        //   b. RefCountSubscriber's connection Subscription reference is identical\r\n        //      to the shared connection Subscription\r\n        ///\r\n        var connection = this.connection;\r\n        var sharedConnection = connectable._connection;\r\n        this.connection = null;\r\n        if (sharedConnection && (!connection || sharedConnection === connection)) {\r\n            sharedConnection.unsubscribe();\r\n        }\r\n    };\r\n    return RefCountSubscriber;\r\n}(Subscriber_1.Subscriber));\r\n//# sourceMappingURL=ConnectableObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/ConnectableObservable.js\n// module id = 475\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar isArray_1 = require('../util/isArray');\r\nvar isPromise_1 = require('../util/isPromise');\r\nvar PromiseObservable_1 = require('./PromiseObservable');\r\nvar IteratorObservable_1 = require('./IteratorObservable');\r\nvar ArrayObservable_1 = require('./ArrayObservable');\r\nvar ArrayLikeObservable_1 = require('./ArrayLikeObservable');\r\nvar iterator_1 = require('../symbol/iterator');\r\nvar Observable_1 = require('../Observable');\r\nvar observeOn_1 = require('../operator/observeOn');\r\nvar observable_1 = require('../symbol/observable');\r\nvar isArrayLike = (function (x) { return x && typeof x.length === 'number'; });\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @extends {Ignored}\r\n * @hide true\r\n */\r\nvar FromObservable = (function (_super) {\r\n    __extends(FromObservable, _super);\r\n    function FromObservable(ish, scheduler) {\r\n        _super.call(this, null);\r\n        this.ish = ish;\r\n        this.scheduler = scheduler;\r\n    }\r\n    /**\r\n     * Creates an Observable from an Array, an array-like object, a Promise, an\r\n     * iterable object, or an Observable-like object.\r\n     *\r\n     * <span class=\"informal\">Converts almost anything to an Observable.</span>\r\n     *\r\n     * <img src=\"./img/from.png\" width=\"100%\">\r\n     *\r\n     * Convert various other objects and data types into Observables. `from`\r\n     * converts a Promise or an array-like or an\r\n     * [iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterable)\r\n     * object into an Observable that emits the items in that promise or array or\r\n     * iterable. A String, in this context, is treated as an array of characters.\r\n     * Observable-like objects (contains a function named with the ES2015 Symbol\r\n     * for Observable) can also be converted through this operator.\r\n     *\r\n     * @example <caption>Converts an array to an Observable</caption>\r\n     * var array = [10, 20, 30];\r\n     * var result = Rx.Observable.from(array);\r\n     * result.subscribe(x => console.log(x));\r\n     *\r\n     * // Results in the following:\r\n     * // 10 20 30\r\n     *\r\n     * @example <caption>Convert an infinite iterable (from a generator) to an Observable</caption>\r\n     * function* generateDoubles(seed) {\r\n     *   var i = seed;\r\n     *   while (true) {\r\n     *     yield i;\r\n     *     i = 2 * i; // double it\r\n     *   }\r\n     * }\r\n     *\r\n     * var iterator = generateDoubles(3);\r\n     * var result = Rx.Observable.from(iterator).take(10);\r\n     * result.subscribe(x => console.log(x));\r\n     *\r\n     * // Results in the following:\r\n     * // 3 6 12 24 48 96 192 384 768 1536\r\n     *\r\n     * @see {@link create}\r\n     * @see {@link fromEvent}\r\n     * @see {@link fromEventPattern}\r\n     * @see {@link fromPromise}\r\n     *\r\n     * @param {ObservableInput<T>} ish A subscribable object, a Promise, an\r\n     * Observable-like, an Array, an iterable or an array-like object to be\r\n     * converted.\r\n     * @param {Scheduler} [scheduler] The scheduler on which to schedule the\r\n     * emissions of values.\r\n     * @return {Observable<T>} The Observable whose values are originally from the\r\n     * input object that was converted.\r\n     * @static true\r\n     * @name from\r\n     * @owner Observable\r\n     */\r\n    FromObservable.create = function (ish, scheduler) {\r\n        if (ish != null) {\r\n            if (typeof ish[observable_1.$$observable] === 'function') {\r\n                if (ish instanceof Observable_1.Observable && !scheduler) {\r\n                    return ish;\r\n                }\r\n                return new FromObservable(ish, scheduler);\r\n            }\r\n            else if (isArray_1.isArray(ish)) {\r\n                return new ArrayObservable_1.ArrayObservable(ish, scheduler);\r\n            }\r\n            else if (isPromise_1.isPromise(ish)) {\r\n                return new PromiseObservable_1.PromiseObservable(ish, scheduler);\r\n            }\r\n            else if (typeof ish[iterator_1.$$iterator] === 'function' || typeof ish === 'string') {\r\n                return new IteratorObservable_1.IteratorObservable(ish, scheduler);\r\n            }\r\n            else if (isArrayLike(ish)) {\r\n                return new ArrayLikeObservable_1.ArrayLikeObservable(ish, scheduler);\r\n            }\r\n        }\r\n        throw new TypeError((ish !== null && typeof ish || ish) + ' is not observable');\r\n    };\r\n    FromObservable.prototype._subscribe = function (subscriber) {\r\n        var ish = this.ish;\r\n        var scheduler = this.scheduler;\r\n        if (scheduler == null) {\r\n            return ish[observable_1.$$observable]().subscribe(subscriber);\r\n        }\r\n        else {\r\n            return ish[observable_1.$$observable]().subscribe(new observeOn_1.ObserveOnSubscriber(subscriber, scheduler, 0));\r\n        }\r\n    };\r\n    return FromObservable;\r\n}(Observable_1.Observable));\r\nexports.FromObservable = FromObservable;\r\n//# sourceMappingURL=FromObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/FromObservable.js\n// module id = 476\n// module chunks = 2","\"use strict\";\r\nvar ForkJoinObservable_1 = require('./ForkJoinObservable');\r\nexports.forkJoin = ForkJoinObservable_1.ForkJoinObservable.create;\r\n//# sourceMappingURL=forkJoin.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/forkJoin.js\n// module id = 477\n// module chunks = 2","\"use strict\";\r\nvar merge_1 = require('../operator/merge');\r\nexports.merge = merge_1.mergeStatic;\r\n//# sourceMappingURL=merge.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/merge.js\n// module id = 478\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar OuterSubscriber_1 = require('../OuterSubscriber');\r\nvar subscribeToResult_1 = require('../util/subscribeToResult');\r\n/**\r\n * Catches errors on the observable to be handled by returning a new observable or throwing an error.\r\n * @param {function} selector a function that takes as arguments `err`, which is the error, and `caught`, which\r\n *  is the source observable, in case you'd like to \"retry\" that observable by returning it again. Whatever observable\r\n *  is returned by the `selector` will be used to continue the observable chain.\r\n * @return {Observable} an observable that originates from either the source or the observable returned by the\r\n *  catch `selector` function.\r\n * @method catch\r\n * @name catch\r\n * @owner Observable\r\n */\r\nfunction _catch(selector) {\r\n    var operator = new CatchOperator(selector);\r\n    var caught = this.lift(operator);\r\n    return (operator.caught = caught);\r\n}\r\nexports._catch = _catch;\r\nvar CatchOperator = (function () {\r\n    function CatchOperator(selector) {\r\n        this.selector = selector;\r\n    }\r\n    CatchOperator.prototype.call = function (subscriber, source) {\r\n        return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));\r\n    };\r\n    return CatchOperator;\r\n}());\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar CatchSubscriber = (function (_super) {\r\n    __extends(CatchSubscriber, _super);\r\n    function CatchSubscriber(destination, selector, caught) {\r\n        _super.call(this, destination);\r\n        this.selector = selector;\r\n        this.caught = caught;\r\n    }\r\n    // NOTE: overriding `error` instead of `_error` because we don't want\r\n    // to have this flag this subscriber as `isStopped`.\r\n    CatchSubscriber.prototype.error = function (err) {\r\n        if (!this.isStopped) {\r\n            var result = void 0;\r\n            try {\r\n                result = this.selector(err, this.caught);\r\n            }\r\n            catch (err) {\r\n                this.destination.error(err);\r\n                return;\r\n            }\r\n            this.unsubscribe();\r\n            this.destination.remove(this);\r\n            subscribeToResult_1.subscribeToResult(this, result);\r\n        }\r\n    };\r\n    return CatchSubscriber;\r\n}(OuterSubscriber_1.OuterSubscriber));\r\n//# sourceMappingURL=catch.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/catch.js\n// module id = 479\n// module chunks = 2","\"use strict\";\r\nvar mergeAll_1 = require('./mergeAll');\r\n/* tslint:disable:max-line-length */\r\n/**\r\n * Converts a higher-order Observable into a first-order Observable by\r\n * concatenating the inner Observables in order.\r\n *\r\n * <span class=\"informal\">Flattens an Observable-of-Observables by putting one\r\n * inner Observable after the other.</span>\r\n *\r\n * <img src=\"./img/concatAll.png\" width=\"100%\">\r\n *\r\n * Joins every Observable emitted by the source (a higher-order Observable), in\r\n * a serial fashion. It subscribes to each inner Observable only after the\r\n * previous inner Observable has completed, and merges all of their values into\r\n * the returned observable.\r\n *\r\n * __Warning:__ If the source Observable emits Observables quickly and\r\n * endlessly, and the inner Observables it emits generally complete slower than\r\n * the source emits, you can run into memory issues as the incoming Observables\r\n * collect in an unbounded buffer.\r\n *\r\n * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set\r\n * to `1`.\r\n *\r\n * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>\r\n * var clicks = Rx.Observable.fromEvent(document, 'click');\r\n * var higherOrder = clicks.map(ev => Rx.Observable.interval(1000).take(4));\r\n * var firstOrder = higherOrder.concatAll();\r\n * firstOrder.subscribe(x => console.log(x));\r\n *\r\n * // Results in the following:\r\n * // (results are not concurrent)\r\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\r\n * // on a 1000ms interval\r\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\r\n *\r\n * @see {@link combineAll}\r\n * @see {@link concat}\r\n * @see {@link concatMap}\r\n * @see {@link concatMapTo}\r\n * @see {@link exhaust}\r\n * @see {@link mergeAll}\r\n * @see {@link switch}\r\n * @see {@link zipAll}\r\n *\r\n * @return {Observable} An Observable emitting values from all the inner\r\n * Observables concatenated.\r\n * @method concatAll\r\n * @owner Observable\r\n */\r\nfunction concatAll() {\r\n    return this.lift(new mergeAll_1.MergeAllOperator(1));\r\n}\r\nexports.concatAll = concatAll;\r\n//# sourceMappingURL=concatAll.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/concatAll.js\n// module id = 480\n// module chunks = 2","\"use strict\";\r\nvar mergeMap_1 = require('./mergeMap');\r\n/* tslint:disable:max-line-length */\r\n/**\r\n * Projects each source value to an Observable which is merged in the output\r\n * Observable, in a serialized fashion waiting for each one to complete before\r\n * merging the next.\r\n *\r\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\r\n * these inner Observables using {@link concatAll}.</span>\r\n *\r\n * <img src=\"./img/concatMap.png\" width=\"100%\">\r\n *\r\n * Returns an Observable that emits items based on applying a function that you\r\n * supply to each item emitted by the source Observable, where that function\r\n * returns an (so-called \"inner\") Observable. Each new inner Observable is\r\n * concatenated with the previous inner Observable.\r\n *\r\n * __Warning:__ if source values arrive endlessly and faster than their\r\n * corresponding inner Observables can complete, it will result in memory issues\r\n * as inner Observables amass in an unbounded buffer waiting for their turn to\r\n * be subscribed to.\r\n *\r\n * Note: `concatMap` is equivalent to `mergeMap` with concurrency parameter set\r\n * to `1`.\r\n *\r\n * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>\r\n * var clicks = Rx.Observable.fromEvent(document, 'click');\r\n * var result = clicks.concatMap(ev => Rx.Observable.interval(1000).take(4));\r\n * result.subscribe(x => console.log(x));\r\n *\r\n * // Results in the following:\r\n * // (results are not concurrent)\r\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\r\n * // on a 1000ms interval\r\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\r\n *\r\n * @see {@link concat}\r\n * @see {@link concatAll}\r\n * @see {@link concatMapTo}\r\n * @see {@link exhaustMap}\r\n * @see {@link mergeMap}\r\n * @see {@link switchMap}\r\n *\r\n * @param {function(value: T, ?index: number): Observable} project A function\r\n * that, when applied to an item emitted by the source Observable, returns an\r\n * Observable.\r\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\r\n * A function to produce the value on the output Observable based on the values\r\n * and the indices of the source (outer) emission and the inner Observable\r\n * emission. The arguments passed to this function are:\r\n * - `outerValue`: the value that came from the source\r\n * - `innerValue`: the value that came from the projected Observable\r\n * - `outerIndex`: the \"index\" of the value that came from the source\r\n * - `innerIndex`: the \"index\" of the value from the projected Observable\r\n * @return {Observable} an observable of values merged from the projected\r\n * Observables as they were subscribed to, one at a time. Optionally, these\r\n * values may have been projected from a passed `projectResult` argument.\r\n * @return {Observable} An Observable that emits the result of applying the\r\n * projection function (and the optional `resultSelector`) to each item emitted\r\n * by the source Observable and taking values from each projected inner\r\n * Observable sequentially.\r\n * @method concatMap\r\n * @owner Observable\r\n */\r\nfunction concatMap(project, resultSelector) {\r\n    return this.lift(new mergeMap_1.MergeMapOperator(project, resultSelector, 1));\r\n}\r\nexports.concatMap = concatMap;\r\n//# sourceMappingURL=concatMap.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/concatMap.js\n// module id = 481\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subscriber_1 = require('../Subscriber');\r\n/**\r\n * Returns an Observable that emits whether or not every item of the source satisfies the condition specified.\r\n * @param {function} predicate a function for determining if an item meets a specified condition.\r\n * @param {any} [thisArg] optional object to use for `this` in the callback\r\n * @return {Observable} an Observable of booleans that determines if all items of the source Observable meet the condition specified.\r\n * @method every\r\n * @owner Observable\r\n */\r\nfunction every(predicate, thisArg) {\r\n    return this.lift(new EveryOperator(predicate, thisArg, this));\r\n}\r\nexports.every = every;\r\nvar EveryOperator = (function () {\r\n    function EveryOperator(predicate, thisArg, source) {\r\n        this.predicate = predicate;\r\n        this.thisArg = thisArg;\r\n        this.source = source;\r\n    }\r\n    EveryOperator.prototype.call = function (observer, source) {\r\n        return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source));\r\n    };\r\n    return EveryOperator;\r\n}());\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar EverySubscriber = (function (_super) {\r\n    __extends(EverySubscriber, _super);\r\n    function EverySubscriber(destination, predicate, thisArg, source) {\r\n        _super.call(this, destination);\r\n        this.predicate = predicate;\r\n        this.thisArg = thisArg;\r\n        this.source = source;\r\n        this.index = 0;\r\n        this.thisArg = thisArg || this;\r\n    }\r\n    EverySubscriber.prototype.notifyComplete = function (everyValueMatch) {\r\n        this.destination.next(everyValueMatch);\r\n        this.destination.complete();\r\n    };\r\n    EverySubscriber.prototype._next = function (value) {\r\n        var result = false;\r\n        try {\r\n            result = this.predicate.call(this.thisArg, value, this.index++, this.source);\r\n        }\r\n        catch (err) {\r\n            this.destination.error(err);\r\n            return;\r\n        }\r\n        if (!result) {\r\n            this.notifyComplete(false);\r\n        }\r\n    };\r\n    EverySubscriber.prototype._complete = function () {\r\n        this.notifyComplete(true);\r\n    };\r\n    return EverySubscriber;\r\n}(Subscriber_1.Subscriber));\r\n//# sourceMappingURL=every.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/every.js\n// module id = 482\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subscriber_1 = require('../Subscriber');\r\nvar EmptyError_1 = require('../util/EmptyError');\r\n/**\r\n * Emits only the first value (or the first value that meets some condition)\r\n * emitted by the source Observable.\r\n *\r\n * <span class=\"informal\">Emits only the first value. Or emits only the first\r\n * value that passes some test.</span>\r\n *\r\n * <img src=\"./img/first.png\" width=\"100%\">\r\n *\r\n * If called with no arguments, `first` emits the first value of the source\r\n * Observable, then completes. If called with a `predicate` function, `first`\r\n * emits the first value of the source that matches the specified condition. It\r\n * may also take a `resultSelector` function to produce the output value from\r\n * the input value, and a `defaultValue` to emit in case the source completes\r\n * before it is able to emit a valid value. Throws an error if `defaultValue`\r\n * was not provided and a matching element is not found.\r\n *\r\n * @example <caption>Emit only the first click that happens on the DOM</caption>\r\n * var clicks = Rx.Observable.fromEvent(document, 'click');\r\n * var result = clicks.first();\r\n * result.subscribe(x => console.log(x));\r\n *\r\n * @example <caption>Emits the first click that happens on a DIV</caption>\r\n * var clicks = Rx.Observable.fromEvent(document, 'click');\r\n * var result = clicks.first(ev => ev.target.tagName === 'DIV');\r\n * result.subscribe(x => console.log(x));\r\n *\r\n * @see {@link filter}\r\n * @see {@link find}\r\n * @see {@link take}\r\n *\r\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\r\n * callback if the Observable completes before any `next` notification was sent.\r\n *\r\n * @param {function(value: T, index: number, source: Observable<T>): boolean} [predicate]\r\n * An optional function called with each item to test for condition matching.\r\n * @param {function(value: T, index: number): R} [resultSelector] A function to\r\n * produce the value on the output Observable based on the values\r\n * and the indices of the source Observable. The arguments passed to this\r\n * function are:\r\n * - `value`: the value that was emitted on the source.\r\n * - `index`: the \"index\" of the value from the source.\r\n * @param {R} [defaultValue] The default value emitted in case no valid value\r\n * was found on the source.\r\n * @return {Observable<T|R>} an Observable of the first item that matches the\r\n * condition.\r\n * @method first\r\n * @owner Observable\r\n */\r\nfunction first(predicate, resultSelector, defaultValue) {\r\n    return this.lift(new FirstOperator(predicate, resultSelector, defaultValue, this));\r\n}\r\nexports.first = first;\r\nvar FirstOperator = (function () {\r\n    function FirstOperator(predicate, resultSelector, defaultValue, source) {\r\n        this.predicate = predicate;\r\n        this.resultSelector = resultSelector;\r\n        this.defaultValue = defaultValue;\r\n        this.source = source;\r\n    }\r\n    FirstOperator.prototype.call = function (observer, source) {\r\n        return source.subscribe(new FirstSubscriber(observer, this.predicate, this.resultSelector, this.defaultValue, this.source));\r\n    };\r\n    return FirstOperator;\r\n}());\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar FirstSubscriber = (function (_super) {\r\n    __extends(FirstSubscriber, _super);\r\n    function FirstSubscriber(destination, predicate, resultSelector, defaultValue, source) {\r\n        _super.call(this, destination);\r\n        this.predicate = predicate;\r\n        this.resultSelector = resultSelector;\r\n        this.defaultValue = defaultValue;\r\n        this.source = source;\r\n        this.index = 0;\r\n        this.hasCompleted = false;\r\n        this._emitted = false;\r\n    }\r\n    FirstSubscriber.prototype._next = function (value) {\r\n        var index = this.index++;\r\n        if (this.predicate) {\r\n            this._tryPredicate(value, index);\r\n        }\r\n        else {\r\n            this._emit(value, index);\r\n        }\r\n    };\r\n    FirstSubscriber.prototype._tryPredicate = function (value, index) {\r\n        var result;\r\n        try {\r\n            result = this.predicate(value, index, this.source);\r\n        }\r\n        catch (err) {\r\n            this.destination.error(err);\r\n            return;\r\n        }\r\n        if (result) {\r\n            this._emit(value, index);\r\n        }\r\n    };\r\n    FirstSubscriber.prototype._emit = function (value, index) {\r\n        if (this.resultSelector) {\r\n            this._tryResultSelector(value, index);\r\n            return;\r\n        }\r\n        this._emitFinal(value);\r\n    };\r\n    FirstSubscriber.prototype._tryResultSelector = function (value, index) {\r\n        var result;\r\n        try {\r\n            result = this.resultSelector(value, index);\r\n        }\r\n        catch (err) {\r\n            this.destination.error(err);\r\n            return;\r\n        }\r\n        this._emitFinal(result);\r\n    };\r\n    FirstSubscriber.prototype._emitFinal = function (value) {\r\n        var destination = this.destination;\r\n        if (!this._emitted) {\r\n            this._emitted = true;\r\n            destination.next(value);\r\n            destination.complete();\r\n            this.hasCompleted = true;\r\n        }\r\n    };\r\n    FirstSubscriber.prototype._complete = function () {\r\n        var destination = this.destination;\r\n        if (!this.hasCompleted && typeof this.defaultValue !== 'undefined') {\r\n            destination.next(this.defaultValue);\r\n            destination.complete();\r\n        }\r\n        else if (!this.hasCompleted) {\r\n            destination.error(new EmptyError_1.EmptyError);\r\n        }\r\n    };\r\n    return FirstSubscriber;\r\n}(Subscriber_1.Subscriber));\r\n//# sourceMappingURL=first.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/first.js\n// module id = 483\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subscriber_1 = require('../Subscriber');\r\nvar EmptyError_1 = require('../util/EmptyError');\r\n/* tslint:disable:max-line-length */\r\n/**\r\n * Returns an Observable that emits only the last item emitted by the source Observable.\r\n * It optionally takes a predicate function as a parameter, in which case, rather than emitting\r\n * the last item from the source Observable, the resulting Observable will emit the last item\r\n * from the source Observable that satisfies the predicate.\r\n *\r\n * <img src=\"./img/last.png\" width=\"100%\">\r\n *\r\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\r\n * callback if the Observable completes before any `next` notification was sent.\r\n * @param {function} predicate - the condition any source emitted item has to satisfy.\r\n * @return {Observable} an Observable that emits only the last item satisfying the given condition\r\n * from the source, or an NoSuchElementException if no such items are emitted.\r\n * @throws - Throws if no items that match the predicate are emitted by the source Observable.\r\n * @method last\r\n * @owner Observable\r\n */\r\nfunction last(predicate, resultSelector, defaultValue) {\r\n    return this.lift(new LastOperator(predicate, resultSelector, defaultValue, this));\r\n}\r\nexports.last = last;\r\nvar LastOperator = (function () {\r\n    function LastOperator(predicate, resultSelector, defaultValue, source) {\r\n        this.predicate = predicate;\r\n        this.resultSelector = resultSelector;\r\n        this.defaultValue = defaultValue;\r\n        this.source = source;\r\n    }\r\n    LastOperator.prototype.call = function (observer, source) {\r\n        return source.subscribe(new LastSubscriber(observer, this.predicate, this.resultSelector, this.defaultValue, this.source));\r\n    };\r\n    return LastOperator;\r\n}());\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar LastSubscriber = (function (_super) {\r\n    __extends(LastSubscriber, _super);\r\n    function LastSubscriber(destination, predicate, resultSelector, defaultValue, source) {\r\n        _super.call(this, destination);\r\n        this.predicate = predicate;\r\n        this.resultSelector = resultSelector;\r\n        this.defaultValue = defaultValue;\r\n        this.source = source;\r\n        this.hasValue = false;\r\n        this.index = 0;\r\n        if (typeof defaultValue !== 'undefined') {\r\n            this.lastValue = defaultValue;\r\n            this.hasValue = true;\r\n        }\r\n    }\r\n    LastSubscriber.prototype._next = function (value) {\r\n        var index = this.index++;\r\n        if (this.predicate) {\r\n            this._tryPredicate(value, index);\r\n        }\r\n        else {\r\n            if (this.resultSelector) {\r\n                this._tryResultSelector(value, index);\r\n                return;\r\n            }\r\n            this.lastValue = value;\r\n            this.hasValue = true;\r\n        }\r\n    };\r\n    LastSubscriber.prototype._tryPredicate = function (value, index) {\r\n        var result;\r\n        try {\r\n            result = this.predicate(value, index, this.source);\r\n        }\r\n        catch (err) {\r\n            this.destination.error(err);\r\n            return;\r\n        }\r\n        if (result) {\r\n            if (this.resultSelector) {\r\n                this._tryResultSelector(value, index);\r\n                return;\r\n            }\r\n            this.lastValue = value;\r\n            this.hasValue = true;\r\n        }\r\n    };\r\n    LastSubscriber.prototype._tryResultSelector = function (value, index) {\r\n        var result;\r\n        try {\r\n            result = this.resultSelector(value, index);\r\n        }\r\n        catch (err) {\r\n            this.destination.error(err);\r\n            return;\r\n        }\r\n        this.lastValue = result;\r\n        this.hasValue = true;\r\n    };\r\n    LastSubscriber.prototype._complete = function () {\r\n        var destination = this.destination;\r\n        if (this.hasValue) {\r\n            destination.next(this.lastValue);\r\n            destination.complete();\r\n        }\r\n        else {\r\n            destination.error(new EmptyError_1.EmptyError);\r\n        }\r\n    };\r\n    return LastSubscriber;\r\n}(Subscriber_1.Subscriber));\r\n//# sourceMappingURL=last.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/last.js\n// module id = 484\n// module chunks = 2","\"use strict\";\r\nvar ArrayObservable_1 = require('../observable/ArrayObservable');\r\nvar mergeAll_1 = require('./mergeAll');\r\nvar isScheduler_1 = require('../util/isScheduler');\r\n/* tslint:disable:max-line-length */\r\n/**\r\n * Creates an output Observable which concurrently emits all values from every\r\n * given input Observable.\r\n *\r\n * <span class=\"informal\">Flattens multiple Observables together by blending\r\n * their values into one Observable.</span>\r\n *\r\n * <img src=\"./img/merge.png\" width=\"100%\">\r\n *\r\n * `merge` subscribes to each given input Observable (either the source or an\r\n * Observable given as argument), and simply forwards (without doing any\r\n * transformation) all the values from all the input Observables to the output\r\n * Observable. The output Observable only completes once all input Observables\r\n * have completed. Any error delivered by an input Observable will be immediately\r\n * emitted on the output Observable.\r\n *\r\n * @example <caption>Merge together two Observables: 1s interval and clicks</caption>\r\n * var clicks = Rx.Observable.fromEvent(document, 'click');\r\n * var timer = Rx.Observable.interval(1000);\r\n * var clicksOrTimer = clicks.merge(timer);\r\n * clicksOrTimer.subscribe(x => console.log(x));\r\n *\r\n * @example <caption>Merge together 3 Observables, but only 2 run concurrently</caption>\r\n * var timer1 = Rx.Observable.interval(1000).take(10);\r\n * var timer2 = Rx.Observable.interval(2000).take(6);\r\n * var timer3 = Rx.Observable.interval(500).take(10);\r\n * var concurrent = 2; // the argument\r\n * var merged = timer1.merge(timer2, timer3, concurrent);\r\n * merged.subscribe(x => console.log(x));\r\n *\r\n * @see {@link mergeAll}\r\n * @see {@link mergeMap}\r\n * @see {@link mergeMapTo}\r\n * @see {@link mergeScan}\r\n *\r\n * @param {Observable} other An input Observable to merge with the source\r\n * Observable. More than one input Observables may be given as argument.\r\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\r\n * Observables being subscribed to concurrently.\r\n * @param {Scheduler} [scheduler=null] The Scheduler to use for managing\r\n * concurrency of input Observables.\r\n * @return {Observable} an Observable that emits items that are the result of\r\n * every input Observable.\r\n * @method merge\r\n * @owner Observable\r\n */\r\nfunction merge() {\r\n    var observables = [];\r\n    for (var _i = 0; _i < arguments.length; _i++) {\r\n        observables[_i - 0] = arguments[_i];\r\n    }\r\n    return this.lift.call(mergeStatic.apply(void 0, [this].concat(observables)));\r\n}\r\nexports.merge = merge;\r\n/* tslint:enable:max-line-length */\r\n/**\r\n * Creates an output Observable which concurrently emits all values from every\r\n * given input Observable.\r\n *\r\n * <span class=\"informal\">Flattens multiple Observables together by blending\r\n * their values into one Observable.</span>\r\n *\r\n * <img src=\"./img/merge.png\" width=\"100%\">\r\n *\r\n * `merge` subscribes to each given input Observable (as arguments), and simply\r\n * forwards (without doing any transformation) all the values from all the input\r\n * Observables to the output Observable. The output Observable only completes\r\n * once all input Observables have completed. Any error delivered by an input\r\n * Observable will be immediately emitted on the output Observable.\r\n *\r\n * @example <caption>Merge together two Observables: 1s interval and clicks</caption>\r\n * var clicks = Rx.Observable.fromEvent(document, 'click');\r\n * var timer = Rx.Observable.interval(1000);\r\n * var clicksOrTimer = Rx.Observable.merge(clicks, timer);\r\n * clicksOrTimer.subscribe(x => console.log(x));\r\n *\r\n * // Results in the following:\r\n * // timer will emit ascending values, one every second(1000ms) to console\r\n * // clicks logs MouseEvents to console everytime the \"document\" is clicked\r\n * // Since the two streams are merged you see these happening\r\n * // as they occur.\r\n *\r\n * @example <caption>Merge together 3 Observables, but only 2 run concurrently</caption>\r\n * var timer1 = Rx.Observable.interval(1000).take(10);\r\n * var timer2 = Rx.Observable.interval(2000).take(6);\r\n * var timer3 = Rx.Observable.interval(500).take(10);\r\n * var concurrent = 2; // the argument\r\n * var merged = Rx.Observable.merge(timer1, timer2, timer3, concurrent);\r\n * merged.subscribe(x => console.log(x));\r\n *\r\n * // Results in the following:\r\n * // - First timer1 and timer2 will run concurrently\r\n * // - timer1 will emit a value every 1000ms for 10 iterations\r\n * // - timer2 will emit a value every 2000ms for 6 iterations\r\n * // - after timer1 hits it's max iteration, timer2 will\r\n * //   continue, and timer3 will start to run concurrently with timer2\r\n * // - when timer2 hits it's max iteration it terminates, and\r\n * //   timer3 will continue to emit a value every 500ms until it is complete\r\n *\r\n * @see {@link mergeAll}\r\n * @see {@link mergeMap}\r\n * @see {@link mergeMapTo}\r\n * @see {@link mergeScan}\r\n *\r\n * @param {...Observable} observables Input Observables to merge together.\r\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\r\n * Observables being subscribed to concurrently.\r\n * @param {Scheduler} [scheduler=null] The Scheduler to use for managing\r\n * concurrency of input Observables.\r\n * @return {Observable} an Observable that emits items that are the result of\r\n * every input Observable.\r\n * @static true\r\n * @name merge\r\n * @owner Observable\r\n */\r\nfunction mergeStatic() {\r\n    var observables = [];\r\n    for (var _i = 0; _i < arguments.length; _i++) {\r\n        observables[_i - 0] = arguments[_i];\r\n    }\r\n    var concurrent = Number.POSITIVE_INFINITY;\r\n    var scheduler = null;\r\n    var last = observables[observables.length - 1];\r\n    if (isScheduler_1.isScheduler(last)) {\r\n        scheduler = observables.pop();\r\n        if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {\r\n            concurrent = observables.pop();\r\n        }\r\n    }\r\n    else if (typeof last === 'number') {\r\n        concurrent = observables.pop();\r\n    }\r\n    if (scheduler === null && observables.length === 1) {\r\n        return observables[0];\r\n    }\r\n    return new ArrayObservable_1.ArrayObservable(observables, scheduler).lift(new mergeAll_1.MergeAllOperator(concurrent));\r\n}\r\nexports.mergeStatic = mergeStatic;\r\n//# sourceMappingURL=merge.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/merge.js\n// module id = 485\n// module chunks = 2","\"use strict\";\r\nvar multicast_1 = require('./multicast');\r\nvar Subject_1 = require('../Subject');\r\nfunction shareSubjectFactory() {\r\n    return new Subject_1.Subject();\r\n}\r\n/**\r\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\r\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\r\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\r\n * This is an alias for .publish().refCount().\r\n *\r\n * <img src=\"./img/share.png\" width=\"100%\">\r\n *\r\n * @return {Observable<T>} an Observable that upon connection causes the source Observable to emit items to its Observers\r\n * @method share\r\n * @owner Observable\r\n */\r\nfunction share() {\r\n    return multicast_1.multicast.call(this, shareSubjectFactory).refCount();\r\n}\r\nexports.share = share;\r\n;\r\n//# sourceMappingURL=share.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/operator/share.js\n// module id = 486\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * An error thrown when one or more errors have occurred during the\r\n * `unsubscribe` of a {@link Subscription}.\r\n */\r\nvar UnsubscriptionError = (function (_super) {\r\n    __extends(UnsubscriptionError, _super);\r\n    function UnsubscriptionError(errors) {\r\n        _super.call(this);\r\n        this.errors = errors;\r\n        var err = Error.call(this, errors ?\r\n            errors.length + \" errors occurred during unsubscription:\\n  \" + errors.map(function (err, i) { return ((i + 1) + \") \" + err.toString()); }).join('\\n  ') : '');\r\n        this.name = err.name = 'UnsubscriptionError';\r\n        this.stack = err.stack;\r\n        this.message = err.message;\r\n    }\r\n    return UnsubscriptionError;\r\n}(Error));\r\nexports.UnsubscriptionError = UnsubscriptionError;\r\n//# sourceMappingURL=UnsubscriptionError.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/UnsubscriptionError.js\n// module id = 487\n// module chunks = 2","/*! Hammer.JS - v2.0.7 - 2016-04-22\r\n * http://hammerjs.github.io/\r\n *\r\n * Copyright (c) 2016 Jorik Tangelder;\r\n * Licensed under the MIT license */\r\n(function(window, document, exportName, undefined) {\r\n  'use strict';\r\n\r\nvar VENDOR_PREFIXES = ['', 'webkit', 'Moz', 'MS', 'ms', 'o'];\r\nvar TEST_ELEMENT = document.createElement('div');\r\n\r\nvar TYPE_FUNCTION = 'function';\r\n\r\nvar round = Math.round;\r\nvar abs = Math.abs;\r\nvar now = Date.now;\r\n\r\n/**\r\n * set a timeout with a given scope\r\n * @param {Function} fn\r\n * @param {Number} timeout\r\n * @param {Object} context\r\n * @returns {number}\r\n */\r\nfunction setTimeoutContext(fn, timeout, context) {\r\n    return setTimeout(bindFn(fn, context), timeout);\r\n}\r\n\r\n/**\r\n * if the argument is an array, we want to execute the fn on each entry\r\n * if it aint an array we don't want to do a thing.\r\n * this is used by all the methods that accept a single and array argument.\r\n * @param {*|Array} arg\r\n * @param {String} fn\r\n * @param {Object} [context]\r\n * @returns {Boolean}\r\n */\r\nfunction invokeArrayArg(arg, fn, context) {\r\n    if (Array.isArray(arg)) {\r\n        each(arg, context[fn], context);\r\n        return true;\r\n    }\r\n    return false;\r\n}\r\n\r\n/**\r\n * walk objects and arrays\r\n * @param {Object} obj\r\n * @param {Function} iterator\r\n * @param {Object} context\r\n */\r\nfunction each(obj, iterator, context) {\r\n    var i;\r\n\r\n    if (!obj) {\r\n        return;\r\n    }\r\n\r\n    if (obj.forEach) {\r\n        obj.forEach(iterator, context);\r\n    } else if (obj.length !== undefined) {\r\n        i = 0;\r\n        while (i < obj.length) {\r\n            iterator.call(context, obj[i], i, obj);\r\n            i++;\r\n        }\r\n    } else {\r\n        for (i in obj) {\r\n            obj.hasOwnProperty(i) && iterator.call(context, obj[i], i, obj);\r\n        }\r\n    }\r\n}\r\n\r\n/**\r\n * wrap a method with a deprecation warning and stack trace\r\n * @param {Function} method\r\n * @param {String} name\r\n * @param {String} message\r\n * @returns {Function} A new function wrapping the supplied method.\r\n */\r\nfunction deprecate(method, name, message) {\r\n    var deprecationMessage = 'DEPRECATED METHOD: ' + name + '\\n' + message + ' AT \\n';\r\n    return function() {\r\n        var e = new Error('get-stack-trace');\r\n        var stack = e && e.stack ? e.stack.replace(/^[^\\(]+?[\\n$]/gm, '')\r\n            .replace(/^\\s+at\\s+/gm, '')\r\n            .replace(/^Object.<anonymous>\\s*\\(/gm, '{anonymous}()@') : 'Unknown Stack Trace';\r\n\r\n        var log = window.console && (window.console.warn || window.console.log);\r\n        if (log) {\r\n            log.call(window.console, deprecationMessage, stack);\r\n        }\r\n        return method.apply(this, arguments);\r\n    };\r\n}\r\n\r\n/**\r\n * extend object.\r\n * means that properties in dest will be overwritten by the ones in src.\r\n * @param {Object} target\r\n * @param {...Object} objects_to_assign\r\n * @returns {Object} target\r\n */\r\nvar assign;\r\nif (typeof Object.assign !== 'function') {\r\n    assign = function assign(target) {\r\n        if (target === undefined || target === null) {\r\n            throw new TypeError('Cannot convert undefined or null to object');\r\n        }\r\n\r\n        var output = Object(target);\r\n        for (var index = 1; index < arguments.length; index++) {\r\n            var source = arguments[index];\r\n            if (source !== undefined && source !== null) {\r\n                for (var nextKey in source) {\r\n                    if (source.hasOwnProperty(nextKey)) {\r\n                        output[nextKey] = source[nextKey];\r\n                    }\r\n                }\r\n            }\r\n        }\r\n        return output;\r\n    };\r\n} else {\r\n    assign = Object.assign;\r\n}\r\n\r\n/**\r\n * extend object.\r\n * means that properties in dest will be overwritten by the ones in src.\r\n * @param {Object} dest\r\n * @param {Object} src\r\n * @param {Boolean} [merge=false]\r\n * @returns {Object} dest\r\n */\r\nvar extend = deprecate(function extend(dest, src, merge) {\r\n    var keys = Object.keys(src);\r\n    var i = 0;\r\n    while (i < keys.length) {\r\n        if (!merge || (merge && dest[keys[i]] === undefined)) {\r\n            dest[keys[i]] = src[keys[i]];\r\n        }\r\n        i++;\r\n    }\r\n    return dest;\r\n}, 'extend', 'Use `assign`.');\r\n\r\n/**\r\n * merge the values from src in the dest.\r\n * means that properties that exist in dest will not be overwritten by src\r\n * @param {Object} dest\r\n * @param {Object} src\r\n * @returns {Object} dest\r\n */\r\nvar merge = deprecate(function merge(dest, src) {\r\n    return extend(dest, src, true);\r\n}, 'merge', 'Use `assign`.');\r\n\r\n/**\r\n * simple class inheritance\r\n * @param {Function} child\r\n * @param {Function} base\r\n * @param {Object} [properties]\r\n */\r\nfunction inherit(child, base, properties) {\r\n    var baseP = base.prototype,\r\n        childP;\r\n\r\n    childP = child.prototype = Object.create(baseP);\r\n    childP.constructor = child;\r\n    childP._super = baseP;\r\n\r\n    if (properties) {\r\n        assign(childP, properties);\r\n    }\r\n}\r\n\r\n/**\r\n * simple function bind\r\n * @param {Function} fn\r\n * @param {Object} context\r\n * @returns {Function}\r\n */\r\nfunction bindFn(fn, context) {\r\n    return function boundFn() {\r\n        return fn.apply(context, arguments);\r\n    };\r\n}\r\n\r\n/**\r\n * let a boolean value also be a function that must return a boolean\r\n * this first item in args will be used as the context\r\n * @param {Boolean|Function} val\r\n * @param {Array} [args]\r\n * @returns {Boolean}\r\n */\r\nfunction boolOrFn(val, args) {\r\n    if (typeof val == TYPE_FUNCTION) {\r\n        return val.apply(args ? args[0] || undefined : undefined, args);\r\n    }\r\n    return val;\r\n}\r\n\r\n/**\r\n * use the val2 when val1 is undefined\r\n * @param {*} val1\r\n * @param {*} val2\r\n * @returns {*}\r\n */\r\nfunction ifUndefined(val1, val2) {\r\n    return (val1 === undefined) ? val2 : val1;\r\n}\r\n\r\n/**\r\n * addEventListener with multiple events at once\r\n * @param {EventTarget} target\r\n * @param {String} types\r\n * @param {Function} handler\r\n */\r\nfunction addEventListeners(target, types, handler) {\r\n    each(splitStr(types), function(type) {\r\n        target.addEventListener(type, handler, false);\r\n    });\r\n}\r\n\r\n/**\r\n * removeEventListener with multiple events at once\r\n * @param {EventTarget} target\r\n * @param {String} types\r\n * @param {Function} handler\r\n */\r\nfunction removeEventListeners(target, types, handler) {\r\n    each(splitStr(types), function(type) {\r\n        target.removeEventListener(type, handler, false);\r\n    });\r\n}\r\n\r\n/**\r\n * find if a node is in the given parent\r\n * @method hasParent\r\n * @param {HTMLElement} node\r\n * @param {HTMLElement} parent\r\n * @return {Boolean} found\r\n */\r\nfunction hasParent(node, parent) {\r\n    while (node) {\r\n        if (node == parent) {\r\n            return true;\r\n        }\r\n        node = node.parentNode;\r\n    }\r\n    return false;\r\n}\r\n\r\n/**\r\n * small indexOf wrapper\r\n * @param {String} str\r\n * @param {String} find\r\n * @returns {Boolean} found\r\n */\r\nfunction inStr(str, find) {\r\n    return str.indexOf(find) > -1;\r\n}\r\n\r\n/**\r\n * split string on whitespace\r\n * @param {String} str\r\n * @returns {Array} words\r\n */\r\nfunction splitStr(str) {\r\n    return str.trim().split(/\\s+/g);\r\n}\r\n\r\n/**\r\n * find if a array contains the object using indexOf or a simple polyFill\r\n * @param {Array} src\r\n * @param {String} find\r\n * @param {String} [findByKey]\r\n * @return {Boolean|Number} false when not found, or the index\r\n */\r\nfunction inArray(src, find, findByKey) {\r\n    if (src.indexOf && !findByKey) {\r\n        return src.indexOf(find);\r\n    } else {\r\n        var i = 0;\r\n        while (i < src.length) {\r\n            if ((findByKey && src[i][findByKey] == find) || (!findByKey && src[i] === find)) {\r\n                return i;\r\n            }\r\n            i++;\r\n        }\r\n        return -1;\r\n    }\r\n}\r\n\r\n/**\r\n * convert array-like objects to real arrays\r\n * @param {Object} obj\r\n * @returns {Array}\r\n */\r\nfunction toArray(obj) {\r\n    return Array.prototype.slice.call(obj, 0);\r\n}\r\n\r\n/**\r\n * unique array with objects based on a key (like 'id') or just by the array's value\r\n * @param {Array} src [{id:1},{id:2},{id:1}]\r\n * @param {String} [key]\r\n * @param {Boolean} [sort=False]\r\n * @returns {Array} [{id:1},{id:2}]\r\n */\r\nfunction uniqueArray(src, key, sort) {\r\n    var results = [];\r\n    var values = [];\r\n    var i = 0;\r\n\r\n    while (i < src.length) {\r\n        var val = key ? src[i][key] : src[i];\r\n        if (inArray(values, val) < 0) {\r\n            results.push(src[i]);\r\n        }\r\n        values[i] = val;\r\n        i++;\r\n    }\r\n\r\n    if (sort) {\r\n        if (!key) {\r\n            results = results.sort();\r\n        } else {\r\n            results = results.sort(function sortUniqueArray(a, b) {\r\n                return a[key] > b[key];\r\n            });\r\n        }\r\n    }\r\n\r\n    return results;\r\n}\r\n\r\n/**\r\n * get the prefixed property\r\n * @param {Object} obj\r\n * @param {String} property\r\n * @returns {String|Undefined} prefixed\r\n */\r\nfunction prefixed(obj, property) {\r\n    var prefix, prop;\r\n    var camelProp = property[0].toUpperCase() + property.slice(1);\r\n\r\n    var i = 0;\r\n    while (i < VENDOR_PREFIXES.length) {\r\n        prefix = VENDOR_PREFIXES[i];\r\n        prop = (prefix) ? prefix + camelProp : property;\r\n\r\n        if (prop in obj) {\r\n            return prop;\r\n        }\r\n        i++;\r\n    }\r\n    return undefined;\r\n}\r\n\r\n/**\r\n * get a unique id\r\n * @returns {number} uniqueId\r\n */\r\nvar _uniqueId = 1;\r\nfunction uniqueId() {\r\n    return _uniqueId++;\r\n}\r\n\r\n/**\r\n * get the window object of an element\r\n * @param {HTMLElement} element\r\n * @returns {DocumentView|Window}\r\n */\r\nfunction getWindowForElement(element) {\r\n    var doc = element.ownerDocument || element;\r\n    return (doc.defaultView || doc.parentWindow || window);\r\n}\r\n\r\nvar MOBILE_REGEX = /mobile|tablet|ip(ad|hone|od)|android/i;\r\n\r\nvar SUPPORT_TOUCH = ('ontouchstart' in window);\r\nvar SUPPORT_POINTER_EVENTS = prefixed(window, 'PointerEvent') !== undefined;\r\nvar SUPPORT_ONLY_TOUCH = SUPPORT_TOUCH && MOBILE_REGEX.test(navigator.userAgent);\r\n\r\nvar INPUT_TYPE_TOUCH = 'touch';\r\nvar INPUT_TYPE_PEN = 'pen';\r\nvar INPUT_TYPE_MOUSE = 'mouse';\r\nvar INPUT_TYPE_KINECT = 'kinect';\r\n\r\nvar COMPUTE_INTERVAL = 25;\r\n\r\nvar INPUT_START = 1;\r\nvar INPUT_MOVE = 2;\r\nvar INPUT_END = 4;\r\nvar INPUT_CANCEL = 8;\r\n\r\nvar DIRECTION_NONE = 1;\r\nvar DIRECTION_LEFT = 2;\r\nvar DIRECTION_RIGHT = 4;\r\nvar DIRECTION_UP = 8;\r\nvar DIRECTION_DOWN = 16;\r\n\r\nvar DIRECTION_HORIZONTAL = DIRECTION_LEFT | DIRECTION_RIGHT;\r\nvar DIRECTION_VERTICAL = DIRECTION_UP | DIRECTION_DOWN;\r\nvar DIRECTION_ALL = DIRECTION_HORIZONTAL | DIRECTION_VERTICAL;\r\n\r\nvar PROPS_XY = ['x', 'y'];\r\nvar PROPS_CLIENT_XY = ['clientX', 'clientY'];\r\n\r\n/**\r\n * create new input type manager\r\n * @param {Manager} manager\r\n * @param {Function} callback\r\n * @returns {Input}\r\n * @constructor\r\n */\r\nfunction Input(manager, callback) {\r\n    var self = this;\r\n    this.manager = manager;\r\n    this.callback = callback;\r\n    this.element = manager.element;\r\n    this.target = manager.options.inputTarget;\r\n\r\n    // smaller wrapper around the handler, for the scope and the enabled state of the manager,\r\n    // so when disabled the input events are completely bypassed.\r\n    this.domHandler = function(ev) {\r\n        if (boolOrFn(manager.options.enable, [manager])) {\r\n            self.handler(ev);\r\n        }\r\n    };\r\n\r\n    this.init();\r\n\r\n}\r\n\r\nInput.prototype = {\r\n    /**\r\n     * should handle the inputEvent data and trigger the callback\r\n     * @virtual\r\n     */\r\n    handler: function() { },\r\n\r\n    /**\r\n     * bind the events\r\n     */\r\n    init: function() {\r\n        this.evEl && addEventListeners(this.element, this.evEl, this.domHandler);\r\n        this.evTarget && addEventListeners(this.target, this.evTarget, this.domHandler);\r\n        this.evWin && addEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);\r\n    },\r\n\r\n    /**\r\n     * unbind the events\r\n     */\r\n    destroy: function() {\r\n        this.evEl && removeEventListeners(this.element, this.evEl, this.domHandler);\r\n        this.evTarget && removeEventListeners(this.target, this.evTarget, this.domHandler);\r\n        this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);\r\n    }\r\n};\r\n\r\n/**\r\n * create new input type manager\r\n * called by the Manager constructor\r\n * @param {Hammer} manager\r\n * @returns {Input}\r\n */\r\nfunction createInputInstance(manager) {\r\n    var Type;\r\n    var inputClass = manager.options.inputClass;\r\n\r\n    if (inputClass) {\r\n        Type = inputClass;\r\n    } else if (SUPPORT_POINTER_EVENTS) {\r\n        Type = PointerEventInput;\r\n    } else if (SUPPORT_ONLY_TOUCH) {\r\n        Type = TouchInput;\r\n    } else if (!SUPPORT_TOUCH) {\r\n        Type = MouseInput;\r\n    } else {\r\n        Type = TouchMouseInput;\r\n    }\r\n    return new (Type)(manager, inputHandler);\r\n}\r\n\r\n/**\r\n * handle input events\r\n * @param {Manager} manager\r\n * @param {String} eventType\r\n * @param {Object} input\r\n */\r\nfunction inputHandler(manager, eventType, input) {\r\n    var pointersLen = input.pointers.length;\r\n    var changedPointersLen = input.changedPointers.length;\r\n    var isFirst = (eventType & INPUT_START && (pointersLen - changedPointersLen === 0));\r\n    var isFinal = (eventType & (INPUT_END | INPUT_CANCEL) && (pointersLen - changedPointersLen === 0));\r\n\r\n    input.isFirst = !!isFirst;\r\n    input.isFinal = !!isFinal;\r\n\r\n    if (isFirst) {\r\n        manager.session = {};\r\n    }\r\n\r\n    // source event is the normalized value of the domEvents\r\n    // like 'touchstart, mouseup, pointerdown'\r\n    input.eventType = eventType;\r\n\r\n    // compute scale, rotation etc\r\n    computeInputData(manager, input);\r\n\r\n    // emit secret event\r\n    manager.emit('hammer.input', input);\r\n\r\n    manager.recognize(input);\r\n    manager.session.prevInput = input;\r\n}\r\n\r\n/**\r\n * extend the data with some usable properties like scale, rotate, velocity etc\r\n * @param {Object} manager\r\n * @param {Object} input\r\n */\r\nfunction computeInputData(manager, input) {\r\n    var session = manager.session;\r\n    var pointers = input.pointers;\r\n    var pointersLength = pointers.length;\r\n\r\n    // store the first input to calculate the distance and direction\r\n    if (!session.firstInput) {\r\n        session.firstInput = simpleCloneInputData(input);\r\n    }\r\n\r\n    // to compute scale and rotation we need to store the multiple touches\r\n    if (pointersLength > 1 && !session.firstMultiple) {\r\n        session.firstMultiple = simpleCloneInputData(input);\r\n    } else if (pointersLength === 1) {\r\n        session.firstMultiple = false;\r\n    }\r\n\r\n    var firstInput = session.firstInput;\r\n    var firstMultiple = session.firstMultiple;\r\n    var offsetCenter = firstMultiple ? firstMultiple.center : firstInput.center;\r\n\r\n    var center = input.center = getCenter(pointers);\r\n    input.timeStamp = now();\r\n    input.deltaTime = input.timeStamp - firstInput.timeStamp;\r\n\r\n    input.angle = getAngle(offsetCenter, center);\r\n    input.distance = getDistance(offsetCenter, center);\r\n\r\n    computeDeltaXY(session, input);\r\n    input.offsetDirection = getDirection(input.deltaX, input.deltaY);\r\n\r\n    var overallVelocity = getVelocity(input.deltaTime, input.deltaX, input.deltaY);\r\n    input.overallVelocityX = overallVelocity.x;\r\n    input.overallVelocityY = overallVelocity.y;\r\n    input.overallVelocity = (abs(overallVelocity.x) > abs(overallVelocity.y)) ? overallVelocity.x : overallVelocity.y;\r\n\r\n    input.scale = firstMultiple ? getScale(firstMultiple.pointers, pointers) : 1;\r\n    input.rotation = firstMultiple ? getRotation(firstMultiple.pointers, pointers) : 0;\r\n\r\n    input.maxPointers = !session.prevInput ? input.pointers.length : ((input.pointers.length >\r\n        session.prevInput.maxPointers) ? input.pointers.length : session.prevInput.maxPointers);\r\n\r\n    computeIntervalInputData(session, input);\r\n\r\n    // find the correct target\r\n    var target = manager.element;\r\n    if (hasParent(input.srcEvent.target, target)) {\r\n        target = input.srcEvent.target;\r\n    }\r\n    input.target = target;\r\n}\r\n\r\nfunction computeDeltaXY(session, input) {\r\n    var center = input.center;\r\n    var offset = session.offsetDelta || {};\r\n    var prevDelta = session.prevDelta || {};\r\n    var prevInput = session.prevInput || {};\r\n\r\n    if (input.eventType === INPUT_START || prevInput.eventType === INPUT_END) {\r\n        prevDelta = session.prevDelta = {\r\n            x: prevInput.deltaX || 0,\r\n            y: prevInput.deltaY || 0\r\n        };\r\n\r\n        offset = session.offsetDelta = {\r\n            x: center.x,\r\n            y: center.y\r\n        };\r\n    }\r\n\r\n    input.deltaX = prevDelta.x + (center.x - offset.x);\r\n    input.deltaY = prevDelta.y + (center.y - offset.y);\r\n}\r\n\r\n/**\r\n * velocity is calculated every x ms\r\n * @param {Object} session\r\n * @param {Object} input\r\n */\r\nfunction computeIntervalInputData(session, input) {\r\n    var last = session.lastInterval || input,\r\n        deltaTime = input.timeStamp - last.timeStamp,\r\n        velocity, velocityX, velocityY, direction;\r\n\r\n    if (input.eventType != INPUT_CANCEL && (deltaTime > COMPUTE_INTERVAL || last.velocity === undefined)) {\r\n        var deltaX = input.deltaX - last.deltaX;\r\n        var deltaY = input.deltaY - last.deltaY;\r\n\r\n        var v = getVelocity(deltaTime, deltaX, deltaY);\r\n        velocityX = v.x;\r\n        velocityY = v.y;\r\n        velocity = (abs(v.x) > abs(v.y)) ? v.x : v.y;\r\n        direction = getDirection(deltaX, deltaY);\r\n\r\n        session.lastInterval = input;\r\n    } else {\r\n        // use latest velocity info if it doesn't overtake a minimum period\r\n        velocity = last.velocity;\r\n        velocityX = last.velocityX;\r\n        velocityY = last.velocityY;\r\n        direction = last.direction;\r\n    }\r\n\r\n    input.velocity = velocity;\r\n    input.velocityX = velocityX;\r\n    input.velocityY = velocityY;\r\n    input.direction = direction;\r\n}\r\n\r\n/**\r\n * create a simple clone from the input used for storage of firstInput and firstMultiple\r\n * @param {Object} input\r\n * @returns {Object} clonedInputData\r\n */\r\nfunction simpleCloneInputData(input) {\r\n    // make a simple copy of the pointers because we will get a reference if we don't\r\n    // we only need clientXY for the calculations\r\n    var pointers = [];\r\n    var i = 0;\r\n    while (i < input.pointers.length) {\r\n        pointers[i] = {\r\n            clientX: round(input.pointers[i].clientX),\r\n            clientY: round(input.pointers[i].clientY)\r\n        };\r\n        i++;\r\n    }\r\n\r\n    return {\r\n        timeStamp: now(),\r\n        pointers: pointers,\r\n        center: getCenter(pointers),\r\n        deltaX: input.deltaX,\r\n        deltaY: input.deltaY\r\n    };\r\n}\r\n\r\n/**\r\n * get the center of all the pointers\r\n * @param {Array} pointers\r\n * @return {Object} center contains `x` and `y` properties\r\n */\r\nfunction getCenter(pointers) {\r\n    var pointersLength = pointers.length;\r\n\r\n    // no need to loop when only one touch\r\n    if (pointersLength === 1) {\r\n        return {\r\n            x: round(pointers[0].clientX),\r\n            y: round(pointers[0].clientY)\r\n        };\r\n    }\r\n\r\n    var x = 0, y = 0, i = 0;\r\n    while (i < pointersLength) {\r\n        x += pointers[i].clientX;\r\n        y += pointers[i].clientY;\r\n        i++;\r\n    }\r\n\r\n    return {\r\n        x: round(x / pointersLength),\r\n        y: round(y / pointersLength)\r\n    };\r\n}\r\n\r\n/**\r\n * calculate the velocity between two points. unit is in px per ms.\r\n * @param {Number} deltaTime\r\n * @param {Number} x\r\n * @param {Number} y\r\n * @return {Object} velocity `x` and `y`\r\n */\r\nfunction getVelocity(deltaTime, x, y) {\r\n    return {\r\n        x: x / deltaTime || 0,\r\n        y: y / deltaTime || 0\r\n    };\r\n}\r\n\r\n/**\r\n * get the direction between two points\r\n * @param {Number} x\r\n * @param {Number} y\r\n * @return {Number} direction\r\n */\r\nfunction getDirection(x, y) {\r\n    if (x === y) {\r\n        return DIRECTION_NONE;\r\n    }\r\n\r\n    if (abs(x) >= abs(y)) {\r\n        return x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;\r\n    }\r\n    return y < 0 ? DIRECTION_UP : DIRECTION_DOWN;\r\n}\r\n\r\n/**\r\n * calculate the absolute distance between two points\r\n * @param {Object} p1 {x, y}\r\n * @param {Object} p2 {x, y}\r\n * @param {Array} [props] containing x and y keys\r\n * @return {Number} distance\r\n */\r\nfunction getDistance(p1, p2, props) {\r\n    if (!props) {\r\n        props = PROPS_XY;\r\n    }\r\n    var x = p2[props[0]] - p1[props[0]],\r\n        y = p2[props[1]] - p1[props[1]];\r\n\r\n    return Math.sqrt((x * x) + (y * y));\r\n}\r\n\r\n/**\r\n * calculate the angle between two coordinates\r\n * @param {Object} p1\r\n * @param {Object} p2\r\n * @param {Array} [props] containing x and y keys\r\n * @return {Number} angle\r\n */\r\nfunction getAngle(p1, p2, props) {\r\n    if (!props) {\r\n        props = PROPS_XY;\r\n    }\r\n    var x = p2[props[0]] - p1[props[0]],\r\n        y = p2[props[1]] - p1[props[1]];\r\n    return Math.atan2(y, x) * 180 / Math.PI;\r\n}\r\n\r\n/**\r\n * calculate the rotation degrees between two pointersets\r\n * @param {Array} start array of pointers\r\n * @param {Array} end array of pointers\r\n * @return {Number} rotation\r\n */\r\nfunction getRotation(start, end) {\r\n    return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);\r\n}\r\n\r\n/**\r\n * calculate the scale factor between two pointersets\r\n * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out\r\n * @param {Array} start array of pointers\r\n * @param {Array} end array of pointers\r\n * @return {Number} scale\r\n */\r\nfunction getScale(start, end) {\r\n    return getDistance(end[0], end[1], PROPS_CLIENT_XY) / getDistance(start[0], start[1], PROPS_CLIENT_XY);\r\n}\r\n\r\nvar MOUSE_INPUT_MAP = {\r\n    mousedown: INPUT_START,\r\n    mousemove: INPUT_MOVE,\r\n    mouseup: INPUT_END\r\n};\r\n\r\nvar MOUSE_ELEMENT_EVENTS = 'mousedown';\r\nvar MOUSE_WINDOW_EVENTS = 'mousemove mouseup';\r\n\r\n/**\r\n * Mouse events input\r\n * @constructor\r\n * @extends Input\r\n */\r\nfunction MouseInput() {\r\n    this.evEl = MOUSE_ELEMENT_EVENTS;\r\n    this.evWin = MOUSE_WINDOW_EVENTS;\r\n\r\n    this.pressed = false; // mousedown state\r\n\r\n    Input.apply(this, arguments);\r\n}\r\n\r\ninherit(MouseInput, Input, {\r\n    /**\r\n     * handle mouse events\r\n     * @param {Object} ev\r\n     */\r\n    handler: function MEhandler(ev) {\r\n        var eventType = MOUSE_INPUT_MAP[ev.type];\r\n\r\n        // on start we want to have the left mouse button down\r\n        if (eventType & INPUT_START && ev.button === 0) {\r\n            this.pressed = true;\r\n        }\r\n\r\n        if (eventType & INPUT_MOVE && ev.which !== 1) {\r\n            eventType = INPUT_END;\r\n        }\r\n\r\n        // mouse must be down\r\n        if (!this.pressed) {\r\n            return;\r\n        }\r\n\r\n        if (eventType & INPUT_END) {\r\n            this.pressed = false;\r\n        }\r\n\r\n        this.callback(this.manager, eventType, {\r\n            pointers: [ev],\r\n            changedPointers: [ev],\r\n            pointerType: INPUT_TYPE_MOUSE,\r\n            srcEvent: ev\r\n        });\r\n    }\r\n});\r\n\r\nvar POINTER_INPUT_MAP = {\r\n    pointerdown: INPUT_START,\r\n    pointermove: INPUT_MOVE,\r\n    pointerup: INPUT_END,\r\n    pointercancel: INPUT_CANCEL,\r\n    pointerout: INPUT_CANCEL\r\n};\r\n\r\n// in IE10 the pointer types is defined as an enum\r\nvar IE10_POINTER_TYPE_ENUM = {\r\n    2: INPUT_TYPE_TOUCH,\r\n    3: INPUT_TYPE_PEN,\r\n    4: INPUT_TYPE_MOUSE,\r\n    5: INPUT_TYPE_KINECT // see https://twitter.com/jacobrossi/status/480596438489890816\r\n};\r\n\r\nvar POINTER_ELEMENT_EVENTS = 'pointerdown';\r\nvar POINTER_WINDOW_EVENTS = 'pointermove pointerup pointercancel';\r\n\r\n// IE10 has prefixed support, and case-sensitive\r\nif (window.MSPointerEvent && !window.PointerEvent) {\r\n    POINTER_ELEMENT_EVENTS = 'MSPointerDown';\r\n    POINTER_WINDOW_EVENTS = 'MSPointerMove MSPointerUp MSPointerCancel';\r\n}\r\n\r\n/**\r\n * Pointer events input\r\n * @constructor\r\n * @extends Input\r\n */\r\nfunction PointerEventInput() {\r\n    this.evEl = POINTER_ELEMENT_EVENTS;\r\n    this.evWin = POINTER_WINDOW_EVENTS;\r\n\r\n    Input.apply(this, arguments);\r\n\r\n    this.store = (this.manager.session.pointerEvents = []);\r\n}\r\n\r\ninherit(PointerEventInput, Input, {\r\n    /**\r\n     * handle mouse events\r\n     * @param {Object} ev\r\n     */\r\n    handler: function PEhandler(ev) {\r\n        var store = this.store;\r\n        var removePointer = false;\r\n\r\n        var eventTypeNormalized = ev.type.toLowerCase().replace('ms', '');\r\n        var eventType = POINTER_INPUT_MAP[eventTypeNormalized];\r\n        var pointerType = IE10_POINTER_TYPE_ENUM[ev.pointerType] || ev.pointerType;\r\n\r\n        var isTouch = (pointerType == INPUT_TYPE_TOUCH);\r\n\r\n        // get index of the event in the store\r\n        var storeIndex = inArray(store, ev.pointerId, 'pointerId');\r\n\r\n        // start and mouse must be down\r\n        if (eventType & INPUT_START && (ev.button === 0 || isTouch)) {\r\n            if (storeIndex < 0) {\r\n                store.push(ev);\r\n                storeIndex = store.length - 1;\r\n            }\r\n        } else if (eventType & (INPUT_END | INPUT_CANCEL)) {\r\n            removePointer = true;\r\n        }\r\n\r\n        // it not found, so the pointer hasn't been down (so it's probably a hover)\r\n        if (storeIndex < 0) {\r\n            return;\r\n        }\r\n\r\n        // update the event in the store\r\n        store[storeIndex] = ev;\r\n\r\n        this.callback(this.manager, eventType, {\r\n            pointers: store,\r\n            changedPointers: [ev],\r\n            pointerType: pointerType,\r\n            srcEvent: ev\r\n        });\r\n\r\n        if (removePointer) {\r\n            // remove from the store\r\n            store.splice(storeIndex, 1);\r\n        }\r\n    }\r\n});\r\n\r\nvar SINGLE_TOUCH_INPUT_MAP = {\r\n    touchstart: INPUT_START,\r\n    touchmove: INPUT_MOVE,\r\n    touchend: INPUT_END,\r\n    touchcancel: INPUT_CANCEL\r\n};\r\n\r\nvar SINGLE_TOUCH_TARGET_EVENTS = 'touchstart';\r\nvar SINGLE_TOUCH_WINDOW_EVENTS = 'touchstart touchmove touchend touchcancel';\r\n\r\n/**\r\n * Touch events input\r\n * @constructor\r\n * @extends Input\r\n */\r\nfunction SingleTouchInput() {\r\n    this.evTarget = SINGLE_TOUCH_TARGET_EVENTS;\r\n    this.evWin = SINGLE_TOUCH_WINDOW_EVENTS;\r\n    this.started = false;\r\n\r\n    Input.apply(this, arguments);\r\n}\r\n\r\ninherit(SingleTouchInput, Input, {\r\n    handler: function TEhandler(ev) {\r\n        var type = SINGLE_TOUCH_INPUT_MAP[ev.type];\r\n\r\n        // should we handle the touch events?\r\n        if (type === INPUT_START) {\r\n            this.started = true;\r\n        }\r\n\r\n        if (!this.started) {\r\n            return;\r\n        }\r\n\r\n        var touches = normalizeSingleTouches.call(this, ev, type);\r\n\r\n        // when done, reset the started state\r\n        if (type & (INPUT_END | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {\r\n            this.started = false;\r\n        }\r\n\r\n        this.callback(this.manager, type, {\r\n            pointers: touches[0],\r\n            changedPointers: touches[1],\r\n            pointerType: INPUT_TYPE_TOUCH,\r\n            srcEvent: ev\r\n        });\r\n    }\r\n});\r\n\r\n/**\r\n * @this {TouchInput}\r\n * @param {Object} ev\r\n * @param {Number} type flag\r\n * @returns {undefined|Array} [all, changed]\r\n */\r\nfunction normalizeSingleTouches(ev, type) {\r\n    var all = toArray(ev.touches);\r\n    var changed = toArray(ev.changedTouches);\r\n\r\n    if (type & (INPUT_END | INPUT_CANCEL)) {\r\n        all = uniqueArray(all.concat(changed), 'identifier', true);\r\n    }\r\n\r\n    return [all, changed];\r\n}\r\n\r\nvar TOUCH_INPUT_MAP = {\r\n    touchstart: INPUT_START,\r\n    touchmove: INPUT_MOVE,\r\n    touchend: INPUT_END,\r\n    touchcancel: INPUT_CANCEL\r\n};\r\n\r\nvar TOUCH_TARGET_EVENTS = 'touchstart touchmove touchend touchcancel';\r\n\r\n/**\r\n * Multi-user touch events input\r\n * @constructor\r\n * @extends Input\r\n */\r\nfunction TouchInput() {\r\n    this.evTarget = TOUCH_TARGET_EVENTS;\r\n    this.targetIds = {};\r\n\r\n    Input.apply(this, arguments);\r\n}\r\n\r\ninherit(TouchInput, Input, {\r\n    handler: function MTEhandler(ev) {\r\n        var type = TOUCH_INPUT_MAP[ev.type];\r\n        var touches = getTouches.call(this, ev, type);\r\n        if (!touches) {\r\n            return;\r\n        }\r\n\r\n        this.callback(this.manager, type, {\r\n            pointers: touches[0],\r\n            changedPointers: touches[1],\r\n            pointerType: INPUT_TYPE_TOUCH,\r\n            srcEvent: ev\r\n        });\r\n    }\r\n});\r\n\r\n/**\r\n * @this {TouchInput}\r\n * @param {Object} ev\r\n * @param {Number} type flag\r\n * @returns {undefined|Array} [all, changed]\r\n */\r\nfunction getTouches(ev, type) {\r\n    var allTouches = toArray(ev.touches);\r\n    var targetIds = this.targetIds;\r\n\r\n    // when there is only one touch, the process can be simplified\r\n    if (type & (INPUT_START | INPUT_MOVE) && allTouches.length === 1) {\r\n        targetIds[allTouches[0].identifier] = true;\r\n        return [allTouches, allTouches];\r\n    }\r\n\r\n    var i,\r\n        targetTouches,\r\n        changedTouches = toArray(ev.changedTouches),\r\n        changedTargetTouches = [],\r\n        target = this.target;\r\n\r\n    // get target touches from touches\r\n    targetTouches = allTouches.filter(function(touch) {\r\n        return hasParent(touch.target, target);\r\n    });\r\n\r\n    // collect touches\r\n    if (type === INPUT_START) {\r\n        i = 0;\r\n        while (i < targetTouches.length) {\r\n            targetIds[targetTouches[i].identifier] = true;\r\n            i++;\r\n        }\r\n    }\r\n\r\n    // filter changed touches to only contain touches that exist in the collected target ids\r\n    i = 0;\r\n    while (i < changedTouches.length) {\r\n        if (targetIds[changedTouches[i].identifier]) {\r\n            changedTargetTouches.push(changedTouches[i]);\r\n        }\r\n\r\n        // cleanup removed touches\r\n        if (type & (INPUT_END | INPUT_CANCEL)) {\r\n            delete targetIds[changedTouches[i].identifier];\r\n        }\r\n        i++;\r\n    }\r\n\r\n    if (!changedTargetTouches.length) {\r\n        return;\r\n    }\r\n\r\n    return [\r\n        // merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'\r\n        uniqueArray(targetTouches.concat(changedTargetTouches), 'identifier', true),\r\n        changedTargetTouches\r\n    ];\r\n}\r\n\r\n/**\r\n * Combined touch and mouse input\r\n *\r\n * Touch has a higher priority then mouse, and while touching no mouse events are allowed.\r\n * This because touch devices also emit mouse events while doing a touch.\r\n *\r\n * @constructor\r\n * @extends Input\r\n */\r\n\r\nvar DEDUP_TIMEOUT = 2500;\r\nvar DEDUP_DISTANCE = 25;\r\n\r\nfunction TouchMouseInput() {\r\n    Input.apply(this, arguments);\r\n\r\n    var handler = bindFn(this.handler, this);\r\n    this.touch = new TouchInput(this.manager, handler);\r\n    this.mouse = new MouseInput(this.manager, handler);\r\n\r\n    this.primaryTouch = null;\r\n    this.lastTouches = [];\r\n}\r\n\r\ninherit(TouchMouseInput, Input, {\r\n    /**\r\n     * handle mouse and touch events\r\n     * @param {Hammer} manager\r\n     * @param {String} inputEvent\r\n     * @param {Object} inputData\r\n     */\r\n    handler: function TMEhandler(manager, inputEvent, inputData) {\r\n        var isTouch = (inputData.pointerType == INPUT_TYPE_TOUCH),\r\n            isMouse = (inputData.pointerType == INPUT_TYPE_MOUSE);\r\n\r\n        if (isMouse && inputData.sourceCapabilities && inputData.sourceCapabilities.firesTouchEvents) {\r\n            return;\r\n        }\r\n\r\n        // when we're in a touch event, record touches to  de-dupe synthetic mouse event\r\n        if (isTouch) {\r\n            recordTouches.call(this, inputEvent, inputData);\r\n        } else if (isMouse && isSyntheticEvent.call(this, inputData)) {\r\n            return;\r\n        }\r\n\r\n        this.callback(manager, inputEvent, inputData);\r\n    },\r\n\r\n    /**\r\n     * remove the event listeners\r\n     */\r\n    destroy: function destroy() {\r\n        this.touch.destroy();\r\n        this.mouse.destroy();\r\n    }\r\n});\r\n\r\nfunction recordTouches(eventType, eventData) {\r\n    if (eventType & INPUT_START) {\r\n        this.primaryTouch = eventData.changedPointers[0].identifier;\r\n        setLastTouch.call(this, eventData);\r\n    } else if (eventType & (INPUT_END | INPUT_CANCEL)) {\r\n        setLastTouch.call(this, eventData);\r\n    }\r\n}\r\n\r\nfunction setLastTouch(eventData) {\r\n    var touch = eventData.changedPointers[0];\r\n\r\n    if (touch.identifier === this.primaryTouch) {\r\n        var lastTouch = {x: touch.clientX, y: touch.clientY};\r\n        this.lastTouches.push(lastTouch);\r\n        var lts = this.lastTouches;\r\n        var removeLastTouch = function() {\r\n            var i = lts.indexOf(lastTouch);\r\n            if (i > -1) {\r\n                lts.splice(i, 1);\r\n            }\r\n        };\r\n        setTimeout(removeLastTouch, DEDUP_TIMEOUT);\r\n    }\r\n}\r\n\r\nfunction isSyntheticEvent(eventData) {\r\n    var x = eventData.srcEvent.clientX, y = eventData.srcEvent.clientY;\r\n    for (var i = 0; i < this.lastTouches.length; i++) {\r\n        var t = this.lastTouches[i];\r\n        var dx = Math.abs(x - t.x), dy = Math.abs(y - t.y);\r\n        if (dx <= DEDUP_DISTANCE && dy <= DEDUP_DISTANCE) {\r\n            return true;\r\n        }\r\n    }\r\n    return false;\r\n}\r\n\r\nvar PREFIXED_TOUCH_ACTION = prefixed(TEST_ELEMENT.style, 'touchAction');\r\nvar NATIVE_TOUCH_ACTION = PREFIXED_TOUCH_ACTION !== undefined;\r\n\r\n// magical touchAction value\r\nvar TOUCH_ACTION_COMPUTE = 'compute';\r\nvar TOUCH_ACTION_AUTO = 'auto';\r\nvar TOUCH_ACTION_MANIPULATION = 'manipulation'; // not implemented\r\nvar TOUCH_ACTION_NONE = 'none';\r\nvar TOUCH_ACTION_PAN_X = 'pan-x';\r\nvar TOUCH_ACTION_PAN_Y = 'pan-y';\r\nvar TOUCH_ACTION_MAP = getTouchActionProps();\r\n\r\n/**\r\n * Touch Action\r\n * sets the touchAction property or uses the js alternative\r\n * @param {Manager} manager\r\n * @param {String} value\r\n * @constructor\r\n */\r\nfunction TouchAction(manager, value) {\r\n    this.manager = manager;\r\n    this.set(value);\r\n}\r\n\r\nTouchAction.prototype = {\r\n    /**\r\n     * set the touchAction value on the element or enable the polyfill\r\n     * @param {String} value\r\n     */\r\n    set: function(value) {\r\n        // find out the touch-action by the event handlers\r\n        if (value == TOUCH_ACTION_COMPUTE) {\r\n            value = this.compute();\r\n        }\r\n\r\n        if (NATIVE_TOUCH_ACTION && this.manager.element.style && TOUCH_ACTION_MAP[value]) {\r\n            this.manager.element.style[PREFIXED_TOUCH_ACTION] = value;\r\n        }\r\n        this.actions = value.toLowerCase().trim();\r\n    },\r\n\r\n    /**\r\n     * just re-set the touchAction value\r\n     */\r\n    update: function() {\r\n        this.set(this.manager.options.touchAction);\r\n    },\r\n\r\n    /**\r\n     * compute the value for the touchAction property based on the recognizer's settings\r\n     * @returns {String} value\r\n     */\r\n    compute: function() {\r\n        var actions = [];\r\n        each(this.manager.recognizers, function(recognizer) {\r\n            if (boolOrFn(recognizer.options.enable, [recognizer])) {\r\n                actions = actions.concat(recognizer.getTouchAction());\r\n            }\r\n        });\r\n        return cleanTouchActions(actions.join(' '));\r\n    },\r\n\r\n    /**\r\n     * this method is called on each input cycle and provides the preventing of the browser behavior\r\n     * @param {Object} input\r\n     */\r\n    preventDefaults: function(input) {\r\n        var srcEvent = input.srcEvent;\r\n        var direction = input.offsetDirection;\r\n\r\n        // if the touch action did prevented once this session\r\n        if (this.manager.session.prevented) {\r\n            srcEvent.preventDefault();\r\n            return;\r\n        }\r\n\r\n        var actions = this.actions;\r\n        var hasNone = inStr(actions, TOUCH_ACTION_NONE) && !TOUCH_ACTION_MAP[TOUCH_ACTION_NONE];\r\n        var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_Y];\r\n        var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_X];\r\n\r\n        if (hasNone) {\r\n            //do not prevent defaults if this is a tap gesture\r\n\r\n            var isTapPointer = input.pointers.length === 1;\r\n            var isTapMovement = input.distance < 2;\r\n            var isTapTouchTime = input.deltaTime < 250;\r\n\r\n            if (isTapPointer && isTapMovement && isTapTouchTime) {\r\n                return;\r\n            }\r\n        }\r\n\r\n        if (hasPanX && hasPanY) {\r\n            // `pan-x pan-y` means browser handles all scrolling/panning, do not prevent\r\n            return;\r\n        }\r\n\r\n        if (hasNone ||\r\n            (hasPanY && direction & DIRECTION_HORIZONTAL) ||\r\n            (hasPanX && direction & DIRECTION_VERTICAL)) {\r\n            return this.preventSrc(srcEvent);\r\n        }\r\n    },\r\n\r\n    /**\r\n     * call preventDefault to prevent the browser's default behavior (scrolling in most cases)\r\n     * @param {Object} srcEvent\r\n     */\r\n    preventSrc: function(srcEvent) {\r\n        this.manager.session.prevented = true;\r\n        srcEvent.preventDefault();\r\n    }\r\n};\r\n\r\n/**\r\n * when the touchActions are collected they are not a valid value, so we need to clean things up. *\r\n * @param {String} actions\r\n * @returns {*}\r\n */\r\nfunction cleanTouchActions(actions) {\r\n    // none\r\n    if (inStr(actions, TOUCH_ACTION_NONE)) {\r\n        return TOUCH_ACTION_NONE;\r\n    }\r\n\r\n    var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X);\r\n    var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y);\r\n\r\n    // if both pan-x and pan-y are set (different recognizers\r\n    // for different directions, e.g. horizontal pan but vertical swipe?)\r\n    // we need none (as otherwise with pan-x pan-y combined none of these\r\n    // recognizers will work, since the browser would handle all panning\r\n    if (hasPanX && hasPanY) {\r\n        return TOUCH_ACTION_NONE;\r\n    }\r\n\r\n    // pan-x OR pan-y\r\n    if (hasPanX || hasPanY) {\r\n        return hasPanX ? TOUCH_ACTION_PAN_X : TOUCH_ACTION_PAN_Y;\r\n    }\r\n\r\n    // manipulation\r\n    if (inStr(actions, TOUCH_ACTION_MANIPULATION)) {\r\n        return TOUCH_ACTION_MANIPULATION;\r\n    }\r\n\r\n    return TOUCH_ACTION_AUTO;\r\n}\r\n\r\nfunction getTouchActionProps() {\r\n    if (!NATIVE_TOUCH_ACTION) {\r\n        return false;\r\n    }\r\n    var touchMap = {};\r\n    var cssSupports = window.CSS && window.CSS.supports;\r\n    ['auto', 'manipulation', 'pan-y', 'pan-x', 'pan-x pan-y', 'none'].forEach(function(val) {\r\n\r\n        // If css.supports is not supported but there is native touch-action assume it supports\r\n        // all values. This is the case for IE 10 and 11.\r\n        touchMap[val] = cssSupports ? window.CSS.supports('touch-action', val) : true;\r\n    });\r\n    return touchMap;\r\n}\r\n\r\n/**\r\n * Recognizer flow explained; *\r\n * All recognizers have the initial state of POSSIBLE when a input session starts.\r\n * The definition of a input session is from the first input until the last input, with all it's movement in it. *\r\n * Example session for mouse-input: mousedown -> mousemove -> mouseup\r\n *\r\n * On each recognizing cycle (see Manager.recognize) the .recognize() method is executed\r\n * which determines with state it should be.\r\n *\r\n * If the recognizer has the state FAILED, CANCELLED or RECOGNIZED (equals ENDED), it is reset to\r\n * POSSIBLE to give it another change on the next cycle.\r\n *\r\n *               Possible\r\n *                  |\r\n *            +-----+---------------+\r\n *            |                     |\r\n *      +-----+-----+               |\r\n *      |           |               |\r\n *   Failed      Cancelled          |\r\n *                          +-------+------+\r\n *                          |              |\r\n *                      Recognized       Began\r\n *                                         |\r\n *                                      Changed\r\n *                                         |\r\n *                                  Ended/Recognized\r\n */\r\nvar STATE_POSSIBLE = 1;\r\nvar STATE_BEGAN = 2;\r\nvar STATE_CHANGED = 4;\r\nvar STATE_ENDED = 8;\r\nvar STATE_RECOGNIZED = STATE_ENDED;\r\nvar STATE_CANCELLED = 16;\r\nvar STATE_FAILED = 32;\r\n\r\n/**\r\n * Recognizer\r\n * Every recognizer needs to extend from this class.\r\n * @constructor\r\n * @param {Object} options\r\n */\r\nfunction Recognizer(options) {\r\n    this.options = assign({}, this.defaults, options || {});\r\n\r\n    this.id = uniqueId();\r\n\r\n    this.manager = null;\r\n\r\n    // default is enable true\r\n    this.options.enable = ifUndefined(this.options.enable, true);\r\n\r\n    this.state = STATE_POSSIBLE;\r\n\r\n    this.simultaneous = {};\r\n    this.requireFail = [];\r\n}\r\n\r\nRecognizer.prototype = {\r\n    /**\r\n     * @virtual\r\n     * @type {Object}\r\n     */\r\n    defaults: {},\r\n\r\n    /**\r\n     * set options\r\n     * @param {Object} options\r\n     * @return {Recognizer}\r\n     */\r\n    set: function(options) {\r\n        assign(this.options, options);\r\n\r\n        // also update the touchAction, in case something changed about the directions/enabled state\r\n        this.manager && this.manager.touchAction.update();\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * recognize simultaneous with an other recognizer.\r\n     * @param {Recognizer} otherRecognizer\r\n     * @returns {Recognizer} this\r\n     */\r\n    recognizeWith: function(otherRecognizer) {\r\n        if (invokeArrayArg(otherRecognizer, 'recognizeWith', this)) {\r\n            return this;\r\n        }\r\n\r\n        var simultaneous = this.simultaneous;\r\n        otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\r\n        if (!simultaneous[otherRecognizer.id]) {\r\n            simultaneous[otherRecognizer.id] = otherRecognizer;\r\n            otherRecognizer.recognizeWith(this);\r\n        }\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * drop the simultaneous link. it doesnt remove the link on the other recognizer.\r\n     * @param {Recognizer} otherRecognizer\r\n     * @returns {Recognizer} this\r\n     */\r\n    dropRecognizeWith: function(otherRecognizer) {\r\n        if (invokeArrayArg(otherRecognizer, 'dropRecognizeWith', this)) {\r\n            return this;\r\n        }\r\n\r\n        otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\r\n        delete this.simultaneous[otherRecognizer.id];\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * recognizer can only run when an other is failing\r\n     * @param {Recognizer} otherRecognizer\r\n     * @returns {Recognizer} this\r\n     */\r\n    requireFailure: function(otherRecognizer) {\r\n        if (invokeArrayArg(otherRecognizer, 'requireFailure', this)) {\r\n            return this;\r\n        }\r\n\r\n        var requireFail = this.requireFail;\r\n        otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\r\n        if (inArray(requireFail, otherRecognizer) === -1) {\r\n            requireFail.push(otherRecognizer);\r\n            otherRecognizer.requireFailure(this);\r\n        }\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * drop the requireFailure link. it does not remove the link on the other recognizer.\r\n     * @param {Recognizer} otherRecognizer\r\n     * @returns {Recognizer} this\r\n     */\r\n    dropRequireFailure: function(otherRecognizer) {\r\n        if (invokeArrayArg(otherRecognizer, 'dropRequireFailure', this)) {\r\n            return this;\r\n        }\r\n\r\n        otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\r\n        var index = inArray(this.requireFail, otherRecognizer);\r\n        if (index > -1) {\r\n            this.requireFail.splice(index, 1);\r\n        }\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * has require failures boolean\r\n     * @returns {boolean}\r\n     */\r\n    hasRequireFailures: function() {\r\n        return this.requireFail.length > 0;\r\n    },\r\n\r\n    /**\r\n     * if the recognizer can recognize simultaneous with an other recognizer\r\n     * @param {Recognizer} otherRecognizer\r\n     * @returns {Boolean}\r\n     */\r\n    canRecognizeWith: function(otherRecognizer) {\r\n        return !!this.simultaneous[otherRecognizer.id];\r\n    },\r\n\r\n    /**\r\n     * You should use `tryEmit` instead of `emit` directly to check\r\n     * that all the needed recognizers has failed before emitting.\r\n     * @param {Object} input\r\n     */\r\n    emit: function(input) {\r\n        var self = this;\r\n        var state = this.state;\r\n\r\n        function emit(event) {\r\n            self.manager.emit(event, input);\r\n        }\r\n\r\n        // 'panstart' and 'panmove'\r\n        if (state < STATE_ENDED) {\r\n            emit(self.options.event + stateStr(state));\r\n        }\r\n\r\n        emit(self.options.event); // simple 'eventName' events\r\n\r\n        if (input.additionalEvent) { // additional event(panleft, panright, pinchin, pinchout...)\r\n            emit(input.additionalEvent);\r\n        }\r\n\r\n        // panend and pancancel\r\n        if (state >= STATE_ENDED) {\r\n            emit(self.options.event + stateStr(state));\r\n        }\r\n    },\r\n\r\n    /**\r\n     * Check that all the require failure recognizers has failed,\r\n     * if true, it emits a gesture event,\r\n     * otherwise, setup the state to FAILED.\r\n     * @param {Object} input\r\n     */\r\n    tryEmit: function(input) {\r\n        if (this.canEmit()) {\r\n            return this.emit(input);\r\n        }\r\n        // it's failing anyway\r\n        this.state = STATE_FAILED;\r\n    },\r\n\r\n    /**\r\n     * can we emit?\r\n     * @returns {boolean}\r\n     */\r\n    canEmit: function() {\r\n        var i = 0;\r\n        while (i < this.requireFail.length) {\r\n            if (!(this.requireFail[i].state & (STATE_FAILED | STATE_POSSIBLE))) {\r\n                return false;\r\n            }\r\n            i++;\r\n        }\r\n        return true;\r\n    },\r\n\r\n    /**\r\n     * update the recognizer\r\n     * @param {Object} inputData\r\n     */\r\n    recognize: function(inputData) {\r\n        // make a new copy of the inputData\r\n        // so we can change the inputData without messing up the other recognizers\r\n        var inputDataClone = assign({}, inputData);\r\n\r\n        // is is enabled and allow recognizing?\r\n        if (!boolOrFn(this.options.enable, [this, inputDataClone])) {\r\n            this.reset();\r\n            this.state = STATE_FAILED;\r\n            return;\r\n        }\r\n\r\n        // reset when we've reached the end\r\n        if (this.state & (STATE_RECOGNIZED | STATE_CANCELLED | STATE_FAILED)) {\r\n            this.state = STATE_POSSIBLE;\r\n        }\r\n\r\n        this.state = this.process(inputDataClone);\r\n\r\n        // the recognizer has recognized a gesture\r\n        // so trigger an event\r\n        if (this.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED | STATE_CANCELLED)) {\r\n            this.tryEmit(inputDataClone);\r\n        }\r\n    },\r\n\r\n    /**\r\n     * return the state of the recognizer\r\n     * the actual recognizing happens in this method\r\n     * @virtual\r\n     * @param {Object} inputData\r\n     * @returns {Const} STATE\r\n     */\r\n    process: function(inputData) { }, // jshint ignore:line\r\n\r\n    /**\r\n     * return the preferred touch-action\r\n     * @virtual\r\n     * @returns {Array}\r\n     */\r\n    getTouchAction: function() { },\r\n\r\n    /**\r\n     * called when the gesture isn't allowed to recognize\r\n     * like when another is being recognized or it is disabled\r\n     * @virtual\r\n     */\r\n    reset: function() { }\r\n};\r\n\r\n/**\r\n * get a usable string, used as event postfix\r\n * @param {Const} state\r\n * @returns {String} state\r\n */\r\nfunction stateStr(state) {\r\n    if (state & STATE_CANCELLED) {\r\n        return 'cancel';\r\n    } else if (state & STATE_ENDED) {\r\n        return 'end';\r\n    } else if (state & STATE_CHANGED) {\r\n        return 'move';\r\n    } else if (state & STATE_BEGAN) {\r\n        return 'start';\r\n    }\r\n    return '';\r\n}\r\n\r\n/**\r\n * direction cons to string\r\n * @param {Const} direction\r\n * @returns {String}\r\n */\r\nfunction directionStr(direction) {\r\n    if (direction == DIRECTION_DOWN) {\r\n        return 'down';\r\n    } else if (direction == DIRECTION_UP) {\r\n        return 'up';\r\n    } else if (direction == DIRECTION_LEFT) {\r\n        return 'left';\r\n    } else if (direction == DIRECTION_RIGHT) {\r\n        return 'right';\r\n    }\r\n    return '';\r\n}\r\n\r\n/**\r\n * get a recognizer by name if it is bound to a manager\r\n * @param {Recognizer|String} otherRecognizer\r\n * @param {Recognizer} recognizer\r\n * @returns {Recognizer}\r\n */\r\nfunction getRecognizerByNameIfManager(otherRecognizer, recognizer) {\r\n    var manager = recognizer.manager;\r\n    if (manager) {\r\n        return manager.get(otherRecognizer);\r\n    }\r\n    return otherRecognizer;\r\n}\r\n\r\n/**\r\n * This recognizer is just used as a base for the simple attribute recognizers.\r\n * @constructor\r\n * @extends Recognizer\r\n */\r\nfunction AttrRecognizer() {\r\n    Recognizer.apply(this, arguments);\r\n}\r\n\r\ninherit(AttrRecognizer, Recognizer, {\r\n    /**\r\n     * @namespace\r\n     * @memberof AttrRecognizer\r\n     */\r\n    defaults: {\r\n        /**\r\n         * @type {Number}\r\n         * @default 1\r\n         */\r\n        pointers: 1\r\n    },\r\n\r\n    /**\r\n     * Used to check if it the recognizer receives valid input, like input.distance > 10.\r\n     * @memberof AttrRecognizer\r\n     * @param {Object} input\r\n     * @returns {Boolean} recognized\r\n     */\r\n    attrTest: function(input) {\r\n        var optionPointers = this.options.pointers;\r\n        return optionPointers === 0 || input.pointers.length === optionPointers;\r\n    },\r\n\r\n    /**\r\n     * Process the input and return the state for the recognizer\r\n     * @memberof AttrRecognizer\r\n     * @param {Object} input\r\n     * @returns {*} State\r\n     */\r\n    process: function(input) {\r\n        var state = this.state;\r\n        var eventType = input.eventType;\r\n\r\n        var isRecognized = state & (STATE_BEGAN | STATE_CHANGED);\r\n        var isValid = this.attrTest(input);\r\n\r\n        // on cancel input and we've recognized before, return STATE_CANCELLED\r\n        if (isRecognized && (eventType & INPUT_CANCEL || !isValid)) {\r\n            return state | STATE_CANCELLED;\r\n        } else if (isRecognized || isValid) {\r\n            if (eventType & INPUT_END) {\r\n                return state | STATE_ENDED;\r\n            } else if (!(state & STATE_BEGAN)) {\r\n                return STATE_BEGAN;\r\n            }\r\n            return state | STATE_CHANGED;\r\n        }\r\n        return STATE_FAILED;\r\n    }\r\n});\r\n\r\n/**\r\n * Pan\r\n * Recognized when the pointer is down and moved in the allowed direction.\r\n * @constructor\r\n * @extends AttrRecognizer\r\n */\r\nfunction PanRecognizer() {\r\n    AttrRecognizer.apply(this, arguments);\r\n\r\n    this.pX = null;\r\n    this.pY = null;\r\n}\r\n\r\ninherit(PanRecognizer, AttrRecognizer, {\r\n    /**\r\n     * @namespace\r\n     * @memberof PanRecognizer\r\n     */\r\n    defaults: {\r\n        event: 'pan',\r\n        threshold: 10,\r\n        pointers: 1,\r\n        direction: DIRECTION_ALL\r\n    },\r\n\r\n    getTouchAction: function() {\r\n        var direction = this.options.direction;\r\n        var actions = [];\r\n        if (direction & DIRECTION_HORIZONTAL) {\r\n            actions.push(TOUCH_ACTION_PAN_Y);\r\n        }\r\n        if (direction & DIRECTION_VERTICAL) {\r\n            actions.push(TOUCH_ACTION_PAN_X);\r\n        }\r\n        return actions;\r\n    },\r\n\r\n    directionTest: function(input) {\r\n        var options = this.options;\r\n        var hasMoved = true;\r\n        var distance = input.distance;\r\n        var direction = input.direction;\r\n        var x = input.deltaX;\r\n        var y = input.deltaY;\r\n\r\n        // lock to axis?\r\n        if (!(direction & options.direction)) {\r\n            if (options.direction & DIRECTION_HORIZONTAL) {\r\n                direction = (x === 0) ? DIRECTION_NONE : (x < 0) ? DIRECTION_LEFT : DIRECTION_RIGHT;\r\n                hasMoved = x != this.pX;\r\n                distance = Math.abs(input.deltaX);\r\n            } else {\r\n                direction = (y === 0) ? DIRECTION_NONE : (y < 0) ? DIRECTION_UP : DIRECTION_DOWN;\r\n                hasMoved = y != this.pY;\r\n                distance = Math.abs(input.deltaY);\r\n            }\r\n        }\r\n        input.direction = direction;\r\n        return hasMoved && distance > options.threshold && direction & options.direction;\r\n    },\r\n\r\n    attrTest: function(input) {\r\n        return AttrRecognizer.prototype.attrTest.call(this, input) &&\r\n            (this.state & STATE_BEGAN || (!(this.state & STATE_BEGAN) && this.directionTest(input)));\r\n    },\r\n\r\n    emit: function(input) {\r\n\r\n        this.pX = input.deltaX;\r\n        this.pY = input.deltaY;\r\n\r\n        var direction = directionStr(input.direction);\r\n\r\n        if (direction) {\r\n            input.additionalEvent = this.options.event + direction;\r\n        }\r\n        this._super.emit.call(this, input);\r\n    }\r\n});\r\n\r\n/**\r\n * Pinch\r\n * Recognized when two or more pointers are moving toward (zoom-in) or away from each other (zoom-out).\r\n * @constructor\r\n * @extends AttrRecognizer\r\n */\r\nfunction PinchRecognizer() {\r\n    AttrRecognizer.apply(this, arguments);\r\n}\r\n\r\ninherit(PinchRecognizer, AttrRecognizer, {\r\n    /**\r\n     * @namespace\r\n     * @memberof PinchRecognizer\r\n     */\r\n    defaults: {\r\n        event: 'pinch',\r\n        threshold: 0,\r\n        pointers: 2\r\n    },\r\n\r\n    getTouchAction: function() {\r\n        return [TOUCH_ACTION_NONE];\r\n    },\r\n\r\n    attrTest: function(input) {\r\n        return this._super.attrTest.call(this, input) &&\r\n            (Math.abs(input.scale - 1) > this.options.threshold || this.state & STATE_BEGAN);\r\n    },\r\n\r\n    emit: function(input) {\r\n        if (input.scale !== 1) {\r\n            var inOut = input.scale < 1 ? 'in' : 'out';\r\n            input.additionalEvent = this.options.event + inOut;\r\n        }\r\n        this._super.emit.call(this, input);\r\n    }\r\n});\r\n\r\n/**\r\n * Press\r\n * Recognized when the pointer is down for x ms without any movement.\r\n * @constructor\r\n * @extends Recognizer\r\n */\r\nfunction PressRecognizer() {\r\n    Recognizer.apply(this, arguments);\r\n\r\n    this._timer = null;\r\n    this._input = null;\r\n}\r\n\r\ninherit(PressRecognizer, Recognizer, {\r\n    /**\r\n     * @namespace\r\n     * @memberof PressRecognizer\r\n     */\r\n    defaults: {\r\n        event: 'press',\r\n        pointers: 1,\r\n        time: 251, // minimal time of the pointer to be pressed\r\n        threshold: 9 // a minimal movement is ok, but keep it low\r\n    },\r\n\r\n    getTouchAction: function() {\r\n        return [TOUCH_ACTION_AUTO];\r\n    },\r\n\r\n    process: function(input) {\r\n        var options = this.options;\r\n        var validPointers = input.pointers.length === options.pointers;\r\n        var validMovement = input.distance < options.threshold;\r\n        var validTime = input.deltaTime > options.time;\r\n\r\n        this._input = input;\r\n\r\n        // we only allow little movement\r\n        // and we've reached an end event, so a tap is possible\r\n        if (!validMovement || !validPointers || (input.eventType & (INPUT_END | INPUT_CANCEL) && !validTime)) {\r\n            this.reset();\r\n        } else if (input.eventType & INPUT_START) {\r\n            this.reset();\r\n            this._timer = setTimeoutContext(function() {\r\n                this.state = STATE_RECOGNIZED;\r\n                this.tryEmit();\r\n            }, options.time, this);\r\n        } else if (input.eventType & INPUT_END) {\r\n            return STATE_RECOGNIZED;\r\n        }\r\n        return STATE_FAILED;\r\n    },\r\n\r\n    reset: function() {\r\n        clearTimeout(this._timer);\r\n    },\r\n\r\n    emit: function(input) {\r\n        if (this.state !== STATE_RECOGNIZED) {\r\n            return;\r\n        }\r\n\r\n        if (input && (input.eventType & INPUT_END)) {\r\n            this.manager.emit(this.options.event + 'up', input);\r\n        } else {\r\n            this._input.timeStamp = now();\r\n            this.manager.emit(this.options.event, this._input);\r\n        }\r\n    }\r\n});\r\n\r\n/**\r\n * Rotate\r\n * Recognized when two or more pointer are moving in a circular motion.\r\n * @constructor\r\n * @extends AttrRecognizer\r\n */\r\nfunction RotateRecognizer() {\r\n    AttrRecognizer.apply(this, arguments);\r\n}\r\n\r\ninherit(RotateRecognizer, AttrRecognizer, {\r\n    /**\r\n     * @namespace\r\n     * @memberof RotateRecognizer\r\n     */\r\n    defaults: {\r\n        event: 'rotate',\r\n        threshold: 0,\r\n        pointers: 2\r\n    },\r\n\r\n    getTouchAction: function() {\r\n        return [TOUCH_ACTION_NONE];\r\n    },\r\n\r\n    attrTest: function(input) {\r\n        return this._super.attrTest.call(this, input) &&\r\n            (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);\r\n    }\r\n});\r\n\r\n/**\r\n * Swipe\r\n * Recognized when the pointer is moving fast (velocity), with enough distance in the allowed direction.\r\n * @constructor\r\n * @extends AttrRecognizer\r\n */\r\nfunction SwipeRecognizer() {\r\n    AttrRecognizer.apply(this, arguments);\r\n}\r\n\r\ninherit(SwipeRecognizer, AttrRecognizer, {\r\n    /**\r\n     * @namespace\r\n     * @memberof SwipeRecognizer\r\n     */\r\n    defaults: {\r\n        event: 'swipe',\r\n        threshold: 10,\r\n        velocity: 0.3,\r\n        direction: DIRECTION_HORIZONTAL | DIRECTION_VERTICAL,\r\n        pointers: 1\r\n    },\r\n\r\n    getTouchAction: function() {\r\n        return PanRecognizer.prototype.getTouchAction.call(this);\r\n    },\r\n\r\n    attrTest: function(input) {\r\n        var direction = this.options.direction;\r\n        var velocity;\r\n\r\n        if (direction & (DIRECTION_HORIZONTAL | DIRECTION_VERTICAL)) {\r\n            velocity = input.overallVelocity;\r\n        } else if (direction & DIRECTION_HORIZONTAL) {\r\n            velocity = input.overallVelocityX;\r\n        } else if (direction & DIRECTION_VERTICAL) {\r\n            velocity = input.overallVelocityY;\r\n        }\r\n\r\n        return this._super.attrTest.call(this, input) &&\r\n            direction & input.offsetDirection &&\r\n            input.distance > this.options.threshold &&\r\n            input.maxPointers == this.options.pointers &&\r\n            abs(velocity) > this.options.velocity && input.eventType & INPUT_END;\r\n    },\r\n\r\n    emit: function(input) {\r\n        var direction = directionStr(input.offsetDirection);\r\n        if (direction) {\r\n            this.manager.emit(this.options.event + direction, input);\r\n        }\r\n\r\n        this.manager.emit(this.options.event, input);\r\n    }\r\n});\r\n\r\n/**\r\n * A tap is ecognized when the pointer is doing a small tap/click. Multiple taps are recognized if they occur\r\n * between the given interval and position. The delay option can be used to recognize multi-taps without firing\r\n * a single tap.\r\n *\r\n * The eventData from the emitted event contains the property `tapCount`, which contains the amount of\r\n * multi-taps being recognized.\r\n * @constructor\r\n * @extends Recognizer\r\n */\r\nfunction TapRecognizer() {\r\n    Recognizer.apply(this, arguments);\r\n\r\n    // previous time and center,\r\n    // used for tap counting\r\n    this.pTime = false;\r\n    this.pCenter = false;\r\n\r\n    this._timer = null;\r\n    this._input = null;\r\n    this.count = 0;\r\n}\r\n\r\ninherit(TapRecognizer, Recognizer, {\r\n    /**\r\n     * @namespace\r\n     * @memberof PinchRecognizer\r\n     */\r\n    defaults: {\r\n        event: 'tap',\r\n        pointers: 1,\r\n        taps: 1,\r\n        interval: 300, // max time between the multi-tap taps\r\n        time: 250, // max time of the pointer to be down (like finger on the screen)\r\n        threshold: 9, // a minimal movement is ok, but keep it low\r\n        posThreshold: 10 // a multi-tap can be a bit off the initial position\r\n    },\r\n\r\n    getTouchAction: function() {\r\n        return [TOUCH_ACTION_MANIPULATION];\r\n    },\r\n\r\n    process: function(input) {\r\n        var options = this.options;\r\n\r\n        var validPointers = input.pointers.length === options.pointers;\r\n        var validMovement = input.distance < options.threshold;\r\n        var validTouchTime = input.deltaTime < options.time;\r\n\r\n        this.reset();\r\n\r\n        if ((input.eventType & INPUT_START) && (this.count === 0)) {\r\n            return this.failTimeout();\r\n        }\r\n\r\n        // we only allow little movement\r\n        // and we've reached an end event, so a tap is possible\r\n        if (validMovement && validTouchTime && validPointers) {\r\n            if (input.eventType != INPUT_END) {\r\n                return this.failTimeout();\r\n            }\r\n\r\n            var validInterval = this.pTime ? (input.timeStamp - this.pTime < options.interval) : true;\r\n            var validMultiTap = !this.pCenter || getDistance(this.pCenter, input.center) < options.posThreshold;\r\n\r\n            this.pTime = input.timeStamp;\r\n            this.pCenter = input.center;\r\n\r\n            if (!validMultiTap || !validInterval) {\r\n                this.count = 1;\r\n            } else {\r\n                this.count += 1;\r\n            }\r\n\r\n            this._input = input;\r\n\r\n            // if tap count matches we have recognized it,\r\n            // else it has began recognizing...\r\n            var tapCount = this.count % options.taps;\r\n            if (tapCount === 0) {\r\n                // no failing requirements, immediately trigger the tap event\r\n                // or wait as long as the multitap interval to trigger\r\n                if (!this.hasRequireFailures()) {\r\n                    return STATE_RECOGNIZED;\r\n                } else {\r\n                    this._timer = setTimeoutContext(function() {\r\n                        this.state = STATE_RECOGNIZED;\r\n                        this.tryEmit();\r\n                    }, options.interval, this);\r\n                    return STATE_BEGAN;\r\n                }\r\n            }\r\n        }\r\n        return STATE_FAILED;\r\n    },\r\n\r\n    failTimeout: function() {\r\n        this._timer = setTimeoutContext(function() {\r\n            this.state = STATE_FAILED;\r\n        }, this.options.interval, this);\r\n        return STATE_FAILED;\r\n    },\r\n\r\n    reset: function() {\r\n        clearTimeout(this._timer);\r\n    },\r\n\r\n    emit: function() {\r\n        if (this.state == STATE_RECOGNIZED) {\r\n            this._input.tapCount = this.count;\r\n            this.manager.emit(this.options.event, this._input);\r\n        }\r\n    }\r\n});\r\n\r\n/**\r\n * Simple way to create a manager with a default set of recognizers.\r\n * @param {HTMLElement} element\r\n * @param {Object} [options]\r\n * @constructor\r\n */\r\nfunction Hammer(element, options) {\r\n    options = options || {};\r\n    options.recognizers = ifUndefined(options.recognizers, Hammer.defaults.preset);\r\n    return new Manager(element, options);\r\n}\r\n\r\n/**\r\n * @const {string}\r\n */\r\nHammer.VERSION = '2.0.7';\r\n\r\n/**\r\n * default settings\r\n * @namespace\r\n */\r\nHammer.defaults = {\r\n    /**\r\n     * set if DOM events are being triggered.\r\n     * But this is slower and unused by simple implementations, so disabled by default.\r\n     * @type {Boolean}\r\n     * @default false\r\n     */\r\n    domEvents: false,\r\n\r\n    /**\r\n     * The value for the touchAction property/fallback.\r\n     * When set to `compute` it will magically set the correct value based on the added recognizers.\r\n     * @type {String}\r\n     * @default compute\r\n     */\r\n    touchAction: TOUCH_ACTION_COMPUTE,\r\n\r\n    /**\r\n     * @type {Boolean}\r\n     * @default true\r\n     */\r\n    enable: true,\r\n\r\n    /**\r\n     * EXPERIMENTAL FEATURE -- can be removed/changed\r\n     * Change the parent input target element.\r\n     * If Null, then it is being set the to main element.\r\n     * @type {Null|EventTarget}\r\n     * @default null\r\n     */\r\n    inputTarget: null,\r\n\r\n    /**\r\n     * force an input class\r\n     * @type {Null|Function}\r\n     * @default null\r\n     */\r\n    inputClass: null,\r\n\r\n    /**\r\n     * Default recognizer setup when calling `Hammer()`\r\n     * When creating a new Manager these will be skipped.\r\n     * @type {Array}\r\n     */\r\n    preset: [\r\n        // RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]\r\n        [RotateRecognizer, {enable: false}],\r\n        [PinchRecognizer, {enable: false}, ['rotate']],\r\n        [SwipeRecognizer, {direction: DIRECTION_HORIZONTAL}],\r\n        [PanRecognizer, {direction: DIRECTION_HORIZONTAL}, ['swipe']],\r\n        [TapRecognizer],\r\n        [TapRecognizer, {event: 'doubletap', taps: 2}, ['tap']],\r\n        [PressRecognizer]\r\n    ],\r\n\r\n    /**\r\n     * Some CSS properties can be used to improve the working of Hammer.\r\n     * Add them to this method and they will be set when creating a new Manager.\r\n     * @namespace\r\n     */\r\n    cssProps: {\r\n        /**\r\n         * Disables text selection to improve the dragging gesture. Mainly for desktop browsers.\r\n         * @type {String}\r\n         * @default 'none'\r\n         */\r\n        userSelect: 'none',\r\n\r\n        /**\r\n         * Disable the Windows Phone grippers when pressing an element.\r\n         * @type {String}\r\n         * @default 'none'\r\n         */\r\n        touchSelect: 'none',\r\n\r\n        /**\r\n         * Disables the default callout shown when you touch and hold a touch target.\r\n         * On iOS, when you touch and hold a touch target such as a link, Safari displays\r\n         * a callout containing information about the link. This property allows you to disable that callout.\r\n         * @type {String}\r\n         * @default 'none'\r\n         */\r\n        touchCallout: 'none',\r\n\r\n        /**\r\n         * Specifies whether zooming is enabled. Used by IE10>\r\n         * @type {String}\r\n         * @default 'none'\r\n         */\r\n        contentZooming: 'none',\r\n\r\n        /**\r\n         * Specifies that an entire element should be draggable instead of its contents. Mainly for desktop browsers.\r\n         * @type {String}\r\n         * @default 'none'\r\n         */\r\n        userDrag: 'none',\r\n\r\n        /**\r\n         * Overrides the highlight color shown when the user taps a link or a JavaScript\r\n         * clickable element in iOS. This property obeys the alpha value, if specified.\r\n         * @type {String}\r\n         * @default 'rgba(0,0,0,0)'\r\n         */\r\n        tapHighlightColor: 'rgba(0,0,0,0)'\r\n    }\r\n};\r\n\r\nvar STOP = 1;\r\nvar FORCED_STOP = 2;\r\n\r\n/**\r\n * Manager\r\n * @param {HTMLElement} element\r\n * @param {Object} [options]\r\n * @constructor\r\n */\r\nfunction Manager(element, options) {\r\n    this.options = assign({}, Hammer.defaults, options || {});\r\n\r\n    this.options.inputTarget = this.options.inputTarget || element;\r\n\r\n    this.handlers = {};\r\n    this.session = {};\r\n    this.recognizers = [];\r\n    this.oldCssProps = {};\r\n\r\n    this.element = element;\r\n    this.input = createInputInstance(this);\r\n    this.touchAction = new TouchAction(this, this.options.touchAction);\r\n\r\n    toggleCssProps(this, true);\r\n\r\n    each(this.options.recognizers, function(item) {\r\n        var recognizer = this.add(new (item[0])(item[1]));\r\n        item[2] && recognizer.recognizeWith(item[2]);\r\n        item[3] && recognizer.requireFailure(item[3]);\r\n    }, this);\r\n}\r\n\r\nManager.prototype = {\r\n    /**\r\n     * set options\r\n     * @param {Object} options\r\n     * @returns {Manager}\r\n     */\r\n    set: function(options) {\r\n        assign(this.options, options);\r\n\r\n        // Options that need a little more setup\r\n        if (options.touchAction) {\r\n            this.touchAction.update();\r\n        }\r\n        if (options.inputTarget) {\r\n            // Clean up existing event listeners and reinitialize\r\n            this.input.destroy();\r\n            this.input.target = options.inputTarget;\r\n            this.input.init();\r\n        }\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * stop recognizing for this session.\r\n     * This session will be discarded, when a new [input]start event is fired.\r\n     * When forced, the recognizer cycle is stopped immediately.\r\n     * @param {Boolean} [force]\r\n     */\r\n    stop: function(force) {\r\n        this.session.stopped = force ? FORCED_STOP : STOP;\r\n    },\r\n\r\n    /**\r\n     * run the recognizers!\r\n     * called by the inputHandler function on every movement of the pointers (touches)\r\n     * it walks through all the recognizers and tries to detect the gesture that is being made\r\n     * @param {Object} inputData\r\n     */\r\n    recognize: function(inputData) {\r\n        var session = this.session;\r\n        if (session.stopped) {\r\n            return;\r\n        }\r\n\r\n        // run the touch-action polyfill\r\n        this.touchAction.preventDefaults(inputData);\r\n\r\n        var recognizer;\r\n        var recognizers = this.recognizers;\r\n\r\n        // this holds the recognizer that is being recognized.\r\n        // so the recognizer's state needs to be BEGAN, CHANGED, ENDED or RECOGNIZED\r\n        // if no recognizer is detecting a thing, it is set to `null`\r\n        var curRecognizer = session.curRecognizer;\r\n\r\n        // reset when the last recognizer is recognized\r\n        // or when we're in a new session\r\n        if (!curRecognizer || (curRecognizer && curRecognizer.state & STATE_RECOGNIZED)) {\r\n            curRecognizer = session.curRecognizer = null;\r\n        }\r\n\r\n        var i = 0;\r\n        while (i < recognizers.length) {\r\n            recognizer = recognizers[i];\r\n\r\n            // find out if we are allowed try to recognize the input for this one.\r\n            // 1.   allow if the session is NOT forced stopped (see the .stop() method)\r\n            // 2.   allow if we still haven't recognized a gesture in this session, or the this recognizer is the one\r\n            //      that is being recognized.\r\n            // 3.   allow if the recognizer is allowed to run simultaneous with the current recognized recognizer.\r\n            //      this can be setup with the `recognizeWith()` method on the recognizer.\r\n            if (session.stopped !== FORCED_STOP && ( // 1\r\n                    !curRecognizer || recognizer == curRecognizer || // 2\r\n                    recognizer.canRecognizeWith(curRecognizer))) { // 3\r\n                recognizer.recognize(inputData);\r\n            } else {\r\n                recognizer.reset();\r\n            }\r\n\r\n            // if the recognizer has been recognizing the input as a valid gesture, we want to store this one as the\r\n            // current active recognizer. but only if we don't already have an active recognizer\r\n            if (!curRecognizer && recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED)) {\r\n                curRecognizer = session.curRecognizer = recognizer;\r\n            }\r\n            i++;\r\n        }\r\n    },\r\n\r\n    /**\r\n     * get a recognizer by its event name.\r\n     * @param {Recognizer|String} recognizer\r\n     * @returns {Recognizer|Null}\r\n     */\r\n    get: function(recognizer) {\r\n        if (recognizer instanceof Recognizer) {\r\n            return recognizer;\r\n        }\r\n\r\n        var recognizers = this.recognizers;\r\n        for (var i = 0; i < recognizers.length; i++) {\r\n            if (recognizers[i].options.event == recognizer) {\r\n                return recognizers[i];\r\n            }\r\n        }\r\n        return null;\r\n    },\r\n\r\n    /**\r\n     * add a recognizer to the manager\r\n     * existing recognizers with the same event name will be removed\r\n     * @param {Recognizer} recognizer\r\n     * @returns {Recognizer|Manager}\r\n     */\r\n    add: function(recognizer) {\r\n        if (invokeArrayArg(recognizer, 'add', this)) {\r\n            return this;\r\n        }\r\n\r\n        // remove existing\r\n        var existing = this.get(recognizer.options.event);\r\n        if (existing) {\r\n            this.remove(existing);\r\n        }\r\n\r\n        this.recognizers.push(recognizer);\r\n        recognizer.manager = this;\r\n\r\n        this.touchAction.update();\r\n        return recognizer;\r\n    },\r\n\r\n    /**\r\n     * remove a recognizer by name or instance\r\n     * @param {Recognizer|String} recognizer\r\n     * @returns {Manager}\r\n     */\r\n    remove: function(recognizer) {\r\n        if (invokeArrayArg(recognizer, 'remove', this)) {\r\n            return this;\r\n        }\r\n\r\n        recognizer = this.get(recognizer);\r\n\r\n        // let's make sure this recognizer exists\r\n        if (recognizer) {\r\n            var recognizers = this.recognizers;\r\n            var index = inArray(recognizers, recognizer);\r\n\r\n            if (index !== -1) {\r\n                recognizers.splice(index, 1);\r\n                this.touchAction.update();\r\n            }\r\n        }\r\n\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * bind event\r\n     * @param {String} events\r\n     * @param {Function} handler\r\n     * @returns {EventEmitter} this\r\n     */\r\n    on: function(events, handler) {\r\n        if (events === undefined) {\r\n            return;\r\n        }\r\n        if (handler === undefined) {\r\n            return;\r\n        }\r\n\r\n        var handlers = this.handlers;\r\n        each(splitStr(events), function(event) {\r\n            handlers[event] = handlers[event] || [];\r\n            handlers[event].push(handler);\r\n        });\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * unbind event, leave emit blank to remove all handlers\r\n     * @param {String} events\r\n     * @param {Function} [handler]\r\n     * @returns {EventEmitter} this\r\n     */\r\n    off: function(events, handler) {\r\n        if (events === undefined) {\r\n            return;\r\n        }\r\n\r\n        var handlers = this.handlers;\r\n        each(splitStr(events), function(event) {\r\n            if (!handler) {\r\n                delete handlers[event];\r\n            } else {\r\n                handlers[event] && handlers[event].splice(inArray(handlers[event], handler), 1);\r\n            }\r\n        });\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * emit event to the listeners\r\n     * @param {String} event\r\n     * @param {Object} data\r\n     */\r\n    emit: function(event, data) {\r\n        // we also want to trigger dom events\r\n        if (this.options.domEvents) {\r\n            triggerDomEvent(event, data);\r\n        }\r\n\r\n        // no handlers, so skip it all\r\n        var handlers = this.handlers[event] && this.handlers[event].slice();\r\n        if (!handlers || !handlers.length) {\r\n            return;\r\n        }\r\n\r\n        data.type = event;\r\n        data.preventDefault = function() {\r\n            data.srcEvent.preventDefault();\r\n        };\r\n\r\n        var i = 0;\r\n        while (i < handlers.length) {\r\n            handlers[i](data);\r\n            i++;\r\n        }\r\n    },\r\n\r\n    /**\r\n     * destroy the manager and unbinds all events\r\n     * it doesn't unbind dom events, that is the user own responsibility\r\n     */\r\n    destroy: function() {\r\n        this.element && toggleCssProps(this, false);\r\n\r\n        this.handlers = {};\r\n        this.session = {};\r\n        this.input.destroy();\r\n        this.element = null;\r\n    }\r\n};\r\n\r\n/**\r\n * add/remove the css properties as defined in manager.options.cssProps\r\n * @param {Manager} manager\r\n * @param {Boolean} add\r\n */\r\nfunction toggleCssProps(manager, add) {\r\n    var element = manager.element;\r\n    if (!element.style) {\r\n        return;\r\n    }\r\n    var prop;\r\n    each(manager.options.cssProps, function(value, name) {\r\n        prop = prefixed(element.style, name);\r\n        if (add) {\r\n            manager.oldCssProps[prop] = element.style[prop];\r\n            element.style[prop] = value;\r\n        } else {\r\n            element.style[prop] = manager.oldCssProps[prop] || '';\r\n        }\r\n    });\r\n    if (!add) {\r\n        manager.oldCssProps = {};\r\n    }\r\n}\r\n\r\n/**\r\n * trigger dom event\r\n * @param {String} event\r\n * @param {Object} data\r\n */\r\nfunction triggerDomEvent(event, data) {\r\n    var gestureEvent = document.createEvent('Event');\r\n    gestureEvent.initEvent(event, true, true);\r\n    gestureEvent.gesture = data;\r\n    data.target.dispatchEvent(gestureEvent);\r\n}\r\n\r\nassign(Hammer, {\r\n    INPUT_START: INPUT_START,\r\n    INPUT_MOVE: INPUT_MOVE,\r\n    INPUT_END: INPUT_END,\r\n    INPUT_CANCEL: INPUT_CANCEL,\r\n\r\n    STATE_POSSIBLE: STATE_POSSIBLE,\r\n    STATE_BEGAN: STATE_BEGAN,\r\n    STATE_CHANGED: STATE_CHANGED,\r\n    STATE_ENDED: STATE_ENDED,\r\n    STATE_RECOGNIZED: STATE_RECOGNIZED,\r\n    STATE_CANCELLED: STATE_CANCELLED,\r\n    STATE_FAILED: STATE_FAILED,\r\n\r\n    DIRECTION_NONE: DIRECTION_NONE,\r\n    DIRECTION_LEFT: DIRECTION_LEFT,\r\n    DIRECTION_RIGHT: DIRECTION_RIGHT,\r\n    DIRECTION_UP: DIRECTION_UP,\r\n    DIRECTION_DOWN: DIRECTION_DOWN,\r\n    DIRECTION_HORIZONTAL: DIRECTION_HORIZONTAL,\r\n    DIRECTION_VERTICAL: DIRECTION_VERTICAL,\r\n    DIRECTION_ALL: DIRECTION_ALL,\r\n\r\n    Manager: Manager,\r\n    Input: Input,\r\n    TouchAction: TouchAction,\r\n\r\n    TouchInput: TouchInput,\r\n    MouseInput: MouseInput,\r\n    PointerEventInput: PointerEventInput,\r\n    TouchMouseInput: TouchMouseInput,\r\n    SingleTouchInput: SingleTouchInput,\r\n\r\n    Recognizer: Recognizer,\r\n    AttrRecognizer: AttrRecognizer,\r\n    Tap: TapRecognizer,\r\n    Pan: PanRecognizer,\r\n    Swipe: SwipeRecognizer,\r\n    Pinch: PinchRecognizer,\r\n    Rotate: RotateRecognizer,\r\n    Press: PressRecognizer,\r\n\r\n    on: addEventListeners,\r\n    off: removeEventListeners,\r\n    each: each,\r\n    merge: merge,\r\n    extend: extend,\r\n    assign: assign,\r\n    inherit: inherit,\r\n    bindFn: bindFn,\r\n    prefixed: prefixed\r\n});\r\n\r\n// this prevents errors when Hammer is loaded in the presence of an AMD\r\n//  style loader but by script tag, not by the loader.\r\nvar freeGlobal = (typeof window !== 'undefined' ? window : (typeof self !== 'undefined' ? self : {})); // jshint ignore:line\r\nfreeGlobal.Hammer = Hammer;\r\n\r\nif (typeof define === 'function' && define.amd) {\r\n    define(function() {\r\n        return Hammer;\r\n    });\r\n} else if (typeof module != 'undefined' && module.exports) {\r\n    module.exports = Hammer;\r\n} else {\r\n    window[exportName] = Hammer;\r\n}\r\n\r\n})(window, document, 'Hammer');\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/hammerjs/hammer.js\n// module id = 490\n// module chunks = 2","var __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * @license Angular v4.1.3\r\n * (c) 2010-2017 Google, Inc. https://angular.io/\r\n * License: MIT\r\n */\r\nimport { ANALYZE_FOR_ENTRY_COMPONENTS, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory, ComponentFactoryResolver, ComponentRef, ContentChild, ContentChildren, Directive, ElementRef, Host, HostBinding, HostListener, Inject, Injectable, InjectionToken, Injector, Input, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory, NgModuleRef, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_INITIALIZER, Pipe, Query, QueryList, ReflectiveInjector, Renderer, SecurityContext, Self, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Type, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation, animate, createPlatformFactory, group, isDevMode, keyframes, platformCore, resolveForwardRef, sequence, state, style, transition, trigger, ɵCodegenComponentFactoryResolver, ɵConsole, ɵEMPTY_ARRAY, ɵEMPTY_MAP, ɵERROR_COMPONENT_TYPE, ɵLIFECYCLE_HOOKS_VALUES, ɵLifecycleHooks, ɵNgModuleInjector, ɵReflectionCapabilities, ɵReflector, ɵReflectorReader, ɵand, ɵccf, ɵcrt, ɵdid, ɵeld, ɵelementEventFullName, ɵgetComponentViewDefinitionFactory, ɵinlineInterpolate, ɵinterpolate, ɵncd, ɵnov, ɵpad, ɵpid, ɵpod, ɵppd, ɵprd, ɵqud, ɵreflector, ɵregisterModuleFactory, ɵstringify, ɵted, ɵunv, ɵvid } from '@angular/core';\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the common package.\r\n */\r\n/**\r\n * \\@stable\r\n */\r\nvar VERSION = new Version('4.1.3');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A segment of text within the template.\r\n */\r\nvar TextAst = (function () {\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} ngContentIndex\r\n     * @param {?} sourceSpan\r\n     */\r\n    function TextAst(value, ngContentIndex, sourceSpan) {\r\n        this.value = value;\r\n        this.ngContentIndex = ngContentIndex;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TextAst.prototype.visit = function (visitor, context) { return visitor.visitText(this, context); };\r\n    return TextAst;\r\n}());\r\n/**\r\n * A bound expression within the text of a template.\r\n */\r\nvar BoundTextAst = (function () {\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} ngContentIndex\r\n     * @param {?} sourceSpan\r\n     */\r\n    function BoundTextAst(value, ngContentIndex, sourceSpan) {\r\n        this.value = value;\r\n        this.ngContentIndex = ngContentIndex;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    BoundTextAst.prototype.visit = function (visitor, context) {\r\n        return visitor.visitBoundText(this, context);\r\n    };\r\n    return BoundTextAst;\r\n}());\r\n/**\r\n * A plain attribute on an element.\r\n */\r\nvar AttrAst = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     */\r\n    function AttrAst(name, value, sourceSpan) {\r\n        this.name = name;\r\n        this.value = value;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AttrAst.prototype.visit = function (visitor, context) { return visitor.visitAttr(this, context); };\r\n    return AttrAst;\r\n}());\r\n/**\r\n * A binding for an element property (e.g. `[property]=\"expression\"`) or an animation trigger (e.g.\r\n * `[\\@trigger]=\"stateExp\"`)\r\n */\r\nvar BoundElementPropertyAst = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} type\r\n     * @param {?} securityContext\r\n     * @param {?} value\r\n     * @param {?} unit\r\n     * @param {?} sourceSpan\r\n     */\r\n    function BoundElementPropertyAst(name, type, securityContext, value, unit, sourceSpan) {\r\n        this.name = name;\r\n        this.type = type;\r\n        this.securityContext = securityContext;\r\n        this.value = value;\r\n        this.unit = unit;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    BoundElementPropertyAst.prototype.visit = function (visitor, context) {\r\n        return visitor.visitElementProperty(this, context);\r\n    };\r\n    Object.defineProperty(BoundElementPropertyAst.prototype, \"isAnimation\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.type === PropertyBindingType.Animation; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return BoundElementPropertyAst;\r\n}());\r\n/**\r\n * A binding for an element event (e.g. `(event)=\"handler()\"`) or an animation trigger event (e.g.\r\n * `(\\@trigger.phase)=\"callback($event)\"`).\r\n */\r\nvar BoundEventAst = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} target\r\n     * @param {?} phase\r\n     * @param {?} handler\r\n     * @param {?} sourceSpan\r\n     */\r\n    function BoundEventAst(name, target, phase, handler, sourceSpan) {\r\n        this.name = name;\r\n        this.target = target;\r\n        this.phase = phase;\r\n        this.handler = handler;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} target\r\n     * @param {?} phase\r\n     * @return {?}\r\n     */\r\n    BoundEventAst.calcFullName = function (name, target, phase) {\r\n        if (target) {\r\n            return target + \":\" + name;\r\n        }\r\n        else if (phase) {\r\n            return \"@\" + name + \".\" + phase;\r\n        }\r\n        else {\r\n            return name;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    BoundEventAst.prototype.visit = function (visitor, context) {\r\n        return visitor.visitEvent(this, context);\r\n    };\r\n    Object.defineProperty(BoundEventAst.prototype, \"fullName\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return BoundEventAst.calcFullName(this.name, this.target, this.phase); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(BoundEventAst.prototype, \"isAnimation\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return !!this.phase; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return BoundEventAst;\r\n}());\r\n/**\r\n * A reference declaration on an element (e.g. `let someName=\"expression\"`).\r\n */\r\nvar ReferenceAst = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     */\r\n    function ReferenceAst(name, value, sourceSpan) {\r\n        this.name = name;\r\n        this.value = value;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ReferenceAst.prototype.visit = function (visitor, context) {\r\n        return visitor.visitReference(this, context);\r\n    };\r\n    return ReferenceAst;\r\n}());\r\n/**\r\n * A variable declaration on a <ng-template> (e.g. `var-someName=\"someLocalName\"`).\r\n */\r\nvar VariableAst = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     */\r\n    function VariableAst(name, value, sourceSpan) {\r\n        this.name = name;\r\n        this.value = value;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    VariableAst.prototype.visit = function (visitor, context) {\r\n        return visitor.visitVariable(this, context);\r\n    };\r\n    return VariableAst;\r\n}());\r\n/**\r\n * An element declaration in a template.\r\n */\r\nvar ElementAst = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} attrs\r\n     * @param {?} inputs\r\n     * @param {?} outputs\r\n     * @param {?} references\r\n     * @param {?} directives\r\n     * @param {?} providers\r\n     * @param {?} hasViewContainer\r\n     * @param {?} queryMatches\r\n     * @param {?} children\r\n     * @param {?} ngContentIndex\r\n     * @param {?} sourceSpan\r\n     * @param {?} endSourceSpan\r\n     */\r\n    function ElementAst(name, attrs, inputs, outputs, references, directives, providers, hasViewContainer, queryMatches, children, ngContentIndex, sourceSpan, endSourceSpan) {\r\n        this.name = name;\r\n        this.attrs = attrs;\r\n        this.inputs = inputs;\r\n        this.outputs = outputs;\r\n        this.references = references;\r\n        this.directives = directives;\r\n        this.providers = providers;\r\n        this.hasViewContainer = hasViewContainer;\r\n        this.queryMatches = queryMatches;\r\n        this.children = children;\r\n        this.ngContentIndex = ngContentIndex;\r\n        this.sourceSpan = sourceSpan;\r\n        this.endSourceSpan = endSourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ElementAst.prototype.visit = function (visitor, context) {\r\n        return visitor.visitElement(this, context);\r\n    };\r\n    return ElementAst;\r\n}());\r\n/**\r\n * A `<ng-template>` element included in an Angular template.\r\n */\r\nvar EmbeddedTemplateAst = (function () {\r\n    /**\r\n     * @param {?} attrs\r\n     * @param {?} outputs\r\n     * @param {?} references\r\n     * @param {?} variables\r\n     * @param {?} directives\r\n     * @param {?} providers\r\n     * @param {?} hasViewContainer\r\n     * @param {?} queryMatches\r\n     * @param {?} children\r\n     * @param {?} ngContentIndex\r\n     * @param {?} sourceSpan\r\n     */\r\n    function EmbeddedTemplateAst(attrs, outputs, references, variables, directives, providers, hasViewContainer, queryMatches, children, ngContentIndex, sourceSpan) {\r\n        this.attrs = attrs;\r\n        this.outputs = outputs;\r\n        this.references = references;\r\n        this.variables = variables;\r\n        this.directives = directives;\r\n        this.providers = providers;\r\n        this.hasViewContainer = hasViewContainer;\r\n        this.queryMatches = queryMatches;\r\n        this.children = children;\r\n        this.ngContentIndex = ngContentIndex;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    EmbeddedTemplateAst.prototype.visit = function (visitor, context) {\r\n        return visitor.visitEmbeddedTemplate(this, context);\r\n    };\r\n    return EmbeddedTemplateAst;\r\n}());\r\n/**\r\n * A directive property with a bound value (e.g. `*ngIf=\"condition\").\r\n */\r\nvar BoundDirectivePropertyAst = (function () {\r\n    /**\r\n     * @param {?} directiveName\r\n     * @param {?} templateName\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     */\r\n    function BoundDirectivePropertyAst(directiveName, templateName, value, sourceSpan) {\r\n        this.directiveName = directiveName;\r\n        this.templateName = templateName;\r\n        this.value = value;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    BoundDirectivePropertyAst.prototype.visit = function (visitor, context) {\r\n        return visitor.visitDirectiveProperty(this, context);\r\n    };\r\n    return BoundDirectivePropertyAst;\r\n}());\r\n/**\r\n * A directive declared on an element.\r\n */\r\nvar DirectiveAst = (function () {\r\n    /**\r\n     * @param {?} directive\r\n     * @param {?} inputs\r\n     * @param {?} hostProperties\r\n     * @param {?} hostEvents\r\n     * @param {?} contentQueryStartId\r\n     * @param {?} sourceSpan\r\n     */\r\n    function DirectiveAst(directive, inputs, hostProperties, hostEvents, contentQueryStartId, sourceSpan) {\r\n        this.directive = directive;\r\n        this.inputs = inputs;\r\n        this.hostProperties = hostProperties;\r\n        this.hostEvents = hostEvents;\r\n        this.contentQueryStartId = contentQueryStartId;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    DirectiveAst.prototype.visit = function (visitor, context) {\r\n        return visitor.visitDirective(this, context);\r\n    };\r\n    return DirectiveAst;\r\n}());\r\n/**\r\n * A provider declared on an element\r\n */\r\nvar ProviderAst = (function () {\r\n    /**\r\n     * @param {?} token\r\n     * @param {?} multiProvider\r\n     * @param {?} eager\r\n     * @param {?} providers\r\n     * @param {?} providerType\r\n     * @param {?} lifecycleHooks\r\n     * @param {?} sourceSpan\r\n     */\r\n    function ProviderAst(token, multiProvider, eager, providers, providerType, lifecycleHooks, sourceSpan) {\r\n        this.token = token;\r\n        this.multiProvider = multiProvider;\r\n        this.eager = eager;\r\n        this.providers = providers;\r\n        this.providerType = providerType;\r\n        this.lifecycleHooks = lifecycleHooks;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ProviderAst.prototype.visit = function (visitor, context) {\r\n        // No visit method in the visitor for now...\r\n        return null;\r\n    };\r\n    return ProviderAst;\r\n}());\r\nvar ProviderAstType = {};\r\nProviderAstType.PublicService = 0;\r\nProviderAstType.PrivateService = 1;\r\nProviderAstType.Component = 2;\r\nProviderAstType.Directive = 3;\r\nProviderAstType.Builtin = 4;\r\nProviderAstType[ProviderAstType.PublicService] = \"PublicService\";\r\nProviderAstType[ProviderAstType.PrivateService] = \"PrivateService\";\r\nProviderAstType[ProviderAstType.Component] = \"Component\";\r\nProviderAstType[ProviderAstType.Directive] = \"Directive\";\r\nProviderAstType[ProviderAstType.Builtin] = \"Builtin\";\r\n/**\r\n * Position where content is to be projected (instance of `<ng-content>` in a template).\r\n */\r\nvar NgContentAst = (function () {\r\n    /**\r\n     * @param {?} index\r\n     * @param {?} ngContentIndex\r\n     * @param {?} sourceSpan\r\n     */\r\n    function NgContentAst(index, ngContentIndex, sourceSpan) {\r\n        this.index = index;\r\n        this.ngContentIndex = ngContentIndex;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    NgContentAst.prototype.visit = function (visitor, context) {\r\n        return visitor.visitNgContent(this, context);\r\n    };\r\n    return NgContentAst;\r\n}());\r\nvar PropertyBindingType = {};\r\nPropertyBindingType.Property = 0;\r\nPropertyBindingType.Attribute = 1;\r\nPropertyBindingType.Class = 2;\r\nPropertyBindingType.Style = 3;\r\nPropertyBindingType.Animation = 4;\r\nPropertyBindingType[PropertyBindingType.Property] = \"Property\";\r\nPropertyBindingType[PropertyBindingType.Attribute] = \"Attribute\";\r\nPropertyBindingType[PropertyBindingType.Class] = \"Class\";\r\nPropertyBindingType[PropertyBindingType.Style] = \"Style\";\r\nPropertyBindingType[PropertyBindingType.Animation] = \"Animation\";\r\n/**\r\n * Visit every node in a list of {\\@link TemplateAst}s with the given {\\@link TemplateAstVisitor}.\r\n * @param {?} visitor\r\n * @param {?} asts\r\n * @param {?=} context\r\n * @return {?}\r\n */\r\nfunction templateVisitAll(visitor, asts, context) {\r\n    if (context === void 0) { context = null; }\r\n    var /** @type {?} */ result = [];\r\n    var /** @type {?} */ visit = visitor.visit ?\r\n        function (ast) { return ((visitor.visit))(ast, context) || ast.visit(visitor, context); } :\r\n        function (ast) { return ast.visit(visitor, context); };\r\n    asts.forEach(function (ast) {\r\n        var /** @type {?} */ astResult = visit(ast);\r\n        if (astResult) {\r\n            result.push(astResult);\r\n        }\r\n    });\r\n    return result;\r\n}\r\n/**\r\n * A token representing the a reference to a static type.\r\n *\r\n * This token is unique for a filePath and name and can be used as a hash table key.\r\n */\r\nvar StaticSymbol = (function () {\r\n    /**\r\n     * @param {?} filePath\r\n     * @param {?} name\r\n     * @param {?} members\r\n     */\r\n    function StaticSymbol(filePath, name, members) {\r\n        this.filePath = filePath;\r\n        this.name = name;\r\n        this.members = members;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    StaticSymbol.prototype.assertNoMembers = function () {\r\n        if (this.members.length) {\r\n            throw new Error(\"Illegal state: symbol without members expected, but got \" + JSON.stringify(this) + \".\");\r\n        }\r\n    };\r\n    return StaticSymbol;\r\n}());\r\n/**\r\n * A cache of static symbol used by the StaticReflector to return the same symbol for the\r\n * same symbol values.\r\n */\r\nvar StaticSymbolCache = (function () {\r\n    function StaticSymbolCache() {\r\n        this.cache = new Map();\r\n    }\r\n    /**\r\n     * @param {?} declarationFile\r\n     * @param {?} name\r\n     * @param {?=} members\r\n     * @return {?}\r\n     */\r\n    StaticSymbolCache.prototype.get = function (declarationFile, name, members) {\r\n        members = members || [];\r\n        var /** @type {?} */ memberSuffix = members.length ? \".\" + members.join('.') : '';\r\n        var /** @type {?} */ key = \"\\\"\" + declarationFile + \"\\\".\" + name + memberSuffix;\r\n        var /** @type {?} */ result = this.cache.get(key);\r\n        if (!result) {\r\n            result = new StaticSymbol(declarationFile, name, members);\r\n            this.cache.set(key, result);\r\n        }\r\n        return result;\r\n    };\r\n    return StaticSymbolCache;\r\n}());\r\nvar TagContentType = {};\r\nTagContentType.RAW_TEXT = 0;\r\nTagContentType.ESCAPABLE_RAW_TEXT = 1;\r\nTagContentType.PARSABLE_DATA = 2;\r\nTagContentType[TagContentType.RAW_TEXT] = \"RAW_TEXT\";\r\nTagContentType[TagContentType.ESCAPABLE_RAW_TEXT] = \"ESCAPABLE_RAW_TEXT\";\r\nTagContentType[TagContentType.PARSABLE_DATA] = \"PARSABLE_DATA\";\r\n/**\r\n * @param {?} elementName\r\n * @return {?}\r\n */\r\nfunction splitNsName(elementName) {\r\n    if (elementName[0] != ':') {\r\n        return [null, elementName];\r\n    }\r\n    var /** @type {?} */ colonIndex = elementName.indexOf(':', 1);\r\n    if (colonIndex == -1) {\r\n        throw new Error(\"Unsupported format \\\"\" + elementName + \"\\\" expecting \\\":namespace:name\\\"\");\r\n    }\r\n    return [elementName.slice(1, colonIndex), elementName.slice(colonIndex + 1)];\r\n}\r\n/**\r\n * @param {?} tagName\r\n * @return {?}\r\n */\r\nfunction isNgContainer(tagName) {\r\n    return splitNsName(tagName)[1] === 'ng-container';\r\n}\r\n/**\r\n * @param {?} tagName\r\n * @return {?}\r\n */\r\nfunction isNgContent(tagName) {\r\n    return splitNsName(tagName)[1] === 'ng-content';\r\n}\r\n/**\r\n * @param {?} tagName\r\n * @return {?}\r\n */\r\nfunction isNgTemplate(tagName) {\r\n    return splitNsName(tagName)[1] === 'ng-template';\r\n}\r\n/**\r\n * @param {?} fullName\r\n * @return {?}\r\n */\r\nfunction getNsPrefix(fullName) {\r\n    return fullName === null ? null : splitNsName(fullName)[0];\r\n}\r\n/**\r\n * @param {?} prefix\r\n * @param {?} localName\r\n * @return {?}\r\n */\r\nfunction mergeNsAndName(prefix, localName) {\r\n    return prefix ? \":\" + prefix + \":\" + localName : localName;\r\n}\r\n// see http://www.w3.org/TR/html51/syntax.html#named-character-references\r\n// see https://html.spec.whatwg.org/multipage/entities.json\r\n// This list is not exhaustive to keep the compiler footprint low.\r\n// The `&#123;` / `&#x1ab;` syntax should be used when the named character reference does not\r\n// exist.\r\nvar NAMED_ENTITIES = {\r\n    'Aacute': '\\u00C1',\r\n    'aacute': '\\u00E1',\r\n    'Acirc': '\\u00C2',\r\n    'acirc': '\\u00E2',\r\n    'acute': '\\u00B4',\r\n    'AElig': '\\u00C6',\r\n    'aelig': '\\u00E6',\r\n    'Agrave': '\\u00C0',\r\n    'agrave': '\\u00E0',\r\n    'alefsym': '\\u2135',\r\n    'Alpha': '\\u0391',\r\n    'alpha': '\\u03B1',\r\n    'amp': '&',\r\n    'and': '\\u2227',\r\n    'ang': '\\u2220',\r\n    'apos': '\\u0027',\r\n    'Aring': '\\u00C5',\r\n    'aring': '\\u00E5',\r\n    'asymp': '\\u2248',\r\n    'Atilde': '\\u00C3',\r\n    'atilde': '\\u00E3',\r\n    'Auml': '\\u00C4',\r\n    'auml': '\\u00E4',\r\n    'bdquo': '\\u201E',\r\n    'Beta': '\\u0392',\r\n    'beta': '\\u03B2',\r\n    'brvbar': '\\u00A6',\r\n    'bull': '\\u2022',\r\n    'cap': '\\u2229',\r\n    'Ccedil': '\\u00C7',\r\n    'ccedil': '\\u00E7',\r\n    'cedil': '\\u00B8',\r\n    'cent': '\\u00A2',\r\n    'Chi': '\\u03A7',\r\n    'chi': '\\u03C7',\r\n    'circ': '\\u02C6',\r\n    'clubs': '\\u2663',\r\n    'cong': '\\u2245',\r\n    'copy': '\\u00A9',\r\n    'crarr': '\\u21B5',\r\n    'cup': '\\u222A',\r\n    'curren': '\\u00A4',\r\n    'dagger': '\\u2020',\r\n    'Dagger': '\\u2021',\r\n    'darr': '\\u2193',\r\n    'dArr': '\\u21D3',\r\n    'deg': '\\u00B0',\r\n    'Delta': '\\u0394',\r\n    'delta': '\\u03B4',\r\n    'diams': '\\u2666',\r\n    'divide': '\\u00F7',\r\n    'Eacute': '\\u00C9',\r\n    'eacute': '\\u00E9',\r\n    'Ecirc': '\\u00CA',\r\n    'ecirc': '\\u00EA',\r\n    'Egrave': '\\u00C8',\r\n    'egrave': '\\u00E8',\r\n    'empty': '\\u2205',\r\n    'emsp': '\\u2003',\r\n    'ensp': '\\u2002',\r\n    'Epsilon': '\\u0395',\r\n    'epsilon': '\\u03B5',\r\n    'equiv': '\\u2261',\r\n    'Eta': '\\u0397',\r\n    'eta': '\\u03B7',\r\n    'ETH': '\\u00D0',\r\n    'eth': '\\u00F0',\r\n    'Euml': '\\u00CB',\r\n    'euml': '\\u00EB',\r\n    'euro': '\\u20AC',\r\n    'exist': '\\u2203',\r\n    'fnof': '\\u0192',\r\n    'forall': '\\u2200',\r\n    'frac12': '\\u00BD',\r\n    'frac14': '\\u00BC',\r\n    'frac34': '\\u00BE',\r\n    'frasl': '\\u2044',\r\n    'Gamma': '\\u0393',\r\n    'gamma': '\\u03B3',\r\n    'ge': '\\u2265',\r\n    'gt': '>',\r\n    'harr': '\\u2194',\r\n    'hArr': '\\u21D4',\r\n    'hearts': '\\u2665',\r\n    'hellip': '\\u2026',\r\n    'Iacute': '\\u00CD',\r\n    'iacute': '\\u00ED',\r\n    'Icirc': '\\u00CE',\r\n    'icirc': '\\u00EE',\r\n    'iexcl': '\\u00A1',\r\n    'Igrave': '\\u00CC',\r\n    'igrave': '\\u00EC',\r\n    'image': '\\u2111',\r\n    'infin': '\\u221E',\r\n    'int': '\\u222B',\r\n    'Iota': '\\u0399',\r\n    'iota': '\\u03B9',\r\n    'iquest': '\\u00BF',\r\n    'isin': '\\u2208',\r\n    'Iuml': '\\u00CF',\r\n    'iuml': '\\u00EF',\r\n    'Kappa': '\\u039A',\r\n    'kappa': '\\u03BA',\r\n    'Lambda': '\\u039B',\r\n    'lambda': '\\u03BB',\r\n    'lang': '\\u27E8',\r\n    'laquo': '\\u00AB',\r\n    'larr': '\\u2190',\r\n    'lArr': '\\u21D0',\r\n    'lceil': '\\u2308',\r\n    'ldquo': '\\u201C',\r\n    'le': '\\u2264',\r\n    'lfloor': '\\u230A',\r\n    'lowast': '\\u2217',\r\n    'loz': '\\u25CA',\r\n    'lrm': '\\u200E',\r\n    'lsaquo': '\\u2039',\r\n    'lsquo': '\\u2018',\r\n    'lt': '<',\r\n    'macr': '\\u00AF',\r\n    'mdash': '\\u2014',\r\n    'micro': '\\u00B5',\r\n    'middot': '\\u00B7',\r\n    'minus': '\\u2212',\r\n    'Mu': '\\u039C',\r\n    'mu': '\\u03BC',\r\n    'nabla': '\\u2207',\r\n    'nbsp': '\\u00A0',\r\n    'ndash': '\\u2013',\r\n    'ne': '\\u2260',\r\n    'ni': '\\u220B',\r\n    'not': '\\u00AC',\r\n    'notin': '\\u2209',\r\n    'nsub': '\\u2284',\r\n    'Ntilde': '\\u00D1',\r\n    'ntilde': '\\u00F1',\r\n    'Nu': '\\u039D',\r\n    'nu': '\\u03BD',\r\n    'Oacute': '\\u00D3',\r\n    'oacute': '\\u00F3',\r\n    'Ocirc': '\\u00D4',\r\n    'ocirc': '\\u00F4',\r\n    'OElig': '\\u0152',\r\n    'oelig': '\\u0153',\r\n    'Ograve': '\\u00D2',\r\n    'ograve': '\\u00F2',\r\n    'oline': '\\u203E',\r\n    'Omega': '\\u03A9',\r\n    'omega': '\\u03C9',\r\n    'Omicron': '\\u039F',\r\n    'omicron': '\\u03BF',\r\n    'oplus': '\\u2295',\r\n    'or': '\\u2228',\r\n    'ordf': '\\u00AA',\r\n    'ordm': '\\u00BA',\r\n    'Oslash': '\\u00D8',\r\n    'oslash': '\\u00F8',\r\n    'Otilde': '\\u00D5',\r\n    'otilde': '\\u00F5',\r\n    'otimes': '\\u2297',\r\n    'Ouml': '\\u00D6',\r\n    'ouml': '\\u00F6',\r\n    'para': '\\u00B6',\r\n    'permil': '\\u2030',\r\n    'perp': '\\u22A5',\r\n    'Phi': '\\u03A6',\r\n    'phi': '\\u03C6',\r\n    'Pi': '\\u03A0',\r\n    'pi': '\\u03C0',\r\n    'piv': '\\u03D6',\r\n    'plusmn': '\\u00B1',\r\n    'pound': '\\u00A3',\r\n    'prime': '\\u2032',\r\n    'Prime': '\\u2033',\r\n    'prod': '\\u220F',\r\n    'prop': '\\u221D',\r\n    'Psi': '\\u03A8',\r\n    'psi': '\\u03C8',\r\n    'quot': '\\u0022',\r\n    'radic': '\\u221A',\r\n    'rang': '\\u27E9',\r\n    'raquo': '\\u00BB',\r\n    'rarr': '\\u2192',\r\n    'rArr': '\\u21D2',\r\n    'rceil': '\\u2309',\r\n    'rdquo': '\\u201D',\r\n    'real': '\\u211C',\r\n    'reg': '\\u00AE',\r\n    'rfloor': '\\u230B',\r\n    'Rho': '\\u03A1',\r\n    'rho': '\\u03C1',\r\n    'rlm': '\\u200F',\r\n    'rsaquo': '\\u203A',\r\n    'rsquo': '\\u2019',\r\n    'sbquo': '\\u201A',\r\n    'Scaron': '\\u0160',\r\n    'scaron': '\\u0161',\r\n    'sdot': '\\u22C5',\r\n    'sect': '\\u00A7',\r\n    'shy': '\\u00AD',\r\n    'Sigma': '\\u03A3',\r\n    'sigma': '\\u03C3',\r\n    'sigmaf': '\\u03C2',\r\n    'sim': '\\u223C',\r\n    'spades': '\\u2660',\r\n    'sub': '\\u2282',\r\n    'sube': '\\u2286',\r\n    'sum': '\\u2211',\r\n    'sup': '\\u2283',\r\n    'sup1': '\\u00B9',\r\n    'sup2': '\\u00B2',\r\n    'sup3': '\\u00B3',\r\n    'supe': '\\u2287',\r\n    'szlig': '\\u00DF',\r\n    'Tau': '\\u03A4',\r\n    'tau': '\\u03C4',\r\n    'there4': '\\u2234',\r\n    'Theta': '\\u0398',\r\n    'theta': '\\u03B8',\r\n    'thetasym': '\\u03D1',\r\n    'thinsp': '\\u2009',\r\n    'THORN': '\\u00DE',\r\n    'thorn': '\\u00FE',\r\n    'tilde': '\\u02DC',\r\n    'times': '\\u00D7',\r\n    'trade': '\\u2122',\r\n    'Uacute': '\\u00DA',\r\n    'uacute': '\\u00FA',\r\n    'uarr': '\\u2191',\r\n    'uArr': '\\u21D1',\r\n    'Ucirc': '\\u00DB',\r\n    'ucirc': '\\u00FB',\r\n    'Ugrave': '\\u00D9',\r\n    'ugrave': '\\u00F9',\r\n    'uml': '\\u00A8',\r\n    'upsih': '\\u03D2',\r\n    'Upsilon': '\\u03A5',\r\n    'upsilon': '\\u03C5',\r\n    'Uuml': '\\u00DC',\r\n    'uuml': '\\u00FC',\r\n    'weierp': '\\u2118',\r\n    'Xi': '\\u039E',\r\n    'xi': '\\u03BE',\r\n    'Yacute': '\\u00DD',\r\n    'yacute': '\\u00FD',\r\n    'yen': '\\u00A5',\r\n    'yuml': '\\u00FF',\r\n    'Yuml': '\\u0178',\r\n    'Zeta': '\\u0396',\r\n    'zeta': '\\u03B6',\r\n    'zwj': '\\u200D',\r\n    'zwnj': '\\u200C',\r\n};\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar HtmlTagDefinition = (function () {\r\n    /**\r\n     * @param {?=} __0\r\n     */\r\n    function HtmlTagDefinition(_a) {\r\n        var _b = _a === void 0 ? {} : _a, closedByChildren = _b.closedByChildren, requiredParents = _b.requiredParents, implicitNamespacePrefix = _b.implicitNamespacePrefix, _c = _b.contentType, contentType = _c === void 0 ? TagContentType.PARSABLE_DATA : _c, _d = _b.closedByParent, closedByParent = _d === void 0 ? false : _d, _e = _b.isVoid, isVoid = _e === void 0 ? false : _e, _f = _b.ignoreFirstLf, ignoreFirstLf = _f === void 0 ? false : _f;\r\n        var _this = this;\r\n        this.closedByChildren = {};\r\n        this.closedByParent = false;\r\n        this.canSelfClose = false;\r\n        if (closedByChildren && closedByChildren.length > 0) {\r\n            closedByChildren.forEach(function (tagName) { return _this.closedByChildren[tagName] = true; });\r\n        }\r\n        this.isVoid = isVoid;\r\n        this.closedByParent = closedByParent || isVoid;\r\n        if (requiredParents && requiredParents.length > 0) {\r\n            this.requiredParents = {};\r\n            // The first parent is the list is automatically when none of the listed parents are present\r\n            this.parentToAdd = requiredParents[0];\r\n            requiredParents.forEach(function (tagName) { return _this.requiredParents[tagName] = true; });\r\n        }\r\n        this.implicitNamespacePrefix = implicitNamespacePrefix || null;\r\n        this.contentType = contentType;\r\n        this.ignoreFirstLf = ignoreFirstLf;\r\n    }\r\n    /**\r\n     * @param {?} currentParent\r\n     * @return {?}\r\n     */\r\n    HtmlTagDefinition.prototype.requireExtraParent = function (currentParent) {\r\n        if (!this.requiredParents) {\r\n            return false;\r\n        }\r\n        if (!currentParent) {\r\n            return true;\r\n        }\r\n        var /** @type {?} */ lcParent = currentParent.toLowerCase();\r\n        var /** @type {?} */ isParentTemplate = lcParent === 'template' || currentParent === 'ng-template';\r\n        return !isParentTemplate && this.requiredParents[lcParent] != true;\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    HtmlTagDefinition.prototype.isClosedByChild = function (name) {\r\n        return this.isVoid || name.toLowerCase() in this.closedByChildren;\r\n    };\r\n    return HtmlTagDefinition;\r\n}());\r\n// see http://www.w3.org/TR/html51/syntax.html#optional-tags\r\n// This implementation does not fully conform to the HTML5 spec.\r\nvar TAG_DEFINITIONS = {\r\n    'base': new HtmlTagDefinition({ isVoid: true }),\r\n    'meta': new HtmlTagDefinition({ isVoid: true }),\r\n    'area': new HtmlTagDefinition({ isVoid: true }),\r\n    'embed': new HtmlTagDefinition({ isVoid: true }),\r\n    'link': new HtmlTagDefinition({ isVoid: true }),\r\n    'img': new HtmlTagDefinition({ isVoid: true }),\r\n    'input': new HtmlTagDefinition({ isVoid: true }),\r\n    'param': new HtmlTagDefinition({ isVoid: true }),\r\n    'hr': new HtmlTagDefinition({ isVoid: true }),\r\n    'br': new HtmlTagDefinition({ isVoid: true }),\r\n    'source': new HtmlTagDefinition({ isVoid: true }),\r\n    'track': new HtmlTagDefinition({ isVoid: true }),\r\n    'wbr': new HtmlTagDefinition({ isVoid: true }),\r\n    'p': new HtmlTagDefinition({\r\n        closedByChildren: [\r\n            'address', 'article', 'aside', 'blockquote', 'div', 'dl', 'fieldset', 'footer', 'form',\r\n            'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hgroup', 'hr',\r\n            'main', 'nav', 'ol', 'p', 'pre', 'section', 'table', 'ul'\r\n        ],\r\n        closedByParent: true\r\n    }),\r\n    'thead': new HtmlTagDefinition({ closedByChildren: ['tbody', 'tfoot'] }),\r\n    'tbody': new HtmlTagDefinition({ closedByChildren: ['tbody', 'tfoot'], closedByParent: true }),\r\n    'tfoot': new HtmlTagDefinition({ closedByChildren: ['tbody'], closedByParent: true }),\r\n    'tr': new HtmlTagDefinition({\r\n        closedByChildren: ['tr'],\r\n        requiredParents: ['tbody', 'tfoot', 'thead'],\r\n        closedByParent: true\r\n    }),\r\n    'td': new HtmlTagDefinition({ closedByChildren: ['td', 'th'], closedByParent: true }),\r\n    'th': new HtmlTagDefinition({ closedByChildren: ['td', 'th'], closedByParent: true }),\r\n    'col': new HtmlTagDefinition({ requiredParents: ['colgroup'], isVoid: true }),\r\n    'svg': new HtmlTagDefinition({ implicitNamespacePrefix: 'svg' }),\r\n    'math': new HtmlTagDefinition({ implicitNamespacePrefix: 'math' }),\r\n    'li': new HtmlTagDefinition({ closedByChildren: ['li'], closedByParent: true }),\r\n    'dt': new HtmlTagDefinition({ closedByChildren: ['dt', 'dd'] }),\r\n    'dd': new HtmlTagDefinition({ closedByChildren: ['dt', 'dd'], closedByParent: true }),\r\n    'rb': new HtmlTagDefinition({ closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true }),\r\n    'rt': new HtmlTagDefinition({ closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true }),\r\n    'rtc': new HtmlTagDefinition({ closedByChildren: ['rb', 'rtc', 'rp'], closedByParent: true }),\r\n    'rp': new HtmlTagDefinition({ closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true }),\r\n    'optgroup': new HtmlTagDefinition({ closedByChildren: ['optgroup'], closedByParent: true }),\r\n    'option': new HtmlTagDefinition({ closedByChildren: ['option', 'optgroup'], closedByParent: true }),\r\n    'pre': new HtmlTagDefinition({ ignoreFirstLf: true }),\r\n    'listing': new HtmlTagDefinition({ ignoreFirstLf: true }),\r\n    'style': new HtmlTagDefinition({ contentType: TagContentType.RAW_TEXT }),\r\n    'script': new HtmlTagDefinition({ contentType: TagContentType.RAW_TEXT }),\r\n    'title': new HtmlTagDefinition({ contentType: TagContentType.ESCAPABLE_RAW_TEXT }),\r\n    'textarea': new HtmlTagDefinition({ contentType: TagContentType.ESCAPABLE_RAW_TEXT, ignoreFirstLf: true }),\r\n};\r\nvar _DEFAULT_TAG_DEFINITION = new HtmlTagDefinition();\r\n/**\r\n * @param {?} tagName\r\n * @return {?}\r\n */\r\nfunction getHtmlTagDefinition(tagName) {\r\n    return TAG_DEFINITIONS[tagName.toLowerCase()] || _DEFAULT_TAG_DEFINITION;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _SELECTOR_REGEXP = new RegExp('(\\\\:not\\\\()|' +\r\n    '([-\\\\w]+)|' +\r\n    '(?:\\\\.([-\\\\w]+))|' +\r\n    // \"-\" should appear first in the regexp below as FF31 parses \"[.-\\w]\" as a range\r\n    '(?:\\\\[([-.\\\\w*]+)(?:=([\\\"\\']?)([^\\\\]\\\"\\']*)\\\\5)?\\\\])|' +\r\n    // \"[name=\"value\"]\",\r\n    // \"[name='value']\"\r\n    '(\\\\))|' +\r\n    '(\\\\s*,\\\\s*)', // \",\"\r\n'g');\r\n/**\r\n * A css selector contains an element name,\r\n * css classes and attribute/value pairs with the purpose\r\n * of selecting subsets out of them.\r\n */\r\nvar CssSelector = (function () {\r\n    function CssSelector() {\r\n        this.element = null;\r\n        this.classNames = [];\r\n        this.attrs = [];\r\n        this.notSelectors = [];\r\n    }\r\n    /**\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    CssSelector.parse = function (selector) {\r\n        var /** @type {?} */ results = [];\r\n        var /** @type {?} */ _addResult = function (res, cssSel) {\r\n            if (cssSel.notSelectors.length > 0 && !cssSel.element && cssSel.classNames.length == 0 &&\r\n                cssSel.attrs.length == 0) {\r\n                cssSel.element = '*';\r\n            }\r\n            res.push(cssSel);\r\n        };\r\n        var /** @type {?} */ cssSelector = new CssSelector();\r\n        var /** @type {?} */ match;\r\n        var /** @type {?} */ current = cssSelector;\r\n        var /** @type {?} */ inNot = false;\r\n        _SELECTOR_REGEXP.lastIndex = 0;\r\n        while (match = _SELECTOR_REGEXP.exec(selector)) {\r\n            if (match[1]) {\r\n                if (inNot) {\r\n                    throw new Error('Nesting :not is not allowed in a selector');\r\n                }\r\n                inNot = true;\r\n                current = new CssSelector();\r\n                cssSelector.notSelectors.push(current);\r\n            }\r\n            if (match[2]) {\r\n                current.setElement(match[2]);\r\n            }\r\n            if (match[3]) {\r\n                current.addClassName(match[3]);\r\n            }\r\n            if (match[4]) {\r\n                current.addAttribute(match[4], match[6]);\r\n            }\r\n            if (match[7]) {\r\n                inNot = false;\r\n                current = cssSelector;\r\n            }\r\n            if (match[8]) {\r\n                if (inNot) {\r\n                    throw new Error('Multiple selectors in :not are not supported');\r\n                }\r\n                _addResult(results, cssSelector);\r\n                cssSelector = current = new CssSelector();\r\n            }\r\n        }\r\n        _addResult(results, cssSelector);\r\n        return results;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    CssSelector.prototype.isElementSelector = function () {\r\n        return this.hasElementSelector() && this.classNames.length == 0 && this.attrs.length == 0 &&\r\n            this.notSelectors.length === 0;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    CssSelector.prototype.hasElementSelector = function () { return !!this.element; };\r\n    /**\r\n     * @param {?=} element\r\n     * @return {?}\r\n     */\r\n    CssSelector.prototype.setElement = function (element) {\r\n        if (element === void 0) { element = null; }\r\n        this.element = element;\r\n    };\r\n    /**\r\n     * Gets a template string for an element that matches the selector.\r\n     * @return {?}\r\n     */\r\n    CssSelector.prototype.getMatchingElementTemplate = function () {\r\n        var /** @type {?} */ tagName = this.element || 'div';\r\n        var /** @type {?} */ classAttr = this.classNames.length > 0 ? \" class=\\\"\" + this.classNames.join(' ') + \"\\\"\" : '';\r\n        var /** @type {?} */ attrs = '';\r\n        for (var /** @type {?} */ i = 0; i < this.attrs.length; i += 2) {\r\n            var /** @type {?} */ attrName = this.attrs[i];\r\n            var /** @type {?} */ attrValue = this.attrs[i + 1] !== '' ? \"=\\\"\" + this.attrs[i + 1] + \"\\\"\" : '';\r\n            attrs += \" \" + attrName + attrValue;\r\n        }\r\n        return getHtmlTagDefinition(tagName).isVoid ? \"<\" + tagName + classAttr + attrs + \"/>\" :\r\n            \"<\" + tagName + classAttr + attrs + \"></\" + tagName + \">\";\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?=} value\r\n     * @return {?}\r\n     */\r\n    CssSelector.prototype.addAttribute = function (name, value) {\r\n        if (value === void 0) { value = ''; }\r\n        this.attrs.push(name, value && value.toLowerCase() || '');\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    CssSelector.prototype.addClassName = function (name) { this.classNames.push(name.toLowerCase()); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    CssSelector.prototype.toString = function () {\r\n        var /** @type {?} */ res = this.element || '';\r\n        if (this.classNames) {\r\n            this.classNames.forEach(function (klass) { return res += \".\" + klass; });\r\n        }\r\n        if (this.attrs) {\r\n            for (var /** @type {?} */ i = 0; i < this.attrs.length; i += 2) {\r\n                var /** @type {?} */ name = this.attrs[i];\r\n                var /** @type {?} */ value = this.attrs[i + 1];\r\n                res += \"[\" + name + (value ? '=' + value : '') + \"]\";\r\n            }\r\n        }\r\n        this.notSelectors.forEach(function (notSelector) { return res += \":not(\" + notSelector + \")\"; });\r\n        return res;\r\n    };\r\n    return CssSelector;\r\n}());\r\n/**\r\n * Reads a list of CssSelectors and allows to calculate which ones\r\n * are contained in a given CssSelector.\r\n */\r\nvar SelectorMatcher = (function () {\r\n    function SelectorMatcher() {\r\n        this._elementMap = new Map();\r\n        this._elementPartialMap = new Map();\r\n        this._classMap = new Map();\r\n        this._classPartialMap = new Map();\r\n        this._attrValueMap = new Map();\r\n        this._attrValuePartialMap = new Map();\r\n        this._listContexts = [];\r\n    }\r\n    /**\r\n     * @param {?} notSelectors\r\n     * @return {?}\r\n     */\r\n    SelectorMatcher.createNotMatcher = function (notSelectors) {\r\n        var /** @type {?} */ notMatcher = new SelectorMatcher();\r\n        notMatcher.addSelectables(notSelectors, null);\r\n        return notMatcher;\r\n    };\r\n    /**\r\n     * @param {?} cssSelectors\r\n     * @param {?=} callbackCtxt\r\n     * @return {?}\r\n     */\r\n    SelectorMatcher.prototype.addSelectables = function (cssSelectors, callbackCtxt) {\r\n        var /** @type {?} */ listContext = ((null));\r\n        if (cssSelectors.length > 1) {\r\n            listContext = new SelectorListContext(cssSelectors);\r\n            this._listContexts.push(listContext);\r\n        }\r\n        for (var /** @type {?} */ i = 0; i < cssSelectors.length; i++) {\r\n            this._addSelectable(cssSelectors[i], callbackCtxt, listContext);\r\n        }\r\n    };\r\n    /**\r\n     * Add an object that can be found later on by calling `match`.\r\n     * @param {?} cssSelector A css selector\r\n     * @param {?} callbackCtxt An opaque object that will be given to the callback of the `match` function\r\n     * @param {?} listContext\r\n     * @return {?}\r\n     */\r\n    SelectorMatcher.prototype._addSelectable = function (cssSelector, callbackCtxt, listContext) {\r\n        var /** @type {?} */ matcher = this;\r\n        var /** @type {?} */ element = cssSelector.element;\r\n        var /** @type {?} */ classNames = cssSelector.classNames;\r\n        var /** @type {?} */ attrs = cssSelector.attrs;\r\n        var /** @type {?} */ selectable = new SelectorContext(cssSelector, callbackCtxt, listContext);\r\n        if (element) {\r\n            var /** @type {?} */ isTerminal = attrs.length === 0 && classNames.length === 0;\r\n            if (isTerminal) {\r\n                this._addTerminal(matcher._elementMap, element, selectable);\r\n            }\r\n            else {\r\n                matcher = this._addPartial(matcher._elementPartialMap, element);\r\n            }\r\n        }\r\n        if (classNames) {\r\n            for (var /** @type {?} */ i = 0; i < classNames.length; i++) {\r\n                var /** @type {?} */ isTerminal = attrs.length === 0 && i === classNames.length - 1;\r\n                var /** @type {?} */ className = classNames[i];\r\n                if (isTerminal) {\r\n                    this._addTerminal(matcher._classMap, className, selectable);\r\n                }\r\n                else {\r\n                    matcher = this._addPartial(matcher._classPartialMap, className);\r\n                }\r\n            }\r\n        }\r\n        if (attrs) {\r\n            for (var /** @type {?} */ i = 0; i < attrs.length; i += 2) {\r\n                var /** @type {?} */ isTerminal = i === attrs.length - 2;\r\n                var /** @type {?} */ name = attrs[i];\r\n                var /** @type {?} */ value = attrs[i + 1];\r\n                if (isTerminal) {\r\n                    var /** @type {?} */ terminalMap = matcher._attrValueMap;\r\n                    var /** @type {?} */ terminalValuesMap = terminalMap.get(name);\r\n                    if (!terminalValuesMap) {\r\n                        terminalValuesMap = new Map();\r\n                        terminalMap.set(name, terminalValuesMap);\r\n                    }\r\n                    this._addTerminal(terminalValuesMap, value, selectable);\r\n                }\r\n                else {\r\n                    var /** @type {?} */ partialMap = matcher._attrValuePartialMap;\r\n                    var /** @type {?} */ partialValuesMap = partialMap.get(name);\r\n                    if (!partialValuesMap) {\r\n                        partialValuesMap = new Map();\r\n                        partialMap.set(name, partialValuesMap);\r\n                    }\r\n                    matcher = this._addPartial(partialValuesMap, value);\r\n                }\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} map\r\n     * @param {?} name\r\n     * @param {?} selectable\r\n     * @return {?}\r\n     */\r\n    SelectorMatcher.prototype._addTerminal = function (map, name, selectable) {\r\n        var /** @type {?} */ terminalList = map.get(name);\r\n        if (!terminalList) {\r\n            terminalList = [];\r\n            map.set(name, terminalList);\r\n        }\r\n        terminalList.push(selectable);\r\n    };\r\n    /**\r\n     * @param {?} map\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    SelectorMatcher.prototype._addPartial = function (map, name) {\r\n        var /** @type {?} */ matcher = map.get(name);\r\n        if (!matcher) {\r\n            matcher = new SelectorMatcher();\r\n            map.set(name, matcher);\r\n        }\r\n        return matcher;\r\n    };\r\n    /**\r\n     * Find the objects that have been added via `addSelectable`\r\n     * whose css selector is contained in the given css selector.\r\n     * @param {?} cssSelector A css selector\r\n     * @param {?} matchedCallback This callback will be called with the object handed into `addSelectable`\r\n     * @return {?} boolean true if a match was found\r\n     */\r\n    SelectorMatcher.prototype.match = function (cssSelector, matchedCallback) {\r\n        var /** @type {?} */ result = false;\r\n        var /** @type {?} */ element = ((cssSelector.element));\r\n        var /** @type {?} */ classNames = cssSelector.classNames;\r\n        var /** @type {?} */ attrs = cssSelector.attrs;\r\n        for (var /** @type {?} */ i = 0; i < this._listContexts.length; i++) {\r\n            this._listContexts[i].alreadyMatched = false;\r\n        }\r\n        result = this._matchTerminal(this._elementMap, element, cssSelector, matchedCallback) || result;\r\n        result = this._matchPartial(this._elementPartialMap, element, cssSelector, matchedCallback) ||\r\n            result;\r\n        if (classNames) {\r\n            for (var /** @type {?} */ i = 0; i < classNames.length; i++) {\r\n                var /** @type {?} */ className = classNames[i];\r\n                result =\r\n                    this._matchTerminal(this._classMap, className, cssSelector, matchedCallback) || result;\r\n                result =\r\n                    this._matchPartial(this._classPartialMap, className, cssSelector, matchedCallback) ||\r\n                        result;\r\n            }\r\n        }\r\n        if (attrs) {\r\n            for (var /** @type {?} */ i = 0; i < attrs.length; i += 2) {\r\n                var /** @type {?} */ name = attrs[i];\r\n                var /** @type {?} */ value = attrs[i + 1];\r\n                var /** @type {?} */ terminalValuesMap = ((this._attrValueMap.get(name)));\r\n                if (value) {\r\n                    result =\r\n                        this._matchTerminal(terminalValuesMap, '', cssSelector, matchedCallback) || result;\r\n                }\r\n                result =\r\n                    this._matchTerminal(terminalValuesMap, value, cssSelector, matchedCallback) || result;\r\n                var /** @type {?} */ partialValuesMap = ((this._attrValuePartialMap.get(name)));\r\n                if (value) {\r\n                    result = this._matchPartial(partialValuesMap, '', cssSelector, matchedCallback) || result;\r\n                }\r\n                result =\r\n                    this._matchPartial(partialValuesMap, value, cssSelector, matchedCallback) || result;\r\n            }\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} map\r\n     * @param {?} name\r\n     * @param {?} cssSelector\r\n     * @param {?} matchedCallback\r\n     * @return {?}\r\n     */\r\n    SelectorMatcher.prototype._matchTerminal = function (map, name, cssSelector, matchedCallback) {\r\n        if (!map || typeof name !== 'string') {\r\n            return false;\r\n        }\r\n        var /** @type {?} */ selectables = map.get(name) || [];\r\n        var /** @type {?} */ starSelectables = ((map.get('*')));\r\n        if (starSelectables) {\r\n            selectables = selectables.concat(starSelectables);\r\n        }\r\n        if (selectables.length === 0) {\r\n            return false;\r\n        }\r\n        var /** @type {?} */ selectable;\r\n        var /** @type {?} */ result = false;\r\n        for (var /** @type {?} */ i = 0; i < selectables.length; i++) {\r\n            selectable = selectables[i];\r\n            result = selectable.finalize(cssSelector, matchedCallback) || result;\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} map\r\n     * @param {?} name\r\n     * @param {?} cssSelector\r\n     * @param {?} matchedCallback\r\n     * @return {?}\r\n     */\r\n    SelectorMatcher.prototype._matchPartial = function (map, name, cssSelector, matchedCallback) {\r\n        if (!map || typeof name !== 'string') {\r\n            return false;\r\n        }\r\n        var /** @type {?} */ nestedSelector = map.get(name);\r\n        if (!nestedSelector) {\r\n            return false;\r\n        }\r\n        // TODO(perf): get rid of recursion and measure again\r\n        // TODO(perf): don't pass the whole selector into the recursion,\r\n        // but only the not processed parts\r\n        return nestedSelector.match(cssSelector, matchedCallback);\r\n    };\r\n    return SelectorMatcher;\r\n}());\r\nvar SelectorListContext = (function () {\r\n    /**\r\n     * @param {?} selectors\r\n     */\r\n    function SelectorListContext(selectors) {\r\n        this.selectors = selectors;\r\n        this.alreadyMatched = false;\r\n    }\r\n    return SelectorListContext;\r\n}());\r\nvar SelectorContext = (function () {\r\n    /**\r\n     * @param {?} selector\r\n     * @param {?} cbContext\r\n     * @param {?} listContext\r\n     */\r\n    function SelectorContext(selector, cbContext, listContext) {\r\n        this.selector = selector;\r\n        this.cbContext = cbContext;\r\n        this.listContext = listContext;\r\n        this.notSelectors = selector.notSelectors;\r\n    }\r\n    /**\r\n     * @param {?} cssSelector\r\n     * @param {?} callback\r\n     * @return {?}\r\n     */\r\n    SelectorContext.prototype.finalize = function (cssSelector, callback) {\r\n        var /** @type {?} */ result = true;\r\n        if (this.notSelectors.length > 0 && (!this.listContext || !this.listContext.alreadyMatched)) {\r\n            var /** @type {?} */ notMatcher = SelectorMatcher.createNotMatcher(this.notSelectors);\r\n            result = !notMatcher.match(cssSelector, null);\r\n        }\r\n        if (result && callback && (!this.listContext || !this.listContext.alreadyMatched)) {\r\n            if (this.listContext) {\r\n                this.listContext.alreadyMatched = true;\r\n            }\r\n            callback(this.selector, this.cbContext);\r\n        }\r\n        return result;\r\n    };\r\n    return SelectorContext;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar MODULE_SUFFIX = '';\r\nvar DASH_CASE_REGEXP = /-+([a-z0-9])/g;\r\n/**\r\n * @param {?} input\r\n * @return {?}\r\n */\r\n/**\r\n * @param {?} input\r\n * @return {?}\r\n */\r\nfunction dashCaseToCamelCase(input) {\r\n    return input.replace(DASH_CASE_REGEXP, function () {\r\n        var m = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            m[_i] = arguments[_i];\r\n        }\r\n        return m[1].toUpperCase();\r\n    });\r\n}\r\n/**\r\n * @param {?} input\r\n * @param {?} defaultValues\r\n * @return {?}\r\n */\r\nfunction splitAtColon(input, defaultValues) {\r\n    return _splitAt(input, ':', defaultValues);\r\n}\r\n/**\r\n * @param {?} input\r\n * @param {?} defaultValues\r\n * @return {?}\r\n */\r\nfunction splitAtPeriod(input, defaultValues) {\r\n    return _splitAt(input, '.', defaultValues);\r\n}\r\n/**\r\n * @param {?} input\r\n * @param {?} character\r\n * @param {?} defaultValues\r\n * @return {?}\r\n */\r\nfunction _splitAt(input, character, defaultValues) {\r\n    var /** @type {?} */ characterIndex = input.indexOf(character);\r\n    if (characterIndex == -1)\r\n        return defaultValues;\r\n    return [input.slice(0, characterIndex).trim(), input.slice(characterIndex + 1).trim()];\r\n}\r\n/**\r\n * @param {?} value\r\n * @param {?} visitor\r\n * @param {?} context\r\n * @return {?}\r\n */\r\nfunction visitValue(value, visitor, context) {\r\n    if (Array.isArray(value)) {\r\n        return visitor.visitArray(/** @type {?} */ (value), context);\r\n    }\r\n    if (isStrictStringMap(value)) {\r\n        return visitor.visitStringMap(/** @type {?} */ (value), context);\r\n    }\r\n    if (value == null || typeof value == 'string' || typeof value == 'number' ||\r\n        typeof value == 'boolean') {\r\n        return visitor.visitPrimitive(value, context);\r\n    }\r\n    return visitor.visitOther(value, context);\r\n}\r\n/**\r\n * @param {?} val\r\n * @return {?}\r\n */\r\nfunction isDefined(val) {\r\n    return val !== null && val !== undefined;\r\n}\r\n/**\r\n * @template T\r\n * @param {?} val\r\n * @return {?}\r\n */\r\nfunction noUndefined(val) {\r\n    return val === undefined ? ((null)) : val;\r\n}\r\nvar ValueTransformer = (function () {\r\n    function ValueTransformer() {\r\n    }\r\n    /**\r\n     * @param {?} arr\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ValueTransformer.prototype.visitArray = function (arr, context) {\r\n        var _this = this;\r\n        return arr.map(function (value) { return visitValue(value, _this, context); });\r\n    };\r\n    /**\r\n     * @param {?} map\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ValueTransformer.prototype.visitStringMap = function (map, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ result = {};\r\n        Object.keys(map).forEach(function (key) { result[key] = visitValue(map[key], _this, context); });\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ValueTransformer.prototype.visitPrimitive = function (value, context) { return value; };\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ValueTransformer.prototype.visitOther = function (value, context) { return value; };\r\n    return ValueTransformer;\r\n}());\r\nvar SyncAsyncResult = (function () {\r\n    /**\r\n     * @param {?} syncResult\r\n     * @param {?=} asyncResult\r\n     */\r\n    function SyncAsyncResult(syncResult, asyncResult) {\r\n        if (asyncResult === void 0) { asyncResult = null; }\r\n        this.syncResult = syncResult;\r\n        this.asyncResult = asyncResult;\r\n        if (!asyncResult) {\r\n            this.asyncResult = Promise.resolve(syncResult);\r\n        }\r\n    }\r\n    return SyncAsyncResult;\r\n}());\r\n/**\r\n * @param {?} msg\r\n * @return {?}\r\n */\r\nfunction syntaxError(msg) {\r\n    var /** @type {?} */ error = Error(msg);\r\n    ((error))[ERROR_SYNTAX_ERROR] = true;\r\n    return error;\r\n}\r\nvar ERROR_SYNTAX_ERROR = 'ngSyntaxError';\r\n/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\nfunction isSyntaxError(error) {\r\n    return ((error))[ERROR_SYNTAX_ERROR];\r\n}\r\n/**\r\n * @param {?} s\r\n * @return {?}\r\n */\r\nfunction escapeRegExp(s) {\r\n    return s.replace(/([.*+?^=!:${}()|[\\]\\/\\\\])/g, '\\\\$1');\r\n}\r\nvar STRING_MAP_PROTO = Object.getPrototypeOf({});\r\n/**\r\n * @param {?} obj\r\n * @return {?}\r\n */\r\nfunction isStrictStringMap(obj) {\r\n    return typeof obj === 'object' && obj !== null && Object.getPrototypeOf(obj) === STRING_MAP_PROTO;\r\n}\r\n/**\r\n * @param {?} str\r\n * @return {?}\r\n */\r\nfunction utf8Encode(str) {\r\n    var /** @type {?} */ encoded = '';\r\n    for (var /** @type {?} */ index = 0; index < str.length; index++) {\r\n        var /** @type {?} */ codePoint = str.charCodeAt(index);\r\n        // decode surrogate\r\n        // see https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\r\n        if (codePoint >= 0xd800 && codePoint <= 0xdbff && str.length > (index + 1)) {\r\n            var /** @type {?} */ low = str.charCodeAt(index + 1);\r\n            if (low >= 0xdc00 && low <= 0xdfff) {\r\n                index++;\r\n                codePoint = ((codePoint - 0xd800) << 10) + low - 0xdc00 + 0x10000;\r\n            }\r\n        }\r\n        if (codePoint <= 0x7f) {\r\n            encoded += String.fromCharCode(codePoint);\r\n        }\r\n        else if (codePoint <= 0x7ff) {\r\n            encoded += String.fromCharCode(((codePoint >> 6) & 0x1F) | 0xc0, (codePoint & 0x3f) | 0x80);\r\n        }\r\n        else if (codePoint <= 0xffff) {\r\n            encoded += String.fromCharCode((codePoint >> 12) | 0xe0, ((codePoint >> 6) & 0x3f) | 0x80, (codePoint & 0x3f) | 0x80);\r\n        }\r\n        else if (codePoint <= 0x1fffff) {\r\n            encoded += String.fromCharCode(((codePoint >> 18) & 0x07) | 0xf0, ((codePoint >> 12) & 0x3f) | 0x80, ((codePoint >> 6) & 0x3f) | 0x80, (codePoint & 0x3f) | 0x80);\r\n        }\r\n    }\r\n    return encoded;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n// group 0: \"[prop] or (event) or @trigger\"\r\n// group 1: \"prop\" from \"[prop]\"\r\n// group 2: \"event\" from \"(event)\"\r\n// group 3: \"@trigger\" from \"@trigger\"\r\nvar HOST_REG_EXP = /^(?:(?:\\[([^\\]]+)\\])|(?:\\(([^\\)]+)\\)))|(\\@[-\\w]+)$/;\r\nvar CompileAnimationEntryMetadata = (function () {\r\n    /**\r\n     * @param {?=} name\r\n     * @param {?=} definitions\r\n     */\r\n    function CompileAnimationEntryMetadata(name, definitions) {\r\n        if (name === void 0) { name = null; }\r\n        if (definitions === void 0) { definitions = null; }\r\n        this.name = name;\r\n        this.definitions = definitions;\r\n    }\r\n    return CompileAnimationEntryMetadata;\r\n}());\r\n/**\r\n * @abstract\r\n */\r\nvar CompileAnimationStateMetadata = (function () {\r\n    function CompileAnimationStateMetadata() {\r\n    }\r\n    return CompileAnimationStateMetadata;\r\n}());\r\nvar CompileAnimationStateDeclarationMetadata = (function (_super) {\r\n    __extends(CompileAnimationStateDeclarationMetadata, _super);\r\n    /**\r\n     * @param {?} stateNameExpr\r\n     * @param {?} styles\r\n     */\r\n    function CompileAnimationStateDeclarationMetadata(stateNameExpr, styles) {\r\n        var _this = _super.call(this) || this;\r\n        _this.stateNameExpr = stateNameExpr;\r\n        _this.styles = styles;\r\n        return _this;\r\n    }\r\n    return CompileAnimationStateDeclarationMetadata;\r\n}(CompileAnimationStateMetadata));\r\nvar CompileAnimationStateTransitionMetadata = (function (_super) {\r\n    __extends(CompileAnimationStateTransitionMetadata, _super);\r\n    /**\r\n     * @param {?} stateChangeExpr\r\n     * @param {?} steps\r\n     */\r\n    function CompileAnimationStateTransitionMetadata(stateChangeExpr, steps) {\r\n        var _this = _super.call(this) || this;\r\n        _this.stateChangeExpr = stateChangeExpr;\r\n        _this.steps = steps;\r\n        return _this;\r\n    }\r\n    return CompileAnimationStateTransitionMetadata;\r\n}(CompileAnimationStateMetadata));\r\n/**\r\n * @abstract\r\n */\r\nvar CompileAnimationMetadata = (function () {\r\n    function CompileAnimationMetadata() {\r\n    }\r\n    return CompileAnimationMetadata;\r\n}());\r\nvar CompileAnimationKeyframesSequenceMetadata = (function (_super) {\r\n    __extends(CompileAnimationKeyframesSequenceMetadata, _super);\r\n    /**\r\n     * @param {?=} steps\r\n     */\r\n    function CompileAnimationKeyframesSequenceMetadata(steps) {\r\n        if (steps === void 0) { steps = []; }\r\n        var _this = _super.call(this) || this;\r\n        _this.steps = steps;\r\n        return _this;\r\n    }\r\n    return CompileAnimationKeyframesSequenceMetadata;\r\n}(CompileAnimationMetadata));\r\nvar CompileAnimationStyleMetadata = (function (_super) {\r\n    __extends(CompileAnimationStyleMetadata, _super);\r\n    /**\r\n     * @param {?} offset\r\n     * @param {?=} styles\r\n     */\r\n    function CompileAnimationStyleMetadata(offset, styles) {\r\n        if (styles === void 0) { styles = null; }\r\n        var _this = _super.call(this) || this;\r\n        _this.offset = offset;\r\n        _this.styles = styles;\r\n        return _this;\r\n    }\r\n    return CompileAnimationStyleMetadata;\r\n}(CompileAnimationMetadata));\r\nvar CompileAnimationAnimateMetadata = (function (_super) {\r\n    __extends(CompileAnimationAnimateMetadata, _super);\r\n    /**\r\n     * @param {?=} timings\r\n     * @param {?=} styles\r\n     */\r\n    function CompileAnimationAnimateMetadata(timings, styles) {\r\n        if (timings === void 0) { timings = 0; }\r\n        if (styles === void 0) { styles = null; }\r\n        var _this = _super.call(this) || this;\r\n        _this.timings = timings;\r\n        _this.styles = styles;\r\n        return _this;\r\n    }\r\n    return CompileAnimationAnimateMetadata;\r\n}(CompileAnimationMetadata));\r\n/**\r\n * @abstract\r\n */\r\nvar CompileAnimationWithStepsMetadata = (function (_super) {\r\n    __extends(CompileAnimationWithStepsMetadata, _super);\r\n    /**\r\n     * @param {?=} steps\r\n     */\r\n    function CompileAnimationWithStepsMetadata(steps) {\r\n        if (steps === void 0) { steps = null; }\r\n        var _this = _super.call(this) || this;\r\n        _this.steps = steps;\r\n        return _this;\r\n    }\r\n    return CompileAnimationWithStepsMetadata;\r\n}(CompileAnimationMetadata));\r\nvar CompileAnimationSequenceMetadata = (function (_super) {\r\n    __extends(CompileAnimationSequenceMetadata, _super);\r\n    /**\r\n     * @param {?=} steps\r\n     */\r\n    function CompileAnimationSequenceMetadata(steps) {\r\n        if (steps === void 0) { steps = null; }\r\n        return _super.call(this, steps) || this;\r\n    }\r\n    return CompileAnimationSequenceMetadata;\r\n}(CompileAnimationWithStepsMetadata));\r\nvar CompileAnimationGroupMetadata = (function (_super) {\r\n    __extends(CompileAnimationGroupMetadata, _super);\r\n    /**\r\n     * @param {?=} steps\r\n     */\r\n    function CompileAnimationGroupMetadata(steps) {\r\n        if (steps === void 0) { steps = null; }\r\n        return _super.call(this, steps) || this;\r\n    }\r\n    return CompileAnimationGroupMetadata;\r\n}(CompileAnimationWithStepsMetadata));\r\n/**\r\n * @param {?} name\r\n * @return {?}\r\n */\r\nfunction _sanitizeIdentifier(name) {\r\n    return name.replace(/\\W/g, '_');\r\n}\r\nvar _anonymousTypeIndex = 0;\r\n/**\r\n * @param {?} compileIdentifier\r\n * @return {?}\r\n */\r\nfunction identifierName(compileIdentifier) {\r\n    if (!compileIdentifier || !compileIdentifier.reference) {\r\n        return null;\r\n    }\r\n    var /** @type {?} */ ref = compileIdentifier.reference;\r\n    if (ref instanceof StaticSymbol) {\r\n        return ref.name;\r\n    }\r\n    if (ref['__anonymousType']) {\r\n        return ref['__anonymousType'];\r\n    }\r\n    var /** @type {?} */ identifier = ɵstringify(ref);\r\n    if (identifier.indexOf('(') >= 0) {\r\n        // case: anonymous functions!\r\n        identifier = \"anonymous_\" + _anonymousTypeIndex++;\r\n        ref['__anonymousType'] = identifier;\r\n    }\r\n    else {\r\n        identifier = _sanitizeIdentifier(identifier);\r\n    }\r\n    return identifier;\r\n}\r\n/**\r\n * @param {?} compileIdentifier\r\n * @return {?}\r\n */\r\nfunction identifierModuleUrl(compileIdentifier) {\r\n    var /** @type {?} */ ref = compileIdentifier.reference;\r\n    if (ref instanceof StaticSymbol) {\r\n        return ref.filePath;\r\n    }\r\n    return ɵreflector.importUri(ref);\r\n}\r\n/**\r\n * @param {?} compType\r\n * @param {?} embeddedTemplateIndex\r\n * @return {?}\r\n */\r\nfunction viewClassName(compType, embeddedTemplateIndex) {\r\n    return \"View_\" + identifierName({ reference: compType }) + \"_\" + embeddedTemplateIndex;\r\n}\r\n/**\r\n * @param {?} compType\r\n * @return {?}\r\n */\r\nfunction rendererTypeName(compType) {\r\n    return \"RenderType_\" + identifierName({ reference: compType });\r\n}\r\n/**\r\n * @param {?} compType\r\n * @return {?}\r\n */\r\nfunction hostViewClassName(compType) {\r\n    return \"HostView_\" + identifierName({ reference: compType });\r\n}\r\n/**\r\n * @param {?} dirType\r\n * @return {?}\r\n */\r\nfunction dirWrapperClassName(dirType) {\r\n    return \"Wrapper_\" + identifierName({ reference: dirType });\r\n}\r\n/**\r\n * @param {?} compType\r\n * @return {?}\r\n */\r\nfunction componentFactoryName(compType) {\r\n    return identifierName({ reference: compType }) + \"NgFactory\";\r\n}\r\nvar CompileSummaryKind = {};\r\nCompileSummaryKind.Pipe = 0;\r\nCompileSummaryKind.Directive = 1;\r\nCompileSummaryKind.NgModule = 2;\r\nCompileSummaryKind.Injectable = 3;\r\nCompileSummaryKind[CompileSummaryKind.Pipe] = \"Pipe\";\r\nCompileSummaryKind[CompileSummaryKind.Directive] = \"Directive\";\r\nCompileSummaryKind[CompileSummaryKind.NgModule] = \"NgModule\";\r\nCompileSummaryKind[CompileSummaryKind.Injectable] = \"Injectable\";\r\n/**\r\n * @param {?} token\r\n * @return {?}\r\n */\r\nfunction tokenName(token) {\r\n    return token.value != null ? _sanitizeIdentifier(token.value) : identifierName(token.identifier);\r\n}\r\n/**\r\n * @param {?} token\r\n * @return {?}\r\n */\r\nfunction tokenReference(token) {\r\n    if (token.identifier != null) {\r\n        return token.identifier.reference;\r\n    }\r\n    else {\r\n        return token.value;\r\n    }\r\n}\r\n/**\r\n * Metadata about a stylesheet\r\n */\r\nvar CompileStylesheetMetadata = (function () {\r\n    /**\r\n     * @param {?=} __0\r\n     */\r\n    function CompileStylesheetMetadata(_a) {\r\n        var _b = _a === void 0 ? {} : _a, moduleUrl = _b.moduleUrl, styles = _b.styles, styleUrls = _b.styleUrls;\r\n        this.moduleUrl = moduleUrl || null;\r\n        this.styles = _normalizeArray(styles);\r\n        this.styleUrls = _normalizeArray(styleUrls);\r\n    }\r\n    return CompileStylesheetMetadata;\r\n}());\r\n/**\r\n * Metadata regarding compilation of a template.\r\n */\r\nvar CompileTemplateMetadata = (function () {\r\n    /**\r\n     * @param {?} __0\r\n     */\r\n    function CompileTemplateMetadata(_a) {\r\n        var encapsulation = _a.encapsulation, template = _a.template, templateUrl = _a.templateUrl, styles = _a.styles, styleUrls = _a.styleUrls, externalStylesheets = _a.externalStylesheets, animations = _a.animations, ngContentSelectors = _a.ngContentSelectors, interpolation = _a.interpolation, isInline = _a.isInline;\r\n        this.encapsulation = encapsulation;\r\n        this.template = template;\r\n        this.templateUrl = templateUrl;\r\n        this.styles = _normalizeArray(styles);\r\n        this.styleUrls = _normalizeArray(styleUrls);\r\n        this.externalStylesheets = _normalizeArray(externalStylesheets);\r\n        this.animations = animations ? flatten(animations) : [];\r\n        this.ngContentSelectors = ngContentSelectors || [];\r\n        if (interpolation && interpolation.length != 2) {\r\n            throw new Error(\"'interpolation' should have a start and an end symbol.\");\r\n        }\r\n        this.interpolation = interpolation;\r\n        this.isInline = isInline;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    CompileTemplateMetadata.prototype.toSummary = function () {\r\n        return {\r\n            animations: this.animations.map(function (anim) { return anim.name; }),\r\n            ngContentSelectors: this.ngContentSelectors,\r\n            encapsulation: this.encapsulation,\r\n        };\r\n    };\r\n    return CompileTemplateMetadata;\r\n}());\r\n/**\r\n * Metadata regarding compilation of a directive.\r\n */\r\nvar CompileDirectiveMetadata = (function () {\r\n    /**\r\n     * @param {?} __0\r\n     */\r\n    function CompileDirectiveMetadata(_a) {\r\n        var isHost = _a.isHost, type = _a.type, isComponent = _a.isComponent, selector = _a.selector, exportAs = _a.exportAs, changeDetection = _a.changeDetection, inputs = _a.inputs, outputs = _a.outputs, hostListeners = _a.hostListeners, hostProperties = _a.hostProperties, hostAttributes = _a.hostAttributes, providers = _a.providers, viewProviders = _a.viewProviders, queries = _a.queries, viewQueries = _a.viewQueries, entryComponents = _a.entryComponents, template = _a.template, componentViewType = _a.componentViewType, rendererType = _a.rendererType, componentFactory = _a.componentFactory;\r\n        this.isHost = !!isHost;\r\n        this.type = type;\r\n        this.isComponent = isComponent;\r\n        this.selector = selector;\r\n        this.exportAs = exportAs;\r\n        this.changeDetection = changeDetection;\r\n        this.inputs = inputs;\r\n        this.outputs = outputs;\r\n        this.hostListeners = hostListeners;\r\n        this.hostProperties = hostProperties;\r\n        this.hostAttributes = hostAttributes;\r\n        this.providers = _normalizeArray(providers);\r\n        this.viewProviders = _normalizeArray(viewProviders);\r\n        this.queries = _normalizeArray(queries);\r\n        this.viewQueries = _normalizeArray(viewQueries);\r\n        this.entryComponents = _normalizeArray(entryComponents);\r\n        this.template = template;\r\n        this.componentViewType = componentViewType;\r\n        this.rendererType = rendererType;\r\n        this.componentFactory = componentFactory;\r\n    }\r\n    /**\r\n     * @param {?} __0\r\n     * @return {?}\r\n     */\r\n    CompileDirectiveMetadata.create = function (_a) {\r\n        var isHost = _a.isHost, type = _a.type, isComponent = _a.isComponent, selector = _a.selector, exportAs = _a.exportAs, changeDetection = _a.changeDetection, inputs = _a.inputs, outputs = _a.outputs, host = _a.host, providers = _a.providers, viewProviders = _a.viewProviders, queries = _a.queries, viewQueries = _a.viewQueries, entryComponents = _a.entryComponents, template = _a.template, componentViewType = _a.componentViewType, rendererType = _a.rendererType, componentFactory = _a.componentFactory;\r\n        var /** @type {?} */ hostListeners = {};\r\n        var /** @type {?} */ hostProperties = {};\r\n        var /** @type {?} */ hostAttributes = {};\r\n        if (host != null) {\r\n            Object.keys(host).forEach(function (key) {\r\n                var /** @type {?} */ value = host[key];\r\n                var /** @type {?} */ matches = key.match(HOST_REG_EXP);\r\n                if (matches === null) {\r\n                    hostAttributes[key] = value;\r\n                }\r\n                else if (matches[1] != null) {\r\n                    hostProperties[matches[1]] = value;\r\n                }\r\n                else if (matches[2] != null) {\r\n                    hostListeners[matches[2]] = value;\r\n                }\r\n            });\r\n        }\r\n        var /** @type {?} */ inputsMap = {};\r\n        if (inputs != null) {\r\n            inputs.forEach(function (bindConfig) {\r\n                // canonical syntax: `dirProp: elProp`\r\n                // if there is no `:`, use dirProp = elProp\r\n                var /** @type {?} */ parts = splitAtColon(bindConfig, [bindConfig, bindConfig]);\r\n                inputsMap[parts[0]] = parts[1];\r\n            });\r\n        }\r\n        var /** @type {?} */ outputsMap = {};\r\n        if (outputs != null) {\r\n            outputs.forEach(function (bindConfig) {\r\n                // canonical syntax: `dirProp: elProp`\r\n                // if there is no `:`, use dirProp = elProp\r\n                var /** @type {?} */ parts = splitAtColon(bindConfig, [bindConfig, bindConfig]);\r\n                outputsMap[parts[0]] = parts[1];\r\n            });\r\n        }\r\n        return new CompileDirectiveMetadata({\r\n            isHost: isHost,\r\n            type: type,\r\n            isComponent: !!isComponent, selector: selector, exportAs: exportAs, changeDetection: changeDetection,\r\n            inputs: inputsMap,\r\n            outputs: outputsMap,\r\n            hostListeners: hostListeners,\r\n            hostProperties: hostProperties,\r\n            hostAttributes: hostAttributes,\r\n            providers: providers,\r\n            viewProviders: viewProviders,\r\n            queries: queries,\r\n            viewQueries: viewQueries,\r\n            entryComponents: entryComponents,\r\n            template: template,\r\n            componentViewType: componentViewType,\r\n            rendererType: rendererType,\r\n            componentFactory: componentFactory,\r\n        });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    CompileDirectiveMetadata.prototype.toSummary = function () {\r\n        return {\r\n            summaryKind: CompileSummaryKind.Directive,\r\n            type: this.type,\r\n            isComponent: this.isComponent,\r\n            selector: this.selector,\r\n            exportAs: this.exportAs,\r\n            inputs: this.inputs,\r\n            outputs: this.outputs,\r\n            hostListeners: this.hostListeners,\r\n            hostProperties: this.hostProperties,\r\n            hostAttributes: this.hostAttributes,\r\n            providers: this.providers,\r\n            viewProviders: this.viewProviders,\r\n            queries: this.queries,\r\n            viewQueries: this.viewQueries,\r\n            entryComponents: this.entryComponents,\r\n            changeDetection: this.changeDetection,\r\n            template: this.template && this.template.toSummary(),\r\n            componentViewType: this.componentViewType,\r\n            rendererType: this.rendererType,\r\n            componentFactory: this.componentFactory\r\n        };\r\n    };\r\n    return CompileDirectiveMetadata;\r\n}());\r\n/**\r\n * Construct {\\@link CompileDirectiveMetadata} from {\\@link ComponentTypeMetadata} and a selector.\r\n * @param {?} hostTypeReference\r\n * @param {?} compMeta\r\n * @param {?} hostViewType\r\n * @return {?}\r\n */\r\nfunction createHostComponentMeta(hostTypeReference, compMeta, hostViewType) {\r\n    var /** @type {?} */ template = CssSelector.parse(/** @type {?} */ ((compMeta.selector)))[0].getMatchingElementTemplate();\r\n    return CompileDirectiveMetadata.create({\r\n        isHost: true,\r\n        type: { reference: hostTypeReference, diDeps: [], lifecycleHooks: [] },\r\n        template: new CompileTemplateMetadata({\r\n            encapsulation: ViewEncapsulation.None,\r\n            template: template,\r\n            templateUrl: '',\r\n            styles: [],\r\n            styleUrls: [],\r\n            ngContentSelectors: [],\r\n            animations: [],\r\n            isInline: true,\r\n            externalStylesheets: [],\r\n            interpolation: null\r\n        }),\r\n        exportAs: null,\r\n        changeDetection: ChangeDetectionStrategy.Default,\r\n        inputs: [],\r\n        outputs: [],\r\n        host: {},\r\n        isComponent: true,\r\n        selector: '*',\r\n        providers: [],\r\n        viewProviders: [],\r\n        queries: [],\r\n        viewQueries: [],\r\n        componentViewType: hostViewType,\r\n        rendererType: { id: '__Host__', encapsulation: ViewEncapsulation.None, styles: [], data: {} },\r\n        entryComponents: [],\r\n        componentFactory: null\r\n    });\r\n}\r\nvar CompilePipeMetadata = (function () {\r\n    /**\r\n     * @param {?} __0\r\n     */\r\n    function CompilePipeMetadata(_a) {\r\n        var type = _a.type, name = _a.name, pure = _a.pure;\r\n        this.type = type;\r\n        this.name = name;\r\n        this.pure = !!pure;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    CompilePipeMetadata.prototype.toSummary = function () {\r\n        return {\r\n            summaryKind: CompileSummaryKind.Pipe,\r\n            type: this.type,\r\n            name: this.name,\r\n            pure: this.pure\r\n        };\r\n    };\r\n    return CompilePipeMetadata;\r\n}());\r\n/**\r\n * Metadata regarding compilation of a module.\r\n */\r\nvar CompileNgModuleMetadata = (function () {\r\n    /**\r\n     * @param {?} __0\r\n     */\r\n    function CompileNgModuleMetadata(_a) {\r\n        var type = _a.type, providers = _a.providers, declaredDirectives = _a.declaredDirectives, exportedDirectives = _a.exportedDirectives, declaredPipes = _a.declaredPipes, exportedPipes = _a.exportedPipes, entryComponents = _a.entryComponents, bootstrapComponents = _a.bootstrapComponents, importedModules = _a.importedModules, exportedModules = _a.exportedModules, schemas = _a.schemas, transitiveModule = _a.transitiveModule, id = _a.id;\r\n        this.type = type || null;\r\n        this.declaredDirectives = _normalizeArray(declaredDirectives);\r\n        this.exportedDirectives = _normalizeArray(exportedDirectives);\r\n        this.declaredPipes = _normalizeArray(declaredPipes);\r\n        this.exportedPipes = _normalizeArray(exportedPipes);\r\n        this.providers = _normalizeArray(providers);\r\n        this.entryComponents = _normalizeArray(entryComponents);\r\n        this.bootstrapComponents = _normalizeArray(bootstrapComponents);\r\n        this.importedModules = _normalizeArray(importedModules);\r\n        this.exportedModules = _normalizeArray(exportedModules);\r\n        this.schemas = _normalizeArray(schemas);\r\n        this.id = id || null;\r\n        this.transitiveModule = transitiveModule || null;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    CompileNgModuleMetadata.prototype.toSummary = function () {\r\n        var /** @type {?} */ module = ((this.transitiveModule));\r\n        return {\r\n            summaryKind: CompileSummaryKind.NgModule,\r\n            type: this.type,\r\n            entryComponents: module.entryComponents,\r\n            providers: module.providers,\r\n            modules: module.modules,\r\n            exportedDirectives: module.exportedDirectives,\r\n            exportedPipes: module.exportedPipes\r\n        };\r\n    };\r\n    return CompileNgModuleMetadata;\r\n}());\r\nvar TransitiveCompileNgModuleMetadata = (function () {\r\n    function TransitiveCompileNgModuleMetadata() {\r\n        this.directivesSet = new Set();\r\n        this.directives = [];\r\n        this.exportedDirectivesSet = new Set();\r\n        this.exportedDirectives = [];\r\n        this.pipesSet = new Set();\r\n        this.pipes = [];\r\n        this.exportedPipesSet = new Set();\r\n        this.exportedPipes = [];\r\n        this.modulesSet = new Set();\r\n        this.modules = [];\r\n        this.entryComponentsSet = new Set();\r\n        this.entryComponents = [];\r\n        this.providers = [];\r\n    }\r\n    /**\r\n     * @param {?} provider\r\n     * @param {?} module\r\n     * @return {?}\r\n     */\r\n    TransitiveCompileNgModuleMetadata.prototype.addProvider = function (provider, module) {\r\n        this.providers.push({ provider: provider, module: module });\r\n    };\r\n    /**\r\n     * @param {?} id\r\n     * @return {?}\r\n     */\r\n    TransitiveCompileNgModuleMetadata.prototype.addDirective = function (id) {\r\n        if (!this.directivesSet.has(id.reference)) {\r\n            this.directivesSet.add(id.reference);\r\n            this.directives.push(id);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} id\r\n     * @return {?}\r\n     */\r\n    TransitiveCompileNgModuleMetadata.prototype.addExportedDirective = function (id) {\r\n        if (!this.exportedDirectivesSet.has(id.reference)) {\r\n            this.exportedDirectivesSet.add(id.reference);\r\n            this.exportedDirectives.push(id);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} id\r\n     * @return {?}\r\n     */\r\n    TransitiveCompileNgModuleMetadata.prototype.addPipe = function (id) {\r\n        if (!this.pipesSet.has(id.reference)) {\r\n            this.pipesSet.add(id.reference);\r\n            this.pipes.push(id);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} id\r\n     * @return {?}\r\n     */\r\n    TransitiveCompileNgModuleMetadata.prototype.addExportedPipe = function (id) {\r\n        if (!this.exportedPipesSet.has(id.reference)) {\r\n            this.exportedPipesSet.add(id.reference);\r\n            this.exportedPipes.push(id);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} id\r\n     * @return {?}\r\n     */\r\n    TransitiveCompileNgModuleMetadata.prototype.addModule = function (id) {\r\n        if (!this.modulesSet.has(id.reference)) {\r\n            this.modulesSet.add(id.reference);\r\n            this.modules.push(id);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} ec\r\n     * @return {?}\r\n     */\r\n    TransitiveCompileNgModuleMetadata.prototype.addEntryComponent = function (ec) {\r\n        if (!this.entryComponentsSet.has(ec.componentType)) {\r\n            this.entryComponentsSet.add(ec.componentType);\r\n            this.entryComponents.push(ec);\r\n        }\r\n    };\r\n    return TransitiveCompileNgModuleMetadata;\r\n}());\r\n/**\r\n * @param {?} obj\r\n * @return {?}\r\n */\r\nfunction _normalizeArray(obj) {\r\n    return obj || [];\r\n}\r\nvar ProviderMeta = (function () {\r\n    /**\r\n     * @param {?} token\r\n     * @param {?} __1\r\n     */\r\n    function ProviderMeta(token, _a) {\r\n        var useClass = _a.useClass, useValue = _a.useValue, useExisting = _a.useExisting, useFactory = _a.useFactory, deps = _a.deps, multi = _a.multi;\r\n        this.token = token;\r\n        this.useClass = useClass || null;\r\n        this.useValue = useValue;\r\n        this.useExisting = useExisting;\r\n        this.useFactory = useFactory || null;\r\n        this.dependencies = deps || null;\r\n        this.multi = !!multi;\r\n    }\r\n    return ProviderMeta;\r\n}());\r\n/**\r\n * @template T\r\n * @param {?} list\r\n * @return {?}\r\n */\r\nfunction flatten(list) {\r\n    return list.reduce(function (flat, item) {\r\n        var /** @type {?} */ flatItem = Array.isArray(item) ? flatten(item) : item;\r\n        return ((flat)).concat(flatItem);\r\n    }, []);\r\n}\r\n/**\r\n * @param {?} url\r\n * @return {?}\r\n */\r\nfunction sourceUrl(url) {\r\n    // Note: We need 3 \"/\" so that ng shows up as a separate domain\r\n    // in the chrome dev tools.\r\n    return url.replace(/(\\w+:\\/\\/[\\w:-]+)?(\\/+)?/, 'ng:///');\r\n}\r\n/**\r\n * @param {?} ngModuleType\r\n * @param {?} compMeta\r\n * @param {?} templateMeta\r\n * @return {?}\r\n */\r\nfunction templateSourceUrl(ngModuleType, compMeta, templateMeta) {\r\n    var /** @type {?} */ url;\r\n    if (templateMeta.isInline) {\r\n        if (compMeta.type.reference instanceof StaticSymbol) {\r\n            // Note: a .ts file might contain multiple components with inline templates,\r\n            // so we need to give them unique urls, as these will be used for sourcemaps.\r\n            url = compMeta.type.reference.filePath + \".\" + compMeta.type.reference.name + \".html\";\r\n        }\r\n        else {\r\n            url = identifierName(ngModuleType) + \"/\" + identifierName(compMeta.type) + \".html\";\r\n        }\r\n    }\r\n    else {\r\n        url = ((templateMeta.templateUrl));\r\n    }\r\n    // always prepend ng:// to make angular resources easy to find and not clobber\r\n    // user resources.\r\n    return sourceUrl(url);\r\n}\r\n/**\r\n * @param {?} meta\r\n * @param {?} id\r\n * @return {?}\r\n */\r\nfunction sharedStylesheetJitUrl(meta, id) {\r\n    var /** @type {?} */ pathParts = ((meta.moduleUrl)).split(/\\/\\\\/g);\r\n    var /** @type {?} */ baseName = pathParts[pathParts.length - 1];\r\n    return sourceUrl(\"css/\" + id + baseName + \".ngstyle.js\");\r\n}\r\n/**\r\n * @param {?} moduleMeta\r\n * @return {?}\r\n */\r\nfunction ngModuleJitUrl(moduleMeta) {\r\n    return sourceUrl(identifierName(moduleMeta.type) + \"/module.ngfactory.js\");\r\n}\r\n/**\r\n * @param {?} ngModuleType\r\n * @param {?} compMeta\r\n * @return {?}\r\n */\r\nfunction templateJitUrl(ngModuleType, compMeta) {\r\n    return sourceUrl(identifierName(ngModuleType) + \"/\" + identifierName(compMeta.type) + \".ngfactory.js\");\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar CompilerConfig = (function () {\r\n    /**\r\n     * @param {?=} __0\r\n     */\r\n    function CompilerConfig(_a) {\r\n        var _b = _a === void 0 ? {} : _a, _c = _b.defaultEncapsulation, defaultEncapsulation = _c === void 0 ? ViewEncapsulation.Emulated : _c, _d = _b.useJit, useJit = _d === void 0 ? true : _d, missingTranslation = _b.missingTranslation, enableLegacyTemplate = _b.enableLegacyTemplate;\r\n        this.defaultEncapsulation = defaultEncapsulation;\r\n        this.useJit = !!useJit;\r\n        this.missingTranslation = missingTranslation || null;\r\n        this.enableLegacyTemplate = enableLegacyTemplate !== false;\r\n    }\r\n    return CompilerConfig;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ParserError = (function () {\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} input\r\n     * @param {?} errLocation\r\n     * @param {?=} ctxLocation\r\n     */\r\n    function ParserError(message, input, errLocation, ctxLocation) {\r\n        this.input = input;\r\n        this.errLocation = errLocation;\r\n        this.ctxLocation = ctxLocation;\r\n        this.message = \"Parser Error: \" + message + \" \" + errLocation + \" [\" + input + \"] in \" + ctxLocation;\r\n    }\r\n    return ParserError;\r\n}());\r\nvar ParseSpan = (function () {\r\n    /**\r\n     * @param {?} start\r\n     * @param {?} end\r\n     */\r\n    function ParseSpan(start, end) {\r\n        this.start = start;\r\n        this.end = end;\r\n    }\r\n    return ParseSpan;\r\n}());\r\nvar AST = (function () {\r\n    /**\r\n     * @param {?} span\r\n     */\r\n    function AST(span) {\r\n        this.span = span;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    AST.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return null;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    AST.prototype.toString = function () { return 'AST'; };\r\n    return AST;\r\n}());\r\n/**\r\n * Represents a quoted expression of the form:\r\n *\r\n * quote = prefix `:` uninterpretedExpression\r\n * prefix = identifier\r\n * uninterpretedExpression = arbitrary string\r\n *\r\n * A quoted expression is meant to be pre-processed by an AST transformer that\r\n * converts it into another AST that no longer contains quoted expressions.\r\n * It is meant to allow third-party developers to extend Angular template\r\n * expression language. The `uninterpretedExpression` part of the quote is\r\n * therefore not interpreted by the Angular's own expression parser.\r\n */\r\nvar Quote = (function (_super) {\r\n    __extends(Quote, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} prefix\r\n     * @param {?} uninterpretedExpression\r\n     * @param {?} location\r\n     */\r\n    function Quote(span, prefix, uninterpretedExpression, location) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.prefix = prefix;\r\n        _this.uninterpretedExpression = uninterpretedExpression;\r\n        _this.location = location;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    Quote.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitQuote(this, context);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Quote.prototype.toString = function () { return 'Quote'; };\r\n    return Quote;\r\n}(AST));\r\nvar EmptyExpr = (function (_super) {\r\n    __extends(EmptyExpr, _super);\r\n    function EmptyExpr() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    EmptyExpr.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        // do nothing\r\n    };\r\n    return EmptyExpr;\r\n}(AST));\r\nvar ImplicitReceiver = (function (_super) {\r\n    __extends(ImplicitReceiver, _super);\r\n    function ImplicitReceiver() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    ImplicitReceiver.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitImplicitReceiver(this, context);\r\n    };\r\n    return ImplicitReceiver;\r\n}(AST));\r\n/**\r\n * Multiple expressions separated by a semicolon.\r\n */\r\nvar Chain = (function (_super) {\r\n    __extends(Chain, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} expressions\r\n     */\r\n    function Chain(span, expressions) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.expressions = expressions;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    Chain.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitChain(this, context);\r\n    };\r\n    return Chain;\r\n}(AST));\r\nvar Conditional = (function (_super) {\r\n    __extends(Conditional, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} condition\r\n     * @param {?} trueExp\r\n     * @param {?} falseExp\r\n     */\r\n    function Conditional(span, condition, trueExp, falseExp) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.condition = condition;\r\n        _this.trueExp = trueExp;\r\n        _this.falseExp = falseExp;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    Conditional.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitConditional(this, context);\r\n    };\r\n    return Conditional;\r\n}(AST));\r\nvar PropertyRead = (function (_super) {\r\n    __extends(PropertyRead, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} receiver\r\n     * @param {?} name\r\n     */\r\n    function PropertyRead(span, receiver, name) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.receiver = receiver;\r\n        _this.name = name;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    PropertyRead.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitPropertyRead(this, context);\r\n    };\r\n    return PropertyRead;\r\n}(AST));\r\nvar PropertyWrite = (function (_super) {\r\n    __extends(PropertyWrite, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} receiver\r\n     * @param {?} name\r\n     * @param {?} value\r\n     */\r\n    function PropertyWrite(span, receiver, name, value) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.receiver = receiver;\r\n        _this.name = name;\r\n        _this.value = value;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    PropertyWrite.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitPropertyWrite(this, context);\r\n    };\r\n    return PropertyWrite;\r\n}(AST));\r\nvar SafePropertyRead = (function (_super) {\r\n    __extends(SafePropertyRead, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} receiver\r\n     * @param {?} name\r\n     */\r\n    function SafePropertyRead(span, receiver, name) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.receiver = receiver;\r\n        _this.name = name;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    SafePropertyRead.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitSafePropertyRead(this, context);\r\n    };\r\n    return SafePropertyRead;\r\n}(AST));\r\nvar KeyedRead = (function (_super) {\r\n    __extends(KeyedRead, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} obj\r\n     * @param {?} key\r\n     */\r\n    function KeyedRead(span, obj, key) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.obj = obj;\r\n        _this.key = key;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    KeyedRead.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitKeyedRead(this, context);\r\n    };\r\n    return KeyedRead;\r\n}(AST));\r\nvar KeyedWrite = (function (_super) {\r\n    __extends(KeyedWrite, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} obj\r\n     * @param {?} key\r\n     * @param {?} value\r\n     */\r\n    function KeyedWrite(span, obj, key, value) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.obj = obj;\r\n        _this.key = key;\r\n        _this.value = value;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    KeyedWrite.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitKeyedWrite(this, context);\r\n    };\r\n    return KeyedWrite;\r\n}(AST));\r\nvar BindingPipe = (function (_super) {\r\n    __extends(BindingPipe, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} exp\r\n     * @param {?} name\r\n     * @param {?} args\r\n     */\r\n    function BindingPipe(span, exp, name, args) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.exp = exp;\r\n        _this.name = name;\r\n        _this.args = args;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    BindingPipe.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitPipe(this, context);\r\n    };\r\n    return BindingPipe;\r\n}(AST));\r\nvar LiteralPrimitive = (function (_super) {\r\n    __extends(LiteralPrimitive, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} value\r\n     */\r\n    function LiteralPrimitive(span, value) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.value = value;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    LiteralPrimitive.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitLiteralPrimitive(this, context);\r\n    };\r\n    return LiteralPrimitive;\r\n}(AST));\r\nvar LiteralArray = (function (_super) {\r\n    __extends(LiteralArray, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} expressions\r\n     */\r\n    function LiteralArray(span, expressions) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.expressions = expressions;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    LiteralArray.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitLiteralArray(this, context);\r\n    };\r\n    return LiteralArray;\r\n}(AST));\r\nvar LiteralMap = (function (_super) {\r\n    __extends(LiteralMap, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} keys\r\n     * @param {?} values\r\n     */\r\n    function LiteralMap(span, keys, values) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.keys = keys;\r\n        _this.values = values;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    LiteralMap.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitLiteralMap(this, context);\r\n    };\r\n    return LiteralMap;\r\n}(AST));\r\nvar Interpolation = (function (_super) {\r\n    __extends(Interpolation, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} strings\r\n     * @param {?} expressions\r\n     */\r\n    function Interpolation(span, strings, expressions) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.strings = strings;\r\n        _this.expressions = expressions;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    Interpolation.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitInterpolation(this, context);\r\n    };\r\n    return Interpolation;\r\n}(AST));\r\nvar Binary = (function (_super) {\r\n    __extends(Binary, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} operation\r\n     * @param {?} left\r\n     * @param {?} right\r\n     */\r\n    function Binary(span, operation, left, right) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.operation = operation;\r\n        _this.left = left;\r\n        _this.right = right;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    Binary.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitBinary(this, context);\r\n    };\r\n    return Binary;\r\n}(AST));\r\nvar PrefixNot = (function (_super) {\r\n    __extends(PrefixNot, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} expression\r\n     */\r\n    function PrefixNot(span, expression) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.expression = expression;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    PrefixNot.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitPrefixNot(this, context);\r\n    };\r\n    return PrefixNot;\r\n}(AST));\r\nvar MethodCall = (function (_super) {\r\n    __extends(MethodCall, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} receiver\r\n     * @param {?} name\r\n     * @param {?} args\r\n     */\r\n    function MethodCall(span, receiver, name, args) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.receiver = receiver;\r\n        _this.name = name;\r\n        _this.args = args;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    MethodCall.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitMethodCall(this, context);\r\n    };\r\n    return MethodCall;\r\n}(AST));\r\nvar SafeMethodCall = (function (_super) {\r\n    __extends(SafeMethodCall, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} receiver\r\n     * @param {?} name\r\n     * @param {?} args\r\n     */\r\n    function SafeMethodCall(span, receiver, name, args) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.receiver = receiver;\r\n        _this.name = name;\r\n        _this.args = args;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    SafeMethodCall.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitSafeMethodCall(this, context);\r\n    };\r\n    return SafeMethodCall;\r\n}(AST));\r\nvar FunctionCall = (function (_super) {\r\n    __extends(FunctionCall, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} target\r\n     * @param {?} args\r\n     */\r\n    function FunctionCall(span, target, args) {\r\n        var _this = _super.call(this, span) || this;\r\n        _this.target = target;\r\n        _this.args = args;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    FunctionCall.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return visitor.visitFunctionCall(this, context);\r\n    };\r\n    return FunctionCall;\r\n}(AST));\r\nvar ASTWithSource = (function (_super) {\r\n    __extends(ASTWithSource, _super);\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} source\r\n     * @param {?} location\r\n     * @param {?} errors\r\n     */\r\n    function ASTWithSource(ast, source, location, errors) {\r\n        var _this = _super.call(this, new ParseSpan(0, source == null ? 0 : source.length)) || this;\r\n        _this.ast = ast;\r\n        _this.source = source;\r\n        _this.location = location;\r\n        _this.errors = errors;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    ASTWithSource.prototype.visit = function (visitor, context) {\r\n        if (context === void 0) { context = null; }\r\n        return this.ast.visit(visitor, context);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ASTWithSource.prototype.toString = function () { return this.source + \" in \" + this.location; };\r\n    return ASTWithSource;\r\n}(AST));\r\nvar TemplateBinding = (function () {\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} key\r\n     * @param {?} keyIsVar\r\n     * @param {?} name\r\n     * @param {?} expression\r\n     */\r\n    function TemplateBinding(span, key, keyIsVar, name, expression) {\r\n        this.span = span;\r\n        this.key = key;\r\n        this.keyIsVar = keyIsVar;\r\n        this.name = name;\r\n        this.expression = expression;\r\n    }\r\n    return TemplateBinding;\r\n}());\r\nvar RecursiveAstVisitor = (function () {\r\n    function RecursiveAstVisitor() {\r\n    }\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitBinary = function (ast, context) {\r\n        ast.left.visit(this);\r\n        ast.right.visit(this);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitChain = function (ast, context) { return this.visitAll(ast.expressions, context); };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitConditional = function (ast, context) {\r\n        ast.condition.visit(this);\r\n        ast.trueExp.visit(this);\r\n        ast.falseExp.visit(this);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitPipe = function (ast, context) {\r\n        ast.exp.visit(this);\r\n        this.visitAll(ast.args, context);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitFunctionCall = function (ast, context) {\r\n        ((ast.target)).visit(this);\r\n        this.visitAll(ast.args, context);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitImplicitReceiver = function (ast, context) { return null; };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitInterpolation = function (ast, context) {\r\n        return this.visitAll(ast.expressions, context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitKeyedRead = function (ast, context) {\r\n        ast.obj.visit(this);\r\n        ast.key.visit(this);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitKeyedWrite = function (ast, context) {\r\n        ast.obj.visit(this);\r\n        ast.key.visit(this);\r\n        ast.value.visit(this);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitLiteralArray = function (ast, context) {\r\n        return this.visitAll(ast.expressions, context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitLiteralMap = function (ast, context) { return this.visitAll(ast.values, context); };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitLiteralPrimitive = function (ast, context) { return null; };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitMethodCall = function (ast, context) {\r\n        ast.receiver.visit(this);\r\n        return this.visitAll(ast.args, context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitPrefixNot = function (ast, context) {\r\n        ast.expression.visit(this);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitPropertyRead = function (ast, context) {\r\n        ast.receiver.visit(this);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitPropertyWrite = function (ast, context) {\r\n        ast.receiver.visit(this);\r\n        ast.value.visit(this);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitSafePropertyRead = function (ast, context) {\r\n        ast.receiver.visit(this);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitSafeMethodCall = function (ast, context) {\r\n        ast.receiver.visit(this);\r\n        return this.visitAll(ast.args, context);\r\n    };\r\n    /**\r\n     * @param {?} asts\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitAll = function (asts, context) {\r\n        var _this = this;\r\n        asts.forEach(function (ast) { return ast.visit(_this, context); });\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor.prototype.visitQuote = function (ast, context) { return null; };\r\n    return RecursiveAstVisitor;\r\n}());\r\nvar AstTransformer = (function () {\r\n    function AstTransformer() {\r\n    }\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitImplicitReceiver = function (ast, context) { return ast; };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitInterpolation = function (ast, context) {\r\n        return new Interpolation(ast.span, ast.strings, this.visitAll(ast.expressions));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitLiteralPrimitive = function (ast, context) {\r\n        return new LiteralPrimitive(ast.span, ast.value);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitPropertyRead = function (ast, context) {\r\n        return new PropertyRead(ast.span, ast.receiver.visit(this), ast.name);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitPropertyWrite = function (ast, context) {\r\n        return new PropertyWrite(ast.span, ast.receiver.visit(this), ast.name, ast.value.visit(this));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitSafePropertyRead = function (ast, context) {\r\n        return new SafePropertyRead(ast.span, ast.receiver.visit(this), ast.name);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitMethodCall = function (ast, context) {\r\n        return new MethodCall(ast.span, ast.receiver.visit(this), ast.name, this.visitAll(ast.args));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitSafeMethodCall = function (ast, context) {\r\n        return new SafeMethodCall(ast.span, ast.receiver.visit(this), ast.name, this.visitAll(ast.args));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitFunctionCall = function (ast, context) {\r\n        return new FunctionCall(ast.span, /** @type {?} */ ((ast.target)).visit(this), this.visitAll(ast.args));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitLiteralArray = function (ast, context) {\r\n        return new LiteralArray(ast.span, this.visitAll(ast.expressions));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitLiteralMap = function (ast, context) {\r\n        return new LiteralMap(ast.span, ast.keys, this.visitAll(ast.values));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitBinary = function (ast, context) {\r\n        return new Binary(ast.span, ast.operation, ast.left.visit(this), ast.right.visit(this));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitPrefixNot = function (ast, context) {\r\n        return new PrefixNot(ast.span, ast.expression.visit(this));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitConditional = function (ast, context) {\r\n        return new Conditional(ast.span, ast.condition.visit(this), ast.trueExp.visit(this), ast.falseExp.visit(this));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitPipe = function (ast, context) {\r\n        return new BindingPipe(ast.span, ast.exp.visit(this), ast.name, this.visitAll(ast.args));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitKeyedRead = function (ast, context) {\r\n        return new KeyedRead(ast.span, ast.obj.visit(this), ast.key.visit(this));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitKeyedWrite = function (ast, context) {\r\n        return new KeyedWrite(ast.span, ast.obj.visit(this), ast.key.visit(this), ast.value.visit(this));\r\n    };\r\n    /**\r\n     * @param {?} asts\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitAll = function (asts) {\r\n        var /** @type {?} */ res = new Array(asts.length);\r\n        for (var /** @type {?} */ i = 0; i < asts.length; ++i) {\r\n            res[i] = asts[i].visit(this);\r\n        }\r\n        return res;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitChain = function (ast, context) {\r\n        return new Chain(ast.span, this.visitAll(ast.expressions));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer.prototype.visitQuote = function (ast, context) {\r\n        return new Quote(ast.span, ast.prefix, ast.uninterpretedExpression, ast.location);\r\n    };\r\n    return AstTransformer;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar $EOF = 0;\r\nvar $TAB = 9;\r\nvar $LF = 10;\r\nvar $VTAB = 11;\r\nvar $FF = 12;\r\nvar $CR = 13;\r\nvar $SPACE = 32;\r\nvar $BANG = 33;\r\nvar $DQ = 34;\r\nvar $HASH = 35;\r\nvar $$ = 36;\r\nvar $PERCENT = 37;\r\nvar $AMPERSAND = 38;\r\nvar $SQ = 39;\r\nvar $LPAREN = 40;\r\nvar $RPAREN = 41;\r\nvar $STAR = 42;\r\nvar $PLUS = 43;\r\nvar $COMMA = 44;\r\nvar $MINUS = 45;\r\nvar $PERIOD = 46;\r\nvar $SLASH = 47;\r\nvar $COLON = 58;\r\nvar $SEMICOLON = 59;\r\nvar $LT = 60;\r\nvar $EQ = 61;\r\nvar $GT = 62;\r\nvar $QUESTION = 63;\r\nvar $0 = 48;\r\nvar $9 = 57;\r\nvar $A = 65;\r\nvar $E = 69;\r\nvar $F = 70;\r\nvar $X = 88;\r\nvar $Z = 90;\r\nvar $LBRACKET = 91;\r\nvar $BACKSLASH = 92;\r\nvar $RBRACKET = 93;\r\nvar $CARET = 94;\r\nvar $_ = 95;\r\nvar $a = 97;\r\nvar $e = 101;\r\nvar $f = 102;\r\nvar $n = 110;\r\nvar $r = 114;\r\nvar $t = 116;\r\nvar $u = 117;\r\nvar $v = 118;\r\nvar $x = 120;\r\nvar $z = 122;\r\nvar $LBRACE = 123;\r\nvar $BAR = 124;\r\nvar $RBRACE = 125;\r\nvar $NBSP = 160;\r\nvar $BT = 96;\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isWhitespace(code) {\r\n    return (code >= $TAB && code <= $SPACE) || (code == $NBSP);\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isDigit(code) {\r\n    return $0 <= code && code <= $9;\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isAsciiLetter(code) {\r\n    return code >= $a && code <= $z || code >= $A && code <= $Z;\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isAsciiHexDigit(code) {\r\n    return code >= $a && code <= $f || code >= $A && code <= $F || isDigit(code);\r\n}\r\n/**\r\n * A replacement for \\@Injectable to be used in the compiler, so that\r\n * we don't try to evaluate the metadata in the compiler during AoT.\r\n * This decorator is enough to make the compiler work with the ReflectiveInjector though.\r\n * \\@Annotation\r\n * @return {?}\r\n */\r\nfunction CompilerInjectable() {\r\n    return function (x) { return x; };\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} identifier\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction assertArrayOfStrings(identifier, value) {\r\n    if (!isDevMode() || value == null) {\r\n        return;\r\n    }\r\n    if (!Array.isArray(value)) {\r\n        throw new Error(\"Expected '\" + identifier + \"' to be an array of strings.\");\r\n    }\r\n    for (var /** @type {?} */ i = 0; i < value.length; i += 1) {\r\n        if (typeof value[i] !== 'string') {\r\n            throw new Error(\"Expected '\" + identifier + \"' to be an array of strings.\");\r\n        }\r\n    }\r\n}\r\nvar INTERPOLATION_BLACKLIST_REGEXPS = [\r\n    /^\\s*$/,\r\n    /[<>]/,\r\n    /^[{}]$/,\r\n    /&(#|[a-z])/i,\r\n    /^\\/\\//,\r\n];\r\n/**\r\n * @param {?} identifier\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction assertInterpolationSymbols(identifier, value) {\r\n    if (value != null && !(Array.isArray(value) && value.length == 2)) {\r\n        throw new Error(\"Expected '\" + identifier + \"' to be an array, [start, end].\");\r\n    }\r\n    else if (isDevMode() && value != null) {\r\n        var /** @type {?} */ start_1 = (value[0]);\r\n        var /** @type {?} */ end_1 = (value[1]);\r\n        // black list checking\r\n        INTERPOLATION_BLACKLIST_REGEXPS.forEach(function (regexp) {\r\n            if (regexp.test(start_1) || regexp.test(end_1)) {\r\n                throw new Error(\"['\" + start_1 + \"', '\" + end_1 + \"'] contains unusable interpolation symbol.\");\r\n            }\r\n        });\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar InterpolationConfig = (function () {\r\n    /**\r\n     * @param {?} start\r\n     * @param {?} end\r\n     */\r\n    function InterpolationConfig(start, end) {\r\n        this.start = start;\r\n        this.end = end;\r\n    }\r\n    /**\r\n     * @param {?} markers\r\n     * @return {?}\r\n     */\r\n    InterpolationConfig.fromArray = function (markers) {\r\n        if (!markers) {\r\n            return DEFAULT_INTERPOLATION_CONFIG;\r\n        }\r\n        assertInterpolationSymbols('interpolation', markers);\r\n        return new InterpolationConfig(markers[0], markers[1]);\r\n    };\r\n    ;\r\n    return InterpolationConfig;\r\n}());\r\nvar DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig('{{', '}}');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar TokenType = {};\r\nTokenType.Character = 0;\r\nTokenType.Identifier = 1;\r\nTokenType.Keyword = 2;\r\nTokenType.String = 3;\r\nTokenType.Operator = 4;\r\nTokenType.Number = 5;\r\nTokenType.Error = 6;\r\nTokenType[TokenType.Character] = \"Character\";\r\nTokenType[TokenType.Identifier] = \"Identifier\";\r\nTokenType[TokenType.Keyword] = \"Keyword\";\r\nTokenType[TokenType.String] = \"String\";\r\nTokenType[TokenType.Operator] = \"Operator\";\r\nTokenType[TokenType.Number] = \"Number\";\r\nTokenType[TokenType.Error] = \"Error\";\r\nvar KEYWORDS = ['var', 'let', 'as', 'null', 'undefined', 'true', 'false', 'if', 'else', 'this'];\r\nvar Lexer = (function () {\r\n    function Lexer() {\r\n    }\r\n    /**\r\n     * @param {?} text\r\n     * @return {?}\r\n     */\r\n    Lexer.prototype.tokenize = function (text) {\r\n        var /** @type {?} */ scanner = new _Scanner(text);\r\n        var /** @type {?} */ tokens = [];\r\n        var /** @type {?} */ token = scanner.scanToken();\r\n        while (token != null) {\r\n            tokens.push(token);\r\n            token = scanner.scanToken();\r\n        }\r\n        return tokens;\r\n    };\r\n    return Lexer;\r\n}());\r\nLexer.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nLexer.ctorParameters = function () { return []; };\r\nvar Token = (function () {\r\n    /**\r\n     * @param {?} index\r\n     * @param {?} type\r\n     * @param {?} numValue\r\n     * @param {?} strValue\r\n     */\r\n    function Token(index, type, numValue, strValue) {\r\n        this.index = index;\r\n        this.type = type;\r\n        this.numValue = numValue;\r\n        this.strValue = strValue;\r\n    }\r\n    /**\r\n     * @param {?} code\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isCharacter = function (code) {\r\n        return this.type == TokenType.Character && this.numValue == code;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isNumber = function () { return this.type == TokenType.Number; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isString = function () { return this.type == TokenType.String; };\r\n    /**\r\n     * @param {?} operater\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isOperator = function (operater) {\r\n        return this.type == TokenType.Operator && this.strValue == operater;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isIdentifier = function () { return this.type == TokenType.Identifier; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isKeyword = function () { return this.type == TokenType.Keyword; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isKeywordLet = function () { return this.type == TokenType.Keyword && this.strValue == 'let'; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isKeywordAs = function () { return this.type == TokenType.Keyword && this.strValue == 'as'; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isKeywordNull = function () { return this.type == TokenType.Keyword && this.strValue == 'null'; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isKeywordUndefined = function () {\r\n        return this.type == TokenType.Keyword && this.strValue == 'undefined';\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isKeywordTrue = function () { return this.type == TokenType.Keyword && this.strValue == 'true'; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isKeywordFalse = function () { return this.type == TokenType.Keyword && this.strValue == 'false'; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isKeywordThis = function () { return this.type == TokenType.Keyword && this.strValue == 'this'; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.isError = function () { return this.type == TokenType.Error; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.toNumber = function () { return this.type == TokenType.Number ? this.numValue : -1; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Token.prototype.toString = function () {\r\n        switch (this.type) {\r\n            case TokenType.Character:\r\n            case TokenType.Identifier:\r\n            case TokenType.Keyword:\r\n            case TokenType.Operator:\r\n            case TokenType.String:\r\n            case TokenType.Error:\r\n                return this.strValue;\r\n            case TokenType.Number:\r\n                return this.numValue.toString();\r\n            default:\r\n                return null;\r\n        }\r\n    };\r\n    return Token;\r\n}());\r\n/**\r\n * @param {?} index\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction newCharacterToken(index, code) {\r\n    return new Token(index, TokenType.Character, code, String.fromCharCode(code));\r\n}\r\n/**\r\n * @param {?} index\r\n * @param {?} text\r\n * @return {?}\r\n */\r\nfunction newIdentifierToken(index, text) {\r\n    return new Token(index, TokenType.Identifier, 0, text);\r\n}\r\n/**\r\n * @param {?} index\r\n * @param {?} text\r\n * @return {?}\r\n */\r\nfunction newKeywordToken(index, text) {\r\n    return new Token(index, TokenType.Keyword, 0, text);\r\n}\r\n/**\r\n * @param {?} index\r\n * @param {?} text\r\n * @return {?}\r\n */\r\nfunction newOperatorToken(index, text) {\r\n    return new Token(index, TokenType.Operator, 0, text);\r\n}\r\n/**\r\n * @param {?} index\r\n * @param {?} text\r\n * @return {?}\r\n */\r\nfunction newStringToken(index, text) {\r\n    return new Token(index, TokenType.String, 0, text);\r\n}\r\n/**\r\n * @param {?} index\r\n * @param {?} n\r\n * @return {?}\r\n */\r\nfunction newNumberToken(index, n) {\r\n    return new Token(index, TokenType.Number, n, '');\r\n}\r\n/**\r\n * @param {?} index\r\n * @param {?} message\r\n * @return {?}\r\n */\r\nfunction newErrorToken(index, message) {\r\n    return new Token(index, TokenType.Error, 0, message);\r\n}\r\nvar EOF = new Token(-1, TokenType.Character, 0, '');\r\nvar _Scanner = (function () {\r\n    /**\r\n     * @param {?} input\r\n     */\r\n    function _Scanner(input) {\r\n        this.input = input;\r\n        this.peek = 0;\r\n        this.index = -1;\r\n        this.length = input.length;\r\n        this.advance();\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Scanner.prototype.advance = function () {\r\n        this.peek = ++this.index >= this.length ? $EOF : this.input.charCodeAt(this.index);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Scanner.prototype.scanToken = function () {\r\n        var /** @type {?} */ input = this.input, /** @type {?} */ length = this.length;\r\n        var /** @type {?} */ peek = this.peek, /** @type {?} */ index = this.index;\r\n        // Skip whitespace.\r\n        while (peek <= $SPACE) {\r\n            if (++index >= length) {\r\n                peek = $EOF;\r\n                break;\r\n            }\r\n            else {\r\n                peek = input.charCodeAt(index);\r\n            }\r\n        }\r\n        this.peek = peek;\r\n        this.index = index;\r\n        if (index >= length) {\r\n            return null;\r\n        }\r\n        // Handle identifiers and numbers.\r\n        if (isIdentifierStart(peek))\r\n            return this.scanIdentifier();\r\n        if (isDigit(peek))\r\n            return this.scanNumber(index);\r\n        var /** @type {?} */ start = index;\r\n        switch (peek) {\r\n            case $PERIOD:\r\n                this.advance();\r\n                return isDigit(this.peek) ? this.scanNumber(start) :\r\n                    newCharacterToken(start, $PERIOD);\r\n            case $LPAREN:\r\n            case $RPAREN:\r\n            case $LBRACE:\r\n            case $RBRACE:\r\n            case $LBRACKET:\r\n            case $RBRACKET:\r\n            case $COMMA:\r\n            case $COLON:\r\n            case $SEMICOLON:\r\n                return this.scanCharacter(start, peek);\r\n            case $SQ:\r\n            case $DQ:\r\n                return this.scanString();\r\n            case $HASH:\r\n            case $PLUS:\r\n            case $MINUS:\r\n            case $STAR:\r\n            case $SLASH:\r\n            case $PERCENT:\r\n            case $CARET:\r\n                return this.scanOperator(start, String.fromCharCode(peek));\r\n            case $QUESTION:\r\n                return this.scanComplexOperator(start, '?', $PERIOD, '.');\r\n            case $LT:\r\n            case $GT:\r\n                return this.scanComplexOperator(start, String.fromCharCode(peek), $EQ, '=');\r\n            case $BANG:\r\n            case $EQ:\r\n                return this.scanComplexOperator(start, String.fromCharCode(peek), $EQ, '=', $EQ, '=');\r\n            case $AMPERSAND:\r\n                return this.scanComplexOperator(start, '&', $AMPERSAND, '&');\r\n            case $BAR:\r\n                return this.scanComplexOperator(start, '|', $BAR, '|');\r\n            case $NBSP:\r\n                while (isWhitespace(this.peek))\r\n                    this.advance();\r\n                return this.scanToken();\r\n        }\r\n        this.advance();\r\n        return this.error(\"Unexpected character [\" + String.fromCharCode(peek) + \"]\", 0);\r\n    };\r\n    /**\r\n     * @param {?} start\r\n     * @param {?} code\r\n     * @return {?}\r\n     */\r\n    _Scanner.prototype.scanCharacter = function (start, code) {\r\n        this.advance();\r\n        return newCharacterToken(start, code);\r\n    };\r\n    /**\r\n     * @param {?} start\r\n     * @param {?} str\r\n     * @return {?}\r\n     */\r\n    _Scanner.prototype.scanOperator = function (start, str) {\r\n        this.advance();\r\n        return newOperatorToken(start, str);\r\n    };\r\n    /**\r\n     * Tokenize a 2/3 char long operator\r\n     *\r\n     * @param {?} start start index in the expression\r\n     * @param {?} one first symbol (always part of the operator)\r\n     * @param {?} twoCode code point for the second symbol\r\n     * @param {?} two second symbol (part of the operator when the second code point matches)\r\n     * @param {?=} threeCode code point for the third symbol\r\n     * @param {?=} three third symbol (part of the operator when provided and matches source expression)\r\n     * @return {?}\r\n     */\r\n    _Scanner.prototype.scanComplexOperator = function (start, one, twoCode, two, threeCode, three) {\r\n        this.advance();\r\n        var /** @type {?} */ str = one;\r\n        if (this.peek == twoCode) {\r\n            this.advance();\r\n            str += two;\r\n        }\r\n        if (threeCode != null && this.peek == threeCode) {\r\n            this.advance();\r\n            str += three;\r\n        }\r\n        return newOperatorToken(start, str);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Scanner.prototype.scanIdentifier = function () {\r\n        var /** @type {?} */ start = this.index;\r\n        this.advance();\r\n        while (isIdentifierPart(this.peek))\r\n            this.advance();\r\n        var /** @type {?} */ str = this.input.substring(start, this.index);\r\n        return KEYWORDS.indexOf(str) > -1 ? newKeywordToken(start, str) :\r\n            newIdentifierToken(start, str);\r\n    };\r\n    /**\r\n     * @param {?} start\r\n     * @return {?}\r\n     */\r\n    _Scanner.prototype.scanNumber = function (start) {\r\n        var /** @type {?} */ simple = (this.index === start);\r\n        this.advance(); // Skip initial digit.\r\n        while (true) {\r\n            if (isDigit(this.peek)) {\r\n            }\r\n            else if (this.peek == $PERIOD) {\r\n                simple = false;\r\n            }\r\n            else if (isExponentStart(this.peek)) {\r\n                this.advance();\r\n                if (isExponentSign(this.peek))\r\n                    this.advance();\r\n                if (!isDigit(this.peek))\r\n                    return this.error('Invalid exponent', -1);\r\n                simple = false;\r\n            }\r\n            else {\r\n                break;\r\n            }\r\n            this.advance();\r\n        }\r\n        var /** @type {?} */ str = this.input.substring(start, this.index);\r\n        var /** @type {?} */ value = simple ? parseIntAutoRadix(str) : parseFloat(str);\r\n        return newNumberToken(start, value);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Scanner.prototype.scanString = function () {\r\n        var /** @type {?} */ start = this.index;\r\n        var /** @type {?} */ quote = this.peek;\r\n        this.advance(); // Skip initial quote.\r\n        var /** @type {?} */ buffer = '';\r\n        var /** @type {?} */ marker = this.index;\r\n        var /** @type {?} */ input = this.input;\r\n        while (this.peek != quote) {\r\n            if (this.peek == $BACKSLASH) {\r\n                buffer += input.substring(marker, this.index);\r\n                this.advance();\r\n                var /** @type {?} */ unescapedCode = void 0;\r\n                // Workaround for TS2.1-introduced type strictness\r\n                this.peek = this.peek;\r\n                if (this.peek == $u) {\r\n                    // 4 character hex code for unicode character.\r\n                    var /** @type {?} */ hex = input.substring(this.index + 1, this.index + 5);\r\n                    if (/^[0-9a-f]+$/i.test(hex)) {\r\n                        unescapedCode = parseInt(hex, 16);\r\n                    }\r\n                    else {\r\n                        return this.error(\"Invalid unicode escape [\\\\u\" + hex + \"]\", 0);\r\n                    }\r\n                    for (var /** @type {?} */ i = 0; i < 5; i++) {\r\n                        this.advance();\r\n                    }\r\n                }\r\n                else {\r\n                    unescapedCode = unescape(this.peek);\r\n                    this.advance();\r\n                }\r\n                buffer += String.fromCharCode(unescapedCode);\r\n                marker = this.index;\r\n            }\r\n            else if (this.peek == $EOF) {\r\n                return this.error('Unterminated quote', 0);\r\n            }\r\n            else {\r\n                this.advance();\r\n            }\r\n        }\r\n        var /** @type {?} */ last = input.substring(marker, this.index);\r\n        this.advance(); // Skip terminating quote.\r\n        return newStringToken(start, buffer + last);\r\n    };\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} offset\r\n     * @return {?}\r\n     */\r\n    _Scanner.prototype.error = function (message, offset) {\r\n        var /** @type {?} */ position = this.index + offset;\r\n        return newErrorToken(position, \"Lexer Error: \" + message + \" at column \" + position + \" in expression [\" + this.input + \"]\");\r\n    };\r\n    return _Scanner;\r\n}());\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isIdentifierStart(code) {\r\n    return ($a <= code && code <= $z) || ($A <= code && code <= $Z) ||\r\n        (code == $_) || (code == $$);\r\n}\r\n/**\r\n * @param {?} input\r\n * @return {?}\r\n */\r\nfunction isIdentifier(input) {\r\n    if (input.length == 0)\r\n        return false;\r\n    var /** @type {?} */ scanner = new _Scanner(input);\r\n    if (!isIdentifierStart(scanner.peek))\r\n        return false;\r\n    scanner.advance();\r\n    while (scanner.peek !== $EOF) {\r\n        if (!isIdentifierPart(scanner.peek))\r\n            return false;\r\n        scanner.advance();\r\n    }\r\n    return true;\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isIdentifierPart(code) {\r\n    return isAsciiLetter(code) || isDigit(code) || (code == $_) ||\r\n        (code == $$);\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isExponentStart(code) {\r\n    return code == $e || code == $E;\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isExponentSign(code) {\r\n    return code == $MINUS || code == $PLUS;\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isQuote(code) {\r\n    return code === $SQ || code === $DQ || code === $BT;\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction unescape(code) {\r\n    switch (code) {\r\n        case $n:\r\n            return $LF;\r\n        case $f:\r\n            return $FF;\r\n        case $r:\r\n            return $CR;\r\n        case $t:\r\n            return $TAB;\r\n        case $v:\r\n            return $VTAB;\r\n        default:\r\n            return code;\r\n    }\r\n}\r\n/**\r\n * @param {?} text\r\n * @return {?}\r\n */\r\nfunction parseIntAutoRadix(text) {\r\n    var /** @type {?} */ result = parseInt(text);\r\n    if (isNaN(result)) {\r\n        throw new Error('Invalid integer literal when parsing ' + text);\r\n    }\r\n    return result;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar SplitInterpolation = (function () {\r\n    /**\r\n     * @param {?} strings\r\n     * @param {?} expressions\r\n     * @param {?} offsets\r\n     */\r\n    function SplitInterpolation(strings, expressions, offsets) {\r\n        this.strings = strings;\r\n        this.expressions = expressions;\r\n        this.offsets = offsets;\r\n    }\r\n    return SplitInterpolation;\r\n}());\r\nvar TemplateBindingParseResult = (function () {\r\n    /**\r\n     * @param {?} templateBindings\r\n     * @param {?} warnings\r\n     * @param {?} errors\r\n     */\r\n    function TemplateBindingParseResult(templateBindings, warnings, errors) {\r\n        this.templateBindings = templateBindings;\r\n        this.warnings = warnings;\r\n        this.errors = errors;\r\n    }\r\n    return TemplateBindingParseResult;\r\n}());\r\n/**\r\n * @param {?} config\r\n * @return {?}\r\n */\r\nfunction _createInterpolateRegExp(config) {\r\n    var /** @type {?} */ pattern = escapeRegExp(config.start) + '([\\\\s\\\\S]*?)' + escapeRegExp(config.end);\r\n    return new RegExp(pattern, 'g');\r\n}\r\nvar Parser = (function () {\r\n    /**\r\n     * @param {?} _lexer\r\n     */\r\n    function Parser(_lexer) {\r\n        this._lexer = _lexer;\r\n        this.errors = [];\r\n    }\r\n    /**\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @param {?=} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    Parser.prototype.parseAction = function (input, location, interpolationConfig) {\r\n        if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\r\n        this._checkNoInterpolation(input, location, interpolationConfig);\r\n        var /** @type {?} */ sourceToLex = this._stripComments(input);\r\n        var /** @type {?} */ tokens = this._lexer.tokenize(this._stripComments(input));\r\n        var /** @type {?} */ ast = new _ParseAST(input, location, tokens, sourceToLex.length, true, this.errors, input.length - sourceToLex.length)\r\n            .parseChain();\r\n        return new ASTWithSource(ast, input, location, this.errors);\r\n    };\r\n    /**\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @param {?=} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    Parser.prototype.parseBinding = function (input, location, interpolationConfig) {\r\n        if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\r\n        var /** @type {?} */ ast = this._parseBindingAst(input, location, interpolationConfig);\r\n        return new ASTWithSource(ast, input, location, this.errors);\r\n    };\r\n    /**\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @param {?=} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    Parser.prototype.parseSimpleBinding = function (input, location, interpolationConfig) {\r\n        if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\r\n        var /** @type {?} */ ast = this._parseBindingAst(input, location, interpolationConfig);\r\n        var /** @type {?} */ errors = SimpleExpressionChecker.check(ast);\r\n        if (errors.length > 0) {\r\n            this._reportError(\"Host binding expression cannot contain \" + errors.join(' '), input, location);\r\n        }\r\n        return new ASTWithSource(ast, input, location, this.errors);\r\n    };\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} input\r\n     * @param {?} errLocation\r\n     * @param {?=} ctxLocation\r\n     * @return {?}\r\n     */\r\n    Parser.prototype._reportError = function (message, input, errLocation, ctxLocation) {\r\n        this.errors.push(new ParserError(message, input, errLocation, ctxLocation));\r\n    };\r\n    /**\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @param {?} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    Parser.prototype._parseBindingAst = function (input, location, interpolationConfig) {\r\n        // Quotes expressions use 3rd-party expression language. We don't want to use\r\n        // our lexer or parser for that, so we check for that ahead of time.\r\n        var /** @type {?} */ quote = this._parseQuote(input, location);\r\n        if (quote != null) {\r\n            return quote;\r\n        }\r\n        this._checkNoInterpolation(input, location, interpolationConfig);\r\n        var /** @type {?} */ sourceToLex = this._stripComments(input);\r\n        var /** @type {?} */ tokens = this._lexer.tokenize(sourceToLex);\r\n        return new _ParseAST(input, location, tokens, sourceToLex.length, false, this.errors, input.length - sourceToLex.length)\r\n            .parseChain();\r\n    };\r\n    /**\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @return {?}\r\n     */\r\n    Parser.prototype._parseQuote = function (input, location) {\r\n        if (input == null)\r\n            return null;\r\n        var /** @type {?} */ prefixSeparatorIndex = input.indexOf(':');\r\n        if (prefixSeparatorIndex == -1)\r\n            return null;\r\n        var /** @type {?} */ prefix = input.substring(0, prefixSeparatorIndex).trim();\r\n        if (!isIdentifier(prefix))\r\n            return null;\r\n        var /** @type {?} */ uninterpretedExpression = input.substring(prefixSeparatorIndex + 1);\r\n        return new Quote(new ParseSpan(0, input.length), prefix, uninterpretedExpression, location);\r\n    };\r\n    /**\r\n     * @param {?} prefixToken\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @return {?}\r\n     */\r\n    Parser.prototype.parseTemplateBindings = function (prefixToken, input, location) {\r\n        var /** @type {?} */ tokens = this._lexer.tokenize(input);\r\n        if (prefixToken) {\r\n            // Prefix the tokens with the tokens from prefixToken but have them take no space (0 index).\r\n            var /** @type {?} */ prefixTokens = this._lexer.tokenize(prefixToken).map(function (t) {\r\n                t.index = 0;\r\n                return t;\r\n            });\r\n            tokens.unshift.apply(tokens, prefixTokens);\r\n        }\r\n        return new _ParseAST(input, location, tokens, input.length, false, this.errors, 0)\r\n            .parseTemplateBindings();\r\n    };\r\n    /**\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @param {?=} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    Parser.prototype.parseInterpolation = function (input, location, interpolationConfig) {\r\n        if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\r\n        var /** @type {?} */ split = this.splitInterpolation(input, location, interpolationConfig);\r\n        if (split == null)\r\n            return null;\r\n        var /** @type {?} */ expressions = [];\r\n        for (var /** @type {?} */ i = 0; i < split.expressions.length; ++i) {\r\n            var /** @type {?} */ expressionText = split.expressions[i];\r\n            var /** @type {?} */ sourceToLex = this._stripComments(expressionText);\r\n            var /** @type {?} */ tokens = this._lexer.tokenize(this._stripComments(split.expressions[i]));\r\n            var /** @type {?} */ ast = new _ParseAST(input, location, tokens, sourceToLex.length, false, this.errors, split.offsets[i] + (expressionText.length - sourceToLex.length))\r\n                .parseChain();\r\n            expressions.push(ast);\r\n        }\r\n        return new ASTWithSource(new Interpolation(new ParseSpan(0, input == null ? 0 : input.length), split.strings, expressions), input, location, this.errors);\r\n    };\r\n    /**\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @param {?=} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    Parser.prototype.splitInterpolation = function (input, location, interpolationConfig) {\r\n        if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\r\n        var /** @type {?} */ regexp = _createInterpolateRegExp(interpolationConfig);\r\n        var /** @type {?} */ parts = input.split(regexp);\r\n        if (parts.length <= 1) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ strings = [];\r\n        var /** @type {?} */ expressions = [];\r\n        var /** @type {?} */ offsets = [];\r\n        var /** @type {?} */ offset = 0;\r\n        for (var /** @type {?} */ i = 0; i < parts.length; i++) {\r\n            var /** @type {?} */ part = parts[i];\r\n            if (i % 2 === 0) {\r\n                // fixed string\r\n                strings.push(part);\r\n                offset += part.length;\r\n            }\r\n            else if (part.trim().length > 0) {\r\n                offset += interpolationConfig.start.length;\r\n                expressions.push(part);\r\n                offsets.push(offset);\r\n                offset += part.length + interpolationConfig.end.length;\r\n            }\r\n            else {\r\n                this._reportError('Blank expressions are not allowed in interpolated strings', input, \"at column \" + this._findInterpolationErrorColumn(parts, i, interpolationConfig) + \" in\", location);\r\n                expressions.push('$implict');\r\n                offsets.push(offset);\r\n            }\r\n        }\r\n        return new SplitInterpolation(strings, expressions, offsets);\r\n    };\r\n    /**\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @return {?}\r\n     */\r\n    Parser.prototype.wrapLiteralPrimitive = function (input, location) {\r\n        return new ASTWithSource(new LiteralPrimitive(new ParseSpan(0, input == null ? 0 : input.length), input), input, location, this.errors);\r\n    };\r\n    /**\r\n     * @param {?} input\r\n     * @return {?}\r\n     */\r\n    Parser.prototype._stripComments = function (input) {\r\n        var /** @type {?} */ i = this._commentStart(input);\r\n        return i != null ? input.substring(0, i).trim() : input;\r\n    };\r\n    /**\r\n     * @param {?} input\r\n     * @return {?}\r\n     */\r\n    Parser.prototype._commentStart = function (input) {\r\n        var /** @type {?} */ outerQuote = null;\r\n        for (var /** @type {?} */ i = 0; i < input.length - 1; i++) {\r\n            var /** @type {?} */ char = input.charCodeAt(i);\r\n            var /** @type {?} */ nextChar = input.charCodeAt(i + 1);\r\n            if (char === $SLASH && nextChar == $SLASH && outerQuote == null)\r\n                return i;\r\n            if (outerQuote === char) {\r\n                outerQuote = null;\r\n            }\r\n            else if (outerQuote == null && isQuote(char)) {\r\n                outerQuote = char;\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @param {?} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    Parser.prototype._checkNoInterpolation = function (input, location, interpolationConfig) {\r\n        var /** @type {?} */ regexp = _createInterpolateRegExp(interpolationConfig);\r\n        var /** @type {?} */ parts = input.split(regexp);\r\n        if (parts.length > 1) {\r\n            this._reportError(\"Got interpolation (\" + interpolationConfig.start + interpolationConfig.end + \") where expression was expected\", input, \"at column \" + this._findInterpolationErrorColumn(parts, 1, interpolationConfig) + \" in\", location);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} parts\r\n     * @param {?} partInErrIdx\r\n     * @param {?} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    Parser.prototype._findInterpolationErrorColumn = function (parts, partInErrIdx, interpolationConfig) {\r\n        var /** @type {?} */ errLocation = '';\r\n        for (var /** @type {?} */ j = 0; j < partInErrIdx; j++) {\r\n            errLocation += j % 2 === 0 ?\r\n                parts[j] :\r\n                \"\" + interpolationConfig.start + parts[j] + interpolationConfig.end;\r\n        }\r\n        return errLocation.length;\r\n    };\r\n    return Parser;\r\n}());\r\nParser.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nParser.ctorParameters = function () { return [\r\n    { type: Lexer, },\r\n]; };\r\nvar _ParseAST = (function () {\r\n    /**\r\n     * @param {?} input\r\n     * @param {?} location\r\n     * @param {?} tokens\r\n     * @param {?} inputLength\r\n     * @param {?} parseAction\r\n     * @param {?} errors\r\n     * @param {?} offset\r\n     */\r\n    function _ParseAST(input, location, tokens, inputLength, parseAction, errors, offset) {\r\n        this.input = input;\r\n        this.location = location;\r\n        this.tokens = tokens;\r\n        this.inputLength = inputLength;\r\n        this.parseAction = parseAction;\r\n        this.errors = errors;\r\n        this.offset = offset;\r\n        this.rparensExpected = 0;\r\n        this.rbracketsExpected = 0;\r\n        this.rbracesExpected = 0;\r\n        this.index = 0;\r\n    }\r\n    /**\r\n     * @param {?} offset\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.peek = function (offset) {\r\n        var /** @type {?} */ i = this.index + offset;\r\n        return i < this.tokens.length ? this.tokens[i] : EOF;\r\n    };\r\n    Object.defineProperty(_ParseAST.prototype, \"next\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.peek(0); },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(_ParseAST.prototype, \"inputIndex\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return (this.index < this.tokens.length) ? this.next.index + this.offset :\r\n                this.inputLength + this.offset;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} start\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.span = function (start) { return new ParseSpan(start, this.inputIndex); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.advance = function () { this.index++; };\r\n    /**\r\n     * @param {?} code\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.optionalCharacter = function (code) {\r\n        if (this.next.isCharacter(code)) {\r\n            this.advance();\r\n            return true;\r\n        }\r\n        else {\r\n            return false;\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.peekKeywordLet = function () { return this.next.isKeywordLet(); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.peekKeywordAs = function () { return this.next.isKeywordAs(); };\r\n    /**\r\n     * @param {?} code\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.expectCharacter = function (code) {\r\n        if (this.optionalCharacter(code))\r\n            return;\r\n        this.error(\"Missing expected \" + String.fromCharCode(code));\r\n    };\r\n    /**\r\n     * @param {?} op\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.optionalOperator = function (op) {\r\n        if (this.next.isOperator(op)) {\r\n            this.advance();\r\n            return true;\r\n        }\r\n        else {\r\n            return false;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} operator\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.expectOperator = function (operator) {\r\n        if (this.optionalOperator(operator))\r\n            return;\r\n        this.error(\"Missing expected operator \" + operator);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.expectIdentifierOrKeyword = function () {\r\n        var /** @type {?} */ n = this.next;\r\n        if (!n.isIdentifier() && !n.isKeyword()) {\r\n            this.error(\"Unexpected token \" + n + \", expected identifier or keyword\");\r\n            return '';\r\n        }\r\n        this.advance();\r\n        return n.toString();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.expectIdentifierOrKeywordOrString = function () {\r\n        var /** @type {?} */ n = this.next;\r\n        if (!n.isIdentifier() && !n.isKeyword() && !n.isString()) {\r\n            this.error(\"Unexpected token \" + n + \", expected identifier, keyword, or string\");\r\n            return '';\r\n        }\r\n        this.advance();\r\n        return n.toString();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseChain = function () {\r\n        var /** @type {?} */ exprs = [];\r\n        var /** @type {?} */ start = this.inputIndex;\r\n        while (this.index < this.tokens.length) {\r\n            var /** @type {?} */ expr = this.parsePipe();\r\n            exprs.push(expr);\r\n            if (this.optionalCharacter($SEMICOLON)) {\r\n                if (!this.parseAction) {\r\n                    this.error('Binding expression cannot contain chained expression');\r\n                }\r\n                while (this.optionalCharacter($SEMICOLON)) {\r\n                } // read all semicolons\r\n            }\r\n            else if (this.index < this.tokens.length) {\r\n                this.error(\"Unexpected token '\" + this.next + \"'\");\r\n            }\r\n        }\r\n        if (exprs.length == 0)\r\n            return new EmptyExpr(this.span(start));\r\n        if (exprs.length == 1)\r\n            return exprs[0];\r\n        return new Chain(this.span(start), exprs);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parsePipe = function () {\r\n        var /** @type {?} */ result = this.parseExpression();\r\n        if (this.optionalOperator('|')) {\r\n            if (this.parseAction) {\r\n                this.error('Cannot have a pipe in an action expression');\r\n            }\r\n            do {\r\n                var /** @type {?} */ name = ((this.expectIdentifierOrKeyword()));\r\n                var /** @type {?} */ args = [];\r\n                while (this.optionalCharacter($COLON)) {\r\n                    args.push(this.parseExpression());\r\n                }\r\n                result = new BindingPipe(this.span(result.span.start), result, name, args);\r\n            } while (this.optionalOperator('|'));\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseExpression = function () { return this.parseConditional(); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseConditional = function () {\r\n        var /** @type {?} */ start = this.inputIndex;\r\n        var /** @type {?} */ result = this.parseLogicalOr();\r\n        if (this.optionalOperator('?')) {\r\n            var /** @type {?} */ yes = this.parsePipe();\r\n            var /** @type {?} */ no = void 0;\r\n            if (!this.optionalCharacter($COLON)) {\r\n                var /** @type {?} */ end = this.inputIndex;\r\n                var /** @type {?} */ expression = this.input.substring(start, end);\r\n                this.error(\"Conditional expression \" + expression + \" requires all 3 expressions\");\r\n                no = new EmptyExpr(this.span(start));\r\n            }\r\n            else {\r\n                no = this.parsePipe();\r\n            }\r\n            return new Conditional(this.span(start), result, yes, no);\r\n        }\r\n        else {\r\n            return result;\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseLogicalOr = function () {\r\n        // '||'\r\n        var /** @type {?} */ result = this.parseLogicalAnd();\r\n        while (this.optionalOperator('||')) {\r\n            var /** @type {?} */ right = this.parseLogicalAnd();\r\n            result = new Binary(this.span(result.span.start), '||', result, right);\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseLogicalAnd = function () {\r\n        // '&&'\r\n        var /** @type {?} */ result = this.parseEquality();\r\n        while (this.optionalOperator('&&')) {\r\n            var /** @type {?} */ right = this.parseEquality();\r\n            result = new Binary(this.span(result.span.start), '&&', result, right);\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseEquality = function () {\r\n        // '==','!=','===','!=='\r\n        var /** @type {?} */ result = this.parseRelational();\r\n        while (this.next.type == TokenType.Operator) {\r\n            var /** @type {?} */ operator = this.next.strValue;\r\n            switch (operator) {\r\n                case '==':\r\n                case '===':\r\n                case '!=':\r\n                case '!==':\r\n                    this.advance();\r\n                    var /** @type {?} */ right = this.parseRelational();\r\n                    result = new Binary(this.span(result.span.start), operator, result, right);\r\n                    continue;\r\n            }\r\n            break;\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseRelational = function () {\r\n        // '<', '>', '<=', '>='\r\n        var /** @type {?} */ result = this.parseAdditive();\r\n        while (this.next.type == TokenType.Operator) {\r\n            var /** @type {?} */ operator = this.next.strValue;\r\n            switch (operator) {\r\n                case '<':\r\n                case '>':\r\n                case '<=':\r\n                case '>=':\r\n                    this.advance();\r\n                    var /** @type {?} */ right = this.parseAdditive();\r\n                    result = new Binary(this.span(result.span.start), operator, result, right);\r\n                    continue;\r\n            }\r\n            break;\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseAdditive = function () {\r\n        // '+', '-'\r\n        var /** @type {?} */ result = this.parseMultiplicative();\r\n        while (this.next.type == TokenType.Operator) {\r\n            var /** @type {?} */ operator = this.next.strValue;\r\n            switch (operator) {\r\n                case '+':\r\n                case '-':\r\n                    this.advance();\r\n                    var /** @type {?} */ right = this.parseMultiplicative();\r\n                    result = new Binary(this.span(result.span.start), operator, result, right);\r\n                    continue;\r\n            }\r\n            break;\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseMultiplicative = function () {\r\n        // '*', '%', '/'\r\n        var /** @type {?} */ result = this.parsePrefix();\r\n        while (this.next.type == TokenType.Operator) {\r\n            var /** @type {?} */ operator = this.next.strValue;\r\n            switch (operator) {\r\n                case '*':\r\n                case '%':\r\n                case '/':\r\n                    this.advance();\r\n                    var /** @type {?} */ right = this.parsePrefix();\r\n                    result = new Binary(this.span(result.span.start), operator, result, right);\r\n                    continue;\r\n            }\r\n            break;\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parsePrefix = function () {\r\n        if (this.next.type == TokenType.Operator) {\r\n            var /** @type {?} */ start = this.inputIndex;\r\n            var /** @type {?} */ operator = this.next.strValue;\r\n            var /** @type {?} */ result = void 0;\r\n            switch (operator) {\r\n                case '+':\r\n                    this.advance();\r\n                    return this.parsePrefix();\r\n                case '-':\r\n                    this.advance();\r\n                    result = this.parsePrefix();\r\n                    return new Binary(this.span(start), operator, new LiteralPrimitive(new ParseSpan(start, start), 0), result);\r\n                case '!':\r\n                    this.advance();\r\n                    result = this.parsePrefix();\r\n                    return new PrefixNot(this.span(start), result);\r\n            }\r\n        }\r\n        return this.parseCallChain();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseCallChain = function () {\r\n        var /** @type {?} */ result = this.parsePrimary();\r\n        while (true) {\r\n            if (this.optionalCharacter($PERIOD)) {\r\n                result = this.parseAccessMemberOrMethodCall(result, false);\r\n            }\r\n            else if (this.optionalOperator('?.')) {\r\n                result = this.parseAccessMemberOrMethodCall(result, true);\r\n            }\r\n            else if (this.optionalCharacter($LBRACKET)) {\r\n                this.rbracketsExpected++;\r\n                var /** @type {?} */ key = this.parsePipe();\r\n                this.rbracketsExpected--;\r\n                this.expectCharacter($RBRACKET);\r\n                if (this.optionalOperator('=')) {\r\n                    var /** @type {?} */ value = this.parseConditional();\r\n                    result = new KeyedWrite(this.span(result.span.start), result, key, value);\r\n                }\r\n                else {\r\n                    result = new KeyedRead(this.span(result.span.start), result, key);\r\n                }\r\n            }\r\n            else if (this.optionalCharacter($LPAREN)) {\r\n                this.rparensExpected++;\r\n                var /** @type {?} */ args = this.parseCallArguments();\r\n                this.rparensExpected--;\r\n                this.expectCharacter($RPAREN);\r\n                result = new FunctionCall(this.span(result.span.start), result, args);\r\n            }\r\n            else {\r\n                return result;\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parsePrimary = function () {\r\n        var /** @type {?} */ start = this.inputIndex;\r\n        if (this.optionalCharacter($LPAREN)) {\r\n            this.rparensExpected++;\r\n            var /** @type {?} */ result = this.parsePipe();\r\n            this.rparensExpected--;\r\n            this.expectCharacter($RPAREN);\r\n            return result;\r\n        }\r\n        else if (this.next.isKeywordNull()) {\r\n            this.advance();\r\n            return new LiteralPrimitive(this.span(start), null);\r\n        }\r\n        else if (this.next.isKeywordUndefined()) {\r\n            this.advance();\r\n            return new LiteralPrimitive(this.span(start), void 0);\r\n        }\r\n        else if (this.next.isKeywordTrue()) {\r\n            this.advance();\r\n            return new LiteralPrimitive(this.span(start), true);\r\n        }\r\n        else if (this.next.isKeywordFalse()) {\r\n            this.advance();\r\n            return new LiteralPrimitive(this.span(start), false);\r\n        }\r\n        else if (this.next.isKeywordThis()) {\r\n            this.advance();\r\n            return new ImplicitReceiver(this.span(start));\r\n        }\r\n        else if (this.optionalCharacter($LBRACKET)) {\r\n            this.rbracketsExpected++;\r\n            var /** @type {?} */ elements = this.parseExpressionList($RBRACKET);\r\n            this.rbracketsExpected--;\r\n            this.expectCharacter($RBRACKET);\r\n            return new LiteralArray(this.span(start), elements);\r\n        }\r\n        else if (this.next.isCharacter($LBRACE)) {\r\n            return this.parseLiteralMap();\r\n        }\r\n        else if (this.next.isIdentifier()) {\r\n            return this.parseAccessMemberOrMethodCall(new ImplicitReceiver(this.span(start)), false);\r\n        }\r\n        else if (this.next.isNumber()) {\r\n            var /** @type {?} */ value = this.next.toNumber();\r\n            this.advance();\r\n            return new LiteralPrimitive(this.span(start), value);\r\n        }\r\n        else if (this.next.isString()) {\r\n            var /** @type {?} */ literalValue = this.next.toString();\r\n            this.advance();\r\n            return new LiteralPrimitive(this.span(start), literalValue);\r\n        }\r\n        else if (this.index >= this.tokens.length) {\r\n            this.error(\"Unexpected end of expression: \" + this.input);\r\n            return new EmptyExpr(this.span(start));\r\n        }\r\n        else {\r\n            this.error(\"Unexpected token \" + this.next);\r\n            return new EmptyExpr(this.span(start));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} terminator\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseExpressionList = function (terminator) {\r\n        var /** @type {?} */ result = [];\r\n        if (!this.next.isCharacter(terminator)) {\r\n            do {\r\n                result.push(this.parsePipe());\r\n            } while (this.optionalCharacter($COMMA));\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseLiteralMap = function () {\r\n        var /** @type {?} */ keys = [];\r\n        var /** @type {?} */ values = [];\r\n        var /** @type {?} */ start = this.inputIndex;\r\n        this.expectCharacter($LBRACE);\r\n        if (!this.optionalCharacter($RBRACE)) {\r\n            this.rbracesExpected++;\r\n            do {\r\n                var /** @type {?} */ key = ((this.expectIdentifierOrKeywordOrString()));\r\n                keys.push(key);\r\n                this.expectCharacter($COLON);\r\n                values.push(this.parsePipe());\r\n            } while (this.optionalCharacter($COMMA));\r\n            this.rbracesExpected--;\r\n            this.expectCharacter($RBRACE);\r\n        }\r\n        return new LiteralMap(this.span(start), keys, values);\r\n    };\r\n    /**\r\n     * @param {?} receiver\r\n     * @param {?=} isSafe\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseAccessMemberOrMethodCall = function (receiver, isSafe) {\r\n        if (isSafe === void 0) { isSafe = false; }\r\n        var /** @type {?} */ start = receiver.span.start;\r\n        var /** @type {?} */ id = ((this.expectIdentifierOrKeyword()));\r\n        if (this.optionalCharacter($LPAREN)) {\r\n            this.rparensExpected++;\r\n            var /** @type {?} */ args = this.parseCallArguments();\r\n            this.expectCharacter($RPAREN);\r\n            this.rparensExpected--;\r\n            var /** @type {?} */ span = this.span(start);\r\n            return isSafe ? new SafeMethodCall(span, receiver, id, args) :\r\n                new MethodCall(span, receiver, id, args);\r\n        }\r\n        else {\r\n            if (isSafe) {\r\n                if (this.optionalOperator('=')) {\r\n                    this.error('The \\'?.\\' operator cannot be used in the assignment');\r\n                    return new EmptyExpr(this.span(start));\r\n                }\r\n                else {\r\n                    return new SafePropertyRead(this.span(start), receiver, id);\r\n                }\r\n            }\r\n            else {\r\n                if (this.optionalOperator('=')) {\r\n                    if (!this.parseAction) {\r\n                        this.error('Bindings cannot contain assignments');\r\n                        return new EmptyExpr(this.span(start));\r\n                    }\r\n                    var /** @type {?} */ value = this.parseConditional();\r\n                    return new PropertyWrite(this.span(start), receiver, id, value);\r\n                }\r\n                else {\r\n                    return new PropertyRead(this.span(start), receiver, id);\r\n                }\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseCallArguments = function () {\r\n        if (this.next.isCharacter($RPAREN))\r\n            return [];\r\n        var /** @type {?} */ positionals = [];\r\n        do {\r\n            positionals.push(this.parsePipe());\r\n        } while (this.optionalCharacter($COMMA));\r\n        return (positionals);\r\n    };\r\n    /**\r\n     * An identifier, a keyword, a string with an optional `-` inbetween.\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.expectTemplateBindingKey = function () {\r\n        var /** @type {?} */ result = '';\r\n        var /** @type {?} */ operatorFound = false;\r\n        do {\r\n            result += this.expectIdentifierOrKeywordOrString();\r\n            operatorFound = this.optionalOperator('-');\r\n            if (operatorFound) {\r\n                result += '-';\r\n            }\r\n        } while (operatorFound);\r\n        return result.toString();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.parseTemplateBindings = function () {\r\n        var /** @type {?} */ bindings = [];\r\n        var /** @type {?} */ prefix = ((null));\r\n        var /** @type {?} */ warnings = [];\r\n        while (this.index < this.tokens.length) {\r\n            var /** @type {?} */ start = this.inputIndex;\r\n            var /** @type {?} */ keyIsVar = this.peekKeywordLet();\r\n            if (keyIsVar) {\r\n                this.advance();\r\n            }\r\n            var /** @type {?} */ rawKey = this.expectTemplateBindingKey();\r\n            var /** @type {?} */ key = rawKey;\r\n            if (!keyIsVar) {\r\n                if (prefix == null) {\r\n                    prefix = key;\r\n                }\r\n                else {\r\n                    key = prefix + key[0].toUpperCase() + key.substring(1);\r\n                }\r\n            }\r\n            this.optionalCharacter($COLON);\r\n            var /** @type {?} */ name = ((null));\r\n            var /** @type {?} */ expression = ((null));\r\n            if (keyIsVar) {\r\n                if (this.optionalOperator('=')) {\r\n                    name = this.expectTemplateBindingKey();\r\n                }\r\n                else {\r\n                    name = '\\$implicit';\r\n                }\r\n            }\r\n            else if (this.peekKeywordAs()) {\r\n                var /** @type {?} */ letStart = this.inputIndex;\r\n                this.advance(); // consume `as`\r\n                name = rawKey;\r\n                key = this.expectTemplateBindingKey(); // read local var name\r\n                keyIsVar = true;\r\n            }\r\n            else if (this.next !== EOF && !this.peekKeywordLet()) {\r\n                var /** @type {?} */ start_2 = this.inputIndex;\r\n                var /** @type {?} */ ast = this.parsePipe();\r\n                var /** @type {?} */ source = this.input.substring(start_2 - this.offset, this.inputIndex - this.offset);\r\n                expression = new ASTWithSource(ast, source, this.location, this.errors);\r\n            }\r\n            bindings.push(new TemplateBinding(this.span(start), key, keyIsVar, name, expression));\r\n            if (this.peekKeywordAs() && !keyIsVar) {\r\n                var /** @type {?} */ letStart = this.inputIndex;\r\n                this.advance(); // consume `as`\r\n                var /** @type {?} */ letName = this.expectTemplateBindingKey(); // read local var name\r\n                bindings.push(new TemplateBinding(this.span(letStart), letName, true, key, /** @type {?} */ ((null))));\r\n            }\r\n            if (!this.optionalCharacter($SEMICOLON)) {\r\n                this.optionalCharacter($COMMA);\r\n            }\r\n        }\r\n        return new TemplateBindingParseResult(bindings, warnings, this.errors);\r\n    };\r\n    /**\r\n     * @param {?} message\r\n     * @param {?=} index\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.error = function (message, index) {\r\n        if (index === void 0) { index = null; }\r\n        this.errors.push(new ParserError(message, this.input, this.locationText(index), this.location));\r\n        this.skip();\r\n    };\r\n    /**\r\n     * @param {?=} index\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.locationText = function (index) {\r\n        if (index === void 0) { index = null; }\r\n        if (index == null)\r\n            index = this.index;\r\n        return (index < this.tokens.length) ? \"at column \" + (this.tokens[index].index + 1) + \" in\" :\r\n            \"at the end of the expression\";\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ParseAST.prototype.skip = function () {\r\n        var /** @type {?} */ n = this.next;\r\n        while (this.index < this.tokens.length && !n.isCharacter($SEMICOLON) &&\r\n            (this.rparensExpected <= 0 || !n.isCharacter($RPAREN)) &&\r\n            (this.rbracesExpected <= 0 || !n.isCharacter($RBRACE)) &&\r\n            (this.rbracketsExpected <= 0 || !n.isCharacter($RBRACKET))) {\r\n            if (this.next.isError()) {\r\n                this.errors.push(new ParserError(/** @type {?} */ ((this.next.toString())), this.input, this.locationText(), this.location));\r\n            }\r\n            this.advance();\r\n            n = this.next;\r\n        }\r\n    };\r\n    return _ParseAST;\r\n}());\r\nvar SimpleExpressionChecker = (function () {\r\n    function SimpleExpressionChecker() {\r\n        this.errors = [];\r\n    }\r\n    /**\r\n     * @param {?} ast\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.check = function (ast) {\r\n        var /** @type {?} */ s = new SimpleExpressionChecker();\r\n        ast.visit(s);\r\n        return s.errors;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitImplicitReceiver = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitInterpolation = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitLiteralPrimitive = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitPropertyRead = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitPropertyWrite = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitSafePropertyRead = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitMethodCall = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitSafeMethodCall = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitFunctionCall = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitLiteralArray = function (ast, context) { this.visitAll(ast.expressions); };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitLiteralMap = function (ast, context) { this.visitAll(ast.values); };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitBinary = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitPrefixNot = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitConditional = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitPipe = function (ast, context) { this.errors.push('pipes'); };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitKeyedRead = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitKeyedWrite = function (ast, context) { };\r\n    /**\r\n     * @param {?} asts\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitAll = function (asts) {\r\n        var _this = this;\r\n        return asts.map(function (node) { return node.visit(_this); });\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitChain = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    SimpleExpressionChecker.prototype.visitQuote = function (ast, context) { };\r\n    return SimpleExpressionChecker;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ParseLocation = (function () {\r\n    /**\r\n     * @param {?} file\r\n     * @param {?} offset\r\n     * @param {?} line\r\n     * @param {?} col\r\n     */\r\n    function ParseLocation(file, offset, line, col) {\r\n        this.file = file;\r\n        this.offset = offset;\r\n        this.line = line;\r\n        this.col = col;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ParseLocation.prototype.toString = function () {\r\n        return this.offset != null ? this.file.url + \"@\" + this.line + \":\" + this.col : this.file.url;\r\n    };\r\n    /**\r\n     * @param {?} delta\r\n     * @return {?}\r\n     */\r\n    ParseLocation.prototype.moveBy = function (delta) {\r\n        var /** @type {?} */ source = this.file.content;\r\n        var /** @type {?} */ len = source.length;\r\n        var /** @type {?} */ offset = this.offset;\r\n        var /** @type {?} */ line = this.line;\r\n        var /** @type {?} */ col = this.col;\r\n        while (offset > 0 && delta < 0) {\r\n            offset--;\r\n            delta++;\r\n            var /** @type {?} */ ch = source.charCodeAt(offset);\r\n            if (ch == $LF) {\r\n                line--;\r\n                var /** @type {?} */ priorLine = source.substr(0, offset - 1).lastIndexOf(String.fromCharCode($LF));\r\n                col = priorLine > 0 ? offset - priorLine : offset;\r\n            }\r\n            else {\r\n                col--;\r\n            }\r\n        }\r\n        while (offset < len && delta > 0) {\r\n            var /** @type {?} */ ch = source.charCodeAt(offset);\r\n            offset++;\r\n            delta--;\r\n            if (ch == $LF) {\r\n                line++;\r\n                col = 0;\r\n            }\r\n            else {\r\n                col++;\r\n            }\r\n        }\r\n        return new ParseLocation(this.file, offset, line, col);\r\n    };\r\n    /**\r\n     * @param {?} maxChars\r\n     * @param {?} maxLines\r\n     * @return {?}\r\n     */\r\n    ParseLocation.prototype.getContext = function (maxChars, maxLines) {\r\n        var /** @type {?} */ content = this.file.content;\r\n        var /** @type {?} */ startOffset = this.offset;\r\n        if (startOffset != null) {\r\n            if (startOffset > content.length - 1) {\r\n                startOffset = content.length - 1;\r\n            }\r\n            var /** @type {?} */ endOffset = startOffset;\r\n            var /** @type {?} */ ctxChars = 0;\r\n            var /** @type {?} */ ctxLines = 0;\r\n            while (ctxChars < maxChars && startOffset > 0) {\r\n                startOffset--;\r\n                ctxChars++;\r\n                if (content[startOffset] == '\\n') {\r\n                    if (++ctxLines == maxLines) {\r\n                        break;\r\n                    }\r\n                }\r\n            }\r\n            ctxChars = 0;\r\n            ctxLines = 0;\r\n            while (ctxChars < maxChars && endOffset < content.length - 1) {\r\n                endOffset++;\r\n                ctxChars++;\r\n                if (content[endOffset] == '\\n') {\r\n                    if (++ctxLines == maxLines) {\r\n                        break;\r\n                    }\r\n                }\r\n            }\r\n            return {\r\n                before: content.substring(startOffset, this.offset),\r\n                after: content.substring(this.offset, endOffset + 1),\r\n            };\r\n        }\r\n        return null;\r\n    };\r\n    return ParseLocation;\r\n}());\r\nvar ParseSourceFile = (function () {\r\n    /**\r\n     * @param {?} content\r\n     * @param {?} url\r\n     */\r\n    function ParseSourceFile(content, url) {\r\n        this.content = content;\r\n        this.url = url;\r\n    }\r\n    return ParseSourceFile;\r\n}());\r\nvar ParseSourceSpan = (function () {\r\n    /**\r\n     * @param {?} start\r\n     * @param {?} end\r\n     * @param {?=} details\r\n     */\r\n    function ParseSourceSpan(start, end, details) {\r\n        if (details === void 0) { details = null; }\r\n        this.start = start;\r\n        this.end = end;\r\n        this.details = details;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ParseSourceSpan.prototype.toString = function () {\r\n        return this.start.file.content.substring(this.start.offset, this.end.offset);\r\n    };\r\n    return ParseSourceSpan;\r\n}());\r\nvar ParseErrorLevel = {};\r\nParseErrorLevel.WARNING = 0;\r\nParseErrorLevel.ERROR = 1;\r\nParseErrorLevel[ParseErrorLevel.WARNING] = \"WARNING\";\r\nParseErrorLevel[ParseErrorLevel.ERROR] = \"ERROR\";\r\nvar ParseError = (function () {\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} msg\r\n     * @param {?=} level\r\n     */\r\n    function ParseError(span, msg, level) {\r\n        if (level === void 0) { level = ParseErrorLevel.ERROR; }\r\n        this.span = span;\r\n        this.msg = msg;\r\n        this.level = level;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ParseError.prototype.toString = function () {\r\n        var /** @type {?} */ ctx = this.span.start.getContext(100, 3);\r\n        var /** @type {?} */ contextStr = ctx ? \" (\\\"\" + ctx.before + \"[\" + ParseErrorLevel[this.level] + \" ->]\" + ctx.after + \"\\\")\" : '';\r\n        var /** @type {?} */ details = this.span.details ? \", \" + this.span.details : '';\r\n        return \"\" + this.msg + contextStr + \": \" + this.span.start + details;\r\n    };\r\n    return ParseError;\r\n}());\r\n/**\r\n * @param {?} kind\r\n * @param {?} type\r\n * @return {?}\r\n */\r\nfunction typeSourceSpan(kind, type) {\r\n    var /** @type {?} */ moduleUrl = identifierModuleUrl(type);\r\n    var /** @type {?} */ sourceFileName = moduleUrl != null ? \"in \" + kind + \" \" + identifierName(type) + \" in \" + moduleUrl :\r\n        \"in \" + kind + \" \" + identifierName(type);\r\n    var /** @type {?} */ sourceFile = new ParseSourceFile('', sourceFileName);\r\n    return new ParseSourceSpan(new ParseLocation(sourceFile, -1, -1, -1), new ParseLocation(sourceFile, -1, -1, -1));\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar Text = (function () {\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     */\r\n    function Text(value, sourceSpan) {\r\n        this.value = value;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Text.prototype.visit = function (visitor, context) { return visitor.visitText(this, context); };\r\n    return Text;\r\n}());\r\nvar Expansion = (function () {\r\n    /**\r\n     * @param {?} switchValue\r\n     * @param {?} type\r\n     * @param {?} cases\r\n     * @param {?} sourceSpan\r\n     * @param {?} switchValueSourceSpan\r\n     */\r\n    function Expansion(switchValue, type, cases, sourceSpan, switchValueSourceSpan) {\r\n        this.switchValue = switchValue;\r\n        this.type = type;\r\n        this.cases = cases;\r\n        this.sourceSpan = sourceSpan;\r\n        this.switchValueSourceSpan = switchValueSourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Expansion.prototype.visit = function (visitor, context) { return visitor.visitExpansion(this, context); };\r\n    return Expansion;\r\n}());\r\nvar ExpansionCase = (function () {\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} expression\r\n     * @param {?} sourceSpan\r\n     * @param {?} valueSourceSpan\r\n     * @param {?} expSourceSpan\r\n     */\r\n    function ExpansionCase(value, expression, sourceSpan, valueSourceSpan, expSourceSpan) {\r\n        this.value = value;\r\n        this.expression = expression;\r\n        this.sourceSpan = sourceSpan;\r\n        this.valueSourceSpan = valueSourceSpan;\r\n        this.expSourceSpan = expSourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ExpansionCase.prototype.visit = function (visitor, context) { return visitor.visitExpansionCase(this, context); };\r\n    return ExpansionCase;\r\n}());\r\nvar Attribute$1 = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     * @param {?=} valueSpan\r\n     */\r\n    function Attribute$1(name, value, sourceSpan, valueSpan) {\r\n        this.name = name;\r\n        this.value = value;\r\n        this.sourceSpan = sourceSpan;\r\n        this.valueSpan = valueSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Attribute$1.prototype.visit = function (visitor, context) { return visitor.visitAttribute(this, context); };\r\n    return Attribute$1;\r\n}());\r\nvar Element = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} attrs\r\n     * @param {?} children\r\n     * @param {?} sourceSpan\r\n     * @param {?=} startSourceSpan\r\n     * @param {?=} endSourceSpan\r\n     */\r\n    function Element(name, attrs, children, sourceSpan, startSourceSpan, endSourceSpan) {\r\n        if (startSourceSpan === void 0) { startSourceSpan = null; }\r\n        if (endSourceSpan === void 0) { endSourceSpan = null; }\r\n        this.name = name;\r\n        this.attrs = attrs;\r\n        this.children = children;\r\n        this.sourceSpan = sourceSpan;\r\n        this.startSourceSpan = startSourceSpan;\r\n        this.endSourceSpan = endSourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Element.prototype.visit = function (visitor, context) { return visitor.visitElement(this, context); };\r\n    return Element;\r\n}());\r\nvar Comment = (function () {\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     */\r\n    function Comment(value, sourceSpan) {\r\n        this.value = value;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Comment.prototype.visit = function (visitor, context) { return visitor.visitComment(this, context); };\r\n    return Comment;\r\n}());\r\n/**\r\n * @param {?} visitor\r\n * @param {?} nodes\r\n * @param {?=} context\r\n * @return {?}\r\n */\r\nfunction visitAll(visitor, nodes, context) {\r\n    if (context === void 0) { context = null; }\r\n    var /** @type {?} */ result = [];\r\n    var /** @type {?} */ visit = visitor.visit ?\r\n        function (ast) { return ((visitor.visit))(ast, context) || ast.visit(visitor, context); } :\r\n        function (ast) { return ast.visit(visitor, context); };\r\n    nodes.forEach(function (ast) {\r\n        var /** @type {?} */ astResult = visit(ast);\r\n        if (astResult) {\r\n            result.push(astResult);\r\n        }\r\n    });\r\n    return result;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar TokenType$1 = {};\r\nTokenType$1.TAG_OPEN_START = 0;\r\nTokenType$1.TAG_OPEN_END = 1;\r\nTokenType$1.TAG_OPEN_END_VOID = 2;\r\nTokenType$1.TAG_CLOSE = 3;\r\nTokenType$1.TEXT = 4;\r\nTokenType$1.ESCAPABLE_RAW_TEXT = 5;\r\nTokenType$1.RAW_TEXT = 6;\r\nTokenType$1.COMMENT_START = 7;\r\nTokenType$1.COMMENT_END = 8;\r\nTokenType$1.CDATA_START = 9;\r\nTokenType$1.CDATA_END = 10;\r\nTokenType$1.ATTR_NAME = 11;\r\nTokenType$1.ATTR_VALUE = 12;\r\nTokenType$1.DOC_TYPE = 13;\r\nTokenType$1.EXPANSION_FORM_START = 14;\r\nTokenType$1.EXPANSION_CASE_VALUE = 15;\r\nTokenType$1.EXPANSION_CASE_EXP_START = 16;\r\nTokenType$1.EXPANSION_CASE_EXP_END = 17;\r\nTokenType$1.EXPANSION_FORM_END = 18;\r\nTokenType$1.EOF = 19;\r\nTokenType$1[TokenType$1.TAG_OPEN_START] = \"TAG_OPEN_START\";\r\nTokenType$1[TokenType$1.TAG_OPEN_END] = \"TAG_OPEN_END\";\r\nTokenType$1[TokenType$1.TAG_OPEN_END_VOID] = \"TAG_OPEN_END_VOID\";\r\nTokenType$1[TokenType$1.TAG_CLOSE] = \"TAG_CLOSE\";\r\nTokenType$1[TokenType$1.TEXT] = \"TEXT\";\r\nTokenType$1[TokenType$1.ESCAPABLE_RAW_TEXT] = \"ESCAPABLE_RAW_TEXT\";\r\nTokenType$1[TokenType$1.RAW_TEXT] = \"RAW_TEXT\";\r\nTokenType$1[TokenType$1.COMMENT_START] = \"COMMENT_START\";\r\nTokenType$1[TokenType$1.COMMENT_END] = \"COMMENT_END\";\r\nTokenType$1[TokenType$1.CDATA_START] = \"CDATA_START\";\r\nTokenType$1[TokenType$1.CDATA_END] = \"CDATA_END\";\r\nTokenType$1[TokenType$1.ATTR_NAME] = \"ATTR_NAME\";\r\nTokenType$1[TokenType$1.ATTR_VALUE] = \"ATTR_VALUE\";\r\nTokenType$1[TokenType$1.DOC_TYPE] = \"DOC_TYPE\";\r\nTokenType$1[TokenType$1.EXPANSION_FORM_START] = \"EXPANSION_FORM_START\";\r\nTokenType$1[TokenType$1.EXPANSION_CASE_VALUE] = \"EXPANSION_CASE_VALUE\";\r\nTokenType$1[TokenType$1.EXPANSION_CASE_EXP_START] = \"EXPANSION_CASE_EXP_START\";\r\nTokenType$1[TokenType$1.EXPANSION_CASE_EXP_END] = \"EXPANSION_CASE_EXP_END\";\r\nTokenType$1[TokenType$1.EXPANSION_FORM_END] = \"EXPANSION_FORM_END\";\r\nTokenType$1[TokenType$1.EOF] = \"EOF\";\r\nvar Token$1 = (function () {\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} parts\r\n     * @param {?} sourceSpan\r\n     */\r\n    function Token$1(type, parts, sourceSpan) {\r\n        this.type = type;\r\n        this.parts = parts;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    return Token$1;\r\n}());\r\nvar TokenError = (function (_super) {\r\n    __extends(TokenError, _super);\r\n    /**\r\n     * @param {?} errorMsg\r\n     * @param {?} tokenType\r\n     * @param {?} span\r\n     */\r\n    function TokenError(errorMsg, tokenType, span) {\r\n        var _this = _super.call(this, span, errorMsg) || this;\r\n        _this.tokenType = tokenType;\r\n        return _this;\r\n    }\r\n    return TokenError;\r\n}(ParseError));\r\nvar TokenizeResult = (function () {\r\n    /**\r\n     * @param {?} tokens\r\n     * @param {?} errors\r\n     */\r\n    function TokenizeResult(tokens, errors) {\r\n        this.tokens = tokens;\r\n        this.errors = errors;\r\n    }\r\n    return TokenizeResult;\r\n}());\r\n/**\r\n * @param {?} source\r\n * @param {?} url\r\n * @param {?} getTagDefinition\r\n * @param {?=} tokenizeExpansionForms\r\n * @param {?=} interpolationConfig\r\n * @return {?}\r\n */\r\nfunction tokenize(source, url, getTagDefinition, tokenizeExpansionForms, interpolationConfig) {\r\n    if (tokenizeExpansionForms === void 0) { tokenizeExpansionForms = false; }\r\n    if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\r\n    return new _Tokenizer(new ParseSourceFile(source, url), getTagDefinition, tokenizeExpansionForms, interpolationConfig)\r\n        .tokenize();\r\n}\r\nvar _CR_OR_CRLF_REGEXP = /\\r\\n?/g;\r\n/**\r\n * @param {?} charCode\r\n * @return {?}\r\n */\r\nfunction _unexpectedCharacterErrorMsg(charCode) {\r\n    var /** @type {?} */ char = charCode === $EOF ? 'EOF' : String.fromCharCode(charCode);\r\n    return \"Unexpected character \\\"\" + char + \"\\\"\";\r\n}\r\n/**\r\n * @param {?} entitySrc\r\n * @return {?}\r\n */\r\nfunction _unknownEntityErrorMsg(entitySrc) {\r\n    return \"Unknown entity \\\"\" + entitySrc + \"\\\" - use the \\\"&#<decimal>;\\\" or  \\\"&#x<hex>;\\\" syntax\";\r\n}\r\nvar _ControlFlowError = (function () {\r\n    /**\r\n     * @param {?} error\r\n     */\r\n    function _ControlFlowError(error) {\r\n        this.error = error;\r\n    }\r\n    return _ControlFlowError;\r\n}());\r\nvar _Tokenizer = (function () {\r\n    /**\r\n     * @param {?} _file The html source\r\n     * @param {?} _getTagDefinition\r\n     * @param {?} _tokenizeIcu Whether to tokenize ICU messages (considered as text nodes when false)\r\n     * @param {?=} _interpolationConfig\r\n     */\r\n    function _Tokenizer(_file, _getTagDefinition, _tokenizeIcu, _interpolationConfig) {\r\n        if (_interpolationConfig === void 0) { _interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\r\n        this._file = _file;\r\n        this._getTagDefinition = _getTagDefinition;\r\n        this._tokenizeIcu = _tokenizeIcu;\r\n        this._interpolationConfig = _interpolationConfig;\r\n        this._peek = -1;\r\n        this._nextPeek = -1;\r\n        this._index = -1;\r\n        this._line = 0;\r\n        this._column = -1;\r\n        this._expansionCaseStack = [];\r\n        this._inInterpolation = false;\r\n        this.tokens = [];\r\n        this.errors = [];\r\n        this._input = _file.content;\r\n        this._length = _file.content.length;\r\n        this._advance();\r\n    }\r\n    /**\r\n     * @param {?} content\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._processCarriageReturns = function (content) {\r\n        // http://www.w3.org/TR/html5/syntax.html#preprocessing-the-input-stream\r\n        // In order to keep the original position in the source, we can not\r\n        // pre-process it.\r\n        // Instead CRs are processed right before instantiating the tokens.\r\n        return content.replace(_CR_OR_CRLF_REGEXP, '\\n');\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype.tokenize = function () {\r\n        while (this._peek !== $EOF) {\r\n            var /** @type {?} */ start = this._getLocation();\r\n            try {\r\n                if (this._attemptCharCode($LT)) {\r\n                    if (this._attemptCharCode($BANG)) {\r\n                        if (this._attemptCharCode($LBRACKET)) {\r\n                            this._consumeCdata(start);\r\n                        }\r\n                        else if (this._attemptCharCode($MINUS)) {\r\n                            this._consumeComment(start);\r\n                        }\r\n                        else {\r\n                            this._consumeDocType(start);\r\n                        }\r\n                    }\r\n                    else if (this._attemptCharCode($SLASH)) {\r\n                        this._consumeTagClose(start);\r\n                    }\r\n                    else {\r\n                        this._consumeTagOpen(start);\r\n                    }\r\n                }\r\n                else if (!(this._tokenizeIcu && this._tokenizeExpansionForm())) {\r\n                    this._consumeText();\r\n                }\r\n            }\r\n            catch (e) {\r\n                if (e instanceof _ControlFlowError) {\r\n                    this.errors.push(e.error);\r\n                }\r\n                else {\r\n                    throw e;\r\n                }\r\n            }\r\n        }\r\n        this._beginToken(TokenType$1.EOF);\r\n        this._endToken([]);\r\n        return new TokenizeResult(mergeTextTokens(this.tokens), this.errors);\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._tokenizeExpansionForm = function () {\r\n        if (isExpansionFormStart(this._input, this._index, this._interpolationConfig)) {\r\n            this._consumeExpansionFormStart();\r\n            return true;\r\n        }\r\n        if (isExpansionCaseStart(this._peek) && this._isInExpansionForm()) {\r\n            this._consumeExpansionCaseStart();\r\n            return true;\r\n        }\r\n        if (this._peek === $RBRACE) {\r\n            if (this._isInExpansionCase()) {\r\n                this._consumeExpansionCaseEnd();\r\n                return true;\r\n            }\r\n            if (this._isInExpansionForm()) {\r\n                this._consumeExpansionFormEnd();\r\n                return true;\r\n            }\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._getLocation = function () {\r\n        return new ParseLocation(this._file, this._index, this._line, this._column);\r\n    };\r\n    /**\r\n     * @param {?=} start\r\n     * @param {?=} end\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._getSpan = function (start, end) {\r\n        if (start === void 0) { start = this._getLocation(); }\r\n        if (end === void 0) { end = this._getLocation(); }\r\n        return new ParseSourceSpan(start, end);\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?=} start\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._beginToken = function (type, start) {\r\n        if (start === void 0) { start = this._getLocation(); }\r\n        this._currentTokenStart = start;\r\n        this._currentTokenType = type;\r\n    };\r\n    /**\r\n     * @param {?} parts\r\n     * @param {?=} end\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._endToken = function (parts, end) {\r\n        if (end === void 0) { end = this._getLocation(); }\r\n        var /** @type {?} */ token = new Token$1(this._currentTokenType, parts, new ParseSourceSpan(this._currentTokenStart, end));\r\n        this.tokens.push(token);\r\n        this._currentTokenStart = ((null));\r\n        this._currentTokenType = ((null));\r\n        return token;\r\n    };\r\n    /**\r\n     * @param {?} msg\r\n     * @param {?} span\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._createError = function (msg, span) {\r\n        if (this._isInExpansionForm()) {\r\n            msg += \" (Do you have an unescaped \\\"{\\\" in your template? Use \\\"{{ '{' }}\\\") to escape it.)\";\r\n        }\r\n        var /** @type {?} */ error = new TokenError(msg, this._currentTokenType, span);\r\n        this._currentTokenStart = ((null));\r\n        this._currentTokenType = ((null));\r\n        return new _ControlFlowError(error);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._advance = function () {\r\n        if (this._index >= this._length) {\r\n            throw this._createError(_unexpectedCharacterErrorMsg($EOF), this._getSpan());\r\n        }\r\n        if (this._peek === $LF) {\r\n            this._line++;\r\n            this._column = 0;\r\n        }\r\n        else if (this._peek !== $LF && this._peek !== $CR) {\r\n            this._column++;\r\n        }\r\n        this._index++;\r\n        this._peek = this._index >= this._length ? $EOF : this._input.charCodeAt(this._index);\r\n        this._nextPeek =\r\n            this._index + 1 >= this._length ? $EOF : this._input.charCodeAt(this._index + 1);\r\n    };\r\n    /**\r\n     * @param {?} charCode\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._attemptCharCode = function (charCode) {\r\n        if (this._peek === charCode) {\r\n            this._advance();\r\n            return true;\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * @param {?} charCode\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._attemptCharCodeCaseInsensitive = function (charCode) {\r\n        if (compareCharCodeCaseInsensitive(this._peek, charCode)) {\r\n            this._advance();\r\n            return true;\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * @param {?} charCode\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._requireCharCode = function (charCode) {\r\n        var /** @type {?} */ location = this._getLocation();\r\n        if (!this._attemptCharCode(charCode)) {\r\n            throw this._createError(_unexpectedCharacterErrorMsg(this._peek), this._getSpan(location, location));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} chars\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._attemptStr = function (chars) {\r\n        var /** @type {?} */ len = chars.length;\r\n        if (this._index + len > this._length) {\r\n            return false;\r\n        }\r\n        var /** @type {?} */ initialPosition = this._savePosition();\r\n        for (var /** @type {?} */ i = 0; i < len; i++) {\r\n            if (!this._attemptCharCode(chars.charCodeAt(i))) {\r\n                // If attempting to parse the string fails, we want to reset the parser\r\n                // to where it was before the attempt\r\n                this._restorePosition(initialPosition);\r\n                return false;\r\n            }\r\n        }\r\n        return true;\r\n    };\r\n    /**\r\n     * @param {?} chars\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._attemptStrCaseInsensitive = function (chars) {\r\n        for (var /** @type {?} */ i = 0; i < chars.length; i++) {\r\n            if (!this._attemptCharCodeCaseInsensitive(chars.charCodeAt(i))) {\r\n                return false;\r\n            }\r\n        }\r\n        return true;\r\n    };\r\n    /**\r\n     * @param {?} chars\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._requireStr = function (chars) {\r\n        var /** @type {?} */ location = this._getLocation();\r\n        if (!this._attemptStr(chars)) {\r\n            throw this._createError(_unexpectedCharacterErrorMsg(this._peek), this._getSpan(location));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} predicate\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._attemptCharCodeUntilFn = function (predicate) {\r\n        while (!predicate(this._peek)) {\r\n            this._advance();\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} predicate\r\n     * @param {?} len\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._requireCharCodeUntilFn = function (predicate, len) {\r\n        var /** @type {?} */ start = this._getLocation();\r\n        this._attemptCharCodeUntilFn(predicate);\r\n        if (this._index - start.offset < len) {\r\n            throw this._createError(_unexpectedCharacterErrorMsg(this._peek), this._getSpan(start, start));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} char\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._attemptUntilChar = function (char) {\r\n        while (this._peek !== char) {\r\n            this._advance();\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} decodeEntities\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._readChar = function (decodeEntities) {\r\n        if (decodeEntities && this._peek === $AMPERSAND) {\r\n            return this._decodeEntity();\r\n        }\r\n        else {\r\n            var /** @type {?} */ index = this._index;\r\n            this._advance();\r\n            return this._input[index];\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._decodeEntity = function () {\r\n        var /** @type {?} */ start = this._getLocation();\r\n        this._advance();\r\n        if (this._attemptCharCode($HASH)) {\r\n            var /** @type {?} */ isHex = this._attemptCharCode($x) || this._attemptCharCode($X);\r\n            var /** @type {?} */ numberStart = this._getLocation().offset;\r\n            this._attemptCharCodeUntilFn(isDigitEntityEnd);\r\n            if (this._peek != $SEMICOLON) {\r\n                throw this._createError(_unexpectedCharacterErrorMsg(this._peek), this._getSpan());\r\n            }\r\n            this._advance();\r\n            var /** @type {?} */ strNum = this._input.substring(numberStart, this._index - 1);\r\n            try {\r\n                var /** @type {?} */ charCode = parseInt(strNum, isHex ? 16 : 10);\r\n                return String.fromCharCode(charCode);\r\n            }\r\n            catch (e) {\r\n                var /** @type {?} */ entity = this._input.substring(start.offset + 1, this._index - 1);\r\n                throw this._createError(_unknownEntityErrorMsg(entity), this._getSpan(start));\r\n            }\r\n        }\r\n        else {\r\n            var /** @type {?} */ startPosition = this._savePosition();\r\n            this._attemptCharCodeUntilFn(isNamedEntityEnd);\r\n            if (this._peek != $SEMICOLON) {\r\n                this._restorePosition(startPosition);\r\n                return '&';\r\n            }\r\n            this._advance();\r\n            var /** @type {?} */ name = this._input.substring(start.offset + 1, this._index - 1);\r\n            var /** @type {?} */ char = NAMED_ENTITIES[name];\r\n            if (!char) {\r\n                throw this._createError(_unknownEntityErrorMsg(name), this._getSpan(start));\r\n            }\r\n            return char;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} decodeEntities\r\n     * @param {?} firstCharOfEnd\r\n     * @param {?} attemptEndRest\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeRawText = function (decodeEntities, firstCharOfEnd, attemptEndRest) {\r\n        var /** @type {?} */ tagCloseStart;\r\n        var /** @type {?} */ textStart = this._getLocation();\r\n        this._beginToken(decodeEntities ? TokenType$1.ESCAPABLE_RAW_TEXT : TokenType$1.RAW_TEXT, textStart);\r\n        var /** @type {?} */ parts = [];\r\n        while (true) {\r\n            tagCloseStart = this._getLocation();\r\n            if (this._attemptCharCode(firstCharOfEnd) && attemptEndRest()) {\r\n                break;\r\n            }\r\n            if (this._index > tagCloseStart.offset) {\r\n                // add the characters consumed by the previous if statement to the output\r\n                parts.push(this._input.substring(tagCloseStart.offset, this._index));\r\n            }\r\n            while (this._peek !== firstCharOfEnd) {\r\n                parts.push(this._readChar(decodeEntities));\r\n            }\r\n        }\r\n        return this._endToken([this._processCarriageReturns(parts.join(''))], tagCloseStart);\r\n    };\r\n    /**\r\n     * @param {?} start\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeComment = function (start) {\r\n        var _this = this;\r\n        this._beginToken(TokenType$1.COMMENT_START, start);\r\n        this._requireCharCode($MINUS);\r\n        this._endToken([]);\r\n        var /** @type {?} */ textToken = this._consumeRawText(false, $MINUS, function () { return _this._attemptStr('->'); });\r\n        this._beginToken(TokenType$1.COMMENT_END, textToken.sourceSpan.end);\r\n        this._endToken([]);\r\n    };\r\n    /**\r\n     * @param {?} start\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeCdata = function (start) {\r\n        var _this = this;\r\n        this._beginToken(TokenType$1.CDATA_START, start);\r\n        this._requireStr('CDATA[');\r\n        this._endToken([]);\r\n        var /** @type {?} */ textToken = this._consumeRawText(false, $RBRACKET, function () { return _this._attemptStr(']>'); });\r\n        this._beginToken(TokenType$1.CDATA_END, textToken.sourceSpan.end);\r\n        this._endToken([]);\r\n    };\r\n    /**\r\n     * @param {?} start\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeDocType = function (start) {\r\n        this._beginToken(TokenType$1.DOC_TYPE, start);\r\n        this._attemptUntilChar($GT);\r\n        this._advance();\r\n        this._endToken([this._input.substring(start.offset + 2, this._index - 1)]);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumePrefixAndName = function () {\r\n        var /** @type {?} */ nameOrPrefixStart = this._index;\r\n        var /** @type {?} */ prefix = ((null));\r\n        while (this._peek !== $COLON && !isPrefixEnd(this._peek)) {\r\n            this._advance();\r\n        }\r\n        var /** @type {?} */ nameStart;\r\n        if (this._peek === $COLON) {\r\n            this._advance();\r\n            prefix = this._input.substring(nameOrPrefixStart, this._index - 1);\r\n            nameStart = this._index;\r\n        }\r\n        else {\r\n            nameStart = nameOrPrefixStart;\r\n        }\r\n        this._requireCharCodeUntilFn(isNameEnd, this._index === nameStart ? 1 : 0);\r\n        var /** @type {?} */ name = this._input.substring(nameStart, this._index);\r\n        return [prefix, name];\r\n    };\r\n    /**\r\n     * @param {?} start\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeTagOpen = function (start) {\r\n        var /** @type {?} */ savedPos = this._savePosition();\r\n        var /** @type {?} */ tagName;\r\n        var /** @type {?} */ lowercaseTagName;\r\n        try {\r\n            if (!isAsciiLetter(this._peek)) {\r\n                throw this._createError(_unexpectedCharacterErrorMsg(this._peek), this._getSpan());\r\n            }\r\n            var /** @type {?} */ nameStart = this._index;\r\n            this._consumeTagOpenStart(start);\r\n            tagName = this._input.substring(nameStart, this._index);\r\n            lowercaseTagName = tagName.toLowerCase();\r\n            this._attemptCharCodeUntilFn(isNotWhitespace);\r\n            while (this._peek !== $SLASH && this._peek !== $GT) {\r\n                this._consumeAttributeName();\r\n                this._attemptCharCodeUntilFn(isNotWhitespace);\r\n                if (this._attemptCharCode($EQ)) {\r\n                    this._attemptCharCodeUntilFn(isNotWhitespace);\r\n                    this._consumeAttributeValue();\r\n                }\r\n                this._attemptCharCodeUntilFn(isNotWhitespace);\r\n            }\r\n            this._consumeTagOpenEnd();\r\n        }\r\n        catch (e) {\r\n            if (e instanceof _ControlFlowError) {\r\n                // When the start tag is invalid, assume we want a \"<\"\r\n                this._restorePosition(savedPos);\r\n                // Back to back text tokens are merged at the end\r\n                this._beginToken(TokenType$1.TEXT, start);\r\n                this._endToken(['<']);\r\n                return;\r\n            }\r\n            throw e;\r\n        }\r\n        var /** @type {?} */ contentTokenType = this._getTagDefinition(tagName).contentType;\r\n        if (contentTokenType === TagContentType.RAW_TEXT) {\r\n            this._consumeRawTextWithTagClose(lowercaseTagName, false);\r\n        }\r\n        else if (contentTokenType === TagContentType.ESCAPABLE_RAW_TEXT) {\r\n            this._consumeRawTextWithTagClose(lowercaseTagName, true);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} lowercaseTagName\r\n     * @param {?} decodeEntities\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeRawTextWithTagClose = function (lowercaseTagName, decodeEntities) {\r\n        var _this = this;\r\n        var /** @type {?} */ textToken = this._consumeRawText(decodeEntities, $LT, function () {\r\n            if (!_this._attemptCharCode($SLASH))\r\n                return false;\r\n            _this._attemptCharCodeUntilFn(isNotWhitespace);\r\n            if (!_this._attemptStrCaseInsensitive(lowercaseTagName))\r\n                return false;\r\n            _this._attemptCharCodeUntilFn(isNotWhitespace);\r\n            return _this._attemptCharCode($GT);\r\n        });\r\n        this._beginToken(TokenType$1.TAG_CLOSE, textToken.sourceSpan.end);\r\n        this._endToken([/** @type {?} */ ((null)), lowercaseTagName]);\r\n    };\r\n    /**\r\n     * @param {?} start\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeTagOpenStart = function (start) {\r\n        this._beginToken(TokenType$1.TAG_OPEN_START, start);\r\n        var /** @type {?} */ parts = this._consumePrefixAndName();\r\n        this._endToken(parts);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeAttributeName = function () {\r\n        this._beginToken(TokenType$1.ATTR_NAME);\r\n        var /** @type {?} */ prefixAndName = this._consumePrefixAndName();\r\n        this._endToken(prefixAndName);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeAttributeValue = function () {\r\n        this._beginToken(TokenType$1.ATTR_VALUE);\r\n        var /** @type {?} */ value;\r\n        if (this._peek === $SQ || this._peek === $DQ) {\r\n            var /** @type {?} */ quoteChar = this._peek;\r\n            this._advance();\r\n            var /** @type {?} */ parts = [];\r\n            while (this._peek !== quoteChar) {\r\n                parts.push(this._readChar(true));\r\n            }\r\n            value = parts.join('');\r\n            this._advance();\r\n        }\r\n        else {\r\n            var /** @type {?} */ valueStart = this._index;\r\n            this._requireCharCodeUntilFn(isNameEnd, 1);\r\n            value = this._input.substring(valueStart, this._index);\r\n        }\r\n        this._endToken([this._processCarriageReturns(value)]);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeTagOpenEnd = function () {\r\n        var /** @type {?} */ tokenType = this._attemptCharCode($SLASH) ? TokenType$1.TAG_OPEN_END_VOID : TokenType$1.TAG_OPEN_END;\r\n        this._beginToken(tokenType);\r\n        this._requireCharCode($GT);\r\n        this._endToken([]);\r\n    };\r\n    /**\r\n     * @param {?} start\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeTagClose = function (start) {\r\n        this._beginToken(TokenType$1.TAG_CLOSE, start);\r\n        this._attemptCharCodeUntilFn(isNotWhitespace);\r\n        var /** @type {?} */ prefixAndName = this._consumePrefixAndName();\r\n        this._attemptCharCodeUntilFn(isNotWhitespace);\r\n        this._requireCharCode($GT);\r\n        this._endToken(prefixAndName);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeExpansionFormStart = function () {\r\n        this._beginToken(TokenType$1.EXPANSION_FORM_START, this._getLocation());\r\n        this._requireCharCode($LBRACE);\r\n        this._endToken([]);\r\n        this._expansionCaseStack.push(TokenType$1.EXPANSION_FORM_START);\r\n        this._beginToken(TokenType$1.RAW_TEXT, this._getLocation());\r\n        var /** @type {?} */ condition = this._readUntil($COMMA);\r\n        this._endToken([condition], this._getLocation());\r\n        this._requireCharCode($COMMA);\r\n        this._attemptCharCodeUntilFn(isNotWhitespace);\r\n        this._beginToken(TokenType$1.RAW_TEXT, this._getLocation());\r\n        var /** @type {?} */ type = this._readUntil($COMMA);\r\n        this._endToken([type], this._getLocation());\r\n        this._requireCharCode($COMMA);\r\n        this._attemptCharCodeUntilFn(isNotWhitespace);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeExpansionCaseStart = function () {\r\n        this._beginToken(TokenType$1.EXPANSION_CASE_VALUE, this._getLocation());\r\n        var /** @type {?} */ value = this._readUntil($LBRACE).trim();\r\n        this._endToken([value], this._getLocation());\r\n        this._attemptCharCodeUntilFn(isNotWhitespace);\r\n        this._beginToken(TokenType$1.EXPANSION_CASE_EXP_START, this._getLocation());\r\n        this._requireCharCode($LBRACE);\r\n        this._endToken([], this._getLocation());\r\n        this._attemptCharCodeUntilFn(isNotWhitespace);\r\n        this._expansionCaseStack.push(TokenType$1.EXPANSION_CASE_EXP_START);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeExpansionCaseEnd = function () {\r\n        this._beginToken(TokenType$1.EXPANSION_CASE_EXP_END, this._getLocation());\r\n        this._requireCharCode($RBRACE);\r\n        this._endToken([], this._getLocation());\r\n        this._attemptCharCodeUntilFn(isNotWhitespace);\r\n        this._expansionCaseStack.pop();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeExpansionFormEnd = function () {\r\n        this._beginToken(TokenType$1.EXPANSION_FORM_END, this._getLocation());\r\n        this._requireCharCode($RBRACE);\r\n        this._endToken([]);\r\n        this._expansionCaseStack.pop();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._consumeText = function () {\r\n        var /** @type {?} */ start = this._getLocation();\r\n        this._beginToken(TokenType$1.TEXT, start);\r\n        var /** @type {?} */ parts = [];\r\n        do {\r\n            if (this._interpolationConfig && this._attemptStr(this._interpolationConfig.start)) {\r\n                parts.push(this._interpolationConfig.start);\r\n                this._inInterpolation = true;\r\n            }\r\n            else if (this._interpolationConfig && this._inInterpolation &&\r\n                this._attemptStr(this._interpolationConfig.end)) {\r\n                parts.push(this._interpolationConfig.end);\r\n                this._inInterpolation = false;\r\n            }\r\n            else {\r\n                parts.push(this._readChar(true));\r\n            }\r\n        } while (!this._isTextEnd());\r\n        this._endToken([this._processCarriageReturns(parts.join(''))]);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._isTextEnd = function () {\r\n        if (this._peek === $LT || this._peek === $EOF) {\r\n            return true;\r\n        }\r\n        if (this._tokenizeIcu && !this._inInterpolation) {\r\n            if (isExpansionFormStart(this._input, this._index, this._interpolationConfig)) {\r\n                // start of an expansion form\r\n                return true;\r\n            }\r\n            if (this._peek === $RBRACE && this._isInExpansionCase()) {\r\n                // end of and expansion case\r\n                return true;\r\n            }\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._savePosition = function () {\r\n        return [this._peek, this._index, this._column, this._line, this.tokens.length];\r\n    };\r\n    /**\r\n     * @param {?} char\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._readUntil = function (char) {\r\n        var /** @type {?} */ start = this._index;\r\n        this._attemptUntilChar(char);\r\n        return this._input.substring(start, this._index);\r\n    };\r\n    /**\r\n     * @param {?} position\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._restorePosition = function (position) {\r\n        this._peek = position[0];\r\n        this._index = position[1];\r\n        this._column = position[2];\r\n        this._line = position[3];\r\n        var /** @type {?} */ nbTokens = position[4];\r\n        if (nbTokens < this.tokens.length) {\r\n            // remove any extra tokens\r\n            this.tokens = this.tokens.slice(0, nbTokens);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._isInExpansionCase = function () {\r\n        return this._expansionCaseStack.length > 0 &&\r\n            this._expansionCaseStack[this._expansionCaseStack.length - 1] ===\r\n                TokenType$1.EXPANSION_CASE_EXP_START;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _Tokenizer.prototype._isInExpansionForm = function () {\r\n        return this._expansionCaseStack.length > 0 &&\r\n            this._expansionCaseStack[this._expansionCaseStack.length - 1] ===\r\n                TokenType$1.EXPANSION_FORM_START;\r\n    };\r\n    return _Tokenizer;\r\n}());\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isNotWhitespace(code) {\r\n    return !isWhitespace(code) || code === $EOF;\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isNameEnd(code) {\r\n    return isWhitespace(code) || code === $GT || code === $SLASH ||\r\n        code === $SQ || code === $DQ || code === $EQ;\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isPrefixEnd(code) {\r\n    return (code < $a || $z < code) && (code < $A || $Z < code) &&\r\n        (code < $0 || code > $9);\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isDigitEntityEnd(code) {\r\n    return code == $SEMICOLON || code == $EOF || !isAsciiHexDigit(code);\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction isNamedEntityEnd(code) {\r\n    return code == $SEMICOLON || code == $EOF || !isAsciiLetter(code);\r\n}\r\n/**\r\n * @param {?} input\r\n * @param {?} offset\r\n * @param {?} interpolationConfig\r\n * @return {?}\r\n */\r\nfunction isExpansionFormStart(input, offset, interpolationConfig) {\r\n    var /** @type {?} */ isInterpolationStart = interpolationConfig ? input.indexOf(interpolationConfig.start, offset) == offset : false;\r\n    return input.charCodeAt(offset) == $LBRACE && !isInterpolationStart;\r\n}\r\n/**\r\n * @param {?} peek\r\n * @return {?}\r\n */\r\nfunction isExpansionCaseStart(peek) {\r\n    return peek === $EQ || isAsciiLetter(peek);\r\n}\r\n/**\r\n * @param {?} code1\r\n * @param {?} code2\r\n * @return {?}\r\n */\r\nfunction compareCharCodeCaseInsensitive(code1, code2) {\r\n    return toUpperCaseCharCode(code1) == toUpperCaseCharCode(code2);\r\n}\r\n/**\r\n * @param {?} code\r\n * @return {?}\r\n */\r\nfunction toUpperCaseCharCode(code) {\r\n    return code >= $a && code <= $z ? code - $a + $A : code;\r\n}\r\n/**\r\n * @param {?} srcTokens\r\n * @return {?}\r\n */\r\nfunction mergeTextTokens(srcTokens) {\r\n    var /** @type {?} */ dstTokens = [];\r\n    var /** @type {?} */ lastDstToken = undefined;\r\n    for (var /** @type {?} */ i = 0; i < srcTokens.length; i++) {\r\n        var /** @type {?} */ token = srcTokens[i];\r\n        if (lastDstToken && lastDstToken.type == TokenType$1.TEXT && token.type == TokenType$1.TEXT) {\r\n            lastDstToken.parts[0] += token.parts[0];\r\n            lastDstToken.sourceSpan.end = token.sourceSpan.end;\r\n        }\r\n        else {\r\n            lastDstToken = token;\r\n            dstTokens.push(lastDstToken);\r\n        }\r\n    }\r\n    return dstTokens;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar TreeError = (function (_super) {\r\n    __extends(TreeError, _super);\r\n    /**\r\n     * @param {?} elementName\r\n     * @param {?} span\r\n     * @param {?} msg\r\n     */\r\n    function TreeError(elementName, span, msg) {\r\n        var _this = _super.call(this, span, msg) || this;\r\n        _this.elementName = elementName;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} elementName\r\n     * @param {?} span\r\n     * @param {?} msg\r\n     * @return {?}\r\n     */\r\n    TreeError.create = function (elementName, span, msg) {\r\n        return new TreeError(elementName, span, msg);\r\n    };\r\n    return TreeError;\r\n}(ParseError));\r\nvar ParseTreeResult = (function () {\r\n    /**\r\n     * @param {?} rootNodes\r\n     * @param {?} errors\r\n     */\r\n    function ParseTreeResult(rootNodes, errors) {\r\n        this.rootNodes = rootNodes;\r\n        this.errors = errors;\r\n    }\r\n    return ParseTreeResult;\r\n}());\r\nvar Parser$1 = (function () {\r\n    /**\r\n     * @param {?} getTagDefinition\r\n     */\r\n    function Parser$1(getTagDefinition) {\r\n        this.getTagDefinition = getTagDefinition;\r\n    }\r\n    /**\r\n     * @param {?} source\r\n     * @param {?} url\r\n     * @param {?=} parseExpansionForms\r\n     * @param {?=} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    Parser$1.prototype.parse = function (source, url, parseExpansionForms, interpolationConfig) {\r\n        if (parseExpansionForms === void 0) { parseExpansionForms = false; }\r\n        if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\r\n        var /** @type {?} */ tokensAndErrors = tokenize(source, url, this.getTagDefinition, parseExpansionForms, interpolationConfig);\r\n        var /** @type {?} */ treeAndErrors = new _TreeBuilder(tokensAndErrors.tokens, this.getTagDefinition).build();\r\n        return new ParseTreeResult(treeAndErrors.rootNodes, ((tokensAndErrors.errors)).concat(treeAndErrors.errors));\r\n    };\r\n    return Parser$1;\r\n}());\r\nvar _TreeBuilder = (function () {\r\n    /**\r\n     * @param {?} tokens\r\n     * @param {?} getTagDefinition\r\n     */\r\n    function _TreeBuilder(tokens, getTagDefinition) {\r\n        this.tokens = tokens;\r\n        this.getTagDefinition = getTagDefinition;\r\n        this._index = -1;\r\n        this._rootNodes = [];\r\n        this._errors = [];\r\n        this._elementStack = [];\r\n        this._advance();\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype.build = function () {\r\n        while (this._peek.type !== TokenType$1.EOF) {\r\n            if (this._peek.type === TokenType$1.TAG_OPEN_START) {\r\n                this._consumeStartTag(this._advance());\r\n            }\r\n            else if (this._peek.type === TokenType$1.TAG_CLOSE) {\r\n                this._consumeEndTag(this._advance());\r\n            }\r\n            else if (this._peek.type === TokenType$1.CDATA_START) {\r\n                this._closeVoidElement();\r\n                this._consumeCdata(this._advance());\r\n            }\r\n            else if (this._peek.type === TokenType$1.COMMENT_START) {\r\n                this._closeVoidElement();\r\n                this._consumeComment(this._advance());\r\n            }\r\n            else if (this._peek.type === TokenType$1.TEXT || this._peek.type === TokenType$1.RAW_TEXT ||\r\n                this._peek.type === TokenType$1.ESCAPABLE_RAW_TEXT) {\r\n                this._closeVoidElement();\r\n                this._consumeText(this._advance());\r\n            }\r\n            else if (this._peek.type === TokenType$1.EXPANSION_FORM_START) {\r\n                this._consumeExpansion(this._advance());\r\n            }\r\n            else {\r\n                // Skip all other tokens...\r\n                this._advance();\r\n            }\r\n        }\r\n        return new ParseTreeResult(this._rootNodes, this._errors);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._advance = function () {\r\n        var /** @type {?} */ prev = this._peek;\r\n        if (this._index < this.tokens.length - 1) {\r\n            // Note: there is always an EOF token at the end\r\n            this._index++;\r\n        }\r\n        this._peek = this.tokens[this._index];\r\n        return prev;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._advanceIf = function (type) {\r\n        if (this._peek.type === type) {\r\n            return this._advance();\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} startToken\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._consumeCdata = function (startToken) {\r\n        this._consumeText(this._advance());\r\n        this._advanceIf(TokenType$1.CDATA_END);\r\n    };\r\n    /**\r\n     * @param {?} token\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._consumeComment = function (token) {\r\n        var /** @type {?} */ text = this._advanceIf(TokenType$1.RAW_TEXT);\r\n        this._advanceIf(TokenType$1.COMMENT_END);\r\n        var /** @type {?} */ value = text != null ? text.parts[0].trim() : null;\r\n        this._addToParent(new Comment(value, token.sourceSpan));\r\n    };\r\n    /**\r\n     * @param {?} token\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._consumeExpansion = function (token) {\r\n        var /** @type {?} */ switchValue = this._advance();\r\n        var /** @type {?} */ type = this._advance();\r\n        var /** @type {?} */ cases = [];\r\n        // read =\r\n        while (this._peek.type === TokenType$1.EXPANSION_CASE_VALUE) {\r\n            var /** @type {?} */ expCase = this._parseExpansionCase();\r\n            if (!expCase)\r\n                return; // error\r\n            cases.push(expCase);\r\n        }\r\n        // read the final }\r\n        if (this._peek.type !== TokenType$1.EXPANSION_FORM_END) {\r\n            this._errors.push(TreeError.create(null, this._peek.sourceSpan, \"Invalid ICU message. Missing '}'.\"));\r\n            return;\r\n        }\r\n        var /** @type {?} */ sourceSpan = new ParseSourceSpan(token.sourceSpan.start, this._peek.sourceSpan.end);\r\n        this._addToParent(new Expansion(switchValue.parts[0], type.parts[0], cases, sourceSpan, switchValue.sourceSpan));\r\n        this._advance();\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._parseExpansionCase = function () {\r\n        var /** @type {?} */ value = this._advance();\r\n        // read {\r\n        if (this._peek.type !== TokenType$1.EXPANSION_CASE_EXP_START) {\r\n            this._errors.push(TreeError.create(null, this._peek.sourceSpan, \"Invalid ICU message. Missing '{'.\"));\r\n            return null;\r\n        }\r\n        // read until }\r\n        var /** @type {?} */ start = this._advance();\r\n        var /** @type {?} */ exp = this._collectExpansionExpTokens(start);\r\n        if (!exp)\r\n            return null;\r\n        var /** @type {?} */ end = this._advance();\r\n        exp.push(new Token$1(TokenType$1.EOF, [], end.sourceSpan));\r\n        // parse everything in between { and }\r\n        var /** @type {?} */ parsedExp = new _TreeBuilder(exp, this.getTagDefinition).build();\r\n        if (parsedExp.errors.length > 0) {\r\n            this._errors = this._errors.concat(/** @type {?} */ (parsedExp.errors));\r\n            return null;\r\n        }\r\n        var /** @type {?} */ sourceSpan = new ParseSourceSpan(value.sourceSpan.start, end.sourceSpan.end);\r\n        var /** @type {?} */ expSourceSpan = new ParseSourceSpan(start.sourceSpan.start, end.sourceSpan.end);\r\n        return new ExpansionCase(value.parts[0], parsedExp.rootNodes, sourceSpan, value.sourceSpan, expSourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} start\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._collectExpansionExpTokens = function (start) {\r\n        var /** @type {?} */ exp = [];\r\n        var /** @type {?} */ expansionFormStack = [TokenType$1.EXPANSION_CASE_EXP_START];\r\n        while (true) {\r\n            if (this._peek.type === TokenType$1.EXPANSION_FORM_START ||\r\n                this._peek.type === TokenType$1.EXPANSION_CASE_EXP_START) {\r\n                expansionFormStack.push(this._peek.type);\r\n            }\r\n            if (this._peek.type === TokenType$1.EXPANSION_CASE_EXP_END) {\r\n                if (lastOnStack(expansionFormStack, TokenType$1.EXPANSION_CASE_EXP_START)) {\r\n                    expansionFormStack.pop();\r\n                    if (expansionFormStack.length == 0)\r\n                        return exp;\r\n                }\r\n                else {\r\n                    this._errors.push(TreeError.create(null, start.sourceSpan, \"Invalid ICU message. Missing '}'.\"));\r\n                    return null;\r\n                }\r\n            }\r\n            if (this._peek.type === TokenType$1.EXPANSION_FORM_END) {\r\n                if (lastOnStack(expansionFormStack, TokenType$1.EXPANSION_FORM_START)) {\r\n                    expansionFormStack.pop();\r\n                }\r\n                else {\r\n                    this._errors.push(TreeError.create(null, start.sourceSpan, \"Invalid ICU message. Missing '}'.\"));\r\n                    return null;\r\n                }\r\n            }\r\n            if (this._peek.type === TokenType$1.EOF) {\r\n                this._errors.push(TreeError.create(null, start.sourceSpan, \"Invalid ICU message. Missing '}'.\"));\r\n                return null;\r\n            }\r\n            exp.push(this._advance());\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} token\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._consumeText = function (token) {\r\n        var /** @type {?} */ text = token.parts[0];\r\n        if (text.length > 0 && text[0] == '\\n') {\r\n            var /** @type {?} */ parent = this._getParentElement();\r\n            if (parent != null && parent.children.length == 0 &&\r\n                this.getTagDefinition(parent.name).ignoreFirstLf) {\r\n                text = text.substring(1);\r\n            }\r\n        }\r\n        if (text.length > 0) {\r\n            this._addToParent(new Text(text, token.sourceSpan));\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._closeVoidElement = function () {\r\n        if (this._elementStack.length > 0) {\r\n            var /** @type {?} */ el = this._elementStack[this._elementStack.length - 1];\r\n            if (this.getTagDefinition(el.name).isVoid) {\r\n                this._elementStack.pop();\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} startTagToken\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._consumeStartTag = function (startTagToken) {\r\n        var /** @type {?} */ prefix = startTagToken.parts[0];\r\n        var /** @type {?} */ name = startTagToken.parts[1];\r\n        var /** @type {?} */ attrs = [];\r\n        while (this._peek.type === TokenType$1.ATTR_NAME) {\r\n            attrs.push(this._consumeAttr(this._advance()));\r\n        }\r\n        var /** @type {?} */ fullName = this._getElementFullName(prefix, name, this._getParentElement());\r\n        var /** @type {?} */ selfClosing = false;\r\n        // Note: There could have been a tokenizer error\r\n        // so that we don't get a token for the end tag...\r\n        if (this._peek.type === TokenType$1.TAG_OPEN_END_VOID) {\r\n            this._advance();\r\n            selfClosing = true;\r\n            var /** @type {?} */ tagDef = this.getTagDefinition(fullName);\r\n            if (!(tagDef.canSelfClose || getNsPrefix(fullName) !== null || tagDef.isVoid)) {\r\n                this._errors.push(TreeError.create(fullName, startTagToken.sourceSpan, \"Only void and foreign elements can be self closed \\\"\" + startTagToken.parts[1] + \"\\\"\"));\r\n            }\r\n        }\r\n        else if (this._peek.type === TokenType$1.TAG_OPEN_END) {\r\n            this._advance();\r\n            selfClosing = false;\r\n        }\r\n        var /** @type {?} */ end = this._peek.sourceSpan.start;\r\n        var /** @type {?} */ span = new ParseSourceSpan(startTagToken.sourceSpan.start, end);\r\n        var /** @type {?} */ el = new Element(fullName, attrs, [], span, span, undefined);\r\n        this._pushElement(el);\r\n        if (selfClosing) {\r\n            this._popElement(fullName);\r\n            el.endSourceSpan = span;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._pushElement = function (el) {\r\n        if (this._elementStack.length > 0) {\r\n            var /** @type {?} */ parentEl = this._elementStack[this._elementStack.length - 1];\r\n            if (this.getTagDefinition(parentEl.name).isClosedByChild(el.name)) {\r\n                this._elementStack.pop();\r\n            }\r\n        }\r\n        var /** @type {?} */ tagDef = this.getTagDefinition(el.name);\r\n        var _a = this._getParentElementSkippingContainers(), parent = _a.parent, container = _a.container;\r\n        if (parent && tagDef.requireExtraParent(parent.name)) {\r\n            var /** @type {?} */ newParent = new Element(tagDef.parentToAdd, [], [], el.sourceSpan, el.startSourceSpan, el.endSourceSpan);\r\n            this._insertBeforeContainer(parent, container, newParent);\r\n        }\r\n        this._addToParent(el);\r\n        this._elementStack.push(el);\r\n    };\r\n    /**\r\n     * @param {?} endTagToken\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._consumeEndTag = function (endTagToken) {\r\n        var /** @type {?} */ fullName = this._getElementFullName(endTagToken.parts[0], endTagToken.parts[1], this._getParentElement());\r\n        if (this._getParentElement()) {\r\n            ((this._getParentElement())).endSourceSpan = endTagToken.sourceSpan;\r\n        }\r\n        if (this.getTagDefinition(fullName).isVoid) {\r\n            this._errors.push(TreeError.create(fullName, endTagToken.sourceSpan, \"Void elements do not have end tags \\\"\" + endTagToken.parts[1] + \"\\\"\"));\r\n        }\r\n        else if (!this._popElement(fullName)) {\r\n            var /** @type {?} */ errMsg = \"Unexpected closing tag \\\"\" + fullName + \"\\\". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags\";\r\n            this._errors.push(TreeError.create(fullName, endTagToken.sourceSpan, errMsg));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} fullName\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._popElement = function (fullName) {\r\n        for (var /** @type {?} */ stackIndex = this._elementStack.length - 1; stackIndex >= 0; stackIndex--) {\r\n            var /** @type {?} */ el = this._elementStack[stackIndex];\r\n            if (el.name == fullName) {\r\n                this._elementStack.splice(stackIndex, this._elementStack.length - stackIndex);\r\n                return true;\r\n            }\r\n            if (!this.getTagDefinition(el.name).closedByParent) {\r\n                return false;\r\n            }\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * @param {?} attrName\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._consumeAttr = function (attrName) {\r\n        var /** @type {?} */ fullName = mergeNsAndName(attrName.parts[0], attrName.parts[1]);\r\n        var /** @type {?} */ end = attrName.sourceSpan.end;\r\n        var /** @type {?} */ value = '';\r\n        var /** @type {?} */ valueSpan = ((undefined));\r\n        if (this._peek.type === TokenType$1.ATTR_VALUE) {\r\n            var /** @type {?} */ valueToken = this._advance();\r\n            value = valueToken.parts[0];\r\n            end = valueToken.sourceSpan.end;\r\n            valueSpan = valueToken.sourceSpan;\r\n        }\r\n        return new Attribute$1(fullName, value, new ParseSourceSpan(attrName.sourceSpan.start, end), valueSpan);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._getParentElement = function () {\r\n        return this._elementStack.length > 0 ? this._elementStack[this._elementStack.length - 1] : null;\r\n    };\r\n    /**\r\n     * Returns the parent in the DOM and the container.\r\n     *\r\n     * `<ng-container>` elements are skipped as they are not rendered as DOM element.\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._getParentElementSkippingContainers = function () {\r\n        var /** @type {?} */ container = null;\r\n        for (var /** @type {?} */ i = this._elementStack.length - 1; i >= 0; i--) {\r\n            if (!isNgContainer(this._elementStack[i].name)) {\r\n                return { parent: this._elementStack[i], container: container };\r\n            }\r\n            container = this._elementStack[i];\r\n        }\r\n        return { parent: this._elementStack[this._elementStack.length - 1], container: container };\r\n    };\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._addToParent = function (node) {\r\n        var /** @type {?} */ parent = this._getParentElement();\r\n        if (parent != null) {\r\n            parent.children.push(node);\r\n        }\r\n        else {\r\n            this._rootNodes.push(node);\r\n        }\r\n    };\r\n    /**\r\n     * Insert a node between the parent and the container.\r\n     * When no container is given, the node is appended as a child of the parent.\r\n     * Also updates the element stack accordingly.\r\n     *\r\n     * \\@internal\r\n     * @param {?} parent\r\n     * @param {?} container\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._insertBeforeContainer = function (parent, container, node) {\r\n        if (!container) {\r\n            this._addToParent(node);\r\n            this._elementStack.push(node);\r\n        }\r\n        else {\r\n            if (parent) {\r\n                // replace the container with the new node in the children\r\n                var /** @type {?} */ index = parent.children.indexOf(container);\r\n                parent.children[index] = node;\r\n            }\r\n            else {\r\n                this._rootNodes.push(node);\r\n            }\r\n            node.children.push(container);\r\n            this._elementStack.splice(this._elementStack.indexOf(container), 0, node);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} prefix\r\n     * @param {?} localName\r\n     * @param {?} parentElement\r\n     * @return {?}\r\n     */\r\n    _TreeBuilder.prototype._getElementFullName = function (prefix, localName, parentElement) {\r\n        if (prefix == null) {\r\n            prefix = ((this.getTagDefinition(localName).implicitNamespacePrefix));\r\n            if (prefix == null && parentElement != null) {\r\n                prefix = getNsPrefix(parentElement.name);\r\n            }\r\n        }\r\n        return mergeNsAndName(prefix, localName);\r\n    };\r\n    return _TreeBuilder;\r\n}());\r\n/**\r\n * @param {?} stack\r\n * @param {?} element\r\n * @return {?}\r\n */\r\nfunction lastOnStack(stack, element) {\r\n    return stack.length > 0 && stack[stack.length - 1] === element;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar Message = (function () {\r\n    /**\r\n     * @param {?} nodes message AST\r\n     * @param {?} placeholders maps placeholder names to static content\r\n     * @param {?} placeholderToMessage maps placeholder names to messages (used for nested ICU messages)\r\n     * @param {?} meaning\r\n     * @param {?} description\r\n     * @param {?} id\r\n     */\r\n    function Message(nodes, placeholders, placeholderToMessage, meaning, description, id) {\r\n        this.nodes = nodes;\r\n        this.placeholders = placeholders;\r\n        this.placeholderToMessage = placeholderToMessage;\r\n        this.meaning = meaning;\r\n        this.description = description;\r\n        this.id = id;\r\n        if (nodes.length) {\r\n            this.sources = [{\r\n                    filePath: nodes[0].sourceSpan.start.file.url,\r\n                    startLine: nodes[0].sourceSpan.start.line + 1,\r\n                    startCol: nodes[0].sourceSpan.start.col + 1,\r\n                    endLine: nodes[nodes.length - 1].sourceSpan.end.line + 1,\r\n                    endCol: nodes[0].sourceSpan.start.col + 1\r\n                }];\r\n        }\r\n        else {\r\n            this.sources = [];\r\n        }\r\n    }\r\n    return Message;\r\n}());\r\nvar Text$1 = (function () {\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     */\r\n    function Text$1(value, sourceSpan) {\r\n        this.value = value;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    Text$1.prototype.visit = function (visitor, context) { return visitor.visitText(this, context); };\r\n    return Text$1;\r\n}());\r\nvar Container = (function () {\r\n    /**\r\n     * @param {?} children\r\n     * @param {?} sourceSpan\r\n     */\r\n    function Container(children, sourceSpan) {\r\n        this.children = children;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    Container.prototype.visit = function (visitor, context) { return visitor.visitContainer(this, context); };\r\n    return Container;\r\n}());\r\nvar Icu = (function () {\r\n    /**\r\n     * @param {?} expression\r\n     * @param {?} type\r\n     * @param {?} cases\r\n     * @param {?} sourceSpan\r\n     */\r\n    function Icu(expression, type, cases, sourceSpan) {\r\n        this.expression = expression;\r\n        this.type = type;\r\n        this.cases = cases;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    Icu.prototype.visit = function (visitor, context) { return visitor.visitIcu(this, context); };\r\n    return Icu;\r\n}());\r\nvar TagPlaceholder = (function () {\r\n    /**\r\n     * @param {?} tag\r\n     * @param {?} attrs\r\n     * @param {?} startName\r\n     * @param {?} closeName\r\n     * @param {?} children\r\n     * @param {?} isVoid\r\n     * @param {?} sourceSpan\r\n     */\r\n    function TagPlaceholder(tag, attrs, startName, closeName, children, isVoid, sourceSpan) {\r\n        this.tag = tag;\r\n        this.attrs = attrs;\r\n        this.startName = startName;\r\n        this.closeName = closeName;\r\n        this.children = children;\r\n        this.isVoid = isVoid;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    TagPlaceholder.prototype.visit = function (visitor, context) { return visitor.visitTagPlaceholder(this, context); };\r\n    return TagPlaceholder;\r\n}());\r\nvar Placeholder = (function () {\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} name\r\n     * @param {?} sourceSpan\r\n     */\r\n    function Placeholder(value, name, sourceSpan) {\r\n        this.value = value;\r\n        this.name = name;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    Placeholder.prototype.visit = function (visitor, context) { return visitor.visitPlaceholder(this, context); };\r\n    return Placeholder;\r\n}());\r\nvar IcuPlaceholder = (function () {\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} name\r\n     * @param {?} sourceSpan\r\n     */\r\n    function IcuPlaceholder(value, name, sourceSpan) {\r\n        this.value = value;\r\n        this.name = name;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    IcuPlaceholder.prototype.visit = function (visitor, context) { return visitor.visitIcuPlaceholder(this, context); };\r\n    return IcuPlaceholder;\r\n}());\r\nvar CloneVisitor = (function () {\r\n    function CloneVisitor() {\r\n    }\r\n    /**\r\n     * @param {?} text\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    CloneVisitor.prototype.visitText = function (text, context) { return new Text$1(text.value, text.sourceSpan); };\r\n    /**\r\n     * @param {?} container\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    CloneVisitor.prototype.visitContainer = function (container, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ children = container.children.map(function (n) { return n.visit(_this, context); });\r\n        return new Container(children, container.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    CloneVisitor.prototype.visitIcu = function (icu, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ cases = {};\r\n        Object.keys(icu.cases).forEach(function (key) { return cases[key] = icu.cases[key].visit(_this, context); });\r\n        var /** @type {?} */ msg = new Icu(icu.expression, icu.type, cases, icu.sourceSpan);\r\n        msg.expressionPlaceholder = icu.expressionPlaceholder;\r\n        return msg;\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    CloneVisitor.prototype.visitTagPlaceholder = function (ph, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ children = ph.children.map(function (n) { return n.visit(_this, context); });\r\n        return new TagPlaceholder(ph.tag, ph.attrs, ph.startName, ph.closeName, children, ph.isVoid, ph.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    CloneVisitor.prototype.visitPlaceholder = function (ph, context) {\r\n        return new Placeholder(ph.value, ph.name, ph.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    CloneVisitor.prototype.visitIcuPlaceholder = function (ph, context) {\r\n        return new IcuPlaceholder(ph.value, ph.name, ph.sourceSpan);\r\n    };\r\n    return CloneVisitor;\r\n}());\r\nvar RecurseVisitor = (function () {\r\n    function RecurseVisitor() {\r\n    }\r\n    /**\r\n     * @param {?} text\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    RecurseVisitor.prototype.visitText = function (text, context) { };\r\n    ;\r\n    /**\r\n     * @param {?} container\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    RecurseVisitor.prototype.visitContainer = function (container, context) {\r\n        var _this = this;\r\n        container.children.forEach(function (child) { return child.visit(_this); });\r\n    };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    RecurseVisitor.prototype.visitIcu = function (icu, context) {\r\n        var _this = this;\r\n        Object.keys(icu.cases).forEach(function (k) { icu.cases[k].visit(_this); });\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    RecurseVisitor.prototype.visitTagPlaceholder = function (ph, context) {\r\n        var _this = this;\r\n        ph.children.forEach(function (child) { return child.visit(_this); });\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    RecurseVisitor.prototype.visitPlaceholder = function (ph, context) { };\r\n    ;\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    RecurseVisitor.prototype.visitIcuPlaceholder = function (ph, context) { };\r\n    ;\r\n    return RecurseVisitor;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar TAG_TO_PLACEHOLDER_NAMES = {\r\n    'A': 'LINK',\r\n    'B': 'BOLD_TEXT',\r\n    'BR': 'LINE_BREAK',\r\n    'EM': 'EMPHASISED_TEXT',\r\n    'H1': 'HEADING_LEVEL1',\r\n    'H2': 'HEADING_LEVEL2',\r\n    'H3': 'HEADING_LEVEL3',\r\n    'H4': 'HEADING_LEVEL4',\r\n    'H5': 'HEADING_LEVEL5',\r\n    'H6': 'HEADING_LEVEL6',\r\n    'HR': 'HORIZONTAL_RULE',\r\n    'I': 'ITALIC_TEXT',\r\n    'LI': 'LIST_ITEM',\r\n    'LINK': 'MEDIA_LINK',\r\n    'OL': 'ORDERED_LIST',\r\n    'P': 'PARAGRAPH',\r\n    'Q': 'QUOTATION',\r\n    'S': 'STRIKETHROUGH_TEXT',\r\n    'SMALL': 'SMALL_TEXT',\r\n    'SUB': 'SUBSTRIPT',\r\n    'SUP': 'SUPERSCRIPT',\r\n    'TBODY': 'TABLE_BODY',\r\n    'TD': 'TABLE_CELL',\r\n    'TFOOT': 'TABLE_FOOTER',\r\n    'TH': 'TABLE_HEADER_CELL',\r\n    'THEAD': 'TABLE_HEADER',\r\n    'TR': 'TABLE_ROW',\r\n    'TT': 'MONOSPACED_TEXT',\r\n    'U': 'UNDERLINED_TEXT',\r\n    'UL': 'UNORDERED_LIST',\r\n};\r\n/**\r\n * Creates unique names for placeholder with different content.\r\n *\r\n * Returns the same placeholder name when the content is identical.\r\n *\r\n * \\@internal\r\n */\r\nvar PlaceholderRegistry = (function () {\r\n    function PlaceholderRegistry() {\r\n        this._placeHolderNameCounts = {};\r\n        this._signatureToName = {};\r\n    }\r\n    /**\r\n     * @param {?} tag\r\n     * @param {?} attrs\r\n     * @param {?} isVoid\r\n     * @return {?}\r\n     */\r\n    PlaceholderRegistry.prototype.getStartTagPlaceholderName = function (tag, attrs, isVoid) {\r\n        var /** @type {?} */ signature = this._hashTag(tag, attrs, isVoid);\r\n        if (this._signatureToName[signature]) {\r\n            return this._signatureToName[signature];\r\n        }\r\n        var /** @type {?} */ upperTag = tag.toUpperCase();\r\n        var /** @type {?} */ baseName = TAG_TO_PLACEHOLDER_NAMES[upperTag] || \"TAG_\" + upperTag;\r\n        var /** @type {?} */ name = this._generateUniqueName(isVoid ? baseName : \"START_\" + baseName);\r\n        this._signatureToName[signature] = name;\r\n        return name;\r\n    };\r\n    /**\r\n     * @param {?} tag\r\n     * @return {?}\r\n     */\r\n    PlaceholderRegistry.prototype.getCloseTagPlaceholderName = function (tag) {\r\n        var /** @type {?} */ signature = this._hashClosingTag(tag);\r\n        if (this._signatureToName[signature]) {\r\n            return this._signatureToName[signature];\r\n        }\r\n        var /** @type {?} */ upperTag = tag.toUpperCase();\r\n        var /** @type {?} */ baseName = TAG_TO_PLACEHOLDER_NAMES[upperTag] || \"TAG_\" + upperTag;\r\n        var /** @type {?} */ name = this._generateUniqueName(\"CLOSE_\" + baseName);\r\n        this._signatureToName[signature] = name;\r\n        return name;\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} content\r\n     * @return {?}\r\n     */\r\n    PlaceholderRegistry.prototype.getPlaceholderName = function (name, content) {\r\n        var /** @type {?} */ upperName = name.toUpperCase();\r\n        var /** @type {?} */ signature = \"PH: \" + upperName + \"=\" + content;\r\n        if (this._signatureToName[signature]) {\r\n            return this._signatureToName[signature];\r\n        }\r\n        var /** @type {?} */ uniqueName = this._generateUniqueName(upperName);\r\n        this._signatureToName[signature] = uniqueName;\r\n        return uniqueName;\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    PlaceholderRegistry.prototype.getUniquePlaceholder = function (name) {\r\n        return this._generateUniqueName(name.toUpperCase());\r\n    };\r\n    /**\r\n     * @param {?} tag\r\n     * @param {?} attrs\r\n     * @param {?} isVoid\r\n     * @return {?}\r\n     */\r\n    PlaceholderRegistry.prototype._hashTag = function (tag, attrs, isVoid) {\r\n        var /** @type {?} */ start = \"<\" + tag;\r\n        var /** @type {?} */ strAttrs = Object.keys(attrs).sort().map(function (name) { return \" \" + name + \"=\" + attrs[name]; }).join('');\r\n        var /** @type {?} */ end = isVoid ? '/>' : \"></\" + tag + \">\";\r\n        return start + strAttrs + end;\r\n    };\r\n    /**\r\n     * @param {?} tag\r\n     * @return {?}\r\n     */\r\n    PlaceholderRegistry.prototype._hashClosingTag = function (tag) { return this._hashTag(\"/\" + tag, {}, false); };\r\n    /**\r\n     * @param {?} base\r\n     * @return {?}\r\n     */\r\n    PlaceholderRegistry.prototype._generateUniqueName = function (base) {\r\n        var /** @type {?} */ seen = this._placeHolderNameCounts.hasOwnProperty(base);\r\n        if (!seen) {\r\n            this._placeHolderNameCounts[base] = 1;\r\n            return base;\r\n        }\r\n        var /** @type {?} */ id = this._placeHolderNameCounts[base];\r\n        this._placeHolderNameCounts[base] = id + 1;\r\n        return base + \"_\" + id;\r\n    };\r\n    return PlaceholderRegistry;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _expParser = new Parser(new Lexer());\r\n/**\r\n * Returns a function converting html nodes to an i18n Message given an interpolationConfig\r\n * @param {?} interpolationConfig\r\n * @return {?}\r\n */\r\nfunction createI18nMessageFactory(interpolationConfig) {\r\n    var /** @type {?} */ visitor = new _I18nVisitor(_expParser, interpolationConfig);\r\n    return function (nodes, meaning, description, id) { return visitor.toI18nMessage(nodes, meaning, description, id); };\r\n}\r\nvar _I18nVisitor = (function () {\r\n    /**\r\n     * @param {?} _expressionParser\r\n     * @param {?} _interpolationConfig\r\n     */\r\n    function _I18nVisitor(_expressionParser, _interpolationConfig) {\r\n        this._expressionParser = _expressionParser;\r\n        this._interpolationConfig = _interpolationConfig;\r\n    }\r\n    /**\r\n     * @param {?} nodes\r\n     * @param {?} meaning\r\n     * @param {?} description\r\n     * @param {?} id\r\n     * @return {?}\r\n     */\r\n    _I18nVisitor.prototype.toI18nMessage = function (nodes, meaning, description, id) {\r\n        this._isIcu = nodes.length == 1 && nodes[0] instanceof Expansion;\r\n        this._icuDepth = 0;\r\n        this._placeholderRegistry = new PlaceholderRegistry();\r\n        this._placeholderToContent = {};\r\n        this._placeholderToMessage = {};\r\n        var /** @type {?} */ i18nodes = visitAll(this, nodes, {});\r\n        return new Message(i18nodes, this._placeholderToContent, this._placeholderToMessage, meaning, description, id);\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _I18nVisitor.prototype.visitElement = function (el, context) {\r\n        var /** @type {?} */ children = visitAll(this, el.children);\r\n        var /** @type {?} */ attrs = {};\r\n        el.attrs.forEach(function (attr) {\r\n            // Do not visit the attributes, translatable ones are top-level ASTs\r\n            attrs[attr.name] = attr.value;\r\n        });\r\n        var /** @type {?} */ isVoid = getHtmlTagDefinition(el.name).isVoid;\r\n        var /** @type {?} */ startPhName = this._placeholderRegistry.getStartTagPlaceholderName(el.name, attrs, isVoid);\r\n        this._placeholderToContent[startPhName] = ((el.sourceSpan)).toString();\r\n        var /** @type {?} */ closePhName = '';\r\n        if (!isVoid) {\r\n            closePhName = this._placeholderRegistry.getCloseTagPlaceholderName(el.name);\r\n            this._placeholderToContent[closePhName] = \"</\" + el.name + \">\";\r\n        }\r\n        return new TagPlaceholder(el.name, attrs, startPhName, closePhName, children, isVoid, /** @type {?} */ ((el.sourceSpan)));\r\n    };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _I18nVisitor.prototype.visitAttribute = function (attribute, context) {\r\n        return this._visitTextWithInterpolation(attribute.value, attribute.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _I18nVisitor.prototype.visitText = function (text, context) {\r\n        return this._visitTextWithInterpolation(text.value, /** @type {?} */ ((text.sourceSpan)));\r\n    };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _I18nVisitor.prototype.visitComment = function (comment, context) { return null; };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _I18nVisitor.prototype.visitExpansion = function (icu, context) {\r\n        var _this = this;\r\n        this._icuDepth++;\r\n        var /** @type {?} */ i18nIcuCases = {};\r\n        var /** @type {?} */ i18nIcu = new Icu(icu.switchValue, icu.type, i18nIcuCases, icu.sourceSpan);\r\n        icu.cases.forEach(function (caze) {\r\n            i18nIcuCases[caze.value] = new Container(caze.expression.map(function (node) { return node.visit(_this, {}); }), caze.expSourceSpan);\r\n        });\r\n        this._icuDepth--;\r\n        if (this._isIcu || this._icuDepth > 0) {\r\n            // Returns an ICU node when:\r\n            // - the message (vs a part of the message) is an ICU message, or\r\n            // - the ICU message is nested.\r\n            var /** @type {?} */ expPh = this._placeholderRegistry.getUniquePlaceholder(\"VAR_\" + icu.type);\r\n            i18nIcu.expressionPlaceholder = expPh;\r\n            this._placeholderToContent[expPh] = icu.switchValue;\r\n            return i18nIcu;\r\n        }\r\n        // Else returns a placeholder\r\n        // ICU placeholders should not be replaced with their original content but with the their\r\n        // translations. We need to create a new visitor (they are not re-entrant) to compute the\r\n        // message id.\r\n        // TODO(vicb): add a html.Node -> i18n.Message cache to avoid having to re-create the msg\r\n        var /** @type {?} */ phName = this._placeholderRegistry.getPlaceholderName('ICU', icu.sourceSpan.toString());\r\n        var /** @type {?} */ visitor = new _I18nVisitor(this._expressionParser, this._interpolationConfig);\r\n        this._placeholderToMessage[phName] = visitor.toI18nMessage([icu], '', '', '');\r\n        return new IcuPlaceholder(i18nIcu, phName, icu.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} icuCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _I18nVisitor.prototype.visitExpansionCase = function (icuCase, context) {\r\n        throw new Error('Unreachable code');\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    _I18nVisitor.prototype._visitTextWithInterpolation = function (text, sourceSpan) {\r\n        var /** @type {?} */ splitInterpolation = this._expressionParser.splitInterpolation(text, sourceSpan.start.toString(), this._interpolationConfig);\r\n        if (!splitInterpolation) {\r\n            // No expression, return a single text\r\n            return new Text$1(text, sourceSpan);\r\n        }\r\n        // Return a group of text + expressions\r\n        var /** @type {?} */ nodes = [];\r\n        var /** @type {?} */ container = new Container(nodes, sourceSpan);\r\n        var _a = this._interpolationConfig, sDelimiter = _a.start, eDelimiter = _a.end;\r\n        for (var /** @type {?} */ i = 0; i < splitInterpolation.strings.length - 1; i++) {\r\n            var /** @type {?} */ expression = splitInterpolation.expressions[i];\r\n            var /** @type {?} */ baseName = _extractPlaceholderName(expression) || 'INTERPOLATION';\r\n            var /** @type {?} */ phName = this._placeholderRegistry.getPlaceholderName(baseName, expression);\r\n            if (splitInterpolation.strings[i].length) {\r\n                // No need to add empty strings\r\n                nodes.push(new Text$1(splitInterpolation.strings[i], sourceSpan));\r\n            }\r\n            nodes.push(new Placeholder(expression, phName, sourceSpan));\r\n            this._placeholderToContent[phName] = sDelimiter + expression + eDelimiter;\r\n        }\r\n        // The last index contains no expression\r\n        var /** @type {?} */ lastStringIdx = splitInterpolation.strings.length - 1;\r\n        if (splitInterpolation.strings[lastStringIdx].length) {\r\n            nodes.push(new Text$1(splitInterpolation.strings[lastStringIdx], sourceSpan));\r\n        }\r\n        return container;\r\n    };\r\n    return _I18nVisitor;\r\n}());\r\nvar _CUSTOM_PH_EXP = /\\/\\/[\\s\\S]*i18n[\\s\\S]*\\([\\s\\S]*ph[\\s\\S]*=[\\s\\S]*(\"|')([\\s\\S]*?)\\1[\\s\\S]*\\)/g;\r\n/**\r\n * @param {?} input\r\n * @return {?}\r\n */\r\nfunction _extractPlaceholderName(input) {\r\n    return input.split(_CUSTOM_PH_EXP)[2];\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * An i18n error.\r\n */\r\nvar I18nError = (function (_super) {\r\n    __extends(I18nError, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} msg\r\n     */\r\n    function I18nError(span, msg) {\r\n        return _super.call(this, span, msg) || this;\r\n    }\r\n    return I18nError;\r\n}(ParseError));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _I18N_ATTR = 'i18n';\r\nvar _I18N_ATTR_PREFIX = 'i18n-';\r\nvar _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;\r\nvar MEANING_SEPARATOR = '|';\r\nvar ID_SEPARATOR = '@@';\r\n/**\r\n * Extract translatable messages from an html AST\r\n * @param {?} nodes\r\n * @param {?} interpolationConfig\r\n * @param {?} implicitTags\r\n * @param {?} implicitAttrs\r\n * @return {?}\r\n */\r\nfunction extractMessages(nodes, interpolationConfig, implicitTags, implicitAttrs) {\r\n    var /** @type {?} */ visitor = new _Visitor(implicitTags, implicitAttrs);\r\n    return visitor.extract(nodes, interpolationConfig);\r\n}\r\n/**\r\n * @param {?} nodes\r\n * @param {?} translations\r\n * @param {?} interpolationConfig\r\n * @param {?} implicitTags\r\n * @param {?} implicitAttrs\r\n * @return {?}\r\n */\r\nfunction mergeTranslations(nodes, translations, interpolationConfig, implicitTags, implicitAttrs) {\r\n    var /** @type {?} */ visitor = new _Visitor(implicitTags, implicitAttrs);\r\n    return visitor.merge(nodes, translations, interpolationConfig);\r\n}\r\nvar ExtractionResult = (function () {\r\n    /**\r\n     * @param {?} messages\r\n     * @param {?} errors\r\n     */\r\n    function ExtractionResult(messages, errors) {\r\n        this.messages = messages;\r\n        this.errors = errors;\r\n    }\r\n    return ExtractionResult;\r\n}());\r\nvar _VisitorMode = {};\r\n_VisitorMode.Extract = 0;\r\n_VisitorMode.Merge = 1;\r\n_VisitorMode[_VisitorMode.Extract] = \"Extract\";\r\n_VisitorMode[_VisitorMode.Merge] = \"Merge\";\r\n/**\r\n * This Visitor is used:\r\n * 1. to extract all the translatable strings from an html AST (see `extract()`),\r\n * 2. to replace the translatable strings with the actual translations (see `merge()`)\r\n *\r\n * \\@internal\r\n */\r\nvar _Visitor = (function () {\r\n    /**\r\n     * @param {?} _implicitTags\r\n     * @param {?} _implicitAttrs\r\n     */\r\n    function _Visitor(_implicitTags, _implicitAttrs) {\r\n        this._implicitTags = _implicitTags;\r\n        this._implicitAttrs = _implicitAttrs;\r\n    }\r\n    /**\r\n     * Extracts the messages from the tree\r\n     * @param {?} nodes\r\n     * @param {?} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype.extract = function (nodes, interpolationConfig) {\r\n        var _this = this;\r\n        this._init(_VisitorMode.Extract, interpolationConfig);\r\n        nodes.forEach(function (node) { return node.visit(_this, null); });\r\n        if (this._inI18nBlock) {\r\n            this._reportError(nodes[nodes.length - 1], 'Unclosed block');\r\n        }\r\n        return new ExtractionResult(this._messages, this._errors);\r\n    };\r\n    /**\r\n     * Returns a tree where all translatable nodes are translated\r\n     * @param {?} nodes\r\n     * @param {?} translations\r\n     * @param {?} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype.merge = function (nodes, translations, interpolationConfig) {\r\n        this._init(_VisitorMode.Merge, interpolationConfig);\r\n        this._translations = translations;\r\n        // Construct a single fake root element\r\n        var /** @type {?} */ wrapper = new Element('wrapper', [], nodes, /** @type {?} */ ((undefined)), undefined, undefined);\r\n        var /** @type {?} */ translatedNode = wrapper.visit(this, null);\r\n        if (this._inI18nBlock) {\r\n            this._reportError(nodes[nodes.length - 1], 'Unclosed block');\r\n        }\r\n        return new ParseTreeResult(translatedNode.children, this._errors);\r\n    };\r\n    /**\r\n     * @param {?} icuCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype.visitExpansionCase = function (icuCase, context) {\r\n        // Parse cases for translatable html attributes\r\n        var /** @type {?} */ expression = visitAll(this, icuCase.expression, context);\r\n        if (this._mode === _VisitorMode.Merge) {\r\n            return new ExpansionCase(icuCase.value, expression, icuCase.sourceSpan, icuCase.valueSourceSpan, icuCase.expSourceSpan);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype.visitExpansion = function (icu, context) {\r\n        this._mayBeAddBlockChildren(icu);\r\n        var /** @type {?} */ wasInIcu = this._inIcu;\r\n        if (!this._inIcu) {\r\n            // nested ICU messages should not be extracted but top-level translated as a whole\r\n            if (this._isInTranslatableSection) {\r\n                this._addMessage([icu]);\r\n            }\r\n            this._inIcu = true;\r\n        }\r\n        var /** @type {?} */ cases = visitAll(this, icu.cases, context);\r\n        if (this._mode === _VisitorMode.Merge) {\r\n            icu = new Expansion(icu.switchValue, icu.type, cases, icu.sourceSpan, icu.switchValueSourceSpan);\r\n        }\r\n        this._inIcu = wasInIcu;\r\n        return icu;\r\n    };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype.visitComment = function (comment, context) {\r\n        var /** @type {?} */ isOpening = _isOpeningComment(comment);\r\n        if (isOpening && this._isInTranslatableSection) {\r\n            this._reportError(comment, 'Could not start a block inside a translatable section');\r\n            return;\r\n        }\r\n        var /** @type {?} */ isClosing = _isClosingComment(comment);\r\n        if (isClosing && !this._inI18nBlock) {\r\n            this._reportError(comment, 'Trying to close an unopened block');\r\n            return;\r\n        }\r\n        if (!this._inI18nNode && !this._inIcu) {\r\n            if (!this._inI18nBlock) {\r\n                if (isOpening) {\r\n                    this._inI18nBlock = true;\r\n                    this._blockStartDepth = this._depth;\r\n                    this._blockChildren = [];\r\n                    this._blockMeaningAndDesc = ((comment.value)).replace(_I18N_COMMENT_PREFIX_REGEXP, '').trim();\r\n                    this._openTranslatableSection(comment);\r\n                }\r\n            }\r\n            else {\r\n                if (isClosing) {\r\n                    if (this._depth == this._blockStartDepth) {\r\n                        this._closeTranslatableSection(comment, this._blockChildren);\r\n                        this._inI18nBlock = false;\r\n                        var /** @type {?} */ message = ((this._addMessage(this._blockChildren, this._blockMeaningAndDesc)));\r\n                        // merge attributes in sections\r\n                        var /** @type {?} */ nodes = this._translateMessage(comment, message);\r\n                        return visitAll(this, nodes);\r\n                    }\r\n                    else {\r\n                        this._reportError(comment, 'I18N blocks should not cross element boundaries');\r\n                        return;\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype.visitText = function (text, context) {\r\n        if (this._isInTranslatableSection) {\r\n            this._mayBeAddBlockChildren(text);\r\n        }\r\n        return text;\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype.visitElement = function (el, context) {\r\n        var _this = this;\r\n        this._mayBeAddBlockChildren(el);\r\n        this._depth++;\r\n        var /** @type {?} */ wasInI18nNode = this._inI18nNode;\r\n        var /** @type {?} */ wasInImplicitNode = this._inImplicitNode;\r\n        var /** @type {?} */ childNodes = [];\r\n        var /** @type {?} */ translatedChildNodes = ((undefined));\r\n        // Extract:\r\n        // - top level nodes with the (implicit) \"i18n\" attribute if not already in a section\r\n        // - ICU messages\r\n        var /** @type {?} */ i18nAttr = _getI18nAttr(el);\r\n        var /** @type {?} */ i18nMeta = i18nAttr ? i18nAttr.value : '';\r\n        var /** @type {?} */ isImplicit = this._implicitTags.some(function (tag) { return el.name === tag; }) && !this._inIcu &&\r\n            !this._isInTranslatableSection;\r\n        var /** @type {?} */ isTopLevelImplicit = !wasInImplicitNode && isImplicit;\r\n        this._inImplicitNode = wasInImplicitNode || isImplicit;\r\n        if (!this._isInTranslatableSection && !this._inIcu) {\r\n            if (i18nAttr || isTopLevelImplicit) {\r\n                this._inI18nNode = true;\r\n                var /** @type {?} */ message = ((this._addMessage(el.children, i18nMeta)));\r\n                translatedChildNodes = this._translateMessage(el, message);\r\n            }\r\n            if (this._mode == _VisitorMode.Extract) {\r\n                var /** @type {?} */ isTranslatable = i18nAttr || isTopLevelImplicit;\r\n                if (isTranslatable)\r\n                    this._openTranslatableSection(el);\r\n                visitAll(this, el.children);\r\n                if (isTranslatable)\r\n                    this._closeTranslatableSection(el, el.children);\r\n            }\r\n        }\r\n        else {\r\n            if (i18nAttr || isTopLevelImplicit) {\r\n                this._reportError(el, 'Could not mark an element as translatable inside a translatable section');\r\n            }\r\n            if (this._mode == _VisitorMode.Extract) {\r\n                // Descend into child nodes for extraction\r\n                visitAll(this, el.children);\r\n            }\r\n        }\r\n        if (this._mode === _VisitorMode.Merge) {\r\n            var /** @type {?} */ visitNodes = translatedChildNodes || el.children;\r\n            visitNodes.forEach(function (child) {\r\n                var /** @type {?} */ visited = child.visit(_this, context);\r\n                if (visited && !_this._isInTranslatableSection) {\r\n                    // Do not add the children from translatable sections (= i18n blocks here)\r\n                    // They will be added later in this loop when the block closes (i.e. on `<!-- /i18n -->`)\r\n                    childNodes = childNodes.concat(visited);\r\n                }\r\n            });\r\n        }\r\n        this._visitAttributesOf(el);\r\n        this._depth--;\r\n        this._inI18nNode = wasInI18nNode;\r\n        this._inImplicitNode = wasInImplicitNode;\r\n        if (this._mode === _VisitorMode.Merge) {\r\n            var /** @type {?} */ translatedAttrs = this._translateAttributes(el);\r\n            return new Element(el.name, translatedAttrs, childNodes, el.sourceSpan, el.startSourceSpan, el.endSourceSpan);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype.visitAttribute = function (attribute, context) {\r\n        throw new Error('unreachable code');\r\n    };\r\n    /**\r\n     * @param {?} mode\r\n     * @param {?} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype._init = function (mode, interpolationConfig) {\r\n        this._mode = mode;\r\n        this._inI18nBlock = false;\r\n        this._inI18nNode = false;\r\n        this._depth = 0;\r\n        this._inIcu = false;\r\n        this._msgCountAtSectionStart = undefined;\r\n        this._errors = [];\r\n        this._messages = [];\r\n        this._inImplicitNode = false;\r\n        this._createI18nMessage = createI18nMessageFactory(interpolationConfig);\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype._visitAttributesOf = function (el) {\r\n        var _this = this;\r\n        var /** @type {?} */ explicitAttrNameToValue = {};\r\n        var /** @type {?} */ implicitAttrNames = this._implicitAttrs[el.name] || [];\r\n        el.attrs.filter(function (attr) { return attr.name.startsWith(_I18N_ATTR_PREFIX); })\r\n            .forEach(function (attr) { return explicitAttrNameToValue[attr.name.slice(_I18N_ATTR_PREFIX.length)] =\r\n            attr.value; });\r\n        el.attrs.forEach(function (attr) {\r\n            if (attr.name in explicitAttrNameToValue) {\r\n                _this._addMessage([attr], explicitAttrNameToValue[attr.name]);\r\n            }\r\n            else if (implicitAttrNames.some(function (name) { return attr.name === name; })) {\r\n                _this._addMessage([attr]);\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?=} msgMeta\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype._addMessage = function (ast, msgMeta) {\r\n        if (ast.length == 0 ||\r\n            ast.length == 1 && ast[0] instanceof Attribute$1 && !((ast[0])).value) {\r\n            // Do not create empty messages\r\n            return null;\r\n        }\r\n        var _a = _parseMessageMeta(msgMeta), meaning = _a.meaning, description = _a.description, id = _a.id;\r\n        var /** @type {?} */ message = this._createI18nMessage(ast, meaning, description, id);\r\n        this._messages.push(message);\r\n        return message;\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype._translateMessage = function (el, message) {\r\n        if (message && this._mode === _VisitorMode.Merge) {\r\n            var /** @type {?} */ nodes = this._translations.get(message);\r\n            if (nodes) {\r\n                return nodes;\r\n            }\r\n            this._reportError(el, \"Translation unavailable for message id=\\\"\" + this._translations.digest(message) + \"\\\"\");\r\n        }\r\n        return [];\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype._translateAttributes = function (el) {\r\n        var _this = this;\r\n        var /** @type {?} */ attributes = el.attrs;\r\n        var /** @type {?} */ i18nParsedMessageMeta = {};\r\n        attributes.forEach(function (attr) {\r\n            if (attr.name.startsWith(_I18N_ATTR_PREFIX)) {\r\n                i18nParsedMessageMeta[attr.name.slice(_I18N_ATTR_PREFIX.length)] =\r\n                    _parseMessageMeta(attr.value);\r\n            }\r\n        });\r\n        var /** @type {?} */ translatedAttributes = [];\r\n        attributes.forEach(function (attr) {\r\n            if (attr.name === _I18N_ATTR || attr.name.startsWith(_I18N_ATTR_PREFIX)) {\r\n                // strip i18n specific attributes\r\n                return;\r\n            }\r\n            if (attr.value && attr.value != '' && i18nParsedMessageMeta.hasOwnProperty(attr.name)) {\r\n                var _a = i18nParsedMessageMeta[attr.name], meaning = _a.meaning, description = _a.description, id = _a.id;\r\n                var /** @type {?} */ message = _this._createI18nMessage([attr], meaning, description, id);\r\n                var /** @type {?} */ nodes = _this._translations.get(message);\r\n                if (nodes) {\r\n                    if (nodes.length == 0) {\r\n                        translatedAttributes.push(new Attribute$1(attr.name, '', attr.sourceSpan));\r\n                    }\r\n                    else if (nodes[0] instanceof Text) {\r\n                        var /** @type {?} */ value = ((nodes[0])).value;\r\n                        translatedAttributes.push(new Attribute$1(attr.name, value, attr.sourceSpan));\r\n                    }\r\n                    else {\r\n                        _this._reportError(el, \"Unexpected translation for attribute \\\"\" + attr.name + \"\\\" (id=\\\"\" + (id || _this._translations.digest(message)) + \"\\\")\");\r\n                    }\r\n                }\r\n                else {\r\n                    _this._reportError(el, \"Translation unavailable for attribute \\\"\" + attr.name + \"\\\" (id=\\\"\" + (id || _this._translations.digest(message)) + \"\\\")\");\r\n                }\r\n            }\r\n            else {\r\n                translatedAttributes.push(attr);\r\n            }\r\n        });\r\n        return translatedAttributes;\r\n    };\r\n    /**\r\n     * Add the node as a child of the block when:\r\n     * - we are in a block,\r\n     * - we are not inside a ICU message (those are handled separately),\r\n     * - the node is a \"direct child\" of the block\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype._mayBeAddBlockChildren = function (node) {\r\n        if (this._inI18nBlock && !this._inIcu && this._depth == this._blockStartDepth) {\r\n            this._blockChildren.push(node);\r\n        }\r\n    };\r\n    /**\r\n     * Marks the start of a section, see `_closeTranslatableSection`\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype._openTranslatableSection = function (node) {\r\n        if (this._isInTranslatableSection) {\r\n            this._reportError(node, 'Unexpected section start');\r\n        }\r\n        else {\r\n            this._msgCountAtSectionStart = this._messages.length;\r\n        }\r\n    };\r\n    Object.defineProperty(_Visitor.prototype, \"_isInTranslatableSection\", {\r\n        /**\r\n         * A translatable section could be:\r\n         * - the content of translatable element,\r\n         * - nodes between `<!-- i18n -->` and `<!-- /i18n -->` comments\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this._msgCountAtSectionStart !== void 0;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * Terminates a section.\r\n     *\r\n     * If a section has only one significant children (comments not significant) then we should not\r\n     * keep the message from this children:\r\n     *\r\n     * `<p i18n=\"meaning|description\">{ICU message}</p>` would produce two messages:\r\n     * - one for the <p> content with meaning and description,\r\n     * - another one for the ICU message.\r\n     *\r\n     * In this case the last message is discarded as it contains less information (the AST is\r\n     * otherwise identical).\r\n     *\r\n     * Note that we should still keep messages extracted from attributes inside the section (ie in the\r\n     * ICU message here)\r\n     * @param {?} node\r\n     * @param {?} directChildren\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype._closeTranslatableSection = function (node, directChildren) {\r\n        if (!this._isInTranslatableSection) {\r\n            this._reportError(node, 'Unexpected section end');\r\n            return;\r\n        }\r\n        var /** @type {?} */ startIndex = this._msgCountAtSectionStart;\r\n        var /** @type {?} */ significantChildren = directChildren.reduce(function (count, node) { return count + (node instanceof Comment ? 0 : 1); }, 0);\r\n        if (significantChildren == 1) {\r\n            for (var /** @type {?} */ i = this._messages.length - 1; i >= startIndex; i--) {\r\n                var /** @type {?} */ ast = this._messages[i].nodes;\r\n                if (!(ast.length == 1 && ast[0] instanceof Text$1)) {\r\n                    this._messages.splice(i, 1);\r\n                    break;\r\n                }\r\n            }\r\n        }\r\n        this._msgCountAtSectionStart = undefined;\r\n    };\r\n    /**\r\n     * @param {?} node\r\n     * @param {?} msg\r\n     * @return {?}\r\n     */\r\n    _Visitor.prototype._reportError = function (node, msg) {\r\n        this._errors.push(new I18nError(/** @type {?} */ ((node.sourceSpan)), msg));\r\n    };\r\n    return _Visitor;\r\n}());\r\n/**\r\n * @param {?} n\r\n * @return {?}\r\n */\r\nfunction _isOpeningComment(n) {\r\n    return !!(n instanceof Comment && n.value && n.value.startsWith('i18n'));\r\n}\r\n/**\r\n * @param {?} n\r\n * @return {?}\r\n */\r\nfunction _isClosingComment(n) {\r\n    return !!(n instanceof Comment && n.value && n.value === '/i18n');\r\n}\r\n/**\r\n * @param {?} p\r\n * @return {?}\r\n */\r\nfunction _getI18nAttr(p) {\r\n    return p.attrs.find(function (attr) { return attr.name === _I18N_ATTR; }) || null;\r\n}\r\n/**\r\n * @param {?=} i18n\r\n * @return {?}\r\n */\r\nfunction _parseMessageMeta(i18n) {\r\n    if (!i18n)\r\n        return { meaning: '', description: '', id: '' };\r\n    var /** @type {?} */ idIndex = i18n.indexOf(ID_SEPARATOR);\r\n    var /** @type {?} */ descIndex = i18n.indexOf(MEANING_SEPARATOR);\r\n    var _a = (idIndex > -1) ? [i18n.slice(0, idIndex), i18n.slice(idIndex + 2)] : [i18n, ''], meaningAndDesc = _a[0], id = _a[1];\r\n    var _b = (descIndex > -1) ?\r\n        [meaningAndDesc.slice(0, descIndex), meaningAndDesc.slice(descIndex + 1)] :\r\n        ['', meaningAndDesc], meaning = _b[0], description = _b[1];\r\n    return { meaning: meaning, description: description, id: id };\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar XmlTagDefinition = (function () {\r\n    function XmlTagDefinition() {\r\n        this.closedByParent = false;\r\n        this.contentType = TagContentType.PARSABLE_DATA;\r\n        this.isVoid = false;\r\n        this.ignoreFirstLf = false;\r\n        this.canSelfClose = true;\r\n    }\r\n    /**\r\n     * @param {?} currentParent\r\n     * @return {?}\r\n     */\r\n    XmlTagDefinition.prototype.requireExtraParent = function (currentParent) { return false; };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    XmlTagDefinition.prototype.isClosedByChild = function (name) { return false; };\r\n    return XmlTagDefinition;\r\n}());\r\nvar _TAG_DEFINITION = new XmlTagDefinition();\r\n/**\r\n * @param {?} tagName\r\n * @return {?}\r\n */\r\nfunction getXmlTagDefinition(tagName) {\r\n    return _TAG_DEFINITION;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar XmlParser = (function (_super) {\r\n    __extends(XmlParser, _super);\r\n    function XmlParser() {\r\n        return _super.call(this, getXmlTagDefinition) || this;\r\n    }\r\n    /**\r\n     * @param {?} source\r\n     * @param {?} url\r\n     * @param {?=} parseExpansionForms\r\n     * @return {?}\r\n     */\r\n    XmlParser.prototype.parse = function (source, url, parseExpansionForms) {\r\n        if (parseExpansionForms === void 0) { parseExpansionForms = false; }\r\n        return _super.prototype.parse.call(this, source, url, parseExpansionForms);\r\n    };\r\n    return XmlParser;\r\n}(Parser$1));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} message\r\n * @return {?}\r\n */\r\nfunction digest(message) {\r\n    return message.id || sha1(serializeNodes(message.nodes).join('') + (\"[\" + message.meaning + \"]\"));\r\n}\r\n/**\r\n * @param {?} message\r\n * @return {?}\r\n */\r\nfunction decimalDigest(message) {\r\n    if (message.id) {\r\n        return message.id;\r\n    }\r\n    var /** @type {?} */ visitor = new _SerializerIgnoreIcuExpVisitor();\r\n    var /** @type {?} */ parts = message.nodes.map(function (a) { return a.visit(visitor, null); });\r\n    return computeMsgId(parts.join(''), message.meaning);\r\n}\r\n/**\r\n * Serialize the i18n ast to something xml-like in order to generate an UID.\r\n *\r\n * The visitor is also used in the i18n parser tests\r\n *\r\n * \\@internal\r\n */\r\nvar _SerializerVisitor = (function () {\r\n    function _SerializerVisitor() {\r\n    }\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _SerializerVisitor.prototype.visitText = function (text, context) { return text.value; };\r\n    /**\r\n     * @param {?} container\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _SerializerVisitor.prototype.visitContainer = function (container, context) {\r\n        var _this = this;\r\n        return \"[\" + container.children.map(function (child) { return child.visit(_this); }).join(', ') + \"]\";\r\n    };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _SerializerVisitor.prototype.visitIcu = function (icu, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ strCases = Object.keys(icu.cases).map(function (k) { return k + \" {\" + icu.cases[k].visit(_this) + \"}\"; });\r\n        return \"{\" + icu.expression + \", \" + icu.type + \", \" + strCases.join(', ') + \"}\";\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _SerializerVisitor.prototype.visitTagPlaceholder = function (ph, context) {\r\n        var _this = this;\r\n        return ph.isVoid ?\r\n            \"<ph tag name=\\\"\" + ph.startName + \"\\\"/>\" :\r\n            \"<ph tag name=\\\"\" + ph.startName + \"\\\">\" + ph.children.map(function (child) { return child.visit(_this); }).join(', ') + \"</ph name=\\\"\" + ph.closeName + \"\\\">\";\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _SerializerVisitor.prototype.visitPlaceholder = function (ph, context) {\r\n        return ph.value ? \"<ph name=\\\"\" + ph.name + \"\\\">\" + ph.value + \"</ph>\" : \"<ph name=\\\"\" + ph.name + \"\\\"/>\";\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _SerializerVisitor.prototype.visitIcuPlaceholder = function (ph, context) {\r\n        return \"<ph icu name=\\\"\" + ph.name + \"\\\">\" + ph.value.visit(this) + \"</ph>\";\r\n    };\r\n    return _SerializerVisitor;\r\n}());\r\nvar serializerVisitor = new _SerializerVisitor();\r\n/**\r\n * @param {?} nodes\r\n * @return {?}\r\n */\r\nfunction serializeNodes(nodes) {\r\n    return nodes.map(function (a) { return a.visit(serializerVisitor, null); });\r\n}\r\n/**\r\n * Serialize the i18n ast to something xml-like in order to generate an UID.\r\n *\r\n * Ignore the ICU expressions so that message IDs stays identical if only the expression changes.\r\n *\r\n * \\@internal\r\n */\r\nvar _SerializerIgnoreIcuExpVisitor = (function (_super) {\r\n    __extends(_SerializerIgnoreIcuExpVisitor, _super);\r\n    function _SerializerIgnoreIcuExpVisitor() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _SerializerIgnoreIcuExpVisitor.prototype.visitIcu = function (icu, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ strCases = Object.keys(icu.cases).map(function (k) { return k + \" {\" + icu.cases[k].visit(_this) + \"}\"; });\r\n        // Do not take the expression into account\r\n        return \"{\" + icu.type + \", \" + strCases.join(', ') + \"}\";\r\n    };\r\n    return _SerializerIgnoreIcuExpVisitor;\r\n}(_SerializerVisitor));\r\n/**\r\n * Compute the SHA1 of the given string\r\n *\r\n * see http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf\r\n *\r\n * WARNING: this function has not been designed not tested with security in mind.\r\n *          DO NOT USE IT IN A SECURITY SENSITIVE CONTEXT.\r\n * @param {?} str\r\n * @return {?}\r\n */\r\nfunction sha1(str) {\r\n    var /** @type {?} */ utf8 = utf8Encode(str);\r\n    var /** @type {?} */ words32 = stringToWords32(utf8, Endian.Big);\r\n    var /** @type {?} */ len = utf8.length * 8;\r\n    var /** @type {?} */ w = new Array(80);\r\n    var _a = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0], a = _a[0], b = _a[1], c = _a[2], d = _a[3], e = _a[4];\r\n    words32[len >> 5] |= 0x80 << (24 - len % 32);\r\n    words32[((len + 64 >> 9) << 4) + 15] = len;\r\n    for (var /** @type {?} */ i = 0; i < words32.length; i += 16) {\r\n        var _b = [a, b, c, d, e], h0 = _b[0], h1 = _b[1], h2 = _b[2], h3 = _b[3], h4 = _b[4];\r\n        for (var /** @type {?} */ j = 0; j < 80; j++) {\r\n            if (j < 16) {\r\n                w[j] = words32[i + j];\r\n            }\r\n            else {\r\n                w[j] = rol32(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1);\r\n            }\r\n            var _c = fk(j, b, c, d), f = _c[0], k = _c[1];\r\n            var /** @type {?} */ temp = [rol32(a, 5), f, e, k, w[j]].reduce(add32);\r\n            _d = [d, c, rol32(b, 30), a, temp], e = _d[0], d = _d[1], c = _d[2], b = _d[3], a = _d[4];\r\n        }\r\n        _e = [add32(a, h0), add32(b, h1), add32(c, h2), add32(d, h3), add32(e, h4)], a = _e[0], b = _e[1], c = _e[2], d = _e[3], e = _e[4];\r\n    }\r\n    return byteStringToHexString(words32ToByteString([a, b, c, d, e]));\r\n    var _d, _e;\r\n}\r\n/**\r\n * @param {?} index\r\n * @param {?} b\r\n * @param {?} c\r\n * @param {?} d\r\n * @return {?}\r\n */\r\nfunction fk(index, b, c, d) {\r\n    if (index < 20) {\r\n        return [(b & c) | (~b & d), 0x5a827999];\r\n    }\r\n    if (index < 40) {\r\n        return [b ^ c ^ d, 0x6ed9eba1];\r\n    }\r\n    if (index < 60) {\r\n        return [(b & c) | (b & d) | (c & d), 0x8f1bbcdc];\r\n    }\r\n    return [b ^ c ^ d, 0xca62c1d6];\r\n}\r\n/**\r\n * Compute the fingerprint of the given string\r\n *\r\n * The output is 64 bit number encoded as a decimal string\r\n *\r\n * based on:\r\n * https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/GoogleJsMessageIdGenerator.java\r\n * @param {?} str\r\n * @return {?}\r\n */\r\nfunction fingerprint(str) {\r\n    var /** @type {?} */ utf8 = utf8Encode(str);\r\n    var _a = [hash32(utf8, 0), hash32(utf8, 102072)], hi = _a[0], lo = _a[1];\r\n    if (hi == 0 && (lo == 0 || lo == 1)) {\r\n        hi = hi ^ 0x130f9bef;\r\n        lo = lo ^ -0x6b5f56d8;\r\n    }\r\n    return [hi, lo];\r\n}\r\n/**\r\n * @param {?} msg\r\n * @param {?} meaning\r\n * @return {?}\r\n */\r\nfunction computeMsgId(msg, meaning) {\r\n    var _a = fingerprint(msg), hi = _a[0], lo = _a[1];\r\n    if (meaning) {\r\n        var _b = fingerprint(meaning), him = _b[0], lom = _b[1];\r\n        _c = add64(rol64([hi, lo], 1), [him, lom]), hi = _c[0], lo = _c[1];\r\n    }\r\n    return byteStringToDecString(words32ToByteString([hi & 0x7fffffff, lo]));\r\n    var _c;\r\n}\r\n/**\r\n * @param {?} str\r\n * @param {?} c\r\n * @return {?}\r\n */\r\nfunction hash32(str, c) {\r\n    var _a = [0x9e3779b9, 0x9e3779b9], a = _a[0], b = _a[1];\r\n    var /** @type {?} */ i;\r\n    var /** @type {?} */ len = str.length;\r\n    for (i = 0; i + 12 <= len; i += 12) {\r\n        a = add32(a, wordAt(str, i, Endian.Little));\r\n        b = add32(b, wordAt(str, i + 4, Endian.Little));\r\n        c = add32(c, wordAt(str, i + 8, Endian.Little));\r\n        _b = mix([a, b, c]), a = _b[0], b = _b[1], c = _b[2];\r\n    }\r\n    a = add32(a, wordAt(str, i, Endian.Little));\r\n    b = add32(b, wordAt(str, i + 4, Endian.Little));\r\n    // the first byte of c is reserved for the length\r\n    c = add32(c, len);\r\n    c = add32(c, wordAt(str, i + 8, Endian.Little) << 8);\r\n    return mix([a, b, c])[2];\r\n    var _b;\r\n}\r\n/**\r\n * @param {?} __0\r\n * @return {?}\r\n */\r\nfunction mix(_a) {\r\n    var a = _a[0], b = _a[1], c = _a[2];\r\n    a = sub32(a, b);\r\n    a = sub32(a, c);\r\n    a ^= c >>> 13;\r\n    b = sub32(b, c);\r\n    b = sub32(b, a);\r\n    b ^= a << 8;\r\n    c = sub32(c, a);\r\n    c = sub32(c, b);\r\n    c ^= b >>> 13;\r\n    a = sub32(a, b);\r\n    a = sub32(a, c);\r\n    a ^= c >>> 12;\r\n    b = sub32(b, c);\r\n    b = sub32(b, a);\r\n    b ^= a << 16;\r\n    c = sub32(c, a);\r\n    c = sub32(c, b);\r\n    c ^= b >>> 5;\r\n    a = sub32(a, b);\r\n    a = sub32(a, c);\r\n    a ^= c >>> 3;\r\n    b = sub32(b, c);\r\n    b = sub32(b, a);\r\n    b ^= a << 10;\r\n    c = sub32(c, a);\r\n    c = sub32(c, b);\r\n    c ^= b >>> 15;\r\n    return [a, b, c];\r\n}\r\nvar Endian = {};\r\nEndian.Little = 0;\r\nEndian.Big = 1;\r\nEndian[Endian.Little] = \"Little\";\r\nEndian[Endian.Big] = \"Big\";\r\n/**\r\n * @param {?} a\r\n * @param {?} b\r\n * @return {?}\r\n */\r\nfunction add32(a, b) {\r\n    return add32to64(a, b)[1];\r\n}\r\n/**\r\n * @param {?} a\r\n * @param {?} b\r\n * @return {?}\r\n */\r\nfunction add32to64(a, b) {\r\n    var /** @type {?} */ low = (a & 0xffff) + (b & 0xffff);\r\n    var /** @type {?} */ high = (a >>> 16) + (b >>> 16) + (low >>> 16);\r\n    return [high >>> 16, (high << 16) | (low & 0xffff)];\r\n}\r\n/**\r\n * @param {?} __0\r\n * @param {?} __1\r\n * @return {?}\r\n */\r\nfunction add64(_a, _b) {\r\n    var ah = _a[0], al = _a[1];\r\n    var bh = _b[0], bl = _b[1];\r\n    var _c = add32to64(al, bl), carry = _c[0], l = _c[1];\r\n    var /** @type {?} */ h = add32(add32(ah, bh), carry);\r\n    return [h, l];\r\n}\r\n/**\r\n * @param {?} a\r\n * @param {?} b\r\n * @return {?}\r\n */\r\nfunction sub32(a, b) {\r\n    var /** @type {?} */ low = (a & 0xffff) - (b & 0xffff);\r\n    var /** @type {?} */ high = (a >> 16) - (b >> 16) + (low >> 16);\r\n    return (high << 16) | (low & 0xffff);\r\n}\r\n/**\r\n * @param {?} a\r\n * @param {?} count\r\n * @return {?}\r\n */\r\nfunction rol32(a, count) {\r\n    return (a << count) | (a >>> (32 - count));\r\n}\r\n/**\r\n * @param {?} __0\r\n * @param {?} count\r\n * @return {?}\r\n */\r\nfunction rol64(_a, count) {\r\n    var hi = _a[0], lo = _a[1];\r\n    var /** @type {?} */ h = (hi << count) | (lo >>> (32 - count));\r\n    var /** @type {?} */ l = (lo << count) | (hi >>> (32 - count));\r\n    return [h, l];\r\n}\r\n/**\r\n * @param {?} str\r\n * @param {?} endian\r\n * @return {?}\r\n */\r\nfunction stringToWords32(str, endian) {\r\n    var /** @type {?} */ words32 = Array((str.length + 3) >>> 2);\r\n    for (var /** @type {?} */ i = 0; i < words32.length; i++) {\r\n        words32[i] = wordAt(str, i * 4, endian);\r\n    }\r\n    return words32;\r\n}\r\n/**\r\n * @param {?} str\r\n * @param {?} index\r\n * @return {?}\r\n */\r\nfunction byteAt(str, index) {\r\n    return index >= str.length ? 0 : str.charCodeAt(index) & 0xff;\r\n}\r\n/**\r\n * @param {?} str\r\n * @param {?} index\r\n * @param {?} endian\r\n * @return {?}\r\n */\r\nfunction wordAt(str, index, endian) {\r\n    var /** @type {?} */ word = 0;\r\n    if (endian === Endian.Big) {\r\n        for (var /** @type {?} */ i = 0; i < 4; i++) {\r\n            word += byteAt(str, index + i) << (24 - 8 * i);\r\n        }\r\n    }\r\n    else {\r\n        for (var /** @type {?} */ i = 0; i < 4; i++) {\r\n            word += byteAt(str, index + i) << 8 * i;\r\n        }\r\n    }\r\n    return word;\r\n}\r\n/**\r\n * @param {?} words32\r\n * @return {?}\r\n */\r\nfunction words32ToByteString(words32) {\r\n    return words32.reduce(function (str, word) { return str + word32ToByteString(word); }, '');\r\n}\r\n/**\r\n * @param {?} word\r\n * @return {?}\r\n */\r\nfunction word32ToByteString(word) {\r\n    var /** @type {?} */ str = '';\r\n    for (var /** @type {?} */ i = 0; i < 4; i++) {\r\n        str += String.fromCharCode((word >>> 8 * (3 - i)) & 0xff);\r\n    }\r\n    return str;\r\n}\r\n/**\r\n * @param {?} str\r\n * @return {?}\r\n */\r\nfunction byteStringToHexString(str) {\r\n    var /** @type {?} */ hex = '';\r\n    for (var /** @type {?} */ i = 0; i < str.length; i++) {\r\n        var /** @type {?} */ b = byteAt(str, i);\r\n        hex += (b >>> 4).toString(16) + (b & 0x0f).toString(16);\r\n    }\r\n    return hex.toLowerCase();\r\n}\r\n/**\r\n * @param {?} str\r\n * @return {?}\r\n */\r\nfunction byteStringToDecString(str) {\r\n    var /** @type {?} */ decimal = '';\r\n    var /** @type {?} */ toThePower = '1';\r\n    for (var /** @type {?} */ i = str.length - 1; i >= 0; i--) {\r\n        decimal = addBigInt(decimal, numberTimesBigInt(byteAt(str, i), toThePower));\r\n        toThePower = numberTimesBigInt(256, toThePower);\r\n    }\r\n    return decimal.split('').reverse().join('');\r\n}\r\n/**\r\n * @param {?} x\r\n * @param {?} y\r\n * @return {?}\r\n */\r\nfunction addBigInt(x, y) {\r\n    var /** @type {?} */ sum = '';\r\n    var /** @type {?} */ len = Math.max(x.length, y.length);\r\n    for (var /** @type {?} */ i = 0, /** @type {?} */ carry = 0; i < len || carry; i++) {\r\n        var /** @type {?} */ tmpSum = carry + +(x[i] || 0) + +(y[i] || 0);\r\n        if (tmpSum >= 10) {\r\n            carry = 1;\r\n            sum += tmpSum - 10;\r\n        }\r\n        else {\r\n            carry = 0;\r\n            sum += tmpSum;\r\n        }\r\n    }\r\n    return sum;\r\n}\r\n/**\r\n * @param {?} num\r\n * @param {?} b\r\n * @return {?}\r\n */\r\nfunction numberTimesBigInt(num, b) {\r\n    var /** @type {?} */ product = '';\r\n    var /** @type {?} */ bToThePower = b;\r\n    for (; num !== 0; num = num >>> 1) {\r\n        if (num & 1)\r\n            product = addBigInt(product, bToThePower);\r\n        bToThePower = addBigInt(bToThePower, bToThePower);\r\n    }\r\n    return product;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @abstract\r\n */\r\nvar Serializer = (function () {\r\n    function Serializer() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} messages\r\n     * @param {?} locale\r\n     * @return {?}\r\n     */\r\n    Serializer.prototype.write = function (messages, locale) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} content\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Serializer.prototype.load = function (content, url) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Serializer.prototype.digest = function (message) { };\r\n    /**\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Serializer.prototype.createNameMapper = function (message) { return null; };\r\n    return Serializer;\r\n}());\r\n/**\r\n * A simple mapper that take a function to transform an internal name to a public name\r\n */\r\nvar SimplePlaceholderMapper = (function (_super) {\r\n    __extends(SimplePlaceholderMapper, _super);\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} mapName\r\n     */\r\n    function SimplePlaceholderMapper(message, mapName) {\r\n        var _this = _super.call(this) || this;\r\n        _this.mapName = mapName;\r\n        _this.internalToPublic = {};\r\n        _this.publicToNextId = {};\r\n        _this.publicToInternal = {};\r\n        message.nodes.forEach(function (node) { return node.visit(_this); });\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} internalName\r\n     * @return {?}\r\n     */\r\n    SimplePlaceholderMapper.prototype.toPublicName = function (internalName) {\r\n        return this.internalToPublic.hasOwnProperty(internalName) ?\r\n            this.internalToPublic[internalName] :\r\n            null;\r\n    };\r\n    /**\r\n     * @param {?} publicName\r\n     * @return {?}\r\n     */\r\n    SimplePlaceholderMapper.prototype.toInternalName = function (publicName) {\r\n        return this.publicToInternal.hasOwnProperty(publicName) ? this.publicToInternal[publicName] :\r\n            null;\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    SimplePlaceholderMapper.prototype.visitText = function (text, context) { return null; };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    SimplePlaceholderMapper.prototype.visitTagPlaceholder = function (ph, context) {\r\n        this.visitPlaceholderName(ph.startName);\r\n        _super.prototype.visitTagPlaceholder.call(this, ph, context);\r\n        this.visitPlaceholderName(ph.closeName);\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    SimplePlaceholderMapper.prototype.visitPlaceholder = function (ph, context) { this.visitPlaceholderName(ph.name); };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    SimplePlaceholderMapper.prototype.visitIcuPlaceholder = function (ph, context) {\r\n        this.visitPlaceholderName(ph.name);\r\n    };\r\n    /**\r\n     * @param {?} internalName\r\n     * @return {?}\r\n     */\r\n    SimplePlaceholderMapper.prototype.visitPlaceholderName = function (internalName) {\r\n        if (!internalName || this.internalToPublic.hasOwnProperty(internalName)) {\r\n            return;\r\n        }\r\n        var /** @type {?} */ publicName = this.mapName(internalName);\r\n        if (this.publicToInternal.hasOwnProperty(publicName)) {\r\n            // Create a new XMB when it has already been used\r\n            var /** @type {?} */ nextId = this.publicToNextId[publicName];\r\n            this.publicToNextId[publicName] = nextId + 1;\r\n            publicName = publicName + \"_\" + nextId;\r\n        }\r\n        else {\r\n            this.publicToNextId[publicName] = 1;\r\n        }\r\n        this.internalToPublic[internalName] = publicName;\r\n        this.publicToInternal[publicName] = internalName;\r\n    };\r\n    return SimplePlaceholderMapper;\r\n}(RecurseVisitor));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _Visitor$1 = (function () {\r\n    function _Visitor$1() {\r\n    }\r\n    /**\r\n     * @param {?} tag\r\n     * @return {?}\r\n     */\r\n    _Visitor$1.prototype.visitTag = function (tag) {\r\n        var _this = this;\r\n        var /** @type {?} */ strAttrs = this._serializeAttributes(tag.attrs);\r\n        if (tag.children.length == 0) {\r\n            return \"<\" + tag.name + strAttrs + \"/>\";\r\n        }\r\n        var /** @type {?} */ strChildren = tag.children.map(function (node) { return node.visit(_this); });\r\n        return \"<\" + tag.name + strAttrs + \">\" + strChildren.join('') + \"</\" + tag.name + \">\";\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @return {?}\r\n     */\r\n    _Visitor$1.prototype.visitText = function (text) { return text.value; };\r\n    /**\r\n     * @param {?} decl\r\n     * @return {?}\r\n     */\r\n    _Visitor$1.prototype.visitDeclaration = function (decl) {\r\n        return \"<?xml\" + this._serializeAttributes(decl.attrs) + \" ?>\";\r\n    };\r\n    /**\r\n     * @param {?} attrs\r\n     * @return {?}\r\n     */\r\n    _Visitor$1.prototype._serializeAttributes = function (attrs) {\r\n        var /** @type {?} */ strAttrs = Object.keys(attrs).map(function (name) { return name + \"=\\\"\" + attrs[name] + \"\\\"\"; }).join(' ');\r\n        return strAttrs.length > 0 ? ' ' + strAttrs : '';\r\n    };\r\n    /**\r\n     * @param {?} doctype\r\n     * @return {?}\r\n     */\r\n    _Visitor$1.prototype.visitDoctype = function (doctype) {\r\n        return \"<!DOCTYPE \" + doctype.rootTag + \" [\\n\" + doctype.dtd + \"\\n]>\";\r\n    };\r\n    return _Visitor$1;\r\n}());\r\nvar _visitor = new _Visitor$1();\r\n/**\r\n * @param {?} nodes\r\n * @return {?}\r\n */\r\nfunction serialize(nodes) {\r\n    return nodes.map(function (node) { return node.visit(_visitor); }).join('');\r\n}\r\nvar Declaration = (function () {\r\n    /**\r\n     * @param {?} unescapedAttrs\r\n     */\r\n    function Declaration(unescapedAttrs) {\r\n        var _this = this;\r\n        this.attrs = {};\r\n        Object.keys(unescapedAttrs).forEach(function (k) {\r\n            _this.attrs[k] = _escapeXml(unescapedAttrs[k]);\r\n        });\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @return {?}\r\n     */\r\n    Declaration.prototype.visit = function (visitor) { return visitor.visitDeclaration(this); };\r\n    return Declaration;\r\n}());\r\nvar Doctype = (function () {\r\n    /**\r\n     * @param {?} rootTag\r\n     * @param {?} dtd\r\n     */\r\n    function Doctype(rootTag, dtd) {\r\n        this.rootTag = rootTag;\r\n        this.dtd = dtd;\r\n    }\r\n    ;\r\n    /**\r\n     * @param {?} visitor\r\n     * @return {?}\r\n     */\r\n    Doctype.prototype.visit = function (visitor) { return visitor.visitDoctype(this); };\r\n    return Doctype;\r\n}());\r\nvar Tag = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?=} unescapedAttrs\r\n     * @param {?=} children\r\n     */\r\n    function Tag(name, unescapedAttrs, children) {\r\n        if (unescapedAttrs === void 0) { unescapedAttrs = {}; }\r\n        if (children === void 0) { children = []; }\r\n        var _this = this;\r\n        this.name = name;\r\n        this.children = children;\r\n        this.attrs = {};\r\n        Object.keys(unescapedAttrs).forEach(function (k) {\r\n            _this.attrs[k] = _escapeXml(unescapedAttrs[k]);\r\n        });\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @return {?}\r\n     */\r\n    Tag.prototype.visit = function (visitor) { return visitor.visitTag(this); };\r\n    return Tag;\r\n}());\r\nvar Text$2 = (function () {\r\n    /**\r\n     * @param {?} unescapedValue\r\n     */\r\n    function Text$2(unescapedValue) {\r\n        this.value = _escapeXml(unescapedValue);\r\n    }\r\n    ;\r\n    /**\r\n     * @param {?} visitor\r\n     * @return {?}\r\n     */\r\n    Text$2.prototype.visit = function (visitor) { return visitor.visitText(this); };\r\n    return Text$2;\r\n}());\r\nvar CR = (function (_super) {\r\n    __extends(CR, _super);\r\n    /**\r\n     * @param {?=} ws\r\n     */\r\n    function CR(ws) {\r\n        if (ws === void 0) { ws = 0; }\r\n        return _super.call(this, \"\\n\" + new Array(ws + 1).join(' ')) || this;\r\n    }\r\n    return CR;\r\n}(Text$2));\r\nvar _ESCAPED_CHARS = [\r\n    [/&/g, '&amp;'],\r\n    [/\"/g, '&quot;'],\r\n    [/'/g, '&apos;'],\r\n    [/</g, '&lt;'],\r\n    [/>/g, '&gt;'],\r\n];\r\n/**\r\n * @param {?} text\r\n * @return {?}\r\n */\r\nfunction _escapeXml(text) {\r\n    return _ESCAPED_CHARS.reduce(function (text, entry) { return text.replace(entry[0], entry[1]); }, text);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _VERSION = '1.2';\r\nvar _XMLNS = 'urn:oasis:names:tc:xliff:document:1.2';\r\n// TODO(vicb): make this a param (s/_/-/)\r\nvar _DEFAULT_SOURCE_LANG = 'en';\r\nvar _PLACEHOLDER_TAG = 'x';\r\nvar _FILE_TAG = 'file';\r\nvar _SOURCE_TAG = 'source';\r\nvar _TARGET_TAG = 'target';\r\nvar _UNIT_TAG = 'trans-unit';\r\nvar _CONTEXT_GROUP_TAG = 'context-group';\r\nvar _CONTEXT_TAG = 'context';\r\nvar Xliff = (function (_super) {\r\n    __extends(Xliff, _super);\r\n    function Xliff() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} messages\r\n     * @param {?} locale\r\n     * @return {?}\r\n     */\r\n    Xliff.prototype.write = function (messages, locale) {\r\n        var /** @type {?} */ visitor = new _WriteVisitor();\r\n        var /** @type {?} */ transUnits = [];\r\n        messages.forEach(function (message) {\r\n            var /** @type {?} */ contextTags = [];\r\n            message.sources.forEach(function (source) {\r\n                var /** @type {?} */ contextGroupTag = new Tag(_CONTEXT_GROUP_TAG, { purpose: 'location' });\r\n                contextGroupTag.children.push(new CR(10), new Tag(_CONTEXT_TAG, { 'context-type': 'sourcefile' }, [new Text$2(source.filePath)]), new CR(10), new Tag(_CONTEXT_TAG, { 'context-type': 'linenumber' }, [new Text$2(\"\" + source.startLine)]), new CR(8));\r\n                contextTags.push(new CR(8), contextGroupTag);\r\n            });\r\n            var /** @type {?} */ transUnit = new Tag(_UNIT_TAG, { id: message.id, datatype: 'html' });\r\n            (_a = transUnit.children).push.apply(_a, [new CR(8), new Tag(_SOURCE_TAG, {}, visitor.serialize(message.nodes)), new CR(8), new Tag(_TARGET_TAG)].concat(contextTags));\r\n            if (message.description) {\r\n                transUnit.children.push(new CR(8), new Tag('note', { priority: '1', from: 'description' }, [new Text$2(message.description)]));\r\n            }\r\n            if (message.meaning) {\r\n                transUnit.children.push(new CR(8), new Tag('note', { priority: '1', from: 'meaning' }, [new Text$2(message.meaning)]));\r\n            }\r\n            transUnit.children.push(new CR(6));\r\n            transUnits.push(new CR(6), transUnit);\r\n            var _a;\r\n        });\r\n        var /** @type {?} */ body = new Tag('body', {}, transUnits.concat([new CR(4)]));\r\n        var /** @type {?} */ file = new Tag('file', {\r\n            'source-language': locale || _DEFAULT_SOURCE_LANG,\r\n            datatype: 'plaintext',\r\n            original: 'ng2.template',\r\n        }, [new CR(4), body, new CR(2)]);\r\n        var /** @type {?} */ xliff = new Tag('xliff', { version: _VERSION, xmlns: _XMLNS }, [new CR(2), file, new CR()]);\r\n        return serialize([\r\n            new Declaration({ version: '1.0', encoding: 'UTF-8' }), new CR(), xliff, new CR()\r\n        ]);\r\n    };\r\n    /**\r\n     * @param {?} content\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Xliff.prototype.load = function (content, url) {\r\n        // xliff to xml nodes\r\n        var /** @type {?} */ xliffParser = new XliffParser();\r\n        var _a = xliffParser.parse(content, url), locale = _a.locale, msgIdToHtml = _a.msgIdToHtml, errors = _a.errors;\r\n        // xml nodes to i18n nodes\r\n        var /** @type {?} */ i18nNodesByMsgId = {};\r\n        var /** @type {?} */ converter = new XmlToI18n();\r\n        Object.keys(msgIdToHtml).forEach(function (msgId) {\r\n            var _a = converter.convert(msgIdToHtml[msgId], url), i18nNodes = _a.i18nNodes, e = _a.errors;\r\n            errors.push.apply(errors, e);\r\n            i18nNodesByMsgId[msgId] = i18nNodes;\r\n        });\r\n        if (errors.length) {\r\n            throw new Error(\"xliff parse errors:\\n\" + errors.join('\\n'));\r\n        }\r\n        return { locale: /** @type {?} */ ((locale)), i18nNodesByMsgId: i18nNodesByMsgId };\r\n    };\r\n    /**\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Xliff.prototype.digest = function (message) { return digest(message); };\r\n    return Xliff;\r\n}(Serializer));\r\nvar _WriteVisitor = (function () {\r\n    function _WriteVisitor() {\r\n    }\r\n    /**\r\n     * @param {?} text\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor.prototype.visitText = function (text, context) { return [new Text$2(text.value)]; };\r\n    /**\r\n     * @param {?} container\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor.prototype.visitContainer = function (container, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ nodes = [];\r\n        container.children.forEach(function (node) { return nodes.push.apply(nodes, node.visit(_this)); });\r\n        return nodes;\r\n    };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor.prototype.visitIcu = function (icu, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ nodes = [new Text$2(\"{\" + icu.expressionPlaceholder + \", \" + icu.type + \", \")];\r\n        Object.keys(icu.cases).forEach(function (c) {\r\n            nodes.push.apply(nodes, [new Text$2(c + \" {\")].concat(icu.cases[c].visit(_this), [new Text$2(\"} \")]));\r\n        });\r\n        nodes.push(new Text$2(\"}\"));\r\n        return nodes;\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor.prototype.visitTagPlaceholder = function (ph, context) {\r\n        var /** @type {?} */ ctype = getCtypeForTag(ph.tag);\r\n        var /** @type {?} */ startTagPh = new Tag(_PLACEHOLDER_TAG, { id: ph.startName, ctype: ctype });\r\n        if (ph.isVoid) {\r\n            // void tags have no children nor closing tags\r\n            return [startTagPh];\r\n        }\r\n        var /** @type {?} */ closeTagPh = new Tag(_PLACEHOLDER_TAG, { id: ph.closeName, ctype: ctype });\r\n        return [startTagPh].concat(this.serialize(ph.children), [closeTagPh]);\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor.prototype.visitPlaceholder = function (ph, context) {\r\n        return [new Tag(_PLACEHOLDER_TAG, { id: ph.name })];\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor.prototype.visitIcuPlaceholder = function (ph, context) {\r\n        return [new Tag(_PLACEHOLDER_TAG, { id: ph.name })];\r\n    };\r\n    /**\r\n     * @param {?} nodes\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor.prototype.serialize = function (nodes) {\r\n        var _this = this;\r\n        return [].concat.apply([], nodes.map(function (node) { return node.visit(_this); }));\r\n    };\r\n    return _WriteVisitor;\r\n}());\r\nvar XliffParser = (function () {\r\n    function XliffParser() {\r\n        this._locale = null;\r\n    }\r\n    /**\r\n     * @param {?} xliff\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    XliffParser.prototype.parse = function (xliff, url) {\r\n        this._unitMlString = null;\r\n        this._msgIdToHtml = {};\r\n        var /** @type {?} */ xml = new XmlParser().parse(xliff, url, false);\r\n        this._errors = xml.errors;\r\n        visitAll(this, xml.rootNodes, null);\r\n        return {\r\n            msgIdToHtml: this._msgIdToHtml,\r\n            errors: this._errors,\r\n            locale: this._locale,\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XliffParser.prototype.visitElement = function (element, context) {\r\n        switch (element.name) {\r\n            case _UNIT_TAG:\r\n                this._unitMlString = ((null));\r\n                var /** @type {?} */ idAttr = element.attrs.find(function (attr) { return attr.name === 'id'; });\r\n                if (!idAttr) {\r\n                    this._addError(element, \"<\" + _UNIT_TAG + \"> misses the \\\"id\\\" attribute\");\r\n                }\r\n                else {\r\n                    var /** @type {?} */ id = idAttr.value;\r\n                    if (this._msgIdToHtml.hasOwnProperty(id)) {\r\n                        this._addError(element, \"Duplicated translations for msg \" + id);\r\n                    }\r\n                    else {\r\n                        visitAll(this, element.children, null);\r\n                        if (typeof this._unitMlString === 'string') {\r\n                            this._msgIdToHtml[id] = this._unitMlString;\r\n                        }\r\n                        else {\r\n                            this._addError(element, \"Message \" + id + \" misses a translation\");\r\n                        }\r\n                    }\r\n                }\r\n                break;\r\n            case _SOURCE_TAG:\r\n                // ignore source message\r\n                break;\r\n            case _TARGET_TAG:\r\n                var /** @type {?} */ innerTextStart = ((element.startSourceSpan)).end.offset;\r\n                var /** @type {?} */ innerTextEnd = ((element.endSourceSpan)).start.offset;\r\n                var /** @type {?} */ content = ((element.startSourceSpan)).start.file.content;\r\n                var /** @type {?} */ innerText = content.slice(innerTextStart, innerTextEnd);\r\n                this._unitMlString = innerText;\r\n                break;\r\n            case _FILE_TAG:\r\n                var /** @type {?} */ localeAttr = element.attrs.find(function (attr) { return attr.name === 'target-language'; });\r\n                if (localeAttr) {\r\n                    this._locale = localeAttr.value;\r\n                }\r\n                visitAll(this, element.children, null);\r\n                break;\r\n            default:\r\n                // TODO(vicb): assert file structure, xliff version\r\n                // For now only recurse on unhandled nodes\r\n                visitAll(this, element.children, null);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XliffParser.prototype.visitAttribute = function (attribute, context) { };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XliffParser.prototype.visitText = function (text, context) { };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XliffParser.prototype.visitComment = function (comment, context) { };\r\n    /**\r\n     * @param {?} expansion\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XliffParser.prototype.visitExpansion = function (expansion, context) { };\r\n    /**\r\n     * @param {?} expansionCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XliffParser.prototype.visitExpansionCase = function (expansionCase, context) { };\r\n    /**\r\n     * @param {?} node\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    XliffParser.prototype._addError = function (node, message) {\r\n        this._errors.push(new I18nError(/** @type {?} */ ((node.sourceSpan)), message));\r\n    };\r\n    return XliffParser;\r\n}());\r\nvar XmlToI18n = (function () {\r\n    function XmlToI18n() {\r\n    }\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    XmlToI18n.prototype.convert = function (message, url) {\r\n        var /** @type {?} */ xmlIcu = new XmlParser().parse(message, url, true);\r\n        this._errors = xmlIcu.errors;\r\n        var /** @type {?} */ i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0 ?\r\n            [] :\r\n            visitAll(this, xmlIcu.rootNodes);\r\n        return {\r\n            i18nNodes: i18nNodes,\r\n            errors: this._errors,\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n.prototype.visitText = function (text, context) { return new Text$1(text.value, /** @type {?} */ ((text.sourceSpan))); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n.prototype.visitElement = function (el, context) {\r\n        if (el.name === _PLACEHOLDER_TAG) {\r\n            var /** @type {?} */ nameAttr = el.attrs.find(function (attr) { return attr.name === 'id'; });\r\n            if (nameAttr) {\r\n                return new Placeholder('', nameAttr.value, /** @type {?} */ ((el.sourceSpan)));\r\n            }\r\n            this._addError(el, \"<\" + _PLACEHOLDER_TAG + \"> misses the \\\"id\\\" attribute\");\r\n        }\r\n        else {\r\n            this._addError(el, \"Unexpected tag\");\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n.prototype.visitExpansion = function (icu, context) {\r\n        var /** @type {?} */ caseMap = {};\r\n        visitAll(this, icu.cases).forEach(function (c) {\r\n            caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);\r\n        });\r\n        return new Icu(icu.switchValue, icu.type, caseMap, icu.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} icuCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n.prototype.visitExpansionCase = function (icuCase, context) {\r\n        return {\r\n            value: icuCase.value,\r\n            nodes: visitAll(this, icuCase.expression),\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n.prototype.visitComment = function (comment, context) { };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n.prototype.visitAttribute = function (attribute, context) { };\r\n    /**\r\n     * @param {?} node\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    XmlToI18n.prototype._addError = function (node, message) {\r\n        this._errors.push(new I18nError(/** @type {?} */ ((node.sourceSpan)), message));\r\n    };\r\n    return XmlToI18n;\r\n}());\r\n/**\r\n * @param {?} tag\r\n * @return {?}\r\n */\r\nfunction getCtypeForTag(tag) {\r\n    switch (tag.toLowerCase()) {\r\n        case 'br':\r\n            return 'lb';\r\n        case 'img':\r\n            return 'image';\r\n        default:\r\n            return \"x-\" + tag;\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _VERSION$1 = '2.0';\r\nvar _XMLNS$1 = 'urn:oasis:names:tc:xliff:document:2.0';\r\n// TODO(vicb): make this a param (s/_/-/)\r\nvar _DEFAULT_SOURCE_LANG$1 = 'en';\r\nvar _PLACEHOLDER_TAG$1 = 'ph';\r\nvar _PLACEHOLDER_SPANNING_TAG = 'pc';\r\nvar _XLIFF_TAG = 'xliff';\r\nvar _SOURCE_TAG$1 = 'source';\r\nvar _TARGET_TAG$1 = 'target';\r\nvar _UNIT_TAG$1 = 'unit';\r\nvar Xliff2 = (function (_super) {\r\n    __extends(Xliff2, _super);\r\n    function Xliff2() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} messages\r\n     * @param {?} locale\r\n     * @return {?}\r\n     */\r\n    Xliff2.prototype.write = function (messages, locale) {\r\n        var /** @type {?} */ visitor = new _WriteVisitor$1();\r\n        var /** @type {?} */ units = [];\r\n        messages.forEach(function (message) {\r\n            var /** @type {?} */ unit = new Tag(_UNIT_TAG$1, { id: message.id });\r\n            if (message.description || message.meaning) {\r\n                var /** @type {?} */ notes = new Tag('notes');\r\n                if (message.description) {\r\n                    notes.children.push(new CR(8), new Tag('note', { category: 'description' }, [new Text$2(message.description)]));\r\n                }\r\n                if (message.meaning) {\r\n                    notes.children.push(new CR(8), new Tag('note', { category: 'meaning' }, [new Text$2(message.meaning)]));\r\n                }\r\n                notes.children.push(new CR(6));\r\n                unit.children.push(new CR(6), notes);\r\n            }\r\n            var /** @type {?} */ segment = new Tag('segment');\r\n            segment.children.push(new CR(8), new Tag(_SOURCE_TAG$1, {}, visitor.serialize(message.nodes)), new CR(6));\r\n            unit.children.push(new CR(6), segment, new CR(4));\r\n            units.push(new CR(4), unit);\r\n        });\r\n        var /** @type {?} */ file = new Tag('file', { 'original': 'ng.template', id: 'ngi18n' }, units.concat([new CR(2)]));\r\n        var /** @type {?} */ xliff = new Tag(_XLIFF_TAG, { version: _VERSION$1, xmlns: _XMLNS$1, srcLang: locale || _DEFAULT_SOURCE_LANG$1 }, [new CR(2), file, new CR()]);\r\n        return serialize([\r\n            new Declaration({ version: '1.0', encoding: 'UTF-8' }), new CR(), xliff, new CR()\r\n        ]);\r\n    };\r\n    /**\r\n     * @param {?} content\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Xliff2.prototype.load = function (content, url) {\r\n        // xliff to xml nodes\r\n        var /** @type {?} */ xliff2Parser = new Xliff2Parser();\r\n        var _a = xliff2Parser.parse(content, url), locale = _a.locale, msgIdToHtml = _a.msgIdToHtml, errors = _a.errors;\r\n        // xml nodes to i18n nodes\r\n        var /** @type {?} */ i18nNodesByMsgId = {};\r\n        var /** @type {?} */ converter = new XmlToI18n$1();\r\n        Object.keys(msgIdToHtml).forEach(function (msgId) {\r\n            var _a = converter.convert(msgIdToHtml[msgId], url), i18nNodes = _a.i18nNodes, e = _a.errors;\r\n            errors.push.apply(errors, e);\r\n            i18nNodesByMsgId[msgId] = i18nNodes;\r\n        });\r\n        if (errors.length) {\r\n            throw new Error(\"xliff2 parse errors:\\n\" + errors.join('\\n'));\r\n        }\r\n        return { locale: /** @type {?} */ ((locale)), i18nNodesByMsgId: i18nNodesByMsgId };\r\n    };\r\n    /**\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Xliff2.prototype.digest = function (message) { return decimalDigest(message); };\r\n    return Xliff2;\r\n}(Serializer));\r\nvar _WriteVisitor$1 = (function () {\r\n    function _WriteVisitor$1() {\r\n    }\r\n    /**\r\n     * @param {?} text\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor$1.prototype.visitText = function (text, context) { return [new Text$2(text.value)]; };\r\n    /**\r\n     * @param {?} container\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor$1.prototype.visitContainer = function (container, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ nodes = [];\r\n        container.children.forEach(function (node) { return nodes.push.apply(nodes, node.visit(_this)); });\r\n        return nodes;\r\n    };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor$1.prototype.visitIcu = function (icu, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ nodes = [new Text$2(\"{\" + icu.expressionPlaceholder + \", \" + icu.type + \", \")];\r\n        Object.keys(icu.cases).forEach(function (c) {\r\n            nodes.push.apply(nodes, [new Text$2(c + \" {\")].concat(icu.cases[c].visit(_this), [new Text$2(\"} \")]));\r\n        });\r\n        nodes.push(new Text$2(\"}\"));\r\n        return nodes;\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor$1.prototype.visitTagPlaceholder = function (ph, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ type = getTypeForTag(ph.tag);\r\n        if (ph.isVoid) {\r\n            var /** @type {?} */ tagPh = new Tag(_PLACEHOLDER_TAG$1, {\r\n                id: (this._nextPlaceholderId++).toString(),\r\n                equiv: ph.startName,\r\n                type: type,\r\n                disp: \"<\" + ph.tag + \"/>\",\r\n            });\r\n            return [tagPh];\r\n        }\r\n        var /** @type {?} */ tagPc = new Tag(_PLACEHOLDER_SPANNING_TAG, {\r\n            id: (this._nextPlaceholderId++).toString(),\r\n            equivStart: ph.startName,\r\n            equivEnd: ph.closeName,\r\n            type: type,\r\n            dispStart: \"<\" + ph.tag + \">\",\r\n            dispEnd: \"</\" + ph.tag + \">\",\r\n        });\r\n        var /** @type {?} */ nodes = [].concat.apply([], ph.children.map(function (node) { return node.visit(_this); }));\r\n        if (nodes.length) {\r\n            nodes.forEach(function (node) { return tagPc.children.push(node); });\r\n        }\r\n        else {\r\n            tagPc.children.push(new Text$2(''));\r\n        }\r\n        return [tagPc];\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor$1.prototype.visitPlaceholder = function (ph, context) {\r\n        return [new Tag(_PLACEHOLDER_TAG$1, {\r\n                id: (this._nextPlaceholderId++).toString(),\r\n                equiv: ph.name,\r\n                disp: \"{{\" + ph.value + \"}}\",\r\n            })];\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor$1.prototype.visitIcuPlaceholder = function (ph, context) {\r\n        return [new Tag(_PLACEHOLDER_TAG$1, { id: (this._nextPlaceholderId++).toString() })];\r\n    };\r\n    /**\r\n     * @param {?} nodes\r\n     * @return {?}\r\n     */\r\n    _WriteVisitor$1.prototype.serialize = function (nodes) {\r\n        var _this = this;\r\n        this._nextPlaceholderId = 0;\r\n        return [].concat.apply([], nodes.map(function (node) { return node.visit(_this); }));\r\n    };\r\n    return _WriteVisitor$1;\r\n}());\r\nvar Xliff2Parser = (function () {\r\n    function Xliff2Parser() {\r\n        this._locale = null;\r\n    }\r\n    /**\r\n     * @param {?} xliff\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Xliff2Parser.prototype.parse = function (xliff, url) {\r\n        this._unitMlString = null;\r\n        this._msgIdToHtml = {};\r\n        var /** @type {?} */ xml = new XmlParser().parse(xliff, url, false);\r\n        this._errors = xml.errors;\r\n        visitAll(this, xml.rootNodes, null);\r\n        return {\r\n            msgIdToHtml: this._msgIdToHtml,\r\n            errors: this._errors,\r\n            locale: this._locale,\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Xliff2Parser.prototype.visitElement = function (element, context) {\r\n        switch (element.name) {\r\n            case _UNIT_TAG$1:\r\n                this._unitMlString = null;\r\n                var /** @type {?} */ idAttr = element.attrs.find(function (attr) { return attr.name === 'id'; });\r\n                if (!idAttr) {\r\n                    this._addError(element, \"<\" + _UNIT_TAG$1 + \"> misses the \\\"id\\\" attribute\");\r\n                }\r\n                else {\r\n                    var /** @type {?} */ id = idAttr.value;\r\n                    if (this._msgIdToHtml.hasOwnProperty(id)) {\r\n                        this._addError(element, \"Duplicated translations for msg \" + id);\r\n                    }\r\n                    else {\r\n                        visitAll(this, element.children, null);\r\n                        if (typeof this._unitMlString === 'string') {\r\n                            this._msgIdToHtml[id] = this._unitMlString;\r\n                        }\r\n                        else {\r\n                            this._addError(element, \"Message \" + id + \" misses a translation\");\r\n                        }\r\n                    }\r\n                }\r\n                break;\r\n            case _SOURCE_TAG$1:\r\n                // ignore source message\r\n                break;\r\n            case _TARGET_TAG$1:\r\n                var /** @type {?} */ innerTextStart = ((element.startSourceSpan)).end.offset;\r\n                var /** @type {?} */ innerTextEnd = ((element.endSourceSpan)).start.offset;\r\n                var /** @type {?} */ content = ((element.startSourceSpan)).start.file.content;\r\n                var /** @type {?} */ innerText = content.slice(innerTextStart, innerTextEnd);\r\n                this._unitMlString = innerText;\r\n                break;\r\n            case _XLIFF_TAG:\r\n                var /** @type {?} */ localeAttr = element.attrs.find(function (attr) { return attr.name === 'trgLang'; });\r\n                if (localeAttr) {\r\n                    this._locale = localeAttr.value;\r\n                }\r\n                var /** @type {?} */ versionAttr = element.attrs.find(function (attr) { return attr.name === 'version'; });\r\n                if (versionAttr) {\r\n                    var /** @type {?} */ version = versionAttr.value;\r\n                    if (version !== '2.0') {\r\n                        this._addError(element, \"The XLIFF file version \" + version + \" is not compatible with XLIFF 2.0 serializer\");\r\n                    }\r\n                    else {\r\n                        visitAll(this, element.children, null);\r\n                    }\r\n                }\r\n                break;\r\n            default:\r\n                visitAll(this, element.children, null);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Xliff2Parser.prototype.visitAttribute = function (attribute, context) { };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Xliff2Parser.prototype.visitText = function (text, context) { };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Xliff2Parser.prototype.visitComment = function (comment, context) { };\r\n    /**\r\n     * @param {?} expansion\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Xliff2Parser.prototype.visitExpansion = function (expansion, context) { };\r\n    /**\r\n     * @param {?} expansionCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Xliff2Parser.prototype.visitExpansionCase = function (expansionCase, context) { };\r\n    /**\r\n     * @param {?} node\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Xliff2Parser.prototype._addError = function (node, message) {\r\n        this._errors.push(new I18nError(node.sourceSpan, message));\r\n    };\r\n    return Xliff2Parser;\r\n}());\r\nvar XmlToI18n$1 = (function () {\r\n    function XmlToI18n$1() {\r\n    }\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$1.prototype.convert = function (message, url) {\r\n        var /** @type {?} */ xmlIcu = new XmlParser().parse(message, url, true);\r\n        this._errors = xmlIcu.errors;\r\n        var /** @type {?} */ i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0 ?\r\n            [] : [].concat.apply([], visitAll(this, xmlIcu.rootNodes));\r\n        return {\r\n            i18nNodes: i18nNodes,\r\n            errors: this._errors,\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$1.prototype.visitText = function (text, context) { return new Text$1(text.value, text.sourceSpan); };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$1.prototype.visitElement = function (el, context) {\r\n        var _this = this;\r\n        switch (el.name) {\r\n            case _PLACEHOLDER_TAG$1:\r\n                var /** @type {?} */ nameAttr = el.attrs.find(function (attr) { return attr.name === 'equiv'; });\r\n                if (nameAttr) {\r\n                    return [new Placeholder('', nameAttr.value, el.sourceSpan)];\r\n                }\r\n                this._addError(el, \"<\" + _PLACEHOLDER_TAG$1 + \"> misses the \\\"equiv\\\" attribute\");\r\n                break;\r\n            case _PLACEHOLDER_SPANNING_TAG:\r\n                var /** @type {?} */ startAttr = el.attrs.find(function (attr) { return attr.name === 'equivStart'; });\r\n                var /** @type {?} */ endAttr = el.attrs.find(function (attr) { return attr.name === 'equivEnd'; });\r\n                if (!startAttr) {\r\n                    this._addError(el, \"<\" + _PLACEHOLDER_TAG$1 + \"> misses the \\\"equivStart\\\" attribute\");\r\n                }\r\n                else if (!endAttr) {\r\n                    this._addError(el, \"<\" + _PLACEHOLDER_TAG$1 + \"> misses the \\\"equivEnd\\\" attribute\");\r\n                }\r\n                else {\r\n                    var /** @type {?} */ startId = startAttr.value;\r\n                    var /** @type {?} */ endId = endAttr.value;\r\n                    var /** @type {?} */ nodes = [];\r\n                    return nodes.concat.apply(nodes, [new Placeholder('', startId, el.sourceSpan)].concat(el.children.map(function (node) { return node.visit(_this, null); }), [new Placeholder('', endId, el.sourceSpan)]));\r\n                }\r\n                break;\r\n            default:\r\n                this._addError(el, \"Unexpected tag\");\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$1.prototype.visitExpansion = function (icu, context) {\r\n        var /** @type {?} */ caseMap = {};\r\n        visitAll(this, icu.cases).forEach(function (c) {\r\n            caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);\r\n        });\r\n        return new Icu(icu.switchValue, icu.type, caseMap, icu.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} icuCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$1.prototype.visitExpansionCase = function (icuCase, context) {\r\n        return {\r\n            value: icuCase.value,\r\n            nodes: [].concat.apply([], visitAll(this, icuCase.expression)),\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$1.prototype.visitComment = function (comment, context) { };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$1.prototype.visitAttribute = function (attribute, context) { };\r\n    /**\r\n     * @param {?} node\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$1.prototype._addError = function (node, message) {\r\n        this._errors.push(new I18nError(node.sourceSpan, message));\r\n    };\r\n    return XmlToI18n$1;\r\n}());\r\n/**\r\n * @param {?} tag\r\n * @return {?}\r\n */\r\nfunction getTypeForTag(tag) {\r\n    switch (tag.toLowerCase()) {\r\n        case 'br':\r\n        case 'b':\r\n        case 'i':\r\n        case 'u':\r\n            return 'fmt';\r\n        case 'img':\r\n            return 'image';\r\n        case 'a':\r\n            return 'link';\r\n        default:\r\n            return 'other';\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _MESSAGES_TAG = 'messagebundle';\r\nvar _MESSAGE_TAG = 'msg';\r\nvar _PLACEHOLDER_TAG$2 = 'ph';\r\nvar _EXEMPLE_TAG = 'ex';\r\nvar _SOURCE_TAG$2 = 'source';\r\nvar _DOCTYPE = \"<!ELEMENT messagebundle (msg)*>\\n<!ATTLIST messagebundle class CDATA #IMPLIED>\\n\\n<!ELEMENT msg (#PCDATA|ph|source)*>\\n<!ATTLIST msg id CDATA #IMPLIED>\\n<!ATTLIST msg seq CDATA #IMPLIED>\\n<!ATTLIST msg name CDATA #IMPLIED>\\n<!ATTLIST msg desc CDATA #IMPLIED>\\n<!ATTLIST msg meaning CDATA #IMPLIED>\\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\\n<!ATTLIST msg xml:space (default|preserve) \\\"default\\\">\\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\\n\\n<!ELEMENT source (#PCDATA)>\\n\\n<!ELEMENT ph (#PCDATA|ex)*>\\n<!ATTLIST ph name CDATA #REQUIRED>\\n\\n<!ELEMENT ex (#PCDATA)>\";\r\nvar Xmb = (function (_super) {\r\n    __extends(Xmb, _super);\r\n    function Xmb() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} messages\r\n     * @param {?} locale\r\n     * @return {?}\r\n     */\r\n    Xmb.prototype.write = function (messages, locale) {\r\n        var /** @type {?} */ exampleVisitor = new ExampleVisitor();\r\n        var /** @type {?} */ visitor = new _Visitor$2();\r\n        var /** @type {?} */ rootNode = new Tag(_MESSAGES_TAG);\r\n        messages.forEach(function (message) {\r\n            var /** @type {?} */ attrs = { id: message.id };\r\n            if (message.description) {\r\n                attrs['desc'] = message.description;\r\n            }\r\n            if (message.meaning) {\r\n                attrs['meaning'] = message.meaning;\r\n            }\r\n            var /** @type {?} */ sourceTags = [];\r\n            message.sources.forEach(function (source) {\r\n                sourceTags.push(new Tag(_SOURCE_TAG$2, {}, [\r\n                    new Text$2(source.filePath + \":\" + source.startLine + (source.endLine !== source.startLine ? ',' + source.endLine : ''))\r\n                ]));\r\n            });\r\n            rootNode.children.push(new CR(2), new Tag(_MESSAGE_TAG, attrs, sourceTags.concat(visitor.serialize(message.nodes))));\r\n        });\r\n        rootNode.children.push(new CR());\r\n        return serialize([\r\n            new Declaration({ version: '1.0', encoding: 'UTF-8' }),\r\n            new CR(),\r\n            new Doctype(_MESSAGES_TAG, _DOCTYPE),\r\n            new CR(),\r\n            exampleVisitor.addDefaultExamples(rootNode),\r\n            new CR(),\r\n        ]);\r\n    };\r\n    /**\r\n     * @param {?} content\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Xmb.prototype.load = function (content, url) {\r\n        throw new Error('Unsupported');\r\n    };\r\n    /**\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Xmb.prototype.digest = function (message) { return digest$1(message); };\r\n    /**\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Xmb.prototype.createNameMapper = function (message) {\r\n        return new SimplePlaceholderMapper(message, toPublicName);\r\n    };\r\n    return Xmb;\r\n}(Serializer));\r\nvar _Visitor$2 = (function () {\r\n    function _Visitor$2() {\r\n    }\r\n    /**\r\n     * @param {?} text\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _Visitor$2.prototype.visitText = function (text, context) { return [new Text$2(text.value)]; };\r\n    /**\r\n     * @param {?} container\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Visitor$2.prototype.visitContainer = function (container, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ nodes = [];\r\n        container.children.forEach(function (node) { return nodes.push.apply(nodes, node.visit(_this)); });\r\n        return nodes;\r\n    };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _Visitor$2.prototype.visitIcu = function (icu, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ nodes = [new Text$2(\"{\" + icu.expressionPlaceholder + \", \" + icu.type + \", \")];\r\n        Object.keys(icu.cases).forEach(function (c) {\r\n            nodes.push.apply(nodes, [new Text$2(c + \" {\")].concat(icu.cases[c].visit(_this), [new Text$2(\"} \")]));\r\n        });\r\n        nodes.push(new Text$2(\"}\"));\r\n        return nodes;\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _Visitor$2.prototype.visitTagPlaceholder = function (ph, context) {\r\n        var /** @type {?} */ startEx = new Tag(_EXEMPLE_TAG, {}, [new Text$2(\"<\" + ph.tag + \">\")]);\r\n        var /** @type {?} */ startTagPh = new Tag(_PLACEHOLDER_TAG$2, { name: ph.startName }, [startEx]);\r\n        if (ph.isVoid) {\r\n            // void tags have no children nor closing tags\r\n            return [startTagPh];\r\n        }\r\n        var /** @type {?} */ closeEx = new Tag(_EXEMPLE_TAG, {}, [new Text$2(\"</\" + ph.tag + \">\")]);\r\n        var /** @type {?} */ closeTagPh = new Tag(_PLACEHOLDER_TAG$2, { name: ph.closeName }, [closeEx]);\r\n        return [startTagPh].concat(this.serialize(ph.children), [closeTagPh]);\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _Visitor$2.prototype.visitPlaceholder = function (ph, context) {\r\n        return [new Tag(_PLACEHOLDER_TAG$2, { name: ph.name })];\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    _Visitor$2.prototype.visitIcuPlaceholder = function (ph, context) {\r\n        return [new Tag(_PLACEHOLDER_TAG$2, { name: ph.name })];\r\n    };\r\n    /**\r\n     * @param {?} nodes\r\n     * @return {?}\r\n     */\r\n    _Visitor$2.prototype.serialize = function (nodes) {\r\n        var _this = this;\r\n        return [].concat.apply([], nodes.map(function (node) { return node.visit(_this); }));\r\n    };\r\n    return _Visitor$2;\r\n}());\r\n/**\r\n * @param {?} message\r\n * @return {?}\r\n */\r\nfunction digest$1(message) {\r\n    return decimalDigest(message);\r\n}\r\nvar ExampleVisitor = (function () {\r\n    function ExampleVisitor() {\r\n    }\r\n    /**\r\n     * @param {?} node\r\n     * @return {?}\r\n     */\r\n    ExampleVisitor.prototype.addDefaultExamples = function (node) {\r\n        node.visit(this);\r\n        return node;\r\n    };\r\n    /**\r\n     * @param {?} tag\r\n     * @return {?}\r\n     */\r\n    ExampleVisitor.prototype.visitTag = function (tag) {\r\n        var _this = this;\r\n        if (tag.name === _PLACEHOLDER_TAG$2) {\r\n            if (!tag.children || tag.children.length == 0) {\r\n                var /** @type {?} */ exText = new Text$2(tag.attrs['name'] || '...');\r\n                tag.children = [new Tag(_EXEMPLE_TAG, {}, [exText])];\r\n            }\r\n        }\r\n        else if (tag.children) {\r\n            tag.children.forEach(function (node) { return node.visit(_this); });\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @return {?}\r\n     */\r\n    ExampleVisitor.prototype.visitText = function (text) { };\r\n    /**\r\n     * @param {?} decl\r\n     * @return {?}\r\n     */\r\n    ExampleVisitor.prototype.visitDeclaration = function (decl) { };\r\n    /**\r\n     * @param {?} doctype\r\n     * @return {?}\r\n     */\r\n    ExampleVisitor.prototype.visitDoctype = function (doctype) { };\r\n    return ExampleVisitor;\r\n}());\r\n/**\r\n * @param {?} internalName\r\n * @return {?}\r\n */\r\nfunction toPublicName(internalName) {\r\n    return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, '_');\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _TRANSLATIONS_TAG = 'translationbundle';\r\nvar _TRANSLATION_TAG = 'translation';\r\nvar _PLACEHOLDER_TAG$3 = 'ph';\r\nvar Xtb = (function (_super) {\r\n    __extends(Xtb, _super);\r\n    function Xtb() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} messages\r\n     * @param {?} locale\r\n     * @return {?}\r\n     */\r\n    Xtb.prototype.write = function (messages, locale) { throw new Error('Unsupported'); };\r\n    /**\r\n     * @param {?} content\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    Xtb.prototype.load = function (content, url) {\r\n        // xtb to xml nodes\r\n        var /** @type {?} */ xtbParser = new XtbParser();\r\n        var _a = xtbParser.parse(content, url), locale = _a.locale, msgIdToHtml = _a.msgIdToHtml, errors = _a.errors;\r\n        // xml nodes to i18n nodes\r\n        var /** @type {?} */ i18nNodesByMsgId = {};\r\n        var /** @type {?} */ converter = new XmlToI18n$2();\r\n        // Because we should be able to load xtb files that rely on features not supported by angular,\r\n        // we need to delay the conversion of html to i18n nodes so that non angular messages are not\r\n        // converted\r\n        Object.keys(msgIdToHtml).forEach(function (msgId) {\r\n            var /** @type {?} */ valueFn = function () {\r\n                var _a = converter.convert(msgIdToHtml[msgId], url), i18nNodes = _a.i18nNodes, errors = _a.errors;\r\n                if (errors.length) {\r\n                    throw new Error(\"xtb parse errors:\\n\" + errors.join('\\n'));\r\n                }\r\n                return i18nNodes;\r\n            };\r\n            createLazyProperty(i18nNodesByMsgId, msgId, valueFn);\r\n        });\r\n        if (errors.length) {\r\n            throw new Error(\"xtb parse errors:\\n\" + errors.join('\\n'));\r\n        }\r\n        return { locale: /** @type {?} */ ((locale)), i18nNodesByMsgId: i18nNodesByMsgId };\r\n    };\r\n    /**\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Xtb.prototype.digest = function (message) { return digest$1(message); };\r\n    /**\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    Xtb.prototype.createNameMapper = function (message) {\r\n        return new SimplePlaceholderMapper(message, toPublicName);\r\n    };\r\n    return Xtb;\r\n}(Serializer));\r\n/**\r\n * @param {?} messages\r\n * @param {?} id\r\n * @param {?} valueFn\r\n * @return {?}\r\n */\r\nfunction createLazyProperty(messages, id, valueFn) {\r\n    Object.defineProperty(messages, id, {\r\n        configurable: true,\r\n        enumerable: true,\r\n        get: function () {\r\n            var /** @type {?} */ value = valueFn();\r\n            Object.defineProperty(messages, id, { enumerable: true, value: value });\r\n            return value;\r\n        },\r\n        set: function (_) { throw new Error('Could not overwrite an XTB translation'); },\r\n    });\r\n}\r\nvar XtbParser = (function () {\r\n    function XtbParser() {\r\n        this._locale = null;\r\n    }\r\n    /**\r\n     * @param {?} xtb\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    XtbParser.prototype.parse = function (xtb, url) {\r\n        this._bundleDepth = 0;\r\n        this._msgIdToHtml = {};\r\n        // We can not parse the ICU messages at this point as some messages might not originate\r\n        // from Angular that could not be lex'd.\r\n        var /** @type {?} */ xml = new XmlParser().parse(xtb, url, false);\r\n        this._errors = xml.errors;\r\n        visitAll(this, xml.rootNodes);\r\n        return {\r\n            msgIdToHtml: this._msgIdToHtml,\r\n            errors: this._errors,\r\n            locale: this._locale,\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XtbParser.prototype.visitElement = function (element, context) {\r\n        switch (element.name) {\r\n            case _TRANSLATIONS_TAG:\r\n                this._bundleDepth++;\r\n                if (this._bundleDepth > 1) {\r\n                    this._addError(element, \"<\" + _TRANSLATIONS_TAG + \"> elements can not be nested\");\r\n                }\r\n                var /** @type {?} */ langAttr = element.attrs.find(function (attr) { return attr.name === 'lang'; });\r\n                if (langAttr) {\r\n                    this._locale = langAttr.value;\r\n                }\r\n                visitAll(this, element.children, null);\r\n                this._bundleDepth--;\r\n                break;\r\n            case _TRANSLATION_TAG:\r\n                var /** @type {?} */ idAttr = element.attrs.find(function (attr) { return attr.name === 'id'; });\r\n                if (!idAttr) {\r\n                    this._addError(element, \"<\" + _TRANSLATION_TAG + \"> misses the \\\"id\\\" attribute\");\r\n                }\r\n                else {\r\n                    var /** @type {?} */ id = idAttr.value;\r\n                    if (this._msgIdToHtml.hasOwnProperty(id)) {\r\n                        this._addError(element, \"Duplicated translations for msg \" + id);\r\n                    }\r\n                    else {\r\n                        var /** @type {?} */ innerTextStart = ((element.startSourceSpan)).end.offset;\r\n                        var /** @type {?} */ innerTextEnd = ((element.endSourceSpan)).start.offset;\r\n                        var /** @type {?} */ content = ((element.startSourceSpan)).start.file.content;\r\n                        var /** @type {?} */ innerText = content.slice(/** @type {?} */ ((innerTextStart)), /** @type {?} */ ((innerTextEnd)));\r\n                        this._msgIdToHtml[id] = innerText;\r\n                    }\r\n                }\r\n                break;\r\n            default:\r\n                this._addError(element, 'Unexpected tag');\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XtbParser.prototype.visitAttribute = function (attribute, context) { };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XtbParser.prototype.visitText = function (text, context) { };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XtbParser.prototype.visitComment = function (comment, context) { };\r\n    /**\r\n     * @param {?} expansion\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XtbParser.prototype.visitExpansion = function (expansion, context) { };\r\n    /**\r\n     * @param {?} expansionCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XtbParser.prototype.visitExpansionCase = function (expansionCase, context) { };\r\n    /**\r\n     * @param {?} node\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    XtbParser.prototype._addError = function (node, message) {\r\n        this._errors.push(new I18nError(/** @type {?} */ ((node.sourceSpan)), message));\r\n    };\r\n    return XtbParser;\r\n}());\r\nvar XmlToI18n$2 = (function () {\r\n    function XmlToI18n$2() {\r\n    }\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$2.prototype.convert = function (message, url) {\r\n        var /** @type {?} */ xmlIcu = new XmlParser().parse(message, url, true);\r\n        this._errors = xmlIcu.errors;\r\n        var /** @type {?} */ i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0 ?\r\n            [] :\r\n            visitAll(this, xmlIcu.rootNodes);\r\n        return {\r\n            i18nNodes: i18nNodes,\r\n            errors: this._errors,\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$2.prototype.visitText = function (text, context) { return new Text$1(text.value, /** @type {?} */ ((text.sourceSpan))); };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$2.prototype.visitExpansion = function (icu, context) {\r\n        var /** @type {?} */ caseMap = {};\r\n        visitAll(this, icu.cases).forEach(function (c) {\r\n            caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);\r\n        });\r\n        return new Icu(icu.switchValue, icu.type, caseMap, icu.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} icuCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$2.prototype.visitExpansionCase = function (icuCase, context) {\r\n        return {\r\n            value: icuCase.value,\r\n            nodes: visitAll(this, icuCase.expression),\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$2.prototype.visitElement = function (el, context) {\r\n        if (el.name === _PLACEHOLDER_TAG$3) {\r\n            var /** @type {?} */ nameAttr = el.attrs.find(function (attr) { return attr.name === 'name'; });\r\n            if (nameAttr) {\r\n                return new Placeholder('', nameAttr.value, /** @type {?} */ ((el.sourceSpan)));\r\n            }\r\n            this._addError(el, \"<\" + _PLACEHOLDER_TAG$3 + \"> misses the \\\"name\\\" attribute\");\r\n        }\r\n        else {\r\n            this._addError(el, \"Unexpected tag\");\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$2.prototype.visitComment = function (comment, context) { };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$2.prototype.visitAttribute = function (attribute, context) { };\r\n    /**\r\n     * @param {?} node\r\n     * @param {?} message\r\n     * @return {?}\r\n     */\r\n    XmlToI18n$2.prototype._addError = function (node, message) {\r\n        this._errors.push(new I18nError(/** @type {?} */ ((node.sourceSpan)), message));\r\n    };\r\n    return XmlToI18n$2;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar HtmlParser = (function (_super) {\r\n    __extends(HtmlParser, _super);\r\n    function HtmlParser() {\r\n        return _super.call(this, getHtmlTagDefinition) || this;\r\n    }\r\n    /**\r\n     * @param {?} source\r\n     * @param {?} url\r\n     * @param {?=} parseExpansionForms\r\n     * @param {?=} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    HtmlParser.prototype.parse = function (source, url, parseExpansionForms, interpolationConfig) {\r\n        if (parseExpansionForms === void 0) { parseExpansionForms = false; }\r\n        if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\r\n        return _super.prototype.parse.call(this, source, url, parseExpansionForms, interpolationConfig);\r\n    };\r\n    return HtmlParser;\r\n}(Parser$1));\r\nHtmlParser.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nHtmlParser.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A container for translated messages\r\n */\r\nvar TranslationBundle = (function () {\r\n    /**\r\n     * @param {?=} _i18nNodesByMsgId\r\n     * @param {?=} locale\r\n     * @param {?=} digest\r\n     * @param {?=} mapperFactory\r\n     * @param {?=} missingTranslationStrategy\r\n     * @param {?=} console\r\n     */\r\n    function TranslationBundle(_i18nNodesByMsgId, locale, digest, mapperFactory, missingTranslationStrategy, console) {\r\n        if (_i18nNodesByMsgId === void 0) { _i18nNodesByMsgId = {}; }\r\n        if (missingTranslationStrategy === void 0) { missingTranslationStrategy = MissingTranslationStrategy.Warning; }\r\n        this._i18nNodesByMsgId = _i18nNodesByMsgId;\r\n        this.digest = digest;\r\n        this.mapperFactory = mapperFactory;\r\n        this._i18nToHtml = new I18nToHtmlVisitor(_i18nNodesByMsgId, locale, digest, mapperFactory, missingTranslationStrategy, console);\r\n    }\r\n    /**\r\n     * @param {?} content\r\n     * @param {?} url\r\n     * @param {?} serializer\r\n     * @param {?} missingTranslationStrategy\r\n     * @param {?=} console\r\n     * @return {?}\r\n     */\r\n    TranslationBundle.load = function (content, url, serializer, missingTranslationStrategy, console) {\r\n        var _a = serializer.load(content, url), locale = _a.locale, i18nNodesByMsgId = _a.i18nNodesByMsgId;\r\n        var /** @type {?} */ digestFn = function (m) { return serializer.digest(m); };\r\n        var /** @type {?} */ mapperFactory = function (m) { return ((serializer.createNameMapper(m))); };\r\n        return new TranslationBundle(i18nNodesByMsgId, locale, digestFn, mapperFactory, missingTranslationStrategy, console);\r\n    };\r\n    /**\r\n     * @param {?} srcMsg\r\n     * @return {?}\r\n     */\r\n    TranslationBundle.prototype.get = function (srcMsg) {\r\n        var /** @type {?} */ html = this._i18nToHtml.convert(srcMsg);\r\n        if (html.errors.length) {\r\n            throw new Error(html.errors.join('\\n'));\r\n        }\r\n        return html.nodes;\r\n    };\r\n    /**\r\n     * @param {?} srcMsg\r\n     * @return {?}\r\n     */\r\n    TranslationBundle.prototype.has = function (srcMsg) { return this.digest(srcMsg) in this._i18nNodesByMsgId; };\r\n    return TranslationBundle;\r\n}());\r\nvar I18nToHtmlVisitor = (function () {\r\n    /**\r\n     * @param {?=} _i18nNodesByMsgId\r\n     * @param {?=} _locale\r\n     * @param {?=} _digest\r\n     * @param {?=} _mapperFactory\r\n     * @param {?=} _missingTranslationStrategy\r\n     * @param {?=} _console\r\n     */\r\n    function I18nToHtmlVisitor(_i18nNodesByMsgId, _locale, _digest, _mapperFactory, _missingTranslationStrategy, _console) {\r\n        if (_i18nNodesByMsgId === void 0) { _i18nNodesByMsgId = {}; }\r\n        this._i18nNodesByMsgId = _i18nNodesByMsgId;\r\n        this._locale = _locale;\r\n        this._digest = _digest;\r\n        this._mapperFactory = _mapperFactory;\r\n        this._missingTranslationStrategy = _missingTranslationStrategy;\r\n        this._console = _console;\r\n        this._contextStack = [];\r\n        this._errors = [];\r\n    }\r\n    /**\r\n     * @param {?} srcMsg\r\n     * @return {?}\r\n     */\r\n    I18nToHtmlVisitor.prototype.convert = function (srcMsg) {\r\n        this._contextStack.length = 0;\r\n        this._errors.length = 0;\r\n        // i18n to text\r\n        var /** @type {?} */ text = this._convertToText(srcMsg);\r\n        // text to html\r\n        var /** @type {?} */ url = srcMsg.nodes[0].sourceSpan.start.file.url;\r\n        var /** @type {?} */ html = new HtmlParser().parse(text, url, true);\r\n        return {\r\n            nodes: html.rootNodes,\r\n            errors: this._errors.concat(html.errors),\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    I18nToHtmlVisitor.prototype.visitText = function (text, context) { return text.value; };\r\n    /**\r\n     * @param {?} container\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    I18nToHtmlVisitor.prototype.visitContainer = function (container, context) {\r\n        var _this = this;\r\n        return container.children.map(function (n) { return n.visit(_this); }).join('');\r\n    };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    I18nToHtmlVisitor.prototype.visitIcu = function (icu, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ cases = Object.keys(icu.cases).map(function (k) { return k + \" {\" + icu.cases[k].visit(_this) + \"}\"; });\r\n        // TODO(vicb): Once all format switch to using expression placeholders\r\n        // we should throw when the placeholder is not in the source message\r\n        var /** @type {?} */ exp = this._srcMsg.placeholders.hasOwnProperty(icu.expression) ?\r\n            this._srcMsg.placeholders[icu.expression] :\r\n            icu.expression;\r\n        return \"{\" + exp + \", \" + icu.type + \", \" + cases.join(' ') + \"}\";\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    I18nToHtmlVisitor.prototype.visitPlaceholder = function (ph, context) {\r\n        var /** @type {?} */ phName = this._mapper(ph.name);\r\n        if (this._srcMsg.placeholders.hasOwnProperty(phName)) {\r\n            return this._srcMsg.placeholders[phName];\r\n        }\r\n        if (this._srcMsg.placeholderToMessage.hasOwnProperty(phName)) {\r\n            return this._convertToText(this._srcMsg.placeholderToMessage[phName]);\r\n        }\r\n        this._addError(ph, \"Unknown placeholder \\\"\" + ph.name + \"\\\"\");\r\n        return '';\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    I18nToHtmlVisitor.prototype.visitTagPlaceholder = function (ph, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ tag = \"\" + ph.tag;\r\n        var /** @type {?} */ attrs = Object.keys(ph.attrs).map(function (name) { return name + \"=\\\"\" + ph.attrs[name] + \"\\\"\"; }).join(' ');\r\n        if (ph.isVoid) {\r\n            return \"<\" + tag + \" \" + attrs + \"/>\";\r\n        }\r\n        var /** @type {?} */ children = ph.children.map(function (c) { return c.visit(_this); }).join('');\r\n        return \"<\" + tag + \" \" + attrs + \">\" + children + \"</\" + tag + \">\";\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    I18nToHtmlVisitor.prototype.visitIcuPlaceholder = function (ph, context) {\r\n        // An ICU placeholder references the source message to be serialized\r\n        return this._convertToText(this._srcMsg.placeholderToMessage[ph.name]);\r\n    };\r\n    /**\r\n     * Convert a source message to a translated text string:\r\n     * - text nodes are replaced with their translation,\r\n     * - placeholders are replaced with their content,\r\n     * - ICU nodes are converted to ICU expressions.\r\n     * @param {?} srcMsg\r\n     * @return {?}\r\n     */\r\n    I18nToHtmlVisitor.prototype._convertToText = function (srcMsg) {\r\n        var _this = this;\r\n        var /** @type {?} */ id = this._digest(srcMsg);\r\n        var /** @type {?} */ mapper = this._mapperFactory ? this._mapperFactory(srcMsg) : null;\r\n        var /** @type {?} */ nodes;\r\n        this._contextStack.push({ msg: this._srcMsg, mapper: this._mapper });\r\n        this._srcMsg = srcMsg;\r\n        if (this._i18nNodesByMsgId.hasOwnProperty(id)) {\r\n            // When there is a translation use its nodes as the source\r\n            // And create a mapper to convert serialized placeholder names to internal names\r\n            nodes = this._i18nNodesByMsgId[id];\r\n            this._mapper = function (name) { return mapper ? ((mapper.toInternalName(name))) : name; };\r\n        }\r\n        else {\r\n            // When no translation has been found\r\n            // - report an error / a warning / nothing,\r\n            // - use the nodes from the original message\r\n            // - placeholders are already internal and need no mapper\r\n            if (this._missingTranslationStrategy === MissingTranslationStrategy.Error) {\r\n                var /** @type {?} */ ctx = this._locale ? \" for locale \\\"\" + this._locale + \"\\\"\" : '';\r\n                this._addError(srcMsg.nodes[0], \"Missing translation for message \\\"\" + id + \"\\\"\" + ctx);\r\n            }\r\n            else if (this._console &&\r\n                this._missingTranslationStrategy === MissingTranslationStrategy.Warning) {\r\n                var /** @type {?} */ ctx = this._locale ? \" for locale \\\"\" + this._locale + \"\\\"\" : '';\r\n                this._console.warn(\"Missing translation for message \\\"\" + id + \"\\\"\" + ctx);\r\n            }\r\n            nodes = srcMsg.nodes;\r\n            this._mapper = function (name) { return name; };\r\n        }\r\n        var /** @type {?} */ text = nodes.map(function (node) { return node.visit(_this); }).join('');\r\n        var /** @type {?} */ context = ((this._contextStack.pop()));\r\n        this._srcMsg = context.msg;\r\n        this._mapper = context.mapper;\r\n        return text;\r\n    };\r\n    /**\r\n     * @param {?} el\r\n     * @param {?} msg\r\n     * @return {?}\r\n     */\r\n    I18nToHtmlVisitor.prototype._addError = function (el, msg) {\r\n        this._errors.push(new I18nError(el.sourceSpan, msg));\r\n    };\r\n    return I18nToHtmlVisitor;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar I18NHtmlParser = (function () {\r\n    /**\r\n     * @param {?} _htmlParser\r\n     * @param {?=} translations\r\n     * @param {?=} translationsFormat\r\n     * @param {?=} missingTranslation\r\n     * @param {?=} console\r\n     */\r\n    function I18NHtmlParser(_htmlParser, translations, translationsFormat, missingTranslation, console) {\r\n        if (missingTranslation === void 0) { missingTranslation = MissingTranslationStrategy.Warning; }\r\n        this._htmlParser = _htmlParser;\r\n        if (translations) {\r\n            var serializer = createSerializer(translationsFormat);\r\n            this._translationBundle =\r\n                TranslationBundle.load(translations, 'i18n', serializer, missingTranslation, console);\r\n        }\r\n    }\r\n    /**\r\n     * @param {?} source\r\n     * @param {?} url\r\n     * @param {?=} parseExpansionForms\r\n     * @param {?=} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    I18NHtmlParser.prototype.parse = function (source, url, parseExpansionForms, interpolationConfig) {\r\n        if (parseExpansionForms === void 0) { parseExpansionForms = false; }\r\n        if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\r\n        var /** @type {?} */ parseResult = this._htmlParser.parse(source, url, parseExpansionForms, interpolationConfig);\r\n        if (!this._translationBundle) {\r\n            // Do not enable i18n when no translation bundle is provided\r\n            return parseResult;\r\n        }\r\n        if (parseResult.errors.length) {\r\n            return new ParseTreeResult(parseResult.rootNodes, parseResult.errors);\r\n        }\r\n        return mergeTranslations(parseResult.rootNodes, this._translationBundle, interpolationConfig, [], {});\r\n    };\r\n    return I18NHtmlParser;\r\n}());\r\n/**\r\n * @param {?=} format\r\n * @return {?}\r\n */\r\nfunction createSerializer(format) {\r\n    format = (format || 'xlf').toLowerCase();\r\n    switch (format) {\r\n        case 'xmb':\r\n            return new Xmb();\r\n        case 'xtb':\r\n            return new Xtb();\r\n        case 'xliff2':\r\n        case 'xlf2':\r\n            return new Xliff2();\r\n        case 'xliff':\r\n        case 'xlf':\r\n        default:\r\n            return new Xliff();\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar CORE = assetUrl('core');\r\nvar Identifiers = (function () {\r\n    function Identifiers() {\r\n    }\r\n    return Identifiers;\r\n}());\r\nIdentifiers.ANALYZE_FOR_ENTRY_COMPONENTS = {\r\n    name: 'ANALYZE_FOR_ENTRY_COMPONENTS',\r\n    moduleUrl: CORE,\r\n    runtime: ANALYZE_FOR_ENTRY_COMPONENTS\r\n};\r\nIdentifiers.ElementRef = { name: 'ElementRef', moduleUrl: CORE, runtime: ElementRef };\r\nIdentifiers.NgModuleRef = { name: 'NgModuleRef', moduleUrl: CORE, runtime: NgModuleRef };\r\nIdentifiers.ViewContainerRef = { name: 'ViewContainerRef', moduleUrl: CORE, runtime: ViewContainerRef };\r\nIdentifiers.ChangeDetectorRef = { name: 'ChangeDetectorRef', moduleUrl: CORE, runtime: ChangeDetectorRef };\r\nIdentifiers.QueryList = { name: 'QueryList', moduleUrl: CORE, runtime: QueryList };\r\nIdentifiers.TemplateRef = { name: 'TemplateRef', moduleUrl: CORE, runtime: TemplateRef };\r\nIdentifiers.CodegenComponentFactoryResolver = {\r\n    name: 'ɵCodegenComponentFactoryResolver',\r\n    moduleUrl: CORE,\r\n    runtime: ɵCodegenComponentFactoryResolver\r\n};\r\nIdentifiers.ComponentFactoryResolver = {\r\n    name: 'ComponentFactoryResolver',\r\n    moduleUrl: CORE,\r\n    runtime: ComponentFactoryResolver\r\n};\r\nIdentifiers.ComponentFactory = { name: 'ComponentFactory', moduleUrl: CORE, runtime: ComponentFactory };\r\nIdentifiers.ComponentRef = { name: 'ComponentRef', moduleUrl: CORE, runtime: ComponentRef };\r\nIdentifiers.NgModuleFactory = { name: 'NgModuleFactory', moduleUrl: CORE, runtime: NgModuleFactory };\r\nIdentifiers.NgModuleInjector = {\r\n    name: 'ɵNgModuleInjector',\r\n    moduleUrl: CORE,\r\n    runtime: ɵNgModuleInjector,\r\n};\r\nIdentifiers.RegisterModuleFactoryFn = {\r\n    name: 'ɵregisterModuleFactory',\r\n    moduleUrl: CORE,\r\n    runtime: ɵregisterModuleFactory,\r\n};\r\nIdentifiers.Injector = { name: 'Injector', moduleUrl: CORE, runtime: Injector };\r\nIdentifiers.ViewEncapsulation = { name: 'ViewEncapsulation', moduleUrl: CORE, runtime: ViewEncapsulation };\r\nIdentifiers.ChangeDetectionStrategy = {\r\n    name: 'ChangeDetectionStrategy',\r\n    moduleUrl: CORE,\r\n    runtime: ChangeDetectionStrategy\r\n};\r\nIdentifiers.SecurityContext = {\r\n    name: 'SecurityContext',\r\n    moduleUrl: CORE,\r\n    runtime: SecurityContext,\r\n};\r\nIdentifiers.LOCALE_ID = { name: 'LOCALE_ID', moduleUrl: CORE, runtime: LOCALE_ID };\r\nIdentifiers.TRANSLATIONS_FORMAT = { name: 'TRANSLATIONS_FORMAT', moduleUrl: CORE, runtime: TRANSLATIONS_FORMAT };\r\nIdentifiers.inlineInterpolate = { name: 'ɵinlineInterpolate', moduleUrl: CORE, runtime: ɵinlineInterpolate };\r\nIdentifiers.interpolate = { name: 'ɵinterpolate', moduleUrl: CORE, runtime: ɵinterpolate };\r\nIdentifiers.EMPTY_ARRAY = { name: 'ɵEMPTY_ARRAY', moduleUrl: CORE, runtime: ɵEMPTY_ARRAY };\r\nIdentifiers.EMPTY_MAP = { name: 'ɵEMPTY_MAP', moduleUrl: CORE, runtime: ɵEMPTY_MAP };\r\nIdentifiers.Renderer = { name: 'Renderer', moduleUrl: CORE, runtime: Renderer };\r\nIdentifiers.viewDef = { name: 'ɵvid', moduleUrl: CORE, runtime: ɵvid };\r\nIdentifiers.elementDef = { name: 'ɵeld', moduleUrl: CORE, runtime: ɵeld };\r\nIdentifiers.anchorDef = { name: 'ɵand', moduleUrl: CORE, runtime: ɵand };\r\nIdentifiers.textDef = { name: 'ɵted', moduleUrl: CORE, runtime: ɵted };\r\nIdentifiers.directiveDef = { name: 'ɵdid', moduleUrl: CORE, runtime: ɵdid };\r\nIdentifiers.providerDef = { name: 'ɵprd', moduleUrl: CORE, runtime: ɵprd };\r\nIdentifiers.queryDef = { name: 'ɵqud', moduleUrl: CORE, runtime: ɵqud };\r\nIdentifiers.pureArrayDef = { name: 'ɵpad', moduleUrl: CORE, runtime: ɵpad };\r\nIdentifiers.pureObjectDef = { name: 'ɵpod', moduleUrl: CORE, runtime: ɵpod };\r\nIdentifiers.purePipeDef = { name: 'ɵppd', moduleUrl: CORE, runtime: ɵppd };\r\nIdentifiers.pipeDef = { name: 'ɵpid', moduleUrl: CORE, runtime: ɵpid };\r\nIdentifiers.nodeValue = { name: 'ɵnov', moduleUrl: CORE, runtime: ɵnov };\r\nIdentifiers.ngContentDef = { name: 'ɵncd', moduleUrl: CORE, runtime: ɵncd };\r\nIdentifiers.unwrapValue = { name: 'ɵunv', moduleUrl: CORE, runtime: ɵunv };\r\nIdentifiers.createRendererType2 = { name: 'ɵcrt', moduleUrl: CORE, runtime: ɵcrt };\r\nIdentifiers.RendererType2 = {\r\n    name: 'RendererType2',\r\n    moduleUrl: CORE,\r\n    // type only\r\n    runtime: null\r\n};\r\nIdentifiers.ViewDefinition = {\r\n    name: 'ɵViewDefinition',\r\n    moduleUrl: CORE,\r\n    // type only\r\n    runtime: null\r\n};\r\nIdentifiers.createComponentFactory = { name: 'ɵccf', moduleUrl: CORE, runtime: ɵccf };\r\n/**\r\n * @param {?} pkg\r\n * @param {?=} path\r\n * @param {?=} type\r\n * @return {?}\r\n */\r\nfunction assetUrl(pkg, path, type) {\r\n    if (path === void 0) { path = null; }\r\n    if (type === void 0) { type = 'src'; }\r\n    if (path == null) {\r\n        return \"@angular/\" + pkg;\r\n    }\r\n    else {\r\n        return \"@angular/\" + pkg + \"/\" + type + \"/\" + path;\r\n    }\r\n}\r\n/**\r\n * @param {?} identifier\r\n * @return {?}\r\n */\r\nfunction resolveIdentifier(identifier) {\r\n    var /** @type {?} */ name = identifier.name;\r\n    return ɵreflector.resolveIdentifier(name, identifier.moduleUrl, null, identifier.runtime);\r\n}\r\n/**\r\n * @param {?} identifier\r\n * @return {?}\r\n */\r\nfunction createIdentifier(identifier) {\r\n    return { reference: resolveIdentifier(identifier) };\r\n}\r\n/**\r\n * @param {?} identifier\r\n * @return {?}\r\n */\r\nfunction identifierToken(identifier) {\r\n    return { identifier: identifier };\r\n}\r\n/**\r\n * @param {?} identifier\r\n * @return {?}\r\n */\r\nfunction createIdentifierToken(identifier) {\r\n    return identifierToken(createIdentifier(identifier));\r\n}\r\n/**\r\n * @param {?} enumType\r\n * @param {?} name\r\n * @return {?}\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n// http://cldr.unicode.org/index/cldr-spec/plural-rules\r\nvar PLURAL_CASES = ['zero', 'one', 'two', 'few', 'many', 'other'];\r\n/**\r\n * Expands special forms into elements.\r\n *\r\n * For example,\r\n *\r\n * ```\r\n * { messages.length, plural,\r\n *   =0 {zero}\r\n *   =1 {one}\r\n *   other {more than one}\r\n * }\r\n * ```\r\n *\r\n * will be expanded into\r\n *\r\n * ```\r\n * <ng-container [ngPlural]=\"messages.length\">\r\n *   <ng-template ngPluralCase=\"=0\">zero</ng-template>\r\n *   <ng-template ngPluralCase=\"=1\">one</ng-template>\r\n *   <ng-template ngPluralCase=\"other\">more than one</ng-template>\r\n * </ng-container>\r\n * ```\r\n * @param {?} nodes\r\n * @return {?}\r\n */\r\nfunction expandNodes(nodes) {\r\n    var /** @type {?} */ expander = new _Expander();\r\n    return new ExpansionResult(visitAll(expander, nodes), expander.isExpanded, expander.errors);\r\n}\r\nvar ExpansionResult = (function () {\r\n    /**\r\n     * @param {?} nodes\r\n     * @param {?} expanded\r\n     * @param {?} errors\r\n     */\r\n    function ExpansionResult(nodes, expanded, errors) {\r\n        this.nodes = nodes;\r\n        this.expanded = expanded;\r\n        this.errors = errors;\r\n    }\r\n    return ExpansionResult;\r\n}());\r\nvar ExpansionError = (function (_super) {\r\n    __extends(ExpansionError, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} errorMsg\r\n     */\r\n    function ExpansionError(span, errorMsg) {\r\n        return _super.call(this, span, errorMsg) || this;\r\n    }\r\n    return ExpansionError;\r\n}(ParseError));\r\n/**\r\n * Expand expansion forms (plural, select) to directives\r\n *\r\n * \\@internal\r\n */\r\nvar _Expander = (function () {\r\n    function _Expander() {\r\n        this.isExpanded = false;\r\n        this.errors = [];\r\n    }\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Expander.prototype.visitElement = function (element, context) {\r\n        return new Element(element.name, element.attrs, visitAll(this, element.children), element.sourceSpan, element.startSourceSpan, element.endSourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Expander.prototype.visitAttribute = function (attribute, context) { return attribute; };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Expander.prototype.visitText = function (text, context) { return text; };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Expander.prototype.visitComment = function (comment, context) { return comment; };\r\n    /**\r\n     * @param {?} icu\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Expander.prototype.visitExpansion = function (icu, context) {\r\n        this.isExpanded = true;\r\n        return icu.type == 'plural' ? _expandPluralForm(icu, this.errors) :\r\n            _expandDefaultForm(icu, this.errors);\r\n    };\r\n    /**\r\n     * @param {?} icuCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _Expander.prototype.visitExpansionCase = function (icuCase, context) {\r\n        throw new Error('Should not be reached');\r\n    };\r\n    return _Expander;\r\n}());\r\n/**\r\n * @param {?} ast\r\n * @param {?} errors\r\n * @return {?}\r\n */\r\nfunction _expandPluralForm(ast, errors) {\r\n    var /** @type {?} */ children = ast.cases.map(function (c) {\r\n        if (PLURAL_CASES.indexOf(c.value) == -1 && !c.value.match(/^=\\d+$/)) {\r\n            errors.push(new ExpansionError(c.valueSourceSpan, \"Plural cases should be \\\"=<number>\\\" or one of \" + PLURAL_CASES.join(\", \")));\r\n        }\r\n        var /** @type {?} */ expansionResult = expandNodes(c.expression);\r\n        errors.push.apply(errors, expansionResult.errors);\r\n        return new Element(\"ng-template\", [new Attribute$1('ngPluralCase', \"\" + c.value, c.valueSourceSpan)], expansionResult.nodes, c.sourceSpan, c.sourceSpan, c.sourceSpan);\r\n    });\r\n    var /** @type {?} */ switchAttr = new Attribute$1('[ngPlural]', ast.switchValue, ast.switchValueSourceSpan);\r\n    return new Element('ng-container', [switchAttr], children, ast.sourceSpan, ast.sourceSpan, ast.sourceSpan);\r\n}\r\n/**\r\n * @param {?} ast\r\n * @param {?} errors\r\n * @return {?}\r\n */\r\nfunction _expandDefaultForm(ast, errors) {\r\n    var /** @type {?} */ children = ast.cases.map(function (c) {\r\n        var /** @type {?} */ expansionResult = expandNodes(c.expression);\r\n        errors.push.apply(errors, expansionResult.errors);\r\n        if (c.value === 'other') {\r\n            // other is the default case when no values match\r\n            return new Element(\"ng-template\", [new Attribute$1('ngSwitchDefault', '', c.valueSourceSpan)], expansionResult.nodes, c.sourceSpan, c.sourceSpan, c.sourceSpan);\r\n        }\r\n        return new Element(\"ng-template\", [new Attribute$1('ngSwitchCase', \"\" + c.value, c.valueSourceSpan)], expansionResult.nodes, c.sourceSpan, c.sourceSpan, c.sourceSpan);\r\n    });\r\n    var /** @type {?} */ switchAttr = new Attribute$1('[ngSwitch]', ast.switchValue, ast.switchValueSourceSpan);\r\n    return new Element('ng-container', [switchAttr], children, ast.sourceSpan, ast.sourceSpan, ast.sourceSpan);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ProviderError = (function (_super) {\r\n    __extends(ProviderError, _super);\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} span\r\n     */\r\n    function ProviderError(message, span) {\r\n        return _super.call(this, span, message) || this;\r\n    }\r\n    return ProviderError;\r\n}(ParseError));\r\nvar ProviderViewContext = (function () {\r\n    /**\r\n     * @param {?} component\r\n     */\r\n    function ProviderViewContext(component) {\r\n        var _this = this;\r\n        this.component = component;\r\n        this.errors = [];\r\n        this.viewQueries = _getViewQueries(component);\r\n        this.viewProviders = new Map();\r\n        component.viewProviders.forEach(function (provider) {\r\n            if (_this.viewProviders.get(tokenReference(provider.token)) == null) {\r\n                _this.viewProviders.set(tokenReference(provider.token), true);\r\n            }\r\n        });\r\n    }\r\n    return ProviderViewContext;\r\n}());\r\nvar ProviderElementContext = (function () {\r\n    /**\r\n     * @param {?} viewContext\r\n     * @param {?} _parent\r\n     * @param {?} _isViewRoot\r\n     * @param {?} _directiveAsts\r\n     * @param {?} attrs\r\n     * @param {?} refs\r\n     * @param {?} isTemplate\r\n     * @param {?} contentQueryStartId\r\n     * @param {?} _sourceSpan\r\n     */\r\n    function ProviderElementContext(viewContext, _parent, _isViewRoot, _directiveAsts, attrs, refs, isTemplate, contentQueryStartId, _sourceSpan) {\r\n        var _this = this;\r\n        this.viewContext = viewContext;\r\n        this._parent = _parent;\r\n        this._isViewRoot = _isViewRoot;\r\n        this._directiveAsts = _directiveAsts;\r\n        this._sourceSpan = _sourceSpan;\r\n        this._transformedProviders = new Map();\r\n        this._seenProviders = new Map();\r\n        this._hasViewContainer = false;\r\n        this._queriedTokens = new Map();\r\n        this._attrs = {};\r\n        attrs.forEach(function (attrAst) { return _this._attrs[attrAst.name] = attrAst.value; });\r\n        var directivesMeta = _directiveAsts.map(function (directiveAst) { return directiveAst.directive; });\r\n        this._allProviders =\r\n            _resolveProvidersFromDirectives(directivesMeta, _sourceSpan, viewContext.errors);\r\n        this._contentQueries = _getContentQueries(contentQueryStartId, directivesMeta);\r\n        Array.from(this._allProviders.values()).forEach(function (provider) {\r\n            _this._addQueryReadsTo(provider.token, provider.token, _this._queriedTokens);\r\n        });\r\n        if (isTemplate) {\r\n            var templateRefId = createIdentifierToken(Identifiers.TemplateRef);\r\n            this._addQueryReadsTo(templateRefId, templateRefId, this._queriedTokens);\r\n        }\r\n        refs.forEach(function (refAst) {\r\n            var defaultQueryValue = refAst.value || createIdentifierToken(Identifiers.ElementRef);\r\n            _this._addQueryReadsTo({ value: refAst.name }, defaultQueryValue, _this._queriedTokens);\r\n        });\r\n        if (this._queriedTokens.get(resolveIdentifier(Identifiers.ViewContainerRef))) {\r\n            this._hasViewContainer = true;\r\n        }\r\n        // create the providers that we know are eager first\r\n        Array.from(this._allProviders.values()).forEach(function (provider) {\r\n            var eager = provider.eager || _this._queriedTokens.get(tokenReference(provider.token));\r\n            if (eager) {\r\n                _this._getOrCreateLocalProvider(provider.providerType, provider.token, true);\r\n            }\r\n        });\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ProviderElementContext.prototype.afterElement = function () {\r\n        var _this = this;\r\n        // collect lazy providers\r\n        Array.from(this._allProviders.values()).forEach(function (provider) {\r\n            _this._getOrCreateLocalProvider(provider.providerType, provider.token, false);\r\n        });\r\n    };\r\n    Object.defineProperty(ProviderElementContext.prototype, \"transformProviders\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return Array.from(this._transformedProviders.values());\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ProviderElementContext.prototype, \"transformedDirectiveAsts\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            var /** @type {?} */ sortedProviderTypes = this.transformProviders.map(function (provider) { return provider.token.identifier; });\r\n            var /** @type {?} */ sortedDirectives = this._directiveAsts.slice();\r\n            sortedDirectives.sort(function (dir1, dir2) { return sortedProviderTypes.indexOf(dir1.directive.type) -\r\n                sortedProviderTypes.indexOf(dir2.directive.type); });\r\n            return sortedDirectives;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ProviderElementContext.prototype, \"transformedHasViewContainer\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._hasViewContainer; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(ProviderElementContext.prototype, \"queryMatches\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            var /** @type {?} */ allMatches = [];\r\n            this._queriedTokens.forEach(function (matches) { allMatches.push.apply(allMatches, matches); });\r\n            return allMatches;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} token\r\n     * @param {?} defaultValue\r\n     * @param {?} queryReadTokens\r\n     * @return {?}\r\n     */\r\n    ProviderElementContext.prototype._addQueryReadsTo = function (token, defaultValue, queryReadTokens) {\r\n        this._getQueriesFor(token).forEach(function (query) {\r\n            var /** @type {?} */ queryValue = query.meta.read || defaultValue;\r\n            var /** @type {?} */ tokenRef = tokenReference(queryValue);\r\n            var /** @type {?} */ queryMatches = queryReadTokens.get(tokenRef);\r\n            if (!queryMatches) {\r\n                queryMatches = [];\r\n                queryReadTokens.set(tokenRef, queryMatches);\r\n            }\r\n            queryMatches.push({ queryId: query.queryId, value: queryValue });\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} token\r\n     * @return {?}\r\n     */\r\n    ProviderElementContext.prototype._getQueriesFor = function (token) {\r\n        var /** @type {?} */ result = [];\r\n        var /** @type {?} */ currentEl = this;\r\n        var /** @type {?} */ distance = 0;\r\n        var /** @type {?} */ queries;\r\n        while (currentEl !== null) {\r\n            queries = currentEl._contentQueries.get(tokenReference(token));\r\n            if (queries) {\r\n                result.push.apply(result, queries.filter(function (query) { return query.meta.descendants || distance <= 1; }));\r\n            }\r\n            if (currentEl._directiveAsts.length > 0) {\r\n                distance++;\r\n            }\r\n            currentEl = currentEl._parent;\r\n        }\r\n        queries = this.viewContext.viewQueries.get(tokenReference(token));\r\n        if (queries) {\r\n            result.push.apply(result, queries);\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} requestingProviderType\r\n     * @param {?} token\r\n     * @param {?} eager\r\n     * @return {?}\r\n     */\r\n    ProviderElementContext.prototype._getOrCreateLocalProvider = function (requestingProviderType, token, eager) {\r\n        var _this = this;\r\n        var /** @type {?} */ resolvedProvider = this._allProviders.get(tokenReference(token));\r\n        if (!resolvedProvider || ((requestingProviderType === ProviderAstType.Directive ||\r\n            requestingProviderType === ProviderAstType.PublicService) &&\r\n            resolvedProvider.providerType === ProviderAstType.PrivateService) ||\r\n            ((requestingProviderType === ProviderAstType.PrivateService ||\r\n                requestingProviderType === ProviderAstType.PublicService) &&\r\n                resolvedProvider.providerType === ProviderAstType.Builtin)) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ transformedProviderAst = this._transformedProviders.get(tokenReference(token));\r\n        if (transformedProviderAst) {\r\n            return transformedProviderAst;\r\n        }\r\n        if (this._seenProviders.get(tokenReference(token)) != null) {\r\n            this.viewContext.errors.push(new ProviderError(\"Cannot instantiate cyclic dependency! \" + tokenName(token), this._sourceSpan));\r\n            return null;\r\n        }\r\n        this._seenProviders.set(tokenReference(token), true);\r\n        var /** @type {?} */ transformedProviders = resolvedProvider.providers.map(function (provider) {\r\n            var /** @type {?} */ transformedUseValue = provider.useValue;\r\n            var /** @type {?} */ transformedUseExisting = ((provider.useExisting));\r\n            var /** @type {?} */ transformedDeps = ((undefined));\r\n            if (provider.useExisting != null) {\r\n                var /** @type {?} */ existingDiDep = ((_this._getDependency(resolvedProvider.providerType, { token: provider.useExisting }, eager)));\r\n                if (existingDiDep.token != null) {\r\n                    transformedUseExisting = existingDiDep.token;\r\n                }\r\n                else {\r\n                    transformedUseExisting = ((null));\r\n                    transformedUseValue = existingDiDep.value;\r\n                }\r\n            }\r\n            else if (provider.useFactory) {\r\n                var /** @type {?} */ deps = provider.deps || provider.useFactory.diDeps;\r\n                transformedDeps =\r\n                    deps.map(function (dep) { return ((_this._getDependency(resolvedProvider.providerType, dep, eager))); });\r\n            }\r\n            else if (provider.useClass) {\r\n                var /** @type {?} */ deps = provider.deps || provider.useClass.diDeps;\r\n                transformedDeps =\r\n                    deps.map(function (dep) { return ((_this._getDependency(resolvedProvider.providerType, dep, eager))); });\r\n            }\r\n            return _transformProvider(provider, {\r\n                useExisting: transformedUseExisting,\r\n                useValue: transformedUseValue,\r\n                deps: transformedDeps\r\n            });\r\n        });\r\n        transformedProviderAst =\r\n            _transformProviderAst(resolvedProvider, { eager: eager, providers: transformedProviders });\r\n        this._transformedProviders.set(tokenReference(token), transformedProviderAst);\r\n        return transformedProviderAst;\r\n    };\r\n    /**\r\n     * @param {?} requestingProviderType\r\n     * @param {?} dep\r\n     * @param {?=} eager\r\n     * @return {?}\r\n     */\r\n    ProviderElementContext.prototype._getLocalDependency = function (requestingProviderType, dep, eager) {\r\n        if (eager === void 0) { eager = false; }\r\n        if (dep.isAttribute) {\r\n            var /** @type {?} */ attrValue = this._attrs[((dep.token)).value];\r\n            return { isValue: true, value: attrValue == null ? null : attrValue };\r\n        }\r\n        if (dep.token != null) {\r\n            // access builtints\r\n            if ((requestingProviderType === ProviderAstType.Directive ||\r\n                requestingProviderType === ProviderAstType.Component)) {\r\n                if (tokenReference(dep.token) === resolveIdentifier(Identifiers.Renderer) ||\r\n                    tokenReference(dep.token) === resolveIdentifier(Identifiers.ElementRef) ||\r\n                    tokenReference(dep.token) === resolveIdentifier(Identifiers.ChangeDetectorRef) ||\r\n                    tokenReference(dep.token) === resolveIdentifier(Identifiers.TemplateRef)) {\r\n                    return dep;\r\n                }\r\n                if (tokenReference(dep.token) === resolveIdentifier(Identifiers.ViewContainerRef)) {\r\n                    this._hasViewContainer = true;\r\n                }\r\n            }\r\n            // access the injector\r\n            if (tokenReference(dep.token) === resolveIdentifier(Identifiers.Injector)) {\r\n                return dep;\r\n            }\r\n            // access providers\r\n            if (this._getOrCreateLocalProvider(requestingProviderType, dep.token, eager) != null) {\r\n                return dep;\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} requestingProviderType\r\n     * @param {?} dep\r\n     * @param {?=} eager\r\n     * @return {?}\r\n     */\r\n    ProviderElementContext.prototype._getDependency = function (requestingProviderType, dep, eager) {\r\n        if (eager === void 0) { eager = false; }\r\n        var /** @type {?} */ currElement = this;\r\n        var /** @type {?} */ currEager = eager;\r\n        var /** @type {?} */ result = null;\r\n        if (!dep.isSkipSelf) {\r\n            result = this._getLocalDependency(requestingProviderType, dep, eager);\r\n        }\r\n        if (dep.isSelf) {\r\n            if (!result && dep.isOptional) {\r\n                result = { isValue: true, value: null };\r\n            }\r\n        }\r\n        else {\r\n            // check parent elements\r\n            while (!result && currElement._parent) {\r\n                var /** @type {?} */ prevElement = currElement;\r\n                currElement = currElement._parent;\r\n                if (prevElement._isViewRoot) {\r\n                    currEager = false;\r\n                }\r\n                result = currElement._getLocalDependency(ProviderAstType.PublicService, dep, currEager);\r\n            }\r\n            // check @Host restriction\r\n            if (!result) {\r\n                if (!dep.isHost || this.viewContext.component.isHost ||\r\n                    this.viewContext.component.type.reference === tokenReference(/** @type {?} */ ((dep.token))) ||\r\n                    this.viewContext.viewProviders.get(tokenReference(/** @type {?} */ ((dep.token)))) != null) {\r\n                    result = dep;\r\n                }\r\n                else {\r\n                    result = dep.isOptional ? result = { isValue: true, value: null } : null;\r\n                }\r\n            }\r\n        }\r\n        if (!result) {\r\n            this.viewContext.errors.push(new ProviderError(\"No provider for \" + tokenName(/** @type {?} */ ((dep.token))), this._sourceSpan));\r\n        }\r\n        return result;\r\n    };\r\n    return ProviderElementContext;\r\n}());\r\nvar NgModuleProviderAnalyzer = (function () {\r\n    /**\r\n     * @param {?} ngModule\r\n     * @param {?} extraProviders\r\n     * @param {?} sourceSpan\r\n     */\r\n    function NgModuleProviderAnalyzer(ngModule, extraProviders, sourceSpan) {\r\n        var _this = this;\r\n        this._transformedProviders = new Map();\r\n        this._seenProviders = new Map();\r\n        this._errors = [];\r\n        this._allProviders = new Map();\r\n        ngModule.transitiveModule.modules.forEach(function (ngModuleType) {\r\n            var ngModuleProvider = { token: { identifier: ngModuleType }, useClass: ngModuleType };\r\n            _resolveProviders([ngModuleProvider], ProviderAstType.PublicService, true, sourceSpan, _this._errors, _this._allProviders);\r\n        });\r\n        _resolveProviders(ngModule.transitiveModule.providers.map(function (entry) { return entry.provider; }).concat(extraProviders), ProviderAstType.PublicService, false, sourceSpan, this._errors, this._allProviders);\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    NgModuleProviderAnalyzer.prototype.parse = function () {\r\n        var _this = this;\r\n        Array.from(this._allProviders.values()).forEach(function (provider) {\r\n            _this._getOrCreateLocalProvider(provider.token, provider.eager);\r\n        });\r\n        if (this._errors.length > 0) {\r\n            var /** @type {?} */ errorString = this._errors.join('\\n');\r\n            throw new Error(\"Provider parse errors:\\n\" + errorString);\r\n        }\r\n        return Array.from(this._transformedProviders.values());\r\n    };\r\n    /**\r\n     * @param {?} token\r\n     * @param {?} eager\r\n     * @return {?}\r\n     */\r\n    NgModuleProviderAnalyzer.prototype._getOrCreateLocalProvider = function (token, eager) {\r\n        var _this = this;\r\n        var /** @type {?} */ resolvedProvider = this._allProviders.get(tokenReference(token));\r\n        if (!resolvedProvider) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ transformedProviderAst = this._transformedProviders.get(tokenReference(token));\r\n        if (transformedProviderAst) {\r\n            return transformedProviderAst;\r\n        }\r\n        if (this._seenProviders.get(tokenReference(token)) != null) {\r\n            this._errors.push(new ProviderError(\"Cannot instantiate cyclic dependency! \" + tokenName(token), resolvedProvider.sourceSpan));\r\n            return null;\r\n        }\r\n        this._seenProviders.set(tokenReference(token), true);\r\n        var /** @type {?} */ transformedProviders = resolvedProvider.providers.map(function (provider) {\r\n            var /** @type {?} */ transformedUseValue = provider.useValue;\r\n            var /** @type {?} */ transformedUseExisting = ((provider.useExisting));\r\n            var /** @type {?} */ transformedDeps = ((undefined));\r\n            if (provider.useExisting != null) {\r\n                var /** @type {?} */ existingDiDep = _this._getDependency({ token: provider.useExisting }, eager, resolvedProvider.sourceSpan);\r\n                if (existingDiDep.token != null) {\r\n                    transformedUseExisting = existingDiDep.token;\r\n                }\r\n                else {\r\n                    transformedUseExisting = ((null));\r\n                    transformedUseValue = existingDiDep.value;\r\n                }\r\n            }\r\n            else if (provider.useFactory) {\r\n                var /** @type {?} */ deps = provider.deps || provider.useFactory.diDeps;\r\n                transformedDeps =\r\n                    deps.map(function (dep) { return _this._getDependency(dep, eager, resolvedProvider.sourceSpan); });\r\n            }\r\n            else if (provider.useClass) {\r\n                var /** @type {?} */ deps = provider.deps || provider.useClass.diDeps;\r\n                transformedDeps =\r\n                    deps.map(function (dep) { return _this._getDependency(dep, eager, resolvedProvider.sourceSpan); });\r\n            }\r\n            return _transformProvider(provider, {\r\n                useExisting: transformedUseExisting,\r\n                useValue: transformedUseValue,\r\n                deps: transformedDeps\r\n            });\r\n        });\r\n        transformedProviderAst =\r\n            _transformProviderAst(resolvedProvider, { eager: eager, providers: transformedProviders });\r\n        this._transformedProviders.set(tokenReference(token), transformedProviderAst);\r\n        return transformedProviderAst;\r\n    };\r\n    /**\r\n     * @param {?} dep\r\n     * @param {?=} eager\r\n     * @param {?=} requestorSourceSpan\r\n     * @return {?}\r\n     */\r\n    NgModuleProviderAnalyzer.prototype._getDependency = function (dep, eager, requestorSourceSpan) {\r\n        if (eager === void 0) { eager = false; }\r\n        var /** @type {?} */ foundLocal = false;\r\n        if (!dep.isSkipSelf && dep.token != null) {\r\n            // access the injector\r\n            if (tokenReference(dep.token) === resolveIdentifier(Identifiers.Injector) ||\r\n                tokenReference(dep.token) === resolveIdentifier(Identifiers.ComponentFactoryResolver)) {\r\n                foundLocal = true;\r\n            }\r\n            else if (this._getOrCreateLocalProvider(dep.token, eager) != null) {\r\n                foundLocal = true;\r\n            }\r\n        }\r\n        var /** @type {?} */ result = dep;\r\n        if (dep.isSelf && !foundLocal) {\r\n            if (dep.isOptional) {\r\n                result = { isValue: true, value: null };\r\n            }\r\n            else {\r\n                this._errors.push(new ProviderError(\"No provider for \" + tokenName(/** @type {?} */ ((dep.token))), requestorSourceSpan));\r\n            }\r\n        }\r\n        return result;\r\n    };\r\n    return NgModuleProviderAnalyzer;\r\n}());\r\n/**\r\n * @param {?} provider\r\n * @param {?} __1\r\n * @return {?}\r\n */\r\nfunction _transformProvider(provider, _a) {\r\n    var useExisting = _a.useExisting, useValue = _a.useValue, deps = _a.deps;\r\n    return {\r\n        token: provider.token,\r\n        useClass: provider.useClass,\r\n        useExisting: useExisting,\r\n        useFactory: provider.useFactory,\r\n        useValue: useValue,\r\n        deps: deps,\r\n        multi: provider.multi\r\n    };\r\n}\r\n/**\r\n * @param {?} provider\r\n * @param {?} __1\r\n * @return {?}\r\n */\r\nfunction _transformProviderAst(provider, _a) {\r\n    var eager = _a.eager, providers = _a.providers;\r\n    return new ProviderAst(provider.token, provider.multiProvider, provider.eager || eager, providers, provider.providerType, provider.lifecycleHooks, provider.sourceSpan);\r\n}\r\n/**\r\n * @param {?} directives\r\n * @param {?} sourceSpan\r\n * @param {?} targetErrors\r\n * @return {?}\r\n */\r\nfunction _resolveProvidersFromDirectives(directives, sourceSpan, targetErrors) {\r\n    var /** @type {?} */ providersByToken = new Map();\r\n    directives.forEach(function (directive) {\r\n        var /** @type {?} */ dirProvider = { token: { identifier: directive.type }, useClass: directive.type };\r\n        _resolveProviders([dirProvider], directive.isComponent ? ProviderAstType.Component : ProviderAstType.Directive, true, sourceSpan, targetErrors, providersByToken);\r\n    });\r\n    // Note: directives need to be able to overwrite providers of a component!\r\n    var /** @type {?} */ directivesWithComponentFirst = directives.filter(function (dir) { return dir.isComponent; }).concat(directives.filter(function (dir) { return !dir.isComponent; }));\r\n    directivesWithComponentFirst.forEach(function (directive) {\r\n        _resolveProviders(directive.providers, ProviderAstType.PublicService, false, sourceSpan, targetErrors, providersByToken);\r\n        _resolveProviders(directive.viewProviders, ProviderAstType.PrivateService, false, sourceSpan, targetErrors, providersByToken);\r\n    });\r\n    return providersByToken;\r\n}\r\n/**\r\n * @param {?} providers\r\n * @param {?} providerType\r\n * @param {?} eager\r\n * @param {?} sourceSpan\r\n * @param {?} targetErrors\r\n * @param {?} targetProvidersByToken\r\n * @return {?}\r\n */\r\nfunction _resolveProviders(providers, providerType, eager, sourceSpan, targetErrors, targetProvidersByToken) {\r\n    providers.forEach(function (provider) {\r\n        var /** @type {?} */ resolvedProvider = targetProvidersByToken.get(tokenReference(provider.token));\r\n        if (resolvedProvider != null && !!resolvedProvider.multiProvider !== !!provider.multi) {\r\n            targetErrors.push(new ProviderError(\"Mixing multi and non multi provider is not possible for token \" + tokenName(resolvedProvider.token), sourceSpan));\r\n        }\r\n        if (!resolvedProvider) {\r\n            var /** @type {?} */ lifecycleHooks = provider.token.identifier &&\r\n                ((provider.token.identifier)).lifecycleHooks ?\r\n                ((provider.token.identifier)).lifecycleHooks :\r\n                [];\r\n            var /** @type {?} */ isUseValue = !(provider.useClass || provider.useExisting || provider.useFactory);\r\n            resolvedProvider = new ProviderAst(provider.token, !!provider.multi, eager || isUseValue, [provider], providerType, lifecycleHooks, sourceSpan);\r\n            targetProvidersByToken.set(tokenReference(provider.token), resolvedProvider);\r\n        }\r\n        else {\r\n            if (!provider.multi) {\r\n                resolvedProvider.providers.length = 0;\r\n            }\r\n            resolvedProvider.providers.push(provider);\r\n        }\r\n    });\r\n}\r\n/**\r\n * @param {?} component\r\n * @return {?}\r\n */\r\nfunction _getViewQueries(component) {\r\n    // Note: queries start with id 1 so we can use the number in a Bloom filter!\r\n    var /** @type {?} */ viewQueryId = 1;\r\n    var /** @type {?} */ viewQueries = new Map();\r\n    if (component.viewQueries) {\r\n        component.viewQueries.forEach(function (query) { return _addQueryToTokenMap(viewQueries, { meta: query, queryId: viewQueryId++ }); });\r\n    }\r\n    return viewQueries;\r\n}\r\n/**\r\n * @param {?} contentQueryStartId\r\n * @param {?} directives\r\n * @return {?}\r\n */\r\nfunction _getContentQueries(contentQueryStartId, directives) {\r\n    var /** @type {?} */ contentQueryId = contentQueryStartId;\r\n    var /** @type {?} */ contentQueries = new Map();\r\n    directives.forEach(function (directive, directiveIndex) {\r\n        if (directive.queries) {\r\n            directive.queries.forEach(function (query) { return _addQueryToTokenMap(contentQueries, { meta: query, queryId: contentQueryId++ }); });\r\n        }\r\n    });\r\n    return contentQueries;\r\n}\r\n/**\r\n * @param {?} map\r\n * @param {?} query\r\n * @return {?}\r\n */\r\nfunction _addQueryToTokenMap(map, query) {\r\n    query.meta.selectors.forEach(function (token) {\r\n        var /** @type {?} */ entry = map.get(tokenReference(token));\r\n        if (!entry) {\r\n            entry = [];\r\n            map.set(tokenReference(token), entry);\r\n        }\r\n        entry.push(query);\r\n    });\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @abstract\r\n */\r\nvar ElementSchemaRegistry = (function () {\r\n    function ElementSchemaRegistry() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} tagName\r\n     * @param {?} propName\r\n     * @param {?} schemaMetas\r\n     * @return {?}\r\n     */\r\n    ElementSchemaRegistry.prototype.hasProperty = function (tagName, propName, schemaMetas) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} tagName\r\n     * @param {?} schemaMetas\r\n     * @return {?}\r\n     */\r\n    ElementSchemaRegistry.prototype.hasElement = function (tagName, schemaMetas) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} elementName\r\n     * @param {?} propName\r\n     * @param {?} isAttribute\r\n     * @return {?}\r\n     */\r\n    ElementSchemaRegistry.prototype.securityContext = function (elementName, propName, isAttribute) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ElementSchemaRegistry.prototype.allKnownElementNames = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} propName\r\n     * @return {?}\r\n     */\r\n    ElementSchemaRegistry.prototype.getMappedPropName = function (propName) { };\r\n    /**\r\n     * @abstract\r\n     * @return {?}\r\n     */\r\n    ElementSchemaRegistry.prototype.getDefaultComponentElementName = function () { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ElementSchemaRegistry.prototype.validateProperty = function (name) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ElementSchemaRegistry.prototype.validateAttribute = function (name) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} propName\r\n     * @return {?}\r\n     */\r\n    ElementSchemaRegistry.prototype.normalizeAnimationStyleProperty = function (propName) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} camelCaseProp\r\n     * @param {?} userProvidedProp\r\n     * @param {?} val\r\n     * @return {?}\r\n     */\r\n    ElementSchemaRegistry.prototype.normalizeAnimationStyleValue = function (camelCaseProp, userProvidedProp, val) { };\r\n    return ElementSchemaRegistry;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar StyleWithImports = (function () {\r\n    /**\r\n     * @param {?} style\r\n     * @param {?} styleUrls\r\n     */\r\n    function StyleWithImports(style$$1, styleUrls) {\r\n        this.style = style$$1;\r\n        this.styleUrls = styleUrls;\r\n    }\r\n    return StyleWithImports;\r\n}());\r\n/**\r\n * @param {?} url\r\n * @return {?}\r\n */\r\nfunction isStyleUrlResolvable(url) {\r\n    if (url == null || url.length === 0 || url[0] == '/')\r\n        return false;\r\n    var /** @type {?} */ schemeMatch = url.match(URL_WITH_SCHEMA_REGEXP);\r\n    return schemeMatch === null || schemeMatch[1] == 'package' || schemeMatch[1] == 'asset';\r\n}\r\n/**\r\n * Rewrites stylesheets by resolving and removing the \\@import urls that\r\n * are either relative or don't have a `package:` scheme\r\n * @param {?} resolver\r\n * @param {?} baseUrl\r\n * @param {?} cssText\r\n * @return {?}\r\n */\r\nfunction extractStyleUrls(resolver, baseUrl, cssText) {\r\n    var /** @type {?} */ foundUrls = [];\r\n    var /** @type {?} */ modifiedCssText = cssText.replace(CSS_COMMENT_REGEXP, '').replace(CSS_IMPORT_REGEXP, function () {\r\n        var m = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            m[_i] = arguments[_i];\r\n        }\r\n        var /** @type {?} */ url = m[1] || m[2];\r\n        if (!isStyleUrlResolvable(url)) {\r\n            // Do not attempt to resolve non-package absolute URLs with URI scheme\r\n            return m[0];\r\n        }\r\n        foundUrls.push(resolver.resolve(baseUrl, url));\r\n        return '';\r\n    });\r\n    return new StyleWithImports(modifiedCssText, foundUrls);\r\n}\r\nvar CSS_IMPORT_REGEXP = /@import\\s+(?:url\\()?\\s*(?:(?:['\"]([^'\"]*))|([^;\\)\\s]*))[^;]*;?/g;\r\nvar CSS_COMMENT_REGEXP = /\\/\\*.+?\\*\\//g;\r\nvar URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar PROPERTY_PARTS_SEPARATOR = '.';\r\nvar ATTRIBUTE_PREFIX = 'attr';\r\nvar CLASS_PREFIX = 'class';\r\nvar STYLE_PREFIX = 'style';\r\nvar ANIMATE_PROP_PREFIX = 'animate-';\r\nvar BoundPropertyType = {};\r\nBoundPropertyType.DEFAULT = 0;\r\nBoundPropertyType.LITERAL_ATTR = 1;\r\nBoundPropertyType.ANIMATION = 2;\r\nBoundPropertyType[BoundPropertyType.DEFAULT] = \"DEFAULT\";\r\nBoundPropertyType[BoundPropertyType.LITERAL_ATTR] = \"LITERAL_ATTR\";\r\nBoundPropertyType[BoundPropertyType.ANIMATION] = \"ANIMATION\";\r\n/**\r\n * Represents a parsed property.\r\n */\r\nvar BoundProperty = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} expression\r\n     * @param {?} type\r\n     * @param {?} sourceSpan\r\n     */\r\n    function BoundProperty(name, expression, type, sourceSpan) {\r\n        this.name = name;\r\n        this.expression = expression;\r\n        this.type = type;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    Object.defineProperty(BoundProperty.prototype, \"isLiteral\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.type === BoundPropertyType.LITERAL_ATTR; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(BoundProperty.prototype, \"isAnimation\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.type === BoundPropertyType.ANIMATION; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return BoundProperty;\r\n}());\r\n/**\r\n * Parses bindings in templates and in the directive host area.\r\n */\r\nvar BindingParser = (function () {\r\n    /**\r\n     * @param {?} _exprParser\r\n     * @param {?} _interpolationConfig\r\n     * @param {?} _schemaRegistry\r\n     * @param {?} pipes\r\n     * @param {?} _targetErrors\r\n     */\r\n    function BindingParser(_exprParser, _interpolationConfig, _schemaRegistry, pipes, _targetErrors) {\r\n        var _this = this;\r\n        this._exprParser = _exprParser;\r\n        this._interpolationConfig = _interpolationConfig;\r\n        this._schemaRegistry = _schemaRegistry;\r\n        this._targetErrors = _targetErrors;\r\n        this.pipesByName = new Map();\r\n        this._usedPipes = new Map();\r\n        pipes.forEach(function (pipe) { return _this.pipesByName.set(pipe.name, pipe); });\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype.getUsedPipes = function () { return Array.from(this._usedPipes.values()); };\r\n    /**\r\n     * @param {?} dirMeta\r\n     * @param {?} elementSelector\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype.createDirectiveHostPropertyAsts = function (dirMeta, elementSelector, sourceSpan) {\r\n        var _this = this;\r\n        if (dirMeta.hostProperties) {\r\n            var /** @type {?} */ boundProps_1 = [];\r\n            Object.keys(dirMeta.hostProperties).forEach(function (propName) {\r\n                var /** @type {?} */ expression = dirMeta.hostProperties[propName];\r\n                if (typeof expression === 'string') {\r\n                    _this.parsePropertyBinding(propName, expression, true, sourceSpan, [], boundProps_1);\r\n                }\r\n                else {\r\n                    _this._reportError(\"Value of the host property binding \\\"\" + propName + \"\\\" needs to be a string representing an expression but got \\\"\" + expression + \"\\\" (\" + typeof expression + \")\", sourceSpan);\r\n                }\r\n            });\r\n            return boundProps_1.map(function (prop) { return _this.createElementPropertyAst(elementSelector, prop); });\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} dirMeta\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype.createDirectiveHostEventAsts = function (dirMeta, sourceSpan) {\r\n        var _this = this;\r\n        if (dirMeta.hostListeners) {\r\n            var /** @type {?} */ targetEventAsts_1 = [];\r\n            Object.keys(dirMeta.hostListeners).forEach(function (propName) {\r\n                var /** @type {?} */ expression = dirMeta.hostListeners[propName];\r\n                if (typeof expression === 'string') {\r\n                    _this.parseEvent(propName, expression, sourceSpan, [], targetEventAsts_1);\r\n                }\r\n                else {\r\n                    _this._reportError(\"Value of the host listener \\\"\" + propName + \"\\\" needs to be a string representing an expression but got \\\"\" + expression + \"\\\" (\" + typeof expression + \")\", sourceSpan);\r\n                }\r\n            });\r\n            return targetEventAsts_1;\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype.parseInterpolation = function (value, sourceSpan) {\r\n        var /** @type {?} */ sourceInfo = sourceSpan.start.toString();\r\n        try {\r\n            var /** @type {?} */ ast = ((this._exprParser.parseInterpolation(value, sourceInfo, this._interpolationConfig)));\r\n            if (ast)\r\n                this._reportExpressionParserErrors(ast.errors, sourceSpan);\r\n            this._checkPipes(ast, sourceSpan);\r\n            return ast;\r\n        }\r\n        catch (e) {\r\n            this._reportError(\"\" + e, sourceSpan);\r\n            return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} prefixToken\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetMatchableAttrs\r\n     * @param {?} targetProps\r\n     * @param {?} targetVars\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype.parseInlineTemplateBinding = function (prefixToken, value, sourceSpan, targetMatchableAttrs, targetProps, targetVars) {\r\n        var /** @type {?} */ bindings = this._parseTemplateBindings(prefixToken, value, sourceSpan);\r\n        for (var /** @type {?} */ i = 0; i < bindings.length; i++) {\r\n            var /** @type {?} */ binding = bindings[i];\r\n            if (binding.keyIsVar) {\r\n                targetVars.push(new VariableAst(binding.key, binding.name, sourceSpan));\r\n            }\r\n            else if (binding.expression) {\r\n                this._parsePropertyAst(binding.key, binding.expression, sourceSpan, targetMatchableAttrs, targetProps);\r\n            }\r\n            else {\r\n                targetMatchableAttrs.push([binding.key, '']);\r\n                this.parseLiteralAttr(binding.key, null, sourceSpan, targetMatchableAttrs, targetProps);\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} prefixToken\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._parseTemplateBindings = function (prefixToken, value, sourceSpan) {\r\n        var _this = this;\r\n        var /** @type {?} */ sourceInfo = sourceSpan.start.toString();\r\n        try {\r\n            var /** @type {?} */ bindingsResult = this._exprParser.parseTemplateBindings(prefixToken, value, sourceInfo);\r\n            this._reportExpressionParserErrors(bindingsResult.errors, sourceSpan);\r\n            bindingsResult.templateBindings.forEach(function (binding) {\r\n                if (binding.expression) {\r\n                    _this._checkPipes(binding.expression, sourceSpan);\r\n                }\r\n            });\r\n            bindingsResult.warnings.forEach(function (warning) { _this._reportError(warning, sourceSpan, ParseErrorLevel.WARNING); });\r\n            return bindingsResult.templateBindings;\r\n        }\r\n        catch (e) {\r\n            this._reportError(\"\" + e, sourceSpan);\r\n            return [];\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetMatchableAttrs\r\n     * @param {?} targetProps\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype.parseLiteralAttr = function (name, value, sourceSpan, targetMatchableAttrs, targetProps) {\r\n        if (_isAnimationLabel(name)) {\r\n            name = name.substring(1);\r\n            if (value) {\r\n                this._reportError(\"Assigning animation triggers via @prop=\\\"exp\\\" attributes with an expression is invalid.\" +\r\n                    \" Use property bindings (e.g. [@prop]=\\\"exp\\\") or use an attribute without a value (e.g. @prop) instead.\", sourceSpan, ParseErrorLevel.ERROR);\r\n            }\r\n            this._parseAnimation(name, value, sourceSpan, targetMatchableAttrs, targetProps);\r\n        }\r\n        else {\r\n            targetProps.push(new BoundProperty(name, this._exprParser.wrapLiteralPrimitive(value, ''), BoundPropertyType.LITERAL_ATTR, sourceSpan));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} expression\r\n     * @param {?} isHost\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetMatchableAttrs\r\n     * @param {?} targetProps\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype.parsePropertyBinding = function (name, expression, isHost, sourceSpan, targetMatchableAttrs, targetProps) {\r\n        var /** @type {?} */ isAnimationProp = false;\r\n        if (name.startsWith(ANIMATE_PROP_PREFIX)) {\r\n            isAnimationProp = true;\r\n            name = name.substring(ANIMATE_PROP_PREFIX.length);\r\n        }\r\n        else if (_isAnimationLabel(name)) {\r\n            isAnimationProp = true;\r\n            name = name.substring(1);\r\n        }\r\n        if (isAnimationProp) {\r\n            this._parseAnimation(name, expression, sourceSpan, targetMatchableAttrs, targetProps);\r\n        }\r\n        else {\r\n            this._parsePropertyAst(name, this._parseBinding(expression, isHost, sourceSpan), sourceSpan, targetMatchableAttrs, targetProps);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetMatchableAttrs\r\n     * @param {?} targetProps\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype.parsePropertyInterpolation = function (name, value, sourceSpan, targetMatchableAttrs, targetProps) {\r\n        var /** @type {?} */ expr = this.parseInterpolation(value, sourceSpan);\r\n        if (expr) {\r\n            this._parsePropertyAst(name, expr, sourceSpan, targetMatchableAttrs, targetProps);\r\n            return true;\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} ast\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetMatchableAttrs\r\n     * @param {?} targetProps\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._parsePropertyAst = function (name, ast, sourceSpan, targetMatchableAttrs, targetProps) {\r\n        targetMatchableAttrs.push([name, /** @type {?} */ ((ast.source))]);\r\n        targetProps.push(new BoundProperty(name, ast, BoundPropertyType.DEFAULT, sourceSpan));\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} expression\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetMatchableAttrs\r\n     * @param {?} targetProps\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._parseAnimation = function (name, expression, sourceSpan, targetMatchableAttrs, targetProps) {\r\n        // This will occur when a @trigger is not paired with an expression.\r\n        // For animations it is valid to not have an expression since */void\r\n        // states will be applied by angular when the element is attached/detached\r\n        var /** @type {?} */ ast = this._parseBinding(expression || 'null', false, sourceSpan);\r\n        targetMatchableAttrs.push([name, /** @type {?} */ ((ast.source))]);\r\n        targetProps.push(new BoundProperty(name, ast, BoundPropertyType.ANIMATION, sourceSpan));\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} isHostBinding\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._parseBinding = function (value, isHostBinding, sourceSpan) {\r\n        var /** @type {?} */ sourceInfo = sourceSpan.start.toString();\r\n        try {\r\n            var /** @type {?} */ ast = isHostBinding ?\r\n                this._exprParser.parseSimpleBinding(value, sourceInfo, this._interpolationConfig) :\r\n                this._exprParser.parseBinding(value, sourceInfo, this._interpolationConfig);\r\n            if (ast)\r\n                this._reportExpressionParserErrors(ast.errors, sourceSpan);\r\n            this._checkPipes(ast, sourceSpan);\r\n            return ast;\r\n        }\r\n        catch (e) {\r\n            this._reportError(\"\" + e, sourceSpan);\r\n            return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} elementSelector\r\n     * @param {?} boundProp\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype.createElementPropertyAst = function (elementSelector, boundProp) {\r\n        if (boundProp.isAnimation) {\r\n            return new BoundElementPropertyAst(boundProp.name, PropertyBindingType.Animation, SecurityContext.NONE, boundProp.expression, null, boundProp.sourceSpan);\r\n        }\r\n        var /** @type {?} */ unit = null;\r\n        var /** @type {?} */ bindingType = ((undefined));\r\n        var /** @type {?} */ boundPropertyName = null;\r\n        var /** @type {?} */ parts = boundProp.name.split(PROPERTY_PARTS_SEPARATOR);\r\n        var /** @type {?} */ securityContexts = ((undefined));\r\n        // Check check for special cases (prefix style, attr, class)\r\n        if (parts.length > 1) {\r\n            if (parts[0] == ATTRIBUTE_PREFIX) {\r\n                boundPropertyName = parts[1];\r\n                this._validatePropertyOrAttributeName(boundPropertyName, boundProp.sourceSpan, true);\r\n                securityContexts = calcPossibleSecurityContexts(this._schemaRegistry, elementSelector, boundPropertyName, true);\r\n                var /** @type {?} */ nsSeparatorIdx = boundPropertyName.indexOf(':');\r\n                if (nsSeparatorIdx > -1) {\r\n                    var /** @type {?} */ ns = boundPropertyName.substring(0, nsSeparatorIdx);\r\n                    var /** @type {?} */ name = boundPropertyName.substring(nsSeparatorIdx + 1);\r\n                    boundPropertyName = mergeNsAndName(ns, name);\r\n                }\r\n                bindingType = PropertyBindingType.Attribute;\r\n            }\r\n            else if (parts[0] == CLASS_PREFIX) {\r\n                boundPropertyName = parts[1];\r\n                bindingType = PropertyBindingType.Class;\r\n                securityContexts = [SecurityContext.NONE];\r\n            }\r\n            else if (parts[0] == STYLE_PREFIX) {\r\n                unit = parts.length > 2 ? parts[2] : null;\r\n                boundPropertyName = parts[1];\r\n                bindingType = PropertyBindingType.Style;\r\n                securityContexts = [SecurityContext.STYLE];\r\n            }\r\n        }\r\n        // If not a special case, use the full property name\r\n        if (boundPropertyName === null) {\r\n            boundPropertyName = this._schemaRegistry.getMappedPropName(boundProp.name);\r\n            securityContexts = calcPossibleSecurityContexts(this._schemaRegistry, elementSelector, boundPropertyName, false);\r\n            bindingType = PropertyBindingType.Property;\r\n            this._validatePropertyOrAttributeName(boundPropertyName, boundProp.sourceSpan, false);\r\n        }\r\n        return new BoundElementPropertyAst(boundPropertyName, bindingType, securityContexts[0], boundProp.expression, unit, boundProp.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} expression\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetMatchableAttrs\r\n     * @param {?} targetEvents\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype.parseEvent = function (name, expression, sourceSpan, targetMatchableAttrs, targetEvents) {\r\n        if (_isAnimationLabel(name)) {\r\n            name = name.substr(1);\r\n            this._parseAnimationEvent(name, expression, sourceSpan, targetEvents);\r\n        }\r\n        else {\r\n            this._parseEvent(name, expression, sourceSpan, targetMatchableAttrs, targetEvents);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} expression\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetEvents\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._parseAnimationEvent = function (name, expression, sourceSpan, targetEvents) {\r\n        var /** @type {?} */ matches = splitAtPeriod(name, [name, '']);\r\n        var /** @type {?} */ eventName = matches[0];\r\n        var /** @type {?} */ phase = matches[1].toLowerCase();\r\n        if (phase) {\r\n            switch (phase) {\r\n                case 'start':\r\n                case 'done':\r\n                    var /** @type {?} */ ast = this._parseAction(expression, sourceSpan);\r\n                    targetEvents.push(new BoundEventAst(eventName, null, phase, ast, sourceSpan));\r\n                    break;\r\n                default:\r\n                    this._reportError(\"The provided animation output phase value \\\"\" + phase + \"\\\" for \\\"@\" + eventName + \"\\\" is not supported (use start or done)\", sourceSpan);\r\n                    break;\r\n            }\r\n        }\r\n        else {\r\n            this._reportError(\"The animation trigger output event (@\" + eventName + \") is missing its phase value name (start or done are currently supported)\", sourceSpan);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} expression\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetMatchableAttrs\r\n     * @param {?} targetEvents\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._parseEvent = function (name, expression, sourceSpan, targetMatchableAttrs, targetEvents) {\r\n        // long format: 'target: eventName'\r\n        var _a = splitAtColon(name, [/** @type {?} */ ((null)), name]), target = _a[0], eventName = _a[1];\r\n        var /** @type {?} */ ast = this._parseAction(expression, sourceSpan);\r\n        targetMatchableAttrs.push([/** @type {?} */ ((name)), /** @type {?} */ ((ast.source))]);\r\n        targetEvents.push(new BoundEventAst(eventName, target, null, ast, sourceSpan));\r\n        // Don't detect directives for event names for now,\r\n        // so don't add the event name to the matchableAttrs\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._parseAction = function (value, sourceSpan) {\r\n        var /** @type {?} */ sourceInfo = sourceSpan.start.toString();\r\n        try {\r\n            var /** @type {?} */ ast = this._exprParser.parseAction(value, sourceInfo, this._interpolationConfig);\r\n            if (ast) {\r\n                this._reportExpressionParserErrors(ast.errors, sourceSpan);\r\n            }\r\n            if (!ast || ast.ast instanceof EmptyExpr) {\r\n                this._reportError(\"Empty expressions are not allowed\", sourceSpan);\r\n                return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\r\n            }\r\n            this._checkPipes(ast, sourceSpan);\r\n            return ast;\r\n        }\r\n        catch (e) {\r\n            this._reportError(\"\" + e, sourceSpan);\r\n            return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} sourceSpan\r\n     * @param {?=} level\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._reportError = function (message, sourceSpan, level) {\r\n        if (level === void 0) { level = ParseErrorLevel.ERROR; }\r\n        this._targetErrors.push(new ParseError(sourceSpan, message, level));\r\n    };\r\n    /**\r\n     * @param {?} errors\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._reportExpressionParserErrors = function (errors, sourceSpan) {\r\n        for (var _i = 0, errors_1 = errors; _i < errors_1.length; _i++) {\r\n            var error = errors_1[_i];\r\n            this._reportError(error.message, sourceSpan);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._checkPipes = function (ast, sourceSpan) {\r\n        var _this = this;\r\n        if (ast) {\r\n            var /** @type {?} */ collector = new PipeCollector();\r\n            ast.visit(collector);\r\n            collector.pipes.forEach(function (ast, pipeName) {\r\n                var /** @type {?} */ pipeMeta = _this.pipesByName.get(pipeName);\r\n                if (!pipeMeta) {\r\n                    _this._reportError(\"The pipe '\" + pipeName + \"' could not be found\", new ParseSourceSpan(sourceSpan.start.moveBy(ast.span.start), sourceSpan.start.moveBy(ast.span.end)));\r\n                }\r\n                else {\r\n                    _this._usedPipes.set(pipeName, pipeMeta);\r\n                }\r\n            });\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} propName the name of the property / attribute\r\n     * @param {?} sourceSpan\r\n     * @param {?} isAttr true when binding to an attribute\r\n     * @return {?}\r\n     */\r\n    BindingParser.prototype._validatePropertyOrAttributeName = function (propName, sourceSpan, isAttr) {\r\n        var /** @type {?} */ report = isAttr ? this._schemaRegistry.validateAttribute(propName) :\r\n            this._schemaRegistry.validateProperty(propName);\r\n        if (report.error) {\r\n            this._reportError(/** @type {?} */ ((report.msg)), sourceSpan, ParseErrorLevel.ERROR);\r\n        }\r\n    };\r\n    return BindingParser;\r\n}());\r\nvar PipeCollector = (function (_super) {\r\n    __extends(PipeCollector, _super);\r\n    function PipeCollector() {\r\n        var _this = _super.apply(this, arguments) || this;\r\n        _this.pipes = new Map();\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    PipeCollector.prototype.visitPipe = function (ast, context) {\r\n        this.pipes.set(ast.name, ast);\r\n        ast.exp.visit(this);\r\n        this.visitAll(ast.args, context);\r\n        return null;\r\n    };\r\n    return PipeCollector;\r\n}(RecursiveAstVisitor));\r\n/**\r\n * @param {?} name\r\n * @return {?}\r\n */\r\nfunction _isAnimationLabel(name) {\r\n    return name[0] == '@';\r\n}\r\n/**\r\n * @param {?} registry\r\n * @param {?} selector\r\n * @param {?} propName\r\n * @param {?} isAttribute\r\n * @return {?}\r\n */\r\nfunction calcPossibleSecurityContexts(registry, selector, propName, isAttribute) {\r\n    var /** @type {?} */ ctxs = [];\r\n    CssSelector.parse(selector).forEach(function (selector) {\r\n        var /** @type {?} */ elementNames = selector.element ? [selector.element] : registry.allKnownElementNames();\r\n        var /** @type {?} */ notElementNames = new Set(selector.notSelectors.filter(function (selector) { return selector.isElementSelector(); })\r\n            .map(function (selector) { return selector.element; }));\r\n        var /** @type {?} */ possibleElementNames = elementNames.filter(function (elementName) { return !notElementNames.has(elementName); });\r\n        ctxs.push.apply(ctxs, possibleElementNames.map(function (elementName) { return registry.securityContext(elementName, propName, isAttribute); }));\r\n    });\r\n    return ctxs.length === 0 ? [SecurityContext.NONE] : Array.from(new Set(ctxs)).sort();\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar NG_CONTENT_SELECT_ATTR = 'select';\r\nvar LINK_ELEMENT = 'link';\r\nvar LINK_STYLE_REL_ATTR = 'rel';\r\nvar LINK_STYLE_HREF_ATTR = 'href';\r\nvar LINK_STYLE_REL_VALUE = 'stylesheet';\r\nvar STYLE_ELEMENT = 'style';\r\nvar SCRIPT_ELEMENT = 'script';\r\nvar NG_NON_BINDABLE_ATTR = 'ngNonBindable';\r\nvar NG_PROJECT_AS = 'ngProjectAs';\r\n/**\r\n * @param {?} ast\r\n * @return {?}\r\n */\r\nfunction preparseElement(ast) {\r\n    var /** @type {?} */ selectAttr = ((null));\r\n    var /** @type {?} */ hrefAttr = ((null));\r\n    var /** @type {?} */ relAttr = ((null));\r\n    var /** @type {?} */ nonBindable = false;\r\n    var /** @type {?} */ projectAs = ((null));\r\n    ast.attrs.forEach(function (attr) {\r\n        var /** @type {?} */ lcAttrName = attr.name.toLowerCase();\r\n        if (lcAttrName == NG_CONTENT_SELECT_ATTR) {\r\n            selectAttr = attr.value;\r\n        }\r\n        else if (lcAttrName == LINK_STYLE_HREF_ATTR) {\r\n            hrefAttr = attr.value;\r\n        }\r\n        else if (lcAttrName == LINK_STYLE_REL_ATTR) {\r\n            relAttr = attr.value;\r\n        }\r\n        else if (attr.name == NG_NON_BINDABLE_ATTR) {\r\n            nonBindable = true;\r\n        }\r\n        else if (attr.name == NG_PROJECT_AS) {\r\n            if (attr.value.length > 0) {\r\n                projectAs = attr.value;\r\n            }\r\n        }\r\n    });\r\n    selectAttr = normalizeNgContentSelect(selectAttr);\r\n    var /** @type {?} */ nodeName = ast.name.toLowerCase();\r\n    var /** @type {?} */ type = PreparsedElementType.OTHER;\r\n    if (isNgContent(nodeName)) {\r\n        type = PreparsedElementType.NG_CONTENT;\r\n    }\r\n    else if (nodeName == STYLE_ELEMENT) {\r\n        type = PreparsedElementType.STYLE;\r\n    }\r\n    else if (nodeName == SCRIPT_ELEMENT) {\r\n        type = PreparsedElementType.SCRIPT;\r\n    }\r\n    else if (nodeName == LINK_ELEMENT && relAttr == LINK_STYLE_REL_VALUE) {\r\n        type = PreparsedElementType.STYLESHEET;\r\n    }\r\n    return new PreparsedElement(type, selectAttr, hrefAttr, nonBindable, projectAs);\r\n}\r\nvar PreparsedElementType = {};\r\nPreparsedElementType.NG_CONTENT = 0;\r\nPreparsedElementType.STYLE = 1;\r\nPreparsedElementType.STYLESHEET = 2;\r\nPreparsedElementType.SCRIPT = 3;\r\nPreparsedElementType.OTHER = 4;\r\nPreparsedElementType[PreparsedElementType.NG_CONTENT] = \"NG_CONTENT\";\r\nPreparsedElementType[PreparsedElementType.STYLE] = \"STYLE\";\r\nPreparsedElementType[PreparsedElementType.STYLESHEET] = \"STYLESHEET\";\r\nPreparsedElementType[PreparsedElementType.SCRIPT] = \"SCRIPT\";\r\nPreparsedElementType[PreparsedElementType.OTHER] = \"OTHER\";\r\nvar PreparsedElement = (function () {\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} selectAttr\r\n     * @param {?} hrefAttr\r\n     * @param {?} nonBindable\r\n     * @param {?} projectAs\r\n     */\r\n    function PreparsedElement(type, selectAttr, hrefAttr, nonBindable, projectAs) {\r\n        this.type = type;\r\n        this.selectAttr = selectAttr;\r\n        this.hrefAttr = hrefAttr;\r\n        this.nonBindable = nonBindable;\r\n        this.projectAs = projectAs;\r\n    }\r\n    return PreparsedElement;\r\n}());\r\n/**\r\n * @param {?} selectAttr\r\n * @return {?}\r\n */\r\nfunction normalizeNgContentSelect(selectAttr) {\r\n    if (selectAttr === null || selectAttr.length === 0) {\r\n        return '*';\r\n    }\r\n    return selectAttr;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar BIND_NAME_REGEXP = /^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\\[\\(([^\\)]+)\\)\\]|\\[([^\\]]+)\\]|\\(([^\\)]+)\\))$/;\r\n// Group 1 = \"bind-\"\r\nvar KW_BIND_IDX = 1;\r\n// Group 2 = \"let-\"\r\nvar KW_LET_IDX = 2;\r\n// Group 3 = \"ref-/#\"\r\nvar KW_REF_IDX = 3;\r\n// Group 4 = \"on-\"\r\nvar KW_ON_IDX = 4;\r\n// Group 5 = \"bindon-\"\r\nvar KW_BINDON_IDX = 5;\r\n// Group 6 = \"@\"\r\nvar KW_AT_IDX = 6;\r\n// Group 7 = the identifier after \"bind-\", \"let-\", \"ref-/#\", \"on-\", \"bindon-\" or \"@\"\r\nvar IDENT_KW_IDX = 7;\r\n// Group 8 = identifier inside [()]\r\nvar IDENT_BANANA_BOX_IDX = 8;\r\n// Group 9 = identifier inside []\r\nvar IDENT_PROPERTY_IDX = 9;\r\n// Group 10 = identifier inside ()\r\nvar IDENT_EVENT_IDX = 10;\r\n// deprecated in 4.x\r\nvar TEMPLATE_ELEMENT = 'template';\r\n// deprecated in 4.x\r\nvar TEMPLATE_ATTR = 'template';\r\nvar TEMPLATE_ATTR_PREFIX = '*';\r\nvar CLASS_ATTR = 'class';\r\nvar TEXT_CSS_SELECTOR = CssSelector.parse('*')[0];\r\nvar TEMPLATE_ELEMENT_DEPRECATION_WARNING = 'The <template> element is deprecated. Use <ng-template> instead';\r\nvar TEMPLATE_ATTR_DEPRECATION_WARNING = 'The template attribute is deprecated. Use an ng-template element instead.';\r\nvar warningCounts = {};\r\n/**\r\n * @param {?} warnings\r\n * @return {?}\r\n */\r\nfunction warnOnlyOnce(warnings) {\r\n    return function (error) {\r\n        if (warnings.indexOf(error.msg) !== -1) {\r\n            warningCounts[error.msg] = (warningCounts[error.msg] || 0) + 1;\r\n            return warningCounts[error.msg] <= 1;\r\n        }\r\n        return true;\r\n    };\r\n}\r\n/**\r\n * Provides an array of {@link TemplateAstVisitor}s which will be used to transform\r\n * parsed templates before compilation is invoked, allowing custom expression syntax\r\n * and other advanced transformations.\r\n *\r\n * This is currently an internal-only feature and not meant for general use.\r\n */\r\nvar TEMPLATE_TRANSFORMS = new InjectionToken('TemplateTransforms');\r\nvar TemplateParseError = (function (_super) {\r\n    __extends(TemplateParseError, _super);\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} span\r\n     * @param {?} level\r\n     */\r\n    function TemplateParseError(message, span, level) {\r\n        return _super.call(this, span, message, level) || this;\r\n    }\r\n    return TemplateParseError;\r\n}(ParseError));\r\nvar TemplateParseResult = (function () {\r\n    /**\r\n     * @param {?=} templateAst\r\n     * @param {?=} usedPipes\r\n     * @param {?=} errors\r\n     */\r\n    function TemplateParseResult(templateAst, usedPipes, errors) {\r\n        this.templateAst = templateAst;\r\n        this.usedPipes = usedPipes;\r\n        this.errors = errors;\r\n    }\r\n    return TemplateParseResult;\r\n}());\r\nvar TemplateParser = (function () {\r\n    /**\r\n     * @param {?} _config\r\n     * @param {?} _exprParser\r\n     * @param {?} _schemaRegistry\r\n     * @param {?} _htmlParser\r\n     * @param {?} _console\r\n     * @param {?} transforms\r\n     */\r\n    function TemplateParser(_config, _exprParser, _schemaRegistry, _htmlParser, _console, transforms) {\r\n        this._config = _config;\r\n        this._exprParser = _exprParser;\r\n        this._schemaRegistry = _schemaRegistry;\r\n        this._htmlParser = _htmlParser;\r\n        this._console = _console;\r\n        this.transforms = transforms;\r\n    }\r\n    /**\r\n     * @param {?} component\r\n     * @param {?} template\r\n     * @param {?} directives\r\n     * @param {?} pipes\r\n     * @param {?} schemas\r\n     * @param {?} templateUrl\r\n     * @return {?}\r\n     */\r\n    TemplateParser.prototype.parse = function (component, template, directives, pipes, schemas, templateUrl) {\r\n        var /** @type {?} */ result = this.tryParse(component, template, directives, pipes, schemas, templateUrl);\r\n        var /** @type {?} */ warnings = ((result.errors)).filter(function (error) { return error.level === ParseErrorLevel.WARNING; })\r\n            .filter(warnOnlyOnce([TEMPLATE_ATTR_DEPRECATION_WARNING, TEMPLATE_ELEMENT_DEPRECATION_WARNING]));\r\n        var /** @type {?} */ errors = ((result.errors)).filter(function (error) { return error.level === ParseErrorLevel.ERROR; });\r\n        if (warnings.length > 0) {\r\n            this._console.warn(\"Template parse warnings:\\n\" + warnings.join('\\n'));\r\n        }\r\n        if (errors.length > 0) {\r\n            var /** @type {?} */ errorString = errors.join('\\n');\r\n            throw syntaxError(\"Template parse errors:\\n\" + errorString);\r\n        }\r\n        return { template: /** @type {?} */ ((result.templateAst)), pipes: /** @type {?} */ ((result.usedPipes)) };\r\n    };\r\n    /**\r\n     * @param {?} component\r\n     * @param {?} template\r\n     * @param {?} directives\r\n     * @param {?} pipes\r\n     * @param {?} schemas\r\n     * @param {?} templateUrl\r\n     * @return {?}\r\n     */\r\n    TemplateParser.prototype.tryParse = function (component, template, directives, pipes, schemas, templateUrl) {\r\n        return this.tryParseHtml(this.expandHtml(/** @type {?} */ ((this._htmlParser)).parse(template, templateUrl, true, this.getInterpolationConfig(component))), component, directives, pipes, schemas);\r\n    };\r\n    /**\r\n     * @param {?} htmlAstWithErrors\r\n     * @param {?} component\r\n     * @param {?} directives\r\n     * @param {?} pipes\r\n     * @param {?} schemas\r\n     * @return {?}\r\n     */\r\n    TemplateParser.prototype.tryParseHtml = function (htmlAstWithErrors, component, directives, pipes, schemas) {\r\n        var /** @type {?} */ result;\r\n        var /** @type {?} */ errors = htmlAstWithErrors.errors;\r\n        var /** @type {?} */ usedPipes = [];\r\n        if (htmlAstWithErrors.rootNodes.length > 0) {\r\n            var /** @type {?} */ uniqDirectives = removeSummaryDuplicates(directives);\r\n            var /** @type {?} */ uniqPipes = removeSummaryDuplicates(pipes);\r\n            var /** @type {?} */ providerViewContext = new ProviderViewContext(component);\r\n            var /** @type {?} */ interpolationConfig = ((undefined));\r\n            if (component.template && component.template.interpolation) {\r\n                interpolationConfig = {\r\n                    start: component.template.interpolation[0],\r\n                    end: component.template.interpolation[1]\r\n                };\r\n            }\r\n            var /** @type {?} */ bindingParser = new BindingParser(this._exprParser, /** @type {?} */ ((interpolationConfig)), this._schemaRegistry, uniqPipes, errors);\r\n            var /** @type {?} */ parseVisitor = new TemplateParseVisitor(this._config, providerViewContext, uniqDirectives, bindingParser, this._schemaRegistry, schemas, errors);\r\n            result = visitAll(parseVisitor, htmlAstWithErrors.rootNodes, EMPTY_ELEMENT_CONTEXT);\r\n            errors.push.apply(errors, providerViewContext.errors);\r\n            usedPipes.push.apply(usedPipes, bindingParser.getUsedPipes());\r\n        }\r\n        else {\r\n            result = [];\r\n        }\r\n        this._assertNoReferenceDuplicationOnTemplate(result, errors);\r\n        if (errors.length > 0) {\r\n            return new TemplateParseResult(result, usedPipes, errors);\r\n        }\r\n        if (this.transforms) {\r\n            this.transforms.forEach(function (transform) { result = templateVisitAll(transform, result); });\r\n        }\r\n        return new TemplateParseResult(result, usedPipes, errors);\r\n    };\r\n    /**\r\n     * @param {?} htmlAstWithErrors\r\n     * @param {?=} forced\r\n     * @return {?}\r\n     */\r\n    TemplateParser.prototype.expandHtml = function (htmlAstWithErrors, forced) {\r\n        if (forced === void 0) { forced = false; }\r\n        var /** @type {?} */ errors = htmlAstWithErrors.errors;\r\n        if (errors.length == 0 || forced) {\r\n            // Transform ICU messages to angular directives\r\n            var /** @type {?} */ expandedHtmlAst = expandNodes(htmlAstWithErrors.rootNodes);\r\n            errors.push.apply(errors, expandedHtmlAst.errors);\r\n            htmlAstWithErrors = new ParseTreeResult(expandedHtmlAst.nodes, errors);\r\n        }\r\n        return htmlAstWithErrors;\r\n    };\r\n    /**\r\n     * @param {?} component\r\n     * @return {?}\r\n     */\r\n    TemplateParser.prototype.getInterpolationConfig = function (component) {\r\n        if (component.template) {\r\n            return InterpolationConfig.fromArray(component.template.interpolation);\r\n        }\r\n        return undefined;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} result\r\n     * @param {?} errors\r\n     * @return {?}\r\n     */\r\n    TemplateParser.prototype._assertNoReferenceDuplicationOnTemplate = function (result, errors) {\r\n        var /** @type {?} */ existingReferences = [];\r\n        result.filter(function (element) { return !!((element)).references; })\r\n            .forEach(function (element) { return ((element)).references.forEach(function (reference) {\r\n            var /** @type {?} */ name = reference.name;\r\n            if (existingReferences.indexOf(name) < 0) {\r\n                existingReferences.push(name);\r\n            }\r\n            else {\r\n                var /** @type {?} */ error = new TemplateParseError(\"Reference \\\"#\" + name + \"\\\" is defined several times\", reference.sourceSpan, ParseErrorLevel.ERROR);\r\n                errors.push(error);\r\n            }\r\n        }); });\r\n    };\r\n    return TemplateParser;\r\n}());\r\nTemplateParser.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nTemplateParser.ctorParameters = function () { return [\r\n    { type: CompilerConfig, },\r\n    { type: Parser, },\r\n    { type: ElementSchemaRegistry, },\r\n    { type: I18NHtmlParser, },\r\n    { type: ɵConsole, },\r\n    { type: Array, decorators: [{ type: Optional }, { type: Inject, args: [TEMPLATE_TRANSFORMS,] },] },\r\n]; };\r\nvar TemplateParseVisitor = (function () {\r\n    /**\r\n     * @param {?} config\r\n     * @param {?} providerViewContext\r\n     * @param {?} directives\r\n     * @param {?} _bindingParser\r\n     * @param {?} _schemaRegistry\r\n     * @param {?} _schemas\r\n     * @param {?} _targetErrors\r\n     */\r\n    function TemplateParseVisitor(config, providerViewContext, directives, _bindingParser, _schemaRegistry, _schemas, _targetErrors) {\r\n        var _this = this;\r\n        this.config = config;\r\n        this.providerViewContext = providerViewContext;\r\n        this._bindingParser = _bindingParser;\r\n        this._schemaRegistry = _schemaRegistry;\r\n        this._schemas = _schemas;\r\n        this._targetErrors = _targetErrors;\r\n        this.selectorMatcher = new SelectorMatcher();\r\n        this.directivesIndex = new Map();\r\n        this.ngContentCount = 0;\r\n        // Note: queries start with id 1 so we can use the number in a Bloom filter!\r\n        this.contentQueryStartId = providerViewContext.component.viewQueries.length + 1;\r\n        directives.forEach(function (directive, index) {\r\n            var selector = CssSelector.parse(directive.selector);\r\n            _this.selectorMatcher.addSelectables(selector, directive);\r\n            _this.directivesIndex.set(directive, index);\r\n        });\r\n    }\r\n    /**\r\n     * @param {?} expansion\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype.visitExpansion = function (expansion, context) { return null; };\r\n    /**\r\n     * @param {?} expansionCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype.visitExpansionCase = function (expansionCase, context) { return null; };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} parent\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype.visitText = function (text, parent) {\r\n        var /** @type {?} */ ngContentIndex = ((parent.findNgContentIndex(TEXT_CSS_SELECTOR)));\r\n        var /** @type {?} */ expr = this._bindingParser.parseInterpolation(text.value, /** @type {?} */ ((text.sourceSpan)));\r\n        return expr ? new BoundTextAst(expr, ngContentIndex, /** @type {?} */ ((text.sourceSpan))) :\r\n            new TextAst(text.value, ngContentIndex, /** @type {?} */ ((text.sourceSpan)));\r\n    };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype.visitAttribute = function (attribute, context) {\r\n        return new AttrAst(attribute.name, attribute.value, attribute.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype.visitComment = function (comment, context) { return null; };\r\n    /**\r\n     * @param {?} element\r\n     * @param {?} parent\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype.visitElement = function (element, parent) {\r\n        var _this = this;\r\n        var /** @type {?} */ queryStartIndex = this.contentQueryStartId;\r\n        var /** @type {?} */ nodeName = element.name;\r\n        var /** @type {?} */ preparsedElement = preparseElement(element);\r\n        if (preparsedElement.type === PreparsedElementType.SCRIPT ||\r\n            preparsedElement.type === PreparsedElementType.STYLE) {\r\n            // Skipping <script> for security reasons\r\n            // Skipping <style> as we already processed them\r\n            // in the StyleCompiler\r\n            return null;\r\n        }\r\n        if (preparsedElement.type === PreparsedElementType.STYLESHEET &&\r\n            isStyleUrlResolvable(preparsedElement.hrefAttr)) {\r\n            // Skipping stylesheets with either relative urls or package scheme as we already processed\r\n            // them in the StyleCompiler\r\n            return null;\r\n        }\r\n        var /** @type {?} */ matchableAttrs = [];\r\n        var /** @type {?} */ elementOrDirectiveProps = [];\r\n        var /** @type {?} */ elementOrDirectiveRefs = [];\r\n        var /** @type {?} */ elementVars = [];\r\n        var /** @type {?} */ events = [];\r\n        var /** @type {?} */ templateElementOrDirectiveProps = [];\r\n        var /** @type {?} */ templateMatchableAttrs = [];\r\n        var /** @type {?} */ templateElementVars = [];\r\n        var /** @type {?} */ hasInlineTemplates = false;\r\n        var /** @type {?} */ attrs = [];\r\n        var /** @type {?} */ isTemplateElement = isTemplate(element, this.config.enableLegacyTemplate, function (m, span) { return _this._reportError(m, span, ParseErrorLevel.WARNING); });\r\n        element.attrs.forEach(function (attr) {\r\n            var /** @type {?} */ hasBinding = _this._parseAttr(isTemplateElement, attr, matchableAttrs, elementOrDirectiveProps, events, elementOrDirectiveRefs, elementVars);\r\n            var /** @type {?} */ templateBindingsSource;\r\n            var /** @type {?} */ prefixToken;\r\n            var /** @type {?} */ normalizedName = _this._normalizeAttributeName(attr.name);\r\n            if (_this.config.enableLegacyTemplate && normalizedName == TEMPLATE_ATTR) {\r\n                _this._reportError(TEMPLATE_ATTR_DEPRECATION_WARNING, attr.sourceSpan, ParseErrorLevel.WARNING);\r\n                templateBindingsSource = attr.value;\r\n            }\r\n            else if (normalizedName.startsWith(TEMPLATE_ATTR_PREFIX)) {\r\n                templateBindingsSource = attr.value;\r\n                prefixToken = normalizedName.substring(TEMPLATE_ATTR_PREFIX.length) + ':';\r\n            }\r\n            var /** @type {?} */ hasTemplateBinding = templateBindingsSource != null;\r\n            if (hasTemplateBinding) {\r\n                if (hasInlineTemplates) {\r\n                    _this._reportError(\"Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *\", attr.sourceSpan);\r\n                }\r\n                hasInlineTemplates = true;\r\n                _this._bindingParser.parseInlineTemplateBinding(/** @type {?} */ ((prefixToken)), /** @type {?} */ ((templateBindingsSource)), attr.sourceSpan, templateMatchableAttrs, templateElementOrDirectiveProps, templateElementVars);\r\n            }\r\n            if (!hasBinding && !hasTemplateBinding) {\r\n                // don't include the bindings as attributes as well in the AST\r\n                attrs.push(_this.visitAttribute(attr, null));\r\n                matchableAttrs.push([attr.name, attr.value]);\r\n            }\r\n        });\r\n        var /** @type {?} */ elementCssSelector = createElementCssSelector(nodeName, matchableAttrs);\r\n        var _a = this._parseDirectives(this.selectorMatcher, elementCssSelector), directiveMetas = _a.directives, matchElement = _a.matchElement;\r\n        var /** @type {?} */ references = [];\r\n        var /** @type {?} */ boundDirectivePropNames = new Set();\r\n        var /** @type {?} */ directiveAsts = this._createDirectiveAsts(isTemplateElement, element.name, directiveMetas, elementOrDirectiveProps, elementOrDirectiveRefs, /** @type {?} */ ((element.sourceSpan)), references, boundDirectivePropNames);\r\n        var /** @type {?} */ elementProps = this._createElementPropertyAsts(element.name, elementOrDirectiveProps, boundDirectivePropNames);\r\n        var /** @type {?} */ isViewRoot = parent.isTemplateElement || hasInlineTemplates;\r\n        var /** @type {?} */ providerContext = new ProviderElementContext(this.providerViewContext, /** @type {?} */ ((parent.providerContext)), isViewRoot, directiveAsts, attrs, references, isTemplateElement, queryStartIndex, /** @type {?} */ ((element.sourceSpan)));\r\n        var /** @type {?} */ children = visitAll(preparsedElement.nonBindable ? NON_BINDABLE_VISITOR : this, element.children, ElementContext.create(isTemplateElement, directiveAsts, isTemplateElement ? ((parent.providerContext)) : providerContext));\r\n        providerContext.afterElement();\r\n        // Override the actual selector when the `ngProjectAs` attribute is provided\r\n        var /** @type {?} */ projectionSelector = preparsedElement.projectAs != null ?\r\n            CssSelector.parse(preparsedElement.projectAs)[0] :\r\n            elementCssSelector;\r\n        var /** @type {?} */ ngContentIndex = ((parent.findNgContentIndex(projectionSelector)));\r\n        var /** @type {?} */ parsedElement;\r\n        if (preparsedElement.type === PreparsedElementType.NG_CONTENT) {\r\n            if (element.children && !element.children.every(_isEmptyTextNode)) {\r\n                this._reportError(\"<ng-content> element cannot have content.\", /** @type {?} */ ((element.sourceSpan)));\r\n            }\r\n            parsedElement = new NgContentAst(this.ngContentCount++, hasInlineTemplates ? ((null)) : ngContentIndex, /** @type {?} */ ((element.sourceSpan)));\r\n        }\r\n        else if (isTemplateElement) {\r\n            this._assertAllEventsPublishedByDirectives(directiveAsts, events);\r\n            this._assertNoComponentsNorElementBindingsOnTemplate(directiveAsts, elementProps, /** @type {?} */ ((element.sourceSpan)));\r\n            parsedElement = new EmbeddedTemplateAst(attrs, events, references, elementVars, providerContext.transformedDirectiveAsts, providerContext.transformProviders, providerContext.transformedHasViewContainer, providerContext.queryMatches, children, hasInlineTemplates ? ((null)) : ngContentIndex, /** @type {?} */ ((element.sourceSpan)));\r\n        }\r\n        else {\r\n            this._assertElementExists(matchElement, element);\r\n            this._assertOnlyOneComponent(directiveAsts, /** @type {?} */ ((element.sourceSpan)));\r\n            var /** @type {?} */ ngContentIndex_1 = hasInlineTemplates ? null : parent.findNgContentIndex(projectionSelector);\r\n            parsedElement = new ElementAst(nodeName, attrs, elementProps, events, references, providerContext.transformedDirectiveAsts, providerContext.transformProviders, providerContext.transformedHasViewContainer, providerContext.queryMatches, children, hasInlineTemplates ? null : ngContentIndex_1, element.sourceSpan, element.endSourceSpan || null);\r\n        }\r\n        if (hasInlineTemplates) {\r\n            var /** @type {?} */ templateQueryStartIndex = this.contentQueryStartId;\r\n            var /** @type {?} */ templateSelector = createElementCssSelector(TEMPLATE_ELEMENT, templateMatchableAttrs);\r\n            var templateDirectiveMetas = this._parseDirectives(this.selectorMatcher, templateSelector).directives;\r\n            var /** @type {?} */ templateBoundDirectivePropNames = new Set();\r\n            var /** @type {?} */ templateDirectiveAsts = this._createDirectiveAsts(true, element.name, templateDirectiveMetas, templateElementOrDirectiveProps, [], /** @type {?} */ ((element.sourceSpan)), [], templateBoundDirectivePropNames);\r\n            var /** @type {?} */ templateElementProps = this._createElementPropertyAsts(element.name, templateElementOrDirectiveProps, templateBoundDirectivePropNames);\r\n            this._assertNoComponentsNorElementBindingsOnTemplate(templateDirectiveAsts, templateElementProps, /** @type {?} */ ((element.sourceSpan)));\r\n            var /** @type {?} */ templateProviderContext = new ProviderElementContext(this.providerViewContext, /** @type {?} */ ((parent.providerContext)), parent.isTemplateElement, templateDirectiveAsts, [], [], true, templateQueryStartIndex, /** @type {?} */ ((element.sourceSpan)));\r\n            templateProviderContext.afterElement();\r\n            parsedElement = new EmbeddedTemplateAst([], [], [], templateElementVars, templateProviderContext.transformedDirectiveAsts, templateProviderContext.transformProviders, templateProviderContext.transformedHasViewContainer, templateProviderContext.queryMatches, [parsedElement], ngContentIndex, /** @type {?} */ ((element.sourceSpan)));\r\n        }\r\n        return parsedElement;\r\n    };\r\n    /**\r\n     * @param {?} isTemplateElement\r\n     * @param {?} attr\r\n     * @param {?} targetMatchableAttrs\r\n     * @param {?} targetProps\r\n     * @param {?} targetEvents\r\n     * @param {?} targetRefs\r\n     * @param {?} targetVars\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._parseAttr = function (isTemplateElement, attr, targetMatchableAttrs, targetProps, targetEvents, targetRefs, targetVars) {\r\n        var /** @type {?} */ name = this._normalizeAttributeName(attr.name);\r\n        var /** @type {?} */ value = attr.value;\r\n        var /** @type {?} */ srcSpan = attr.sourceSpan;\r\n        var /** @type {?} */ bindParts = name.match(BIND_NAME_REGEXP);\r\n        var /** @type {?} */ hasBinding = false;\r\n        if (bindParts !== null) {\r\n            hasBinding = true;\r\n            if (bindParts[KW_BIND_IDX] != null) {\r\n                this._bindingParser.parsePropertyBinding(bindParts[IDENT_KW_IDX], value, false, srcSpan, targetMatchableAttrs, targetProps);\r\n            }\r\n            else if (bindParts[KW_LET_IDX]) {\r\n                if (isTemplateElement) {\r\n                    var /** @type {?} */ identifier = bindParts[IDENT_KW_IDX];\r\n                    this._parseVariable(identifier, value, srcSpan, targetVars);\r\n                }\r\n                else {\r\n                    this._reportError(\"\\\"let-\\\" is only supported on template elements.\", srcSpan);\r\n                }\r\n            }\r\n            else if (bindParts[KW_REF_IDX]) {\r\n                var /** @type {?} */ identifier = bindParts[IDENT_KW_IDX];\r\n                this._parseReference(identifier, value, srcSpan, targetRefs);\r\n            }\r\n            else if (bindParts[KW_ON_IDX]) {\r\n                this._bindingParser.parseEvent(bindParts[IDENT_KW_IDX], value, srcSpan, targetMatchableAttrs, targetEvents);\r\n            }\r\n            else if (bindParts[KW_BINDON_IDX]) {\r\n                this._bindingParser.parsePropertyBinding(bindParts[IDENT_KW_IDX], value, false, srcSpan, targetMatchableAttrs, targetProps);\r\n                this._parseAssignmentEvent(bindParts[IDENT_KW_IDX], value, srcSpan, targetMatchableAttrs, targetEvents);\r\n            }\r\n            else if (bindParts[KW_AT_IDX]) {\r\n                this._bindingParser.parseLiteralAttr(name, value, srcSpan, targetMatchableAttrs, targetProps);\r\n            }\r\n            else if (bindParts[IDENT_BANANA_BOX_IDX]) {\r\n                this._bindingParser.parsePropertyBinding(bindParts[IDENT_BANANA_BOX_IDX], value, false, srcSpan, targetMatchableAttrs, targetProps);\r\n                this._parseAssignmentEvent(bindParts[IDENT_BANANA_BOX_IDX], value, srcSpan, targetMatchableAttrs, targetEvents);\r\n            }\r\n            else if (bindParts[IDENT_PROPERTY_IDX]) {\r\n                this._bindingParser.parsePropertyBinding(bindParts[IDENT_PROPERTY_IDX], value, false, srcSpan, targetMatchableAttrs, targetProps);\r\n            }\r\n            else if (bindParts[IDENT_EVENT_IDX]) {\r\n                this._bindingParser.parseEvent(bindParts[IDENT_EVENT_IDX], value, srcSpan, targetMatchableAttrs, targetEvents);\r\n            }\r\n        }\r\n        else {\r\n            hasBinding = this._bindingParser.parsePropertyInterpolation(name, value, srcSpan, targetMatchableAttrs, targetProps);\r\n        }\r\n        if (!hasBinding) {\r\n            this._bindingParser.parseLiteralAttr(name, value, srcSpan, targetMatchableAttrs, targetProps);\r\n        }\r\n        return hasBinding;\r\n    };\r\n    /**\r\n     * @param {?} attrName\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._normalizeAttributeName = function (attrName) {\r\n        return /^data-/i.test(attrName) ? attrName.substring(5) : attrName;\r\n    };\r\n    /**\r\n     * @param {?} identifier\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetVars\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._parseVariable = function (identifier, value, sourceSpan, targetVars) {\r\n        if (identifier.indexOf('-') > -1) {\r\n            this._reportError(\"\\\"-\\\" is not allowed in variable names\", sourceSpan);\r\n        }\r\n        targetVars.push(new VariableAst(identifier, value, sourceSpan));\r\n    };\r\n    /**\r\n     * @param {?} identifier\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetRefs\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._parseReference = function (identifier, value, sourceSpan, targetRefs) {\r\n        if (identifier.indexOf('-') > -1) {\r\n            this._reportError(\"\\\"-\\\" is not allowed in reference names\", sourceSpan);\r\n        }\r\n        targetRefs.push(new ElementOrDirectiveRef(identifier, value, sourceSpan));\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} expression\r\n     * @param {?} sourceSpan\r\n     * @param {?} targetMatchableAttrs\r\n     * @param {?} targetEvents\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._parseAssignmentEvent = function (name, expression, sourceSpan, targetMatchableAttrs, targetEvents) {\r\n        this._bindingParser.parseEvent(name + \"Change\", expression + \"=$event\", sourceSpan, targetMatchableAttrs, targetEvents);\r\n    };\r\n    /**\r\n     * @param {?} selectorMatcher\r\n     * @param {?} elementCssSelector\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._parseDirectives = function (selectorMatcher, elementCssSelector) {\r\n        var _this = this;\r\n        // Need to sort the directives so that we get consistent results throughout,\r\n        // as selectorMatcher uses Maps inside.\r\n        // Also deduplicate directives as they might match more than one time!\r\n        var /** @type {?} */ directives = new Array(this.directivesIndex.size);\r\n        // Whether any directive selector matches on the element name\r\n        var /** @type {?} */ matchElement = false;\r\n        selectorMatcher.match(elementCssSelector, function (selector, directive) {\r\n            directives[((_this.directivesIndex.get(directive)))] = directive;\r\n            matchElement = matchElement || selector.hasElementSelector();\r\n        });\r\n        return {\r\n            directives: directives.filter(function (dir) { return !!dir; }),\r\n            matchElement: matchElement,\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} isTemplateElement\r\n     * @param {?} elementName\r\n     * @param {?} directives\r\n     * @param {?} props\r\n     * @param {?} elementOrDirectiveRefs\r\n     * @param {?} elementSourceSpan\r\n     * @param {?} targetReferences\r\n     * @param {?} targetBoundDirectivePropNames\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._createDirectiveAsts = function (isTemplateElement, elementName, directives, props, elementOrDirectiveRefs, elementSourceSpan, targetReferences, targetBoundDirectivePropNames) {\r\n        var _this = this;\r\n        var /** @type {?} */ matchedReferences = new Set();\r\n        var /** @type {?} */ component = ((null));\r\n        var /** @type {?} */ directiveAsts = directives.map(function (directive) {\r\n            var /** @type {?} */ sourceSpan = new ParseSourceSpan(elementSourceSpan.start, elementSourceSpan.end, \"Directive \" + identifierName(directive.type));\r\n            if (directive.isComponent) {\r\n                component = directive;\r\n            }\r\n            var /** @type {?} */ directiveProperties = [];\r\n            var /** @type {?} */ hostProperties = ((_this._bindingParser.createDirectiveHostPropertyAsts(directive, elementName, sourceSpan)));\r\n            // Note: We need to check the host properties here as well,\r\n            // as we don't know the element name in the DirectiveWrapperCompiler yet.\r\n            hostProperties = _this._checkPropertiesInSchema(elementName, hostProperties);\r\n            var /** @type {?} */ hostEvents = ((_this._bindingParser.createDirectiveHostEventAsts(directive, sourceSpan)));\r\n            _this._createDirectivePropertyAsts(directive.inputs, props, directiveProperties, targetBoundDirectivePropNames);\r\n            elementOrDirectiveRefs.forEach(function (elOrDirRef) {\r\n                if ((elOrDirRef.value.length === 0 && directive.isComponent) ||\r\n                    (directive.exportAs == elOrDirRef.value)) {\r\n                    targetReferences.push(new ReferenceAst(elOrDirRef.name, identifierToken(directive.type), elOrDirRef.sourceSpan));\r\n                    matchedReferences.add(elOrDirRef.name);\r\n                }\r\n            });\r\n            var /** @type {?} */ contentQueryStartId = _this.contentQueryStartId;\r\n            _this.contentQueryStartId += directive.queries.length;\r\n            return new DirectiveAst(directive, directiveProperties, hostProperties, hostEvents, contentQueryStartId, sourceSpan);\r\n        });\r\n        elementOrDirectiveRefs.forEach(function (elOrDirRef) {\r\n            if (elOrDirRef.value.length > 0) {\r\n                if (!matchedReferences.has(elOrDirRef.name)) {\r\n                    _this._reportError(\"There is no directive with \\\"exportAs\\\" set to \\\"\" + elOrDirRef.value + \"\\\"\", elOrDirRef.sourceSpan);\r\n                }\r\n            }\r\n            else if (!component) {\r\n                var /** @type {?} */ refToken = ((null));\r\n                if (isTemplateElement) {\r\n                    refToken = createIdentifierToken(Identifiers.TemplateRef);\r\n                }\r\n                targetReferences.push(new ReferenceAst(elOrDirRef.name, refToken, elOrDirRef.sourceSpan));\r\n            }\r\n        });\r\n        return directiveAsts;\r\n    };\r\n    /**\r\n     * @param {?} directiveProperties\r\n     * @param {?} boundProps\r\n     * @param {?} targetBoundDirectiveProps\r\n     * @param {?} targetBoundDirectivePropNames\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._createDirectivePropertyAsts = function (directiveProperties, boundProps, targetBoundDirectiveProps, targetBoundDirectivePropNames) {\r\n        if (directiveProperties) {\r\n            var /** @type {?} */ boundPropsByName_1 = new Map();\r\n            boundProps.forEach(function (boundProp) {\r\n                var /** @type {?} */ prevValue = boundPropsByName_1.get(boundProp.name);\r\n                if (!prevValue || prevValue.isLiteral) {\r\n                    // give [a]=\"b\" a higher precedence than a=\"b\" on the same element\r\n                    boundPropsByName_1.set(boundProp.name, boundProp);\r\n                }\r\n            });\r\n            Object.keys(directiveProperties).forEach(function (dirProp) {\r\n                var /** @type {?} */ elProp = directiveProperties[dirProp];\r\n                var /** @type {?} */ boundProp = boundPropsByName_1.get(elProp);\r\n                // Bindings are optional, so this binding only needs to be set up if an expression is given.\r\n                if (boundProp) {\r\n                    targetBoundDirectivePropNames.add(boundProp.name);\r\n                    if (!isEmptyExpression(boundProp.expression)) {\r\n                        targetBoundDirectiveProps.push(new BoundDirectivePropertyAst(dirProp, boundProp.name, boundProp.expression, boundProp.sourceSpan));\r\n                    }\r\n                }\r\n            });\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} elementName\r\n     * @param {?} props\r\n     * @param {?} boundDirectivePropNames\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._createElementPropertyAsts = function (elementName, props, boundDirectivePropNames) {\r\n        var _this = this;\r\n        var /** @type {?} */ boundElementProps = [];\r\n        props.forEach(function (prop) {\r\n            if (!prop.isLiteral && !boundDirectivePropNames.has(prop.name)) {\r\n                boundElementProps.push(_this._bindingParser.createElementPropertyAst(elementName, prop));\r\n            }\r\n        });\r\n        return this._checkPropertiesInSchema(elementName, boundElementProps);\r\n    };\r\n    /**\r\n     * @param {?} directives\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._findComponentDirectives = function (directives) {\r\n        return directives.filter(function (directive) { return directive.directive.isComponent; });\r\n    };\r\n    /**\r\n     * @param {?} directives\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._findComponentDirectiveNames = function (directives) {\r\n        return this._findComponentDirectives(directives)\r\n            .map(function (directive) { return ((identifierName(directive.directive.type))); });\r\n    };\r\n    /**\r\n     * @param {?} directives\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._assertOnlyOneComponent = function (directives, sourceSpan) {\r\n        var /** @type {?} */ componentTypeNames = this._findComponentDirectiveNames(directives);\r\n        if (componentTypeNames.length > 1) {\r\n            this._reportError(\"More than one component matched on this element.\\n\" +\r\n                \"Make sure that only one component's selector can match a given element.\\n\" +\r\n                (\"Conflicting components: \" + componentTypeNames.join(',')), sourceSpan);\r\n        }\r\n    };\r\n    /**\r\n     * Make sure that non-angular tags conform to the schemas.\r\n     *\r\n     * Note: An element is considered an angular tag when at least one directive selector matches the\r\n     * tag name.\r\n     *\r\n     * @param {?} matchElement Whether any directive has matched on the tag name\r\n     * @param {?} element the html element\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._assertElementExists = function (matchElement, element) {\r\n        var /** @type {?} */ elName = element.name.replace(/^:xhtml:/, '');\r\n        if (!matchElement && !this._schemaRegistry.hasElement(elName, this._schemas)) {\r\n            var /** @type {?} */ errorMsg = \"'\" + elName + \"' is not a known element:\\n\";\r\n            errorMsg +=\r\n                \"1. If '\" + elName + \"' is an Angular component, then verify that it is part of this module.\\n\";\r\n            if (elName.indexOf('-') > -1) {\r\n                errorMsg +=\r\n                    \"2. If '\" + elName + \"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\";\r\n            }\r\n            else {\r\n                errorMsg +=\r\n                    \"2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.\";\r\n            }\r\n            this._reportError(errorMsg, /** @type {?} */ ((element.sourceSpan)));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} directives\r\n     * @param {?} elementProps\r\n     * @param {?} sourceSpan\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._assertNoComponentsNorElementBindingsOnTemplate = function (directives, elementProps, sourceSpan) {\r\n        var _this = this;\r\n        var /** @type {?} */ componentTypeNames = this._findComponentDirectiveNames(directives);\r\n        if (componentTypeNames.length > 0) {\r\n            this._reportError(\"Components on an embedded template: \" + componentTypeNames.join(','), sourceSpan);\r\n        }\r\n        elementProps.forEach(function (prop) {\r\n            _this._reportError(\"Property binding \" + prop.name + \" not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the \\\"@NgModule.declarations\\\".\", sourceSpan);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} directives\r\n     * @param {?} events\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._assertAllEventsPublishedByDirectives = function (directives, events) {\r\n        var _this = this;\r\n        var /** @type {?} */ allDirectiveEvents = new Set();\r\n        directives.forEach(function (directive) {\r\n            Object.keys(directive.directive.outputs).forEach(function (k) {\r\n                var /** @type {?} */ eventName = directive.directive.outputs[k];\r\n                allDirectiveEvents.add(eventName);\r\n            });\r\n        });\r\n        events.forEach(function (event) {\r\n            if (event.target != null || !allDirectiveEvents.has(event.name)) {\r\n                _this._reportError(\"Event binding \" + event.fullName + \" not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the \\\"@NgModule.declarations\\\".\", event.sourceSpan);\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} elementName\r\n     * @param {?} boundProps\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._checkPropertiesInSchema = function (elementName, boundProps) {\r\n        var _this = this;\r\n        // Note: We can't filter out empty expressions before this method,\r\n        // as we still want to validate them!\r\n        return boundProps.filter(function (boundProp) {\r\n            if (boundProp.type === PropertyBindingType.Property &&\r\n                !_this._schemaRegistry.hasProperty(elementName, boundProp.name, _this._schemas)) {\r\n                var /** @type {?} */ errorMsg = \"Can't bind to '\" + boundProp.name + \"' since it isn't a known property of '\" + elementName + \"'.\";\r\n                if (elementName.startsWith('ng-')) {\r\n                    errorMsg +=\r\n                        \"\\n1. If '\" + boundProp.name + \"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\" +\r\n                            \"\\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.\";\r\n                }\r\n                else if (elementName.indexOf('-') > -1) {\r\n                    errorMsg +=\r\n                        \"\\n1. If '\" + elementName + \"' is an Angular component and it has '\" + boundProp.name + \"' input, then verify that it is part of this module.\" +\r\n                            (\"\\n2. If '\" + elementName + \"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\") +\r\n                            \"\\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.\";\r\n                }\r\n                _this._reportError(errorMsg, boundProp.sourceSpan);\r\n            }\r\n            return !isEmptyExpression(boundProp.value);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} message\r\n     * @param {?} sourceSpan\r\n     * @param {?=} level\r\n     * @return {?}\r\n     */\r\n    TemplateParseVisitor.prototype._reportError = function (message, sourceSpan, level) {\r\n        if (level === void 0) { level = ParseErrorLevel.ERROR; }\r\n        this._targetErrors.push(new ParseError(sourceSpan, message, level));\r\n    };\r\n    return TemplateParseVisitor;\r\n}());\r\nvar NonBindableVisitor = (function () {\r\n    function NonBindableVisitor() {\r\n    }\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} parent\r\n     * @return {?}\r\n     */\r\n    NonBindableVisitor.prototype.visitElement = function (ast, parent) {\r\n        var /** @type {?} */ preparsedElement = preparseElement(ast);\r\n        if (preparsedElement.type === PreparsedElementType.SCRIPT ||\r\n            preparsedElement.type === PreparsedElementType.STYLE ||\r\n            preparsedElement.type === PreparsedElementType.STYLESHEET) {\r\n            // Skipping <script> for security reasons\r\n            // Skipping <style> and stylesheets as we already processed them\r\n            // in the StyleCompiler\r\n            return null;\r\n        }\r\n        var /** @type {?} */ attrNameAndValues = ast.attrs.map(function (attr) { return [attr.name, attr.value]; });\r\n        var /** @type {?} */ selector = createElementCssSelector(ast.name, attrNameAndValues);\r\n        var /** @type {?} */ ngContentIndex = parent.findNgContentIndex(selector);\r\n        var /** @type {?} */ children = visitAll(this, ast.children, EMPTY_ELEMENT_CONTEXT);\r\n        return new ElementAst(ast.name, visitAll(this, ast.attrs), [], [], [], [], [], false, [], children, ngContentIndex, ast.sourceSpan, ast.endSourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} comment\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    NonBindableVisitor.prototype.visitComment = function (comment, context) { return null; };\r\n    /**\r\n     * @param {?} attribute\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    NonBindableVisitor.prototype.visitAttribute = function (attribute, context) {\r\n        return new AttrAst(attribute.name, attribute.value, attribute.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} text\r\n     * @param {?} parent\r\n     * @return {?}\r\n     */\r\n    NonBindableVisitor.prototype.visitText = function (text, parent) {\r\n        var /** @type {?} */ ngContentIndex = ((parent.findNgContentIndex(TEXT_CSS_SELECTOR)));\r\n        return new TextAst(text.value, ngContentIndex, /** @type {?} */ ((text.sourceSpan)));\r\n    };\r\n    /**\r\n     * @param {?} expansion\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    NonBindableVisitor.prototype.visitExpansion = function (expansion, context) { return expansion; };\r\n    /**\r\n     * @param {?} expansionCase\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    NonBindableVisitor.prototype.visitExpansionCase = function (expansionCase, context) { return expansionCase; };\r\n    return NonBindableVisitor;\r\n}());\r\nvar ElementOrDirectiveRef = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?} sourceSpan\r\n     */\r\n    function ElementOrDirectiveRef(name, value, sourceSpan) {\r\n        this.name = name;\r\n        this.value = value;\r\n        this.sourceSpan = sourceSpan;\r\n    }\r\n    return ElementOrDirectiveRef;\r\n}());\r\n/**\r\n * @param {?} classAttrValue\r\n * @return {?}\r\n */\r\nfunction splitClasses(classAttrValue) {\r\n    return classAttrValue.trim().split(/\\s+/g);\r\n}\r\nvar ElementContext = (function () {\r\n    /**\r\n     * @param {?} isTemplateElement\r\n     * @param {?} _ngContentIndexMatcher\r\n     * @param {?} _wildcardNgContentIndex\r\n     * @param {?} providerContext\r\n     */\r\n    function ElementContext(isTemplateElement, _ngContentIndexMatcher, _wildcardNgContentIndex, providerContext) {\r\n        this.isTemplateElement = isTemplateElement;\r\n        this._ngContentIndexMatcher = _ngContentIndexMatcher;\r\n        this._wildcardNgContentIndex = _wildcardNgContentIndex;\r\n        this.providerContext = providerContext;\r\n    }\r\n    /**\r\n     * @param {?} isTemplateElement\r\n     * @param {?} directives\r\n     * @param {?} providerContext\r\n     * @return {?}\r\n     */\r\n    ElementContext.create = function (isTemplateElement, directives, providerContext) {\r\n        var /** @type {?} */ matcher = new SelectorMatcher();\r\n        var /** @type {?} */ wildcardNgContentIndex = ((null));\r\n        var /** @type {?} */ component = directives.find(function (directive) { return directive.directive.isComponent; });\r\n        if (component) {\r\n            var /** @type {?} */ ngContentSelectors = ((component.directive.template)).ngContentSelectors;\r\n            for (var /** @type {?} */ i = 0; i < ngContentSelectors.length; i++) {\r\n                var /** @type {?} */ selector = ngContentSelectors[i];\r\n                if (selector === '*') {\r\n                    wildcardNgContentIndex = i;\r\n                }\r\n                else {\r\n                    matcher.addSelectables(CssSelector.parse(ngContentSelectors[i]), i);\r\n                }\r\n            }\r\n        }\r\n        return new ElementContext(isTemplateElement, matcher, wildcardNgContentIndex, providerContext);\r\n    };\r\n    /**\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    ElementContext.prototype.findNgContentIndex = function (selector) {\r\n        var /** @type {?} */ ngContentIndices = [];\r\n        this._ngContentIndexMatcher.match(selector, function (selector, ngContentIndex) { ngContentIndices.push(ngContentIndex); });\r\n        ngContentIndices.sort();\r\n        if (this._wildcardNgContentIndex != null) {\r\n            ngContentIndices.push(this._wildcardNgContentIndex);\r\n        }\r\n        return ngContentIndices.length > 0 ? ngContentIndices[0] : null;\r\n    };\r\n    return ElementContext;\r\n}());\r\n/**\r\n * @param {?} elementName\r\n * @param {?} attributes\r\n * @return {?}\r\n */\r\nfunction createElementCssSelector(elementName, attributes) {\r\n    var /** @type {?} */ cssSelector = new CssSelector();\r\n    var /** @type {?} */ elNameNoNs = splitNsName(elementName)[1];\r\n    cssSelector.setElement(elNameNoNs);\r\n    for (var /** @type {?} */ i = 0; i < attributes.length; i++) {\r\n        var /** @type {?} */ attrName = attributes[i][0];\r\n        var /** @type {?} */ attrNameNoNs = splitNsName(attrName)[1];\r\n        var /** @type {?} */ attrValue = attributes[i][1];\r\n        cssSelector.addAttribute(attrNameNoNs, attrValue);\r\n        if (attrName.toLowerCase() == CLASS_ATTR) {\r\n            var /** @type {?} */ classes = splitClasses(attrValue);\r\n            classes.forEach(function (className) { return cssSelector.addClassName(className); });\r\n        }\r\n    }\r\n    return cssSelector;\r\n}\r\nvar EMPTY_ELEMENT_CONTEXT = new ElementContext(true, new SelectorMatcher(), null, null);\r\nvar NON_BINDABLE_VISITOR = new NonBindableVisitor();\r\n/**\r\n * @param {?} node\r\n * @return {?}\r\n */\r\nfunction _isEmptyTextNode(node) {\r\n    return node instanceof Text && node.value.trim().length == 0;\r\n}\r\n/**\r\n * @template T\r\n * @param {?} items\r\n * @return {?}\r\n */\r\nfunction removeSummaryDuplicates(items) {\r\n    var /** @type {?} */ map = new Map();\r\n    items.forEach(function (item) {\r\n        if (!map.get(item.type.reference)) {\r\n            map.set(item.type.reference, item);\r\n        }\r\n    });\r\n    return Array.from(map.values());\r\n}\r\n/**\r\n * @param {?} ast\r\n * @return {?}\r\n */\r\nfunction isEmptyExpression(ast) {\r\n    if (ast instanceof ASTWithSource) {\r\n        ast = ast.ast;\r\n    }\r\n    return ast instanceof EmptyExpr;\r\n}\r\n/**\r\n * @param {?} el\r\n * @param {?} enableLegacyTemplate\r\n * @param {?} reportDeprecation\r\n * @return {?}\r\n */\r\nfunction isTemplate(el, enableLegacyTemplate, reportDeprecation) {\r\n    if (isNgTemplate(el.name))\r\n        return true;\r\n    var /** @type {?} */ tagNoNs = splitNsName(el.name)[1];\r\n    // `<template>` is HTML and case insensitive\r\n    if (tagNoNs.toLowerCase() === TEMPLATE_ELEMENT) {\r\n        if (enableLegacyTemplate && tagNoNs.toLowerCase() === TEMPLATE_ELEMENT) {\r\n            reportDeprecation(TEMPLATE_ELEMENT_DEPRECATION_WARNING, /** @type {?} */ ((el.sourceSpan)));\r\n            return true;\r\n        }\r\n    }\r\n    return false;\r\n}\r\n/**\r\n * An interface for retrieving documents by URL that the compiler uses\r\n * to load templates.\r\n */\r\nvar ResourceLoader = (function () {\r\n    function ResourceLoader() {\r\n    }\r\n    /**\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    ResourceLoader.prototype.get = function (url) { return null; };\r\n    return ResourceLoader;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Create a {\\@link UrlResolver} with no package prefix.\r\n * @return {?}\r\n */\r\nfunction createUrlResolverWithoutPackagePrefix() {\r\n    return new UrlResolver();\r\n}\r\n/**\r\n * @return {?}\r\n */\r\nfunction createOfflineCompileUrlResolver() {\r\n    return new UrlResolver('.');\r\n}\r\n/**\r\n * A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.\r\n */\r\nvar DEFAULT_PACKAGE_URL_PROVIDER = {\r\n    provide: PACKAGE_ROOT_URL,\r\n    useValue: '/'\r\n};\r\n/**\r\n * Used by the {\\@link Compiler} when resolving HTML and CSS template URLs.\r\n *\r\n * This class can be overridden by the application developer to create custom behavior.\r\n *\r\n * See {\\@link Compiler}\r\n *\r\n * ## Example\r\n *\r\n * {\\@example compiler/ts/url_resolver/url_resolver.ts region='url_resolver'}\r\n *\r\n * \\@security When compiling templates at runtime, you must\r\n * ensure that the entire template comes from a trusted source.\r\n * Attacker-controlled data introduced by a template could expose your\r\n * application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).\r\n */\r\nvar UrlResolver = (function () {\r\n    /**\r\n     * @param {?=} _packagePrefix\r\n     */\r\n    function UrlResolver(_packagePrefix) {\r\n        if (_packagePrefix === void 0) { _packagePrefix = null; }\r\n        this._packagePrefix = _packagePrefix;\r\n    }\r\n    /**\r\n     * Resolves the `url` given the `baseUrl`:\r\n     * - when the `url` is null, the `baseUrl` is returned,\r\n     * - if `url` is relative ('path/to/here', './path/to/here'), the resolved url is a combination of\r\n     * `baseUrl` and `url`,\r\n     * - if `url` is absolute (it has a scheme: 'http://', 'https://' or start with '/'), the `url` is\r\n     * returned as is (ignoring the `baseUrl`)\r\n     * @param {?} baseUrl\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    UrlResolver.prototype.resolve = function (baseUrl, url) {\r\n        var /** @type {?} */ resolvedUrl = url;\r\n        if (baseUrl != null && baseUrl.length > 0) {\r\n            resolvedUrl = _resolveUrl(baseUrl, resolvedUrl);\r\n        }\r\n        var /** @type {?} */ resolvedParts = _split(resolvedUrl);\r\n        var /** @type {?} */ prefix = this._packagePrefix;\r\n        if (prefix != null && resolvedParts != null &&\r\n            resolvedParts[_ComponentIndex.Scheme] == 'package') {\r\n            var /** @type {?} */ path = resolvedParts[_ComponentIndex.Path];\r\n            prefix = prefix.replace(/\\/+$/, '');\r\n            path = path.replace(/^\\/+/, '');\r\n            return prefix + \"/\" + path;\r\n        }\r\n        return resolvedUrl;\r\n    };\r\n    return UrlResolver;\r\n}());\r\nUrlResolver.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nUrlResolver.ctorParameters = function () { return [\r\n    { type: undefined, decorators: [{ type: Inject, args: [PACKAGE_ROOT_URL,] },] },\r\n]; };\r\n/**\r\n * Extract the scheme of a URL.\r\n * @param {?} url\r\n * @return {?}\r\n */\r\nfunction getUrlScheme(url) {\r\n    var /** @type {?} */ match = _split(url);\r\n    return (match && match[_ComponentIndex.Scheme]) || '';\r\n}\r\n/**\r\n * Builds a URI string from already-encoded parts.\r\n *\r\n * No encoding is performed.  Any component may be omitted as either null or\r\n * undefined.\r\n *\r\n * @param {?=} opt_scheme The scheme such as 'http'.\r\n * @param {?=} opt_userInfo The user name before the '\\@'.\r\n * @param {?=} opt_domain The domain such as 'www.google.com', already\r\n *     URI-encoded.\r\n * @param {?=} opt_port The port number.\r\n * @param {?=} opt_path The path, already URI-encoded.  If it is not\r\n *     empty, it must begin with a slash.\r\n * @param {?=} opt_queryData The URI-encoded query data.\r\n * @param {?=} opt_fragment The URI-encoded fragment identifier.\r\n * @return {?} The fully combined URI.\r\n */\r\nfunction _buildFromEncodedParts(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_path, opt_queryData, opt_fragment) {\r\n    var /** @type {?} */ out = [];\r\n    if (opt_scheme != null) {\r\n        out.push(opt_scheme + ':');\r\n    }\r\n    if (opt_domain != null) {\r\n        out.push('//');\r\n        if (opt_userInfo != null) {\r\n            out.push(opt_userInfo + '@');\r\n        }\r\n        out.push(opt_domain);\r\n        if (opt_port != null) {\r\n            out.push(':' + opt_port);\r\n        }\r\n    }\r\n    if (opt_path != null) {\r\n        out.push(opt_path);\r\n    }\r\n    if (opt_queryData != null) {\r\n        out.push('?' + opt_queryData);\r\n    }\r\n    if (opt_fragment != null) {\r\n        out.push('#' + opt_fragment);\r\n    }\r\n    return out.join('');\r\n}\r\n/**\r\n * A regular expression for breaking a URI into its component parts.\r\n *\r\n * {\\@link http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#RFC2234} says\r\n * As the \"first-match-wins\" algorithm is identical to the \"greedy\"\r\n * disambiguation method used by POSIX regular expressions, it is natural and\r\n * commonplace to use a regular expression for parsing the potential five\r\n * components of a URI reference.\r\n *\r\n * The following line is the regular expression for breaking-down a\r\n * well-formed URI reference into its components.\r\n *\r\n * <pre>\r\n * ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?\r\n *  12            3  4          5       6  7        8 9\r\n * </pre>\r\n *\r\n * The numbers in the second line above are only to assist readability; they\r\n * indicate the reference points for each subexpression (i.e., each paired\r\n * parenthesis). We refer to the value matched for subexpression <n> as $<n>.\r\n * For example, matching the above expression to\r\n * <pre>\r\n *     http://www.ics.uci.edu/pub/ietf/uri/#Related\r\n * </pre>\r\n * results in the following subexpression matches:\r\n * <pre>\r\n *    $1 = http:\r\n *    $2 = http\r\n *    $3 = //www.ics.uci.edu\r\n *    $4 = www.ics.uci.edu\r\n *    $5 = /pub/ietf/uri/\r\n *    $6 = <undefined>\r\n *    $7 = <undefined>\r\n *    $8 = #Related\r\n *    $9 = Related\r\n * </pre>\r\n * where <undefined> indicates that the component is not present, as is the\r\n * case for the query component in the above example. Therefore, we can\r\n * determine the value of the five components as\r\n * <pre>\r\n *    scheme    = $2\r\n *    authority = $4\r\n *    path      = $5\r\n *    query     = $7\r\n *    fragment  = $9\r\n * </pre>\r\n *\r\n * The regular expression has been modified slightly to expose the\r\n * userInfo, domain, and port separately from the authority.\r\n * The modified version yields\r\n * <pre>\r\n *    $1 = http              scheme\r\n *    $2 = <undefined>       userInfo -\\\r\n *    $3 = www.ics.uci.edu   domain     | authority\r\n *    $4 = <undefined>       port     -/\r\n *    $5 = /pub/ietf/uri/    path\r\n *    $6 = <undefined>       query without ?\r\n *    $7 = Related           fragment without #\r\n * </pre>\r\n * \\@internal\r\n */\r\nvar _splitRe = new RegExp('^' +\r\n    '(?:' +\r\n    '([^:/?#.]+)' +\r\n    // used by other URL parts such as :,\r\n    // ?, /, #, and .\r\n    ':)?' +\r\n    '(?://' +\r\n    '(?:([^/?#]*)@)?' +\r\n    '([\\\\w\\\\d\\\\-\\\\u0100-\\\\uffff.%]*)' +\r\n    // digits, dashes, dots, percent\r\n    // escapes, and unicode characters.\r\n    '(?::([0-9]+))?' +\r\n    ')?' +\r\n    '([^?#]+)?' +\r\n    '(?:\\\\?([^#]*))?' +\r\n    '(?:#(.*))?' +\r\n    '$');\r\nvar _ComponentIndex = {};\r\n_ComponentIndex.Scheme = 1;\r\n_ComponentIndex.UserInfo = 2;\r\n_ComponentIndex.Domain = 3;\r\n_ComponentIndex.Port = 4;\r\n_ComponentIndex.Path = 5;\r\n_ComponentIndex.QueryData = 6;\r\n_ComponentIndex.Fragment = 7;\r\n_ComponentIndex[_ComponentIndex.Scheme] = \"Scheme\";\r\n_ComponentIndex[_ComponentIndex.UserInfo] = \"UserInfo\";\r\n_ComponentIndex[_ComponentIndex.Domain] = \"Domain\";\r\n_ComponentIndex[_ComponentIndex.Port] = \"Port\";\r\n_ComponentIndex[_ComponentIndex.Path] = \"Path\";\r\n_ComponentIndex[_ComponentIndex.QueryData] = \"QueryData\";\r\n_ComponentIndex[_ComponentIndex.Fragment] = \"Fragment\";\r\n/**\r\n * Splits a URI into its component parts.\r\n *\r\n * Each component can be accessed via the component indices; for example:\r\n * <pre>\r\n * goog.uri.utils.split(someStr)[goog.uri.utils.CompontentIndex.QUERY_DATA];\r\n * </pre>\r\n *\r\n * @param {?} uri The URI string to examine.\r\n * @return {?} Each component still URI-encoded.\r\n *     Each component that is present will contain the encoded value, whereas\r\n *     components that are not present will be undefined or empty, depending\r\n *     on the browser's regular expression implementation.  Never null, since\r\n *     arbitrary strings may still look like path names.\r\n */\r\nfunction _split(uri) {\r\n    return ((uri.match(_splitRe)));\r\n}\r\n/**\r\n * Removes dot segments in given path component, as described in\r\n * RFC 3986, section 5.2.4.\r\n *\r\n * @param {?} path A non-empty path component.\r\n * @return {?} Path component with removed dot segments.\r\n */\r\nfunction _removeDotSegments(path) {\r\n    if (path == '/')\r\n        return '/';\r\n    var /** @type {?} */ leadingSlash = path[0] == '/' ? '/' : '';\r\n    var /** @type {?} */ trailingSlash = path[path.length - 1] === '/' ? '/' : '';\r\n    var /** @type {?} */ segments = path.split('/');\r\n    var /** @type {?} */ out = [];\r\n    var /** @type {?} */ up = 0;\r\n    for (var /** @type {?} */ pos = 0; pos < segments.length; pos++) {\r\n        var /** @type {?} */ segment = segments[pos];\r\n        switch (segment) {\r\n            case '':\r\n            case '.':\r\n                break;\r\n            case '..':\r\n                if (out.length > 0) {\r\n                    out.pop();\r\n                }\r\n                else {\r\n                    up++;\r\n                }\r\n                break;\r\n            default:\r\n                out.push(segment);\r\n        }\r\n    }\r\n    if (leadingSlash == '') {\r\n        while (up-- > 0) {\r\n            out.unshift('..');\r\n        }\r\n        if (out.length === 0)\r\n            out.push('.');\r\n    }\r\n    return leadingSlash + out.join('/') + trailingSlash;\r\n}\r\n/**\r\n * Takes an array of the parts from split and canonicalizes the path part\r\n * and then joins all the parts.\r\n * @param {?} parts\r\n * @return {?}\r\n */\r\nfunction _joinAndCanonicalizePath(parts) {\r\n    var /** @type {?} */ path = parts[_ComponentIndex.Path];\r\n    path = path == null ? '' : _removeDotSegments(path);\r\n    parts[_ComponentIndex.Path] = path;\r\n    return _buildFromEncodedParts(parts[_ComponentIndex.Scheme], parts[_ComponentIndex.UserInfo], parts[_ComponentIndex.Domain], parts[_ComponentIndex.Port], path, parts[_ComponentIndex.QueryData], parts[_ComponentIndex.Fragment]);\r\n}\r\n/**\r\n * Resolves a URL.\r\n * @param {?} base The URL acting as the base URL.\r\n * @param {?} url\r\n * @return {?}\r\n */\r\nfunction _resolveUrl(base, url) {\r\n    var /** @type {?} */ parts = _split(encodeURI(url));\r\n    var /** @type {?} */ baseParts = _split(base);\r\n    if (parts[_ComponentIndex.Scheme] != null) {\r\n        return _joinAndCanonicalizePath(parts);\r\n    }\r\n    else {\r\n        parts[_ComponentIndex.Scheme] = baseParts[_ComponentIndex.Scheme];\r\n    }\r\n    for (var /** @type {?} */ i = _ComponentIndex.Scheme; i <= _ComponentIndex.Port; i++) {\r\n        if (parts[i] == null) {\r\n            parts[i] = baseParts[i];\r\n        }\r\n    }\r\n    if (parts[_ComponentIndex.Path][0] == '/') {\r\n        return _joinAndCanonicalizePath(parts);\r\n    }\r\n    var /** @type {?} */ path = baseParts[_ComponentIndex.Path];\r\n    if (path == null)\r\n        path = '/';\r\n    var /** @type {?} */ index = path.lastIndexOf('/');\r\n    path = path.substring(0, index + 1) + parts[_ComponentIndex.Path];\r\n    parts[_ComponentIndex.Path] = path;\r\n    return _joinAndCanonicalizePath(parts);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar DirectiveNormalizer = (function () {\r\n    /**\r\n     * @param {?} _resourceLoader\r\n     * @param {?} _urlResolver\r\n     * @param {?} _htmlParser\r\n     * @param {?} _config\r\n     */\r\n    function DirectiveNormalizer(_resourceLoader, _urlResolver, _htmlParser, _config) {\r\n        this._resourceLoader = _resourceLoader;\r\n        this._urlResolver = _urlResolver;\r\n        this._htmlParser = _htmlParser;\r\n        this._config = _config;\r\n        this._resourceLoaderCache = new Map();\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DirectiveNormalizer.prototype.clearCache = function () { this._resourceLoaderCache.clear(); };\r\n    /**\r\n     * @param {?} normalizedDirective\r\n     * @return {?}\r\n     */\r\n    DirectiveNormalizer.prototype.clearCacheFor = function (normalizedDirective) {\r\n        var _this = this;\r\n        if (!normalizedDirective.isComponent) {\r\n            return;\r\n        }\r\n        var /** @type {?} */ template = ((normalizedDirective.template));\r\n        this._resourceLoaderCache.delete(/** @type {?} */ ((template.templateUrl)));\r\n        template.externalStylesheets.forEach(function (stylesheet) { _this._resourceLoaderCache.delete(/** @type {?} */ ((stylesheet.moduleUrl))); });\r\n    };\r\n    /**\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    DirectiveNormalizer.prototype._fetch = function (url) {\r\n        var /** @type {?} */ result = this._resourceLoaderCache.get(url);\r\n        if (!result) {\r\n            result = ((this._resourceLoader.get(url)));\r\n            this._resourceLoaderCache.set(url, result);\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} prenormData\r\n     * @return {?}\r\n     */\r\n    DirectiveNormalizer.prototype.normalizeTemplate = function (prenormData) {\r\n        var _this = this;\r\n        var /** @type {?} */ normalizedTemplateSync = ((null));\r\n        var /** @type {?} */ normalizedTemplateAsync = ((undefined));\r\n        if (isDefined(prenormData.template)) {\r\n            if (isDefined(prenormData.templateUrl)) {\r\n                throw syntaxError(\"'\" + ɵstringify(prenormData.componentType) + \"' component cannot define both template and templateUrl\");\r\n            }\r\n            if (typeof prenormData.template !== 'string') {\r\n                throw syntaxError(\"The template specified for component \" + ɵstringify(prenormData.componentType) + \" is not a string\");\r\n            }\r\n            normalizedTemplateSync = this.normalizeTemplateSync(prenormData);\r\n            normalizedTemplateAsync = Promise.resolve(/** @type {?} */ ((normalizedTemplateSync)));\r\n        }\r\n        else if (isDefined(prenormData.templateUrl)) {\r\n            if (typeof prenormData.templateUrl !== 'string') {\r\n                throw syntaxError(\"The templateUrl specified for component \" + ɵstringify(prenormData.componentType) + \" is not a string\");\r\n            }\r\n            normalizedTemplateAsync = this.normalizeTemplateAsync(prenormData);\r\n        }\r\n        else {\r\n            throw syntaxError(\"No template specified for component \" + ɵstringify(prenormData.componentType));\r\n        }\r\n        if (normalizedTemplateSync && normalizedTemplateSync.styleUrls.length === 0) {\r\n            // sync case\r\n            return new SyncAsyncResult(normalizedTemplateSync);\r\n        }\r\n        else {\r\n            // async case\r\n            return new SyncAsyncResult(null, normalizedTemplateAsync.then(function (normalizedTemplate) { return _this.normalizeExternalStylesheets(normalizedTemplate); }));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} prenomData\r\n     * @return {?}\r\n     */\r\n    DirectiveNormalizer.prototype.normalizeTemplateSync = function (prenomData) {\r\n        return this.normalizeLoadedTemplate(prenomData, /** @type {?} */ ((prenomData.template)), prenomData.moduleUrl);\r\n    };\r\n    /**\r\n     * @param {?} prenomData\r\n     * @return {?}\r\n     */\r\n    DirectiveNormalizer.prototype.normalizeTemplateAsync = function (prenomData) {\r\n        var _this = this;\r\n        var /** @type {?} */ templateUrl = this._urlResolver.resolve(prenomData.moduleUrl, /** @type {?} */ ((prenomData.templateUrl)));\r\n        return this._fetch(templateUrl)\r\n            .then(function (value) { return _this.normalizeLoadedTemplate(prenomData, value, templateUrl); });\r\n    };\r\n    /**\r\n     * @param {?} prenormData\r\n     * @param {?} template\r\n     * @param {?} templateAbsUrl\r\n     * @return {?}\r\n     */\r\n    DirectiveNormalizer.prototype.normalizeLoadedTemplate = function (prenormData, template, templateAbsUrl) {\r\n        var /** @type {?} */ isInline = !!prenormData.template;\r\n        var /** @type {?} */ interpolationConfig = InterpolationConfig.fromArray(/** @type {?} */ ((prenormData.interpolation)));\r\n        var /** @type {?} */ rootNodesAndErrors = this._htmlParser.parse(template, templateSourceUrl({ reference: prenormData.ngModuleType }, { type: { reference: prenormData.componentType } }, { isInline: isInline, templateUrl: templateAbsUrl }), true, interpolationConfig);\r\n        if (rootNodesAndErrors.errors.length > 0) {\r\n            var /** @type {?} */ errorString = rootNodesAndErrors.errors.join('\\n');\r\n            throw syntaxError(\"Template parse errors:\\n\" + errorString);\r\n        }\r\n        var /** @type {?} */ templateMetadataStyles = this.normalizeStylesheet(new CompileStylesheetMetadata({\r\n            styles: prenormData.styles,\r\n            styleUrls: prenormData.styleUrls,\r\n            moduleUrl: prenormData.moduleUrl\r\n        }));\r\n        var /** @type {?} */ visitor = new TemplatePreparseVisitor();\r\n        visitAll(visitor, rootNodesAndErrors.rootNodes);\r\n        var /** @type {?} */ templateStyles = this.normalizeStylesheet(new CompileStylesheetMetadata({ styles: visitor.styles, styleUrls: visitor.styleUrls, moduleUrl: templateAbsUrl }));\r\n        var /** @type {?} */ encapsulation = prenormData.encapsulation;\r\n        if (encapsulation == null) {\r\n            encapsulation = this._config.defaultEncapsulation;\r\n        }\r\n        var /** @type {?} */ styles = templateMetadataStyles.styles.concat(templateStyles.styles);\r\n        var /** @type {?} */ styleUrls = templateMetadataStyles.styleUrls.concat(templateStyles.styleUrls);\r\n        if (encapsulation === ViewEncapsulation.Emulated && styles.length === 0 &&\r\n            styleUrls.length === 0) {\r\n            encapsulation = ViewEncapsulation.None;\r\n        }\r\n        return new CompileTemplateMetadata({\r\n            encapsulation: encapsulation,\r\n            template: template,\r\n            templateUrl: templateAbsUrl, styles: styles, styleUrls: styleUrls,\r\n            ngContentSelectors: visitor.ngContentSelectors,\r\n            animations: prenormData.animations,\r\n            interpolation: prenormData.interpolation, isInline: isInline,\r\n            externalStylesheets: []\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} templateMeta\r\n     * @return {?}\r\n     */\r\n    DirectiveNormalizer.prototype.normalizeExternalStylesheets = function (templateMeta) {\r\n        return this._loadMissingExternalStylesheets(templateMeta.styleUrls)\r\n            .then(function (externalStylesheets) { return new CompileTemplateMetadata({\r\n            encapsulation: templateMeta.encapsulation,\r\n            template: templateMeta.template,\r\n            templateUrl: templateMeta.templateUrl,\r\n            styles: templateMeta.styles,\r\n            styleUrls: templateMeta.styleUrls,\r\n            externalStylesheets: externalStylesheets,\r\n            ngContentSelectors: templateMeta.ngContentSelectors,\r\n            animations: templateMeta.animations,\r\n            interpolation: templateMeta.interpolation,\r\n            isInline: templateMeta.isInline,\r\n        }); });\r\n    };\r\n    /**\r\n     * @param {?} styleUrls\r\n     * @param {?=} loadedStylesheets\r\n     * @return {?}\r\n     */\r\n    DirectiveNormalizer.prototype._loadMissingExternalStylesheets = function (styleUrls, loadedStylesheets) {\r\n        var _this = this;\r\n        if (loadedStylesheets === void 0) { loadedStylesheets = new Map(); }\r\n        return Promise\r\n            .all(styleUrls.filter(function (styleUrl) { return !loadedStylesheets.has(styleUrl); })\r\n            .map(function (styleUrl) { return _this._fetch(styleUrl).then(function (loadedStyle) {\r\n            var /** @type {?} */ stylesheet = _this.normalizeStylesheet(new CompileStylesheetMetadata({ styles: [loadedStyle], moduleUrl: styleUrl }));\r\n            loadedStylesheets.set(styleUrl, stylesheet);\r\n            return _this._loadMissingExternalStylesheets(stylesheet.styleUrls, loadedStylesheets);\r\n        }); }))\r\n            .then(function (_) { return Array.from(loadedStylesheets.values()); });\r\n    };\r\n    /**\r\n     * @param {?} stylesheet\r\n     * @return {?}\r\n     */\r\n    DirectiveNormalizer.prototype.normalizeStylesheet = function (stylesheet) {\r\n        var _this = this;\r\n        var /** @type {?} */ moduleUrl = ((stylesheet.moduleUrl));\r\n        var /** @type {?} */ allStyleUrls = stylesheet.styleUrls.filter(isStyleUrlResolvable)\r\n            .map(function (url) { return _this._urlResolver.resolve(moduleUrl, url); });\r\n        var /** @type {?} */ allStyles = stylesheet.styles.map(function (style$$1) {\r\n            var /** @type {?} */ styleWithImports = extractStyleUrls(_this._urlResolver, moduleUrl, style$$1);\r\n            allStyleUrls.push.apply(allStyleUrls, styleWithImports.styleUrls);\r\n            return styleWithImports.style;\r\n        });\r\n        return new CompileStylesheetMetadata({ styles: allStyles, styleUrls: allStyleUrls, moduleUrl: moduleUrl });\r\n    };\r\n    return DirectiveNormalizer;\r\n}());\r\nDirectiveNormalizer.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nDirectiveNormalizer.ctorParameters = function () { return [\r\n    { type: ResourceLoader, },\r\n    { type: UrlResolver, },\r\n    { type: HtmlParser, },\r\n    { type: CompilerConfig, },\r\n]; };\r\nvar TemplatePreparseVisitor = (function () {\r\n    function TemplatePreparseVisitor() {\r\n        this.ngContentSelectors = [];\r\n        this.styles = [];\r\n        this.styleUrls = [];\r\n        this.ngNonBindableStackCount = 0;\r\n    }\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplatePreparseVisitor.prototype.visitElement = function (ast, context) {\r\n        var /** @type {?} */ preparsedElement = preparseElement(ast);\r\n        switch (preparsedElement.type) {\r\n            case PreparsedElementType.NG_CONTENT:\r\n                if (this.ngNonBindableStackCount === 0) {\r\n                    this.ngContentSelectors.push(preparsedElement.selectAttr);\r\n                }\r\n                break;\r\n            case PreparsedElementType.STYLE:\r\n                var /** @type {?} */ textContent_1 = '';\r\n                ast.children.forEach(function (child) {\r\n                    if (child instanceof Text) {\r\n                        textContent_1 += child.value;\r\n                    }\r\n                });\r\n                this.styles.push(textContent_1);\r\n                break;\r\n            case PreparsedElementType.STYLESHEET:\r\n                this.styleUrls.push(preparsedElement.hrefAttr);\r\n                break;\r\n            default:\r\n                break;\r\n        }\r\n        if (preparsedElement.nonBindable) {\r\n            this.ngNonBindableStackCount++;\r\n        }\r\n        visitAll(this, ast.children);\r\n        if (preparsedElement.nonBindable) {\r\n            this.ngNonBindableStackCount--;\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplatePreparseVisitor.prototype.visitExpansion = function (ast, context) { visitAll(this, ast.cases); };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplatePreparseVisitor.prototype.visitExpansionCase = function (ast, context) {\r\n        visitAll(this, ast.expression);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplatePreparseVisitor.prototype.visitComment = function (ast, context) { return null; };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplatePreparseVisitor.prototype.visitAttribute = function (ast, context) { return null; };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TemplatePreparseVisitor.prototype.visitText = function (ast, context) { return null; };\r\n    return TemplatePreparseVisitor;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar __assign = (undefined && undefined.__assign) || Object.assign || function (t) {\r\n    for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n        s = arguments[i];\r\n        for (var p in s)\r\n            if (Object.prototype.hasOwnProperty.call(s, p))\r\n                t[p] = s[p];\r\n    }\r\n    return t;\r\n};\r\nvar DirectiveResolver = (function () {\r\n    /**\r\n     * @param {?=} _reflector\r\n     */\r\n    function DirectiveResolver(_reflector) {\r\n        if (_reflector === void 0) { _reflector = ɵreflector; }\r\n        this._reflector = _reflector;\r\n    }\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    DirectiveResolver.prototype.isDirective = function (type) {\r\n        var /** @type {?} */ typeMetadata = this._reflector.annotations(resolveForwardRef(type));\r\n        return typeMetadata && typeMetadata.some(isDirectiveMetadata);\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?=} throwIfNotFound\r\n     * @return {?}\r\n     */\r\n    DirectiveResolver.prototype.resolve = function (type, throwIfNotFound) {\r\n        if (throwIfNotFound === void 0) { throwIfNotFound = true; }\r\n        var /** @type {?} */ typeMetadata = this._reflector.annotations(resolveForwardRef(type));\r\n        if (typeMetadata) {\r\n            var /** @type {?} */ metadata = findLast(typeMetadata, isDirectiveMetadata);\r\n            if (metadata) {\r\n                var /** @type {?} */ propertyMetadata = this._reflector.propMetadata(type);\r\n                return this._mergeWithPropertyMetadata(metadata, propertyMetadata, type);\r\n            }\r\n        }\r\n        if (throwIfNotFound) {\r\n            throw new Error(\"No Directive annotation found on \" + ɵstringify(type));\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} dm\r\n     * @param {?} propertyMetadata\r\n     * @param {?} directiveType\r\n     * @return {?}\r\n     */\r\n    DirectiveResolver.prototype._mergeWithPropertyMetadata = function (dm, propertyMetadata, directiveType) {\r\n        var /** @type {?} */ inputs = [];\r\n        var /** @type {?} */ outputs = [];\r\n        var /** @type {?} */ host = {};\r\n        var /** @type {?} */ queries = {};\r\n        Object.keys(propertyMetadata).forEach(function (propName) {\r\n            var /** @type {?} */ input = findLast(propertyMetadata[propName], function (a) { return a instanceof Input; });\r\n            if (input) {\r\n                if (input.bindingPropertyName) {\r\n                    inputs.push(propName + \": \" + input.bindingPropertyName);\r\n                }\r\n                else {\r\n                    inputs.push(propName);\r\n                }\r\n            }\r\n            var /** @type {?} */ output = findLast(propertyMetadata[propName], function (a) { return a instanceof Output; });\r\n            if (output) {\r\n                if (output.bindingPropertyName) {\r\n                    outputs.push(propName + \": \" + output.bindingPropertyName);\r\n                }\r\n                else {\r\n                    outputs.push(propName);\r\n                }\r\n            }\r\n            var /** @type {?} */ hostBindings = propertyMetadata[propName].filter(function (a) { return a && a instanceof HostBinding; });\r\n            hostBindings.forEach(function (hostBinding) {\r\n                if (hostBinding.hostPropertyName) {\r\n                    var /** @type {?} */ startWith = hostBinding.hostPropertyName[0];\r\n                    if (startWith === '(') {\r\n                        throw new Error(\"@HostBinding can not bind to events. Use @HostListener instead.\");\r\n                    }\r\n                    else if (startWith === '[') {\r\n                        throw new Error(\"@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.\");\r\n                    }\r\n                    host[\"[\" + hostBinding.hostPropertyName + \"]\"] = propName;\r\n                }\r\n                else {\r\n                    host[\"[\" + propName + \"]\"] = propName;\r\n                }\r\n            });\r\n            var /** @type {?} */ hostListeners = propertyMetadata[propName].filter(function (a) { return a && a instanceof HostListener; });\r\n            hostListeners.forEach(function (hostListener) {\r\n                var /** @type {?} */ args = hostListener.args || [];\r\n                host[\"(\" + hostListener.eventName + \")\"] = propName + \"(\" + args.join(',') + \")\";\r\n            });\r\n            var /** @type {?} */ query = findLast(propertyMetadata[propName], function (a) { return a instanceof Query; });\r\n            if (query) {\r\n                queries[propName] = query;\r\n            }\r\n        });\r\n        return this._merge(dm, inputs, outputs, host, queries, directiveType);\r\n    };\r\n    /**\r\n     * @param {?} def\r\n     * @return {?}\r\n     */\r\n    DirectiveResolver.prototype._extractPublicName = function (def) { return splitAtColon(def, [/** @type {?} */ ((null)), def])[1].trim(); };\r\n    /**\r\n     * @param {?} bindings\r\n     * @return {?}\r\n     */\r\n    DirectiveResolver.prototype._dedupeBindings = function (bindings) {\r\n        var /** @type {?} */ names = new Set();\r\n        var /** @type {?} */ reversedResult = [];\r\n        // go last to first to allow later entries to overwrite previous entries\r\n        for (var /** @type {?} */ i = bindings.length - 1; i >= 0; i--) {\r\n            var /** @type {?} */ binding = bindings[i];\r\n            var /** @type {?} */ name = this._extractPublicName(binding);\r\n            if (!names.has(name)) {\r\n                names.add(name);\r\n                reversedResult.push(binding);\r\n            }\r\n        }\r\n        return reversedResult.reverse();\r\n    };\r\n    /**\r\n     * @param {?} directive\r\n     * @param {?} inputs\r\n     * @param {?} outputs\r\n     * @param {?} host\r\n     * @param {?} queries\r\n     * @param {?} directiveType\r\n     * @return {?}\r\n     */\r\n    DirectiveResolver.prototype._merge = function (directive, inputs, outputs, host, queries, directiveType) {\r\n        var /** @type {?} */ mergedInputs = this._dedupeBindings(directive.inputs ? directive.inputs.concat(inputs) : inputs);\r\n        var /** @type {?} */ mergedOutputs = this._dedupeBindings(directive.outputs ? directive.outputs.concat(outputs) : outputs);\r\n        var /** @type {?} */ mergedHost = directive.host ? __assign({}, directive.host, host) : host;\r\n        var /** @type {?} */ mergedQueries = directive.queries ? __assign({}, directive.queries, queries) : queries;\r\n        if (directive instanceof Component) {\r\n            return new Component({\r\n                selector: directive.selector,\r\n                inputs: mergedInputs,\r\n                outputs: mergedOutputs,\r\n                host: mergedHost,\r\n                exportAs: directive.exportAs,\r\n                moduleId: directive.moduleId,\r\n                queries: mergedQueries,\r\n                changeDetection: directive.changeDetection,\r\n                providers: directive.providers,\r\n                viewProviders: directive.viewProviders,\r\n                entryComponents: directive.entryComponents,\r\n                template: directive.template,\r\n                templateUrl: directive.templateUrl,\r\n                styles: directive.styles,\r\n                styleUrls: directive.styleUrls,\r\n                encapsulation: directive.encapsulation,\r\n                animations: directive.animations,\r\n                interpolation: directive.interpolation\r\n            });\r\n        }\r\n        else {\r\n            return new Directive({\r\n                selector: directive.selector,\r\n                inputs: mergedInputs,\r\n                outputs: mergedOutputs,\r\n                host: mergedHost,\r\n                exportAs: directive.exportAs,\r\n                queries: mergedQueries,\r\n                providers: directive.providers\r\n            });\r\n        }\r\n    };\r\n    return DirectiveResolver;\r\n}());\r\nDirectiveResolver.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nDirectiveResolver.ctorParameters = function () { return [\r\n    { type: ɵReflectorReader, },\r\n]; };\r\n/**\r\n * @param {?} type\r\n * @return {?}\r\n */\r\nfunction isDirectiveMetadata(type) {\r\n    return type instanceof Directive;\r\n}\r\n/**\r\n * @template T\r\n * @param {?} arr\r\n * @param {?} condition\r\n * @return {?}\r\n */\r\nfunction findLast(arr, condition) {\r\n    for (var /** @type {?} */ i = arr.length - 1; i >= 0; i--) {\r\n        if (condition(arr[i])) {\r\n            return arr[i];\r\n        }\r\n    }\r\n    return null;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar STRIP_SRC_FILE_SUFFIXES = /(\\.ts|\\.d\\.ts|\\.js|\\.jsx|\\.tsx)$/;\r\nvar NG_FACTORY = /\\.ngfactory\\./;\r\n/**\r\n * @param {?} filePath\r\n * @return {?}\r\n */\r\nfunction ngfactoryFilePath(filePath) {\r\n    var /** @type {?} */ urlWithSuffix = splitTypescriptSuffix(filePath);\r\n    return urlWithSuffix[0] + \".ngfactory\" + urlWithSuffix[1];\r\n}\r\n/**\r\n * @param {?} filePath\r\n * @return {?}\r\n */\r\nfunction stripNgFactory(filePath) {\r\n    return filePath.replace(NG_FACTORY, '.');\r\n}\r\n/**\r\n * @param {?} filePath\r\n * @return {?}\r\n */\r\nfunction isNgFactoryFile(filePath) {\r\n    return NG_FACTORY.test(filePath);\r\n}\r\n/**\r\n * @param {?} path\r\n * @return {?}\r\n */\r\nfunction splitTypescriptSuffix(path) {\r\n    if (path.endsWith('.d.ts')) {\r\n        return [path.slice(0, -5), '.ts'];\r\n    }\r\n    var /** @type {?} */ lastDot = path.lastIndexOf('.');\r\n    if (lastDot !== -1) {\r\n        return [path.substring(0, lastDot), path.substring(lastDot)];\r\n    }\r\n    return [path, ''];\r\n}\r\n/**\r\n * @param {?} fileName\r\n * @return {?}\r\n */\r\nfunction summaryFileName(fileName) {\r\n    var /** @type {?} */ fileNameWithoutSuffix = fileName.replace(STRIP_SRC_FILE_SUFFIXES, '');\r\n    return fileNameWithoutSuffix + \".ngsummary.json\";\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} hook\r\n * @param {?} token\r\n * @return {?}\r\n */\r\nfunction hasLifecycleHook(hook, token) {\r\n    return ɵreflector.hasLifecycleHook(token, getHookName(hook));\r\n}\r\n/**\r\n * @param {?} hook\r\n * @return {?}\r\n */\r\nfunction getHookName(hook) {\r\n    switch (hook) {\r\n        case ɵLifecycleHooks.OnInit:\r\n            return 'ngOnInit';\r\n        case ɵLifecycleHooks.OnDestroy:\r\n            return 'ngOnDestroy';\r\n        case ɵLifecycleHooks.DoCheck:\r\n            return 'ngDoCheck';\r\n        case ɵLifecycleHooks.OnChanges:\r\n            return 'ngOnChanges';\r\n        case ɵLifecycleHooks.AfterContentInit:\r\n            return 'ngAfterContentInit';\r\n        case ɵLifecycleHooks.AfterContentChecked:\r\n            return 'ngAfterContentChecked';\r\n        case ɵLifecycleHooks.AfterViewInit:\r\n            return 'ngAfterViewInit';\r\n        case ɵLifecycleHooks.AfterViewChecked:\r\n            return 'ngAfterViewChecked';\r\n    }\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} obj\r\n * @return {?}\r\n */\r\nfunction _isNgModuleMetadata(obj) {\r\n    return obj instanceof NgModule;\r\n}\r\n/**\r\n * Resolves types to {\\@link NgModule}.\r\n */\r\nvar NgModuleResolver = (function () {\r\n    /**\r\n     * @param {?=} _reflector\r\n     */\r\n    function NgModuleResolver(_reflector) {\r\n        if (_reflector === void 0) { _reflector = ɵreflector; }\r\n        this._reflector = _reflector;\r\n    }\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    NgModuleResolver.prototype.isNgModule = function (type) { return this._reflector.annotations(type).some(_isNgModuleMetadata); };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?=} throwIfNotFound\r\n     * @return {?}\r\n     */\r\n    NgModuleResolver.prototype.resolve = function (type, throwIfNotFound) {\r\n        if (throwIfNotFound === void 0) { throwIfNotFound = true; }\r\n        var /** @type {?} */ ngModuleMeta = findLast(this._reflector.annotations(type), _isNgModuleMetadata);\r\n        if (ngModuleMeta) {\r\n            return ngModuleMeta;\r\n        }\r\n        else {\r\n            if (throwIfNotFound) {\r\n                throw new Error(\"No NgModule metadata found for '\" + ɵstringify(type) + \"'.\");\r\n            }\r\n            return null;\r\n        }\r\n    };\r\n    return NgModuleResolver;\r\n}());\r\nNgModuleResolver.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgModuleResolver.ctorParameters = function () { return [\r\n    { type: ɵReflectorReader, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} type\r\n * @return {?}\r\n */\r\nfunction _isPipeMetadata(type) {\r\n    return type instanceof Pipe;\r\n}\r\n/**\r\n * Resolve a `Type` for {\\@link Pipe}.\r\n *\r\n * This interface can be overridden by the application developer to create custom behavior.\r\n *\r\n * See {\\@link Compiler}\r\n */\r\nvar PipeResolver = (function () {\r\n    /**\r\n     * @param {?=} _reflector\r\n     */\r\n    function PipeResolver(_reflector) {\r\n        if (_reflector === void 0) { _reflector = ɵreflector; }\r\n        this._reflector = _reflector;\r\n    }\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    PipeResolver.prototype.isPipe = function (type) {\r\n        var /** @type {?} */ typeMetadata = this._reflector.annotations(resolveForwardRef(type));\r\n        return typeMetadata && typeMetadata.some(_isPipeMetadata);\r\n    };\r\n    /**\r\n     * Return {\\@link Pipe} for a given `Type`.\r\n     * @param {?} type\r\n     * @param {?=} throwIfNotFound\r\n     * @return {?}\r\n     */\r\n    PipeResolver.prototype.resolve = function (type, throwIfNotFound) {\r\n        if (throwIfNotFound === void 0) { throwIfNotFound = true; }\r\n        var /** @type {?} */ metas = this._reflector.annotations(resolveForwardRef(type));\r\n        if (metas) {\r\n            var /** @type {?} */ annotation = findLast(metas, _isPipeMetadata);\r\n            if (annotation) {\r\n                return annotation;\r\n            }\r\n        }\r\n        if (throwIfNotFound) {\r\n            throw new Error(\"No Pipe decorator found on \" + ɵstringify(type));\r\n        }\r\n        return null;\r\n    };\r\n    return PipeResolver;\r\n}());\r\nPipeResolver.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nPipeResolver.ctorParameters = function () { return [\r\n    { type: ɵReflectorReader, },\r\n]; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar SummaryResolver = (function () {\r\n    function SummaryResolver() {\r\n    }\r\n    /**\r\n     * @param {?} fileName\r\n     * @return {?}\r\n     */\r\n    SummaryResolver.prototype.isLibraryFile = function (fileName) { return false; };\r\n    ;\r\n    /**\r\n     * @param {?} fileName\r\n     * @return {?}\r\n     */\r\n    SummaryResolver.prototype.getLibraryFileName = function (fileName) { return null; };\r\n    /**\r\n     * @param {?} reference\r\n     * @return {?}\r\n     */\r\n    SummaryResolver.prototype.resolveSummary = function (reference) { return null; };\r\n    ;\r\n    /**\r\n     * @param {?} filePath\r\n     * @return {?}\r\n     */\r\n    SummaryResolver.prototype.getSymbolsOf = function (filePath) { return []; };\r\n    /**\r\n     * @param {?} reference\r\n     * @return {?}\r\n     */\r\n    SummaryResolver.prototype.getImportAs = function (reference) { return reference; };\r\n    return SummaryResolver;\r\n}());\r\nSummaryResolver.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nSummaryResolver.ctorParameters = function () { return []; };\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');\r\nvar CompileMetadataResolver = (function () {\r\n    /**\r\n     * @param {?} _config\r\n     * @param {?} _ngModuleResolver\r\n     * @param {?} _directiveResolver\r\n     * @param {?} _pipeResolver\r\n     * @param {?} _summaryResolver\r\n     * @param {?} _schemaRegistry\r\n     * @param {?} _directiveNormalizer\r\n     * @param {?} _console\r\n     * @param {?} _staticSymbolCache\r\n     * @param {?=} _reflector\r\n     * @param {?=} _errorCollector\r\n     */\r\n    function CompileMetadataResolver(_config, _ngModuleResolver, _directiveResolver, _pipeResolver, _summaryResolver, _schemaRegistry, _directiveNormalizer, _console, _staticSymbolCache, _reflector, _errorCollector) {\r\n        if (_reflector === void 0) { _reflector = ɵreflector; }\r\n        this._config = _config;\r\n        this._ngModuleResolver = _ngModuleResolver;\r\n        this._directiveResolver = _directiveResolver;\r\n        this._pipeResolver = _pipeResolver;\r\n        this._summaryResolver = _summaryResolver;\r\n        this._schemaRegistry = _schemaRegistry;\r\n        this._directiveNormalizer = _directiveNormalizer;\r\n        this._console = _console;\r\n        this._staticSymbolCache = _staticSymbolCache;\r\n        this._reflector = _reflector;\r\n        this._errorCollector = _errorCollector;\r\n        this._nonNormalizedDirectiveCache = new Map();\r\n        this._directiveCache = new Map();\r\n        this._summaryCache = new Map();\r\n        this._pipeCache = new Map();\r\n        this._ngModuleCache = new Map();\r\n        this._ngModuleOfTypes = new Map();\r\n    }\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.clearCacheFor = function (type) {\r\n        var /** @type {?} */ dirMeta = this._directiveCache.get(type);\r\n        this._directiveCache.delete(type);\r\n        this._nonNormalizedDirectiveCache.delete(type);\r\n        this._summaryCache.delete(type);\r\n        this._pipeCache.delete(type);\r\n        this._ngModuleOfTypes.delete(type);\r\n        // Clear all of the NgModule as they contain transitive information!\r\n        this._ngModuleCache.clear();\r\n        if (dirMeta) {\r\n            this._directiveNormalizer.clearCacheFor(dirMeta);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.clearCache = function () {\r\n        this._directiveCache.clear();\r\n        this._nonNormalizedDirectiveCache.clear();\r\n        this._summaryCache.clear();\r\n        this._pipeCache.clear();\r\n        this._ngModuleCache.clear();\r\n        this._ngModuleOfTypes.clear();\r\n        this._directiveNormalizer.clearCache();\r\n    };\r\n    /**\r\n     * @param {?} baseType\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._createProxyClass = function (baseType, name) {\r\n        var /** @type {?} */ delegate = null;\r\n        var /** @type {?} */ proxyClass = (function () {\r\n            if (!delegate) {\r\n                throw new Error(\"Illegal state: Class \" + name + \" for type \" + ɵstringify(baseType) + \" is not compiled yet!\");\r\n            }\r\n            return delegate.apply(this, arguments);\r\n        });\r\n        proxyClass.setDelegate = function (d) {\r\n            delegate = d;\r\n            ((proxyClass)).prototype = d.prototype;\r\n        };\r\n        // Make stringify work correctly\r\n        ((proxyClass)).overriddenName = name;\r\n        return proxyClass;\r\n    };\r\n    /**\r\n     * @param {?} dirType\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getGeneratedClass = function (dirType, name) {\r\n        if (dirType instanceof StaticSymbol) {\r\n            return this._staticSymbolCache.get(ngfactoryFilePath(dirType.filePath), name);\r\n        }\r\n        else {\r\n            return this._createProxyClass(dirType, name);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} dirType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getComponentViewClass = function (dirType) {\r\n        return this.getGeneratedClass(dirType, viewClassName(dirType, 0));\r\n    };\r\n    /**\r\n     * @param {?} dirType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getHostComponentViewClass = function (dirType) {\r\n        return this.getGeneratedClass(dirType, hostViewClassName(dirType));\r\n    };\r\n    /**\r\n     * @param {?} dirType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getHostComponentType = function (dirType) {\r\n        var /** @type {?} */ name = identifierName({ reference: dirType }) + \"_Host\";\r\n        if (dirType instanceof StaticSymbol) {\r\n            return this._staticSymbolCache.get(dirType.filePath, name);\r\n        }\r\n        else {\r\n            var /** @type {?} */ HostClass = (function HostClass() { });\r\n            HostClass.overriddenName = name;\r\n            return HostClass;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} dirType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getRendererType = function (dirType) {\r\n        if (dirType instanceof StaticSymbol) {\r\n            return this._staticSymbolCache.get(ngfactoryFilePath(dirType.filePath), rendererTypeName(dirType));\r\n        }\r\n        else {\r\n            // returning an object as proxy,\r\n            // that we fill later during runtime compilation.\r\n            return ({});\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} selector\r\n     * @param {?} dirType\r\n     * @param {?} inputs\r\n     * @param {?} outputs\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getComponentFactory = function (selector, dirType, inputs, outputs) {\r\n        if (dirType instanceof StaticSymbol) {\r\n            return this._staticSymbolCache.get(ngfactoryFilePath(dirType.filePath), componentFactoryName(dirType));\r\n        }\r\n        else {\r\n            var /** @type {?} */ hostView = this.getHostComponentViewClass(dirType);\r\n            // Note: ngContentSelectors will be filled later once the template is\r\n            // loaded.\r\n            return ɵccf(selector, dirType, /** @type {?} */ (hostView), inputs, outputs, []);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} factory\r\n     * @param {?} ngContentSelectors\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.initComponentFactory = function (factory, ngContentSelectors) {\r\n        if (!(factory instanceof StaticSymbol)) {\r\n            (_a = factory.ngContentSelectors).push.apply(_a, ngContentSelectors);\r\n        }\r\n        var _a;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} kind\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._loadSummary = function (type, kind) {\r\n        var /** @type {?} */ typeSummary = this._summaryCache.get(type);\r\n        if (!typeSummary) {\r\n            var /** @type {?} */ summary = this._summaryResolver.resolveSummary(type);\r\n            typeSummary = summary ? summary.type : null;\r\n            this._summaryCache.set(type, typeSummary || null);\r\n        }\r\n        return typeSummary && typeSummary.summaryKind === kind ? typeSummary : null;\r\n    };\r\n    /**\r\n     * @param {?} ngModuleType\r\n     * @param {?} directiveType\r\n     * @param {?} isSync\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._loadDirectiveMetadata = function (ngModuleType, directiveType, isSync) {\r\n        var _this = this;\r\n        if (this._directiveCache.has(directiveType)) {\r\n            return null;\r\n        }\r\n        directiveType = resolveForwardRef(directiveType);\r\n        var _a = ((this.getNonNormalizedDirectiveMetadata(directiveType))), annotation = _a.annotation, metadata = _a.metadata;\r\n        var /** @type {?} */ createDirectiveMetadata = function (templateMetadata) {\r\n            var /** @type {?} */ normalizedDirMeta = new CompileDirectiveMetadata({\r\n                isHost: false,\r\n                type: metadata.type,\r\n                isComponent: metadata.isComponent,\r\n                selector: metadata.selector,\r\n                exportAs: metadata.exportAs,\r\n                changeDetection: metadata.changeDetection,\r\n                inputs: metadata.inputs,\r\n                outputs: metadata.outputs,\r\n                hostListeners: metadata.hostListeners,\r\n                hostProperties: metadata.hostProperties,\r\n                hostAttributes: metadata.hostAttributes,\r\n                providers: metadata.providers,\r\n                viewProviders: metadata.viewProviders,\r\n                queries: metadata.queries,\r\n                viewQueries: metadata.viewQueries,\r\n                entryComponents: metadata.entryComponents,\r\n                componentViewType: metadata.componentViewType,\r\n                rendererType: metadata.rendererType,\r\n                componentFactory: metadata.componentFactory,\r\n                template: templateMetadata\r\n            });\r\n            if (templateMetadata) {\r\n                _this.initComponentFactory(/** @type {?} */ ((metadata.componentFactory)), templateMetadata.ngContentSelectors);\r\n            }\r\n            _this._directiveCache.set(directiveType, normalizedDirMeta);\r\n            _this._summaryCache.set(directiveType, normalizedDirMeta.toSummary());\r\n            return normalizedDirMeta;\r\n        };\r\n        if (metadata.isComponent) {\r\n            var /** @type {?} */ template = ((metadata.template));\r\n            var /** @type {?} */ templateMeta = this._directiveNormalizer.normalizeTemplate({\r\n                ngModuleType: ngModuleType,\r\n                componentType: directiveType,\r\n                moduleUrl: componentModuleUrl(this._reflector, directiveType, annotation),\r\n                encapsulation: template.encapsulation,\r\n                template: template.template,\r\n                templateUrl: template.templateUrl,\r\n                styles: template.styles,\r\n                styleUrls: template.styleUrls,\r\n                animations: template.animations,\r\n                interpolation: template.interpolation\r\n            });\r\n            if (templateMeta.syncResult) {\r\n                createDirectiveMetadata(templateMeta.syncResult);\r\n                return null;\r\n            }\r\n            else {\r\n                if (isSync) {\r\n                    this._reportError(componentStillLoadingError(directiveType), directiveType);\r\n                    return null;\r\n                }\r\n                return ((templateMeta.asyncResult)).then(createDirectiveMetadata);\r\n            }\r\n        }\r\n        else {\r\n            // directive\r\n            createDirectiveMetadata(null);\r\n            return null;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} directiveType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getNonNormalizedDirectiveMetadata = function (directiveType) {\r\n        var _this = this;\r\n        directiveType = resolveForwardRef(directiveType);\r\n        if (!directiveType) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ cacheEntry = this._nonNormalizedDirectiveCache.get(directiveType);\r\n        if (cacheEntry) {\r\n            return cacheEntry;\r\n        }\r\n        var /** @type {?} */ dirMeta = this._directiveResolver.resolve(directiveType, false);\r\n        if (!dirMeta) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ nonNormalizedTemplateMetadata = ((undefined));\r\n        if (dirMeta instanceof Component) {\r\n            // component\r\n            assertArrayOfStrings('styles', dirMeta.styles);\r\n            assertArrayOfStrings('styleUrls', dirMeta.styleUrls);\r\n            assertInterpolationSymbols('interpolation', dirMeta.interpolation);\r\n            var /** @type {?} */ animations = dirMeta.animations;\r\n            nonNormalizedTemplateMetadata = new CompileTemplateMetadata({\r\n                encapsulation: noUndefined(dirMeta.encapsulation),\r\n                template: noUndefined(dirMeta.template),\r\n                templateUrl: noUndefined(dirMeta.templateUrl),\r\n                styles: dirMeta.styles || [],\r\n                styleUrls: dirMeta.styleUrls || [],\r\n                animations: animations || [],\r\n                interpolation: noUndefined(dirMeta.interpolation),\r\n                isInline: !!dirMeta.template,\r\n                externalStylesheets: [],\r\n                ngContentSelectors: []\r\n            });\r\n        }\r\n        var /** @type {?} */ changeDetectionStrategy = ((null));\r\n        var /** @type {?} */ viewProviders = [];\r\n        var /** @type {?} */ entryComponentMetadata = [];\r\n        var /** @type {?} */ selector = dirMeta.selector;\r\n        if (dirMeta instanceof Component) {\r\n            // Component\r\n            changeDetectionStrategy = ((dirMeta.changeDetection));\r\n            if (dirMeta.viewProviders) {\r\n                viewProviders = this._getProvidersMetadata(dirMeta.viewProviders, entryComponentMetadata, \"viewProviders for \\\"\" + stringifyType(directiveType) + \"\\\"\", [], directiveType);\r\n            }\r\n            if (dirMeta.entryComponents) {\r\n                entryComponentMetadata = flattenAndDedupeArray(dirMeta.entryComponents)\r\n                    .map(function (type) { return ((_this._getEntryComponentMetadata(type))); })\r\n                    .concat(entryComponentMetadata);\r\n            }\r\n            if (!selector) {\r\n                selector = this._schemaRegistry.getDefaultComponentElementName();\r\n            }\r\n        }\r\n        else {\r\n            // Directive\r\n            if (!selector) {\r\n                this._reportError(syntaxError(\"Directive \" + stringifyType(directiveType) + \" has no selector, please add it!\"), directiveType);\r\n                selector = 'error';\r\n            }\r\n        }\r\n        var /** @type {?} */ providers = [];\r\n        if (dirMeta.providers != null) {\r\n            providers = this._getProvidersMetadata(dirMeta.providers, entryComponentMetadata, \"providers for \\\"\" + stringifyType(directiveType) + \"\\\"\", [], directiveType);\r\n        }\r\n        var /** @type {?} */ queries = [];\r\n        var /** @type {?} */ viewQueries = [];\r\n        if (dirMeta.queries != null) {\r\n            queries = this._getQueriesMetadata(dirMeta.queries, false, directiveType);\r\n            viewQueries = this._getQueriesMetadata(dirMeta.queries, true, directiveType);\r\n        }\r\n        var /** @type {?} */ metadata = CompileDirectiveMetadata.create({\r\n            isHost: false,\r\n            selector: selector,\r\n            exportAs: noUndefined(dirMeta.exportAs),\r\n            isComponent: !!nonNormalizedTemplateMetadata,\r\n            type: this._getTypeMetadata(directiveType),\r\n            template: nonNormalizedTemplateMetadata,\r\n            changeDetection: changeDetectionStrategy,\r\n            inputs: dirMeta.inputs || [],\r\n            outputs: dirMeta.outputs || [],\r\n            host: dirMeta.host || {},\r\n            providers: providers || [],\r\n            viewProviders: viewProviders || [],\r\n            queries: queries || [],\r\n            viewQueries: viewQueries || [],\r\n            entryComponents: entryComponentMetadata,\r\n            componentViewType: nonNormalizedTemplateMetadata ? this.getComponentViewClass(directiveType) :\r\n                null,\r\n            rendererType: nonNormalizedTemplateMetadata ? this.getRendererType(directiveType) : null,\r\n            componentFactory: null\r\n        });\r\n        if (nonNormalizedTemplateMetadata) {\r\n            metadata.componentFactory =\r\n                this.getComponentFactory(selector, directiveType, metadata.inputs, metadata.outputs);\r\n        }\r\n        cacheEntry = { metadata: metadata, annotation: dirMeta };\r\n        this._nonNormalizedDirectiveCache.set(directiveType, cacheEntry);\r\n        return cacheEntry;\r\n    };\r\n    /**\r\n     * Gets the metadata for the given directive.\r\n     * This assumes `loadNgModuleDirectiveAndPipeMetadata` has been called first.\r\n     * @param {?} directiveType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getDirectiveMetadata = function (directiveType) {\r\n        var /** @type {?} */ dirMeta = ((this._directiveCache.get(directiveType)));\r\n        if (!dirMeta) {\r\n            this._reportError(syntaxError(\"Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive \" + stringifyType(directiveType) + \".\"), directiveType);\r\n        }\r\n        return dirMeta;\r\n    };\r\n    /**\r\n     * @param {?} dirType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getDirectiveSummary = function (dirType) {\r\n        var /** @type {?} */ dirSummary = (this._loadSummary(dirType, CompileSummaryKind.Directive));\r\n        if (!dirSummary) {\r\n            this._reportError(syntaxError(\"Illegal state: Could not load the summary for directive \" + stringifyType(dirType) + \".\"), dirType);\r\n        }\r\n        return dirSummary;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.isDirective = function (type) { return this._directiveResolver.isDirective(type); };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.isPipe = function (type) { return this._pipeResolver.isPipe(type); };\r\n    /**\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getNgModuleSummary = function (moduleType) {\r\n        var /** @type {?} */ moduleSummary = (this._loadSummary(moduleType, CompileSummaryKind.NgModule));\r\n        if (!moduleSummary) {\r\n            var /** @type {?} */ moduleMeta = this.getNgModuleMetadata(moduleType, false);\r\n            moduleSummary = moduleMeta ? moduleMeta.toSummary() : null;\r\n            if (moduleSummary) {\r\n                this._summaryCache.set(moduleType, moduleSummary);\r\n            }\r\n        }\r\n        return moduleSummary;\r\n    };\r\n    /**\r\n     * Loads the declared directives and pipes of an NgModule.\r\n     * @param {?} moduleType\r\n     * @param {?} isSync\r\n     * @param {?=} throwIfNotFound\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.loadNgModuleDirectiveAndPipeMetadata = function (moduleType, isSync, throwIfNotFound) {\r\n        var _this = this;\r\n        if (throwIfNotFound === void 0) { throwIfNotFound = true; }\r\n        var /** @type {?} */ ngModule = this.getNgModuleMetadata(moduleType, throwIfNotFound);\r\n        var /** @type {?} */ loading = [];\r\n        if (ngModule) {\r\n            ngModule.declaredDirectives.forEach(function (id) {\r\n                var /** @type {?} */ promise = _this._loadDirectiveMetadata(moduleType, id.reference, isSync);\r\n                if (promise) {\r\n                    loading.push(promise);\r\n                }\r\n            });\r\n            ngModule.declaredPipes.forEach(function (id) { return _this._loadPipeMetadata(id.reference); });\r\n        }\r\n        return Promise.all(loading);\r\n    };\r\n    /**\r\n     * @param {?} moduleType\r\n     * @param {?=} throwIfNotFound\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getNgModuleMetadata = function (moduleType, throwIfNotFound) {\r\n        var _this = this;\r\n        if (throwIfNotFound === void 0) { throwIfNotFound = true; }\r\n        moduleType = resolveForwardRef(moduleType);\r\n        var /** @type {?} */ compileMeta = this._ngModuleCache.get(moduleType);\r\n        if (compileMeta) {\r\n            return compileMeta;\r\n        }\r\n        var /** @type {?} */ meta = this._ngModuleResolver.resolve(moduleType, throwIfNotFound);\r\n        if (!meta) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ declaredDirectives = [];\r\n        var /** @type {?} */ exportedNonModuleIdentifiers = [];\r\n        var /** @type {?} */ declaredPipes = [];\r\n        var /** @type {?} */ importedModules = [];\r\n        var /** @type {?} */ exportedModules = [];\r\n        var /** @type {?} */ providers = [];\r\n        var /** @type {?} */ entryComponents = [];\r\n        var /** @type {?} */ bootstrapComponents = [];\r\n        var /** @type {?} */ schemas = [];\r\n        if (meta.imports) {\r\n            flattenAndDedupeArray(meta.imports).forEach(function (importedType) {\r\n                var /** @type {?} */ importedModuleType = ((undefined));\r\n                if (isValidType(importedType)) {\r\n                    importedModuleType = importedType;\r\n                }\r\n                else if (importedType && importedType.ngModule) {\r\n                    var /** @type {?} */ moduleWithProviders = importedType;\r\n                    importedModuleType = moduleWithProviders.ngModule;\r\n                    if (moduleWithProviders.providers) {\r\n                        providers.push.apply(providers, _this._getProvidersMetadata(moduleWithProviders.providers, entryComponents, \"provider for the NgModule '\" + stringifyType(importedModuleType) + \"'\", [], importedType));\r\n                    }\r\n                }\r\n                if (importedModuleType) {\r\n                    if (_this._checkSelfImport(moduleType, importedModuleType))\r\n                        return;\r\n                    var /** @type {?} */ importedModuleSummary = _this.getNgModuleSummary(importedModuleType);\r\n                    if (!importedModuleSummary) {\r\n                        _this._reportError(syntaxError(\"Unexpected \" + _this._getTypeDescriptor(importedType) + \" '\" + stringifyType(importedType) + \"' imported by the module '\" + stringifyType(moduleType) + \"'. Please add a @NgModule annotation.\"), moduleType);\r\n                        return;\r\n                    }\r\n                    importedModules.push(importedModuleSummary);\r\n                }\r\n                else {\r\n                    _this._reportError(syntaxError(\"Unexpected value '\" + stringifyType(importedType) + \"' imported by the module '\" + stringifyType(moduleType) + \"'\"), moduleType);\r\n                    return;\r\n                }\r\n            });\r\n        }\r\n        if (meta.exports) {\r\n            flattenAndDedupeArray(meta.exports).forEach(function (exportedType) {\r\n                if (!isValidType(exportedType)) {\r\n                    _this._reportError(syntaxError(\"Unexpected value '\" + stringifyType(exportedType) + \"' exported by the module '\" + stringifyType(moduleType) + \"'\"), moduleType);\r\n                    return;\r\n                }\r\n                var /** @type {?} */ exportedModuleSummary = _this.getNgModuleSummary(exportedType);\r\n                if (exportedModuleSummary) {\r\n                    exportedModules.push(exportedModuleSummary);\r\n                }\r\n                else {\r\n                    exportedNonModuleIdentifiers.push(_this._getIdentifierMetadata(exportedType));\r\n                }\r\n            });\r\n        }\r\n        // Note: This will be modified later, so we rely on\r\n        // getting a new instance every time!\r\n        var /** @type {?} */ transitiveModule = this._getTransitiveNgModuleMetadata(importedModules, exportedModules);\r\n        if (meta.declarations) {\r\n            flattenAndDedupeArray(meta.declarations).forEach(function (declaredType) {\r\n                if (!isValidType(declaredType)) {\r\n                    _this._reportError(syntaxError(\"Unexpected value '\" + stringifyType(declaredType) + \"' declared by the module '\" + stringifyType(moduleType) + \"'\"), moduleType);\r\n                    return;\r\n                }\r\n                var /** @type {?} */ declaredIdentifier = _this._getIdentifierMetadata(declaredType);\r\n                if (_this._directiveResolver.isDirective(declaredType)) {\r\n                    transitiveModule.addDirective(declaredIdentifier);\r\n                    declaredDirectives.push(declaredIdentifier);\r\n                    _this._addTypeToModule(declaredType, moduleType);\r\n                }\r\n                else if (_this._pipeResolver.isPipe(declaredType)) {\r\n                    transitiveModule.addPipe(declaredIdentifier);\r\n                    transitiveModule.pipes.push(declaredIdentifier);\r\n                    declaredPipes.push(declaredIdentifier);\r\n                    _this._addTypeToModule(declaredType, moduleType);\r\n                }\r\n                else {\r\n                    _this._reportError(syntaxError(\"Unexpected \" + _this._getTypeDescriptor(declaredType) + \" '\" + stringifyType(declaredType) + \"' declared by the module '\" + stringifyType(moduleType) + \"'. Please add a @Pipe/@Directive/@Component annotation.\"), moduleType);\r\n                    return;\r\n                }\r\n            });\r\n        }\r\n        var /** @type {?} */ exportedDirectives = [];\r\n        var /** @type {?} */ exportedPipes = [];\r\n        exportedNonModuleIdentifiers.forEach(function (exportedId) {\r\n            if (transitiveModule.directivesSet.has(exportedId.reference)) {\r\n                exportedDirectives.push(exportedId);\r\n                transitiveModule.addExportedDirective(exportedId);\r\n            }\r\n            else if (transitiveModule.pipesSet.has(exportedId.reference)) {\r\n                exportedPipes.push(exportedId);\r\n                transitiveModule.addExportedPipe(exportedId);\r\n            }\r\n            else {\r\n                _this._reportError(syntaxError(\"Can't export \" + _this._getTypeDescriptor(exportedId.reference) + \" \" + stringifyType(exportedId.reference) + \" from \" + stringifyType(moduleType) + \" as it was neither declared nor imported!\"), moduleType);\r\n                return;\r\n            }\r\n        });\r\n        // The providers of the module have to go last\r\n        // so that they overwrite any other provider we already added.\r\n        if (meta.providers) {\r\n            providers.push.apply(providers, this._getProvidersMetadata(meta.providers, entryComponents, \"provider for the NgModule '\" + stringifyType(moduleType) + \"'\", [], moduleType));\r\n        }\r\n        if (meta.entryComponents) {\r\n            entryComponents.push.apply(entryComponents, flattenAndDedupeArray(meta.entryComponents)\r\n                .map(function (type) { return ((_this._getEntryComponentMetadata(type))); }));\r\n        }\r\n        if (meta.bootstrap) {\r\n            flattenAndDedupeArray(meta.bootstrap).forEach(function (type) {\r\n                if (!isValidType(type)) {\r\n                    _this._reportError(syntaxError(\"Unexpected value '\" + stringifyType(type) + \"' used in the bootstrap property of module '\" + stringifyType(moduleType) + \"'\"), moduleType);\r\n                    return;\r\n                }\r\n                bootstrapComponents.push(_this._getIdentifierMetadata(type));\r\n            });\r\n        }\r\n        entryComponents.push.apply(entryComponents, bootstrapComponents.map(function (type) { return ((_this._getEntryComponentMetadata(type.reference))); }));\r\n        if (meta.schemas) {\r\n            schemas.push.apply(schemas, flattenAndDedupeArray(meta.schemas));\r\n        }\r\n        compileMeta = new CompileNgModuleMetadata({\r\n            type: this._getTypeMetadata(moduleType),\r\n            providers: providers,\r\n            entryComponents: entryComponents,\r\n            bootstrapComponents: bootstrapComponents,\r\n            schemas: schemas,\r\n            declaredDirectives: declaredDirectives,\r\n            exportedDirectives: exportedDirectives,\r\n            declaredPipes: declaredPipes,\r\n            exportedPipes: exportedPipes,\r\n            importedModules: importedModules,\r\n            exportedModules: exportedModules,\r\n            transitiveModule: transitiveModule,\r\n            id: meta.id || null,\r\n        });\r\n        entryComponents.forEach(function (id) { return transitiveModule.addEntryComponent(id); });\r\n        providers.forEach(function (provider) { return transitiveModule.addProvider(provider, /** @type {?} */ ((compileMeta)).type); });\r\n        transitiveModule.addModule(compileMeta.type);\r\n        this._ngModuleCache.set(moduleType, compileMeta);\r\n        return compileMeta;\r\n    };\r\n    /**\r\n     * @param {?} moduleType\r\n     * @param {?} importedModuleType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._checkSelfImport = function (moduleType, importedModuleType) {\r\n        if (moduleType === importedModuleType) {\r\n            this._reportError(syntaxError(\"'\" + stringifyType(moduleType) + \"' module can't import itself\"), moduleType);\r\n            return true;\r\n        }\r\n        return false;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getTypeDescriptor = function (type) {\r\n        if (this._directiveResolver.isDirective(type)) {\r\n            return 'directive';\r\n        }\r\n        if (this._pipeResolver.isPipe(type)) {\r\n            return 'pipe';\r\n        }\r\n        if (this._ngModuleResolver.isNgModule(type)) {\r\n            return 'module';\r\n        }\r\n        if (((type)).provide) {\r\n            return 'provider';\r\n        }\r\n        return 'value';\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._addTypeToModule = function (type, moduleType) {\r\n        var /** @type {?} */ oldModule = this._ngModuleOfTypes.get(type);\r\n        if (oldModule && oldModule !== moduleType) {\r\n            this._reportError(syntaxError(\"Type \" + stringifyType(type) + \" is part of the declarations of 2 modules: \" + stringifyType(oldModule) + \" and \" + stringifyType(moduleType) + \"! \" +\r\n                (\"Please consider moving \" + stringifyType(type) + \" to a higher module that imports \" + stringifyType(oldModule) + \" and \" + stringifyType(moduleType) + \". \") +\r\n                (\"You can also create a new NgModule that exports and includes \" + stringifyType(type) + \" then import that NgModule in \" + stringifyType(oldModule) + \" and \" + stringifyType(moduleType) + \".\")), moduleType);\r\n            return;\r\n        }\r\n        this._ngModuleOfTypes.set(type, moduleType);\r\n    };\r\n    /**\r\n     * @param {?} importedModules\r\n     * @param {?} exportedModules\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getTransitiveNgModuleMetadata = function (importedModules, exportedModules) {\r\n        // collect `providers` / `entryComponents` from all imported and all exported modules\r\n        var /** @type {?} */ result = new TransitiveCompileNgModuleMetadata();\r\n        var /** @type {?} */ modulesByToken = new Map();\r\n        importedModules.concat(exportedModules).forEach(function (modSummary) {\r\n            modSummary.modules.forEach(function (mod) { return result.addModule(mod); });\r\n            modSummary.entryComponents.forEach(function (comp) { return result.addEntryComponent(comp); });\r\n            var /** @type {?} */ addedTokens = new Set();\r\n            modSummary.providers.forEach(function (entry) {\r\n                var /** @type {?} */ tokenRef = tokenReference(entry.provider.token);\r\n                var /** @type {?} */ prevModules = modulesByToken.get(tokenRef);\r\n                if (!prevModules) {\r\n                    prevModules = new Set();\r\n                    modulesByToken.set(tokenRef, prevModules);\r\n                }\r\n                var /** @type {?} */ moduleRef = entry.module.reference;\r\n                // Note: the providers of one module may still contain multiple providers\r\n                // per token (e.g. for multi providers), and we need to preserve these.\r\n                if (addedTokens.has(tokenRef) || !prevModules.has(moduleRef)) {\r\n                    prevModules.add(moduleRef);\r\n                    addedTokens.add(tokenRef);\r\n                    result.addProvider(entry.provider, entry.module);\r\n                }\r\n            });\r\n        });\r\n        exportedModules.forEach(function (modSummary) {\r\n            modSummary.exportedDirectives.forEach(function (id) { return result.addExportedDirective(id); });\r\n            modSummary.exportedPipes.forEach(function (id) { return result.addExportedPipe(id); });\r\n        });\r\n        importedModules.forEach(function (modSummary) {\r\n            modSummary.exportedDirectives.forEach(function (id) { return result.addDirective(id); });\r\n            modSummary.exportedPipes.forEach(function (id) { return result.addPipe(id); });\r\n        });\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getIdentifierMetadata = function (type) {\r\n        type = resolveForwardRef(type);\r\n        return { reference: type };\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.isInjectable = function (type) {\r\n        var /** @type {?} */ annotations = this._reflector.annotations(type);\r\n        // Note: We need an exact check here as @Component / @Directive / ... inherit\r\n        // from @CompilerInjectable!\r\n        return annotations.some(function (ann) { return ann.constructor === Injectable; });\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getInjectableSummary = function (type) {\r\n        return {\r\n            summaryKind: CompileSummaryKind.Injectable,\r\n            type: this._getTypeMetadata(type, null, false)\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?=} dependencies\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getInjectableMetadata = function (type, dependencies) {\r\n        if (dependencies === void 0) { dependencies = null; }\r\n        var /** @type {?} */ typeSummary = this._loadSummary(type, CompileSummaryKind.Injectable);\r\n        if (typeSummary) {\r\n            return typeSummary.type;\r\n        }\r\n        return this._getTypeMetadata(type, dependencies);\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?=} dependencies\r\n     * @param {?=} throwOnUnknownDeps\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getTypeMetadata = function (type, dependencies, throwOnUnknownDeps) {\r\n        if (dependencies === void 0) { dependencies = null; }\r\n        if (throwOnUnknownDeps === void 0) { throwOnUnknownDeps = true; }\r\n        var /** @type {?} */ identifier = this._getIdentifierMetadata(type);\r\n        return {\r\n            reference: identifier.reference,\r\n            diDeps: this._getDependenciesMetadata(identifier.reference, dependencies, throwOnUnknownDeps),\r\n            lifecycleHooks: ɵLIFECYCLE_HOOKS_VALUES.filter(function (hook) { return hasLifecycleHook(hook, identifier.reference); }),\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} factory\r\n     * @param {?=} dependencies\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getFactoryMetadata = function (factory, dependencies) {\r\n        if (dependencies === void 0) { dependencies = null; }\r\n        factory = resolveForwardRef(factory);\r\n        return { reference: factory, diDeps: this._getDependenciesMetadata(factory, dependencies) };\r\n    };\r\n    /**\r\n     * Gets the metadata for the given pipe.\r\n     * This assumes `loadNgModuleDirectiveAndPipeMetadata` has been called first.\r\n     * @param {?} pipeType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getPipeMetadata = function (pipeType) {\r\n        var /** @type {?} */ pipeMeta = this._pipeCache.get(pipeType);\r\n        if (!pipeMeta) {\r\n            this._reportError(syntaxError(\"Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe \" + stringifyType(pipeType) + \".\"), pipeType);\r\n        }\r\n        return pipeMeta || null;\r\n    };\r\n    /**\r\n     * @param {?} pipeType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getPipeSummary = function (pipeType) {\r\n        var /** @type {?} */ pipeSummary = (this._loadSummary(pipeType, CompileSummaryKind.Pipe));\r\n        if (!pipeSummary) {\r\n            this._reportError(syntaxError(\"Illegal state: Could not load the summary for pipe \" + stringifyType(pipeType) + \".\"), pipeType);\r\n        }\r\n        return pipeSummary;\r\n    };\r\n    /**\r\n     * @param {?} pipeType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getOrLoadPipeMetadata = function (pipeType) {\r\n        var /** @type {?} */ pipeMeta = this._pipeCache.get(pipeType);\r\n        if (!pipeMeta) {\r\n            pipeMeta = this._loadPipeMetadata(pipeType);\r\n        }\r\n        return pipeMeta;\r\n    };\r\n    /**\r\n     * @param {?} pipeType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._loadPipeMetadata = function (pipeType) {\r\n        pipeType = resolveForwardRef(pipeType);\r\n        var /** @type {?} */ pipeAnnotation = ((this._pipeResolver.resolve(pipeType)));\r\n        var /** @type {?} */ pipeMeta = new CompilePipeMetadata({\r\n            type: this._getTypeMetadata(pipeType),\r\n            name: pipeAnnotation.name,\r\n            pure: !!pipeAnnotation.pure\r\n        });\r\n        this._pipeCache.set(pipeType, pipeMeta);\r\n        this._summaryCache.set(pipeType, pipeMeta.toSummary());\r\n        return pipeMeta;\r\n    };\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @param {?} dependencies\r\n     * @param {?=} throwOnUnknownDeps\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getDependenciesMetadata = function (typeOrFunc, dependencies, throwOnUnknownDeps) {\r\n        var _this = this;\r\n        if (throwOnUnknownDeps === void 0) { throwOnUnknownDeps = true; }\r\n        var /** @type {?} */ hasUnknownDeps = false;\r\n        var /** @type {?} */ params = dependencies || this._reflector.parameters(typeOrFunc) || [];\r\n        var /** @type {?} */ dependenciesMetadata = params.map(function (param) {\r\n            var /** @type {?} */ isAttribute = false;\r\n            var /** @type {?} */ isHost = false;\r\n            var /** @type {?} */ isSelf = false;\r\n            var /** @type {?} */ isSkipSelf = false;\r\n            var /** @type {?} */ isOptional = false;\r\n            var /** @type {?} */ token = null;\r\n            if (Array.isArray(param)) {\r\n                param.forEach(function (paramEntry) {\r\n                    if (paramEntry instanceof Host) {\r\n                        isHost = true;\r\n                    }\r\n                    else if (paramEntry instanceof Self) {\r\n                        isSelf = true;\r\n                    }\r\n                    else if (paramEntry instanceof SkipSelf) {\r\n                        isSkipSelf = true;\r\n                    }\r\n                    else if (paramEntry instanceof Optional) {\r\n                        isOptional = true;\r\n                    }\r\n                    else if (paramEntry instanceof Attribute) {\r\n                        isAttribute = true;\r\n                        token = paramEntry.attributeName;\r\n                    }\r\n                    else if (paramEntry instanceof Inject) {\r\n                        token = paramEntry.token;\r\n                    }\r\n                    else if (paramEntry instanceof InjectionToken) {\r\n                        token = paramEntry;\r\n                    }\r\n                    else if (isValidType(paramEntry) && token == null) {\r\n                        token = paramEntry;\r\n                    }\r\n                });\r\n            }\r\n            else {\r\n                token = param;\r\n            }\r\n            if (token == null) {\r\n                hasUnknownDeps = true;\r\n                return ((null));\r\n            }\r\n            return {\r\n                isAttribute: isAttribute,\r\n                isHost: isHost,\r\n                isSelf: isSelf,\r\n                isSkipSelf: isSkipSelf,\r\n                isOptional: isOptional,\r\n                token: _this._getTokenMetadata(token)\r\n            };\r\n        });\r\n        if (hasUnknownDeps) {\r\n            var /** @type {?} */ depsTokens = dependenciesMetadata.map(function (dep) { return dep ? stringifyType(dep.token) : '?'; }).join(', ');\r\n            var /** @type {?} */ message = \"Can't resolve all parameters for \" + stringifyType(typeOrFunc) + \": (\" + depsTokens + \").\";\r\n            if (throwOnUnknownDeps) {\r\n                this._reportError(syntaxError(message), typeOrFunc);\r\n            }\r\n            else {\r\n                this._console.warn(\"Warning: \" + message + \" This will become an error in Angular v5.x\");\r\n            }\r\n        }\r\n        return dependenciesMetadata;\r\n    };\r\n    /**\r\n     * @param {?} token\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getTokenMetadata = function (token) {\r\n        token = resolveForwardRef(token);\r\n        var /** @type {?} */ compileToken;\r\n        if (typeof token === 'string') {\r\n            compileToken = { value: token };\r\n        }\r\n        else {\r\n            compileToken = { identifier: { reference: token } };\r\n        }\r\n        return compileToken;\r\n    };\r\n    /**\r\n     * @param {?} providers\r\n     * @param {?} targetEntryComponents\r\n     * @param {?=} debugInfo\r\n     * @param {?=} compileProviders\r\n     * @param {?=} type\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getProvidersMetadata = function (providers, targetEntryComponents, debugInfo, compileProviders, type) {\r\n        var _this = this;\r\n        if (compileProviders === void 0) { compileProviders = []; }\r\n        providers.forEach(function (provider, providerIdx) {\r\n            if (Array.isArray(provider)) {\r\n                _this._getProvidersMetadata(provider, targetEntryComponents, debugInfo, compileProviders);\r\n            }\r\n            else {\r\n                provider = resolveForwardRef(provider);\r\n                var /** @type {?} */ providerMeta = ((undefined));\r\n                if (provider && typeof provider === 'object' && provider.hasOwnProperty('provide')) {\r\n                    _this._validateProvider(provider);\r\n                    providerMeta = new ProviderMeta(provider.provide, provider);\r\n                }\r\n                else if (isValidType(provider)) {\r\n                    providerMeta = new ProviderMeta(provider, { useClass: provider });\r\n                }\r\n                else if (provider === void 0) {\r\n                    _this._reportError(syntaxError(\"Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files.\"));\r\n                    return;\r\n                }\r\n                else {\r\n                    var /** @type {?} */ providersInfo = ((providers.reduce(function (soFar, seenProvider, seenProviderIdx) {\r\n                        if (seenProviderIdx < providerIdx) {\r\n                            soFar.push(\"\" + stringifyType(seenProvider));\r\n                        }\r\n                        else if (seenProviderIdx == providerIdx) {\r\n                            soFar.push(\"?\" + stringifyType(seenProvider) + \"?\");\r\n                        }\r\n                        else if (seenProviderIdx == providerIdx + 1) {\r\n                            soFar.push('...');\r\n                        }\r\n                        return soFar;\r\n                    }, [])))\r\n                        .join(', ');\r\n                    _this._reportError(syntaxError(\"Invalid \" + (debugInfo ? debugInfo : 'provider') + \" - only instances of Provider and Type are allowed, got: [\" + providersInfo + \"]\"), type);\r\n                    return;\r\n                }\r\n                if (providerMeta.token === resolveIdentifier(Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS)) {\r\n                    targetEntryComponents.push.apply(targetEntryComponents, _this._getEntryComponentsFromProvider(providerMeta, type));\r\n                }\r\n                else {\r\n                    compileProviders.push(_this.getProviderMetadata(providerMeta));\r\n                }\r\n            }\r\n        });\r\n        return compileProviders;\r\n    };\r\n    /**\r\n     * @param {?} provider\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._validateProvider = function (provider) {\r\n        if (provider.hasOwnProperty('useClass') && provider.useClass == null) {\r\n            this._reportError(syntaxError(\"Invalid provider for \" + stringifyType(provider.provide) + \". useClass cannot be \" + provider.useClass + \".\\n           Usually it happens when:\\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\\n           2. Class was used before it was declared. Use forwardRef in this case.\"));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} provider\r\n     * @param {?=} type\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getEntryComponentsFromProvider = function (provider, type) {\r\n        var _this = this;\r\n        var /** @type {?} */ components = [];\r\n        var /** @type {?} */ collectedIdentifiers = [];\r\n        if (provider.useFactory || provider.useExisting || provider.useClass) {\r\n            this._reportError(syntaxError(\"The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!\"), type);\r\n            return [];\r\n        }\r\n        if (!provider.multi) {\r\n            this._reportError(syntaxError(\"The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!\"), type);\r\n            return [];\r\n        }\r\n        extractIdentifiers(provider.useValue, collectedIdentifiers);\r\n        collectedIdentifiers.forEach(function (identifier) {\r\n            var /** @type {?} */ entry = _this._getEntryComponentMetadata(identifier.reference, false);\r\n            if (entry) {\r\n                components.push(entry);\r\n            }\r\n        });\r\n        return components;\r\n    };\r\n    /**\r\n     * @param {?} dirType\r\n     * @param {?=} throwIfNotFound\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getEntryComponentMetadata = function (dirType, throwIfNotFound) {\r\n        if (throwIfNotFound === void 0) { throwIfNotFound = true; }\r\n        var /** @type {?} */ dirMeta = this.getNonNormalizedDirectiveMetadata(dirType);\r\n        if (dirMeta && dirMeta.metadata.isComponent) {\r\n            return { componentType: dirType, componentFactory: /** @type {?} */ ((dirMeta.metadata.componentFactory)) };\r\n        }\r\n        var /** @type {?} */ dirSummary = (this._loadSummary(dirType, CompileSummaryKind.Directive));\r\n        if (dirSummary && dirSummary.isComponent) {\r\n            return { componentType: dirType, componentFactory: /** @type {?} */ ((dirSummary.componentFactory)) };\r\n        }\r\n        if (throwIfNotFound) {\r\n            throw syntaxError(dirType.name + \" cannot be used as an entry component.\");\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} provider\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype.getProviderMetadata = function (provider) {\r\n        var /** @type {?} */ compileDeps = ((undefined));\r\n        var /** @type {?} */ compileTypeMetadata = ((null));\r\n        var /** @type {?} */ compileFactoryMetadata = ((null));\r\n        var /** @type {?} */ token = this._getTokenMetadata(provider.token);\r\n        if (provider.useClass) {\r\n            compileTypeMetadata = this._getInjectableMetadata(provider.useClass, provider.dependencies);\r\n            compileDeps = compileTypeMetadata.diDeps;\r\n            if (provider.token === provider.useClass) {\r\n                // use the compileTypeMetadata as it contains information about lifecycleHooks...\r\n                token = { identifier: compileTypeMetadata };\r\n            }\r\n        }\r\n        else if (provider.useFactory) {\r\n            compileFactoryMetadata = this._getFactoryMetadata(provider.useFactory, provider.dependencies);\r\n            compileDeps = compileFactoryMetadata.diDeps;\r\n        }\r\n        return {\r\n            token: token,\r\n            useClass: compileTypeMetadata,\r\n            useValue: provider.useValue,\r\n            useFactory: compileFactoryMetadata,\r\n            useExisting: provider.useExisting ? this._getTokenMetadata(provider.useExisting) : undefined,\r\n            deps: compileDeps,\r\n            multi: provider.multi\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} queries\r\n     * @param {?} isViewQuery\r\n     * @param {?} directiveType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getQueriesMetadata = function (queries, isViewQuery, directiveType) {\r\n        var _this = this;\r\n        var /** @type {?} */ res = [];\r\n        Object.keys(queries).forEach(function (propertyName) {\r\n            var /** @type {?} */ query = queries[propertyName];\r\n            if (query.isViewQuery === isViewQuery) {\r\n                res.push(_this._getQueryMetadata(query, propertyName, directiveType));\r\n            }\r\n        });\r\n        return res;\r\n    };\r\n    /**\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._queryVarBindings = function (selector) { return selector.split(/\\s*,\\s*/); };\r\n    /**\r\n     * @param {?} q\r\n     * @param {?} propertyName\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._getQueryMetadata = function (q, propertyName, typeOrFunc) {\r\n        var _this = this;\r\n        var /** @type {?} */ selectors;\r\n        if (typeof q.selector === 'string') {\r\n            selectors =\r\n                this._queryVarBindings(q.selector).map(function (varName) { return _this._getTokenMetadata(varName); });\r\n        }\r\n        else {\r\n            if (!q.selector) {\r\n                this._reportError(syntaxError(\"Can't construct a query for the property \\\"\" + propertyName + \"\\\" of \\\"\" + stringifyType(typeOrFunc) + \"\\\" since the query selector wasn't defined.\"), typeOrFunc);\r\n                selectors = [];\r\n            }\r\n            else {\r\n                selectors = [this._getTokenMetadata(q.selector)];\r\n            }\r\n        }\r\n        return {\r\n            selectors: selectors,\r\n            first: q.first,\r\n            descendants: q.descendants, propertyName: propertyName,\r\n            read: q.read ? this._getTokenMetadata(q.read) : ((null))\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} error\r\n     * @param {?=} type\r\n     * @param {?=} otherType\r\n     * @return {?}\r\n     */\r\n    CompileMetadataResolver.prototype._reportError = function (error, type, otherType) {\r\n        if (this._errorCollector) {\r\n            this._errorCollector(error, type);\r\n            if (otherType) {\r\n                this._errorCollector(error, otherType);\r\n            }\r\n        }\r\n        else {\r\n            throw error;\r\n        }\r\n    };\r\n    return CompileMetadataResolver;\r\n}());\r\nCompileMetadataResolver.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nCompileMetadataResolver.ctorParameters = function () { return [\r\n    { type: CompilerConfig, },\r\n    { type: NgModuleResolver, },\r\n    { type: DirectiveResolver, },\r\n    { type: PipeResolver, },\r\n    { type: SummaryResolver, },\r\n    { type: ElementSchemaRegistry, },\r\n    { type: DirectiveNormalizer, },\r\n    { type: ɵConsole, },\r\n    { type: StaticSymbolCache, decorators: [{ type: Optional },] },\r\n    { type: ɵReflectorReader, },\r\n    { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [ERROR_COLLECTOR_TOKEN,] },] },\r\n]; };\r\n/**\r\n * @param {?} tree\r\n * @param {?=} out\r\n * @return {?}\r\n */\r\nfunction flattenArray(tree, out) {\r\n    if (out === void 0) { out = []; }\r\n    if (tree) {\r\n        for (var /** @type {?} */ i = 0; i < tree.length; i++) {\r\n            var /** @type {?} */ item = resolveForwardRef(tree[i]);\r\n            if (Array.isArray(item)) {\r\n                flattenArray(item, out);\r\n            }\r\n            else {\r\n                out.push(item);\r\n            }\r\n        }\r\n    }\r\n    return out;\r\n}\r\n/**\r\n * @param {?} array\r\n * @return {?}\r\n */\r\nfunction dedupeArray(array) {\r\n    if (array) {\r\n        return Array.from(new Set(array));\r\n    }\r\n    return [];\r\n}\r\n/**\r\n * @param {?} tree\r\n * @return {?}\r\n */\r\nfunction flattenAndDedupeArray(tree) {\r\n    return dedupeArray(flattenArray(tree));\r\n}\r\n/**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction isValidType(value) {\r\n    return (value instanceof StaticSymbol) || (value instanceof Type);\r\n}\r\n/**\r\n * @param {?} reflector\r\n * @param {?} type\r\n * @param {?} cmpMetadata\r\n * @return {?}\r\n */\r\nfunction componentModuleUrl(reflector, type, cmpMetadata) {\r\n    if (type instanceof StaticSymbol) {\r\n        return reflector.resourceUri(type);\r\n    }\r\n    var /** @type {?} */ moduleId = cmpMetadata.moduleId;\r\n    if (typeof moduleId === 'string') {\r\n        var /** @type {?} */ scheme = getUrlScheme(moduleId);\r\n        return scheme ? moduleId : \"package:\" + moduleId + MODULE_SUFFIX;\r\n    }\r\n    else if (moduleId !== null && moduleId !== void 0) {\r\n        throw syntaxError(\"moduleId should be a string in \\\"\" + stringifyType(type) + \"\\\". See https://goo.gl/wIDDiL for more information.\\n\" +\r\n            \"If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.\");\r\n    }\r\n    return ((reflector.importUri(type)));\r\n}\r\n/**\r\n * @param {?} value\r\n * @param {?} targetIdentifiers\r\n * @return {?}\r\n */\r\nfunction extractIdentifiers(value, targetIdentifiers) {\r\n    visitValue(value, new _CompileValueConverter(), targetIdentifiers);\r\n}\r\nvar _CompileValueConverter = (function (_super) {\r\n    __extends(_CompileValueConverter, _super);\r\n    function _CompileValueConverter() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} targetIdentifiers\r\n     * @return {?}\r\n     */\r\n    _CompileValueConverter.prototype.visitOther = function (value, targetIdentifiers) {\r\n        targetIdentifiers.push({ reference: value });\r\n    };\r\n    return _CompileValueConverter;\r\n}(ValueTransformer));\r\n/**\r\n * @param {?} type\r\n * @return {?}\r\n */\r\nfunction stringifyType(type) {\r\n    if (type instanceof StaticSymbol) {\r\n        return type.name + \" in \" + type.filePath;\r\n    }\r\n    else {\r\n        return ɵstringify(type);\r\n    }\r\n}\r\n/**\r\n * Indicates that a component is still being loaded in a synchronous compile.\r\n * @param {?} compType\r\n * @return {?}\r\n */\r\nfunction componentStillLoadingError(compType) {\r\n    var /** @type {?} */ error = Error(\"Can't compile synchronously as \" + ɵstringify(compType) + \" is still being loaded!\");\r\n    ((error))[ɵERROR_COMPONENT_TYPE] = compType;\r\n    return error;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar TypeModifier = {};\r\nTypeModifier.Const = 0;\r\nTypeModifier[TypeModifier.Const] = \"Const\";\r\n/**\r\n * @abstract\r\n */\r\nvar Type$1 = (function () {\r\n    /**\r\n     * @param {?=} modifiers\r\n     */\r\n    function Type$1(modifiers) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        this.modifiers = modifiers;\r\n        if (!modifiers) {\r\n            this.modifiers = [];\r\n        }\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Type$1.prototype.visitType = function (visitor, context) { };\r\n    /**\r\n     * @param {?} modifier\r\n     * @return {?}\r\n     */\r\n    Type$1.prototype.hasModifier = function (modifier) { return ((this.modifiers)).indexOf(modifier) !== -1; };\r\n    return Type$1;\r\n}());\r\nvar BuiltinTypeName = {};\r\nBuiltinTypeName.Dynamic = 0;\r\nBuiltinTypeName.Bool = 1;\r\nBuiltinTypeName.String = 2;\r\nBuiltinTypeName.Int = 3;\r\nBuiltinTypeName.Number = 4;\r\nBuiltinTypeName.Function = 5;\r\nBuiltinTypeName.Inferred = 6;\r\nBuiltinTypeName[BuiltinTypeName.Dynamic] = \"Dynamic\";\r\nBuiltinTypeName[BuiltinTypeName.Bool] = \"Bool\";\r\nBuiltinTypeName[BuiltinTypeName.String] = \"String\";\r\nBuiltinTypeName[BuiltinTypeName.Int] = \"Int\";\r\nBuiltinTypeName[BuiltinTypeName.Number] = \"Number\";\r\nBuiltinTypeName[BuiltinTypeName.Function] = \"Function\";\r\nBuiltinTypeName[BuiltinTypeName.Inferred] = \"Inferred\";\r\nvar BuiltinType = (function (_super) {\r\n    __extends(BuiltinType, _super);\r\n    /**\r\n     * @param {?} name\r\n     * @param {?=} modifiers\r\n     */\r\n    function BuiltinType(name, modifiers) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        var _this = _super.call(this, modifiers) || this;\r\n        _this.name = name;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    BuiltinType.prototype.visitType = function (visitor, context) {\r\n        return visitor.visitBuiltintType(this, context);\r\n    };\r\n    return BuiltinType;\r\n}(Type$1));\r\nvar ExpressionType = (function (_super) {\r\n    __extends(ExpressionType, _super);\r\n    /**\r\n     * @param {?} value\r\n     * @param {?=} modifiers\r\n     */\r\n    function ExpressionType(value, modifiers) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        var _this = _super.call(this, modifiers) || this;\r\n        _this.value = value;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ExpressionType.prototype.visitType = function (visitor, context) {\r\n        return visitor.visitExpressionType(this, context);\r\n    };\r\n    return ExpressionType;\r\n}(Type$1));\r\nvar ArrayType = (function (_super) {\r\n    __extends(ArrayType, _super);\r\n    /**\r\n     * @param {?} of\r\n     * @param {?=} modifiers\r\n     */\r\n    function ArrayType(of, modifiers) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        var _this = _super.call(this, modifiers) || this;\r\n        _this.of = of;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ArrayType.prototype.visitType = function (visitor, context) {\r\n        return visitor.visitArrayType(this, context);\r\n    };\r\n    return ArrayType;\r\n}(Type$1));\r\nvar MapType = (function (_super) {\r\n    __extends(MapType, _super);\r\n    /**\r\n     * @param {?} valueType\r\n     * @param {?=} modifiers\r\n     */\r\n    function MapType(valueType, modifiers) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        var _this = _super.call(this, modifiers) || this;\r\n        _this.valueType = valueType || null;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    MapType.prototype.visitType = function (visitor, context) { return visitor.visitMapType(this, context); };\r\n    return MapType;\r\n}(Type$1));\r\nvar DYNAMIC_TYPE = new BuiltinType(BuiltinTypeName.Dynamic);\r\nvar INFERRED_TYPE = new BuiltinType(BuiltinTypeName.Inferred);\r\nvar BOOL_TYPE = new BuiltinType(BuiltinTypeName.Bool);\r\nvar INT_TYPE = new BuiltinType(BuiltinTypeName.Int);\r\nvar NUMBER_TYPE = new BuiltinType(BuiltinTypeName.Number);\r\nvar STRING_TYPE = new BuiltinType(BuiltinTypeName.String);\r\nvar FUNCTION_TYPE = new BuiltinType(BuiltinTypeName.Function);\r\nvar BinaryOperator = {};\r\nBinaryOperator.Equals = 0;\r\nBinaryOperator.NotEquals = 1;\r\nBinaryOperator.Identical = 2;\r\nBinaryOperator.NotIdentical = 3;\r\nBinaryOperator.Minus = 4;\r\nBinaryOperator.Plus = 5;\r\nBinaryOperator.Divide = 6;\r\nBinaryOperator.Multiply = 7;\r\nBinaryOperator.Modulo = 8;\r\nBinaryOperator.And = 9;\r\nBinaryOperator.Or = 10;\r\nBinaryOperator.Lower = 11;\r\nBinaryOperator.LowerEquals = 12;\r\nBinaryOperator.Bigger = 13;\r\nBinaryOperator.BiggerEquals = 14;\r\nBinaryOperator[BinaryOperator.Equals] = \"Equals\";\r\nBinaryOperator[BinaryOperator.NotEquals] = \"NotEquals\";\r\nBinaryOperator[BinaryOperator.Identical] = \"Identical\";\r\nBinaryOperator[BinaryOperator.NotIdentical] = \"NotIdentical\";\r\nBinaryOperator[BinaryOperator.Minus] = \"Minus\";\r\nBinaryOperator[BinaryOperator.Plus] = \"Plus\";\r\nBinaryOperator[BinaryOperator.Divide] = \"Divide\";\r\nBinaryOperator[BinaryOperator.Multiply] = \"Multiply\";\r\nBinaryOperator[BinaryOperator.Modulo] = \"Modulo\";\r\nBinaryOperator[BinaryOperator.And] = \"And\";\r\nBinaryOperator[BinaryOperator.Or] = \"Or\";\r\nBinaryOperator[BinaryOperator.Lower] = \"Lower\";\r\nBinaryOperator[BinaryOperator.LowerEquals] = \"LowerEquals\";\r\nBinaryOperator[BinaryOperator.Bigger] = \"Bigger\";\r\nBinaryOperator[BinaryOperator.BiggerEquals] = \"BiggerEquals\";\r\n/**\r\n * @abstract\r\n */\r\nvar Expression = (function () {\r\n    /**\r\n     * @param {?} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function Expression(type, sourceSpan) {\r\n        this.type = type || null;\r\n        this.sourceSpan = sourceSpan || null;\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.visitExpression = function (visitor, context) { };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.prop = function (name, sourceSpan) {\r\n        return new ReadPropExpr(this, name, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} index\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.key = function (index, type, sourceSpan) {\r\n        return new ReadKeyExpr(this, index, type, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} params\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.callMethod = function (name, params, sourceSpan) {\r\n        return new InvokeMethodExpr(this, name, params, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} params\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.callFn = function (params, sourceSpan) {\r\n        return new InvokeFunctionExpr(this, params, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} params\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.instantiate = function (params, type, sourceSpan) {\r\n        return new InstantiateExpr(this, params, type, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} trueCase\r\n     * @param {?=} falseCase\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.conditional = function (trueCase, falseCase, sourceSpan) {\r\n        if (falseCase === void 0) { falseCase = null; }\r\n        return new ConditionalExpr(this, trueCase, falseCase, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.equals = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.Equals, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.notEquals = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.NotEquals, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.identical = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.Identical, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.notIdentical = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.NotIdentical, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.minus = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.Minus, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.plus = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.Plus, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.divide = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.Divide, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.multiply = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.Multiply, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.modulo = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.Modulo, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.and = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.And, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.or = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.Or, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.lower = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.Lower, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.lowerEquals = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.LowerEquals, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.bigger = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.Bigger, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} rhs\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.biggerEquals = function (rhs, sourceSpan) {\r\n        return new BinaryOperatorExpr(BinaryOperator.BiggerEquals, this, rhs, null, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.isBlank = function (sourceSpan) {\r\n        // Note: We use equals by purpose here to compare to null and undefined in JS.\r\n        // We use the typed null to allow strictNullChecks to narrow types.\r\n        return this.equals(TYPED_NULL_EXPR, sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?=} sourceSpan\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.cast = function (type, sourceSpan) {\r\n        return new CastExpr(this, type, sourceSpan);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Expression.prototype.toStmt = function () { return new ExpressionStatement(this, null); };\r\n    return Expression;\r\n}());\r\nvar BuiltinVar = {};\r\nBuiltinVar.This = 0;\r\nBuiltinVar.Super = 1;\r\nBuiltinVar.CatchError = 2;\r\nBuiltinVar.CatchStack = 3;\r\nBuiltinVar[BuiltinVar.This] = \"This\";\r\nBuiltinVar[BuiltinVar.Super] = \"Super\";\r\nBuiltinVar[BuiltinVar.CatchError] = \"CatchError\";\r\nBuiltinVar[BuiltinVar.CatchStack] = \"CatchStack\";\r\nvar ReadVarExpr = (function (_super) {\r\n    __extends(ReadVarExpr, _super);\r\n    /**\r\n     * @param {?} name\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function ReadVarExpr(name, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        if (typeof name === 'string') {\r\n            _this.name = name;\r\n            _this.builtin = null;\r\n        }\r\n        else {\r\n            _this.name = null;\r\n            _this.builtin = name;\r\n        }\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ReadVarExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitReadVarExpr(this, context);\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    ReadVarExpr.prototype.set = function (value) {\r\n        if (!this.name) {\r\n            throw new Error(\"Built in variable \" + this.builtin + \" can not be assigned to.\");\r\n        }\r\n        return new WriteVarExpr(this.name, value, null, this.sourceSpan);\r\n    };\r\n    return ReadVarExpr;\r\n}(Expression));\r\nvar WriteVarExpr = (function (_super) {\r\n    __extends(WriteVarExpr, _super);\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function WriteVarExpr(name, value, type, sourceSpan) {\r\n        var _this = _super.call(this, type || value.type, sourceSpan) || this;\r\n        _this.name = name;\r\n        _this.value = value;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    WriteVarExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitWriteVarExpr(this, context);\r\n    };\r\n    /**\r\n     * @param {?=} type\r\n     * @param {?=} modifiers\r\n     * @return {?}\r\n     */\r\n    WriteVarExpr.prototype.toDeclStmt = function (type, modifiers) {\r\n        return new DeclareVarStmt(this.name, this.value, type, modifiers, this.sourceSpan);\r\n    };\r\n    return WriteVarExpr;\r\n}(Expression));\r\nvar WriteKeyExpr = (function (_super) {\r\n    __extends(WriteKeyExpr, _super);\r\n    /**\r\n     * @param {?} receiver\r\n     * @param {?} index\r\n     * @param {?} value\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function WriteKeyExpr(receiver, index, value, type, sourceSpan) {\r\n        var _this = _super.call(this, type || value.type, sourceSpan) || this;\r\n        _this.receiver = receiver;\r\n        _this.index = index;\r\n        _this.value = value;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    WriteKeyExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitWriteKeyExpr(this, context);\r\n    };\r\n    return WriteKeyExpr;\r\n}(Expression));\r\nvar WritePropExpr = (function (_super) {\r\n    __extends(WritePropExpr, _super);\r\n    /**\r\n     * @param {?} receiver\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function WritePropExpr(receiver, name, value, type, sourceSpan) {\r\n        var _this = _super.call(this, type || value.type, sourceSpan) || this;\r\n        _this.receiver = receiver;\r\n        _this.name = name;\r\n        _this.value = value;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    WritePropExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitWritePropExpr(this, context);\r\n    };\r\n    return WritePropExpr;\r\n}(Expression));\r\nvar BuiltinMethod = {};\r\nBuiltinMethod.ConcatArray = 0;\r\nBuiltinMethod.SubscribeObservable = 1;\r\nBuiltinMethod.Bind = 2;\r\nBuiltinMethod[BuiltinMethod.ConcatArray] = \"ConcatArray\";\r\nBuiltinMethod[BuiltinMethod.SubscribeObservable] = \"SubscribeObservable\";\r\nBuiltinMethod[BuiltinMethod.Bind] = \"Bind\";\r\nvar InvokeMethodExpr = (function (_super) {\r\n    __extends(InvokeMethodExpr, _super);\r\n    /**\r\n     * @param {?} receiver\r\n     * @param {?} method\r\n     * @param {?} args\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function InvokeMethodExpr(receiver, method, args, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.receiver = receiver;\r\n        _this.args = args;\r\n        if (typeof method === 'string') {\r\n            _this.name = method;\r\n            _this.builtin = null;\r\n        }\r\n        else {\r\n            _this.name = null;\r\n            _this.builtin = method;\r\n        }\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    InvokeMethodExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitInvokeMethodExpr(this, context);\r\n    };\r\n    return InvokeMethodExpr;\r\n}(Expression));\r\nvar InvokeFunctionExpr = (function (_super) {\r\n    __extends(InvokeFunctionExpr, _super);\r\n    /**\r\n     * @param {?} fn\r\n     * @param {?} args\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function InvokeFunctionExpr(fn, args, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.fn = fn;\r\n        _this.args = args;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    InvokeFunctionExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitInvokeFunctionExpr(this, context);\r\n    };\r\n    return InvokeFunctionExpr;\r\n}(Expression));\r\nvar InstantiateExpr = (function (_super) {\r\n    __extends(InstantiateExpr, _super);\r\n    /**\r\n     * @param {?} classExpr\r\n     * @param {?} args\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function InstantiateExpr(classExpr, args, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.classExpr = classExpr;\r\n        _this.args = args;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    InstantiateExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitInstantiateExpr(this, context);\r\n    };\r\n    return InstantiateExpr;\r\n}(Expression));\r\nvar LiteralExpr = (function (_super) {\r\n    __extends(LiteralExpr, _super);\r\n    /**\r\n     * @param {?} value\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function LiteralExpr(value, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.value = value;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    LiteralExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitLiteralExpr(this, context);\r\n    };\r\n    return LiteralExpr;\r\n}(Expression));\r\nvar ExternalExpr = (function (_super) {\r\n    __extends(ExternalExpr, _super);\r\n    /**\r\n     * @param {?} value\r\n     * @param {?=} type\r\n     * @param {?=} typeParams\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function ExternalExpr(value, type, typeParams, sourceSpan) {\r\n        if (typeParams === void 0) { typeParams = null; }\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.value = value;\r\n        _this.typeParams = typeParams;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ExternalExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitExternalExpr(this, context);\r\n    };\r\n    return ExternalExpr;\r\n}(Expression));\r\nvar ConditionalExpr = (function (_super) {\r\n    __extends(ConditionalExpr, _super);\r\n    /**\r\n     * @param {?} condition\r\n     * @param {?} trueCase\r\n     * @param {?=} falseCase\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function ConditionalExpr(condition, trueCase, falseCase, type, sourceSpan) {\r\n        if (falseCase === void 0) { falseCase = null; }\r\n        var _this = _super.call(this, type || trueCase.type, sourceSpan) || this;\r\n        _this.condition = condition;\r\n        _this.falseCase = falseCase;\r\n        _this.trueCase = trueCase;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ConditionalExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitConditionalExpr(this, context);\r\n    };\r\n    return ConditionalExpr;\r\n}(Expression));\r\nvar NotExpr = (function (_super) {\r\n    __extends(NotExpr, _super);\r\n    /**\r\n     * @param {?} condition\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function NotExpr(condition, sourceSpan) {\r\n        var _this = _super.call(this, BOOL_TYPE, sourceSpan) || this;\r\n        _this.condition = condition;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    NotExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitNotExpr(this, context);\r\n    };\r\n    return NotExpr;\r\n}(Expression));\r\nvar CastExpr = (function (_super) {\r\n    __extends(CastExpr, _super);\r\n    /**\r\n     * @param {?} value\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function CastExpr(value, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.value = value;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    CastExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitCastExpr(this, context);\r\n    };\r\n    return CastExpr;\r\n}(Expression));\r\nvar FnParam = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?=} type\r\n     */\r\n    function FnParam(name, type) {\r\n        if (type === void 0) { type = null; }\r\n        this.name = name;\r\n        this.type = type;\r\n    }\r\n    return FnParam;\r\n}());\r\nvar FunctionExpr = (function (_super) {\r\n    __extends(FunctionExpr, _super);\r\n    /**\r\n     * @param {?} params\r\n     * @param {?} statements\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function FunctionExpr(params, statements, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.params = params;\r\n        _this.statements = statements;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    FunctionExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitFunctionExpr(this, context);\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?=} modifiers\r\n     * @return {?}\r\n     */\r\n    FunctionExpr.prototype.toDeclStmt = function (name, modifiers) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        return new DeclareFunctionStmt(name, this.params, this.statements, this.type, modifiers, this.sourceSpan);\r\n    };\r\n    return FunctionExpr;\r\n}(Expression));\r\nvar BinaryOperatorExpr = (function (_super) {\r\n    __extends(BinaryOperatorExpr, _super);\r\n    /**\r\n     * @param {?} operator\r\n     * @param {?} lhs\r\n     * @param {?} rhs\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function BinaryOperatorExpr(operator, lhs, rhs, type, sourceSpan) {\r\n        var _this = _super.call(this, type || lhs.type, sourceSpan) || this;\r\n        _this.operator = operator;\r\n        _this.rhs = rhs;\r\n        _this.lhs = lhs;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    BinaryOperatorExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitBinaryOperatorExpr(this, context);\r\n    };\r\n    return BinaryOperatorExpr;\r\n}(Expression));\r\nvar ReadPropExpr = (function (_super) {\r\n    __extends(ReadPropExpr, _super);\r\n    /**\r\n     * @param {?} receiver\r\n     * @param {?} name\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function ReadPropExpr(receiver, name, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.receiver = receiver;\r\n        _this.name = name;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ReadPropExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitReadPropExpr(this, context);\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    ReadPropExpr.prototype.set = function (value) {\r\n        return new WritePropExpr(this.receiver, this.name, value, null, this.sourceSpan);\r\n    };\r\n    return ReadPropExpr;\r\n}(Expression));\r\nvar ReadKeyExpr = (function (_super) {\r\n    __extends(ReadKeyExpr, _super);\r\n    /**\r\n     * @param {?} receiver\r\n     * @param {?} index\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function ReadKeyExpr(receiver, index, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.receiver = receiver;\r\n        _this.index = index;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ReadKeyExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitReadKeyExpr(this, context);\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    ReadKeyExpr.prototype.set = function (value) {\r\n        return new WriteKeyExpr(this.receiver, this.index, value, null, this.sourceSpan);\r\n    };\r\n    return ReadKeyExpr;\r\n}(Expression));\r\nvar LiteralArrayExpr = (function (_super) {\r\n    __extends(LiteralArrayExpr, _super);\r\n    /**\r\n     * @param {?} entries\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function LiteralArrayExpr(entries, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.entries = entries;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    LiteralArrayExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitLiteralArrayExpr(this, context);\r\n    };\r\n    return LiteralArrayExpr;\r\n}(Expression));\r\nvar LiteralMapEntry = (function () {\r\n    /**\r\n     * @param {?} key\r\n     * @param {?} value\r\n     * @param {?=} quoted\r\n     */\r\n    function LiteralMapEntry(key, value, quoted) {\r\n        if (quoted === void 0) { quoted = false; }\r\n        this.key = key;\r\n        this.value = value;\r\n        this.quoted = quoted;\r\n    }\r\n    return LiteralMapEntry;\r\n}());\r\nvar LiteralMapExpr = (function (_super) {\r\n    __extends(LiteralMapExpr, _super);\r\n    /**\r\n     * @param {?} entries\r\n     * @param {?=} type\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function LiteralMapExpr(entries, type, sourceSpan) {\r\n        var _this = _super.call(this, type, sourceSpan) || this;\r\n        _this.entries = entries;\r\n        _this.valueType = null;\r\n        if (type) {\r\n            _this.valueType = type.valueType;\r\n        }\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    LiteralMapExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitLiteralMapExpr(this, context);\r\n    };\r\n    return LiteralMapExpr;\r\n}(Expression));\r\nvar CommaExpr = (function (_super) {\r\n    __extends(CommaExpr, _super);\r\n    /**\r\n     * @param {?} parts\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function CommaExpr(parts, sourceSpan) {\r\n        var _this = _super.call(this, parts[parts.length - 1].type, sourceSpan) || this;\r\n        _this.parts = parts;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    CommaExpr.prototype.visitExpression = function (visitor, context) {\r\n        return visitor.visitCommaExpr(this, context);\r\n    };\r\n    return CommaExpr;\r\n}(Expression));\r\nvar THIS_EXPR = new ReadVarExpr(BuiltinVar.This, null, null);\r\nvar SUPER_EXPR = new ReadVarExpr(BuiltinVar.Super, null, null);\r\nvar CATCH_ERROR_VAR = new ReadVarExpr(BuiltinVar.CatchError, null, null);\r\nvar CATCH_STACK_VAR = new ReadVarExpr(BuiltinVar.CatchStack, null, null);\r\nvar NULL_EXPR = new LiteralExpr(null, null, null);\r\nvar TYPED_NULL_EXPR = new LiteralExpr(null, INFERRED_TYPE, null);\r\nvar StmtModifier = {};\r\nStmtModifier.Final = 0;\r\nStmtModifier.Private = 1;\r\nStmtModifier[StmtModifier.Final] = \"Final\";\r\nStmtModifier[StmtModifier.Private] = \"Private\";\r\n/**\r\n * @abstract\r\n */\r\nvar Statement = (function () {\r\n    /**\r\n     * @param {?=} modifiers\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function Statement(modifiers, sourceSpan) {\r\n        this.modifiers = modifiers || [];\r\n        this.sourceSpan = sourceSpan || null;\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Statement.prototype.visitStatement = function (visitor, context) { };\r\n    /**\r\n     * @param {?} modifier\r\n     * @return {?}\r\n     */\r\n    Statement.prototype.hasModifier = function (modifier) { return ((this.modifiers)).indexOf(modifier) !== -1; };\r\n    return Statement;\r\n}());\r\nvar DeclareVarStmt = (function (_super) {\r\n    __extends(DeclareVarStmt, _super);\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} value\r\n     * @param {?=} type\r\n     * @param {?=} modifiers\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function DeclareVarStmt(name, value, type, modifiers, sourceSpan) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        var _this = _super.call(this, modifiers, sourceSpan) || this;\r\n        _this.name = name;\r\n        _this.value = value;\r\n        _this.type = type || value.type;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    DeclareVarStmt.prototype.visitStatement = function (visitor, context) {\r\n        return visitor.visitDeclareVarStmt(this, context);\r\n    };\r\n    return DeclareVarStmt;\r\n}(Statement));\r\nvar DeclareFunctionStmt = (function (_super) {\r\n    __extends(DeclareFunctionStmt, _super);\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} params\r\n     * @param {?} statements\r\n     * @param {?=} type\r\n     * @param {?=} modifiers\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function DeclareFunctionStmt(name, params, statements, type, modifiers, sourceSpan) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        var _this = _super.call(this, modifiers, sourceSpan) || this;\r\n        _this.name = name;\r\n        _this.params = params;\r\n        _this.statements = statements;\r\n        _this.type = type || null;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    DeclareFunctionStmt.prototype.visitStatement = function (visitor, context) {\r\n        return visitor.visitDeclareFunctionStmt(this, context);\r\n    };\r\n    return DeclareFunctionStmt;\r\n}(Statement));\r\nvar ExpressionStatement = (function (_super) {\r\n    __extends(ExpressionStatement, _super);\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function ExpressionStatement(expr, sourceSpan) {\r\n        var _this = _super.call(this, null, sourceSpan) || this;\r\n        _this.expr = expr;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ExpressionStatement.prototype.visitStatement = function (visitor, context) {\r\n        return visitor.visitExpressionStmt(this, context);\r\n    };\r\n    return ExpressionStatement;\r\n}(Statement));\r\nvar ReturnStatement = (function (_super) {\r\n    __extends(ReturnStatement, _super);\r\n    /**\r\n     * @param {?} value\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function ReturnStatement(value, sourceSpan) {\r\n        var _this = _super.call(this, null, sourceSpan) || this;\r\n        _this.value = value;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ReturnStatement.prototype.visitStatement = function (visitor, context) {\r\n        return visitor.visitReturnStmt(this, context);\r\n    };\r\n    return ReturnStatement;\r\n}(Statement));\r\nvar AbstractClassPart = (function () {\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} modifiers\r\n     */\r\n    function AbstractClassPart(type, modifiers) {\r\n        this.modifiers = modifiers;\r\n        if (!modifiers) {\r\n            this.modifiers = [];\r\n        }\r\n        this.type = type || null;\r\n    }\r\n    /**\r\n     * @param {?} modifier\r\n     * @return {?}\r\n     */\r\n    AbstractClassPart.prototype.hasModifier = function (modifier) { return ((this.modifiers)).indexOf(modifier) !== -1; };\r\n    return AbstractClassPart;\r\n}());\r\nvar ClassField = (function (_super) {\r\n    __extends(ClassField, _super);\r\n    /**\r\n     * @param {?} name\r\n     * @param {?=} type\r\n     * @param {?=} modifiers\r\n     */\r\n    function ClassField(name, type, modifiers) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        var _this = _super.call(this, type, modifiers) || this;\r\n        _this.name = name;\r\n        return _this;\r\n    }\r\n    return ClassField;\r\n}(AbstractClassPart));\r\nvar ClassMethod = (function (_super) {\r\n    __extends(ClassMethod, _super);\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} params\r\n     * @param {?} body\r\n     * @param {?=} type\r\n     * @param {?=} modifiers\r\n     */\r\n    function ClassMethod(name, params, body, type, modifiers) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        var _this = _super.call(this, type, modifiers) || this;\r\n        _this.name = name;\r\n        _this.params = params;\r\n        _this.body = body;\r\n        return _this;\r\n    }\r\n    return ClassMethod;\r\n}(AbstractClassPart));\r\nvar ClassGetter = (function (_super) {\r\n    __extends(ClassGetter, _super);\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} body\r\n     * @param {?=} type\r\n     * @param {?=} modifiers\r\n     */\r\n    function ClassGetter(name, body, type, modifiers) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        var _this = _super.call(this, type, modifiers) || this;\r\n        _this.name = name;\r\n        _this.body = body;\r\n        return _this;\r\n    }\r\n    return ClassGetter;\r\n}(AbstractClassPart));\r\nvar ClassStmt = (function (_super) {\r\n    __extends(ClassStmt, _super);\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} parent\r\n     * @param {?} fields\r\n     * @param {?} getters\r\n     * @param {?} constructorMethod\r\n     * @param {?} methods\r\n     * @param {?=} modifiers\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function ClassStmt(name, parent, fields, getters, constructorMethod, methods, modifiers, sourceSpan) {\r\n        if (modifiers === void 0) { modifiers = null; }\r\n        var _this = _super.call(this, modifiers, sourceSpan) || this;\r\n        _this.name = name;\r\n        _this.parent = parent;\r\n        _this.fields = fields;\r\n        _this.getters = getters;\r\n        _this.constructorMethod = constructorMethod;\r\n        _this.methods = methods;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ClassStmt.prototype.visitStatement = function (visitor, context) {\r\n        return visitor.visitDeclareClassStmt(this, context);\r\n    };\r\n    return ClassStmt;\r\n}(Statement));\r\nvar IfStmt = (function (_super) {\r\n    __extends(IfStmt, _super);\r\n    /**\r\n     * @param {?} condition\r\n     * @param {?} trueCase\r\n     * @param {?=} falseCase\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function IfStmt(condition, trueCase, falseCase, sourceSpan) {\r\n        if (falseCase === void 0) { falseCase = []; }\r\n        var _this = _super.call(this, null, sourceSpan) || this;\r\n        _this.condition = condition;\r\n        _this.trueCase = trueCase;\r\n        _this.falseCase = falseCase;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    IfStmt.prototype.visitStatement = function (visitor, context) {\r\n        return visitor.visitIfStmt(this, context);\r\n    };\r\n    return IfStmt;\r\n}(Statement));\r\nvar TryCatchStmt = (function (_super) {\r\n    __extends(TryCatchStmt, _super);\r\n    /**\r\n     * @param {?} bodyStmts\r\n     * @param {?} catchStmts\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function TryCatchStmt(bodyStmts, catchStmts, sourceSpan) {\r\n        var _this = _super.call(this, null, sourceSpan) || this;\r\n        _this.bodyStmts = bodyStmts;\r\n        _this.catchStmts = catchStmts;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    TryCatchStmt.prototype.visitStatement = function (visitor, context) {\r\n        return visitor.visitTryCatchStmt(this, context);\r\n    };\r\n    return TryCatchStmt;\r\n}(Statement));\r\nvar ThrowStmt = (function (_super) {\r\n    __extends(ThrowStmt, _super);\r\n    /**\r\n     * @param {?} error\r\n     * @param {?=} sourceSpan\r\n     */\r\n    function ThrowStmt(error, sourceSpan) {\r\n        var _this = _super.call(this, null, sourceSpan) || this;\r\n        _this.error = error;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} visitor\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ThrowStmt.prototype.visitStatement = function (visitor, context) {\r\n        return visitor.visitThrowStmt(this, context);\r\n    };\r\n    return ThrowStmt;\r\n}(Statement));\r\nvar AstTransformer$1 = (function () {\r\n    function AstTransformer$1() {\r\n    }\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.transformExpr = function (expr, context) { return expr; };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.transformStmt = function (stmt, context) { return stmt; };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitReadVarExpr = function (ast, context) { return this.transformExpr(ast, context); };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitWriteVarExpr = function (expr, context) {\r\n        return this.transformExpr(new WriteVarExpr(expr.name, expr.value.visitExpression(this, context), expr.type, expr.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitWriteKeyExpr = function (expr, context) {\r\n        return this.transformExpr(new WriteKeyExpr(expr.receiver.visitExpression(this, context), expr.index.visitExpression(this, context), expr.value.visitExpression(this, context), expr.type, expr.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitWritePropExpr = function (expr, context) {\r\n        return this.transformExpr(new WritePropExpr(expr.receiver.visitExpression(this, context), expr.name, expr.value.visitExpression(this, context), expr.type, expr.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitInvokeMethodExpr = function (ast, context) {\r\n        var /** @type {?} */ method = ast.builtin || ast.name;\r\n        return this.transformExpr(new InvokeMethodExpr(ast.receiver.visitExpression(this, context), /** @type {?} */ ((method)), this.visitAllExpressions(ast.args, context), ast.type, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitInvokeFunctionExpr = function (ast, context) {\r\n        return this.transformExpr(new InvokeFunctionExpr(ast.fn.visitExpression(this, context), this.visitAllExpressions(ast.args, context), ast.type, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitInstantiateExpr = function (ast, context) {\r\n        return this.transformExpr(new InstantiateExpr(ast.classExpr.visitExpression(this, context), this.visitAllExpressions(ast.args, context), ast.type, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitLiteralExpr = function (ast, context) { return this.transformExpr(ast, context); };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitExternalExpr = function (ast, context) {\r\n        return this.transformExpr(ast, context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitConditionalExpr = function (ast, context) {\r\n        return this.transformExpr(new ConditionalExpr(ast.condition.visitExpression(this, context), ast.trueCase.visitExpression(this, context), /** @type {?} */ ((ast.falseCase)).visitExpression(this, context), ast.type, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitNotExpr = function (ast, context) {\r\n        return this.transformExpr(new NotExpr(ast.condition.visitExpression(this, context), ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitCastExpr = function (ast, context) {\r\n        return this.transformExpr(new CastExpr(ast.value.visitExpression(this, context), ast.type, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitFunctionExpr = function (ast, context) {\r\n        return this.transformExpr(new FunctionExpr(ast.params, this.visitAllStatements(ast.statements, context), ast.type, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitBinaryOperatorExpr = function (ast, context) {\r\n        return this.transformExpr(new BinaryOperatorExpr(ast.operator, ast.lhs.visitExpression(this, context), ast.rhs.visitExpression(this, context), ast.type, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitReadPropExpr = function (ast, context) {\r\n        return this.transformExpr(new ReadPropExpr(ast.receiver.visitExpression(this, context), ast.name, ast.type, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitReadKeyExpr = function (ast, context) {\r\n        return this.transformExpr(new ReadKeyExpr(ast.receiver.visitExpression(this, context), ast.index.visitExpression(this, context), ast.type, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitLiteralArrayExpr = function (ast, context) {\r\n        return this.transformExpr(new LiteralArrayExpr(this.visitAllExpressions(ast.entries, context), ast.type, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitLiteralMapExpr = function (ast, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ entries = ast.entries.map(function (entry) { return new LiteralMapEntry(entry.key, entry.value.visitExpression(_this, context), entry.quoted); });\r\n        var /** @type {?} */ mapType = new MapType(ast.valueType, null);\r\n        return this.transformExpr(new LiteralMapExpr(entries, mapType, ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitCommaExpr = function (ast, context) {\r\n        return this.transformExpr(new CommaExpr(this.visitAllExpressions(ast.parts, context), ast.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} exprs\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitAllExpressions = function (exprs, context) {\r\n        var _this = this;\r\n        return exprs.map(function (expr) { return expr.visitExpression(_this, context); });\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitDeclareVarStmt = function (stmt, context) {\r\n        return this.transformStmt(new DeclareVarStmt(stmt.name, stmt.value.visitExpression(this, context), stmt.type, stmt.modifiers, stmt.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitDeclareFunctionStmt = function (stmt, context) {\r\n        return this.transformStmt(new DeclareFunctionStmt(stmt.name, stmt.params, this.visitAllStatements(stmt.statements, context), stmt.type, stmt.modifiers, stmt.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitExpressionStmt = function (stmt, context) {\r\n        return this.transformStmt(new ExpressionStatement(stmt.expr.visitExpression(this, context), stmt.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitReturnStmt = function (stmt, context) {\r\n        return this.transformStmt(new ReturnStatement(stmt.value.visitExpression(this, context), stmt.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitDeclareClassStmt = function (stmt, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ parent = ((stmt.parent)).visitExpression(this, context);\r\n        var /** @type {?} */ getters = stmt.getters.map(function (getter) { return new ClassGetter(getter.name, _this.visitAllStatements(getter.body, context), getter.type, getter.modifiers); });\r\n        var /** @type {?} */ ctorMethod = stmt.constructorMethod &&\r\n            new ClassMethod(stmt.constructorMethod.name, stmt.constructorMethod.params, this.visitAllStatements(stmt.constructorMethod.body, context), stmt.constructorMethod.type, stmt.constructorMethod.modifiers);\r\n        var /** @type {?} */ methods = stmt.methods.map(function (method) { return new ClassMethod(method.name, method.params, _this.visitAllStatements(method.body, context), method.type, method.modifiers); });\r\n        return this.transformStmt(new ClassStmt(stmt.name, parent, stmt.fields, getters, ctorMethod, methods, stmt.modifiers, stmt.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitIfStmt = function (stmt, context) {\r\n        return this.transformStmt(new IfStmt(stmt.condition.visitExpression(this, context), this.visitAllStatements(stmt.trueCase, context), this.visitAllStatements(stmt.falseCase, context), stmt.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitTryCatchStmt = function (stmt, context) {\r\n        return this.transformStmt(new TryCatchStmt(this.visitAllStatements(stmt.bodyStmts, context), this.visitAllStatements(stmt.catchStmts, context), stmt.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitThrowStmt = function (stmt, context) {\r\n        return this.transformStmt(new ThrowStmt(stmt.error.visitExpression(this, context), stmt.sourceSpan), context);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitCommentStmt = function (stmt, context) {\r\n        return this.transformStmt(stmt, context);\r\n    };\r\n    /**\r\n     * @param {?} stmts\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AstTransformer$1.prototype.visitAllStatements = function (stmts, context) {\r\n        var _this = this;\r\n        return stmts.map(function (stmt) { return stmt.visitStatement(_this, context); });\r\n    };\r\n    return AstTransformer$1;\r\n}());\r\nvar RecursiveAstVisitor$1 = (function () {\r\n    function RecursiveAstVisitor$1() {\r\n    }\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitReadVarExpr = function (ast, context) { return ast; };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitWriteVarExpr = function (expr, context) {\r\n        expr.value.visitExpression(this, context);\r\n        return expr;\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitWriteKeyExpr = function (expr, context) {\r\n        expr.receiver.visitExpression(this, context);\r\n        expr.index.visitExpression(this, context);\r\n        expr.value.visitExpression(this, context);\r\n        return expr;\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitWritePropExpr = function (expr, context) {\r\n        expr.receiver.visitExpression(this, context);\r\n        expr.value.visitExpression(this, context);\r\n        return expr;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitInvokeMethodExpr = function (ast, context) {\r\n        ast.receiver.visitExpression(this, context);\r\n        this.visitAllExpressions(ast.args, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitInvokeFunctionExpr = function (ast, context) {\r\n        ast.fn.visitExpression(this, context);\r\n        this.visitAllExpressions(ast.args, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitInstantiateExpr = function (ast, context) {\r\n        ast.classExpr.visitExpression(this, context);\r\n        this.visitAllExpressions(ast.args, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitLiteralExpr = function (ast, context) { return ast; };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitExternalExpr = function (ast, context) { return ast; };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitConditionalExpr = function (ast, context) {\r\n        ast.condition.visitExpression(this, context);\r\n        ast.trueCase.visitExpression(this, context); /** @type {?} */\r\n        ((ast.falseCase)).visitExpression(this, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitNotExpr = function (ast, context) {\r\n        ast.condition.visitExpression(this, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitCastExpr = function (ast, context) {\r\n        ast.value.visitExpression(this, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitFunctionExpr = function (ast, context) {\r\n        this.visitAllStatements(ast.statements, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitBinaryOperatorExpr = function (ast, context) {\r\n        ast.lhs.visitExpression(this, context);\r\n        ast.rhs.visitExpression(this, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitReadPropExpr = function (ast, context) {\r\n        ast.receiver.visitExpression(this, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitReadKeyExpr = function (ast, context) {\r\n        ast.receiver.visitExpression(this, context);\r\n        ast.index.visitExpression(this, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitLiteralArrayExpr = function (ast, context) {\r\n        this.visitAllExpressions(ast.entries, context);\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitLiteralMapExpr = function (ast, context) {\r\n        var _this = this;\r\n        ast.entries.forEach(function (entry) { return entry.value.visitExpression(_this, context); });\r\n        return ast;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitCommaExpr = function (ast, context) {\r\n        this.visitAllExpressions(ast.parts, context);\r\n    };\r\n    /**\r\n     * @param {?} exprs\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitAllExpressions = function (exprs, context) {\r\n        var _this = this;\r\n        exprs.forEach(function (expr) { return expr.visitExpression(_this, context); });\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitDeclareVarStmt = function (stmt, context) {\r\n        stmt.value.visitExpression(this, context);\r\n        return stmt;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitDeclareFunctionStmt = function (stmt, context) {\r\n        this.visitAllStatements(stmt.statements, context);\r\n        return stmt;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitExpressionStmt = function (stmt, context) {\r\n        stmt.expr.visitExpression(this, context);\r\n        return stmt;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitReturnStmt = function (stmt, context) {\r\n        stmt.value.visitExpression(this, context);\r\n        return stmt;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitDeclareClassStmt = function (stmt, context) {\r\n        var _this = this;\r\n        ((stmt.parent)).visitExpression(this, context);\r\n        stmt.getters.forEach(function (getter) { return _this.visitAllStatements(getter.body, context); });\r\n        if (stmt.constructorMethod) {\r\n            this.visitAllStatements(stmt.constructorMethod.body, context);\r\n        }\r\n        stmt.methods.forEach(function (method) { return _this.visitAllStatements(method.body, context); });\r\n        return stmt;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitIfStmt = function (stmt, context) {\r\n        stmt.condition.visitExpression(this, context);\r\n        this.visitAllStatements(stmt.trueCase, context);\r\n        this.visitAllStatements(stmt.falseCase, context);\r\n        return stmt;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitTryCatchStmt = function (stmt, context) {\r\n        this.visitAllStatements(stmt.bodyStmts, context);\r\n        this.visitAllStatements(stmt.catchStmts, context);\r\n        return stmt;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitThrowStmt = function (stmt, context) {\r\n        stmt.error.visitExpression(this, context);\r\n        return stmt;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitCommentStmt = function (stmt, context) { return stmt; };\r\n    /**\r\n     * @param {?} stmts\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    RecursiveAstVisitor$1.prototype.visitAllStatements = function (stmts, context) {\r\n        var _this = this;\r\n        stmts.forEach(function (stmt) { return stmt.visitStatement(_this, context); });\r\n    };\r\n    return RecursiveAstVisitor$1;\r\n}());\r\n/**\r\n * @param {?} stmts\r\n * @return {?}\r\n */\r\nfunction findReadVarNames(stmts) {\r\n    var /** @type {?} */ visitor = new _ReadVarVisitor();\r\n    visitor.visitAllStatements(stmts, null);\r\n    return visitor.varNames;\r\n}\r\nvar _ReadVarVisitor = (function (_super) {\r\n    __extends(_ReadVarVisitor, _super);\r\n    function _ReadVarVisitor() {\r\n        var _this = _super.apply(this, arguments) || this;\r\n        _this.varNames = new Set();\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _ReadVarVisitor.prototype.visitDeclareFunctionStmt = function (stmt, context) {\r\n        // Don't descend into nested functions\r\n        return stmt;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _ReadVarVisitor.prototype.visitDeclareClassStmt = function (stmt, context) {\r\n        // Don't descend into nested classes\r\n        return stmt;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _ReadVarVisitor.prototype.visitReadVarExpr = function (ast, context) {\r\n        if (ast.name) {\r\n            this.varNames.add(ast.name);\r\n        }\r\n        return null;\r\n    };\r\n    return _ReadVarVisitor;\r\n}(RecursiveAstVisitor$1));\r\n/**\r\n * @param {?} stmt\r\n * @param {?} sourceSpan\r\n * @return {?}\r\n */\r\nfunction applySourceSpanToStatementIfNeeded(stmt, sourceSpan) {\r\n    if (!sourceSpan) {\r\n        return stmt;\r\n    }\r\n    var /** @type {?} */ transformer = new _ApplySourceSpanTransformer(sourceSpan);\r\n    return stmt.visitStatement(transformer, null);\r\n}\r\n/**\r\n * @param {?} expr\r\n * @param {?} sourceSpan\r\n * @return {?}\r\n */\r\nfunction applySourceSpanToExpressionIfNeeded(expr, sourceSpan) {\r\n    if (!sourceSpan) {\r\n        return expr;\r\n    }\r\n    var /** @type {?} */ transformer = new _ApplySourceSpanTransformer(sourceSpan);\r\n    return expr.visitExpression(transformer, null);\r\n}\r\nvar _ApplySourceSpanTransformer = (function (_super) {\r\n    __extends(_ApplySourceSpanTransformer, _super);\r\n    /**\r\n     * @param {?} sourceSpan\r\n     */\r\n    function _ApplySourceSpanTransformer(sourceSpan) {\r\n        var _this = _super.call(this) || this;\r\n        _this.sourceSpan = sourceSpan;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} obj\r\n     * @return {?}\r\n     */\r\n    _ApplySourceSpanTransformer.prototype._clone = function (obj) {\r\n        var /** @type {?} */ clone = Object.create(obj.constructor.prototype);\r\n        for (var /** @type {?} */ prop in obj) {\r\n            clone[prop] = obj[prop];\r\n        }\r\n        return clone;\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _ApplySourceSpanTransformer.prototype.transformExpr = function (expr, context) {\r\n        if (!expr.sourceSpan) {\r\n            expr = this._clone(expr);\r\n            expr.sourceSpan = this.sourceSpan;\r\n        }\r\n        return expr;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _ApplySourceSpanTransformer.prototype.transformStmt = function (stmt, context) {\r\n        if (!stmt.sourceSpan) {\r\n            stmt = this._clone(stmt);\r\n            stmt.sourceSpan = this.sourceSpan;\r\n        }\r\n        return stmt;\r\n    };\r\n    return _ApplySourceSpanTransformer;\r\n}(AstTransformer$1));\r\n/**\r\n * @param {?} name\r\n * @param {?=} type\r\n * @param {?=} sourceSpan\r\n * @return {?}\r\n */\r\nfunction variable(name, type, sourceSpan) {\r\n    return new ReadVarExpr(name, type, sourceSpan);\r\n}\r\n/**\r\n * @param {?} id\r\n * @param {?=} typeParams\r\n * @param {?=} sourceSpan\r\n * @return {?}\r\n */\r\nfunction importExpr(id, typeParams, sourceSpan) {\r\n    if (typeParams === void 0) { typeParams = null; }\r\n    return new ExternalExpr(id, null, typeParams, sourceSpan);\r\n}\r\n/**\r\n * @param {?} id\r\n * @param {?=} typeParams\r\n * @param {?=} typeModifiers\r\n * @return {?}\r\n */\r\nfunction importType(id, typeParams, typeModifiers) {\r\n    if (typeParams === void 0) { typeParams = null; }\r\n    if (typeModifiers === void 0) { typeModifiers = null; }\r\n    return id != null ? expressionType(importExpr(id, typeParams, null), typeModifiers) : null;\r\n}\r\n/**\r\n * @param {?} expr\r\n * @param {?=} typeModifiers\r\n * @return {?}\r\n */\r\nfunction expressionType(expr, typeModifiers) {\r\n    if (typeModifiers === void 0) { typeModifiers = null; }\r\n    return expr != null ? ((new ExpressionType(expr, typeModifiers))) : null;\r\n}\r\n/**\r\n * @param {?} values\r\n * @param {?=} type\r\n * @param {?=} sourceSpan\r\n * @return {?}\r\n */\r\nfunction literalArr(values, type, sourceSpan) {\r\n    return new LiteralArrayExpr(values, type, sourceSpan);\r\n}\r\n/**\r\n * @param {?} values\r\n * @param {?=} type\r\n * @param {?=} quoted\r\n * @return {?}\r\n */\r\nfunction literalMap(values, type, quoted) {\r\n    if (type === void 0) { type = null; }\r\n    if (quoted === void 0) { quoted = false; }\r\n    return new LiteralMapExpr(values.map(function (entry) { return new LiteralMapEntry(entry[0], entry[1], quoted); }), type, null);\r\n}\r\n/**\r\n * @param {?} expr\r\n * @param {?=} sourceSpan\r\n * @return {?}\r\n */\r\nfunction not(expr, sourceSpan) {\r\n    return new NotExpr(expr, sourceSpan);\r\n}\r\n/**\r\n * @param {?} params\r\n * @param {?} body\r\n * @param {?=} type\r\n * @param {?=} sourceSpan\r\n * @return {?}\r\n */\r\nfunction fn(params, body, type, sourceSpan) {\r\n    return new FunctionExpr(params, body, type, sourceSpan);\r\n}\r\n/**\r\n * @param {?} value\r\n * @param {?=} type\r\n * @param {?=} sourceSpan\r\n * @return {?}\r\n */\r\nfunction literal(value, type, sourceSpan) {\r\n    return new LiteralExpr(value, type, sourceSpan);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Create a new class stmts based on the given data.\r\n * @param {?} config\r\n * @return {?}\r\n */\r\nfunction createClassStmt(config) {\r\n    var /** @type {?} */ parentArgs = config.parentArgs || [];\r\n    var /** @type {?} */ superCtorStmts = config.parent ? [SUPER_EXPR.callFn(parentArgs).toStmt()] : [];\r\n    var /** @type {?} */ builder = concatClassBuilderParts(Array.isArray(config.builders) ? config.builders : [config.builders]);\r\n    var /** @type {?} */ ctor = new ClassMethod(null, config.ctorParams || [], superCtorStmts.concat(builder.ctorStmts));\r\n    return new ClassStmt(config.name, config.parent || null, builder.fields, builder.getters, ctor, builder.methods, config.modifiers || [], config.sourceSpan);\r\n}\r\n/**\r\n * @param {?} builders\r\n * @return {?}\r\n */\r\nfunction concatClassBuilderParts(builders) {\r\n    return {\r\n        fields: [].concat.apply([], ((builders.map((function (builder) { return builder.fields || []; }))))),\r\n        methods: [].concat.apply([], ((builders.map(function (builder) { return builder.methods || []; })))),\r\n        getters: [].concat.apply([], ((builders.map(function (builder) { return builder.getters || []; })))),\r\n        ctorStmts: [].concat.apply([], ((builders.map(function (builder) { return builder.ctorStmts || []; })))),\r\n    };\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar QUOTED_KEYS = '$quoted$';\r\n/**\r\n * @param {?} value\r\n * @param {?=} type\r\n * @return {?}\r\n */\r\nfunction convertValueToOutputAst(value, type) {\r\n    if (type === void 0) { type = null; }\r\n    return visitValue(value, new _ValueOutputAstTransformer(), type);\r\n}\r\nvar _ValueOutputAstTransformer = (function () {\r\n    function _ValueOutputAstTransformer() {\r\n    }\r\n    /**\r\n     * @param {?} arr\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    _ValueOutputAstTransformer.prototype.visitArray = function (arr, type) {\r\n        var _this = this;\r\n        return literalArr(arr.map(function (value) { return visitValue(value, _this, null); }), type);\r\n    };\r\n    /**\r\n     * @param {?} map\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    _ValueOutputAstTransformer.prototype.visitStringMap = function (map, type) {\r\n        var _this = this;\r\n        var /** @type {?} */ entries = [];\r\n        var /** @type {?} */ quotedSet = new Set(map && map[QUOTED_KEYS]);\r\n        Object.keys(map).forEach(function (key) {\r\n            entries.push(new LiteralMapEntry(key, visitValue(map[key], _this, null), quotedSet.has(key)));\r\n        });\r\n        return new LiteralMapExpr(entries, type);\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    _ValueOutputAstTransformer.prototype.visitPrimitive = function (value, type) { return literal(value, type); };\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    _ValueOutputAstTransformer.prototype.visitOther = function (value, type) {\r\n        if (value instanceof Expression) {\r\n            return value;\r\n        }\r\n        else {\r\n            return importExpr({ reference: value });\r\n        }\r\n    };\r\n    return _ValueOutputAstTransformer;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * This is currently not read, but will probably be used in the future.\r\n * We keep it as we already pass it through all the rigth places...\r\n */\r\nvar ComponentFactoryDependency = (function () {\r\n    /**\r\n     * @param {?} compType\r\n     */\r\n    function ComponentFactoryDependency(compType) {\r\n        this.compType = compType;\r\n    }\r\n    return ComponentFactoryDependency;\r\n}());\r\nvar NgModuleCompileResult = (function () {\r\n    /**\r\n     * @param {?} statements\r\n     * @param {?} ngModuleFactoryVar\r\n     * @param {?} dependencies\r\n     */\r\n    function NgModuleCompileResult(statements, ngModuleFactoryVar, dependencies) {\r\n        this.statements = statements;\r\n        this.ngModuleFactoryVar = ngModuleFactoryVar;\r\n        this.dependencies = dependencies;\r\n    }\r\n    return NgModuleCompileResult;\r\n}());\r\nvar NgModuleCompiler = (function () {\r\n    function NgModuleCompiler() {\r\n    }\r\n    /**\r\n     * @param {?} ngModuleMeta\r\n     * @param {?} extraProviders\r\n     * @return {?}\r\n     */\r\n    NgModuleCompiler.prototype.compile = function (ngModuleMeta, extraProviders) {\r\n        var /** @type {?} */ sourceSpan = typeSourceSpan('NgModule', ngModuleMeta.type);\r\n        var /** @type {?} */ deps = [];\r\n        var /** @type {?} */ bootstrapComponentFactories = [];\r\n        var /** @type {?} */ entryComponentFactories = ngModuleMeta.transitiveModule.entryComponents.map(function (entryComponent) {\r\n            if (ngModuleMeta.bootstrapComponents.some(function (id) { return id.reference === entryComponent.componentType; })) {\r\n                bootstrapComponentFactories.push({ reference: entryComponent.componentFactory });\r\n            }\r\n            deps.push(new ComponentFactoryDependency(entryComponent.componentType));\r\n            return { reference: entryComponent.componentFactory };\r\n        });\r\n        var /** @type {?} */ builder = new _InjectorBuilder(ngModuleMeta, entryComponentFactories, bootstrapComponentFactories, sourceSpan);\r\n        var /** @type {?} */ providerParser = new NgModuleProviderAnalyzer(ngModuleMeta, extraProviders, sourceSpan);\r\n        providerParser.parse().forEach(function (provider) { return builder.addProvider(provider); });\r\n        var /** @type {?} */ injectorClass = builder.build();\r\n        var /** @type {?} */ ngModuleFactoryVar = identifierName(ngModuleMeta.type) + \"NgFactory\";\r\n        var /** @type {?} */ ngModuleFactoryStmt = variable(ngModuleFactoryVar)\r\n            .set(importExpr(createIdentifier(Identifiers.NgModuleFactory))\r\n            .instantiate([variable(injectorClass.name), importExpr(ngModuleMeta.type)], importType(createIdentifier(Identifiers.NgModuleFactory), [/** @type {?} */ ((importType(ngModuleMeta.type)))], [TypeModifier.Const])))\r\n            .toDeclStmt(null, [StmtModifier.Final]);\r\n        var /** @type {?} */ stmts = [injectorClass, ngModuleFactoryStmt];\r\n        if (ngModuleMeta.id) {\r\n            var /** @type {?} */ registerFactoryStmt = importExpr(createIdentifier(Identifiers.RegisterModuleFactoryFn))\r\n                .callFn([literal(ngModuleMeta.id), variable(ngModuleFactoryVar)])\r\n                .toStmt();\r\n            stmts.push(registerFactoryStmt);\r\n        }\r\n        return new NgModuleCompileResult(stmts, ngModuleFactoryVar, deps);\r\n    };\r\n    return NgModuleCompiler;\r\n}());\r\nNgModuleCompiler.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nNgModuleCompiler.ctorParameters = function () { return []; };\r\nvar _InjectorBuilder = (function () {\r\n    /**\r\n     * @param {?} _ngModuleMeta\r\n     * @param {?} _entryComponentFactories\r\n     * @param {?} _bootstrapComponentFactories\r\n     * @param {?} _sourceSpan\r\n     */\r\n    function _InjectorBuilder(_ngModuleMeta, _entryComponentFactories, _bootstrapComponentFactories, _sourceSpan) {\r\n        this._ngModuleMeta = _ngModuleMeta;\r\n        this._entryComponentFactories = _entryComponentFactories;\r\n        this._bootstrapComponentFactories = _bootstrapComponentFactories;\r\n        this._sourceSpan = _sourceSpan;\r\n        this.fields = [];\r\n        this.getters = [];\r\n        this.methods = [];\r\n        this.ctorStmts = [];\r\n        this._lazyProps = new Map();\r\n        this._tokens = [];\r\n        this._instances = new Map();\r\n        this._createStmts = [];\r\n        this._destroyStmts = [];\r\n    }\r\n    /**\r\n     * @param {?} resolvedProvider\r\n     * @return {?}\r\n     */\r\n    _InjectorBuilder.prototype.addProvider = function (resolvedProvider) {\r\n        var _this = this;\r\n        var /** @type {?} */ providerValueExpressions = resolvedProvider.providers.map(function (provider) { return _this._getProviderValue(provider); });\r\n        var /** @type {?} */ propName = \"_\" + tokenName(resolvedProvider.token) + \"_\" + this._instances.size;\r\n        var /** @type {?} */ instance = this._createProviderProperty(propName, resolvedProvider, providerValueExpressions, resolvedProvider.multiProvider, resolvedProvider.eager);\r\n        if (resolvedProvider.lifecycleHooks.indexOf(ɵLifecycleHooks.OnDestroy) !== -1) {\r\n            var /** @type {?} */ callNgOnDestroy = instance.callMethod('ngOnDestroy', []);\r\n            if (!resolvedProvider.eager) {\r\n                callNgOnDestroy = ((this._lazyProps.get(instance.name))).and(callNgOnDestroy);\r\n            }\r\n            this._destroyStmts.push(callNgOnDestroy.toStmt());\r\n        }\r\n        this._tokens.push(resolvedProvider.token);\r\n        this._instances.set(tokenReference(resolvedProvider.token), instance);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _InjectorBuilder.prototype.build = function () {\r\n        var _this = this;\r\n        var /** @type {?} */ getMethodStmts = this._tokens.map(function (token) {\r\n            var /** @type {?} */ providerExpr = ((_this._instances.get(tokenReference(token))));\r\n            return new IfStmt(InjectMethodVars.token.identical(createDiTokenExpression(token)), [new ReturnStatement(providerExpr)]);\r\n        });\r\n        var /** @type {?} */ methods = [\r\n            new ClassMethod('createInternal', [], this._createStmts.concat(new ReturnStatement(/** @type {?} */ ((this._instances.get(this._ngModuleMeta.type.reference))))), importType(this._ngModuleMeta.type)),\r\n            new ClassMethod('getInternal', [\r\n                new FnParam(/** @type {?} */ ((InjectMethodVars.token.name)), DYNAMIC_TYPE),\r\n                new FnParam(/** @type {?} */ ((InjectMethodVars.notFoundResult.name)), DYNAMIC_TYPE)\r\n            ], getMethodStmts.concat([new ReturnStatement(InjectMethodVars.notFoundResult)]), DYNAMIC_TYPE),\r\n            new ClassMethod('destroyInternal', [], this._destroyStmts),\r\n        ];\r\n        var /** @type {?} */ parentArgs = [\r\n            variable(InjectorProps.parent.name),\r\n            literalArr(this._entryComponentFactories.map(function (componentFactory) { return importExpr(componentFactory); })),\r\n            literalArr(this._bootstrapComponentFactories.map(function (componentFactory) { return importExpr(componentFactory); }))\r\n        ];\r\n        var /** @type {?} */ injClassName = identifierName(this._ngModuleMeta.type) + \"Injector\";\r\n        return createClassStmt({\r\n            name: injClassName,\r\n            ctorParams: [new FnParam(InjectorProps.parent.name, importType(createIdentifier(Identifiers.Injector)))],\r\n            parent: importExpr(createIdentifier(Identifiers.NgModuleInjector), [/** @type {?} */ ((importType(this._ngModuleMeta.type)))]),\r\n            parentArgs: parentArgs,\r\n            builders: [{ methods: methods }, this]\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} provider\r\n     * @return {?}\r\n     */\r\n    _InjectorBuilder.prototype._getProviderValue = function (provider) {\r\n        var _this = this;\r\n        var /** @type {?} */ result;\r\n        if (provider.useExisting != null) {\r\n            result = this._getDependency({ token: provider.useExisting });\r\n        }\r\n        else if (provider.useFactory != null) {\r\n            var /** @type {?} */ deps = provider.deps || provider.useFactory.diDeps;\r\n            var /** @type {?} */ depsExpr = deps.map(function (dep) { return _this._getDependency(dep); });\r\n            result = importExpr(provider.useFactory).callFn(depsExpr);\r\n        }\r\n        else if (provider.useClass != null) {\r\n            var /** @type {?} */ deps = provider.deps || provider.useClass.diDeps;\r\n            var /** @type {?} */ depsExpr = deps.map(function (dep) { return _this._getDependency(dep); });\r\n            result =\r\n                importExpr(provider.useClass).instantiate(depsExpr, importType(provider.useClass));\r\n        }\r\n        else {\r\n            result = convertValueToOutputAst(provider.useValue);\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} propName\r\n     * @param {?} provider\r\n     * @param {?} providerValueExpressions\r\n     * @param {?} isMulti\r\n     * @param {?} isEager\r\n     * @return {?}\r\n     */\r\n    _InjectorBuilder.prototype._createProviderProperty = function (propName, provider, providerValueExpressions, isMulti, isEager) {\r\n        var /** @type {?} */ resolvedProviderValueExpr;\r\n        var /** @type {?} */ type;\r\n        if (isMulti) {\r\n            resolvedProviderValueExpr = literalArr(providerValueExpressions);\r\n            type = new ArrayType(DYNAMIC_TYPE);\r\n        }\r\n        else {\r\n            resolvedProviderValueExpr = providerValueExpressions[0];\r\n            type = ((providerValueExpressions[0].type));\r\n        }\r\n        if (!type) {\r\n            type = DYNAMIC_TYPE;\r\n        }\r\n        if (isEager) {\r\n            this.fields.push(new ClassField(propName, type));\r\n            this._createStmts.push(THIS_EXPR.prop(propName).set(resolvedProviderValueExpr).toStmt());\r\n        }\r\n        else {\r\n            var /** @type {?} */ internalFieldProp = THIS_EXPR.prop(\"_\" + propName);\r\n            this.fields.push(new ClassField(internalFieldProp.name, type));\r\n            // Note: Equals is important for JS so that it also checks the undefined case!\r\n            var /** @type {?} */ getterStmts = [\r\n                new IfStmt(internalFieldProp.isBlank(), [internalFieldProp.set(resolvedProviderValueExpr).toStmt()]),\r\n                new ReturnStatement(internalFieldProp)\r\n            ];\r\n            this.getters.push(new ClassGetter(propName, getterStmts, type));\r\n            this._lazyProps.set(propName, internalFieldProp);\r\n        }\r\n        return THIS_EXPR.prop(propName);\r\n    };\r\n    /**\r\n     * @param {?} dep\r\n     * @return {?}\r\n     */\r\n    _InjectorBuilder.prototype._getDependency = function (dep) {\r\n        var /** @type {?} */ result = ((null));\r\n        if (dep.isValue) {\r\n            result = literal(dep.value);\r\n        }\r\n        if (!dep.isSkipSelf) {\r\n            if (dep.token) {\r\n                if (tokenReference(dep.token) === resolveIdentifier(Identifiers.Injector)) {\r\n                    result = THIS_EXPR;\r\n                }\r\n                else if (tokenReference(dep.token) === resolveIdentifier(Identifiers.ComponentFactoryResolver)) {\r\n                    result = THIS_EXPR.prop('componentFactoryResolver');\r\n                }\r\n            }\r\n            if (!result) {\r\n                result = ((this._instances.get(tokenReference(/** @type {?} */ ((dep.token))))));\r\n            }\r\n        }\r\n        if (!result) {\r\n            var /** @type {?} */ args = [createDiTokenExpression(/** @type {?} */ ((dep.token)))];\r\n            if (dep.isOptional) {\r\n                args.push(NULL_EXPR);\r\n            }\r\n            result = InjectorProps.parent.callMethod('get', args);\r\n        }\r\n        return result;\r\n    };\r\n    return _InjectorBuilder;\r\n}());\r\n/**\r\n * @param {?} token\r\n * @return {?}\r\n */\r\nfunction createDiTokenExpression(token) {\r\n    if (token.value != null) {\r\n        return literal(token.value);\r\n    }\r\n    else {\r\n        return importExpr(/** @type {?} */ ((token.identifier)));\r\n    }\r\n}\r\nvar InjectorProps = (function () {\r\n    function InjectorProps() {\r\n    }\r\n    return InjectorProps;\r\n}());\r\nInjectorProps.parent = THIS_EXPR.prop('parent');\r\nvar InjectMethodVars = (function () {\r\n    function InjectMethodVars() {\r\n    }\r\n    return InjectMethodVars;\r\n}());\r\nInjectMethodVars.token = variable('token');\r\nInjectMethodVars.notFoundResult = variable('notFoundResult');\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n// https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit\r\nvar VERSION$1 = 3;\r\nvar JS_B64_PREFIX = '# sourceMappingURL=data:application/json;base64,';\r\nvar SourceMapGenerator = (function () {\r\n    /**\r\n     * @param {?=} file\r\n     */\r\n    function SourceMapGenerator(file) {\r\n        if (file === void 0) { file = null; }\r\n        this.file = file;\r\n        this.sourcesContent = new Map();\r\n        this.lines = [];\r\n        this.lastCol0 = 0;\r\n        this.hasMappings = false;\r\n    }\r\n    /**\r\n     * @param {?} url\r\n     * @param {?=} content\r\n     * @return {?}\r\n     */\r\n    SourceMapGenerator.prototype.addSource = function (url, content) {\r\n        if (content === void 0) { content = null; }\r\n        if (!this.sourcesContent.has(url)) {\r\n            this.sourcesContent.set(url, content);\r\n        }\r\n        return this;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SourceMapGenerator.prototype.addLine = function () {\r\n        this.lines.push([]);\r\n        this.lastCol0 = 0;\r\n        return this;\r\n    };\r\n    /**\r\n     * @param {?} col0\r\n     * @param {?=} sourceUrl\r\n     * @param {?=} sourceLine0\r\n     * @param {?=} sourceCol0\r\n     * @return {?}\r\n     */\r\n    SourceMapGenerator.prototype.addMapping = function (col0, sourceUrl, sourceLine0, sourceCol0) {\r\n        if (!this.currentLine) {\r\n            throw new Error(\"A line must be added before mappings can be added\");\r\n        }\r\n        if (sourceUrl != null && !this.sourcesContent.has(sourceUrl)) {\r\n            throw new Error(\"Unknown source file \\\"\" + sourceUrl + \"\\\"\");\r\n        }\r\n        if (col0 == null) {\r\n            throw new Error(\"The column in the generated code must be provided\");\r\n        }\r\n        if (col0 < this.lastCol0) {\r\n            throw new Error(\"Mapping should be added in output order\");\r\n        }\r\n        if (sourceUrl && (sourceLine0 == null || sourceCol0 == null)) {\r\n            throw new Error(\"The source location must be provided when a source url is provided\");\r\n        }\r\n        this.hasMappings = true;\r\n        this.lastCol0 = col0;\r\n        this.currentLine.push({ col0: col0, sourceUrl: sourceUrl, sourceLine0: sourceLine0, sourceCol0: sourceCol0 });\r\n        return this;\r\n    };\r\n    Object.defineProperty(SourceMapGenerator.prototype, \"currentLine\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this.lines.slice(-1)[0]; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SourceMapGenerator.prototype.toJSON = function () {\r\n        var _this = this;\r\n        if (!this.hasMappings) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ sourcesIndex = new Map();\r\n        var /** @type {?} */ sources = [];\r\n        var /** @type {?} */ sourcesContent = [];\r\n        Array.from(this.sourcesContent.keys()).forEach(function (url, i) {\r\n            sourcesIndex.set(url, i);\r\n            sources.push(url);\r\n            sourcesContent.push(_this.sourcesContent.get(url) || null);\r\n        });\r\n        var /** @type {?} */ mappings = '';\r\n        var /** @type {?} */ lastCol0 = 0;\r\n        var /** @type {?} */ lastSourceIndex = 0;\r\n        var /** @type {?} */ lastSourceLine0 = 0;\r\n        var /** @type {?} */ lastSourceCol0 = 0;\r\n        this.lines.forEach(function (segments) {\r\n            lastCol0 = 0;\r\n            mappings += segments\r\n                .map(function (segment) {\r\n                // zero-based starting column of the line in the generated code\r\n                var /** @type {?} */ segAsStr = toBase64VLQ(segment.col0 - lastCol0);\r\n                lastCol0 = segment.col0;\r\n                if (segment.sourceUrl != null) {\r\n                    // zero-based index into the “sources” list\r\n                    segAsStr +=\r\n                        toBase64VLQ(/** @type {?} */ ((sourcesIndex.get(segment.sourceUrl))) - lastSourceIndex);\r\n                    lastSourceIndex = ((sourcesIndex.get(segment.sourceUrl)));\r\n                    // the zero-based starting line in the original source\r\n                    segAsStr += toBase64VLQ(/** @type {?} */ ((segment.sourceLine0)) - lastSourceLine0);\r\n                    lastSourceLine0 = ((segment.sourceLine0));\r\n                    // the zero-based starting column in the original source\r\n                    segAsStr += toBase64VLQ(/** @type {?} */ ((segment.sourceCol0)) - lastSourceCol0);\r\n                    lastSourceCol0 = ((segment.sourceCol0));\r\n                }\r\n                return segAsStr;\r\n            })\r\n                .join(',');\r\n            mappings += ';';\r\n        });\r\n        mappings = mappings.slice(0, -1);\r\n        return {\r\n            'file': this.file || '',\r\n            'version': VERSION$1,\r\n            'sourceRoot': '',\r\n            'sources': sources,\r\n            'sourcesContent': sourcesContent,\r\n            'mappings': mappings,\r\n        };\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SourceMapGenerator.prototype.toJsComment = function () {\r\n        return this.hasMappings ? '//' + JS_B64_PREFIX + toBase64String(JSON.stringify(this, null, 0)) :\r\n            '';\r\n    };\r\n    return SourceMapGenerator;\r\n}());\r\n/**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction toBase64String(value) {\r\n    var /** @type {?} */ b64 = '';\r\n    value = utf8Encode(value);\r\n    for (var /** @type {?} */ i = 0; i < value.length;) {\r\n        var /** @type {?} */ i1 = value.charCodeAt(i++);\r\n        var /** @type {?} */ i2 = value.charCodeAt(i++);\r\n        var /** @type {?} */ i3 = value.charCodeAt(i++);\r\n        b64 += toBase64Digit(i1 >> 2);\r\n        b64 += toBase64Digit(((i1 & 3) << 4) | (isNaN(i2) ? 0 : i2 >> 4));\r\n        b64 += isNaN(i2) ? '=' : toBase64Digit(((i2 & 15) << 2) | (i3 >> 6));\r\n        b64 += isNaN(i2) || isNaN(i3) ? '=' : toBase64Digit(i3 & 63);\r\n    }\r\n    return b64;\r\n}\r\n/**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction toBase64VLQ(value) {\r\n    value = value < 0 ? ((-value) << 1) + 1 : value << 1;\r\n    var /** @type {?} */ out = '';\r\n    do {\r\n        var /** @type {?} */ digit = value & 31;\r\n        value = value >> 5;\r\n        if (value > 0) {\r\n            digit = digit | 32;\r\n        }\r\n        out += toBase64Digit(digit);\r\n    } while (value > 0);\r\n    return out;\r\n}\r\nvar B64_DIGITS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\r\n/**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction toBase64Digit(value) {\r\n    if (value < 0 || value >= 64) {\r\n        throw new Error(\"Can only encode value in the range [0, 63]\");\r\n    }\r\n    return B64_DIGITS[value];\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\\\|\\n|\\r|\\$/g;\r\nvar _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;\r\nvar _INDENT_WITH = '  ';\r\nvar CATCH_ERROR_VAR$1 = variable('error', null, null);\r\nvar CATCH_STACK_VAR$1 = variable('stack', null, null);\r\n/**\r\n * @abstract\r\n */\r\nvar _EmittedLine = (function () {\r\n    /**\r\n     * @param {?} indent\r\n     */\r\n    function _EmittedLine(indent) {\r\n        this.indent = indent;\r\n        this.parts = [];\r\n        this.srcSpans = [];\r\n    }\r\n    return _EmittedLine;\r\n}());\r\nvar EmitterVisitorContext = (function () {\r\n    /**\r\n     * @param {?} _exportedVars\r\n     * @param {?} _indent\r\n     */\r\n    function EmitterVisitorContext(_exportedVars, _indent) {\r\n        this._exportedVars = _exportedVars;\r\n        this._indent = _indent;\r\n        this._classes = [];\r\n        this._lines = [new _EmittedLine(_indent)];\r\n    }\r\n    /**\r\n     * @param {?} exportedVars\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.createRoot = function (exportedVars) {\r\n        return new EmitterVisitorContext(exportedVars, 0);\r\n    };\r\n    Object.defineProperty(EmitterVisitorContext.prototype, \"_currentLine\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._lines[this._lines.length - 1]; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} varName\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.isExportedVar = function (varName) { return this._exportedVars.indexOf(varName) !== -1; };\r\n    /**\r\n     * @param {?=} from\r\n     * @param {?=} lastPart\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.println = function (from, lastPart) {\r\n        if (lastPart === void 0) { lastPart = ''; }\r\n        this.print(from || null, lastPart, true);\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.lineIsEmpty = function () { return this._currentLine.parts.length === 0; };\r\n    /**\r\n     * @param {?} from\r\n     * @param {?} part\r\n     * @param {?=} newLine\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.print = function (from, part, newLine) {\r\n        if (newLine === void 0) { newLine = false; }\r\n        if (part.length > 0) {\r\n            this._currentLine.parts.push(part);\r\n            this._currentLine.srcSpans.push(from && from.sourceSpan || null);\r\n        }\r\n        if (newLine) {\r\n            this._lines.push(new _EmittedLine(this._indent));\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.removeEmptyLastLine = function () {\r\n        if (this.lineIsEmpty()) {\r\n            this._lines.pop();\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.incIndent = function () {\r\n        this._indent++;\r\n        this._currentLine.indent = this._indent;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.decIndent = function () {\r\n        this._indent--;\r\n        this._currentLine.indent = this._indent;\r\n    };\r\n    /**\r\n     * @param {?} clazz\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.pushClass = function (clazz) { this._classes.push(clazz); };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.popClass = function () { return ((this._classes.pop())); };\r\n    Object.defineProperty(EmitterVisitorContext.prototype, \"currentClass\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return this._classes.length > 0 ? this._classes[this._classes.length - 1] : null;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.toSource = function () {\r\n        return this.sourceLines\r\n            .map(function (l) { return l.parts.length > 0 ? _createIndent(l.indent) + l.parts.join('') : ''; })\r\n            .join('\\n');\r\n    };\r\n    /**\r\n     * @param {?} sourceFilePath\r\n     * @param {?} genFilePath\r\n     * @param {?=} startsAtLine\r\n     * @return {?}\r\n     */\r\n    EmitterVisitorContext.prototype.toSourceMapGenerator = function (sourceFilePath, genFilePath, startsAtLine) {\r\n        if (startsAtLine === void 0) { startsAtLine = 0; }\r\n        var /** @type {?} */ map = new SourceMapGenerator(genFilePath);\r\n        var /** @type {?} */ firstOffsetMapped = false;\r\n        var /** @type {?} */ mapFirstOffsetIfNeeded = function () {\r\n            if (!firstOffsetMapped) {\r\n                // Add a single space so that tools won't try to load the file from disk.\r\n                // Note: We are using virtual urls like `ng:///`, so we have to\r\n                // provide a content here.\r\n                map.addSource(sourceFilePath, ' ').addMapping(0, sourceFilePath, 0, 0);\r\n                firstOffsetMapped = true;\r\n            }\r\n        };\r\n        for (var /** @type {?} */ i = 0; i < startsAtLine; i++) {\r\n            map.addLine();\r\n            mapFirstOffsetIfNeeded();\r\n        }\r\n        this.sourceLines.forEach(function (line, lineIdx) {\r\n            map.addLine();\r\n            var /** @type {?} */ spans = line.srcSpans;\r\n            var /** @type {?} */ parts = line.parts;\r\n            var /** @type {?} */ col0 = line.indent * _INDENT_WITH.length;\r\n            var /** @type {?} */ spanIdx = 0;\r\n            // skip leading parts without source spans\r\n            while (spanIdx < spans.length && !spans[spanIdx]) {\r\n                col0 += parts[spanIdx].length;\r\n                spanIdx++;\r\n            }\r\n            if (spanIdx < spans.length && lineIdx === 0 && col0 === 0) {\r\n                firstOffsetMapped = true;\r\n            }\r\n            else {\r\n                mapFirstOffsetIfNeeded();\r\n            }\r\n            while (spanIdx < spans.length) {\r\n                var /** @type {?} */ span = ((spans[spanIdx]));\r\n                var /** @type {?} */ source = span.start.file;\r\n                var /** @type {?} */ sourceLine = span.start.line;\r\n                var /** @type {?} */ sourceCol = span.start.col;\r\n                map.addSource(source.url, source.content)\r\n                    .addMapping(col0, source.url, sourceLine, sourceCol);\r\n                col0 += parts[spanIdx].length;\r\n                spanIdx++;\r\n                // assign parts without span or the same span to the previous segment\r\n                while (spanIdx < spans.length && (span === spans[spanIdx] || !spans[spanIdx])) {\r\n                    col0 += parts[spanIdx].length;\r\n                    spanIdx++;\r\n                }\r\n            }\r\n        });\r\n        return map;\r\n    };\r\n    Object.defineProperty(EmitterVisitorContext.prototype, \"sourceLines\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            if (this._lines.length && this._lines[this._lines.length - 1].parts.length === 0) {\r\n                return this._lines.slice(0, -1);\r\n            }\r\n            return this._lines;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    return EmitterVisitorContext;\r\n}());\r\n/**\r\n * @abstract\r\n */\r\nvar AbstractEmitterVisitor = (function () {\r\n    /**\r\n     * @param {?} _escapeDollarInStrings\r\n     */\r\n    function AbstractEmitterVisitor(_escapeDollarInStrings) {\r\n        this._escapeDollarInStrings = _escapeDollarInStrings;\r\n    }\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitExpressionStmt = function (stmt, ctx) {\r\n        stmt.expr.visitExpression(this, ctx);\r\n        ctx.println(stmt, ';');\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitReturnStmt = function (stmt, ctx) {\r\n        ctx.print(stmt, \"return \");\r\n        stmt.value.visitExpression(this, ctx);\r\n        ctx.println(stmt, ';');\r\n        return null;\r\n    };\r\n    /**\r\n     * @abstract\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitCastExpr = function (ast, context) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitDeclareClassStmt = function (stmt, ctx) { };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitIfStmt = function (stmt, ctx) {\r\n        ctx.print(stmt, \"if (\");\r\n        stmt.condition.visitExpression(this, ctx);\r\n        ctx.print(stmt, \") {\");\r\n        var /** @type {?} */ hasElseCase = stmt.falseCase != null && stmt.falseCase.length > 0;\r\n        if (stmt.trueCase.length <= 1 && !hasElseCase) {\r\n            ctx.print(stmt, \" \");\r\n            this.visitAllStatements(stmt.trueCase, ctx);\r\n            ctx.removeEmptyLastLine();\r\n            ctx.print(stmt, \" \");\r\n        }\r\n        else {\r\n            ctx.println();\r\n            ctx.incIndent();\r\n            this.visitAllStatements(stmt.trueCase, ctx);\r\n            ctx.decIndent();\r\n            if (hasElseCase) {\r\n                ctx.println(stmt, \"} else {\");\r\n                ctx.incIndent();\r\n                this.visitAllStatements(stmt.falseCase, ctx);\r\n                ctx.decIndent();\r\n            }\r\n        }\r\n        ctx.println(stmt, \"}\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @abstract\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitTryCatchStmt = function (stmt, ctx) { };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitThrowStmt = function (stmt, ctx) {\r\n        ctx.print(stmt, \"throw \");\r\n        stmt.error.visitExpression(this, ctx);\r\n        ctx.println(stmt, \";\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitCommentStmt = function (stmt, ctx) {\r\n        var /** @type {?} */ lines = stmt.comment.split('\\n');\r\n        lines.forEach(function (line) { ctx.println(stmt, \"// \" + line); });\r\n        return null;\r\n    };\r\n    /**\r\n     * @abstract\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitDeclareVarStmt = function (stmt, ctx) { };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitWriteVarExpr = function (expr, ctx) {\r\n        var /** @type {?} */ lineWasEmpty = ctx.lineIsEmpty();\r\n        if (!lineWasEmpty) {\r\n            ctx.print(expr, '(');\r\n        }\r\n        ctx.print(expr, expr.name + \" = \");\r\n        expr.value.visitExpression(this, ctx);\r\n        if (!lineWasEmpty) {\r\n            ctx.print(expr, ')');\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitWriteKeyExpr = function (expr, ctx) {\r\n        var /** @type {?} */ lineWasEmpty = ctx.lineIsEmpty();\r\n        if (!lineWasEmpty) {\r\n            ctx.print(expr, '(');\r\n        }\r\n        expr.receiver.visitExpression(this, ctx);\r\n        ctx.print(expr, \"[\");\r\n        expr.index.visitExpression(this, ctx);\r\n        ctx.print(expr, \"] = \");\r\n        expr.value.visitExpression(this, ctx);\r\n        if (!lineWasEmpty) {\r\n            ctx.print(expr, ')');\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitWritePropExpr = function (expr, ctx) {\r\n        var /** @type {?} */ lineWasEmpty = ctx.lineIsEmpty();\r\n        if (!lineWasEmpty) {\r\n            ctx.print(expr, '(');\r\n        }\r\n        expr.receiver.visitExpression(this, ctx);\r\n        ctx.print(expr, \".\" + expr.name + \" = \");\r\n        expr.value.visitExpression(this, ctx);\r\n        if (!lineWasEmpty) {\r\n            ctx.print(expr, ')');\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitInvokeMethodExpr = function (expr, ctx) {\r\n        expr.receiver.visitExpression(this, ctx);\r\n        var /** @type {?} */ name = expr.name;\r\n        if (expr.builtin != null) {\r\n            name = this.getBuiltinMethodName(expr.builtin);\r\n            if (name == null) {\r\n                // some builtins just mean to skip the call.\r\n                return null;\r\n            }\r\n        }\r\n        ctx.print(expr, \".\" + name + \"(\");\r\n        this.visitAllExpressions(expr.args, ctx, \",\");\r\n        ctx.print(expr, \")\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @abstract\r\n     * @param {?} method\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.getBuiltinMethodName = function (method) { };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitInvokeFunctionExpr = function (expr, ctx) {\r\n        expr.fn.visitExpression(this, ctx);\r\n        ctx.print(expr, \"(\");\r\n        this.visitAllExpressions(expr.args, ctx, ',');\r\n        ctx.print(expr, \")\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitReadVarExpr = function (ast, ctx) {\r\n        var /** @type {?} */ varName = ((ast.name));\r\n        if (ast.builtin != null) {\r\n            switch (ast.builtin) {\r\n                case BuiltinVar.Super:\r\n                    varName = 'super';\r\n                    break;\r\n                case BuiltinVar.This:\r\n                    varName = 'this';\r\n                    break;\r\n                case BuiltinVar.CatchError:\r\n                    varName = ((CATCH_ERROR_VAR$1.name));\r\n                    break;\r\n                case BuiltinVar.CatchStack:\r\n                    varName = ((CATCH_STACK_VAR$1.name));\r\n                    break;\r\n                default:\r\n                    throw new Error(\"Unknown builtin variable \" + ast.builtin);\r\n            }\r\n        }\r\n        ctx.print(ast, varName);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitInstantiateExpr = function (ast, ctx) {\r\n        ctx.print(ast, \"new \");\r\n        ast.classExpr.visitExpression(this, ctx);\r\n        ctx.print(ast, \"(\");\r\n        this.visitAllExpressions(ast.args, ctx, ',');\r\n        ctx.print(ast, \")\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitLiteralExpr = function (ast, ctx) {\r\n        var /** @type {?} */ value = ast.value;\r\n        if (typeof value === 'string') {\r\n            ctx.print(ast, escapeIdentifier(value, this._escapeDollarInStrings));\r\n        }\r\n        else {\r\n            ctx.print(ast, \"\" + value);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @abstract\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitExternalExpr = function (ast, ctx) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitConditionalExpr = function (ast, ctx) {\r\n        ctx.print(ast, \"(\");\r\n        ast.condition.visitExpression(this, ctx);\r\n        ctx.print(ast, '? ');\r\n        ast.trueCase.visitExpression(this, ctx);\r\n        ctx.print(ast, ': '); /** @type {?} */\r\n        ((ast.falseCase)).visitExpression(this, ctx);\r\n        ctx.print(ast, \")\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitNotExpr = function (ast, ctx) {\r\n        ctx.print(ast, '!');\r\n        ast.condition.visitExpression(this, ctx);\r\n        return null;\r\n    };\r\n    /**\r\n     * @abstract\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitFunctionExpr = function (ast, ctx) { };\r\n    /**\r\n     * @abstract\r\n     * @param {?} stmt\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitDeclareFunctionStmt = function (stmt, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitBinaryOperatorExpr = function (ast, ctx) {\r\n        var /** @type {?} */ opStr;\r\n        switch (ast.operator) {\r\n            case BinaryOperator.Equals:\r\n                opStr = '==';\r\n                break;\r\n            case BinaryOperator.Identical:\r\n                opStr = '===';\r\n                break;\r\n            case BinaryOperator.NotEquals:\r\n                opStr = '!=';\r\n                break;\r\n            case BinaryOperator.NotIdentical:\r\n                opStr = '!==';\r\n                break;\r\n            case BinaryOperator.And:\r\n                opStr = '&&';\r\n                break;\r\n            case BinaryOperator.Or:\r\n                opStr = '||';\r\n                break;\r\n            case BinaryOperator.Plus:\r\n                opStr = '+';\r\n                break;\r\n            case BinaryOperator.Minus:\r\n                opStr = '-';\r\n                break;\r\n            case BinaryOperator.Divide:\r\n                opStr = '/';\r\n                break;\r\n            case BinaryOperator.Multiply:\r\n                opStr = '*';\r\n                break;\r\n            case BinaryOperator.Modulo:\r\n                opStr = '%';\r\n                break;\r\n            case BinaryOperator.Lower:\r\n                opStr = '<';\r\n                break;\r\n            case BinaryOperator.LowerEquals:\r\n                opStr = '<=';\r\n                break;\r\n            case BinaryOperator.Bigger:\r\n                opStr = '>';\r\n                break;\r\n            case BinaryOperator.BiggerEquals:\r\n                opStr = '>=';\r\n                break;\r\n            default:\r\n                throw new Error(\"Unknown operator \" + ast.operator);\r\n        }\r\n        ctx.print(ast, \"(\");\r\n        ast.lhs.visitExpression(this, ctx);\r\n        ctx.print(ast, \" \" + opStr + \" \");\r\n        ast.rhs.visitExpression(this, ctx);\r\n        ctx.print(ast, \")\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitReadPropExpr = function (ast, ctx) {\r\n        ast.receiver.visitExpression(this, ctx);\r\n        ctx.print(ast, \".\");\r\n        ctx.print(ast, ast.name);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitReadKeyExpr = function (ast, ctx) {\r\n        ast.receiver.visitExpression(this, ctx);\r\n        ctx.print(ast, \"[\");\r\n        ast.index.visitExpression(this, ctx);\r\n        ctx.print(ast, \"]\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitLiteralArrayExpr = function (ast, ctx) {\r\n        var /** @type {?} */ useNewLine = ast.entries.length > 1;\r\n        ctx.print(ast, \"[\", useNewLine);\r\n        ctx.incIndent();\r\n        this.visitAllExpressions(ast.entries, ctx, ',', useNewLine);\r\n        ctx.decIndent();\r\n        ctx.print(ast, \"]\", useNewLine);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitLiteralMapExpr = function (ast, ctx) {\r\n        var _this = this;\r\n        var /** @type {?} */ useNewLine = ast.entries.length > 1;\r\n        ctx.print(ast, \"{\", useNewLine);\r\n        ctx.incIndent();\r\n        this.visitAllObjects(function (entry) {\r\n            ctx.print(ast, escapeIdentifier(entry.key, _this._escapeDollarInStrings, entry.quoted) + \": \");\r\n            entry.value.visitExpression(_this, ctx);\r\n        }, ast.entries, ctx, ',', useNewLine);\r\n        ctx.decIndent();\r\n        ctx.print(ast, \"}\", useNewLine);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitCommaExpr = function (ast, ctx) {\r\n        ctx.print(ast, '(');\r\n        this.visitAllExpressions(ast.parts, ctx, ',');\r\n        ctx.print(ast, ')');\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} expressions\r\n     * @param {?} ctx\r\n     * @param {?} separator\r\n     * @param {?=} newLine\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitAllExpressions = function (expressions, ctx, separator, newLine) {\r\n        var _this = this;\r\n        if (newLine === void 0) { newLine = false; }\r\n        this.visitAllObjects(function (expr) { return expr.visitExpression(_this, ctx); }, expressions, ctx, separator, newLine);\r\n    };\r\n    /**\r\n     * @template T\r\n     * @param {?} handler\r\n     * @param {?} expressions\r\n     * @param {?} ctx\r\n     * @param {?} separator\r\n     * @param {?=} newLine\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitAllObjects = function (handler, expressions, ctx, separator, newLine) {\r\n        if (newLine === void 0) { newLine = false; }\r\n        for (var /** @type {?} */ i = 0; i < expressions.length; i++) {\r\n            if (i > 0) {\r\n                ctx.print(null, separator, newLine);\r\n            }\r\n            handler(expressions[i]);\r\n        }\r\n        if (newLine) {\r\n            ctx.println();\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} statements\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractEmitterVisitor.prototype.visitAllStatements = function (statements, ctx) {\r\n        var _this = this;\r\n        statements.forEach(function (stmt) { return stmt.visitStatement(_this, ctx); });\r\n    };\r\n    return AbstractEmitterVisitor;\r\n}());\r\n/**\r\n * @param {?} input\r\n * @param {?} escapeDollar\r\n * @param {?=} alwaysQuote\r\n * @return {?}\r\n */\r\nfunction escapeIdentifier(input, escapeDollar, alwaysQuote) {\r\n    if (alwaysQuote === void 0) { alwaysQuote = true; }\r\n    if (input == null) {\r\n        return null;\r\n    }\r\n    var /** @type {?} */ body = input.replace(_SINGLE_QUOTE_ESCAPE_STRING_RE, function () {\r\n        var match = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            match[_i] = arguments[_i];\r\n        }\r\n        if (match[0] == '$') {\r\n            return escapeDollar ? '\\\\$' : '$';\r\n        }\r\n        else if (match[0] == '\\n') {\r\n            return '\\\\n';\r\n        }\r\n        else if (match[0] == '\\r') {\r\n            return '\\\\r';\r\n        }\r\n        else {\r\n            return \"\\\\\" + match[0];\r\n        }\r\n    });\r\n    var /** @type {?} */ requiresQuotes = alwaysQuote || !_LEGAL_IDENTIFIER_RE.test(body);\r\n    return requiresQuotes ? \"'\" + body + \"'\" : body;\r\n}\r\n/**\r\n * @param {?} count\r\n * @return {?}\r\n */\r\nfunction _createIndent(count) {\r\n    var /** @type {?} */ res = '';\r\n    for (var /** @type {?} */ i = 0; i < count; i++) {\r\n        res += _INDENT_WITH;\r\n    }\r\n    return res;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _debugFilePath = '/debug/lib';\r\n/**\r\n * @param {?} ast\r\n * @return {?}\r\n */\r\nfunction debugOutputAstAsTypeScript(ast) {\r\n    var /** @type {?} */ converter = new _TsEmitterVisitor(_debugFilePath, {\r\n        /**\r\n         * @param {?} filePath\r\n         * @param {?} containingFilePath\r\n         * @return {?}\r\n         */\r\n        fileNameToModuleName: function (filePath, containingFilePath) { return filePath; },\r\n        /**\r\n         * @param {?} symbol\r\n         * @return {?}\r\n         */\r\n        getImportAs: function (symbol) { return null; },\r\n        getTypeArity: function (symbol) { return null; }\r\n    });\r\n    var /** @type {?} */ ctx = EmitterVisitorContext.createRoot([]);\r\n    var /** @type {?} */ asts = Array.isArray(ast) ? ast : [ast];\r\n    asts.forEach(function (ast) {\r\n        if (ast instanceof Statement) {\r\n            ast.visitStatement(converter, ctx);\r\n        }\r\n        else if (ast instanceof Expression) {\r\n            ast.visitExpression(converter, ctx);\r\n        }\r\n        else if (ast instanceof Type$1) {\r\n            ast.visitType(converter, ctx);\r\n        }\r\n        else {\r\n            throw new Error(\"Don't know how to print debug info for \" + ast);\r\n        }\r\n    });\r\n    return ctx.toSource();\r\n}\r\nvar TypeScriptEmitter = (function () {\r\n    /**\r\n     * @param {?} _importResolver\r\n     */\r\n    function TypeScriptEmitter(_importResolver) {\r\n        this._importResolver = _importResolver;\r\n    }\r\n    /**\r\n     * @param {?} srcFilePath\r\n     * @param {?} genFilePath\r\n     * @param {?} stmts\r\n     * @param {?} exportedVars\r\n     * @param {?=} preamble\r\n     * @return {?}\r\n     */\r\n    TypeScriptEmitter.prototype.emitStatements = function (srcFilePath, genFilePath, stmts, exportedVars, preamble) {\r\n        var _this = this;\r\n        if (preamble === void 0) { preamble = ''; }\r\n        var /** @type {?} */ converter = new _TsEmitterVisitor(genFilePath, this._importResolver);\r\n        var /** @type {?} */ ctx = EmitterVisitorContext.createRoot(exportedVars);\r\n        converter.visitAllStatements(stmts, ctx);\r\n        var /** @type {?} */ preambleLines = preamble ? preamble.split('\\n') : [];\r\n        converter.reexports.forEach(function (reexports, exportedFilePath) {\r\n            var /** @type {?} */ reexportsCode = reexports.map(function (reexport) { return reexport.name + \" as \" + reexport.as; }).join(',');\r\n            preambleLines.push(\"export {\" + reexportsCode + \"} from '\" + _this._importResolver.fileNameToModuleName(exportedFilePath, genFilePath) + \"';\");\r\n        });\r\n        converter.importsWithPrefixes.forEach(function (prefix, importedFilePath) {\r\n            // Note: can't write the real word for import as it screws up system.js auto detection...\r\n            preambleLines.push(\"imp\" +\r\n                (\"ort * as \" + prefix + \" from '\" + _this._importResolver.fileNameToModuleName(importedFilePath, genFilePath) + \"';\"));\r\n        });\r\n        var /** @type {?} */ sm = ctx.toSourceMapGenerator(srcFilePath, genFilePath, preambleLines.length).toJsComment();\r\n        var /** @type {?} */ lines = preambleLines.concat([ctx.toSource(), sm]);\r\n        if (sm) {\r\n            // always add a newline at the end, as some tools have bugs without it.\r\n            lines.push('');\r\n        }\r\n        return lines.join('\\n');\r\n    };\r\n    return TypeScriptEmitter;\r\n}());\r\nvar _TsEmitterVisitor = (function (_super) {\r\n    __extends(_TsEmitterVisitor, _super);\r\n    /**\r\n     * @param {?} _genFilePath\r\n     * @param {?} _importResolver\r\n     */\r\n    function _TsEmitterVisitor(_genFilePath, _importResolver) {\r\n        var _this = _super.call(this, false) || this;\r\n        _this._genFilePath = _genFilePath;\r\n        _this._importResolver = _importResolver;\r\n        _this.typeExpression = 0;\r\n        _this.importsWithPrefixes = new Map();\r\n        _this.reexports = new Map();\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} t\r\n     * @param {?} ctx\r\n     * @param {?=} defaultType\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitType = function (t, ctx, defaultType) {\r\n        if (defaultType === void 0) { defaultType = 'any'; }\r\n        if (t) {\r\n            this.typeExpression++;\r\n            t.visitType(this, ctx);\r\n            this.typeExpression--;\r\n        }\r\n        else {\r\n            ctx.print(null, defaultType);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitLiteralExpr = function (ast, ctx) {\r\n        var /** @type {?} */ value = ast.value;\r\n        if (value == null && ast.type != INFERRED_TYPE) {\r\n            ctx.print(ast, \"(\" + value + \" as any)\");\r\n            return null;\r\n        }\r\n        return _super.prototype.visitLiteralExpr.call(this, ast, ctx);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitLiteralArrayExpr = function (ast, ctx) {\r\n        if (ast.entries.length === 0) {\r\n            ctx.print(ast, '(');\r\n        }\r\n        var /** @type {?} */ result = _super.prototype.visitLiteralArrayExpr.call(this, ast, ctx);\r\n        if (ast.entries.length === 0) {\r\n            ctx.print(ast, ' as any[])');\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitExternalExpr = function (ast, ctx) {\r\n        this._visitIdentifier(ast.value, ast.typeParams, ctx);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitDeclareVarStmt = function (stmt, ctx) {\r\n        if (ctx.isExportedVar(stmt.name) && stmt.value instanceof ExternalExpr && !stmt.type) {\r\n            // check for a reexport\r\n            var _a = this._resolveStaticSymbol(stmt.value.value), name = _a.name, filePath = _a.filePath, members = _a.members;\r\n            if (((members)).length === 0 && filePath !== this._genFilePath) {\r\n                var /** @type {?} */ reexports = this.reexports.get(filePath);\r\n                if (!reexports) {\r\n                    reexports = [];\r\n                    this.reexports.set(filePath, reexports);\r\n                }\r\n                reexports.push({ name: name, as: stmt.name });\r\n                return null;\r\n            }\r\n        }\r\n        if (ctx.isExportedVar(stmt.name)) {\r\n            ctx.print(stmt, \"export \");\r\n        }\r\n        if (stmt.hasModifier(StmtModifier.Final)) {\r\n            ctx.print(stmt, \"const\");\r\n        }\r\n        else {\r\n            ctx.print(stmt, \"var\");\r\n        }\r\n        ctx.print(stmt, \" \" + stmt.name);\r\n        this._printColonType(stmt.type, ctx);\r\n        ctx.print(stmt, \" = \");\r\n        stmt.value.visitExpression(this, ctx);\r\n        ctx.println(stmt, \";\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitCastExpr = function (ast, ctx) {\r\n        ctx.print(ast, \"(<\"); /** @type {?} */\r\n        ((ast.type)).visitType(this, ctx);\r\n        ctx.print(ast, \">\");\r\n        ast.value.visitExpression(this, ctx);\r\n        ctx.print(ast, \")\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitInstantiateExpr = function (ast, ctx) {\r\n        ctx.print(ast, \"new \");\r\n        this.typeExpression++;\r\n        ast.classExpr.visitExpression(this, ctx);\r\n        this.typeExpression--;\r\n        ctx.print(ast, \"(\");\r\n        this.visitAllExpressions(ast.args, ctx, ',');\r\n        ctx.print(ast, \")\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitDeclareClassStmt = function (stmt, ctx) {\r\n        var _this = this;\r\n        ctx.pushClass(stmt);\r\n        if (ctx.isExportedVar(stmt.name)) {\r\n            ctx.print(stmt, \"export \");\r\n        }\r\n        ctx.print(stmt, \"class \" + stmt.name);\r\n        if (stmt.parent != null) {\r\n            ctx.print(stmt, \" extends \");\r\n            this.typeExpression++;\r\n            stmt.parent.visitExpression(this, ctx);\r\n            this.typeExpression--;\r\n        }\r\n        ctx.println(stmt, \" {\");\r\n        ctx.incIndent();\r\n        stmt.fields.forEach(function (field) { return _this._visitClassField(field, ctx); });\r\n        if (stmt.constructorMethod != null) {\r\n            this._visitClassConstructor(stmt, ctx);\r\n        }\r\n        stmt.getters.forEach(function (getter) { return _this._visitClassGetter(getter, ctx); });\r\n        stmt.methods.forEach(function (method) { return _this._visitClassMethod(method, ctx); });\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"}\");\r\n        ctx.popClass();\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} field\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype._visitClassField = function (field, ctx) {\r\n        if (field.hasModifier(StmtModifier.Private)) {\r\n            // comment out as a workaround for #10967\r\n            ctx.print(null, \"/*private*/ \");\r\n        }\r\n        ctx.print(null, field.name);\r\n        this._printColonType(field.type, ctx);\r\n        ctx.println(null, \";\");\r\n    };\r\n    /**\r\n     * @param {?} getter\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype._visitClassGetter = function (getter, ctx) {\r\n        if (getter.hasModifier(StmtModifier.Private)) {\r\n            ctx.print(null, \"private \");\r\n        }\r\n        ctx.print(null, \"get \" + getter.name + \"()\");\r\n        this._printColonType(getter.type, ctx);\r\n        ctx.println(null, \" {\");\r\n        ctx.incIndent();\r\n        this.visitAllStatements(getter.body, ctx);\r\n        ctx.decIndent();\r\n        ctx.println(null, \"}\");\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype._visitClassConstructor = function (stmt, ctx) {\r\n        ctx.print(stmt, \"constructor(\");\r\n        this._visitParams(stmt.constructorMethod.params, ctx);\r\n        ctx.println(stmt, \") {\");\r\n        ctx.incIndent();\r\n        this.visitAllStatements(stmt.constructorMethod.body, ctx);\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"}\");\r\n    };\r\n    /**\r\n     * @param {?} method\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype._visitClassMethod = function (method, ctx) {\r\n        if (method.hasModifier(StmtModifier.Private)) {\r\n            ctx.print(null, \"private \");\r\n        }\r\n        ctx.print(null, method.name + \"(\");\r\n        this._visitParams(method.params, ctx);\r\n        ctx.print(null, \")\");\r\n        this._printColonType(method.type, ctx, 'void');\r\n        ctx.println(null, \" {\");\r\n        ctx.incIndent();\r\n        this.visitAllStatements(method.body, ctx);\r\n        ctx.decIndent();\r\n        ctx.println(null, \"}\");\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitFunctionExpr = function (ast, ctx) {\r\n        ctx.print(ast, \"(\");\r\n        this._visitParams(ast.params, ctx);\r\n        ctx.print(ast, \")\");\r\n        this._printColonType(ast.type, ctx, 'void');\r\n        ctx.println(ast, \" => {\");\r\n        ctx.incIndent();\r\n        this.visitAllStatements(ast.statements, ctx);\r\n        ctx.decIndent();\r\n        ctx.print(ast, \"}\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitDeclareFunctionStmt = function (stmt, ctx) {\r\n        if (ctx.isExportedVar(stmt.name)) {\r\n            ctx.print(stmt, \"export \");\r\n        }\r\n        ctx.print(stmt, \"function \" + stmt.name + \"(\");\r\n        this._visitParams(stmt.params, ctx);\r\n        ctx.print(stmt, \")\");\r\n        this._printColonType(stmt.type, ctx, 'void');\r\n        ctx.println(stmt, \" {\");\r\n        ctx.incIndent();\r\n        this.visitAllStatements(stmt.statements, ctx);\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"}\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitTryCatchStmt = function (stmt, ctx) {\r\n        ctx.println(stmt, \"try {\");\r\n        ctx.incIndent();\r\n        this.visitAllStatements(stmt.bodyStmts, ctx);\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"} catch (\" + CATCH_ERROR_VAR$1.name + \") {\");\r\n        ctx.incIndent();\r\n        var /** @type {?} */ catchStmts = [/** @type {?} */ (CATCH_STACK_VAR$1.set(CATCH_ERROR_VAR$1.prop('stack', null)).toDeclStmt(null, [\r\n                StmtModifier.Final\r\n            ]))].concat(stmt.catchStmts);\r\n        this.visitAllStatements(catchStmts, ctx);\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"}\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitBuiltintType = function (type, ctx) {\r\n        var /** @type {?} */ typeStr;\r\n        switch (type.name) {\r\n            case BuiltinTypeName.Bool:\r\n                typeStr = 'boolean';\r\n                break;\r\n            case BuiltinTypeName.Dynamic:\r\n                typeStr = 'any';\r\n                break;\r\n            case BuiltinTypeName.Function:\r\n                typeStr = 'Function';\r\n                break;\r\n            case BuiltinTypeName.Number:\r\n                typeStr = 'number';\r\n                break;\r\n            case BuiltinTypeName.Int:\r\n                typeStr = 'number';\r\n                break;\r\n            case BuiltinTypeName.String:\r\n                typeStr = 'string';\r\n                break;\r\n            default:\r\n                throw new Error(\"Unsupported builtin type \" + type.name);\r\n        }\r\n        ctx.print(null, typeStr);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitExpressionType = function (ast, ctx) {\r\n        ast.value.visitExpression(this, ctx);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitArrayType = function (type, ctx) {\r\n        this.visitType(type.of, ctx);\r\n        ctx.print(null, \"[]\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.visitMapType = function (type, ctx) {\r\n        ctx.print(null, \"{[key: string]:\");\r\n        this.visitType(type.valueType, ctx);\r\n        ctx.print(null, \"}\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} method\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype.getBuiltinMethodName = function (method) {\r\n        var /** @type {?} */ name;\r\n        switch (method) {\r\n            case BuiltinMethod.ConcatArray:\r\n                name = 'concat';\r\n                break;\r\n            case BuiltinMethod.SubscribeObservable:\r\n                name = 'subscribe';\r\n                break;\r\n            case BuiltinMethod.Bind:\r\n                name = 'bind';\r\n                break;\r\n            default:\r\n                throw new Error(\"Unknown builtin method: \" + method);\r\n        }\r\n        return name;\r\n    };\r\n    /**\r\n     * @param {?} params\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype._visitParams = function (params, ctx) {\r\n        var _this = this;\r\n        this.visitAllObjects(function (param) {\r\n            ctx.print(null, param.name);\r\n            _this._printColonType(param.type, ctx);\r\n        }, params, ctx, ',');\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype._resolveStaticSymbol = function (value) {\r\n        var /** @type {?} */ reference = value.reference;\r\n        if (!(reference instanceof StaticSymbol)) {\r\n            throw new Error(\"Internal error: unknown identifier \" + JSON.stringify(value));\r\n        }\r\n        var /** @type {?} */ arity = this._importResolver.getTypeArity(reference) || undefined;\r\n        var /** @type {?} */ importReference = this._importResolver.getImportAs(reference) || reference;\r\n        return {\r\n            name: importReference.name,\r\n            filePath: importReference.filePath,\r\n            members: importReference.members, arity: arity\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} typeParams\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype._visitIdentifier = function (value, typeParams, ctx) {\r\n        var _this = this;\r\n        var _a = this._resolveStaticSymbol(value), name = _a.name, filePath = _a.filePath, members = _a.members, arity = _a.arity;\r\n        if (filePath != this._genFilePath) {\r\n            var /** @type {?} */ prefix = this.importsWithPrefixes.get(filePath);\r\n            if (prefix == null) {\r\n                prefix = \"import\" + this.importsWithPrefixes.size;\r\n                this.importsWithPrefixes.set(filePath, prefix);\r\n            }\r\n            ctx.print(null, prefix + \".\");\r\n        }\r\n        if (((members)).length) {\r\n            ctx.print(null, name);\r\n            ctx.print(null, '.');\r\n            ctx.print(null, /** @type {?} */ ((members)).join('.'));\r\n        }\r\n        else {\r\n            ctx.print(null, name);\r\n        }\r\n        if (this.typeExpression > 0) {\r\n            // If we are in a type expression that refers to a generic type then supply\r\n            // the required type parameters. If there were not enough type parameters\r\n            // supplied, supply any as the type. Outside a type expression the reference\r\n            // should not supply type parameters and be treated as a simple value reference\r\n            // to the constructor function itself.\r\n            var /** @type {?} */ suppliedParameters = (typeParams && typeParams.length) || 0;\r\n            var /** @type {?} */ additionalParameters = (arity || 0) - suppliedParameters;\r\n            if (suppliedParameters > 0 || additionalParameters > 0) {\r\n                ctx.print(null, \"<\");\r\n                if (suppliedParameters > 0) {\r\n                    this.visitAllObjects(function (type) { return type.visitType(_this, ctx); }, /** @type {?} */ ((typeParams)), ctx, ',');\r\n                }\r\n                if (additionalParameters > 0) {\r\n                    for (var /** @type {?} */ i = 0; i < additionalParameters; i++) {\r\n                        if (i > 0 || suppliedParameters > 0)\r\n                            ctx.print(null, ',');\r\n                        ctx.print(null, 'any');\r\n                    }\r\n                }\r\n                ctx.print(null, \">\");\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} ctx\r\n     * @param {?=} defaultType\r\n     * @return {?}\r\n     */\r\n    _TsEmitterVisitor.prototype._printColonType = function (type, ctx, defaultType) {\r\n        if (type !== INFERRED_TYPE) {\r\n            ctx.print(null, ':');\r\n            this.visitType(type, ctx, defaultType);\r\n        }\r\n    };\r\n    return _TsEmitterVisitor;\r\n}(AbstractEmitterVisitor));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n// =================================================================================================\r\n// =================================================================================================\r\n// =========== S T O P   -  S T O P   -  S T O P   -  S T O P   -  S T O P   -  S T O P  ===========\r\n// =================================================================================================\r\n// =================================================================================================\r\n//\r\n//        DO NOT EDIT THIS LIST OF SECURITY SENSITIVE PROPERTIES WITHOUT A SECURITY REVIEW!\r\n//                               Reach out to mprobst for details.\r\n//\r\n// =================================================================================================\r\n/** Map from tagName|propertyName SecurityContext. Properties applying to all tags use '*'. */\r\nvar SECURITY_SCHEMA = {};\r\n/**\r\n * @param {?} ctx\r\n * @param {?} specs\r\n * @return {?}\r\n */\r\nfunction registerContext(ctx, specs) {\r\n    for (var _i = 0, specs_1 = specs; _i < specs_1.length; _i++) {\r\n        var spec = specs_1[_i];\r\n        SECURITY_SCHEMA[spec.toLowerCase()] = ctx;\r\n    }\r\n}\r\n// Case is insignificant below, all element and attribute names are lower-cased for lookup.\r\nregisterContext(SecurityContext.HTML, [\r\n    'iframe|srcdoc',\r\n    '*|innerHTML',\r\n    '*|outerHTML',\r\n]);\r\nregisterContext(SecurityContext.STYLE, ['*|style']);\r\n// NB: no SCRIPT contexts here, they are never allowed due to the parser stripping them.\r\nregisterContext(SecurityContext.URL, [\r\n    '*|formAction', 'area|href', 'area|ping', 'audio|src', 'a|href',\r\n    'a|ping', 'blockquote|cite', 'body|background', 'del|cite', 'form|action',\r\n    'img|src', 'img|srcset', 'input|src', 'ins|cite', 'q|cite',\r\n    'source|src', 'source|srcset', 'track|src', 'video|poster', 'video|src',\r\n]);\r\nregisterContext(SecurityContext.RESOURCE_URL, [\r\n    'applet|code',\r\n    'applet|codebase',\r\n    'base|href',\r\n    'embed|src',\r\n    'frame|src',\r\n    'head|profile',\r\n    'html|manifest',\r\n    'iframe|src',\r\n    'link|href',\r\n    'media|src',\r\n    'object|codebase',\r\n    'object|data',\r\n    'script|src',\r\n]);\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar BOOLEAN = 'boolean';\r\nvar NUMBER = 'number';\r\nvar STRING = 'string';\r\nvar OBJECT = 'object';\r\n/**\r\n * This array represents the DOM schema. It encodes inheritance, properties, and events.\r\n *\r\n * ## Overview\r\n *\r\n * Each line represents one kind of element. The `element_inheritance` and properties are joined\r\n * using `element_inheritance|properties` syntax.\r\n *\r\n * ## Element Inheritance\r\n *\r\n * The `element_inheritance` can be further subdivided as `element1,element2,...^parentElement`.\r\n * Here the individual elements are separated by `,` (commas). Every element in the list\r\n * has identical properties.\r\n *\r\n * An `element` may inherit additional properties from `parentElement` If no `^parentElement` is\r\n * specified then `\"\"` (blank) element is assumed.\r\n *\r\n * NOTE: The blank element inherits from root `[Element]` element, the super element of all\r\n * elements.\r\n *\r\n * NOTE an element prefix such as `:svg:` has no special meaning to the schema.\r\n *\r\n * ## Properties\r\n *\r\n * Each element has a set of properties separated by `,` (commas). Each property can be prefixed\r\n * by a special character designating its type:\r\n *\r\n * - (no prefix): property is a string.\r\n * - `*`: property represents an event.\r\n * - `!`: property is a boolean.\r\n * - `#`: property is a number.\r\n * - `%`: property is an object.\r\n *\r\n * ## Query\r\n *\r\n * The class creates an internal squas representation which allows to easily answer the query of\r\n * if a given property exist on a given element.\r\n *\r\n * NOTE: We don't yet support querying for types or events.\r\n * NOTE: This schema is auto extracted from `schema_extractor.ts` located in the test folder,\r\n *       see dom_element_schema_registry_spec.ts\r\n */\r\n// =================================================================================================\r\n// =================================================================================================\r\n// =========== S T O P   -  S T O P   -  S T O P   -  S T O P   -  S T O P   -  S T O P  ===========\r\n// =================================================================================================\r\n// =================================================================================================\r\n//\r\n//                       DO NOT EDIT THIS DOM SCHEMA WITHOUT A SECURITY REVIEW!\r\n//\r\n// Newly added properties must be security reviewed and assigned an appropriate SecurityContext in\r\n// dom_security_schema.ts. Reach out to mprobst & rjamet for details.\r\n//\r\n// =================================================================================================\r\nvar SCHEMA = [\r\n    '[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop',\r\n    '[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate',\r\n    'abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate',\r\n    'media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume',\r\n    ':svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex',\r\n    ':svg:graphics^:svg:|',\r\n    ':svg:animation^:svg:|*begin,*end,*repeat',\r\n    ':svg:geometry^:svg:|',\r\n    ':svg:componentTransferFunction^:svg:|',\r\n    ':svg:gradient^:svg:|',\r\n    ':svg:textContent^:svg:graphics|',\r\n    ':svg:textPositioning^:svg:textContent|',\r\n    'a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username',\r\n    'area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username',\r\n    'audio^media|',\r\n    'br^[HTMLElement]|clear',\r\n    'base^[HTMLElement]|href,target',\r\n    'body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink',\r\n    'button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value',\r\n    'canvas^[HTMLElement]|#height,#width',\r\n    'content^[HTMLElement]|select',\r\n    'dl^[HTMLElement]|!compact',\r\n    'datalist^[HTMLElement]|',\r\n    'details^[HTMLElement]|!open',\r\n    'dialog^[HTMLElement]|!open,returnValue',\r\n    'dir^[HTMLElement]|!compact',\r\n    'div^[HTMLElement]|align',\r\n    'embed^[HTMLElement]|align,height,name,src,type,width',\r\n    'fieldset^[HTMLElement]|!disabled,name',\r\n    'font^[HTMLElement]|color,face,size',\r\n    'form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target',\r\n    'frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src',\r\n    'frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows',\r\n    'hr^[HTMLElement]|align,color,!noShade,size,width',\r\n    'head^[HTMLElement]|',\r\n    'h1,h2,h3,h4,h5,h6^[HTMLElement]|align',\r\n    'html^[HTMLElement]|version',\r\n    'iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width',\r\n    'img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width',\r\n    'input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width',\r\n    'keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name',\r\n    'li^[HTMLElement]|type,#value',\r\n    'label^[HTMLElement]|htmlFor',\r\n    'legend^[HTMLElement]|align',\r\n    'link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type',\r\n    'map^[HTMLElement]|name',\r\n    'marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width',\r\n    'menu^[HTMLElement]|!compact',\r\n    'meta^[HTMLElement]|content,httpEquiv,name,scheme',\r\n    'meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value',\r\n    'ins,del^[HTMLElement]|cite,dateTime',\r\n    'ol^[HTMLElement]|!compact,!reversed,#start,type',\r\n    'object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width',\r\n    'optgroup^[HTMLElement]|!disabled,label',\r\n    'option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value',\r\n    'output^[HTMLElement]|defaultValue,%htmlFor,name,value',\r\n    'p^[HTMLElement]|align',\r\n    'param^[HTMLElement]|name,type,value,valueType',\r\n    'picture^[HTMLElement]|',\r\n    'pre^[HTMLElement]|#width',\r\n    'progress^[HTMLElement]|#max,#value',\r\n    'q,blockquote,cite^[HTMLElement]|',\r\n    'script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type',\r\n    'select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',\r\n    'shadow^[HTMLElement]|',\r\n    'source^[HTMLElement]|media,sizes,src,srcset,type',\r\n    'span^[HTMLElement]|',\r\n    'style^[HTMLElement]|!disabled,media,type',\r\n    'caption^[HTMLElement]|align',\r\n    'th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width',\r\n    'col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width',\r\n    'table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width',\r\n    'tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign',\r\n    'tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign',\r\n    'template^[HTMLElement]|',\r\n    'textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap',\r\n    'title^[HTMLElement]|text',\r\n    'track^[HTMLElement]|!default,kind,label,src,srclang',\r\n    'ul^[HTMLElement]|!compact,type',\r\n    'unknown^[HTMLElement]|',\r\n    'video^media|#height,poster,#width',\r\n    ':svg:a^:svg:graphics|',\r\n    ':svg:animate^:svg:animation|',\r\n    ':svg:animateMotion^:svg:animation|',\r\n    ':svg:animateTransform^:svg:animation|',\r\n    ':svg:circle^:svg:geometry|',\r\n    ':svg:clipPath^:svg:graphics|',\r\n    ':svg:cursor^:svg:|',\r\n    ':svg:defs^:svg:graphics|',\r\n    ':svg:desc^:svg:|',\r\n    ':svg:discard^:svg:|',\r\n    ':svg:ellipse^:svg:geometry|',\r\n    ':svg:feBlend^:svg:|',\r\n    ':svg:feColorMatrix^:svg:|',\r\n    ':svg:feComponentTransfer^:svg:|',\r\n    ':svg:feComposite^:svg:|',\r\n    ':svg:feConvolveMatrix^:svg:|',\r\n    ':svg:feDiffuseLighting^:svg:|',\r\n    ':svg:feDisplacementMap^:svg:|',\r\n    ':svg:feDistantLight^:svg:|',\r\n    ':svg:feDropShadow^:svg:|',\r\n    ':svg:feFlood^:svg:|',\r\n    ':svg:feFuncA^:svg:componentTransferFunction|',\r\n    ':svg:feFuncB^:svg:componentTransferFunction|',\r\n    ':svg:feFuncG^:svg:componentTransferFunction|',\r\n    ':svg:feFuncR^:svg:componentTransferFunction|',\r\n    ':svg:feGaussianBlur^:svg:|',\r\n    ':svg:feImage^:svg:|',\r\n    ':svg:feMerge^:svg:|',\r\n    ':svg:feMergeNode^:svg:|',\r\n    ':svg:feMorphology^:svg:|',\r\n    ':svg:feOffset^:svg:|',\r\n    ':svg:fePointLight^:svg:|',\r\n    ':svg:feSpecularLighting^:svg:|',\r\n    ':svg:feSpotLight^:svg:|',\r\n    ':svg:feTile^:svg:|',\r\n    ':svg:feTurbulence^:svg:|',\r\n    ':svg:filter^:svg:|',\r\n    ':svg:foreignObject^:svg:graphics|',\r\n    ':svg:g^:svg:graphics|',\r\n    ':svg:image^:svg:graphics|',\r\n    ':svg:line^:svg:geometry|',\r\n    ':svg:linearGradient^:svg:gradient|',\r\n    ':svg:mpath^:svg:|',\r\n    ':svg:marker^:svg:|',\r\n    ':svg:mask^:svg:|',\r\n    ':svg:metadata^:svg:|',\r\n    ':svg:path^:svg:geometry|',\r\n    ':svg:pattern^:svg:|',\r\n    ':svg:polygon^:svg:geometry|',\r\n    ':svg:polyline^:svg:geometry|',\r\n    ':svg:radialGradient^:svg:gradient|',\r\n    ':svg:rect^:svg:geometry|',\r\n    ':svg:svg^:svg:graphics|#currentScale,#zoomAndPan',\r\n    ':svg:script^:svg:|type',\r\n    ':svg:set^:svg:animation|',\r\n    ':svg:stop^:svg:|',\r\n    ':svg:style^:svg:|!disabled,media,title,type',\r\n    ':svg:switch^:svg:graphics|',\r\n    ':svg:symbol^:svg:|',\r\n    ':svg:tspan^:svg:textPositioning|',\r\n    ':svg:text^:svg:textPositioning|',\r\n    ':svg:textPath^:svg:textContent|',\r\n    ':svg:title^:svg:|',\r\n    ':svg:use^:svg:graphics|',\r\n    ':svg:view^:svg:|#zoomAndPan',\r\n    'data^[HTMLElement]|value',\r\n    'menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default',\r\n    'summary^[HTMLElement]|',\r\n    'time^[HTMLElement]|dateTime',\r\n];\r\nvar _ATTR_TO_PROP = {\r\n    'class': 'className',\r\n    'for': 'htmlFor',\r\n    'formaction': 'formAction',\r\n    'innerHtml': 'innerHTML',\r\n    'readonly': 'readOnly',\r\n    'tabindex': 'tabIndex',\r\n};\r\nvar DomElementSchemaRegistry = (function (_super) {\r\n    __extends(DomElementSchemaRegistry, _super);\r\n    function DomElementSchemaRegistry() {\r\n        var _this = _super.call(this) || this;\r\n        _this._schema = {};\r\n        SCHEMA.forEach(function (encodedType) {\r\n            var type = {};\r\n            var _a = encodedType.split('|'), strType = _a[0], strProperties = _a[1];\r\n            var properties = strProperties.split(',');\r\n            var _b = strType.split('^'), typeNames = _b[0], superName = _b[1];\r\n            typeNames.split(',').forEach(function (tag) { return _this._schema[tag.toLowerCase()] = type; });\r\n            var superType = superName && _this._schema[superName.toLowerCase()];\r\n            if (superType) {\r\n                Object.keys(superType).forEach(function (prop) { type[prop] = superType[prop]; });\r\n            }\r\n            properties.forEach(function (property) {\r\n                if (property.length > 0) {\r\n                    switch (property[0]) {\r\n                        case '*':\r\n                            // We don't yet support events.\r\n                            // If ever allowing to bind to events, GO THROUGH A SECURITY REVIEW, allowing events\r\n                            // will\r\n                            // almost certainly introduce bad XSS vulnerabilities.\r\n                            // type[property.substring(1)] = EVENT;\r\n                            break;\r\n                        case '!':\r\n                            type[property.substring(1)] = BOOLEAN;\r\n                            break;\r\n                        case '#':\r\n                            type[property.substring(1)] = NUMBER;\r\n                            break;\r\n                        case '%':\r\n                            type[property.substring(1)] = OBJECT;\r\n                            break;\r\n                        default:\r\n                            type[property] = STRING;\r\n                    }\r\n                }\r\n            });\r\n        });\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} tagName\r\n     * @param {?} propName\r\n     * @param {?} schemaMetas\r\n     * @return {?}\r\n     */\r\n    DomElementSchemaRegistry.prototype.hasProperty = function (tagName, propName, schemaMetas) {\r\n        if (schemaMetas.some(function (schema) { return schema.name === NO_ERRORS_SCHEMA.name; })) {\r\n            return true;\r\n        }\r\n        if (tagName.indexOf('-') > -1) {\r\n            if (isNgContainer(tagName) || isNgContent(tagName)) {\r\n                return false;\r\n            }\r\n            if (schemaMetas.some(function (schema) { return schema.name === CUSTOM_ELEMENTS_SCHEMA.name; })) {\r\n                // Can't tell now as we don't know which properties a custom element will get\r\n                // once it is instantiated\r\n                return true;\r\n            }\r\n        }\r\n        var /** @type {?} */ elementProperties = this._schema[tagName.toLowerCase()] || this._schema['unknown'];\r\n        return !!elementProperties[propName];\r\n    };\r\n    /**\r\n     * @param {?} tagName\r\n     * @param {?} schemaMetas\r\n     * @return {?}\r\n     */\r\n    DomElementSchemaRegistry.prototype.hasElement = function (tagName, schemaMetas) {\r\n        if (schemaMetas.some(function (schema) { return schema.name === NO_ERRORS_SCHEMA.name; })) {\r\n            return true;\r\n        }\r\n        if (tagName.indexOf('-') > -1) {\r\n            if (isNgContainer(tagName) || isNgContent(tagName)) {\r\n                return true;\r\n            }\r\n            if (schemaMetas.some(function (schema) { return schema.name === CUSTOM_ELEMENTS_SCHEMA.name; })) {\r\n                // Allow any custom elements\r\n                return true;\r\n            }\r\n        }\r\n        return !!this._schema[tagName.toLowerCase()];\r\n    };\r\n    /**\r\n     * securityContext returns the security context for the given property on the given DOM tag.\r\n     *\r\n     * Tag and property name are statically known and cannot change at runtime, i.e. it is not\r\n     * possible to bind a value into a changing attribute or tag name.\r\n     *\r\n     * The filtering is white list based. All attributes in the schema above are assumed to have the\r\n     * 'NONE' security context, i.e. that they are safe inert string values. Only specific well known\r\n     * attack vectors are assigned their appropriate context.\r\n     * @param {?} tagName\r\n     * @param {?} propName\r\n     * @param {?} isAttribute\r\n     * @return {?}\r\n     */\r\n    DomElementSchemaRegistry.prototype.securityContext = function (tagName, propName, isAttribute) {\r\n        if (isAttribute) {\r\n            // NB: For security purposes, use the mapped property name, not the attribute name.\r\n            propName = this.getMappedPropName(propName);\r\n        }\r\n        // Make sure comparisons are case insensitive, so that case differences between attribute and\r\n        // property names do not have a security impact.\r\n        tagName = tagName.toLowerCase();\r\n        propName = propName.toLowerCase();\r\n        var /** @type {?} */ ctx = SECURITY_SCHEMA[tagName + '|' + propName];\r\n        if (ctx) {\r\n            return ctx;\r\n        }\r\n        ctx = SECURITY_SCHEMA['*|' + propName];\r\n        return ctx ? ctx : SecurityContext.NONE;\r\n    };\r\n    /**\r\n     * @param {?} propName\r\n     * @return {?}\r\n     */\r\n    DomElementSchemaRegistry.prototype.getMappedPropName = function (propName) { return _ATTR_TO_PROP[propName] || propName; };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DomElementSchemaRegistry.prototype.getDefaultComponentElementName = function () { return 'ng-component'; };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DomElementSchemaRegistry.prototype.validateProperty = function (name) {\r\n        if (name.toLowerCase().startsWith('on')) {\r\n            var /** @type {?} */ msg = \"Binding to event property '\" + name + \"' is disallowed for security reasons, \" +\r\n                (\"please use (\" + name.slice(2) + \")=...\") +\r\n                (\"\\nIf '\" + name + \"' is a directive input, make sure the directive is imported by the\") +\r\n                \" current module.\";\r\n            return { error: true, msg: msg };\r\n        }\r\n        else {\r\n            return { error: false };\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DomElementSchemaRegistry.prototype.validateAttribute = function (name) {\r\n        if (name.toLowerCase().startsWith('on')) {\r\n            var /** @type {?} */ msg = \"Binding to event attribute '\" + name + \"' is disallowed for security reasons, \" +\r\n                (\"please use (\" + name.slice(2) + \")=...\");\r\n            return { error: true, msg: msg };\r\n        }\r\n        else {\r\n            return { error: false };\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    DomElementSchemaRegistry.prototype.allKnownElementNames = function () { return Object.keys(this._schema); };\r\n    /**\r\n     * @param {?} propName\r\n     * @return {?}\r\n     */\r\n    DomElementSchemaRegistry.prototype.normalizeAnimationStyleProperty = function (propName) {\r\n        return dashCaseToCamelCase(propName);\r\n    };\r\n    /**\r\n     * @param {?} camelCaseProp\r\n     * @param {?} userProvidedProp\r\n     * @param {?} val\r\n     * @return {?}\r\n     */\r\n    DomElementSchemaRegistry.prototype.normalizeAnimationStyleValue = function (camelCaseProp, userProvidedProp, val) {\r\n        var /** @type {?} */ unit = '';\r\n        var /** @type {?} */ strVal = val.toString().trim();\r\n        var /** @type {?} */ errorMsg = ((null));\r\n        if (_isPixelDimensionStyle(camelCaseProp) && val !== 0 && val !== '0') {\r\n            if (typeof val === 'number') {\r\n                unit = 'px';\r\n            }\r\n            else {\r\n                var /** @type {?} */ valAndSuffixMatch = val.match(/^[+-]?[\\d\\.]+([a-z]*)$/);\r\n                if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {\r\n                    errorMsg = \"Please provide a CSS unit value for \" + userProvidedProp + \":\" + val;\r\n                }\r\n            }\r\n        }\r\n        return { error: errorMsg, value: strVal + unit };\r\n    };\r\n    return DomElementSchemaRegistry;\r\n}(ElementSchemaRegistry));\r\nDomElementSchemaRegistry.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nDomElementSchemaRegistry.ctorParameters = function () { return []; };\r\n/**\r\n * @param {?} prop\r\n * @return {?}\r\n */\r\nfunction _isPixelDimensionStyle(prop) {\r\n    switch (prop) {\r\n        case 'width':\r\n        case 'height':\r\n        case 'minWidth':\r\n        case 'minHeight':\r\n        case 'maxWidth':\r\n        case 'maxHeight':\r\n        case 'left':\r\n        case 'top':\r\n        case 'bottom':\r\n        case 'right':\r\n        case 'fontSize':\r\n        case 'outlineWidth':\r\n        case 'outlineOffset':\r\n        case 'paddingTop':\r\n        case 'paddingLeft':\r\n        case 'paddingBottom':\r\n        case 'paddingRight':\r\n        case 'marginTop':\r\n        case 'marginLeft':\r\n        case 'marginBottom':\r\n        case 'marginRight':\r\n        case 'borderRadius':\r\n        case 'borderWidth':\r\n        case 'borderTopWidth':\r\n        case 'borderLeftWidth':\r\n        case 'borderRightWidth':\r\n        case 'borderBottomWidth':\r\n        case 'textIndent':\r\n            return true;\r\n        default:\r\n            return false;\r\n    }\r\n}\r\nvar ShadowCss = (function () {\r\n    function ShadowCss() {\r\n        this.strictStyling = true;\r\n    }\r\n    /**\r\n     * @param {?} cssText\r\n     * @param {?} selector\r\n     * @param {?=} hostSelector\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype.shimCssText = function (cssText, selector, hostSelector) {\r\n        if (hostSelector === void 0) { hostSelector = ''; }\r\n        var /** @type {?} */ sourceMappingUrl = extractSourceMappingUrl(cssText);\r\n        cssText = stripComments(cssText);\r\n        cssText = this._insertDirectives(cssText);\r\n        return this._scopeCssText(cssText, selector, hostSelector) + sourceMappingUrl;\r\n    };\r\n    /**\r\n     * @param {?} cssText\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._insertDirectives = function (cssText) {\r\n        cssText = this._insertPolyfillDirectivesInCssText(cssText);\r\n        return this._insertPolyfillRulesInCssText(cssText);\r\n    };\r\n    /**\r\n     * @param {?} cssText\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._insertPolyfillDirectivesInCssText = function (cssText) {\r\n        // Difference with webcomponents.js: does not handle comments\r\n        return cssText.replace(_cssContentNextSelectorRe, function () {\r\n            var m = [];\r\n            for (var _i = 0; _i < arguments.length; _i++) {\r\n                m[_i] = arguments[_i];\r\n            }\r\n            return m[2] + '{';\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} cssText\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._insertPolyfillRulesInCssText = function (cssText) {\r\n        // Difference with webcomponents.js: does not handle comments\r\n        return cssText.replace(_cssContentRuleRe, function () {\r\n            var m = [];\r\n            for (var _i = 0; _i < arguments.length; _i++) {\r\n                m[_i] = arguments[_i];\r\n            }\r\n            var /** @type {?} */ rule = m[0].replace(m[1], '').replace(m[2], '');\r\n            return m[4] + rule;\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} cssText\r\n     * @param {?} scopeSelector\r\n     * @param {?} hostSelector\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._scopeCssText = function (cssText, scopeSelector, hostSelector) {\r\n        var /** @type {?} */ unscopedRules = this._extractUnscopedRulesFromCssText(cssText);\r\n        // replace :host and :host-context -shadowcsshost and -shadowcsshost respectively\r\n        cssText = this._insertPolyfillHostInCssText(cssText);\r\n        cssText = this._convertColonHost(cssText);\r\n        cssText = this._convertColonHostContext(cssText);\r\n        cssText = this._convertShadowDOMSelectors(cssText);\r\n        if (scopeSelector) {\r\n            cssText = this._scopeSelectors(cssText, scopeSelector, hostSelector);\r\n        }\r\n        cssText = cssText + '\\n' + unscopedRules;\r\n        return cssText.trim();\r\n    };\r\n    /**\r\n     * @param {?} cssText\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._extractUnscopedRulesFromCssText = function (cssText) {\r\n        // Difference with webcomponents.js: does not handle comments\r\n        var /** @type {?} */ r = '';\r\n        var /** @type {?} */ m;\r\n        _cssContentUnscopedRuleRe.lastIndex = 0;\r\n        while ((m = _cssContentUnscopedRuleRe.exec(cssText)) !== null) {\r\n            var /** @type {?} */ rule = m[0].replace(m[2], '').replace(m[1], m[4]);\r\n            r += rule + '\\n\\n';\r\n        }\r\n        return r;\r\n    };\r\n    /**\r\n     * @param {?} cssText\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._convertColonHost = function (cssText) {\r\n        return this._convertColonRule(cssText, _cssColonHostRe, this._colonHostPartReplacer);\r\n    };\r\n    /**\r\n     * @param {?} cssText\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._convertColonHostContext = function (cssText) {\r\n        return this._convertColonRule(cssText, _cssColonHostContextRe, this._colonHostContextPartReplacer);\r\n    };\r\n    /**\r\n     * @param {?} cssText\r\n     * @param {?} regExp\r\n     * @param {?} partReplacer\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._convertColonRule = function (cssText, regExp, partReplacer) {\r\n        // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule\r\n        return cssText.replace(regExp, function () {\r\n            var m = [];\r\n            for (var _i = 0; _i < arguments.length; _i++) {\r\n                m[_i] = arguments[_i];\r\n            }\r\n            if (m[2]) {\r\n                var /** @type {?} */ parts = m[2].split(',');\r\n                var /** @type {?} */ r = [];\r\n                for (var /** @type {?} */ i = 0; i < parts.length; i++) {\r\n                    var /** @type {?} */ p = parts[i].trim();\r\n                    if (!p)\r\n                        break;\r\n                    r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));\r\n                }\r\n                return r.join(',');\r\n            }\r\n            else {\r\n                return _polyfillHostNoCombinator + m[3];\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} host\r\n     * @param {?} part\r\n     * @param {?} suffix\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._colonHostContextPartReplacer = function (host, part, suffix) {\r\n        if (part.indexOf(_polyfillHost) > -1) {\r\n            return this._colonHostPartReplacer(host, part, suffix);\r\n        }\r\n        else {\r\n            return host + part + suffix + ', ' + part + ' ' + host + suffix;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} host\r\n     * @param {?} part\r\n     * @param {?} suffix\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._colonHostPartReplacer = function (host, part, suffix) {\r\n        return host + part.replace(_polyfillHost, '') + suffix;\r\n    };\r\n    /**\r\n     * @param {?} cssText\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._convertShadowDOMSelectors = function (cssText) {\r\n        return _shadowDOMSelectorsRe.reduce(function (result, pattern) { return result.replace(pattern, ' '); }, cssText);\r\n    };\r\n    /**\r\n     * @param {?} cssText\r\n     * @param {?} scopeSelector\r\n     * @param {?} hostSelector\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._scopeSelectors = function (cssText, scopeSelector, hostSelector) {\r\n        var _this = this;\r\n        return processRules(cssText, function (rule) {\r\n            var /** @type {?} */ selector = rule.selector;\r\n            var /** @type {?} */ content = rule.content;\r\n            if (rule.selector[0] != '@') {\r\n                selector =\r\n                    _this._scopeSelector(rule.selector, scopeSelector, hostSelector, _this.strictStyling);\r\n            }\r\n            else if (rule.selector.startsWith('@media') || rule.selector.startsWith('@supports') ||\r\n                rule.selector.startsWith('@page') || rule.selector.startsWith('@document')) {\r\n                content = _this._scopeSelectors(rule.content, scopeSelector, hostSelector);\r\n            }\r\n            return new CssRule(selector, content);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} selector\r\n     * @param {?} scopeSelector\r\n     * @param {?} hostSelector\r\n     * @param {?} strict\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._scopeSelector = function (selector, scopeSelector, hostSelector, strict) {\r\n        var _this = this;\r\n        return selector.split(',')\r\n            .map(function (part) { return part.trim().split(_shadowDeepSelectors); })\r\n            .map(function (deepParts) {\r\n            var shallowPart = deepParts[0], otherParts = deepParts.slice(1);\r\n            var /** @type {?} */ applyScope = function (shallowPart) {\r\n                if (_this._selectorNeedsScoping(shallowPart, scopeSelector)) {\r\n                    return strict ?\r\n                        _this._applyStrictSelectorScope(shallowPart, scopeSelector, hostSelector) :\r\n                        _this._applySelectorScope(shallowPart, scopeSelector, hostSelector);\r\n                }\r\n                else {\r\n                    return shallowPart;\r\n                }\r\n            };\r\n            return [applyScope(shallowPart)].concat(otherParts).join(' ');\r\n        })\r\n            .join(', ');\r\n    };\r\n    /**\r\n     * @param {?} selector\r\n     * @param {?} scopeSelector\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._selectorNeedsScoping = function (selector, scopeSelector) {\r\n        var /** @type {?} */ re = this._makeScopeMatcher(scopeSelector);\r\n        return !re.test(selector);\r\n    };\r\n    /**\r\n     * @param {?} scopeSelector\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._makeScopeMatcher = function (scopeSelector) {\r\n        var /** @type {?} */ lre = /\\[/g;\r\n        var /** @type {?} */ rre = /\\]/g;\r\n        scopeSelector = scopeSelector.replace(lre, '\\\\[').replace(rre, '\\\\]');\r\n        return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');\r\n    };\r\n    /**\r\n     * @param {?} selector\r\n     * @param {?} scopeSelector\r\n     * @param {?} hostSelector\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._applySelectorScope = function (selector, scopeSelector, hostSelector) {\r\n        // Difference from webcomponents.js: scopeSelector could not be an array\r\n        return this._applySimpleSelectorScope(selector, scopeSelector, hostSelector);\r\n    };\r\n    /**\r\n     * @param {?} selector\r\n     * @param {?} scopeSelector\r\n     * @param {?} hostSelector\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._applySimpleSelectorScope = function (selector, scopeSelector, hostSelector) {\r\n        // In Android browser, the lastIndex is not reset when the regex is used in String.replace()\r\n        _polyfillHostRe.lastIndex = 0;\r\n        if (_polyfillHostRe.test(selector)) {\r\n            var /** @type {?} */ replaceBy_1 = this.strictStyling ? \"[\" + hostSelector + \"]\" : scopeSelector;\r\n            return selector\r\n                .replace(_polyfillHostNoCombinatorRe, function (hnc, selector) {\r\n                return selector.replace(/([^:]*)(:*)(.*)/, function (_, before, colon, after) {\r\n                    return before + replaceBy_1 + colon + after;\r\n                });\r\n            })\r\n                .replace(_polyfillHostRe, replaceBy_1 + ' ');\r\n        }\r\n        return scopeSelector + ' ' + selector;\r\n    };\r\n    /**\r\n     * @param {?} selector\r\n     * @param {?} scopeSelector\r\n     * @param {?} hostSelector\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._applyStrictSelectorScope = function (selector, scopeSelector, hostSelector) {\r\n        var _this = this;\r\n        var /** @type {?} */ isRe = /\\[is=([^\\]]*)\\]/g;\r\n        scopeSelector = scopeSelector.replace(isRe, function (_) {\r\n            var parts = [];\r\n            for (var _i = 1; _i < arguments.length; _i++) {\r\n                parts[_i - 1] = arguments[_i];\r\n            }\r\n            return parts[0];\r\n        });\r\n        var /** @type {?} */ attrName = '[' + scopeSelector + ']';\r\n        var /** @type {?} */ _scopeSelectorPart = function (p) {\r\n            var /** @type {?} */ scopedP = p.trim();\r\n            if (!scopedP) {\r\n                return '';\r\n            }\r\n            if (p.indexOf(_polyfillHostNoCombinator) > -1) {\r\n                scopedP = _this._applySimpleSelectorScope(p, scopeSelector, hostSelector);\r\n            }\r\n            else {\r\n                // remove :host since it should be unnecessary\r\n                var /** @type {?} */ t = p.replace(_polyfillHostRe, '');\r\n                if (t.length > 0) {\r\n                    var /** @type {?} */ matches = t.match(/([^:]*)(:*)(.*)/);\r\n                    if (matches) {\r\n                        scopedP = matches[1] + attrName + matches[2] + matches[3];\r\n                    }\r\n                }\r\n            }\r\n            return scopedP;\r\n        };\r\n        var /** @type {?} */ safeContent = new SafeSelector(selector);\r\n        selector = safeContent.content();\r\n        var /** @type {?} */ scopedSelector = '';\r\n        var /** @type {?} */ startIndex = 0;\r\n        var /** @type {?} */ res;\r\n        var /** @type {?} */ sep = /( |>|\\+|~(?!=))\\s*/g;\r\n        var /** @type {?} */ scopeAfter = selector.indexOf(_polyfillHostNoCombinator);\r\n        while ((res = sep.exec(selector)) !== null) {\r\n            var /** @type {?} */ separator = res[1];\r\n            var /** @type {?} */ part = selector.slice(startIndex, res.index).trim();\r\n            // if a selector appears before :host-context it should not be shimmed as it\r\n            // matches on ancestor elements and not on elements in the host's shadow\r\n            var /** @type {?} */ scopedPart = startIndex >= scopeAfter ? _scopeSelectorPart(part) : part;\r\n            scopedSelector += scopedPart + \" \" + separator + \" \";\r\n            startIndex = sep.lastIndex;\r\n        }\r\n        scopedSelector += _scopeSelectorPart(selector.substring(startIndex));\r\n        // replace the placeholders with their original values\r\n        return safeContent.restore(scopedSelector);\r\n    };\r\n    /**\r\n     * @param {?} selector\r\n     * @return {?}\r\n     */\r\n    ShadowCss.prototype._insertPolyfillHostInCssText = function (selector) {\r\n        return selector.replace(_colonHostContextRe, _polyfillHostContext)\r\n            .replace(_colonHostRe, _polyfillHost);\r\n    };\r\n    return ShadowCss;\r\n}());\r\nvar SafeSelector = (function () {\r\n    /**\r\n     * @param {?} selector\r\n     */\r\n    function SafeSelector(selector) {\r\n        var _this = this;\r\n        this.placeholders = [];\r\n        this.index = 0;\r\n        // Replaces attribute selectors with placeholders.\r\n        // The WS in [attr=\"va lue\"] would otherwise be interpreted as a selector separator.\r\n        selector = selector.replace(/(\\[[^\\]]*\\])/g, function (_, keep) {\r\n            var replaceBy = \"__ph-\" + _this.index + \"__\";\r\n            _this.placeholders.push(keep);\r\n            _this.index++;\r\n            return replaceBy;\r\n        });\r\n        // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.\r\n        // WS and \"+\" would otherwise be interpreted as selector separators.\r\n        this._content = selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g, function (_, pseudo, exp) {\r\n            var replaceBy = \"__ph-\" + _this.index + \"__\";\r\n            _this.placeholders.push(exp);\r\n            _this.index++;\r\n            return pseudo + replaceBy;\r\n        });\r\n    }\r\n    ;\r\n    /**\r\n     * @param {?} content\r\n     * @return {?}\r\n     */\r\n    SafeSelector.prototype.restore = function (content) {\r\n        var _this = this;\r\n        return content.replace(/__ph-(\\d+)__/g, function (ph, index) { return _this.placeholders[+index]; });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    SafeSelector.prototype.content = function () { return this._content; };\r\n    return SafeSelector;\r\n}());\r\nvar _cssContentNextSelectorRe = /polyfill-next-selector[^}]*content:[\\s]*?(['\"])(.*?)\\1[;\\s]*}([^{]*?){/gim;\r\nvar _cssContentRuleRe = /(polyfill-rule)[^}]*(content:[\\s]*(['\"])(.*?)\\3)[;\\s]*[^}]*}/gim;\r\nvar _cssContentUnscopedRuleRe = /(polyfill-unscoped-rule)[^}]*(content:[\\s]*(['\"])(.*?)\\3)[;\\s]*[^}]*}/gim;\r\nvar _polyfillHost = '-shadowcsshost';\r\n// note: :host-context pre-processed to -shadowcsshostcontext.\r\nvar _polyfillHostContext = '-shadowcsscontext';\r\nvar _parenSuffix = ')(?:\\\\((' +\r\n    '(?:\\\\([^)(]*\\\\)|[^)(]*)+?' +\r\n    ')\\\\))?([^,{]*)';\r\nvar _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');\r\nvar _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');\r\nvar _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';\r\nvar _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\\s]*)/;\r\nvar _shadowDOMSelectorsRe = [\r\n    /::shadow/g,\r\n    /::content/g,\r\n    // Deprecated selectors\r\n    /\\/shadow-deep\\//g,\r\n    /\\/shadow\\//g,\r\n];\r\nvar _shadowDeepSelectors = /(?:>>>)|(?:\\/deep\\/)/g;\r\nvar _selectorReSuffix = '([>\\\\s~+\\[.,{:][\\\\s\\\\S]*)?$';\r\nvar _polyfillHostRe = /-shadowcsshost/gim;\r\nvar _colonHostRe = /:host/gim;\r\nvar _colonHostContextRe = /:host-context/gim;\r\nvar _commentRe = /\\/\\*\\s*[\\s\\S]*?\\*\\//g;\r\n/**\r\n * @param {?} input\r\n * @return {?}\r\n */\r\nfunction stripComments(input) {\r\n    return input.replace(_commentRe, '');\r\n}\r\n// all comments except inline source mapping\r\nvar _sourceMappingUrlRe = /\\/\\*\\s*#\\s*sourceMappingURL=[\\s\\S]+?\\*\\//;\r\n/**\r\n * @param {?} input\r\n * @return {?}\r\n */\r\nfunction extractSourceMappingUrl(input) {\r\n    var /** @type {?} */ matcher = input.match(_sourceMappingUrlRe);\r\n    return matcher ? matcher[0] : '';\r\n}\r\nvar _ruleRe = /(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;\r\nvar _curlyRe = /([{}])/g;\r\nvar OPEN_CURLY = '{';\r\nvar CLOSE_CURLY = '}';\r\nvar BLOCK_PLACEHOLDER = '%BLOCK%';\r\nvar CssRule = (function () {\r\n    /**\r\n     * @param {?} selector\r\n     * @param {?} content\r\n     */\r\n    function CssRule(selector, content) {\r\n        this.selector = selector;\r\n        this.content = content;\r\n    }\r\n    return CssRule;\r\n}());\r\n/**\r\n * @param {?} input\r\n * @param {?} ruleCallback\r\n * @return {?}\r\n */\r\nfunction processRules(input, ruleCallback) {\r\n    var /** @type {?} */ inputWithEscapedBlocks = escapeBlocks(input);\r\n    var /** @type {?} */ nextBlockIndex = 0;\r\n    return inputWithEscapedBlocks.escapedString.replace(_ruleRe, function () {\r\n        var m = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            m[_i] = arguments[_i];\r\n        }\r\n        var /** @type {?} */ selector = m[2];\r\n        var /** @type {?} */ content = '';\r\n        var /** @type {?} */ suffix = m[4];\r\n        var /** @type {?} */ contentPrefix = '';\r\n        if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {\r\n            content = inputWithEscapedBlocks.blocks[nextBlockIndex++];\r\n            suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);\r\n            contentPrefix = '{';\r\n        }\r\n        var /** @type {?} */ rule = ruleCallback(new CssRule(selector, content));\r\n        return \"\" + m[1] + rule.selector + m[3] + contentPrefix + rule.content + suffix;\r\n    });\r\n}\r\nvar StringWithEscapedBlocks = (function () {\r\n    /**\r\n     * @param {?} escapedString\r\n     * @param {?} blocks\r\n     */\r\n    function StringWithEscapedBlocks(escapedString, blocks) {\r\n        this.escapedString = escapedString;\r\n        this.blocks = blocks;\r\n    }\r\n    return StringWithEscapedBlocks;\r\n}());\r\n/**\r\n * @param {?} input\r\n * @return {?}\r\n */\r\nfunction escapeBlocks(input) {\r\n    var /** @type {?} */ inputParts = input.split(_curlyRe);\r\n    var /** @type {?} */ resultParts = [];\r\n    var /** @type {?} */ escapedBlocks = [];\r\n    var /** @type {?} */ bracketCount = 0;\r\n    var /** @type {?} */ currentBlockParts = [];\r\n    for (var /** @type {?} */ partIndex = 0; partIndex < inputParts.length; partIndex++) {\r\n        var /** @type {?} */ part = inputParts[partIndex];\r\n        if (part == CLOSE_CURLY) {\r\n            bracketCount--;\r\n        }\r\n        if (bracketCount > 0) {\r\n            currentBlockParts.push(part);\r\n        }\r\n        else {\r\n            if (currentBlockParts.length > 0) {\r\n                escapedBlocks.push(currentBlockParts.join(''));\r\n                resultParts.push(BLOCK_PLACEHOLDER);\r\n                currentBlockParts = [];\r\n            }\r\n            resultParts.push(part);\r\n        }\r\n        if (part == OPEN_CURLY) {\r\n            bracketCount++;\r\n        }\r\n    }\r\n    if (currentBlockParts.length > 0) {\r\n        escapedBlocks.push(currentBlockParts.join(''));\r\n        resultParts.push(BLOCK_PLACEHOLDER);\r\n    }\r\n    return new StringWithEscapedBlocks(resultParts.join(''), escapedBlocks);\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar COMPONENT_VARIABLE = '%COMP%';\r\nvar HOST_ATTR = \"_nghost-\" + COMPONENT_VARIABLE;\r\nvar CONTENT_ATTR = \"_ngcontent-\" + COMPONENT_VARIABLE;\r\nvar StylesCompileDependency = (function () {\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} moduleUrl\r\n     * @param {?} isShimmed\r\n     * @param {?} valuePlaceholder\r\n     */\r\n    function StylesCompileDependency(name, moduleUrl, isShimmed, valuePlaceholder) {\r\n        this.name = name;\r\n        this.moduleUrl = moduleUrl;\r\n        this.isShimmed = isShimmed;\r\n        this.valuePlaceholder = valuePlaceholder;\r\n    }\r\n    return StylesCompileDependency;\r\n}());\r\nvar StylesCompileResult = (function () {\r\n    /**\r\n     * @param {?} componentStylesheet\r\n     * @param {?} externalStylesheets\r\n     */\r\n    function StylesCompileResult(componentStylesheet, externalStylesheets) {\r\n        this.componentStylesheet = componentStylesheet;\r\n        this.externalStylesheets = externalStylesheets;\r\n    }\r\n    return StylesCompileResult;\r\n}());\r\nvar CompiledStylesheet = (function () {\r\n    /**\r\n     * @param {?} statements\r\n     * @param {?} stylesVar\r\n     * @param {?} dependencies\r\n     * @param {?} isShimmed\r\n     * @param {?} meta\r\n     */\r\n    function CompiledStylesheet(statements, stylesVar, dependencies, isShimmed, meta) {\r\n        this.statements = statements;\r\n        this.stylesVar = stylesVar;\r\n        this.dependencies = dependencies;\r\n        this.isShimmed = isShimmed;\r\n        this.meta = meta;\r\n    }\r\n    return CompiledStylesheet;\r\n}());\r\nvar StyleCompiler = (function () {\r\n    /**\r\n     * @param {?} _urlResolver\r\n     */\r\n    function StyleCompiler(_urlResolver) {\r\n        this._urlResolver = _urlResolver;\r\n        this._shadowCss = new ShadowCss();\r\n    }\r\n    /**\r\n     * @param {?} comp\r\n     * @return {?}\r\n     */\r\n    StyleCompiler.prototype.compileComponent = function (comp) {\r\n        var _this = this;\r\n        var /** @type {?} */ template = ((comp.template));\r\n        var /** @type {?} */ externalStylesheets = [];\r\n        var /** @type {?} */ componentStylesheet = this._compileStyles(comp, new CompileStylesheetMetadata({\r\n            styles: template.styles,\r\n            styleUrls: template.styleUrls,\r\n            moduleUrl: identifierModuleUrl(comp.type)\r\n        }), true);\r\n        template.externalStylesheets.forEach(function (stylesheetMeta) {\r\n            var /** @type {?} */ compiledStylesheet = _this._compileStyles(comp, stylesheetMeta, false);\r\n            externalStylesheets.push(compiledStylesheet);\r\n        });\r\n        return new StylesCompileResult(componentStylesheet, externalStylesheets);\r\n    };\r\n    /**\r\n     * @param {?} comp\r\n     * @param {?} stylesheet\r\n     * @param {?} isComponentStylesheet\r\n     * @return {?}\r\n     */\r\n    StyleCompiler.prototype._compileStyles = function (comp, stylesheet, isComponentStylesheet) {\r\n        var _this = this;\r\n        var /** @type {?} */ shim = ((comp.template)).encapsulation === ViewEncapsulation.Emulated;\r\n        var /** @type {?} */ styleExpressions = stylesheet.styles.map(function (plainStyle) { return literal(_this._shimIfNeeded(plainStyle, shim)); });\r\n        var /** @type {?} */ dependencies = [];\r\n        for (var /** @type {?} */ i = 0; i < stylesheet.styleUrls.length; i++) {\r\n            var /** @type {?} */ identifier = { reference: null };\r\n            dependencies.push(new StylesCompileDependency(getStylesVarName(null), stylesheet.styleUrls[i], shim, identifier));\r\n            styleExpressions.push(new ExternalExpr(identifier));\r\n        }\r\n        // styles variable contains plain strings and arrays of other styles arrays (recursive),\r\n        // so we set its type to dynamic.\r\n        var /** @type {?} */ stylesVar = getStylesVarName(isComponentStylesheet ? comp : null);\r\n        var /** @type {?} */ stmt = variable(stylesVar)\r\n            .set(literalArr(styleExpressions, new ArrayType(DYNAMIC_TYPE, [TypeModifier.Const])))\r\n            .toDeclStmt(null, [StmtModifier.Final]);\r\n        return new CompiledStylesheet([stmt], stylesVar, dependencies, shim, stylesheet);\r\n    };\r\n    /**\r\n     * @param {?} style\r\n     * @param {?} shim\r\n     * @return {?}\r\n     */\r\n    StyleCompiler.prototype._shimIfNeeded = function (style$$1, shim) {\r\n        return shim ? this._shadowCss.shimCssText(style$$1, CONTENT_ATTR, HOST_ATTR) : style$$1;\r\n    };\r\n    return StyleCompiler;\r\n}());\r\nStyleCompiler.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nStyleCompiler.ctorParameters = function () { return [\r\n    { type: UrlResolver, },\r\n]; };\r\n/**\r\n * @param {?} component\r\n * @return {?}\r\n */\r\nfunction getStylesVarName(component) {\r\n    var /** @type {?} */ result = \"styles\";\r\n    if (component) {\r\n        result += \"_\" + identifierName(component.type);\r\n    }\r\n    return result;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar EventHandlerVars = (function () {\r\n    function EventHandlerVars() {\r\n    }\r\n    return EventHandlerVars;\r\n}());\r\nEventHandlerVars.event = variable('$event');\r\nvar ConvertActionBindingResult = (function () {\r\n    /**\r\n     * @param {?} stmts\r\n     * @param {?} allowDefault\r\n     */\r\n    function ConvertActionBindingResult(stmts, allowDefault) {\r\n        this.stmts = stmts;\r\n        this.allowDefault = allowDefault;\r\n    }\r\n    return ConvertActionBindingResult;\r\n}());\r\n/**\r\n * Converts the given expression AST into an executable output AST, assuming the expression is\r\n * used in an action binding (e.g. an event handler).\r\n * @param {?} localResolver\r\n * @param {?} implicitReceiver\r\n * @param {?} action\r\n * @param {?} bindingId\r\n * @return {?}\r\n */\r\nfunction convertActionBinding(localResolver, implicitReceiver, action, bindingId) {\r\n    if (!localResolver) {\r\n        localResolver = new DefaultLocalResolver();\r\n    }\r\n    var /** @type {?} */ actionWithoutBuiltins = convertPropertyBindingBuiltins({\r\n        createLiteralArrayConverter: function (argCount) {\r\n            // Note: no caching for literal arrays in actions.\r\n            return function (args) { return literalArr(args); };\r\n        },\r\n        createLiteralMapConverter: function (keys) {\r\n            // Note: no caching for literal maps in actions.\r\n            return function (args) { return literalMap(/** @type {?} */ (keys.map(function (key, i) { return [key, args[i]]; }))); };\r\n        },\r\n        createPipeConverter: function (name) {\r\n            throw new Error(\"Illegal State: Actions are not allowed to contain pipes. Pipe: \" + name);\r\n        }\r\n    }, action);\r\n    var /** @type {?} */ visitor = new _AstToIrVisitor(localResolver, implicitReceiver, bindingId);\r\n    var /** @type {?} */ actionStmts = [];\r\n    flattenStatements(actionWithoutBuiltins.visit(visitor, _Mode.Statement), actionStmts);\r\n    prependTemporaryDecls(visitor.temporaryCount, bindingId, actionStmts);\r\n    var /** @type {?} */ lastIndex = actionStmts.length - 1;\r\n    var /** @type {?} */ preventDefaultVar = ((null));\r\n    if (lastIndex >= 0) {\r\n        var /** @type {?} */ lastStatement = actionStmts[lastIndex];\r\n        var /** @type {?} */ returnExpr = convertStmtIntoExpression(lastStatement);\r\n        if (returnExpr) {\r\n            // Note: We need to cast the result of the method call to dynamic,\r\n            // as it might be a void method!\r\n            preventDefaultVar = createPreventDefaultVar(bindingId);\r\n            actionStmts[lastIndex] =\r\n                preventDefaultVar.set(returnExpr.cast(DYNAMIC_TYPE).notIdentical(literal(false)))\r\n                    .toDeclStmt(null, [StmtModifier.Final]);\r\n        }\r\n    }\r\n    return new ConvertActionBindingResult(actionStmts, preventDefaultVar);\r\n}\r\n/**\r\n * @param {?} converterFactory\r\n * @param {?} ast\r\n * @return {?}\r\n */\r\nfunction convertPropertyBindingBuiltins(converterFactory, ast) {\r\n    return convertBuiltins(converterFactory, ast);\r\n}\r\nvar ConvertPropertyBindingResult = (function () {\r\n    /**\r\n     * @param {?} stmts\r\n     * @param {?} currValExpr\r\n     */\r\n    function ConvertPropertyBindingResult(stmts, currValExpr) {\r\n        this.stmts = stmts;\r\n        this.currValExpr = currValExpr;\r\n    }\r\n    return ConvertPropertyBindingResult;\r\n}());\r\n/**\r\n * Converts the given expression AST into an executable output AST, assuming the expression\r\n * is used in property binding. The expression has to be preprocessed via\r\n * `convertPropertyBindingBuiltins`.\r\n * @param {?} localResolver\r\n * @param {?} implicitReceiver\r\n * @param {?} expressionWithoutBuiltins\r\n * @param {?} bindingId\r\n * @return {?}\r\n */\r\nfunction convertPropertyBinding(localResolver, implicitReceiver, expressionWithoutBuiltins, bindingId) {\r\n    if (!localResolver) {\r\n        localResolver = new DefaultLocalResolver();\r\n    }\r\n    var /** @type {?} */ currValExpr = createCurrValueExpr(bindingId);\r\n    var /** @type {?} */ stmts = [];\r\n    var /** @type {?} */ visitor = new _AstToIrVisitor(localResolver, implicitReceiver, bindingId);\r\n    var /** @type {?} */ outputExpr = expressionWithoutBuiltins.visit(visitor, _Mode.Expression);\r\n    if (visitor.temporaryCount) {\r\n        for (var /** @type {?} */ i = 0; i < visitor.temporaryCount; i++) {\r\n            stmts.push(temporaryDeclaration(bindingId, i));\r\n        }\r\n    }\r\n    stmts.push(currValExpr.set(outputExpr).toDeclStmt(null, [StmtModifier.Final]));\r\n    return new ConvertPropertyBindingResult(stmts, currValExpr);\r\n}\r\n/**\r\n * @param {?} converterFactory\r\n * @param {?} ast\r\n * @return {?}\r\n */\r\nfunction convertBuiltins(converterFactory, ast) {\r\n    var /** @type {?} */ visitor = new _BuiltinAstConverter(converterFactory);\r\n    return ast.visit(visitor);\r\n}\r\n/**\r\n * @param {?} bindingId\r\n * @param {?} temporaryNumber\r\n * @return {?}\r\n */\r\nfunction temporaryName(bindingId, temporaryNumber) {\r\n    return \"tmp_\" + bindingId + \"_\" + temporaryNumber;\r\n}\r\n/**\r\n * @param {?} bindingId\r\n * @param {?} temporaryNumber\r\n * @return {?}\r\n */\r\nfunction temporaryDeclaration(bindingId, temporaryNumber) {\r\n    return new DeclareVarStmt(temporaryName(bindingId, temporaryNumber), NULL_EXPR);\r\n}\r\n/**\r\n * @param {?} temporaryCount\r\n * @param {?} bindingId\r\n * @param {?} statements\r\n * @return {?}\r\n */\r\nfunction prependTemporaryDecls(temporaryCount, bindingId, statements) {\r\n    for (var /** @type {?} */ i = temporaryCount - 1; i >= 0; i--) {\r\n        statements.unshift(temporaryDeclaration(bindingId, i));\r\n    }\r\n}\r\nvar _Mode = {};\r\n_Mode.Statement = 0;\r\n_Mode.Expression = 1;\r\n_Mode[_Mode.Statement] = \"Statement\";\r\n_Mode[_Mode.Expression] = \"Expression\";\r\n/**\r\n * @param {?} mode\r\n * @param {?} ast\r\n * @return {?}\r\n */\r\nfunction ensureStatementMode(mode, ast) {\r\n    if (mode !== _Mode.Statement) {\r\n        throw new Error(\"Expected a statement, but saw \" + ast);\r\n    }\r\n}\r\n/**\r\n * @param {?} mode\r\n * @param {?} ast\r\n * @return {?}\r\n */\r\nfunction ensureExpressionMode(mode, ast) {\r\n    if (mode !== _Mode.Expression) {\r\n        throw new Error(\"Expected an expression, but saw \" + ast);\r\n    }\r\n}\r\n/**\r\n * @param {?} mode\r\n * @param {?} expr\r\n * @return {?}\r\n */\r\nfunction convertToStatementIfNeeded(mode, expr) {\r\n    if (mode === _Mode.Statement) {\r\n        return expr.toStmt();\r\n    }\r\n    else {\r\n        return expr;\r\n    }\r\n}\r\nvar _BuiltinAstConverter = (function (_super) {\r\n    __extends(_BuiltinAstConverter, _super);\r\n    /**\r\n     * @param {?} _converterFactory\r\n     */\r\n    function _BuiltinAstConverter(_converterFactory) {\r\n        var _this = _super.call(this) || this;\r\n        _this._converterFactory = _converterFactory;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _BuiltinAstConverter.prototype.visitPipe = function (ast, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ args = [ast.exp].concat(ast.args).map(function (ast) { return ast.visit(_this, context); });\r\n        return new BuiltinFunctionCall(ast.span, args, this._converterFactory.createPipeConverter(ast.name, args.length));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _BuiltinAstConverter.prototype.visitLiteralArray = function (ast, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ args = ast.expressions.map(function (ast) { return ast.visit(_this, context); });\r\n        return new BuiltinFunctionCall(ast.span, args, this._converterFactory.createLiteralArrayConverter(ast.expressions.length));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    _BuiltinAstConverter.prototype.visitLiteralMap = function (ast, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ args = ast.values.map(function (ast) { return ast.visit(_this, context); });\r\n        return new BuiltinFunctionCall(ast.span, args, this._converterFactory.createLiteralMapConverter(ast.keys));\r\n    };\r\n    return _BuiltinAstConverter;\r\n}(AstTransformer));\r\nvar _AstToIrVisitor = (function () {\r\n    /**\r\n     * @param {?} _localResolver\r\n     * @param {?} _implicitReceiver\r\n     * @param {?} bindingId\r\n     */\r\n    function _AstToIrVisitor(_localResolver, _implicitReceiver, bindingId) {\r\n        this._localResolver = _localResolver;\r\n        this._implicitReceiver = _implicitReceiver;\r\n        this.bindingId = bindingId;\r\n        this._nodeMap = new Map();\r\n        this._resultMap = new Map();\r\n        this._currentTemporary = 0;\r\n        this.temporaryCount = 0;\r\n    }\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitBinary = function (ast, mode) {\r\n        var /** @type {?} */ op;\r\n        switch (ast.operation) {\r\n            case '+':\r\n                op = BinaryOperator.Plus;\r\n                break;\r\n            case '-':\r\n                op = BinaryOperator.Minus;\r\n                break;\r\n            case '*':\r\n                op = BinaryOperator.Multiply;\r\n                break;\r\n            case '/':\r\n                op = BinaryOperator.Divide;\r\n                break;\r\n            case '%':\r\n                op = BinaryOperator.Modulo;\r\n                break;\r\n            case '&&':\r\n                op = BinaryOperator.And;\r\n                break;\r\n            case '||':\r\n                op = BinaryOperator.Or;\r\n                break;\r\n            case '==':\r\n                op = BinaryOperator.Equals;\r\n                break;\r\n            case '!=':\r\n                op = BinaryOperator.NotEquals;\r\n                break;\r\n            case '===':\r\n                op = BinaryOperator.Identical;\r\n                break;\r\n            case '!==':\r\n                op = BinaryOperator.NotIdentical;\r\n                break;\r\n            case '<':\r\n                op = BinaryOperator.Lower;\r\n                break;\r\n            case '>':\r\n                op = BinaryOperator.Bigger;\r\n                break;\r\n            case '<=':\r\n                op = BinaryOperator.LowerEquals;\r\n                break;\r\n            case '>=':\r\n                op = BinaryOperator.BiggerEquals;\r\n                break;\r\n            default:\r\n                throw new Error(\"Unsupported operation \" + ast.operation);\r\n        }\r\n        return convertToStatementIfNeeded(mode, new BinaryOperatorExpr(op, this.visit(ast.left, _Mode.Expression), this.visit(ast.right, _Mode.Expression)));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitChain = function (ast, mode) {\r\n        ensureStatementMode(mode, ast);\r\n        return this.visitAll(ast.expressions, mode);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitConditional = function (ast, mode) {\r\n        var /** @type {?} */ value = this.visit(ast.condition, _Mode.Expression);\r\n        return convertToStatementIfNeeded(mode, value.conditional(this.visit(ast.trueExp, _Mode.Expression), this.visit(ast.falseExp, _Mode.Expression)));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitPipe = function (ast, mode) {\r\n        throw new Error(\"Illegal state: Pipes should have been converted into functions. Pipe: \" + ast.name);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitFunctionCall = function (ast, mode) {\r\n        var /** @type {?} */ convertedArgs = this.visitAll(ast.args, _Mode.Expression);\r\n        var /** @type {?} */ fnResult;\r\n        if (ast instanceof BuiltinFunctionCall) {\r\n            fnResult = ast.converter(convertedArgs);\r\n        }\r\n        else {\r\n            fnResult = this.visit(/** @type {?} */ ((ast.target)), _Mode.Expression).callFn(convertedArgs);\r\n        }\r\n        return convertToStatementIfNeeded(mode, fnResult);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitImplicitReceiver = function (ast, mode) {\r\n        ensureExpressionMode(mode, ast);\r\n        return this._implicitReceiver;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitInterpolation = function (ast, mode) {\r\n        ensureExpressionMode(mode, ast);\r\n        var /** @type {?} */ args = [literal(ast.expressions.length)];\r\n        for (var /** @type {?} */ i = 0; i < ast.strings.length - 1; i++) {\r\n            args.push(literal(ast.strings[i]));\r\n            args.push(this.visit(ast.expressions[i], _Mode.Expression));\r\n        }\r\n        args.push(literal(ast.strings[ast.strings.length - 1]));\r\n        return ast.expressions.length <= 9 ?\r\n            importExpr(createIdentifier(Identifiers.inlineInterpolate)).callFn(args) :\r\n            importExpr(createIdentifier(Identifiers.interpolate)).callFn([\r\n                args[0], literalArr(args.slice(1))\r\n            ]);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitKeyedRead = function (ast, mode) {\r\n        var /** @type {?} */ leftMostSafe = this.leftMostSafeNode(ast);\r\n        if (leftMostSafe) {\r\n            return this.convertSafeAccess(ast, leftMostSafe, mode);\r\n        }\r\n        else {\r\n            return convertToStatementIfNeeded(mode, this.visit(ast.obj, _Mode.Expression).key(this.visit(ast.key, _Mode.Expression)));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitKeyedWrite = function (ast, mode) {\r\n        var /** @type {?} */ obj = this.visit(ast.obj, _Mode.Expression);\r\n        var /** @type {?} */ key = this.visit(ast.key, _Mode.Expression);\r\n        var /** @type {?} */ value = this.visit(ast.value, _Mode.Expression);\r\n        return convertToStatementIfNeeded(mode, obj.key(key).set(value));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitLiteralArray = function (ast, mode) {\r\n        throw new Error(\"Illegal State: literal arrays should have been converted into functions\");\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitLiteralMap = function (ast, mode) {\r\n        throw new Error(\"Illegal State: literal maps should have been converted into functions\");\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitLiteralPrimitive = function (ast, mode) {\r\n        return convertToStatementIfNeeded(mode, literal(ast.value));\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype._getLocal = function (name) { return this._localResolver.getLocal(name); };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitMethodCall = function (ast, mode) {\r\n        var /** @type {?} */ leftMostSafe = this.leftMostSafeNode(ast);\r\n        if (leftMostSafe) {\r\n            return this.convertSafeAccess(ast, leftMostSafe, mode);\r\n        }\r\n        else {\r\n            var /** @type {?} */ args = this.visitAll(ast.args, _Mode.Expression);\r\n            var /** @type {?} */ result = null;\r\n            var /** @type {?} */ receiver = this.visit(ast.receiver, _Mode.Expression);\r\n            if (receiver === this._implicitReceiver) {\r\n                var /** @type {?} */ varExpr = this._getLocal(ast.name);\r\n                if (varExpr) {\r\n                    result = varExpr.callFn(args);\r\n                }\r\n            }\r\n            if (result == null) {\r\n                result = receiver.callMethod(ast.name, args);\r\n            }\r\n            return convertToStatementIfNeeded(mode, result);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitPrefixNot = function (ast, mode) {\r\n        return convertToStatementIfNeeded(mode, not(this.visit(ast.expression, _Mode.Expression)));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitPropertyRead = function (ast, mode) {\r\n        var /** @type {?} */ leftMostSafe = this.leftMostSafeNode(ast);\r\n        if (leftMostSafe) {\r\n            return this.convertSafeAccess(ast, leftMostSafe, mode);\r\n        }\r\n        else {\r\n            var /** @type {?} */ result = null;\r\n            var /** @type {?} */ receiver = this.visit(ast.receiver, _Mode.Expression);\r\n            if (receiver === this._implicitReceiver) {\r\n                result = this._getLocal(ast.name);\r\n            }\r\n            if (result == null) {\r\n                result = receiver.prop(ast.name);\r\n            }\r\n            return convertToStatementIfNeeded(mode, result);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitPropertyWrite = function (ast, mode) {\r\n        var /** @type {?} */ receiver = this.visit(ast.receiver, _Mode.Expression);\r\n        if (receiver === this._implicitReceiver) {\r\n            var /** @type {?} */ varExpr = this._getLocal(ast.name);\r\n            if (varExpr) {\r\n                throw new Error('Cannot assign to a reference or variable!');\r\n            }\r\n        }\r\n        return convertToStatementIfNeeded(mode, receiver.prop(ast.name).set(this.visit(ast.value, _Mode.Expression)));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitSafePropertyRead = function (ast, mode) {\r\n        return this.convertSafeAccess(ast, this.leftMostSafeNode(ast), mode);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitSafeMethodCall = function (ast, mode) {\r\n        return this.convertSafeAccess(ast, this.leftMostSafeNode(ast), mode);\r\n    };\r\n    /**\r\n     * @param {?} asts\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitAll = function (asts, mode) {\r\n        var _this = this;\r\n        return asts.map(function (ast) { return _this.visit(ast, mode); });\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visitQuote = function (ast, mode) {\r\n        throw new Error(\"Quotes are not supported for evaluation!\\n        Statement: \" + ast.uninterpretedExpression + \" located at \" + ast.location);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.visit = function (ast, mode) {\r\n        var /** @type {?} */ result = this._resultMap.get(ast);\r\n        if (result)\r\n            return result;\r\n        return (this._nodeMap.get(ast) || ast).visit(this, mode);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} leftMostSafe\r\n     * @param {?} mode\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.convertSafeAccess = function (ast, leftMostSafe, mode) {\r\n        // If the expression contains a safe access node on the left it needs to be converted to\r\n        // an expression that guards the access to the member by checking the receiver for blank. As\r\n        // execution proceeds from left to right, the left most part of the expression must be guarded\r\n        // first but, because member access is left associative, the right side of the expression is at\r\n        // the top of the AST. The desired result requires lifting a copy of the the left part of the\r\n        // expression up to test it for blank before generating the unguarded version.\r\n        // Consider, for example the following expression: a?.b.c?.d.e\r\n        // This results in the ast:\r\n        //         .\r\n        //        / \\\r\n        //       ?.   e\r\n        //      /  \\\r\n        //     .    d\r\n        //    / \\\r\n        //   ?.  c\r\n        //  /  \\\r\n        // a    b\r\n        // The following tree should be generated:\r\n        //\r\n        //        /---- ? ----\\\r\n        //       /      |      \\\r\n        //     a   /--- ? ---\\  null\r\n        //        /     |     \\\r\n        //       .      .     null\r\n        //      / \\    / \\\r\n        //     .  c   .   e\r\n        //    / \\    / \\\r\n        //   a   b  ,   d\r\n        //         / \\\r\n        //        .   c\r\n        //       / \\\r\n        //      a   b\r\n        //\r\n        // Notice that the first guard condition is the left hand of the left most safe access node\r\n        // which comes in as leftMostSafe to this routine.\r\n        var /** @type {?} */ guardedExpression = this.visit(leftMostSafe.receiver, _Mode.Expression);\r\n        var /** @type {?} */ temporary = ((undefined));\r\n        if (this.needsTemporary(leftMostSafe.receiver)) {\r\n            // If the expression has method calls or pipes then we need to save the result into a\r\n            // temporary variable to avoid calling stateful or impure code more than once.\r\n            temporary = this.allocateTemporary();\r\n            // Preserve the result in the temporary variable\r\n            guardedExpression = temporary.set(guardedExpression);\r\n            // Ensure all further references to the guarded expression refer to the temporary instead.\r\n            this._resultMap.set(leftMostSafe.receiver, temporary);\r\n        }\r\n        var /** @type {?} */ condition = guardedExpression.isBlank();\r\n        // Convert the ast to an unguarded access to the receiver's member. The map will substitute\r\n        // leftMostNode with its unguarded version in the call to `this.visit()`.\r\n        if (leftMostSafe instanceof SafeMethodCall) {\r\n            this._nodeMap.set(leftMostSafe, new MethodCall(leftMostSafe.span, leftMostSafe.receiver, leftMostSafe.name, leftMostSafe.args));\r\n        }\r\n        else {\r\n            this._nodeMap.set(leftMostSafe, new PropertyRead(leftMostSafe.span, leftMostSafe.receiver, leftMostSafe.name));\r\n        }\r\n        // Recursively convert the node now without the guarded member access.\r\n        var /** @type {?} */ access = this.visit(ast, _Mode.Expression);\r\n        // Remove the mapping. This is not strictly required as the converter only traverses each node\r\n        // once but is safer if the conversion is changed to traverse the nodes more than once.\r\n        this._nodeMap.delete(leftMostSafe);\r\n        // If we allocated a temporary, release it.\r\n        if (temporary) {\r\n            this.releaseTemporary(temporary);\r\n        }\r\n        // Produce the conditional\r\n        return convertToStatementIfNeeded(mode, condition.conditional(literal(null), access));\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.leftMostSafeNode = function (ast) {\r\n        var _this = this;\r\n        var /** @type {?} */ visit = function (visitor, ast) {\r\n            return (_this._nodeMap.get(ast) || ast).visit(visitor);\r\n        };\r\n        return ast.visit({\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitBinary: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitChain: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitConditional: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitFunctionCall: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitImplicitReceiver: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitInterpolation: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitKeyedRead: function (ast) { return visit(this, ast.obj); },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitKeyedWrite: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitLiteralArray: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitLiteralMap: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitLiteralPrimitive: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitMethodCall: function (ast) { return visit(this, ast.receiver); },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitPipe: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitPrefixNot: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitPropertyRead: function (ast) { return visit(this, ast.receiver); },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitPropertyWrite: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitQuote: function (ast) { return null; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitSafeMethodCall: function (ast) { return visit(this, ast.receiver) || ast; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitSafePropertyRead: function (ast) {\r\n                return visit(this, ast.receiver) || ast;\r\n            }\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.needsTemporary = function (ast) {\r\n        var _this = this;\r\n        var /** @type {?} */ visit = function (visitor, ast) {\r\n            return ast && (_this._nodeMap.get(ast) || ast).visit(visitor);\r\n        };\r\n        var /** @type {?} */ visitSome = function (visitor, ast) {\r\n            return ast.some(function (ast) { return visit(visitor, ast); });\r\n        };\r\n        return ast.visit({\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitBinary: function (ast) { return visit(this, ast.left) || visit(this, ast.right); },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitChain: function (ast) { return false; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitConditional: function (ast) {\r\n                return visit(this, ast.condition) || visit(this, ast.trueExp) ||\r\n                    visit(this, ast.falseExp);\r\n            },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitFunctionCall: function (ast) { return true; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitImplicitReceiver: function (ast) { return false; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitInterpolation: function (ast) { return visitSome(this, ast.expressions); },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitKeyedRead: function (ast) { return false; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitKeyedWrite: function (ast) { return false; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitLiteralArray: function (ast) { return true; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitLiteralMap: function (ast) { return true; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitLiteralPrimitive: function (ast) { return false; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitMethodCall: function (ast) { return true; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitPipe: function (ast) { return true; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitPrefixNot: function (ast) { return visit(this, ast.expression); },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitPropertyRead: function (ast) { return false; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitPropertyWrite: function (ast) { return false; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitQuote: function (ast) { return false; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitSafeMethodCall: function (ast) { return true; },\r\n            /**\r\n             * @param {?} ast\r\n             * @return {?}\r\n             */\r\n            visitSafePropertyRead: function (ast) { return false; }\r\n        });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.allocateTemporary = function () {\r\n        var /** @type {?} */ tempNumber = this._currentTemporary++;\r\n        this.temporaryCount = Math.max(this._currentTemporary, this.temporaryCount);\r\n        return new ReadVarExpr(temporaryName(this.bindingId, tempNumber));\r\n    };\r\n    /**\r\n     * @param {?} temporary\r\n     * @return {?}\r\n     */\r\n    _AstToIrVisitor.prototype.releaseTemporary = function (temporary) {\r\n        this._currentTemporary--;\r\n        if (temporary.name != temporaryName(this.bindingId, this._currentTemporary)) {\r\n            throw new Error(\"Temporary \" + temporary.name + \" released out of order\");\r\n        }\r\n    };\r\n    return _AstToIrVisitor;\r\n}());\r\n/**\r\n * @param {?} arg\r\n * @param {?} output\r\n * @return {?}\r\n */\r\nfunction flattenStatements(arg, output) {\r\n    if (Array.isArray(arg)) {\r\n        ((arg)).forEach(function (entry) { return flattenStatements(entry, output); });\r\n    }\r\n    else {\r\n        output.push(arg);\r\n    }\r\n}\r\nvar DefaultLocalResolver = (function () {\r\n    function DefaultLocalResolver() {\r\n    }\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    DefaultLocalResolver.prototype.getLocal = function (name) {\r\n        if (name === EventHandlerVars.event.name) {\r\n            return EventHandlerVars.event;\r\n        }\r\n        return null;\r\n    };\r\n    return DefaultLocalResolver;\r\n}());\r\n/**\r\n * @param {?} bindingId\r\n * @return {?}\r\n */\r\nfunction createCurrValueExpr(bindingId) {\r\n    return variable(\"currVal_\" + bindingId); // fix syntax highlighting: `\r\n}\r\n/**\r\n * @param {?} bindingId\r\n * @return {?}\r\n */\r\nfunction createPreventDefaultVar(bindingId) {\r\n    return variable(\"pd_\" + bindingId);\r\n}\r\n/**\r\n * @param {?} stmt\r\n * @return {?}\r\n */\r\nfunction convertStmtIntoExpression(stmt) {\r\n    if (stmt instanceof ExpressionStatement) {\r\n        return stmt.expr;\r\n    }\r\n    else if (stmt instanceof ReturnStatement) {\r\n        return stmt.value;\r\n    }\r\n    return null;\r\n}\r\nvar BuiltinFunctionCall = (function (_super) {\r\n    __extends(BuiltinFunctionCall, _super);\r\n    /**\r\n     * @param {?} span\r\n     * @param {?} args\r\n     * @param {?} converter\r\n     */\r\n    function BuiltinFunctionCall(span, args, converter) {\r\n        var _this = _super.call(this, span, null, args) || this;\r\n        _this.args = args;\r\n        _this.converter = converter;\r\n        return _this;\r\n    }\r\n    return BuiltinFunctionCall;\r\n}(FunctionCall));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar CLASS_ATTR$1 = 'class';\r\nvar STYLE_ATTR = 'style';\r\nvar IMPLICIT_TEMPLATE_VAR = '\\$implicit';\r\nvar ViewCompileResult = (function () {\r\n    /**\r\n     * @param {?} statements\r\n     * @param {?} viewClassVar\r\n     * @param {?} rendererTypeVar\r\n     */\r\n    function ViewCompileResult(statements, viewClassVar, rendererTypeVar) {\r\n        this.statements = statements;\r\n        this.viewClassVar = viewClassVar;\r\n        this.rendererTypeVar = rendererTypeVar;\r\n    }\r\n    return ViewCompileResult;\r\n}());\r\nvar ViewCompiler = (function () {\r\n    /**\r\n     * @param {?} _genConfigNext\r\n     * @param {?} _schemaRegistry\r\n     */\r\n    function ViewCompiler(_genConfigNext, _schemaRegistry) {\r\n        this._genConfigNext = _genConfigNext;\r\n        this._schemaRegistry = _schemaRegistry;\r\n    }\r\n    /**\r\n     * @param {?} component\r\n     * @param {?} template\r\n     * @param {?} styles\r\n     * @param {?} usedPipes\r\n     * @return {?}\r\n     */\r\n    ViewCompiler.prototype.compileComponent = function (component, template, styles, usedPipes) {\r\n        var /** @type {?} */ embeddedViewCount = 0;\r\n        var /** @type {?} */ staticQueryIds = findStaticQueryIds(template);\r\n        var /** @type {?} */ statements = [];\r\n        var /** @type {?} */ renderComponentVarName = ((undefined));\r\n        if (!component.isHost) {\r\n            var /** @type {?} */ template_1 = ((component.template));\r\n            var /** @type {?} */ customRenderData = [];\r\n            if (template_1.animations && template_1.animations.length) {\r\n                customRenderData.push(new LiteralMapEntry('animation', convertValueToOutputAst(template_1.animations), true));\r\n            }\r\n            var /** @type {?} */ renderComponentVar = variable(rendererTypeName(component.type.reference));\r\n            renderComponentVarName = ((renderComponentVar.name));\r\n            statements.push(renderComponentVar\r\n                .set(importExpr(createIdentifier(Identifiers.createRendererType2))\r\n                .callFn([new LiteralMapExpr([\r\n                    new LiteralMapEntry('encapsulation', literal(template_1.encapsulation)),\r\n                    new LiteralMapEntry('styles', styles),\r\n                    new LiteralMapEntry('data', new LiteralMapExpr(customRenderData))\r\n                ])]))\r\n                .toDeclStmt(importType(createIdentifier(Identifiers.RendererType2)), [StmtModifier.Final]));\r\n        }\r\n        var /** @type {?} */ viewBuilderFactory = function (parent) {\r\n            var /** @type {?} */ embeddedViewIndex = embeddedViewCount++;\r\n            return new ViewBuilder(parent, component, embeddedViewIndex, usedPipes, staticQueryIds, viewBuilderFactory);\r\n        };\r\n        var /** @type {?} */ visitor = viewBuilderFactory(null);\r\n        visitor.visitAll([], template);\r\n        statements.push.apply(statements, visitor.build());\r\n        return new ViewCompileResult(statements, visitor.viewName, renderComponentVarName);\r\n    };\r\n    return ViewCompiler;\r\n}());\r\nViewCompiler.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nViewCompiler.ctorParameters = function () { return [\r\n    { type: CompilerConfig, },\r\n    { type: ElementSchemaRegistry, },\r\n]; };\r\nvar LOG_VAR = variable('l');\r\nvar VIEW_VAR = variable('v');\r\nvar CHECK_VAR = variable('ck');\r\nvar COMP_VAR = variable('co');\r\nvar EVENT_NAME_VAR = variable('en');\r\nvar ALLOW_DEFAULT_VAR = variable(\"ad\");\r\nvar ViewBuilder = (function () {\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} component\r\n     * @param {?} embeddedViewIndex\r\n     * @param {?} usedPipes\r\n     * @param {?} staticQueryIds\r\n     * @param {?} viewBuilderFactory\r\n     */\r\n    function ViewBuilder(parent, component, embeddedViewIndex, usedPipes, staticQueryIds, viewBuilderFactory) {\r\n        this.parent = parent;\r\n        this.component = component;\r\n        this.embeddedViewIndex = embeddedViewIndex;\r\n        this.usedPipes = usedPipes;\r\n        this.staticQueryIds = staticQueryIds;\r\n        this.viewBuilderFactory = viewBuilderFactory;\r\n        this.nodes = [];\r\n        this.purePipeNodeIndices = Object.create(null);\r\n        this.refNodeIndices = Object.create(null);\r\n        this.variables = [];\r\n        this.children = [];\r\n        // TODO(tbosch): The old view compiler used to use an `any` type\r\n        // for the context in any embedded view. We keep this behaivor for now\r\n        // to be able to introduce the new view compiler without too many errors.\r\n        this.compType =\r\n            this.embeddedViewIndex > 0 ? DYNAMIC_TYPE : importType(this.component.type);\r\n    }\r\n    Object.defineProperty(ViewBuilder.prototype, \"viewName\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () {\r\n            return viewClassName(this.component.type.reference, this.embeddedViewIndex);\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @param {?} variables\r\n     * @param {?} astNodes\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitAll = function (variables, astNodes) {\r\n        var _this = this;\r\n        this.variables = variables;\r\n        // create the pipes for the pure pipes immediately, so that we know their indices.\r\n        if (!this.parent) {\r\n            this.usedPipes.forEach(function (pipe) {\r\n                if (pipe.pure) {\r\n                    _this.purePipeNodeIndices[pipe.name] = _this._createPipe(null, pipe);\r\n                }\r\n            });\r\n        }\r\n        if (!this.parent) {\r\n            var /** @type {?} */ queryIds_1 = staticViewQueryIds(this.staticQueryIds);\r\n            this.component.viewQueries.forEach(function (query, queryIndex) {\r\n                // Note: queries start with id 1 so we can use the number in a Bloom filter!\r\n                var /** @type {?} */ queryId = queryIndex + 1;\r\n                var /** @type {?} */ bindingType = query.first ? 0 /* First */ : 1;\r\n                var /** @type {?} */ flags = 134217728 /* TypeViewQuery */ | calcStaticDynamicQueryFlags(queryIds_1, queryId, query.first);\r\n                _this.nodes.push(function () { return ({\r\n                    sourceSpan: null,\r\n                    nodeFlags: flags,\r\n                    nodeDef: importExpr(createIdentifier(Identifiers.queryDef)).callFn([\r\n                        literal(flags), literal(queryId),\r\n                        new LiteralMapExpr([new LiteralMapEntry(query.propertyName, literal(bindingType))])\r\n                    ])\r\n                }); });\r\n            });\r\n        }\r\n        templateVisitAll(this, astNodes);\r\n        if (this.parent && (astNodes.length === 0 || needsAdditionalRootNode(astNodes))) {\r\n            // if the view is an embedded view, then we need to add an additional root node in some cases\r\n            this.nodes.push(function () { return ({\r\n                sourceSpan: null,\r\n                nodeFlags: 1 /* TypeElement */,\r\n                nodeDef: importExpr(createIdentifier(Identifiers.anchorDef)).callFn([\r\n                    literal(0 /* None */), NULL_EXPR, NULL_EXPR, literal(0)\r\n                ])\r\n            }); });\r\n        }\r\n    };\r\n    /**\r\n     * @param {?=} targetStatements\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.build = function (targetStatements) {\r\n        if (targetStatements === void 0) { targetStatements = []; }\r\n        this.children.forEach(function (child) { return child.build(targetStatements); });\r\n        var _a = this._createNodeExpressions(), updateRendererStmts = _a.updateRendererStmts, updateDirectivesStmts = _a.updateDirectivesStmts, nodeDefExprs = _a.nodeDefExprs;\r\n        var /** @type {?} */ updateRendererFn = this._createUpdateFn(updateRendererStmts);\r\n        var /** @type {?} */ updateDirectivesFn = this._createUpdateFn(updateDirectivesStmts);\r\n        var /** @type {?} */ viewFlags = 0;\r\n        if (!this.parent && this.component.changeDetection === ChangeDetectionStrategy.OnPush) {\r\n            viewFlags |= 2 /* OnPush */;\r\n        }\r\n        var /** @type {?} */ viewFactory = new DeclareFunctionStmt(this.viewName, [new FnParam(/** @type {?} */ ((LOG_VAR.name)))], [new ReturnStatement(importExpr(createIdentifier(Identifiers.viewDef)).callFn([\r\n                literal(viewFlags),\r\n                literalArr(nodeDefExprs),\r\n                updateDirectivesFn,\r\n                updateRendererFn,\r\n            ]))], importType(createIdentifier(Identifiers.ViewDefinition)));\r\n        targetStatements.push(viewFactory);\r\n        return targetStatements;\r\n    };\r\n    /**\r\n     * @param {?} updateStmts\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype._createUpdateFn = function (updateStmts) {\r\n        var /** @type {?} */ updateFn;\r\n        if (updateStmts.length > 0) {\r\n            var /** @type {?} */ preStmts = [];\r\n            if (!this.component.isHost && findReadVarNames(updateStmts).has(/** @type {?} */ ((COMP_VAR.name)))) {\r\n                preStmts.push(COMP_VAR.set(VIEW_VAR.prop('component')).toDeclStmt(this.compType));\r\n            }\r\n            updateFn = fn([\r\n                new FnParam(/** @type {?} */ ((CHECK_VAR.name)), INFERRED_TYPE),\r\n                new FnParam(/** @type {?} */ ((VIEW_VAR.name)), INFERRED_TYPE)\r\n            ], preStmts.concat(updateStmts), INFERRED_TYPE);\r\n        }\r\n        else {\r\n            updateFn = NULL_EXPR;\r\n        }\r\n        return updateFn;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitNgContent = function (ast, context) {\r\n        // ngContentDef(ngContentIndex: number, index: number): NodeDef;\r\n        this.nodes.push(function () { return ({\r\n            sourceSpan: ast.sourceSpan,\r\n            nodeFlags: 8 /* TypeNgContent */,\r\n            nodeDef: importExpr(createIdentifier(Identifiers.ngContentDef)).callFn([\r\n                literal(ast.ngContentIndex), literal(ast.index)\r\n            ])\r\n        }); });\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitText = function (ast, context) {\r\n        // textDef(ngContentIndex: number, constants: string[]): NodeDef;\r\n        this.nodes.push(function () { return ({\r\n            sourceSpan: ast.sourceSpan,\r\n            nodeFlags: 2 /* TypeText */,\r\n            nodeDef: importExpr(createIdentifier(Identifiers.textDef)).callFn([\r\n                literal(ast.ngContentIndex), literalArr([literal(ast.value)])\r\n            ])\r\n        }); });\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitBoundText = function (ast, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ nodeIndex = this.nodes.length;\r\n        // reserve the space in the nodeDefs array\r\n        this.nodes.push(/** @type {?} */ ((null)));\r\n        var /** @type {?} */ astWithSource = (ast.value);\r\n        var /** @type {?} */ inter = (astWithSource.ast);\r\n        var /** @type {?} */ updateRendererExpressions = inter.expressions.map(function (expr, bindingIndex) { return _this._preprocessUpdateExpression({ nodeIndex: nodeIndex, bindingIndex: bindingIndex, sourceSpan: ast.sourceSpan, context: COMP_VAR, value: expr }); });\r\n        // textDef(ngContentIndex: number, constants: string[]): NodeDef;\r\n        this.nodes[nodeIndex] = function () { return ({\r\n            sourceSpan: ast.sourceSpan,\r\n            nodeFlags: 2 /* TypeText */,\r\n            nodeDef: importExpr(createIdentifier(Identifiers.textDef)).callFn([\r\n                literal(ast.ngContentIndex), literalArr(inter.strings.map(function (s) { return literal(s); }))\r\n            ]),\r\n            updateRenderer: updateRendererExpressions\r\n        }); };\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitEmbeddedTemplate = function (ast, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ nodeIndex = this.nodes.length;\r\n        // reserve the space in the nodeDefs array\r\n        this.nodes.push(/** @type {?} */ ((null)));\r\n        var _a = this._visitElementOrTemplate(nodeIndex, ast), flags = _a.flags, queryMatchesExpr = _a.queryMatchesExpr, hostEvents = _a.hostEvents;\r\n        var /** @type {?} */ childVisitor = this.viewBuilderFactory(this);\r\n        this.children.push(childVisitor);\r\n        childVisitor.visitAll(ast.variables, ast.children);\r\n        var /** @type {?} */ childCount = this.nodes.length - nodeIndex - 1;\r\n        // anchorDef(\r\n        //   flags: NodeFlags, matchedQueries: [string, QueryValueType][], ngContentIndex: number,\r\n        //   childCount: number, handleEventFn?: ElementHandleEventFn, templateFactory?:\r\n        //   ViewDefinitionFactory): NodeDef;\r\n        this.nodes[nodeIndex] = function () { return ({\r\n            sourceSpan: ast.sourceSpan,\r\n            nodeFlags: 1 /* TypeElement */ | flags,\r\n            nodeDef: importExpr(createIdentifier(Identifiers.anchorDef)).callFn([\r\n                literal(flags),\r\n                queryMatchesExpr,\r\n                literal(ast.ngContentIndex),\r\n                literal(childCount),\r\n                _this._createElementHandleEventFn(nodeIndex, hostEvents),\r\n                variable(childVisitor.viewName),\r\n            ])\r\n        }); };\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitElement = function (ast, context) {\r\n        var _this = this;\r\n        var /** @type {?} */ nodeIndex = this.nodes.length;\r\n        // reserve the space in the nodeDefs array so we can add children\r\n        this.nodes.push(/** @type {?} */ ((null)));\r\n        // Using a null element name creates an anchor.\r\n        var /** @type {?} */ elName = isNgContainer(ast.name) ? null : ast.name;\r\n        var _a = this._visitElementOrTemplate(nodeIndex, ast), flags = _a.flags, usedEvents = _a.usedEvents, queryMatchesExpr = _a.queryMatchesExpr, dirHostBindings = _a.hostBindings, hostEvents = _a.hostEvents;\r\n        var /** @type {?} */ inputDefs = [];\r\n        var /** @type {?} */ updateRendererExpressions = [];\r\n        var /** @type {?} */ outputDefs = [];\r\n        if (elName) {\r\n            var /** @type {?} */ hostBindings = ast.inputs\r\n                .map(function (inputAst) { return ({\r\n                context: /** @type {?} */ (COMP_VAR),\r\n                inputAst: inputAst,\r\n                dirAst: /** @type {?} */ (null),\r\n            }); })\r\n                .concat(dirHostBindings);\r\n            if (hostBindings.length) {\r\n                updateRendererExpressions =\r\n                    hostBindings.map(function (hostBinding, bindingIndex) { return _this._preprocessUpdateExpression({\r\n                        context: hostBinding.context,\r\n                        nodeIndex: nodeIndex,\r\n                        bindingIndex: bindingIndex,\r\n                        sourceSpan: hostBinding.inputAst.sourceSpan,\r\n                        value: hostBinding.inputAst.value\r\n                    }); });\r\n                inputDefs = hostBindings.map(function (hostBinding) { return elementBindingDef(hostBinding.inputAst, hostBinding.dirAst); });\r\n            }\r\n            outputDefs = usedEvents.map(function (_a) {\r\n                var target = _a[0], eventName = _a[1];\r\n                return literalArr([literal(target), literal(eventName)]);\r\n            });\r\n        }\r\n        templateVisitAll(this, ast.children);\r\n        var /** @type {?} */ childCount = this.nodes.length - nodeIndex - 1;\r\n        var /** @type {?} */ compAst = ast.directives.find(function (dirAst) { return dirAst.directive.isComponent; });\r\n        var /** @type {?} */ compRendererType = NULL_EXPR;\r\n        var /** @type {?} */ compView = NULL_EXPR;\r\n        if (compAst) {\r\n            compView = importExpr({ reference: compAst.directive.componentViewType });\r\n            compRendererType = importExpr({ reference: compAst.directive.rendererType });\r\n        }\r\n        // elementDef(\r\n        //   flags: NodeFlags, matchedQueriesDsl: [string | number, QueryValueType][],\r\n        //   ngContentIndex: number, childCount: number, namespaceAndName: string,\r\n        //   fixedAttrs: [string, string][] = [],\r\n        //   bindings?: [BindingFlags, string, string | SecurityContext][],\r\n        //   outputs?: ([OutputType.ElementOutput | OutputType.DirectiveHostOutput, string, string])[],\r\n        //   handleEvent?: ElementHandleEventFn,\r\n        //   componentView?: () => ViewDefinition, componentRendererType?: RendererType2): NodeDef;\r\n        this.nodes[nodeIndex] = function () { return ({\r\n            sourceSpan: ast.sourceSpan,\r\n            nodeFlags: 1 /* TypeElement */ | flags,\r\n            nodeDef: importExpr(createIdentifier(Identifiers.elementDef)).callFn([\r\n                literal(flags),\r\n                queryMatchesExpr,\r\n                literal(ast.ngContentIndex),\r\n                literal(childCount),\r\n                literal(elName),\r\n                elName ? fixedAttrsDef(ast) : NULL_EXPR,\r\n                inputDefs.length ? literalArr(inputDefs) : NULL_EXPR,\r\n                outputDefs.length ? literalArr(outputDefs) : NULL_EXPR,\r\n                _this._createElementHandleEventFn(nodeIndex, hostEvents),\r\n                compView,\r\n                compRendererType,\r\n            ]),\r\n            updateRenderer: updateRendererExpressions\r\n        }); };\r\n    };\r\n    /**\r\n     * @param {?} nodeIndex\r\n     * @param {?} ast\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype._visitElementOrTemplate = function (nodeIndex, ast) {\r\n        var _this = this;\r\n        var /** @type {?} */ flags = 0;\r\n        if (ast.hasViewContainer) {\r\n            flags |= 16777216 /* EmbeddedViews */;\r\n        }\r\n        var /** @type {?} */ usedEvents = new Map();\r\n        ast.outputs.forEach(function (event) {\r\n            var _a = elementEventNameAndTarget(event, null), name = _a.name, target = _a.target;\r\n            usedEvents.set(ɵelementEventFullName(target, name), [target, name]);\r\n        });\r\n        ast.directives.forEach(function (dirAst) {\r\n            dirAst.hostEvents.forEach(function (event) {\r\n                var _a = elementEventNameAndTarget(event, dirAst), name = _a.name, target = _a.target;\r\n                usedEvents.set(ɵelementEventFullName(target, name), [target, name]);\r\n            });\r\n        });\r\n        var /** @type {?} */ hostBindings = [];\r\n        var /** @type {?} */ hostEvents = [];\r\n        var /** @type {?} */ componentFactoryResolverProvider = createComponentFactoryResolver(ast.directives);\r\n        if (componentFactoryResolverProvider) {\r\n            this._visitProvider(componentFactoryResolverProvider, ast.queryMatches);\r\n        }\r\n        ast.providers.forEach(function (providerAst, providerIndex) {\r\n            var /** @type {?} */ dirAst = ((undefined));\r\n            var /** @type {?} */ dirIndex = ((undefined));\r\n            ast.directives.forEach(function (localDirAst, i) {\r\n                if (localDirAst.directive.type.reference === tokenReference(providerAst.token)) {\r\n                    dirAst = localDirAst;\r\n                    dirIndex = i;\r\n                }\r\n            });\r\n            if (dirAst) {\r\n                var _a = _this._visitDirective(providerAst, dirAst, dirIndex, nodeIndex, ast.references, ast.queryMatches, usedEvents, /** @type {?} */ ((_this.staticQueryIds.get(/** @type {?} */ (ast))))), dirHostBindings = _a.hostBindings, dirHostEvents = _a.hostEvents;\r\n                hostBindings.push.apply(hostBindings, dirHostBindings);\r\n                hostEvents.push.apply(hostEvents, dirHostEvents);\r\n            }\r\n            else {\r\n                _this._visitProvider(providerAst, ast.queryMatches);\r\n            }\r\n        });\r\n        var /** @type {?} */ queryMatchExprs = [];\r\n        ast.queryMatches.forEach(function (match) {\r\n            var /** @type {?} */ valueType = ((undefined));\r\n            if (tokenReference(match.value) === resolveIdentifier(Identifiers.ElementRef)) {\r\n                valueType = 0 /* ElementRef */;\r\n            }\r\n            else if (tokenReference(match.value) === resolveIdentifier(Identifiers.ViewContainerRef)) {\r\n                valueType = 3 /* ViewContainerRef */;\r\n            }\r\n            else if (tokenReference(match.value) === resolveIdentifier(Identifiers.TemplateRef)) {\r\n                valueType = 2 /* TemplateRef */;\r\n            }\r\n            if (valueType != null) {\r\n                queryMatchExprs.push(literalArr([literal(match.queryId), literal(valueType)]));\r\n            }\r\n        });\r\n        ast.references.forEach(function (ref) {\r\n            var /** @type {?} */ valueType = ((undefined));\r\n            if (!ref.value) {\r\n                valueType = 1 /* RenderElement */;\r\n            }\r\n            else if (tokenReference(ref.value) === resolveIdentifier(Identifiers.TemplateRef)) {\r\n                valueType = 2 /* TemplateRef */;\r\n            }\r\n            if (valueType != null) {\r\n                _this.refNodeIndices[ref.name] = nodeIndex;\r\n                queryMatchExprs.push(literalArr([literal(ref.name), literal(valueType)]));\r\n            }\r\n        });\r\n        ast.outputs.forEach(function (outputAst) {\r\n            hostEvents.push({ context: COMP_VAR, eventAst: outputAst, dirAst: /** @type {?} */ ((null)) });\r\n        });\r\n        return {\r\n            flags: flags,\r\n            usedEvents: Array.from(usedEvents.values()),\r\n            queryMatchesExpr: queryMatchExprs.length ? literalArr(queryMatchExprs) : NULL_EXPR,\r\n            hostBindings: hostBindings,\r\n            hostEvents: hostEvents\r\n        };\r\n    };\r\n    /**\r\n     * @param {?} providerAst\r\n     * @param {?} dirAst\r\n     * @param {?} directiveIndex\r\n     * @param {?} elementNodeIndex\r\n     * @param {?} refs\r\n     * @param {?} queryMatches\r\n     * @param {?} usedEvents\r\n     * @param {?} queryIds\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype._visitDirective = function (providerAst, dirAst, directiveIndex, elementNodeIndex, refs, queryMatches, usedEvents, queryIds) {\r\n        var _this = this;\r\n        var /** @type {?} */ nodeIndex = this.nodes.length;\r\n        // reserve the space in the nodeDefs array so we can add children\r\n        this.nodes.push(/** @type {?} */ ((null)));\r\n        dirAst.directive.queries.forEach(function (query, queryIndex) {\r\n            var /** @type {?} */ queryId = dirAst.contentQueryStartId + queryIndex;\r\n            var /** @type {?} */ flags = 67108864 /* TypeContentQuery */ | calcStaticDynamicQueryFlags(queryIds, queryId, query.first);\r\n            var /** @type {?} */ bindingType = query.first ? 0 /* First */ : 1;\r\n            _this.nodes.push(function () { return ({\r\n                sourceSpan: dirAst.sourceSpan,\r\n                nodeFlags: flags,\r\n                nodeDef: importExpr(createIdentifier(Identifiers.queryDef)).callFn([\r\n                    literal(flags), literal(queryId),\r\n                    new LiteralMapExpr([new LiteralMapEntry(query.propertyName, literal(bindingType))])\r\n                ]),\r\n            }); });\r\n        });\r\n        // Note: the operation below might also create new nodeDefs,\r\n        // but we don't want them to be a child of a directive,\r\n        // as they might be a provider/pipe on their own.\r\n        // I.e. we only allow queries as children of directives nodes.\r\n        var /** @type {?} */ childCount = this.nodes.length - nodeIndex - 1;\r\n        var _a = this._visitProviderOrDirective(providerAst, queryMatches), flags = _a.flags, queryMatchExprs = _a.queryMatchExprs, providerExpr = _a.providerExpr, depsExpr = _a.depsExpr;\r\n        refs.forEach(function (ref) {\r\n            if (ref.value && tokenReference(ref.value) === tokenReference(providerAst.token)) {\r\n                _this.refNodeIndices[ref.name] = nodeIndex;\r\n                queryMatchExprs.push(literalArr([literal(ref.name), literal(4 /* Provider */)]));\r\n            }\r\n        });\r\n        if (dirAst.directive.isComponent) {\r\n            flags |= 32768 /* Component */;\r\n        }\r\n        var /** @type {?} */ inputDefs = dirAst.inputs.map(function (inputAst, inputIndex) {\r\n            var /** @type {?} */ mapValue = literalArr([literal(inputIndex), literal(inputAst.directiveName)]);\r\n            // Note: it's important to not quote the key so that we can capture renames by minifiers!\r\n            return new LiteralMapEntry(inputAst.directiveName, mapValue, false);\r\n        });\r\n        var /** @type {?} */ outputDefs = [];\r\n        var /** @type {?} */ dirMeta = dirAst.directive;\r\n        Object.keys(dirMeta.outputs).forEach(function (propName) {\r\n            var /** @type {?} */ eventName = dirMeta.outputs[propName];\r\n            if (usedEvents.has(eventName)) {\r\n                // Note: it's important to not quote the key so that we can capture renames by minifiers!\r\n                outputDefs.push(new LiteralMapEntry(propName, literal(eventName), false));\r\n            }\r\n        });\r\n        var /** @type {?} */ updateDirectiveExpressions = [];\r\n        if (dirAst.inputs.length || (flags & (262144 /* DoCheck */ | 65536 /* OnInit */)) > 0) {\r\n            updateDirectiveExpressions =\r\n                dirAst.inputs.map(function (input, bindingIndex) { return _this._preprocessUpdateExpression({\r\n                    nodeIndex: nodeIndex,\r\n                    bindingIndex: bindingIndex,\r\n                    sourceSpan: input.sourceSpan,\r\n                    context: COMP_VAR,\r\n                    value: input.value\r\n                }); });\r\n        }\r\n        var /** @type {?} */ dirContextExpr = importExpr(createIdentifier(Identifiers.nodeValue)).callFn([\r\n            VIEW_VAR, literal(nodeIndex)\r\n        ]);\r\n        var /** @type {?} */ hostBindings = dirAst.hostProperties.map(function (inputAst) { return ({\r\n            context: dirContextExpr,\r\n            dirAst: dirAst,\r\n            inputAst: inputAst,\r\n        }); });\r\n        var /** @type {?} */ hostEvents = dirAst.hostEvents.map(function (hostEventAst) { return ({\r\n            context: dirContextExpr,\r\n            eventAst: hostEventAst, dirAst: dirAst,\r\n        }); });\r\n        // directiveDef(\r\n        //   flags: NodeFlags, matchedQueries: [string, QueryValueType][], childCount: number, ctor:\r\n        //   any,\r\n        //   deps: ([DepFlags, any] | any)[], props?: {[name: string]: [number, string]},\r\n        //   outputs?: {[name: string]: string}, component?: () => ViewDefinition): NodeDef;\r\n        this.nodes[nodeIndex] = function () { return ({\r\n            sourceSpan: dirAst.sourceSpan,\r\n            nodeFlags: 16384 /* TypeDirective */ | flags,\r\n            nodeDef: importExpr(createIdentifier(Identifiers.directiveDef)).callFn([\r\n                literal(flags), queryMatchExprs.length ? literalArr(queryMatchExprs) : NULL_EXPR,\r\n                literal(childCount), providerExpr, depsExpr,\r\n                inputDefs.length ? new LiteralMapExpr(inputDefs) : NULL_EXPR,\r\n                outputDefs.length ? new LiteralMapExpr(outputDefs) : NULL_EXPR\r\n            ]),\r\n            updateDirectives: updateDirectiveExpressions,\r\n            directive: dirAst.directive.type,\r\n        }); };\r\n        return { hostBindings: hostBindings, hostEvents: hostEvents };\r\n    };\r\n    /**\r\n     * @param {?} providerAst\r\n     * @param {?} queryMatches\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype._visitProvider = function (providerAst, queryMatches) {\r\n        var /** @type {?} */ nodeIndex = this.nodes.length;\r\n        // reserve the space in the nodeDefs array so we can add children\r\n        this.nodes.push(/** @type {?} */ ((null)));\r\n        var _a = this._visitProviderOrDirective(providerAst, queryMatches), flags = _a.flags, queryMatchExprs = _a.queryMatchExprs, providerExpr = _a.providerExpr, depsExpr = _a.depsExpr;\r\n        // providerDef(\r\n        //   flags: NodeFlags, matchedQueries: [string, QueryValueType][], token:any,\r\n        //   value: any, deps: ([DepFlags, any] | any)[]): NodeDef;\r\n        this.nodes[nodeIndex] = function () { return ({\r\n            sourceSpan: providerAst.sourceSpan,\r\n            nodeFlags: flags,\r\n            nodeDef: importExpr(createIdentifier(Identifiers.providerDef)).callFn([\r\n                literal(flags), queryMatchExprs.length ? literalArr(queryMatchExprs) : NULL_EXPR,\r\n                tokenExpr(providerAst.token), providerExpr, depsExpr\r\n            ])\r\n        }); };\r\n    };\r\n    /**\r\n     * @param {?} providerAst\r\n     * @param {?} queryMatches\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype._visitProviderOrDirective = function (providerAst, queryMatches) {\r\n        var /** @type {?} */ flags = 0;\r\n        if (!providerAst.eager) {\r\n            flags |= 4096 /* LazyProvider */;\r\n        }\r\n        if (providerAst.providerType === ProviderAstType.PrivateService) {\r\n            flags |= 8192 /* PrivateProvider */;\r\n        }\r\n        providerAst.lifecycleHooks.forEach(function (lifecycleHook) {\r\n            // for regular providers, we only support ngOnDestroy\r\n            if (lifecycleHook === ɵLifecycleHooks.OnDestroy ||\r\n                providerAst.providerType === ProviderAstType.Directive ||\r\n                providerAst.providerType === ProviderAstType.Component) {\r\n                flags |= lifecycleHookToNodeFlag(lifecycleHook);\r\n            }\r\n        });\r\n        var /** @type {?} */ queryMatchExprs = [];\r\n        queryMatches.forEach(function (match) {\r\n            if (tokenReference(match.value) === tokenReference(providerAst.token)) {\r\n                queryMatchExprs.push(literalArr([literal(match.queryId), literal(4 /* Provider */)]));\r\n            }\r\n        });\r\n        var _a = providerDef(providerAst), providerExpr = _a.providerExpr, depsExpr = _a.depsExpr, providerType = _a.flags;\r\n        return { flags: flags | providerType, queryMatchExprs: queryMatchExprs, providerExpr: providerExpr, depsExpr: depsExpr };\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.getLocal = function (name) {\r\n        if (name == EventHandlerVars.event.name) {\r\n            return EventHandlerVars.event;\r\n        }\r\n        var /** @type {?} */ currViewExpr = VIEW_VAR;\r\n        for (var /** @type {?} */ currBuilder = this; currBuilder; currBuilder = currBuilder.parent,\r\n            currViewExpr = currViewExpr.prop('parent').cast(DYNAMIC_TYPE)) {\r\n            // check references\r\n            var /** @type {?} */ refNodeIndex = currBuilder.refNodeIndices[name];\r\n            if (refNodeIndex != null) {\r\n                return importExpr(createIdentifier(Identifiers.nodeValue)).callFn([\r\n                    currViewExpr, literal(refNodeIndex)\r\n                ]);\r\n            }\r\n            // check variables\r\n            var /** @type {?} */ varAst = currBuilder.variables.find(function (varAst) { return varAst.name === name; });\r\n            if (varAst) {\r\n                var /** @type {?} */ varValue = varAst.value || IMPLICIT_TEMPLATE_VAR;\r\n                return currViewExpr.prop('context').prop(varValue);\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} sourceSpan\r\n     * @param {?} argCount\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.createLiteralArrayConverter = function (sourceSpan, argCount) {\r\n        if (argCount === 0) {\r\n            var /** @type {?} */ valueExpr_1 = importExpr(createIdentifier(Identifiers.EMPTY_ARRAY));\r\n            return function () { return valueExpr_1; };\r\n        }\r\n        var /** @type {?} */ nodeIndex = this.nodes.length;\r\n        // pureArrayDef(argCount: number): NodeDef;\r\n        this.nodes.push(function () { return ({\r\n            sourceSpan: sourceSpan,\r\n            nodeFlags: 32 /* TypePureArray */,\r\n            nodeDef: importExpr(createIdentifier(Identifiers.pureArrayDef)).callFn([literal(argCount)])\r\n        }); });\r\n        return function (args) { return callCheckStmt(nodeIndex, args); };\r\n    };\r\n    /**\r\n     * @param {?} sourceSpan\r\n     * @param {?} keys\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.createLiteralMapConverter = function (sourceSpan, keys) {\r\n        if (keys.length === 0) {\r\n            var /** @type {?} */ valueExpr_2 = importExpr(createIdentifier(Identifiers.EMPTY_MAP));\r\n            return function () { return valueExpr_2; };\r\n        }\r\n        var /** @type {?} */ nodeIndex = this.nodes.length;\r\n        // function pureObjectDef(propertyNames: string[]): NodeDef\r\n        this.nodes.push(function () { return ({\r\n            sourceSpan: sourceSpan,\r\n            nodeFlags: 64 /* TypePureObject */,\r\n            nodeDef: importExpr(createIdentifier(Identifiers.pureObjectDef))\r\n                .callFn([literalArr(keys.map(function (key) { return literal(key); }))])\r\n        }); });\r\n        return function (args) { return callCheckStmt(nodeIndex, args); };\r\n    };\r\n    /**\r\n     * @param {?} expression\r\n     * @param {?} name\r\n     * @param {?} argCount\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.createPipeConverter = function (expression, name, argCount) {\r\n        var /** @type {?} */ pipe = ((this.usedPipes.find(function (pipeSummary) { return pipeSummary.name === name; })));\r\n        if (pipe.pure) {\r\n            var /** @type {?} */ nodeIndex_1 = this.nodes.length;\r\n            // function purePipeDef(argCount: number): NodeDef;\r\n            this.nodes.push(function () { return ({\r\n                sourceSpan: expression.sourceSpan,\r\n                nodeFlags: 128 /* TypePurePipe */,\r\n                nodeDef: importExpr(createIdentifier(Identifiers.purePipeDef))\r\n                    .callFn([literal(argCount)])\r\n            }); });\r\n            // find underlying pipe in the component view\r\n            var /** @type {?} */ compViewExpr = VIEW_VAR;\r\n            var /** @type {?} */ compBuilder = this;\r\n            while (compBuilder.parent) {\r\n                compBuilder = compBuilder.parent;\r\n                compViewExpr = compViewExpr.prop('parent').cast(DYNAMIC_TYPE);\r\n            }\r\n            var /** @type {?} */ pipeNodeIndex = compBuilder.purePipeNodeIndices[name];\r\n            var /** @type {?} */ pipeValueExpr_1 = importExpr(createIdentifier(Identifiers.nodeValue)).callFn([\r\n                compViewExpr, literal(pipeNodeIndex)\r\n            ]);\r\n            return function (args) { return callUnwrapValue(expression.nodeIndex, expression.bindingIndex, callCheckStmt(nodeIndex_1, [pipeValueExpr_1].concat(args))); };\r\n        }\r\n        else {\r\n            var /** @type {?} */ nodeIndex = this._createPipe(expression.sourceSpan, pipe);\r\n            var /** @type {?} */ nodeValueExpr_1 = importExpr(createIdentifier(Identifiers.nodeValue)).callFn([\r\n                VIEW_VAR, literal(nodeIndex)\r\n            ]);\r\n            return function (args) { return callUnwrapValue(expression.nodeIndex, expression.bindingIndex, nodeValueExpr_1.callMethod('transform', args)); };\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} sourceSpan\r\n     * @param {?} pipe\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype._createPipe = function (sourceSpan, pipe) {\r\n        var /** @type {?} */ nodeIndex = this.nodes.length;\r\n        var /** @type {?} */ flags = 0;\r\n        pipe.type.lifecycleHooks.forEach(function (lifecycleHook) {\r\n            // for pipes, we only support ngOnDestroy\r\n            if (lifecycleHook === ɵLifecycleHooks.OnDestroy) {\r\n                flags |= lifecycleHookToNodeFlag(lifecycleHook);\r\n            }\r\n        });\r\n        var /** @type {?} */ depExprs = pipe.type.diDeps.map(depDef);\r\n        // function pipeDef(\r\n        //   flags: NodeFlags, ctor: any, deps: ([DepFlags, any] | any)[]): NodeDef\r\n        this.nodes.push(function () { return ({\r\n            sourceSpan: sourceSpan,\r\n            nodeFlags: 16 /* TypePipe */,\r\n            nodeDef: importExpr(createIdentifier(Identifiers.pipeDef)).callFn([\r\n                literal(flags), importExpr(pipe.type), literalArr(depExprs)\r\n            ])\r\n        }); });\r\n        return nodeIndex;\r\n    };\r\n    /**\r\n     * @param {?} expression\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype._preprocessUpdateExpression = function (expression) {\r\n        var _this = this;\r\n        return {\r\n            nodeIndex: expression.nodeIndex,\r\n            bindingIndex: expression.bindingIndex,\r\n            sourceSpan: expression.sourceSpan,\r\n            context: expression.context,\r\n            value: convertPropertyBindingBuiltins({\r\n                createLiteralArrayConverter: function (argCount) { return _this.createLiteralArrayConverter(expression.sourceSpan, argCount); },\r\n                createLiteralMapConverter: function (keys) { return _this.createLiteralMapConverter(expression.sourceSpan, keys); },\r\n                createPipeConverter: function (name, argCount) { return _this.createPipeConverter(expression, name, argCount); }\r\n            }, expression.value)\r\n        };\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype._createNodeExpressions = function () {\r\n        var /** @type {?} */ self = this;\r\n        var /** @type {?} */ updateBindingCount = 0;\r\n        var /** @type {?} */ updateRendererStmts = [];\r\n        var /** @type {?} */ updateDirectivesStmts = [];\r\n        var /** @type {?} */ nodeDefExprs = this.nodes.map(function (factory, nodeIndex) {\r\n            var _a = factory(), nodeDef = _a.nodeDef, nodeFlags = _a.nodeFlags, updateDirectives = _a.updateDirectives, updateRenderer = _a.updateRenderer, sourceSpan = _a.sourceSpan;\r\n            if (updateRenderer) {\r\n                updateRendererStmts.push.apply(updateRendererStmts, createUpdateStatements(nodeIndex, sourceSpan, updateRenderer, false));\r\n            }\r\n            if (updateDirectives) {\r\n                updateDirectivesStmts.push.apply(updateDirectivesStmts, createUpdateStatements(nodeIndex, sourceSpan, updateDirectives, (nodeFlags & (262144 /* DoCheck */ | 65536 /* OnInit */)) > 0));\r\n            }\r\n            // We use a comma expression to call the log function before\r\n            // the nodeDef function, but still use the result of the nodeDef function\r\n            // as the value.\r\n            // Note: We only add the logger to elements / text nodes,\r\n            // so we don't generate too much code.\r\n            var /** @type {?} */ logWithNodeDef = nodeFlags & 3 /* CatRenderNode */ ?\r\n                new CommaExpr([LOG_VAR.callFn([]).callFn([]), nodeDef]) :\r\n                nodeDef;\r\n            return applySourceSpanToExpressionIfNeeded(logWithNodeDef, sourceSpan);\r\n        });\r\n        return { updateRendererStmts: updateRendererStmts, updateDirectivesStmts: updateDirectivesStmts, nodeDefExprs: nodeDefExprs };\r\n        /**\r\n         * @param {?} nodeIndex\r\n         * @param {?} sourceSpan\r\n         * @param {?} expressions\r\n         * @param {?} allowEmptyExprs\r\n         * @return {?}\r\n         */\r\n        function createUpdateStatements(nodeIndex, sourceSpan, expressions, allowEmptyExprs) {\r\n            var /** @type {?} */ updateStmts = [];\r\n            var /** @type {?} */ exprs = expressions.map(function (_a) {\r\n                var sourceSpan = _a.sourceSpan, context = _a.context, value = _a.value;\r\n                var /** @type {?} */ bindingId = \"\" + updateBindingCount++;\r\n                var /** @type {?} */ nameResolver = context === COMP_VAR ? self : null;\r\n                var _b = convertPropertyBinding(nameResolver, context, value, bindingId), stmts = _b.stmts, currValExpr = _b.currValExpr;\r\n                updateStmts.push.apply(updateStmts, stmts.map(function (stmt) { return applySourceSpanToStatementIfNeeded(stmt, sourceSpan); }));\r\n                return applySourceSpanToExpressionIfNeeded(currValExpr, sourceSpan);\r\n            });\r\n            if (expressions.length || allowEmptyExprs) {\r\n                updateStmts.push(applySourceSpanToStatementIfNeeded(callCheckStmt(nodeIndex, exprs).toStmt(), sourceSpan));\r\n            }\r\n            return updateStmts;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} nodeIndex\r\n     * @param {?} handlers\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype._createElementHandleEventFn = function (nodeIndex, handlers) {\r\n        var _this = this;\r\n        var /** @type {?} */ handleEventStmts = [];\r\n        var /** @type {?} */ handleEventBindingCount = 0;\r\n        handlers.forEach(function (_a) {\r\n            var context = _a.context, eventAst = _a.eventAst, dirAst = _a.dirAst;\r\n            var /** @type {?} */ bindingId = \"\" + handleEventBindingCount++;\r\n            var /** @type {?} */ nameResolver = context === COMP_VAR ? _this : null;\r\n            var _b = convertActionBinding(nameResolver, context, eventAst.handler, bindingId), stmts = _b.stmts, allowDefault = _b.allowDefault;\r\n            var /** @type {?} */ trueStmts = stmts;\r\n            if (allowDefault) {\r\n                trueStmts.push(ALLOW_DEFAULT_VAR.set(allowDefault.and(ALLOW_DEFAULT_VAR)).toStmt());\r\n            }\r\n            var _c = elementEventNameAndTarget(eventAst, dirAst), eventTarget = _c.target, eventName = _c.name;\r\n            var /** @type {?} */ fullEventName = ɵelementEventFullName(eventTarget, eventName);\r\n            handleEventStmts.push(applySourceSpanToStatementIfNeeded(new IfStmt(literal(fullEventName).identical(EVENT_NAME_VAR), trueStmts), eventAst.sourceSpan));\r\n        });\r\n        var /** @type {?} */ handleEventFn;\r\n        if (handleEventStmts.length > 0) {\r\n            var /** @type {?} */ preStmts = [ALLOW_DEFAULT_VAR.set(literal(true)).toDeclStmt(BOOL_TYPE)];\r\n            if (!this.component.isHost && findReadVarNames(handleEventStmts).has(/** @type {?} */ ((COMP_VAR.name)))) {\r\n                preStmts.push(COMP_VAR.set(VIEW_VAR.prop('component')).toDeclStmt(this.compType));\r\n            }\r\n            handleEventFn = fn([\r\n                new FnParam(/** @type {?} */ ((VIEW_VAR.name)), INFERRED_TYPE),\r\n                new FnParam(/** @type {?} */ ((EVENT_NAME_VAR.name)), INFERRED_TYPE),\r\n                new FnParam(/** @type {?} */ ((EventHandlerVars.event.name)), INFERRED_TYPE)\r\n            ], preStmts.concat(handleEventStmts, [new ReturnStatement(ALLOW_DEFAULT_VAR)]), INFERRED_TYPE);\r\n        }\r\n        else {\r\n            handleEventFn = NULL_EXPR;\r\n        }\r\n        return handleEventFn;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitDirective = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitDirectiveProperty = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitReference = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitVariable = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitEvent = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitElementProperty = function (ast, context) { };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    ViewBuilder.prototype.visitAttr = function (ast, context) { };\r\n    return ViewBuilder;\r\n}());\r\n/**\r\n * @param {?} providerAst\r\n * @return {?}\r\n */\r\nfunction providerDef(providerAst) {\r\n    return providerAst.multiProvider ?\r\n        multiProviderDef(providerAst.providers) :\r\n        singleProviderDef(providerAst.providerType, providerAst.providers[0]);\r\n}\r\n/**\r\n * @param {?} providers\r\n * @return {?}\r\n */\r\nfunction multiProviderDef(providers) {\r\n    var /** @type {?} */ allDepDefs = [];\r\n    var /** @type {?} */ allParams = [];\r\n    var /** @type {?} */ exprs = providers.map(function (provider, providerIndex) {\r\n        var /** @type {?} */ expr;\r\n        if (provider.useClass) {\r\n            var /** @type {?} */ depExprs = convertDeps(providerIndex, provider.deps || provider.useClass.diDeps);\r\n            expr = importExpr(provider.useClass).instantiate(depExprs);\r\n        }\r\n        else if (provider.useFactory) {\r\n            var /** @type {?} */ depExprs = convertDeps(providerIndex, provider.deps || provider.useFactory.diDeps);\r\n            expr = importExpr(provider.useFactory).callFn(depExprs);\r\n        }\r\n        else if (provider.useExisting) {\r\n            var /** @type {?} */ depExprs = convertDeps(providerIndex, [{ token: provider.useExisting }]);\r\n            expr = depExprs[0];\r\n        }\r\n        else {\r\n            expr = convertValueToOutputAst(provider.useValue);\r\n        }\r\n        return expr;\r\n    });\r\n    var /** @type {?} */ providerExpr = fn(allParams, [new ReturnStatement(literalArr(exprs))], INFERRED_TYPE);\r\n    return { providerExpr: providerExpr, flags: 1024 /* TypeFactoryProvider */, depsExpr: literalArr(allDepDefs) };\r\n    /**\r\n     * @param {?} providerIndex\r\n     * @param {?} deps\r\n     * @return {?}\r\n     */\r\n    function convertDeps(providerIndex, deps) {\r\n        return deps.map(function (dep, depIndex) {\r\n            var /** @type {?} */ paramName = \"p\" + providerIndex + \"_\" + depIndex;\r\n            allParams.push(new FnParam(paramName, DYNAMIC_TYPE));\r\n            allDepDefs.push(depDef(dep));\r\n            return variable(paramName);\r\n        });\r\n    }\r\n}\r\n/**\r\n * @param {?} providerType\r\n * @param {?} providerMeta\r\n * @return {?}\r\n */\r\nfunction singleProviderDef(providerType, providerMeta) {\r\n    var /** @type {?} */ providerExpr;\r\n    var /** @type {?} */ flags;\r\n    var /** @type {?} */ deps;\r\n    if (providerType === ProviderAstType.Directive || providerType === ProviderAstType.Component) {\r\n        providerExpr = importExpr(/** @type {?} */ ((providerMeta.useClass)));\r\n        flags = 16384 /* TypeDirective */;\r\n        deps = providerMeta.deps || ((providerMeta.useClass)).diDeps;\r\n    }\r\n    else {\r\n        if (providerMeta.useClass) {\r\n            providerExpr = importExpr(providerMeta.useClass);\r\n            flags = 512 /* TypeClassProvider */;\r\n            deps = providerMeta.deps || providerMeta.useClass.diDeps;\r\n        }\r\n        else if (providerMeta.useFactory) {\r\n            providerExpr = importExpr(providerMeta.useFactory);\r\n            flags = 1024 /* TypeFactoryProvider */;\r\n            deps = providerMeta.deps || providerMeta.useFactory.diDeps;\r\n        }\r\n        else if (providerMeta.useExisting) {\r\n            providerExpr = NULL_EXPR;\r\n            flags = 2048 /* TypeUseExistingProvider */;\r\n            deps = [{ token: providerMeta.useExisting }];\r\n        }\r\n        else {\r\n            providerExpr = convertValueToOutputAst(providerMeta.useValue);\r\n            flags = 256 /* TypeValueProvider */;\r\n            deps = [];\r\n        }\r\n    }\r\n    var /** @type {?} */ depsExpr = literalArr(deps.map(function (dep) { return depDef(dep); }));\r\n    return { providerExpr: providerExpr, flags: flags, depsExpr: depsExpr };\r\n}\r\n/**\r\n * @param {?} tokenMeta\r\n * @return {?}\r\n */\r\nfunction tokenExpr(tokenMeta) {\r\n    return tokenMeta.identifier ? importExpr(tokenMeta.identifier) : literal(tokenMeta.value);\r\n}\r\n/**\r\n * @param {?} dep\r\n * @return {?}\r\n */\r\nfunction depDef(dep) {\r\n    // Note: the following fields have already been normalized out by provider_analyzer:\r\n    // - isAttribute, isSelf, isHost\r\n    var /** @type {?} */ expr = dep.isValue ? convertValueToOutputAst(dep.value) : tokenExpr(/** @type {?} */ ((dep.token)));\r\n    var /** @type {?} */ flags = 0;\r\n    if (dep.isSkipSelf) {\r\n        flags |= 1 /* SkipSelf */;\r\n    }\r\n    if (dep.isOptional) {\r\n        flags |= 2 /* Optional */;\r\n    }\r\n    if (dep.isValue) {\r\n        flags |= 8 /* Value */;\r\n    }\r\n    return flags === 0 /* None */ ? expr : literalArr([literal(flags), expr]);\r\n}\r\n/**\r\n * @param {?} astNodes\r\n * @return {?}\r\n */\r\nfunction needsAdditionalRootNode(astNodes) {\r\n    var /** @type {?} */ lastAstNode = astNodes[astNodes.length - 1];\r\n    if (lastAstNode instanceof EmbeddedTemplateAst) {\r\n        return lastAstNode.hasViewContainer;\r\n    }\r\n    if (lastAstNode instanceof ElementAst) {\r\n        if (isNgContainer(lastAstNode.name) && lastAstNode.children.length) {\r\n            return needsAdditionalRootNode(lastAstNode.children);\r\n        }\r\n        return lastAstNode.hasViewContainer;\r\n    }\r\n    return lastAstNode instanceof NgContentAst;\r\n}\r\n/**\r\n * @param {?} lifecycleHook\r\n * @return {?}\r\n */\r\nfunction lifecycleHookToNodeFlag(lifecycleHook) {\r\n    var /** @type {?} */ nodeFlag = 0;\r\n    switch (lifecycleHook) {\r\n        case ɵLifecycleHooks.AfterContentChecked:\r\n            nodeFlag = 2097152 /* AfterContentChecked */;\r\n            break;\r\n        case ɵLifecycleHooks.AfterContentInit:\r\n            nodeFlag = 1048576 /* AfterContentInit */;\r\n            break;\r\n        case ɵLifecycleHooks.AfterViewChecked:\r\n            nodeFlag = 8388608 /* AfterViewChecked */;\r\n            break;\r\n        case ɵLifecycleHooks.AfterViewInit:\r\n            nodeFlag = 4194304 /* AfterViewInit */;\r\n            break;\r\n        case ɵLifecycleHooks.DoCheck:\r\n            nodeFlag = 262144 /* DoCheck */;\r\n            break;\r\n        case ɵLifecycleHooks.OnChanges:\r\n            nodeFlag = 524288 /* OnChanges */;\r\n            break;\r\n        case ɵLifecycleHooks.OnDestroy:\r\n            nodeFlag = 131072 /* OnDestroy */;\r\n            break;\r\n        case ɵLifecycleHooks.OnInit:\r\n            nodeFlag = 65536 /* OnInit */;\r\n            break;\r\n    }\r\n    return nodeFlag;\r\n}\r\n/**\r\n * @param {?} inputAst\r\n * @param {?} dirAst\r\n * @return {?}\r\n */\r\nfunction elementBindingDef(inputAst, dirAst) {\r\n    switch (inputAst.type) {\r\n        case PropertyBindingType.Attribute:\r\n            return literalArr([\r\n                literal(1 /* TypeElementAttribute */), literal(inputAst.name),\r\n                literal(inputAst.securityContext)\r\n            ]);\r\n        case PropertyBindingType.Property:\r\n            return literalArr([\r\n                literal(8 /* TypeProperty */), literal(inputAst.name),\r\n                literal(inputAst.securityContext)\r\n            ]);\r\n        case PropertyBindingType.Animation:\r\n            var /** @type {?} */ bindingType = 8 /* TypeProperty */ |\r\n                (dirAst && dirAst.directive.isComponent ? 32 /* SyntheticHostProperty */ :\r\n                    16 /* SyntheticProperty */);\r\n            return literalArr([\r\n                literal(bindingType), literal('@' + inputAst.name), literal(inputAst.securityContext)\r\n            ]);\r\n        case PropertyBindingType.Class:\r\n            return literalArr([literal(2 /* TypeElementClass */), literal(inputAst.name), NULL_EXPR]);\r\n        case PropertyBindingType.Style:\r\n            return literalArr([\r\n                literal(4 /* TypeElementStyle */), literal(inputAst.name), literal(inputAst.unit)\r\n            ]);\r\n    }\r\n}\r\n/**\r\n * @param {?} elementAst\r\n * @return {?}\r\n */\r\nfunction fixedAttrsDef(elementAst) {\r\n    var /** @type {?} */ mapResult = Object.create(null);\r\n    elementAst.attrs.forEach(function (attrAst) { mapResult[attrAst.name] = attrAst.value; });\r\n    elementAst.directives.forEach(function (dirAst) {\r\n        Object.keys(dirAst.directive.hostAttributes).forEach(function (name) {\r\n            var /** @type {?} */ value = dirAst.directive.hostAttributes[name];\r\n            var /** @type {?} */ prevValue = mapResult[name];\r\n            mapResult[name] = prevValue != null ? mergeAttributeValue(name, prevValue, value) : value;\r\n        });\r\n    });\r\n    // Note: We need to sort to get a defined output order\r\n    // for tests and for caching generated artifacts...\r\n    return literalArr(Object.keys(mapResult).sort().map(function (attrName) { return literalArr([literal(attrName), literal(mapResult[attrName])]); }));\r\n}\r\n/**\r\n * @param {?} attrName\r\n * @param {?} attrValue1\r\n * @param {?} attrValue2\r\n * @return {?}\r\n */\r\nfunction mergeAttributeValue(attrName, attrValue1, attrValue2) {\r\n    if (attrName == CLASS_ATTR$1 || attrName == STYLE_ATTR) {\r\n        return attrValue1 + \" \" + attrValue2;\r\n    }\r\n    else {\r\n        return attrValue2;\r\n    }\r\n}\r\n/**\r\n * @param {?} nodeIndex\r\n * @param {?} exprs\r\n * @return {?}\r\n */\r\nfunction callCheckStmt(nodeIndex, exprs) {\r\n    if (exprs.length > 10) {\r\n        return CHECK_VAR.callFn([VIEW_VAR, literal(nodeIndex), literal(1 /* Dynamic */), literalArr(exprs)]);\r\n    }\r\n    else {\r\n        return CHECK_VAR.callFn([VIEW_VAR, literal(nodeIndex), literal(0 /* Inline */)].concat(exprs));\r\n    }\r\n}\r\n/**\r\n * @param {?} nodeIndex\r\n * @param {?} bindingIdx\r\n * @param {?} expr\r\n * @return {?}\r\n */\r\nfunction callUnwrapValue(nodeIndex, bindingIdx, expr) {\r\n    return importExpr(createIdentifier(Identifiers.unwrapValue)).callFn([\r\n        VIEW_VAR, literal(nodeIndex), literal(bindingIdx), expr\r\n    ]);\r\n}\r\n/**\r\n * @param {?} nodes\r\n * @param {?=} result\r\n * @return {?}\r\n */\r\nfunction findStaticQueryIds(nodes, result) {\r\n    if (result === void 0) { result = new Map(); }\r\n    nodes.forEach(function (node) {\r\n        var /** @type {?} */ staticQueryIds = new Set();\r\n        var /** @type {?} */ dynamicQueryIds = new Set();\r\n        var /** @type {?} */ queryMatches = ((undefined));\r\n        if (node instanceof ElementAst) {\r\n            findStaticQueryIds(node.children, result);\r\n            node.children.forEach(function (child) {\r\n                var /** @type {?} */ childData = ((result.get(child)));\r\n                childData.staticQueryIds.forEach(function (queryId) { return staticQueryIds.add(queryId); });\r\n                childData.dynamicQueryIds.forEach(function (queryId) { return dynamicQueryIds.add(queryId); });\r\n            });\r\n            queryMatches = node.queryMatches;\r\n        }\r\n        else if (node instanceof EmbeddedTemplateAst) {\r\n            findStaticQueryIds(node.children, result);\r\n            node.children.forEach(function (child) {\r\n                var /** @type {?} */ childData = ((result.get(child)));\r\n                childData.staticQueryIds.forEach(function (queryId) { return dynamicQueryIds.add(queryId); });\r\n                childData.dynamicQueryIds.forEach(function (queryId) { return dynamicQueryIds.add(queryId); });\r\n            });\r\n            queryMatches = node.queryMatches;\r\n        }\r\n        if (queryMatches) {\r\n            queryMatches.forEach(function (match) { return staticQueryIds.add(match.queryId); });\r\n        }\r\n        dynamicQueryIds.forEach(function (queryId) { return staticQueryIds.delete(queryId); });\r\n        result.set(node, { staticQueryIds: staticQueryIds, dynamicQueryIds: dynamicQueryIds });\r\n    });\r\n    return result;\r\n}\r\n/**\r\n * @param {?} nodeStaticQueryIds\r\n * @return {?}\r\n */\r\nfunction staticViewQueryIds(nodeStaticQueryIds) {\r\n    var /** @type {?} */ staticQueryIds = new Set();\r\n    var /** @type {?} */ dynamicQueryIds = new Set();\r\n    Array.from(nodeStaticQueryIds.values()).forEach(function (entry) {\r\n        entry.staticQueryIds.forEach(function (queryId) { return staticQueryIds.add(queryId); });\r\n        entry.dynamicQueryIds.forEach(function (queryId) { return dynamicQueryIds.add(queryId); });\r\n    });\r\n    dynamicQueryIds.forEach(function (queryId) { return staticQueryIds.delete(queryId); });\r\n    return { staticQueryIds: staticQueryIds, dynamicQueryIds: dynamicQueryIds };\r\n}\r\n/**\r\n * @param {?} directives\r\n * @return {?}\r\n */\r\nfunction createComponentFactoryResolver(directives) {\r\n    var /** @type {?} */ componentDirMeta = directives.find(function (dirAst) { return dirAst.directive.isComponent; });\r\n    if (componentDirMeta && componentDirMeta.directive.entryComponents.length) {\r\n        var /** @type {?} */ entryComponentFactories = componentDirMeta.directive.entryComponents.map(function (entryComponent) { return importExpr({ reference: entryComponent.componentFactory }); });\r\n        var /** @type {?} */ token = createIdentifierToken(Identifiers.ComponentFactoryResolver);\r\n        var /** @type {?} */ classMeta = {\r\n            diDeps: [\r\n                { isValue: true, value: literalArr(entryComponentFactories) },\r\n                { token: token, isSkipSelf: true, isOptional: true },\r\n                { token: createIdentifierToken(Identifiers.NgModuleRef) },\r\n            ],\r\n            lifecycleHooks: [],\r\n            reference: resolveIdentifier(Identifiers.CodegenComponentFactoryResolver)\r\n        };\r\n        return new ProviderAst(token, false, true, [{ token: token, multi: false, useClass: classMeta }], ProviderAstType.PrivateService, [], componentDirMeta.sourceSpan);\r\n    }\r\n    return null;\r\n}\r\n/**\r\n * @param {?} eventAst\r\n * @param {?} dirAst\r\n * @return {?}\r\n */\r\nfunction elementEventNameAndTarget(eventAst, dirAst) {\r\n    if (eventAst.isAnimation) {\r\n        return {\r\n            name: \"@\" + eventAst.name + \".\" + eventAst.phase,\r\n            target: dirAst && dirAst.directive.isComponent ? 'component' : null\r\n        };\r\n    }\r\n    else {\r\n        return eventAst;\r\n    }\r\n}\r\n/**\r\n * @param {?} queryIds\r\n * @param {?} queryId\r\n * @param {?} isFirst\r\n * @return {?}\r\n */\r\nfunction calcStaticDynamicQueryFlags(queryIds, queryId, isFirst) {\r\n    var /** @type {?} */ flags = 0;\r\n    // Note: We only make queries static that query for a single item.\r\n    // This is because of backwards compatibility with the old view compiler...\r\n    if (isFirst && (queryIds.staticQueryIds.has(queryId) || !queryIds.dynamicQueryIds.has(queryId))) {\r\n        flags |= 268435456 /* StaticQuery */;\r\n    }\r\n    else {\r\n        flags |= 536870912 /* DynamicQuery */;\r\n    }\r\n    return flags;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar GeneratedFile = (function () {\r\n    /**\r\n     * @param {?} srcFileUrl\r\n     * @param {?} genFileUrl\r\n     * @param {?} source\r\n     */\r\n    function GeneratedFile(srcFileUrl, genFileUrl, source) {\r\n        this.srcFileUrl = srcFileUrl;\r\n        this.genFileUrl = genFileUrl;\r\n        this.source = source;\r\n    }\r\n    return GeneratedFile;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} summaryResolver\r\n * @param {?} symbolResolver\r\n * @param {?} symbols\r\n * @param {?} types\r\n * @return {?}\r\n */\r\nfunction serializeSummaries(summaryResolver, symbolResolver, symbols, types) {\r\n    var /** @type {?} */ serializer = new Serializer$1(symbolResolver, summaryResolver);\r\n    // for symbols, we use everything except for the class metadata itself\r\n    // (we keep the statics though), as the class metadata is contained in the\r\n    // CompileTypeSummary.\r\n    symbols.forEach(function (resolvedSymbol) { return serializer.addOrMergeSummary({ symbol: resolvedSymbol.symbol, metadata: resolvedSymbol.metadata }); });\r\n    // Add summaries that are referenced by the given symbols (transitively)\r\n    // Note: the serializer.symbols array might be growing while\r\n    // we execute the loop!\r\n    for (var /** @type {?} */ processedIndex = 0; processedIndex < serializer.symbols.length; processedIndex++) {\r\n        var /** @type {?} */ symbol = serializer.symbols[processedIndex];\r\n        if (summaryResolver.isLibraryFile(symbol.filePath)) {\r\n            var /** @type {?} */ summary = summaryResolver.resolveSummary(symbol);\r\n            if (!summary) {\r\n                // some symbols might originate from a plain typescript library\r\n                // that just exported .d.ts and .metadata.json files, i.e. where no summary\r\n                // files were created.\r\n                var /** @type {?} */ resolvedSymbol = symbolResolver.resolveSymbol(symbol);\r\n                if (resolvedSymbol) {\r\n                    summary = { symbol: resolvedSymbol.symbol, metadata: resolvedSymbol.metadata };\r\n                }\r\n            }\r\n            if (summary) {\r\n                serializer.addOrMergeSummary(summary);\r\n            }\r\n        }\r\n    }\r\n    // Add type summaries.\r\n    // Note: We don't add the summaries of all referenced symbols as for the ResolvedSymbols,\r\n    // as the type summaries already contain the transitive data that they require\r\n    // (in a minimal way).\r\n    types.forEach(function (typeSummary) {\r\n        serializer.addOrMergeSummary({ symbol: typeSummary.type.reference, metadata: null, type: typeSummary });\r\n        if (typeSummary.summaryKind === CompileSummaryKind.NgModule) {\r\n            var /** @type {?} */ ngModuleSummary = (typeSummary);\r\n            ngModuleSummary.exportedDirectives.concat(ngModuleSummary.exportedPipes).forEach(function (id) {\r\n                var /** @type {?} */ symbol = id.reference;\r\n                if (summaryResolver.isLibraryFile(symbol.filePath)) {\r\n                    var /** @type {?} */ summary = summaryResolver.resolveSummary(symbol);\r\n                    if (summary) {\r\n                        serializer.addOrMergeSummary(summary);\r\n                    }\r\n                }\r\n            });\r\n        }\r\n    });\r\n    return serializer.serialize();\r\n}\r\n/**\r\n * @param {?} symbolCache\r\n * @param {?} json\r\n * @return {?}\r\n */\r\nfunction deserializeSummaries(symbolCache, json) {\r\n    var /** @type {?} */ deserializer = new Deserializer(symbolCache);\r\n    return deserializer.deserialize(json);\r\n}\r\nvar Serializer$1 = (function (_super) {\r\n    __extends(Serializer$1, _super);\r\n    /**\r\n     * @param {?} symbolResolver\r\n     * @param {?} summaryResolver\r\n     */\r\n    function Serializer$1(symbolResolver, summaryResolver) {\r\n        var _this = _super.call(this) || this;\r\n        _this.symbolResolver = symbolResolver;\r\n        _this.summaryResolver = summaryResolver;\r\n        // Note: This only contains symbols without members.\r\n        _this.symbols = [];\r\n        _this.indexBySymbol = new Map();\r\n        _this.processedSummaryBySymbol = new Map();\r\n        _this.processedSummaries = [];\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} summary\r\n     * @return {?}\r\n     */\r\n    Serializer$1.prototype.addOrMergeSummary = function (summary) {\r\n        var /** @type {?} */ symbolMeta = summary.metadata;\r\n        if (symbolMeta && symbolMeta.__symbolic === 'class') {\r\n            // For classes, we keep everything except their class decorators.\r\n            // We need to keep e.g. the ctor args, method names, method decorators\r\n            // so that the class can be extended in another compilation unit.\r\n            // We don't keep the class decorators as\r\n            // 1) they refer to data\r\n            //   that should not cause a rebuild of downstream compilation units\r\n            //   (e.g. inline templates of @Component, or @NgModule.declarations)\r\n            // 2) their data is already captured in TypeSummaries, e.g. DirectiveSummary.\r\n            var /** @type {?} */ clone_1 = {};\r\n            Object.keys(symbolMeta).forEach(function (propName) {\r\n                if (propName !== 'decorators') {\r\n                    clone_1[propName] = symbolMeta[propName];\r\n                }\r\n            });\r\n            symbolMeta = clone_1;\r\n        }\r\n        var /** @type {?} */ processedSummary = this.processedSummaryBySymbol.get(summary.symbol);\r\n        if (!processedSummary) {\r\n            processedSummary = this.processValue({ symbol: summary.symbol });\r\n            this.processedSummaries.push(processedSummary);\r\n            this.processedSummaryBySymbol.set(summary.symbol, processedSummary);\r\n        }\r\n        // Note: == on purpose to compare with undefined!\r\n        if (processedSummary.metadata == null && symbolMeta != null) {\r\n            processedSummary.metadata = this.processValue(symbolMeta);\r\n        }\r\n        // Note: == on purpose to compare with undefined!\r\n        if (processedSummary.type == null && summary.type != null) {\r\n            processedSummary.type = this.processValue(summary.type);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    Serializer$1.prototype.serialize = function () {\r\n        var _this = this;\r\n        var /** @type {?} */ exportAs = [];\r\n        var /** @type {?} */ json = JSON.stringify({\r\n            summaries: this.processedSummaries,\r\n            symbols: this.symbols.map(function (symbol, index) {\r\n                symbol.assertNoMembers();\r\n                var /** @type {?} */ importAs = ((undefined));\r\n                if (_this.summaryResolver.isLibraryFile(symbol.filePath)) {\r\n                    importAs = symbol.name + \"_\" + index;\r\n                    exportAs.push({ symbol: symbol, exportAs: importAs });\r\n                }\r\n                return {\r\n                    __symbol: index,\r\n                    name: symbol.name,\r\n                    // We convert the source filenames tinto output filenames,\r\n                    // as the generated summary file will be used when teh current\r\n                    // compilation unit is used as a library\r\n                    filePath: _this.summaryResolver.getLibraryFileName(symbol.filePath),\r\n                    importAs: importAs\r\n                };\r\n            })\r\n        });\r\n        return { json: json, exportAs: exportAs };\r\n    };\r\n    /**\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    Serializer$1.prototype.processValue = function (value) { return visitValue(value, this, null); };\r\n    /**\r\n     * @param {?} value\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Serializer$1.prototype.visitOther = function (value, context) {\r\n        if (value instanceof StaticSymbol) {\r\n            var /** @type {?} */ baseSymbol = this.symbolResolver.getStaticSymbol(value.filePath, value.name);\r\n            var /** @type {?} */ index = this.indexBySymbol.get(baseSymbol);\r\n            // Note: == on purpose to compare with undefined!\r\n            if (index == null) {\r\n                index = this.indexBySymbol.size;\r\n                this.indexBySymbol.set(baseSymbol, index);\r\n                this.symbols.push(baseSymbol);\r\n            }\r\n            return { __symbol: index, members: value.members };\r\n        }\r\n    };\r\n    return Serializer$1;\r\n}(ValueTransformer));\r\nvar Deserializer = (function (_super) {\r\n    __extends(Deserializer, _super);\r\n    /**\r\n     * @param {?} symbolCache\r\n     */\r\n    function Deserializer(symbolCache) {\r\n        var _this = _super.call(this) || this;\r\n        _this.symbolCache = symbolCache;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} json\r\n     * @return {?}\r\n     */\r\n    Deserializer.prototype.deserialize = function (json) {\r\n        var _this = this;\r\n        var /** @type {?} */ data = JSON.parse(json);\r\n        var /** @type {?} */ importAs = [];\r\n        this.symbols = [];\r\n        data.symbols.forEach(function (serializedSymbol) {\r\n            var /** @type {?} */ symbol = _this.symbolCache.get(serializedSymbol.filePath, serializedSymbol.name);\r\n            _this.symbols.push(symbol);\r\n            if (serializedSymbol.importAs) {\r\n                importAs.push({ symbol: symbol, importAs: serializedSymbol.importAs });\r\n            }\r\n        });\r\n        var /** @type {?} */ summaries = visitValue(data.summaries, this, null);\r\n        return { summaries: summaries, importAs: importAs };\r\n    };\r\n    /**\r\n     * @param {?} map\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    Deserializer.prototype.visitStringMap = function (map, context) {\r\n        if ('__symbol' in map) {\r\n            var /** @type {?} */ baseSymbol = this.symbols[map['__symbol']];\r\n            var /** @type {?} */ members = map['members'];\r\n            return members.length ? this.symbolCache.get(baseSymbol.filePath, baseSymbol.name, members) :\r\n                baseSymbol;\r\n        }\r\n        else {\r\n            return _super.prototype.visitStringMap.call(this, map, context);\r\n        }\r\n    };\r\n    return Deserializer;\r\n}(ValueTransformer));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar AotCompiler = (function () {\r\n    /**\r\n     * @param {?} _config\r\n     * @param {?} _host\r\n     * @param {?} _metadataResolver\r\n     * @param {?} _templateParser\r\n     * @param {?} _styleCompiler\r\n     * @param {?} _viewCompiler\r\n     * @param {?} _ngModuleCompiler\r\n     * @param {?} _outputEmitter\r\n     * @param {?} _summaryResolver\r\n     * @param {?} _localeId\r\n     * @param {?} _translationFormat\r\n     * @param {?} _genFilePreamble\r\n     * @param {?} _symbolResolver\r\n     */\r\n    function AotCompiler(_config, _host, _metadataResolver, _templateParser, _styleCompiler, _viewCompiler, _ngModuleCompiler, _outputEmitter, _summaryResolver, _localeId, _translationFormat, _genFilePreamble, _symbolResolver) {\r\n        this._config = _config;\r\n        this._host = _host;\r\n        this._metadataResolver = _metadataResolver;\r\n        this._templateParser = _templateParser;\r\n        this._styleCompiler = _styleCompiler;\r\n        this._viewCompiler = _viewCompiler;\r\n        this._ngModuleCompiler = _ngModuleCompiler;\r\n        this._outputEmitter = _outputEmitter;\r\n        this._summaryResolver = _summaryResolver;\r\n        this._localeId = _localeId;\r\n        this._translationFormat = _translationFormat;\r\n        this._genFilePreamble = _genFilePreamble;\r\n        this._symbolResolver = _symbolResolver;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    AotCompiler.prototype.clearCache = function () { this._metadataResolver.clearCache(); };\r\n    /**\r\n     * @param {?} rootFiles\r\n     * @return {?}\r\n     */\r\n    AotCompiler.prototype.compileAll = function (rootFiles) {\r\n        var _this = this;\r\n        var /** @type {?} */ programSymbols = extractProgramSymbols(this._symbolResolver, rootFiles, this._host);\r\n        var _a = analyzeAndValidateNgModules(programSymbols, this._host, this._metadataResolver), ngModuleByPipeOrDirective = _a.ngModuleByPipeOrDirective, files = _a.files, ngModules = _a.ngModules;\r\n        return Promise\r\n            .all(ngModules.map(function (ngModule) { return _this._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(ngModule.type.reference, false); }))\r\n            .then(function () {\r\n            var /** @type {?} */ sourceModules = files.map(function (file) { return _this._compileSrcFile(file.srcUrl, ngModuleByPipeOrDirective, file.directives, file.pipes, file.ngModules, file.injectables); });\r\n            return flatten(sourceModules);\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} srcFileUrl\r\n     * @param {?} ngModuleByPipeOrDirective\r\n     * @param {?} directives\r\n     * @param {?} pipes\r\n     * @param {?} ngModules\r\n     * @param {?} injectables\r\n     * @return {?}\r\n     */\r\n    AotCompiler.prototype._compileSrcFile = function (srcFileUrl, ngModuleByPipeOrDirective, directives, pipes, ngModules, injectables) {\r\n        var _this = this;\r\n        var /** @type {?} */ fileSuffix = splitTypescriptSuffix(srcFileUrl)[1];\r\n        var /** @type {?} */ statements = [];\r\n        var /** @type {?} */ exportedVars = [];\r\n        var /** @type {?} */ generatedFiles = [];\r\n        generatedFiles.push(this._createSummary(srcFileUrl, directives, pipes, ngModules, injectables, statements, exportedVars));\r\n        // compile all ng modules\r\n        exportedVars.push.apply(exportedVars, ngModules.map(function (ngModuleType) { return _this._compileModule(ngModuleType, statements); }));\r\n        // compile components\r\n        directives.forEach(function (dirType) {\r\n            var /** @type {?} */ compMeta = _this._metadataResolver.getDirectiveMetadata(/** @type {?} */ (dirType));\r\n            if (!compMeta.isComponent) {\r\n                return Promise.resolve(null);\r\n            }\r\n            var /** @type {?} */ ngModule = ngModuleByPipeOrDirective.get(dirType);\r\n            if (!ngModule) {\r\n                throw new Error(\"Internal Error: cannot determine the module for component \" + identifierName(compMeta.type) + \"!\");\r\n            }\r\n            _assertComponent(compMeta);\r\n            // compile styles\r\n            var /** @type {?} */ stylesCompileResults = _this._styleCompiler.compileComponent(compMeta);\r\n            stylesCompileResults.externalStylesheets.forEach(function (compiledStyleSheet) {\r\n                generatedFiles.push(_this._codgenStyles(srcFileUrl, compiledStyleSheet, fileSuffix));\r\n            });\r\n            // compile components\r\n            var /** @type {?} */ compViewVars = _this._compileComponent(compMeta, ngModule, ngModule.transitiveModule.directives, stylesCompileResults.componentStylesheet, fileSuffix, statements);\r\n            exportedVars.push(_this._compileComponentFactory(compMeta, ngModule, fileSuffix, statements), compViewVars.viewClassVar, compViewVars.compRenderTypeVar);\r\n        });\r\n        if (statements.length > 0) {\r\n            var /** @type {?} */ srcModule = this._codegenSourceModule(srcFileUrl, ngfactoryFilePath(srcFileUrl), statements, exportedVars);\r\n            generatedFiles.unshift(srcModule);\r\n        }\r\n        return generatedFiles;\r\n    };\r\n    /**\r\n     * @param {?} srcFileUrl\r\n     * @param {?} directives\r\n     * @param {?} pipes\r\n     * @param {?} ngModules\r\n     * @param {?} injectables\r\n     * @param {?} targetStatements\r\n     * @param {?} targetExportedVars\r\n     * @return {?}\r\n     */\r\n    AotCompiler.prototype._createSummary = function (srcFileUrl, directives, pipes, ngModules, injectables, targetStatements, targetExportedVars) {\r\n        var _this = this;\r\n        var /** @type {?} */ symbolSummaries = this._symbolResolver.getSymbolsOf(srcFileUrl)\r\n            .map(function (symbol) { return _this._symbolResolver.resolveSymbol(symbol); });\r\n        var /** @type {?} */ typeSummaries = ngModules.map(function (ref) { return ((_this._metadataResolver.getNgModuleSummary(ref))); }).concat(directives.map(function (ref) { return ((_this._metadataResolver.getDirectiveSummary(ref))); }), pipes.map(function (ref) { return ((_this._metadataResolver.getPipeSummary(ref))); }), injectables.map(function (ref) { return ((_this._metadataResolver.getInjectableSummary(ref))); }));\r\n        var _a = serializeSummaries(this._summaryResolver, this._symbolResolver, symbolSummaries, typeSummaries), json = _a.json, exportAs = _a.exportAs;\r\n        exportAs.forEach(function (entry) {\r\n            targetStatements.push(variable(entry.exportAs).set(importExpr({ reference: entry.symbol })).toDeclStmt());\r\n            targetExportedVars.push(entry.exportAs);\r\n        });\r\n        return new GeneratedFile(srcFileUrl, summaryFileName(srcFileUrl), json);\r\n    };\r\n    /**\r\n     * @param {?} ngModuleType\r\n     * @param {?} targetStatements\r\n     * @return {?}\r\n     */\r\n    AotCompiler.prototype._compileModule = function (ngModuleType, targetStatements) {\r\n        var /** @type {?} */ ngModule = ((this._metadataResolver.getNgModuleMetadata(ngModuleType)));\r\n        var /** @type {?} */ providers = [];\r\n        if (this._localeId) {\r\n            providers.push({\r\n                token: createIdentifierToken(Identifiers.LOCALE_ID),\r\n                useValue: this._localeId,\r\n            });\r\n        }\r\n        if (this._translationFormat) {\r\n            providers.push({\r\n                token: createIdentifierToken(Identifiers.TRANSLATIONS_FORMAT),\r\n                useValue: this._translationFormat\r\n            });\r\n        }\r\n        var /** @type {?} */ appCompileResult = this._ngModuleCompiler.compile(ngModule, providers);\r\n        targetStatements.push.apply(targetStatements, appCompileResult.statements);\r\n        return appCompileResult.ngModuleFactoryVar;\r\n    };\r\n    /**\r\n     * @param {?} compMeta\r\n     * @param {?} ngModule\r\n     * @param {?} fileSuffix\r\n     * @param {?} targetStatements\r\n     * @return {?}\r\n     */\r\n    AotCompiler.prototype._compileComponentFactory = function (compMeta, ngModule, fileSuffix, targetStatements) {\r\n        var /** @type {?} */ hostType = this._metadataResolver.getHostComponentType(compMeta.type.reference);\r\n        var /** @type {?} */ hostMeta = createHostComponentMeta(hostType, compMeta, this._metadataResolver.getHostComponentViewClass(hostType));\r\n        var /** @type {?} */ hostViewFactoryVar = this._compileComponent(hostMeta, ngModule, [compMeta.type], null, fileSuffix, targetStatements)\r\n            .viewClassVar;\r\n        var /** @type {?} */ compFactoryVar = componentFactoryName(compMeta.type.reference);\r\n        var /** @type {?} */ inputsExprs = [];\r\n        for (var /** @type {?} */ propName in compMeta.inputs) {\r\n            var /** @type {?} */ templateName = compMeta.inputs[propName];\r\n            // Don't quote so that the key gets minified...\r\n            inputsExprs.push(new LiteralMapEntry(propName, literal(templateName), false));\r\n        }\r\n        var /** @type {?} */ outputsExprs = [];\r\n        for (var /** @type {?} */ propName in compMeta.outputs) {\r\n            var /** @type {?} */ templateName = compMeta.outputs[propName];\r\n            // Don't quote so that the key gets minified...\r\n            outputsExprs.push(new LiteralMapEntry(propName, literal(templateName), false));\r\n        }\r\n        targetStatements.push(variable(compFactoryVar)\r\n            .set(importExpr(createIdentifier(Identifiers.createComponentFactory)).callFn([\r\n            literal(compMeta.selector), importExpr(compMeta.type),\r\n            variable(hostViewFactoryVar), new LiteralMapExpr(inputsExprs),\r\n            new LiteralMapExpr(outputsExprs),\r\n            literalArr(/** @type {?} */ ((compMeta.template)).ngContentSelectors.map(function (selector) { return literal(selector); }))\r\n        ]))\r\n            .toDeclStmt(importType(createIdentifier(Identifiers.ComponentFactory), [/** @type {?} */ ((importType(compMeta.type)))], [TypeModifier.Const]), [StmtModifier.Final]));\r\n        return compFactoryVar;\r\n    };\r\n    /**\r\n     * @param {?} compMeta\r\n     * @param {?} ngModule\r\n     * @param {?} directiveIdentifiers\r\n     * @param {?} componentStyles\r\n     * @param {?} fileSuffix\r\n     * @param {?} targetStatements\r\n     * @return {?}\r\n     */\r\n    AotCompiler.prototype._compileComponent = function (compMeta, ngModule, directiveIdentifiers, componentStyles, fileSuffix, targetStatements) {\r\n        var _this = this;\r\n        var /** @type {?} */ directives = directiveIdentifiers.map(function (dir) { return _this._metadataResolver.getDirectiveSummary(dir.reference); });\r\n        var /** @type {?} */ pipes = ngModule.transitiveModule.pipes.map(function (pipe) { return _this._metadataResolver.getPipeSummary(pipe.reference); });\r\n        var _a = this._templateParser.parse(compMeta, /** @type {?} */ ((((compMeta.template)).template)), directives, pipes, ngModule.schemas, templateSourceUrl(ngModule.type, compMeta, /** @type {?} */ ((compMeta.template)))), parsedTemplate = _a.template, usedPipes = _a.pipes;\r\n        var /** @type {?} */ stylesExpr = componentStyles ? variable(componentStyles.stylesVar) : literalArr([]);\r\n        var /** @type {?} */ viewResult = this._viewCompiler.compileComponent(compMeta, parsedTemplate, stylesExpr, usedPipes);\r\n        if (componentStyles) {\r\n            targetStatements.push.apply(targetStatements, _resolveStyleStatements(this._symbolResolver, componentStyles, fileSuffix));\r\n        }\r\n        targetStatements.push.apply(targetStatements, viewResult.statements);\r\n        return { viewClassVar: viewResult.viewClassVar, compRenderTypeVar: viewResult.rendererTypeVar };\r\n    };\r\n    /**\r\n     * @param {?} fileUrl\r\n     * @param {?} stylesCompileResult\r\n     * @param {?} fileSuffix\r\n     * @return {?}\r\n     */\r\n    AotCompiler.prototype._codgenStyles = function (fileUrl, stylesCompileResult, fileSuffix) {\r\n        _resolveStyleStatements(this._symbolResolver, stylesCompileResult, fileSuffix);\r\n        return this._codegenSourceModule(fileUrl, _stylesModuleUrl(/** @type {?} */ ((stylesCompileResult.meta.moduleUrl)), stylesCompileResult.isShimmed, fileSuffix), stylesCompileResult.statements, [stylesCompileResult.stylesVar]);\r\n    };\r\n    /**\r\n     * @param {?} srcFileUrl\r\n     * @param {?} genFileUrl\r\n     * @param {?} statements\r\n     * @param {?} exportedVars\r\n     * @return {?}\r\n     */\r\n    AotCompiler.prototype._codegenSourceModule = function (srcFileUrl, genFileUrl, statements, exportedVars) {\r\n        return new GeneratedFile(srcFileUrl, genFileUrl, this._outputEmitter.emitStatements(sourceUrl(srcFileUrl), genFileUrl, statements, exportedVars, this._genFilePreamble));\r\n    };\r\n    return AotCompiler;\r\n}());\r\n/**\r\n * @param {?} reflector\r\n * @param {?} compileResult\r\n * @param {?} fileSuffix\r\n * @return {?}\r\n */\r\nfunction _resolveStyleStatements(reflector, compileResult, fileSuffix) {\r\n    compileResult.dependencies.forEach(function (dep) {\r\n        dep.valuePlaceholder.reference = reflector.getStaticSymbol(_stylesModuleUrl(dep.moduleUrl, dep.isShimmed, fileSuffix), dep.name);\r\n    });\r\n    return compileResult.statements;\r\n}\r\n/**\r\n * @param {?} stylesheetUrl\r\n * @param {?} shim\r\n * @param {?} suffix\r\n * @return {?}\r\n */\r\nfunction _stylesModuleUrl(stylesheetUrl, shim, suffix) {\r\n    return \"\" + stylesheetUrl + (shim ? '.shim' : '') + \".ngstyle\" + suffix;\r\n}\r\n/**\r\n * @param {?} meta\r\n * @return {?}\r\n */\r\nfunction _assertComponent(meta) {\r\n    if (!meta.isComponent) {\r\n        throw new Error(\"Could not compile '\" + identifierName(meta.type) + \"' because it is not a component.\");\r\n    }\r\n}\r\n/**\r\n * @param {?} programStaticSymbols\r\n * @param {?} host\r\n * @param {?} metadataResolver\r\n * @return {?}\r\n */\r\nfunction analyzeNgModules(programStaticSymbols, host, metadataResolver) {\r\n    var _a = _createNgModules(programStaticSymbols, host, metadataResolver), ngModules = _a.ngModules, symbolsMissingModule = _a.symbolsMissingModule;\r\n    return _analyzeNgModules(programStaticSymbols, ngModules, symbolsMissingModule, metadataResolver);\r\n}\r\n/**\r\n * @param {?} programStaticSymbols\r\n * @param {?} host\r\n * @param {?} metadataResolver\r\n * @return {?}\r\n */\r\nfunction analyzeAndValidateNgModules(programStaticSymbols, host, metadataResolver) {\r\n    var /** @type {?} */ result = analyzeNgModules(programStaticSymbols, host, metadataResolver);\r\n    if (result.symbolsMissingModule && result.symbolsMissingModule.length) {\r\n        var /** @type {?} */ messages = result.symbolsMissingModule.map(function (s) { return \"Cannot determine the module for class \" + s.name + \" in \" + s.filePath + \"! Add \" + s.name + \" to the NgModule to fix it.\"; });\r\n        throw syntaxError(messages.join('\\n'));\r\n    }\r\n    return result;\r\n}\r\n/**\r\n * @param {?} programSymbols\r\n * @param {?} ngModuleMetas\r\n * @param {?} symbolsMissingModule\r\n * @param {?} metadataResolver\r\n * @return {?}\r\n */\r\nfunction _analyzeNgModules(programSymbols, ngModuleMetas, symbolsMissingModule, metadataResolver) {\r\n    var /** @type {?} */ moduleMetasByRef = new Map();\r\n    ngModuleMetas.forEach(function (ngModule) { return moduleMetasByRef.set(ngModule.type.reference, ngModule); });\r\n    var /** @type {?} */ ngModuleByPipeOrDirective = new Map();\r\n    var /** @type {?} */ ngModulesByFile = new Map();\r\n    var /** @type {?} */ ngDirectivesByFile = new Map();\r\n    var /** @type {?} */ ngPipesByFile = new Map();\r\n    var /** @type {?} */ ngInjectablesByFile = new Map();\r\n    var /** @type {?} */ filePaths = new Set();\r\n    // Make sure we produce an analyzed file for each input file\r\n    programSymbols.forEach(function (symbol) {\r\n        var /** @type {?} */ filePath = symbol.filePath;\r\n        filePaths.add(filePath);\r\n        if (metadataResolver.isInjectable(symbol)) {\r\n            ngInjectablesByFile.set(filePath, (ngInjectablesByFile.get(filePath) || []).concat(symbol));\r\n        }\r\n    });\r\n    // Looping over all modules to construct:\r\n    // - a map from file to modules `ngModulesByFile`,\r\n    // - a map from file to directives `ngDirectivesByFile`,\r\n    // - a map from file to pipes `ngPipesByFile`,\r\n    // - a map from directive/pipe to module `ngModuleByPipeOrDirective`.\r\n    ngModuleMetas.forEach(function (ngModuleMeta) {\r\n        var /** @type {?} */ srcFileUrl = ngModuleMeta.type.reference.filePath;\r\n        filePaths.add(srcFileUrl);\r\n        ngModulesByFile.set(srcFileUrl, (ngModulesByFile.get(srcFileUrl) || []).concat(ngModuleMeta.type.reference));\r\n        ngModuleMeta.declaredDirectives.forEach(function (dirIdentifier) {\r\n            var /** @type {?} */ fileUrl = dirIdentifier.reference.filePath;\r\n            filePaths.add(fileUrl);\r\n            ngDirectivesByFile.set(fileUrl, (ngDirectivesByFile.get(fileUrl) || []).concat(dirIdentifier.reference));\r\n            ngModuleByPipeOrDirective.set(dirIdentifier.reference, ngModuleMeta);\r\n        });\r\n        ngModuleMeta.declaredPipes.forEach(function (pipeIdentifier) {\r\n            var /** @type {?} */ fileUrl = pipeIdentifier.reference.filePath;\r\n            filePaths.add(fileUrl);\r\n            ngPipesByFile.set(fileUrl, (ngPipesByFile.get(fileUrl) || []).concat(pipeIdentifier.reference));\r\n            ngModuleByPipeOrDirective.set(pipeIdentifier.reference, ngModuleMeta);\r\n        });\r\n    });\r\n    var /** @type {?} */ files = [];\r\n    filePaths.forEach(function (srcUrl) {\r\n        var /** @type {?} */ directives = ngDirectivesByFile.get(srcUrl) || [];\r\n        var /** @type {?} */ pipes = ngPipesByFile.get(srcUrl) || [];\r\n        var /** @type {?} */ ngModules = ngModulesByFile.get(srcUrl) || [];\r\n        var /** @type {?} */ injectables = ngInjectablesByFile.get(srcUrl) || [];\r\n        files.push({ srcUrl: srcUrl, directives: directives, pipes: pipes, ngModules: ngModules, injectables: injectables });\r\n    });\r\n    return {\r\n        // map directive/pipe to module\r\n        ngModuleByPipeOrDirective: ngModuleByPipeOrDirective,\r\n        // list modules and directives for every source file\r\n        files: files,\r\n        ngModules: ngModuleMetas, symbolsMissingModule: symbolsMissingModule\r\n    };\r\n}\r\n/**\r\n * @param {?} staticSymbolResolver\r\n * @param {?} files\r\n * @param {?} host\r\n * @return {?}\r\n */\r\nfunction extractProgramSymbols(staticSymbolResolver, files, host) {\r\n    var /** @type {?} */ staticSymbols = [];\r\n    files.filter(function (fileName) { return host.isSourceFile(fileName); }).forEach(function (sourceFile) {\r\n        staticSymbolResolver.getSymbolsOf(sourceFile).forEach(function (symbol) {\r\n            var /** @type {?} */ resolvedSymbol = staticSymbolResolver.resolveSymbol(symbol);\r\n            var /** @type {?} */ symbolMeta = resolvedSymbol.metadata;\r\n            if (symbolMeta) {\r\n                if (symbolMeta.__symbolic != 'error') {\r\n                    // Ignore symbols that are only included to record error information.\r\n                    staticSymbols.push(resolvedSymbol.symbol);\r\n                }\r\n            }\r\n        });\r\n    });\r\n    return staticSymbols;\r\n}\r\n/**\r\n * @param {?} programStaticSymbols\r\n * @param {?} host\r\n * @param {?} metadataResolver\r\n * @return {?}\r\n */\r\nfunction _createNgModules(programStaticSymbols, host, metadataResolver) {\r\n    var /** @type {?} */ ngModules = new Map();\r\n    var /** @type {?} */ programPipesAndDirectives = [];\r\n    var /** @type {?} */ ngModulePipesAndDirective = new Set();\r\n    var /** @type {?} */ addNgModule = function (staticSymbol) {\r\n        if (ngModules.has(staticSymbol) || !host.isSourceFile(staticSymbol.filePath)) {\r\n            return false;\r\n        }\r\n        var /** @type {?} */ ngModule = metadataResolver.getNgModuleMetadata(staticSymbol, false);\r\n        if (ngModule) {\r\n            ngModules.set(ngModule.type.reference, ngModule);\r\n            ngModule.declaredDirectives.forEach(function (dir) { return ngModulePipesAndDirective.add(dir.reference); });\r\n            ngModule.declaredPipes.forEach(function (pipe) { return ngModulePipesAndDirective.add(pipe.reference); });\r\n            // For every input module add the list of transitively included modules\r\n            ngModule.transitiveModule.modules.forEach(function (modMeta) { return addNgModule(modMeta.reference); });\r\n        }\r\n        return !!ngModule;\r\n    };\r\n    programStaticSymbols.forEach(function (staticSymbol) {\r\n        if (!addNgModule(staticSymbol) &&\r\n            (metadataResolver.isDirective(staticSymbol) || metadataResolver.isPipe(staticSymbol))) {\r\n            programPipesAndDirectives.push(staticSymbol);\r\n        }\r\n    });\r\n    // Throw an error if any of the program pipe or directives is not declared by a module\r\n    var /** @type {?} */ symbolsMissingModule = programPipesAndDirectives.filter(function (s) { return !ngModulePipesAndDirective.has(s); });\r\n    return { ngModules: Array.from(ngModules.values()), symbolsMissingModule: symbolsMissingModule };\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar StaticAndDynamicReflectionCapabilities = (function () {\r\n    /**\r\n     * @param {?} staticDelegate\r\n     */\r\n    function StaticAndDynamicReflectionCapabilities(staticDelegate) {\r\n        this.staticDelegate = staticDelegate;\r\n        this.dynamicDelegate = new ɵReflectionCapabilities();\r\n    }\r\n    /**\r\n     * @param {?} staticDelegate\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.install = function (staticDelegate) {\r\n        ɵreflector.updateCapabilities(new StaticAndDynamicReflectionCapabilities(staticDelegate));\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.isReflectionEnabled = function () { return true; };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.factory = function (type) { return this.dynamicDelegate.factory(type); };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} lcProperty\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.hasLifecycleHook = function (type, lcProperty) {\r\n        return isStaticType(type) ? this.staticDelegate.hasLifecycleHook(type, lcProperty) :\r\n            this.dynamicDelegate.hasLifecycleHook(type, lcProperty);\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.parameters = function (type) {\r\n        return isStaticType(type) ? this.staticDelegate.parameters(type) :\r\n            this.dynamicDelegate.parameters(type);\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.annotations = function (type) {\r\n        return isStaticType(type) ? this.staticDelegate.annotations(type) :\r\n            this.dynamicDelegate.annotations(type);\r\n    };\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.propMetadata = function (typeOrFunc) {\r\n        return isStaticType(typeOrFunc) ? this.staticDelegate.propMetadata(typeOrFunc) :\r\n            this.dynamicDelegate.propMetadata(typeOrFunc);\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.getter = function (name) { return this.dynamicDelegate.getter(name); };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.setter = function (name) { return this.dynamicDelegate.setter(name); };\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.method = function (name) { return this.dynamicDelegate.method(name); };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.importUri = function (type) { return ((this.staticDelegate.importUri(type))); };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.resourceUri = function (type) { return this.staticDelegate.resourceUri(type); };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} moduleUrl\r\n     * @param {?} members\r\n     * @param {?} runtime\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.resolveIdentifier = function (name, moduleUrl, members, runtime) {\r\n        return this.staticDelegate.resolveIdentifier(name, moduleUrl, members);\r\n    };\r\n    /**\r\n     * @param {?} enumIdentifier\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    StaticAndDynamicReflectionCapabilities.prototype.resolveEnum = function (enumIdentifier, name) {\r\n        if (isStaticType(enumIdentifier)) {\r\n            return this.staticDelegate.resolveEnum(enumIdentifier, name);\r\n        }\r\n        else {\r\n            return null;\r\n        }\r\n    };\r\n    return StaticAndDynamicReflectionCapabilities;\r\n}());\r\n/**\r\n * @param {?} type\r\n * @return {?}\r\n */\r\nfunction isStaticType(type) {\r\n    return typeof type === 'object' && type.name && type.filePath;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ANGULAR_CORE = '@angular/core';\r\nvar HIDDEN_KEY = /^\\$.*\\$$/;\r\nvar IGNORE = {\r\n    __symbolic: 'ignore'\r\n};\r\n/**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\nfunction shouldIgnore(value) {\r\n    return value && value.__symbolic == 'ignore';\r\n}\r\n/**\r\n * A static reflector implements enough of the Reflector API that is necessary to compile\r\n * templates statically.\r\n */\r\nvar StaticReflector = (function () {\r\n    /**\r\n     * @param {?} summaryResolver\r\n     * @param {?} symbolResolver\r\n     * @param {?=} knownMetadataClasses\r\n     * @param {?=} knownMetadataFunctions\r\n     * @param {?=} errorRecorder\r\n     */\r\n    function StaticReflector(summaryResolver, symbolResolver, knownMetadataClasses, knownMetadataFunctions, errorRecorder) {\r\n        if (knownMetadataClasses === void 0) { knownMetadataClasses = []; }\r\n        if (knownMetadataFunctions === void 0) { knownMetadataFunctions = []; }\r\n        var _this = this;\r\n        this.summaryResolver = summaryResolver;\r\n        this.symbolResolver = symbolResolver;\r\n        this.errorRecorder = errorRecorder;\r\n        this.annotationCache = new Map();\r\n        this.propertyCache = new Map();\r\n        this.parameterCache = new Map();\r\n        this.methodCache = new Map();\r\n        this.conversionMap = new Map();\r\n        this.annotationForParentClassWithSummaryKind = new Map();\r\n        this.annotationNames = new Map();\r\n        this.initializeConversionMap();\r\n        knownMetadataClasses.forEach(function (kc) { return _this._registerDecoratorOrConstructor(_this.getStaticSymbol(kc.filePath, kc.name), kc.ctor); });\r\n        knownMetadataFunctions.forEach(function (kf) { return _this._registerFunction(_this.getStaticSymbol(kf.filePath, kf.name), kf.fn); });\r\n        this.annotationForParentClassWithSummaryKind.set(CompileSummaryKind.Directive, [Directive, Component]);\r\n        this.annotationForParentClassWithSummaryKind.set(CompileSummaryKind.Pipe, [Pipe]);\r\n        this.annotationForParentClassWithSummaryKind.set(CompileSummaryKind.NgModule, [NgModule]);\r\n        this.annotationForParentClassWithSummaryKind.set(CompileSummaryKind.Injectable, [Injectable, Pipe, Directive, Component, NgModule]);\r\n        this.annotationNames.set(Directive, 'Directive');\r\n        this.annotationNames.set(Component, 'Component');\r\n        this.annotationNames.set(Pipe, 'Pipe');\r\n        this.annotationNames.set(NgModule, 'NgModule');\r\n        this.annotationNames.set(Injectable, 'Injectable');\r\n    }\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.importUri = function (typeOrFunc) {\r\n        var /** @type {?} */ staticSymbol = this.findSymbolDeclaration(typeOrFunc);\r\n        return staticSymbol ? staticSymbol.filePath : null;\r\n    };\r\n    /**\r\n     * @param {?} typeOrFunc\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.resourceUri = function (typeOrFunc) {\r\n        var /** @type {?} */ staticSymbol = this.findSymbolDeclaration(typeOrFunc);\r\n        return this.symbolResolver.getResourcePath(staticSymbol);\r\n    };\r\n    /**\r\n     * @param {?} name\r\n     * @param {?} moduleUrl\r\n     * @param {?} members\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.resolveIdentifier = function (name, moduleUrl, members) {\r\n        var /** @type {?} */ importSymbol = this.getStaticSymbol(moduleUrl, name);\r\n        var /** @type {?} */ rootSymbol = this.findDeclaration(moduleUrl, name);\r\n        if (importSymbol != rootSymbol) {\r\n            this.symbolResolver.recordImportAs(rootSymbol, importSymbol);\r\n        }\r\n        if (members && members.length) {\r\n            return this.getStaticSymbol(rootSymbol.filePath, rootSymbol.name, members);\r\n        }\r\n        return rootSymbol;\r\n    };\r\n    /**\r\n     * @param {?} moduleUrl\r\n     * @param {?} name\r\n     * @param {?=} containingFile\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.findDeclaration = function (moduleUrl, name, containingFile) {\r\n        return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(moduleUrl, name, containingFile));\r\n    };\r\n    /**\r\n     * @param {?} symbol\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.findSymbolDeclaration = function (symbol) {\r\n        var /** @type {?} */ resolvedSymbol = this.symbolResolver.resolveSymbol(symbol);\r\n        if (resolvedSymbol && resolvedSymbol.metadata instanceof StaticSymbol) {\r\n            return this.findSymbolDeclaration(resolvedSymbol.metadata);\r\n        }\r\n        else {\r\n            return symbol;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} enumIdentifier\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.resolveEnum = function (enumIdentifier, name) {\r\n        var /** @type {?} */ staticSymbol = enumIdentifier;\r\n        var /** @type {?} */ members = (staticSymbol.members || []).concat(name);\r\n        return this.getStaticSymbol(staticSymbol.filePath, staticSymbol.name, members);\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.annotations = function (type) {\r\n        var _this = this;\r\n        var /** @type {?} */ annotations = this.annotationCache.get(type);\r\n        if (!annotations) {\r\n            annotations = [];\r\n            var /** @type {?} */ classMetadata = this.getTypeMetadata(type);\r\n            var /** @type {?} */ parentType = this.findParentType(type, classMetadata);\r\n            if (parentType) {\r\n                var /** @type {?} */ parentAnnotations = this.annotations(parentType);\r\n                annotations.push.apply(annotations, parentAnnotations);\r\n            }\r\n            var /** @type {?} */ ownAnnotations_1 = [];\r\n            if (classMetadata['decorators']) {\r\n                ownAnnotations_1 = this.simplify(type, classMetadata['decorators']);\r\n                annotations.push.apply(annotations, ownAnnotations_1);\r\n            }\r\n            if (parentType && !this.summaryResolver.isLibraryFile(type.filePath) &&\r\n                this.summaryResolver.isLibraryFile(parentType.filePath)) {\r\n                var /** @type {?} */ summary = this.summaryResolver.resolveSummary(parentType);\r\n                if (summary && summary.type) {\r\n                    var /** @type {?} */ requiredAnnotationTypes = ((this.annotationForParentClassWithSummaryKind.get(/** @type {?} */ ((summary.type.summaryKind)))));\r\n                    var /** @type {?} */ typeHasRequiredAnnotation = requiredAnnotationTypes.some(function (requiredType) { return ownAnnotations_1.some(function (ann) { return ann instanceof requiredType; }); });\r\n                    if (!typeHasRequiredAnnotation) {\r\n                        this.reportError(syntaxError(\"Class \" + type.name + \" in \" + type.filePath + \" extends from a \" + CompileSummaryKind[((summary.type.summaryKind))] + \" in another compilation unit without duplicating the decorator. \" +\r\n                            (\"Please add a \" + requiredAnnotationTypes.map(function (type) { return _this.annotationNames.get(type); }).join(' or ') + \" decorator to the class.\")), type);\r\n                    }\r\n                }\r\n            }\r\n            this.annotationCache.set(type, annotations.filter(function (ann) { return !!ann; }));\r\n        }\r\n        return annotations;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.propMetadata = function (type) {\r\n        var _this = this;\r\n        var /** @type {?} */ propMetadata = this.propertyCache.get(type);\r\n        if (!propMetadata) {\r\n            var /** @type {?} */ classMetadata = this.getTypeMetadata(type);\r\n            propMetadata = {};\r\n            var /** @type {?} */ parentType = this.findParentType(type, classMetadata);\r\n            if (parentType) {\r\n                var /** @type {?} */ parentPropMetadata_1 = this.propMetadata(parentType);\r\n                Object.keys(parentPropMetadata_1).forEach(function (parentProp) {\r\n                    ((propMetadata))[parentProp] = parentPropMetadata_1[parentProp];\r\n                });\r\n            }\r\n            var /** @type {?} */ members_1 = classMetadata['members'] || {};\r\n            Object.keys(members_1).forEach(function (propName) {\r\n                var /** @type {?} */ propData = members_1[propName];\r\n                var /** @type {?} */ prop = ((propData))\r\n                    .find(function (a) { return a['__symbolic'] == 'property' || a['__symbolic'] == 'method'; });\r\n                var /** @type {?} */ decorators = [];\r\n                if (((propMetadata))[propName]) {\r\n                    decorators.push.apply(decorators, ((propMetadata))[propName]);\r\n                } /** @type {?} */\r\n                ((propMetadata))[propName] = decorators;\r\n                if (prop && prop['decorators']) {\r\n                    decorators.push.apply(decorators, _this.simplify(type, prop['decorators']));\r\n                }\r\n            });\r\n            this.propertyCache.set(type, propMetadata);\r\n        }\r\n        return propMetadata;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.parameters = function (type) {\r\n        if (!(type instanceof StaticSymbol)) {\r\n            this.reportError(new Error(\"parameters received \" + JSON.stringify(type) + \" which is not a StaticSymbol\"), type);\r\n            return [];\r\n        }\r\n        try {\r\n            var /** @type {?} */ parameters_1 = this.parameterCache.get(type);\r\n            if (!parameters_1) {\r\n                var /** @type {?} */ classMetadata = this.getTypeMetadata(type);\r\n                var /** @type {?} */ parentType = this.findParentType(type, classMetadata);\r\n                var /** @type {?} */ members = classMetadata ? classMetadata['members'] : null;\r\n                var /** @type {?} */ ctorData = members ? members['__ctor__'] : null;\r\n                if (ctorData) {\r\n                    var /** @type {?} */ ctor = ((ctorData)).find(function (a) { return a['__symbolic'] == 'constructor'; });\r\n                    var /** @type {?} */ parameterTypes = (this.simplify(type, ctor['parameters'] || []));\r\n                    var /** @type {?} */ parameterDecorators_1 = (this.simplify(type, ctor['parameterDecorators'] || []));\r\n                    parameters_1 = [];\r\n                    parameterTypes.forEach(function (paramType, index) {\r\n                        var /** @type {?} */ nestedResult = [];\r\n                        if (paramType) {\r\n                            nestedResult.push(paramType);\r\n                        }\r\n                        var /** @type {?} */ decorators = parameterDecorators_1 ? parameterDecorators_1[index] : null;\r\n                        if (decorators) {\r\n                            nestedResult.push.apply(nestedResult, decorators);\r\n                        } /** @type {?} */\r\n                        ((parameters_1)).push(nestedResult);\r\n                    });\r\n                }\r\n                else if (parentType) {\r\n                    parameters_1 = this.parameters(parentType);\r\n                }\r\n                if (!parameters_1) {\r\n                    parameters_1 = [];\r\n                }\r\n                this.parameterCache.set(type, parameters_1);\r\n            }\r\n            return parameters_1;\r\n        }\r\n        catch (e) {\r\n            console.error(\"Failed on type \" + JSON.stringify(type) + \" with error \" + e);\r\n            throw e;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype._methodNames = function (type) {\r\n        var /** @type {?} */ methodNames = this.methodCache.get(type);\r\n        if (!methodNames) {\r\n            var /** @type {?} */ classMetadata = this.getTypeMetadata(type);\r\n            methodNames = {};\r\n            var /** @type {?} */ parentType = this.findParentType(type, classMetadata);\r\n            if (parentType) {\r\n                var /** @type {?} */ parentMethodNames_1 = this._methodNames(parentType);\r\n                Object.keys(parentMethodNames_1).forEach(function (parentProp) {\r\n                    ((methodNames))[parentProp] = parentMethodNames_1[parentProp];\r\n                });\r\n            }\r\n            var /** @type {?} */ members_2 = classMetadata['members'] || {};\r\n            Object.keys(members_2).forEach(function (propName) {\r\n                var /** @type {?} */ propData = members_2[propName];\r\n                var /** @type {?} */ isMethod = ((propData)).some(function (a) { return a['__symbolic'] == 'method'; }); /** @type {?} */\r\n                ((methodNames))[propName] = ((methodNames))[propName] || isMethod;\r\n            });\r\n            this.methodCache.set(type, methodNames);\r\n        }\r\n        return methodNames;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} classMetadata\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.findParentType = function (type, classMetadata) {\r\n        var /** @type {?} */ parentType = this.trySimplify(type, classMetadata['extends']);\r\n        if (parentType instanceof StaticSymbol) {\r\n            return parentType;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} lcProperty\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.hasLifecycleHook = function (type, lcProperty) {\r\n        if (!(type instanceof StaticSymbol)) {\r\n            this.reportError(new Error(\"hasLifecycleHook received \" + JSON.stringify(type) + \" which is not a StaticSymbol\"), type);\r\n        }\r\n        try {\r\n            return !!this._methodNames(type)[lcProperty];\r\n        }\r\n        catch (e) {\r\n            console.error(\"Failed on type \" + JSON.stringify(type) + \" with error \" + e);\r\n            throw e;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} ctor\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype._registerDecoratorOrConstructor = function (type, ctor) {\r\n        this.conversionMap.set(type, function (context, args) { return new (ctor.bind.apply(ctor, [void 0].concat(args)))(); });\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @param {?} fn\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype._registerFunction = function (type, fn) {\r\n        this.conversionMap.set(type, function (context, args) { return fn.apply(undefined, args); });\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.initializeConversionMap = function () {\r\n        this.injectionToken = this.findDeclaration(ANGULAR_CORE, 'InjectionToken');\r\n        this.opaqueToken = this.findDeclaration(ANGULAR_CORE, 'OpaqueToken');\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Host'), Host);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Injectable'), Injectable);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Self'), Self);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'SkipSelf'), SkipSelf);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Inject'), Inject);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Optional'), Optional);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Attribute'), Attribute);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'ContentChild'), ContentChild);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'ContentChildren'), ContentChildren);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'ViewChild'), ViewChild);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'ViewChildren'), ViewChildren);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Input'), Input);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Output'), Output);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Pipe'), Pipe);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'HostBinding'), HostBinding);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'HostListener'), HostListener);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Directive'), Directive);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Component'), Component);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'NgModule'), NgModule);\r\n        // Note: Some metadata classes can be used directly with Provider.deps.\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Host'), Host);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Self'), Self);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'SkipSelf'), SkipSelf);\r\n        this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Optional'), Optional);\r\n        this._registerFunction(this.findDeclaration(ANGULAR_CORE, 'trigger'), trigger);\r\n        this._registerFunction(this.findDeclaration(ANGULAR_CORE, 'state'), state);\r\n        this._registerFunction(this.findDeclaration(ANGULAR_CORE, 'transition'), transition);\r\n        this._registerFunction(this.findDeclaration(ANGULAR_CORE, 'style'), style);\r\n        this._registerFunction(this.findDeclaration(ANGULAR_CORE, 'animate'), animate);\r\n        this._registerFunction(this.findDeclaration(ANGULAR_CORE, 'keyframes'), keyframes);\r\n        this._registerFunction(this.findDeclaration(ANGULAR_CORE, 'sequence'), sequence);\r\n        this._registerFunction(this.findDeclaration(ANGULAR_CORE, 'group'), group);\r\n    };\r\n    /**\r\n     * getStaticSymbol produces a Type whose metadata is known but whose implementation is not loaded.\r\n     * All types passed to the StaticResolver should be pseudo-types returned by this method.\r\n     *\r\n     * @param {?} declarationFile the absolute path of the file where the symbol is declared\r\n     * @param {?} name the name of the type.\r\n     * @param {?=} members\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.getStaticSymbol = function (declarationFile, name, members) {\r\n        return this.symbolResolver.getStaticSymbol(declarationFile, name, members);\r\n    };\r\n    /**\r\n     * @param {?} error\r\n     * @param {?} context\r\n     * @param {?=} path\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.reportError = function (error, context, path) {\r\n        if (this.errorRecorder) {\r\n            this.errorRecorder(error, (context && context.filePath) || path);\r\n        }\r\n        else {\r\n            throw error;\r\n        }\r\n    };\r\n    /**\r\n     * Simplify but discard any errors\r\n     * @param {?} context\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.trySimplify = function (context, value) {\r\n        var /** @type {?} */ originalRecorder = this.errorRecorder;\r\n        this.errorRecorder = function (error, fileName) { };\r\n        var /** @type {?} */ result = this.simplify(context, value);\r\n        this.errorRecorder = originalRecorder;\r\n        return result;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} context\r\n     * @param {?} value\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.simplify = function (context, value) {\r\n        var _this = this;\r\n        var /** @type {?} */ self = this;\r\n        var /** @type {?} */ scope = BindingScope.empty;\r\n        var /** @type {?} */ calling = new Map();\r\n        /**\r\n         * @param {?} context\r\n         * @param {?} value\r\n         * @param {?} depth\r\n         * @return {?}\r\n         */\r\n        function simplifyInContext(context, value, depth) {\r\n            /**\r\n             * @param {?} staticSymbol\r\n             * @return {?}\r\n             */\r\n            function resolveReferenceValue(staticSymbol) {\r\n                var /** @type {?} */ resolvedSymbol = self.symbolResolver.resolveSymbol(staticSymbol);\r\n                return resolvedSymbol ? resolvedSymbol.metadata : null;\r\n            }\r\n            /**\r\n             * @param {?} functionSymbol\r\n             * @param {?} targetFunction\r\n             * @param {?} args\r\n             * @return {?}\r\n             */\r\n            function simplifyCall(functionSymbol, targetFunction, args) {\r\n                if (targetFunction && targetFunction['__symbolic'] == 'function') {\r\n                    if (calling.get(functionSymbol)) {\r\n                        throw new Error('Recursion not supported');\r\n                    }\r\n                    calling.set(functionSymbol, true);\r\n                    try {\r\n                        var /** @type {?} */ value_1 = targetFunction['value'];\r\n                        if (value_1 && (depth != 0 || value_1.__symbolic != 'error')) {\r\n                            var /** @type {?} */ parameters = targetFunction['parameters'];\r\n                            var /** @type {?} */ defaults = targetFunction.defaults;\r\n                            args = args.map(function (arg) { return simplifyInContext(context, arg, depth + 1); })\r\n                                .map(function (arg) { return shouldIgnore(arg) ? undefined : arg; });\r\n                            if (defaults && defaults.length > args.length) {\r\n                                args.push.apply(args, defaults.slice(args.length).map(function (value) { return simplify(value); }));\r\n                            }\r\n                            var /** @type {?} */ functionScope = BindingScope.build();\r\n                            for (var /** @type {?} */ i = 0; i < parameters.length; i++) {\r\n                                functionScope.define(parameters[i], args[i]);\r\n                            }\r\n                            var /** @type {?} */ oldScope = scope;\r\n                            var /** @type {?} */ result_1;\r\n                            try {\r\n                                scope = functionScope.done();\r\n                                result_1 = simplifyInContext(functionSymbol, value_1, depth + 1);\r\n                            }\r\n                            finally {\r\n                                scope = oldScope;\r\n                            }\r\n                            return result_1;\r\n                        }\r\n                    }\r\n                    finally {\r\n                        calling.delete(functionSymbol);\r\n                    }\r\n                }\r\n                if (depth === 0) {\r\n                    // If depth is 0 we are evaluating the top level expression that is describing element\r\n                    // decorator. In this case, it is a decorator we don't understand, such as a custom\r\n                    // non-angular decorator, and we should just ignore it.\r\n                    return IGNORE;\r\n                }\r\n                return simplify({ __symbolic: 'error', message: 'Function call not supported', context: functionSymbol });\r\n            }\r\n            /**\r\n             * @param {?} expression\r\n             * @return {?}\r\n             */\r\n            function simplify(expression) {\r\n                if (isPrimitive(expression)) {\r\n                    return expression;\r\n                }\r\n                if (expression instanceof Array) {\r\n                    var /** @type {?} */ result_2 = [];\r\n                    for (var _i = 0, _a = ((expression)); _i < _a.length; _i++) {\r\n                        var item = _a[_i];\r\n                        // Check for a spread expression\r\n                        if (item && item.__symbolic === 'spread') {\r\n                            var /** @type {?} */ spreadArray = simplify(item.expression);\r\n                            if (Array.isArray(spreadArray)) {\r\n                                for (var _b = 0, spreadArray_1 = spreadArray; _b < spreadArray_1.length; _b++) {\r\n                                    var spreadItem = spreadArray_1[_b];\r\n                                    result_2.push(spreadItem);\r\n                                }\r\n                                continue;\r\n                            }\r\n                        }\r\n                        var /** @type {?} */ value_2 = simplify(item);\r\n                        if (shouldIgnore(value_2)) {\r\n                            continue;\r\n                        }\r\n                        result_2.push(value_2);\r\n                    }\r\n                    return result_2;\r\n                }\r\n                if (expression instanceof StaticSymbol) {\r\n                    // Stop simplification at builtin symbols\r\n                    if (expression === self.injectionToken || expression === self.opaqueToken ||\r\n                        self.conversionMap.has(expression)) {\r\n                        return expression;\r\n                    }\r\n                    else {\r\n                        var /** @type {?} */ staticSymbol = expression;\r\n                        var /** @type {?} */ declarationValue = resolveReferenceValue(staticSymbol);\r\n                        if (declarationValue) {\r\n                            return simplifyInContext(staticSymbol, declarationValue, depth + 1);\r\n                        }\r\n                        else {\r\n                            return staticSymbol;\r\n                        }\r\n                    }\r\n                }\r\n                if (expression) {\r\n                    if (expression['__symbolic']) {\r\n                        var /** @type {?} */ staticSymbol = void 0;\r\n                        switch (expression['__symbolic']) {\r\n                            case 'binop':\r\n                                var /** @type {?} */ left = simplify(expression['left']);\r\n                                if (shouldIgnore(left))\r\n                                    return left;\r\n                                var /** @type {?} */ right = simplify(expression['right']);\r\n                                if (shouldIgnore(right))\r\n                                    return right;\r\n                                switch (expression['operator']) {\r\n                                    case '&&':\r\n                                        return left && right;\r\n                                    case '||':\r\n                                        return left || right;\r\n                                    case '|':\r\n                                        return left | right;\r\n                                    case '^':\r\n                                        return left ^ right;\r\n                                    case '&':\r\n                                        return left & right;\r\n                                    case '==':\r\n                                        return left == right;\r\n                                    case '!=':\r\n                                        return left != right;\r\n                                    case '===':\r\n                                        return left === right;\r\n                                    case '!==':\r\n                                        return left !== right;\r\n                                    case '<':\r\n                                        return left < right;\r\n                                    case '>':\r\n                                        return left > right;\r\n                                    case '<=':\r\n                                        return left <= right;\r\n                                    case '>=':\r\n                                        return left >= right;\r\n                                    case '<<':\r\n                                        return left << right;\r\n                                    case '>>':\r\n                                        return left >> right;\r\n                                    case '+':\r\n                                        return left + right;\r\n                                    case '-':\r\n                                        return left - right;\r\n                                    case '*':\r\n                                        return left * right;\r\n                                    case '/':\r\n                                        return left / right;\r\n                                    case '%':\r\n                                        return left % right;\r\n                                }\r\n                                return null;\r\n                            case 'if':\r\n                                var /** @type {?} */ condition = simplify(expression['condition']);\r\n                                return condition ? simplify(expression['thenExpression']) :\r\n                                    simplify(expression['elseExpression']);\r\n                            case 'pre':\r\n                                var /** @type {?} */ operand = simplify(expression['operand']);\r\n                                if (shouldIgnore(operand))\r\n                                    return operand;\r\n                                switch (expression['operator']) {\r\n                                    case '+':\r\n                                        return operand;\r\n                                    case '-':\r\n                                        return -operand;\r\n                                    case '!':\r\n                                        return !operand;\r\n                                    case '~':\r\n                                        return ~operand;\r\n                                }\r\n                                return null;\r\n                            case 'index':\r\n                                var /** @type {?} */ indexTarget = simplify(expression['expression']);\r\n                                var /** @type {?} */ index = simplify(expression['index']);\r\n                                if (indexTarget && isPrimitive(index))\r\n                                    return indexTarget[index];\r\n                                return null;\r\n                            case 'select':\r\n                                var /** @type {?} */ member = expression['member'];\r\n                                var /** @type {?} */ selectContext = context;\r\n                                var /** @type {?} */ selectTarget = simplify(expression['expression']);\r\n                                if (selectTarget instanceof StaticSymbol) {\r\n                                    var /** @type {?} */ members = selectTarget.members.concat(member);\r\n                                    selectContext =\r\n                                        self.getStaticSymbol(selectTarget.filePath, selectTarget.name, members);\r\n                                    var /** @type {?} */ declarationValue = resolveReferenceValue(selectContext);\r\n                                    if (declarationValue) {\r\n                                        return simplifyInContext(selectContext, declarationValue, depth + 1);\r\n                                    }\r\n                                    else {\r\n                                        return selectContext;\r\n                                    }\r\n                                }\r\n                                if (selectTarget && isPrimitive(member))\r\n                                    return simplifyInContext(selectContext, selectTarget[member], depth + 1);\r\n                                return null;\r\n                            case 'reference':\r\n                                // Note: This only has to deal with variable references,\r\n                                // as symbol references have been converted into StaticSymbols already\r\n                                // in the StaticSymbolResolver!\r\n                                var /** @type {?} */ name = expression['name'];\r\n                                var /** @type {?} */ localValue = scope.resolve(name);\r\n                                if (localValue != BindingScope.missing) {\r\n                                    return localValue;\r\n                                }\r\n                                break;\r\n                            case 'class':\r\n                                return context;\r\n                            case 'function':\r\n                                return context;\r\n                            case 'new':\r\n                            case 'call':\r\n                                // Determine if the function is a built-in conversion\r\n                                staticSymbol = simplifyInContext(context, expression['expression'], depth + 1);\r\n                                if (staticSymbol instanceof StaticSymbol) {\r\n                                    if (staticSymbol === self.injectionToken || staticSymbol === self.opaqueToken) {\r\n                                        // if somebody calls new InjectionToken, don't create an InjectionToken,\r\n                                        // but rather return the symbol to which the InjectionToken is assigned to.\r\n                                        return context;\r\n                                    }\r\n                                    var /** @type {?} */ argExpressions = expression['arguments'] || [];\r\n                                    var /** @type {?} */ converter = self.conversionMap.get(staticSymbol);\r\n                                    if (converter) {\r\n                                        var /** @type {?} */ args = argExpressions.map(function (arg) { return simplifyInContext(context, arg, depth + 1); })\r\n                                            .map(function (arg) { return shouldIgnore(arg) ? undefined : arg; });\r\n                                        return converter(context, args);\r\n                                    }\r\n                                    else {\r\n                                        // Determine if the function is one we can simplify.\r\n                                        var /** @type {?} */ targetFunction = resolveReferenceValue(staticSymbol);\r\n                                        return simplifyCall(staticSymbol, targetFunction, argExpressions);\r\n                                    }\r\n                                }\r\n                                return IGNORE;\r\n                            case 'error':\r\n                                var /** @type {?} */ message = produceErrorMessage(expression);\r\n                                if (expression['line']) {\r\n                                    message =\r\n                                        message + \" (position \" + (expression['line'] + 1) + \":\" + (expression['character'] + 1) + \" in the original .ts file)\";\r\n                                    self.reportError(positionalError(message, context.filePath, expression['line'], expression['character']), context);\r\n                                }\r\n                                else {\r\n                                    self.reportError(new Error(message), context);\r\n                                }\r\n                                return IGNORE;\r\n                            case 'ignore':\r\n                                return expression;\r\n                        }\r\n                        return null;\r\n                    }\r\n                    return mapStringMap(expression, function (value, name) { return simplify(value); });\r\n                }\r\n                return IGNORE;\r\n            }\r\n            try {\r\n                return simplify(value);\r\n            }\r\n            catch (e) {\r\n                var /** @type {?} */ members = context.members.length ? \".\" + context.members.join('.') : '';\r\n                var /** @type {?} */ message = e.message + \", resolving symbol \" + context.name + members + \" in \" + context.filePath;\r\n                if (e.fileName) {\r\n                    throw positionalError(message, e.fileName, e.line, e.column);\r\n                }\r\n                throw syntaxError(message);\r\n            }\r\n        }\r\n        var /** @type {?} */ recordedSimplifyInContext = function (context, value, depth) {\r\n            try {\r\n                return simplifyInContext(context, value, depth);\r\n            }\r\n            catch (e) {\r\n                _this.reportError(e, context);\r\n            }\r\n        };\r\n        var /** @type {?} */ result = this.errorRecorder ? recordedSimplifyInContext(context, value, 0) :\r\n            simplifyInContext(context, value, 0);\r\n        if (shouldIgnore(result)) {\r\n            return undefined;\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    StaticReflector.prototype.getTypeMetadata = function (type) {\r\n        var /** @type {?} */ resolvedSymbol = this.symbolResolver.resolveSymbol(type);\r\n        return resolvedSymbol && resolvedSymbol.metadata ? resolvedSymbol.metadata :\r\n            { __symbolic: 'class' };\r\n    };\r\n    return StaticReflector;\r\n}());\r\n/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\nfunction expandedMessage(error) {\r\n    switch (error.message) {\r\n        case 'Reference to non-exported class':\r\n            if (error.context && error.context.className) {\r\n                return \"Reference to a non-exported class \" + error.context.className + \". Consider exporting the class\";\r\n            }\r\n            break;\r\n        case 'Variable not initialized':\r\n            return 'Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler';\r\n        case 'Destructuring not supported':\r\n            return 'Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring';\r\n        case 'Could not resolve type':\r\n            if (error.context && error.context.typeName) {\r\n                return \"Could not resolve type \" + error.context.typeName;\r\n            }\r\n            break;\r\n        case 'Function call not supported':\r\n            var /** @type {?} */ prefix = error.context && error.context.name ? \"Calling function '\" + error.context.name + \"', f\" : 'F';\r\n            return prefix +\r\n                'unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function';\r\n        case 'Reference to a local symbol':\r\n            if (error.context && error.context.name) {\r\n                return \"Reference to a local (non-exported) symbol '\" + error.context.name + \"'. Consider exporting the symbol\";\r\n            }\r\n            break;\r\n    }\r\n    return error.message;\r\n}\r\n/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\nfunction produceErrorMessage(error) {\r\n    return \"Error encountered resolving symbol values statically. \" + expandedMessage(error);\r\n}\r\n/**\r\n * @param {?} input\r\n * @param {?} transform\r\n * @return {?}\r\n */\r\nfunction mapStringMap(input, transform) {\r\n    if (!input)\r\n        return {};\r\n    var /** @type {?} */ result = {};\r\n    Object.keys(input).forEach(function (key) {\r\n        var /** @type {?} */ value = transform(input[key], key);\r\n        if (!shouldIgnore(value)) {\r\n            if (HIDDEN_KEY.test(key)) {\r\n                Object.defineProperty(result, key, { enumerable: false, configurable: true, value: value });\r\n            }\r\n            else {\r\n                result[key] = value;\r\n            }\r\n        }\r\n    });\r\n    return result;\r\n}\r\n/**\r\n * @param {?} o\r\n * @return {?}\r\n */\r\nfunction isPrimitive(o) {\r\n    return o === null || (typeof o !== 'function' && typeof o !== 'object');\r\n}\r\n/**\r\n * @abstract\r\n */\r\nvar BindingScope = (function () {\r\n    function BindingScope() {\r\n    }\r\n    /**\r\n     * @abstract\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    BindingScope.prototype.resolve = function (name) { };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    BindingScope.build = function () {\r\n        var /** @type {?} */ current = new Map();\r\n        return {\r\n            define: function (name, value) {\r\n                current.set(name, value);\r\n                return this;\r\n            },\r\n            done: function () {\r\n                return current.size > 0 ? new PopulatedScope(current) : BindingScope.empty;\r\n            }\r\n        };\r\n    };\r\n    return BindingScope;\r\n}());\r\nBindingScope.missing = {};\r\nBindingScope.empty = { resolve: function (name) { return BindingScope.missing; } };\r\nvar PopulatedScope = (function (_super) {\r\n    __extends(PopulatedScope, _super);\r\n    /**\r\n     * @param {?} bindings\r\n     */\r\n    function PopulatedScope(bindings) {\r\n        var _this = _super.call(this) || this;\r\n        _this.bindings = bindings;\r\n        return _this;\r\n    }\r\n    /**\r\n     * @param {?} name\r\n     * @return {?}\r\n     */\r\n    PopulatedScope.prototype.resolve = function (name) {\r\n        return this.bindings.has(name) ? this.bindings.get(name) : BindingScope.missing;\r\n    };\r\n    return PopulatedScope;\r\n}(BindingScope));\r\n/**\r\n * @param {?} message\r\n * @param {?} fileName\r\n * @param {?} line\r\n * @param {?} column\r\n * @return {?}\r\n */\r\nfunction positionalError(message, fileName, line, column) {\r\n    var /** @type {?} */ result = new Error(message);\r\n    ((result)).fileName = fileName;\r\n    ((result)).line = line;\r\n    ((result)).column = column;\r\n    return result;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar ResolvedStaticSymbol = (function () {\r\n    /**\r\n     * @param {?} symbol\r\n     * @param {?} metadata\r\n     */\r\n    function ResolvedStaticSymbol(symbol, metadata) {\r\n        this.symbol = symbol;\r\n        this.metadata = metadata;\r\n    }\r\n    return ResolvedStaticSymbol;\r\n}());\r\nvar SUPPORTED_SCHEMA_VERSION = 3;\r\n/**\r\n * This class is responsible for loading metadata per symbol,\r\n * and normalizing references between symbols.\r\n *\r\n * Internally, it only uses symbols without members,\r\n * and deduces the values for symbols with members based\r\n * on these symbols.\r\n */\r\nvar StaticSymbolResolver = (function () {\r\n    /**\r\n     * @param {?} host\r\n     * @param {?} staticSymbolCache\r\n     * @param {?} summaryResolver\r\n     * @param {?=} errorRecorder\r\n     */\r\n    function StaticSymbolResolver(host, staticSymbolCache, summaryResolver, errorRecorder) {\r\n        this.host = host;\r\n        this.staticSymbolCache = staticSymbolCache;\r\n        this.summaryResolver = summaryResolver;\r\n        this.errorRecorder = errorRecorder;\r\n        this.metadataCache = new Map();\r\n        this.resolvedSymbols = new Map();\r\n        this.resolvedFilePaths = new Set();\r\n        this.importAs = new Map();\r\n        this.symbolResourcePaths = new Map();\r\n        this.symbolFromFile = new Map();\r\n    }\r\n    /**\r\n     * @param {?} staticSymbol\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.resolveSymbol = function (staticSymbol) {\r\n        if (staticSymbol.members.length > 0) {\r\n            return ((this._resolveSymbolMembers(staticSymbol)));\r\n        }\r\n        var /** @type {?} */ result = this.resolvedSymbols.get(staticSymbol);\r\n        if (result) {\r\n            return result;\r\n        }\r\n        result = ((this._resolveSymbolFromSummary(staticSymbol)));\r\n        if (result) {\r\n            return result;\r\n        }\r\n        // Note: Some users use libraries that were not compiled with ngc, i.e. they don't\r\n        // have summaries, only .d.ts files. So we always need to check both, the summary\r\n        // and metadata.\r\n        this._createSymbolsOf(staticSymbol.filePath);\r\n        result = ((this.resolvedSymbols.get(staticSymbol)));\r\n        return result;\r\n    };\r\n    /**\r\n     * getImportAs produces a symbol that can be used to import the given symbol.\r\n     * The import might be different than the symbol if the symbol is exported from\r\n     * a library with a summary; in which case we want to import the symbol from the\r\n     * ngfactory re-export instead of directly to avoid introducing a direct dependency\r\n     * on an otherwise indirect dependency.\r\n     *\r\n     * @param {?} staticSymbol the symbol for which to generate a import symbol\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.getImportAs = function (staticSymbol) {\r\n        if (staticSymbol.members.length) {\r\n            var /** @type {?} */ baseSymbol = this.getStaticSymbol(staticSymbol.filePath, staticSymbol.name);\r\n            var /** @type {?} */ baseImportAs = this.getImportAs(baseSymbol);\r\n            return baseImportAs ?\r\n                this.getStaticSymbol(baseImportAs.filePath, baseImportAs.name, staticSymbol.members) :\r\n                null;\r\n        }\r\n        var /** @type {?} */ result = this.summaryResolver.getImportAs(staticSymbol);\r\n        if (!result) {\r\n            result = ((this.importAs.get(staticSymbol)));\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * getResourcePath produces the path to the original location of the symbol and should\r\n     * be used to determine the relative location of resource references recorded in\r\n     * symbol metadata.\r\n     * @param {?} staticSymbol\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.getResourcePath = function (staticSymbol) {\r\n        return this.symbolResourcePaths.get(staticSymbol) || staticSymbol.filePath;\r\n    };\r\n    /**\r\n     * getTypeArity returns the number of generic type parameters the given symbol\r\n     * has. If the symbol is not a type the result is null.\r\n     * @param {?} staticSymbol\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.getTypeArity = function (staticSymbol) {\r\n        // If the file is a factory file, don't resolve the symbol as doing so would\r\n        // cause the metadata for an factory file to be loaded which doesn't exist.\r\n        // All references to generated classes must include the correct arity whenever\r\n        // generating code.\r\n        if (isNgFactoryFile(staticSymbol.filePath)) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ resolvedSymbol = this.resolveSymbol(staticSymbol);\r\n        while (resolvedSymbol && resolvedSymbol.metadata instanceof StaticSymbol) {\r\n            resolvedSymbol = this.resolveSymbol(resolvedSymbol.metadata);\r\n        }\r\n        return (resolvedSymbol && resolvedSymbol.metadata && resolvedSymbol.metadata.arity) || null;\r\n    };\r\n    /**\r\n     * @param {?} sourceSymbol\r\n     * @param {?} targetSymbol\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.recordImportAs = function (sourceSymbol, targetSymbol) {\r\n        sourceSymbol.assertNoMembers();\r\n        targetSymbol.assertNoMembers();\r\n        this.importAs.set(sourceSymbol, targetSymbol);\r\n    };\r\n    /**\r\n     * Invalidate all information derived from the given file.\r\n     *\r\n     * @param {?} fileName the file to invalidate\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.invalidateFile = function (fileName) {\r\n        this.metadataCache.delete(fileName);\r\n        this.resolvedFilePaths.delete(fileName);\r\n        var /** @type {?} */ symbols = this.symbolFromFile.get(fileName);\r\n        if (symbols) {\r\n            this.symbolFromFile.delete(fileName);\r\n            for (var _i = 0, symbols_1 = symbols; _i < symbols_1.length; _i++) {\r\n                var symbol = symbols_1[_i];\r\n                this.resolvedSymbols.delete(symbol);\r\n                this.importAs.delete(symbol);\r\n                this.symbolResourcePaths.delete(symbol);\r\n            }\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} staticSymbol\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype._resolveSymbolMembers = function (staticSymbol) {\r\n        var /** @type {?} */ members = staticSymbol.members;\r\n        var /** @type {?} */ baseResolvedSymbol = this.resolveSymbol(this.getStaticSymbol(staticSymbol.filePath, staticSymbol.name));\r\n        if (!baseResolvedSymbol) {\r\n            return null;\r\n        }\r\n        var /** @type {?} */ baseMetadata = baseResolvedSymbol.metadata;\r\n        if (baseMetadata instanceof StaticSymbol) {\r\n            return new ResolvedStaticSymbol(staticSymbol, this.getStaticSymbol(baseMetadata.filePath, baseMetadata.name, members));\r\n        }\r\n        else if (baseMetadata && baseMetadata.__symbolic === 'class') {\r\n            if (baseMetadata.statics && members.length === 1) {\r\n                return new ResolvedStaticSymbol(staticSymbol, baseMetadata.statics[members[0]]);\r\n            }\r\n        }\r\n        else {\r\n            var /** @type {?} */ value = baseMetadata;\r\n            for (var /** @type {?} */ i = 0; i < members.length && value; i++) {\r\n                value = value[members[i]];\r\n            }\r\n            return new ResolvedStaticSymbol(staticSymbol, value);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} staticSymbol\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype._resolveSymbolFromSummary = function (staticSymbol) {\r\n        var /** @type {?} */ summary = this.summaryResolver.resolveSummary(staticSymbol);\r\n        return summary ? new ResolvedStaticSymbol(staticSymbol, summary.metadata) : null;\r\n    };\r\n    /**\r\n     * getStaticSymbol produces a Type whose metadata is known but whose implementation is not loaded.\r\n     * All types passed to the StaticResolver should be pseudo-types returned by this method.\r\n     *\r\n     * @param {?} declarationFile the absolute path of the file where the symbol is declared\r\n     * @param {?} name the name of the type.\r\n     * @param {?=} members a symbol for a static member of the named type\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.getStaticSymbol = function (declarationFile, name, members) {\r\n        return this.staticSymbolCache.get(declarationFile, name, members);\r\n    };\r\n    /**\r\n     * @param {?} filePath\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.getSymbolsOf = function (filePath) {\r\n        // Note: Some users use libraries that were not compiled with ngc, i.e. they don't\r\n        // have summaries, only .d.ts files. So we always need to check both, the summary\r\n        // and metadata.\r\n        var /** @type {?} */ symbols = new Set(this.summaryResolver.getSymbolsOf(filePath));\r\n        this._createSymbolsOf(filePath);\r\n        this.resolvedSymbols.forEach(function (resolvedSymbol) {\r\n            if (resolvedSymbol.symbol.filePath === filePath) {\r\n                symbols.add(resolvedSymbol.symbol);\r\n            }\r\n        });\r\n        return Array.from(symbols);\r\n    };\r\n    /**\r\n     * @param {?} filePath\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype._createSymbolsOf = function (filePath) {\r\n        var _this = this;\r\n        if (this.resolvedFilePaths.has(filePath)) {\r\n            return;\r\n        }\r\n        this.resolvedFilePaths.add(filePath);\r\n        var /** @type {?} */ resolvedSymbols = [];\r\n        var /** @type {?} */ metadata = this.getModuleMetadata(filePath);\r\n        if (metadata['metadata']) {\r\n            // handle direct declarations of the symbol\r\n            var /** @type {?} */ topLevelSymbolNames_1 = new Set(Object.keys(metadata['metadata']).map(unescapeIdentifier));\r\n            var /** @type {?} */ origins_1 = metadata['origins'] || {};\r\n            Object.keys(metadata['metadata']).forEach(function (metadataKey) {\r\n                var /** @type {?} */ symbolMeta = metadata['metadata'][metadataKey];\r\n                var /** @type {?} */ name = unescapeIdentifier(metadataKey);\r\n                var /** @type {?} */ symbol = _this.getStaticSymbol(filePath, name);\r\n                var /** @type {?} */ importSymbol = undefined;\r\n                if (metadata['importAs']) {\r\n                    // Index bundle indexes should use the importAs module name instead of a reference\r\n                    // to the .d.ts file directly.\r\n                    importSymbol = _this.getStaticSymbol(metadata['importAs'], name);\r\n                    _this.recordImportAs(symbol, importSymbol);\r\n                }\r\n                var /** @type {?} */ origin = origins_1.hasOwnProperty(metadataKey) && origins_1[metadataKey];\r\n                if (origin) {\r\n                    // If the symbol is from a bundled index, use the declaration location of the\r\n                    // symbol so relative references (such as './my.html') will be calculated\r\n                    // correctly.\r\n                    var /** @type {?} */ originFilePath = _this.resolveModule(origin, filePath);\r\n                    if (!originFilePath) {\r\n                        _this.reportError(new Error(\"Couldn't resolve original symbol for \" + origin + \" from \" + filePath));\r\n                    }\r\n                    else {\r\n                        _this.symbolResourcePaths.set(symbol, originFilePath);\r\n                    }\r\n                }\r\n                resolvedSymbols.push(_this.createResolvedSymbol(symbol, filePath, topLevelSymbolNames_1, symbolMeta));\r\n            });\r\n        }\r\n        // handle the symbols in one of the re-export location\r\n        if (metadata['exports']) {\r\n            var _loop_1 = function (moduleExport) {\r\n                // handle the symbols in the list of explicitly re-exported symbols.\r\n                if (moduleExport.export) {\r\n                    moduleExport.export.forEach(function (exportSymbol) {\r\n                        var /** @type {?} */ symbolName;\r\n                        if (typeof exportSymbol === 'string') {\r\n                            symbolName = exportSymbol;\r\n                        }\r\n                        else {\r\n                            symbolName = exportSymbol.as;\r\n                        }\r\n                        symbolName = unescapeIdentifier(symbolName);\r\n                        var /** @type {?} */ symName = symbolName;\r\n                        if (typeof exportSymbol !== 'string') {\r\n                            symName = unescapeIdentifier(exportSymbol.name);\r\n                        }\r\n                        var /** @type {?} */ resolvedModule = _this.resolveModule(moduleExport.from, filePath);\r\n                        if (resolvedModule) {\r\n                            var /** @type {?} */ targetSymbol = _this.getStaticSymbol(resolvedModule, symName);\r\n                            var /** @type {?} */ sourceSymbol = _this.getStaticSymbol(filePath, symbolName);\r\n                            resolvedSymbols.push(_this.createExport(sourceSymbol, targetSymbol));\r\n                        }\r\n                    });\r\n                }\r\n                else {\r\n                    // handle the symbols via export * directives.\r\n                    var /** @type {?} */ resolvedModule = this_1.resolveModule(moduleExport.from, filePath);\r\n                    if (resolvedModule) {\r\n                        var /** @type {?} */ nestedExports = this_1.getSymbolsOf(resolvedModule);\r\n                        nestedExports.forEach(function (targetSymbol) {\r\n                            var /** @type {?} */ sourceSymbol = _this.getStaticSymbol(filePath, targetSymbol.name);\r\n                            resolvedSymbols.push(_this.createExport(sourceSymbol, targetSymbol));\r\n                        });\r\n                    }\r\n                }\r\n            };\r\n            var this_1 = this;\r\n            for (var _i = 0, _a = metadata['exports']; _i < _a.length; _i++) {\r\n                var moduleExport = _a[_i];\r\n                _loop_1(/** @type {?} */ moduleExport);\r\n            }\r\n        }\r\n        resolvedSymbols.forEach(function (resolvedSymbol) { return _this.resolvedSymbols.set(resolvedSymbol.symbol, resolvedSymbol); });\r\n        this.symbolFromFile.set(filePath, resolvedSymbols.map(function (resolvedSymbol) { return resolvedSymbol.symbol; }));\r\n    };\r\n    /**\r\n     * @param {?} sourceSymbol\r\n     * @param {?} topLevelPath\r\n     * @param {?} topLevelSymbolNames\r\n     * @param {?} metadata\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.createResolvedSymbol = function (sourceSymbol, topLevelPath, topLevelSymbolNames, metadata) {\r\n        // For classes that don't have Angular summaries / metadata,\r\n        // we only keep their arity, but nothing else\r\n        // (e.g. their constructor parameters).\r\n        // We do this to prevent introducing deep imports\r\n        // as we didn't generate .ngfactory.ts files with proper reexports.\r\n        if (this.summaryResolver.isLibraryFile(sourceSymbol.filePath) && metadata &&\r\n            metadata['__symbolic'] === 'class') {\r\n            var /** @type {?} */ transformedMeta_1 = { __symbolic: 'class', arity: metadata.arity };\r\n            return new ResolvedStaticSymbol(sourceSymbol, transformedMeta_1);\r\n        }\r\n        var /** @type {?} */ self = this;\r\n        var ReferenceTransformer = (function (_super) {\r\n            __extends(ReferenceTransformer, _super);\r\n            function ReferenceTransformer() {\r\n                return _super !== null && _super.apply(this, arguments) || this;\r\n            }\r\n            /**\r\n             * @param {?} map\r\n             * @param {?} functionParams\r\n             * @return {?}\r\n             */\r\n            ReferenceTransformer.prototype.visitStringMap = function (map, functionParams) {\r\n                var /** @type {?} */ symbolic = map['__symbolic'];\r\n                if (symbolic === 'function') {\r\n                    var /** @type {?} */ oldLen = functionParams.length;\r\n                    functionParams.push.apply(functionParams, (map['parameters'] || []));\r\n                    var /** @type {?} */ result = _super.prototype.visitStringMap.call(this, map, functionParams);\r\n                    functionParams.length = oldLen;\r\n                    return result;\r\n                }\r\n                else if (symbolic === 'reference') {\r\n                    var /** @type {?} */ module_1 = map['module'];\r\n                    var /** @type {?} */ name = map['name'] ? unescapeIdentifier(map['name']) : map['name'];\r\n                    if (!name) {\r\n                        return null;\r\n                    }\r\n                    var /** @type {?} */ filePath = void 0;\r\n                    if (module_1) {\r\n                        filePath = ((self.resolveModule(module_1, sourceSymbol.filePath)));\r\n                        if (!filePath) {\r\n                            return {\r\n                                __symbolic: 'error',\r\n                                message: \"Could not resolve \" + module_1 + \" relative to \" + sourceSymbol.filePath + \".\"\r\n                            };\r\n                        }\r\n                        return self.getStaticSymbol(filePath, name);\r\n                    }\r\n                    else if (functionParams.indexOf(name) >= 0) {\r\n                        // reference to a function parameter\r\n                        return { __symbolic: 'reference', name: name };\r\n                    }\r\n                    else {\r\n                        if (topLevelSymbolNames.has(name)) {\r\n                            return self.getStaticSymbol(topLevelPath, name);\r\n                        }\r\n                        // ambient value\r\n                        null;\r\n                    }\r\n                }\r\n                else {\r\n                    return _super.prototype.visitStringMap.call(this, map, functionParams);\r\n                }\r\n            };\r\n            return ReferenceTransformer;\r\n        }(ValueTransformer));\r\n        var /** @type {?} */ transformedMeta = visitValue(metadata, new ReferenceTransformer(), []);\r\n        if (transformedMeta instanceof StaticSymbol) {\r\n            return this.createExport(sourceSymbol, transformedMeta);\r\n        }\r\n        return new ResolvedStaticSymbol(sourceSymbol, transformedMeta);\r\n    };\r\n    /**\r\n     * @param {?} sourceSymbol\r\n     * @param {?} targetSymbol\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.createExport = function (sourceSymbol, targetSymbol) {\r\n        sourceSymbol.assertNoMembers();\r\n        targetSymbol.assertNoMembers();\r\n        if (this.summaryResolver.isLibraryFile(sourceSymbol.filePath)) {\r\n            // This case is for an ng library importing symbols from a plain ts library\r\n            // transitively.\r\n            // Note: We rely on the fact that we discover symbols in the direction\r\n            // from source files to library files\r\n            this.importAs.set(targetSymbol, this.getImportAs(sourceSymbol) || sourceSymbol);\r\n        }\r\n        return new ResolvedStaticSymbol(sourceSymbol, targetSymbol);\r\n    };\r\n    /**\r\n     * @param {?} error\r\n     * @param {?=} context\r\n     * @param {?=} path\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.reportError = function (error, context, path) {\r\n        if (this.errorRecorder) {\r\n            this.errorRecorder(error, (context && context.filePath) || path);\r\n        }\r\n        else {\r\n            throw error;\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} module an absolute path to a module file.\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.getModuleMetadata = function (module) {\r\n        var /** @type {?} */ moduleMetadata = this.metadataCache.get(module);\r\n        if (!moduleMetadata) {\r\n            var /** @type {?} */ moduleMetadatas = this.host.getMetadataFor(module);\r\n            if (moduleMetadatas) {\r\n                var /** @type {?} */ maxVersion_1 = -1;\r\n                moduleMetadatas.forEach(function (md) {\r\n                    if (md['version'] > maxVersion_1) {\r\n                        maxVersion_1 = md['version'];\r\n                        moduleMetadata = md;\r\n                    }\r\n                });\r\n            }\r\n            if (!moduleMetadata) {\r\n                moduleMetadata =\r\n                    { __symbolic: 'module', version: SUPPORTED_SCHEMA_VERSION, module: module, metadata: {} };\r\n            }\r\n            if (moduleMetadata['version'] != SUPPORTED_SCHEMA_VERSION) {\r\n                var /** @type {?} */ errorMessage = moduleMetadata['version'] == 2 ?\r\n                    \"Unsupported metadata version \" + moduleMetadata['version'] + \" for module \" + module + \". This module should be compiled with a newer version of ngc\" :\r\n                    \"Metadata version mismatch for module \" + module + \", found version \" + moduleMetadata['version'] + \", expected \" + SUPPORTED_SCHEMA_VERSION;\r\n                this.reportError(new Error(errorMessage));\r\n            }\r\n            this.metadataCache.set(module, moduleMetadata);\r\n        }\r\n        return moduleMetadata;\r\n    };\r\n    /**\r\n     * @param {?} module\r\n     * @param {?} symbolName\r\n     * @param {?=} containingFile\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.getSymbolByModule = function (module, symbolName, containingFile) {\r\n        var /** @type {?} */ filePath = this.resolveModule(module, containingFile);\r\n        if (!filePath) {\r\n            this.reportError(new Error(\"Could not resolve module \" + module + (containingFile ? \" relative to $ {\\n            containingFile\\n          } \" : '')));\r\n            return this.getStaticSymbol(\"ERROR:\" + module, symbolName);\r\n        }\r\n        return this.getStaticSymbol(filePath, symbolName);\r\n    };\r\n    /**\r\n     * @param {?} module\r\n     * @param {?=} containingFile\r\n     * @return {?}\r\n     */\r\n    StaticSymbolResolver.prototype.resolveModule = function (module, containingFile) {\r\n        try {\r\n            return this.host.moduleNameToFileName(module, containingFile);\r\n        }\r\n        catch (e) {\r\n            console.error(\"Could not resolve module '\" + module + \"' relative to file \" + containingFile);\r\n            this.reportError(e, undefined, containingFile);\r\n        }\r\n        return null;\r\n    };\r\n    return StaticSymbolResolver;\r\n}());\r\n/**\r\n * @param {?} identifier\r\n * @return {?}\r\n */\r\nfunction unescapeIdentifier(identifier) {\r\n    return identifier.startsWith('___') ? identifier.substr(1) : identifier;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar AotSummaryResolver = (function () {\r\n    /**\r\n     * @param {?} host\r\n     * @param {?} staticSymbolCache\r\n     */\r\n    function AotSummaryResolver(host, staticSymbolCache) {\r\n        this.host = host;\r\n        this.staticSymbolCache = staticSymbolCache;\r\n        this.summaryCache = new Map();\r\n        this.loadedFilePaths = new Set();\r\n        this.importAs = new Map();\r\n    }\r\n    /**\r\n     * @param {?} filePath\r\n     * @return {?}\r\n     */\r\n    AotSummaryResolver.prototype.isLibraryFile = function (filePath) {\r\n        // Note: We need to strip the .ngfactory. file path,\r\n        // so this method also works for generated files\r\n        // (for which host.isSourceFile will always return false).\r\n        return !this.host.isSourceFile(stripNgFactory(filePath));\r\n    };\r\n    /**\r\n     * @param {?} filePath\r\n     * @return {?}\r\n     */\r\n    AotSummaryResolver.prototype.getLibraryFileName = function (filePath) { return this.host.getOutputFileName(filePath); };\r\n    /**\r\n     * @param {?} staticSymbol\r\n     * @return {?}\r\n     */\r\n    AotSummaryResolver.prototype.resolveSummary = function (staticSymbol) {\r\n        staticSymbol.assertNoMembers();\r\n        var /** @type {?} */ summary = this.summaryCache.get(staticSymbol);\r\n        if (!summary) {\r\n            this._loadSummaryFile(staticSymbol.filePath);\r\n            summary = ((this.summaryCache.get(staticSymbol)));\r\n        }\r\n        return summary;\r\n    };\r\n    /**\r\n     * @param {?} filePath\r\n     * @return {?}\r\n     */\r\n    AotSummaryResolver.prototype.getSymbolsOf = function (filePath) {\r\n        this._loadSummaryFile(filePath);\r\n        return Array.from(this.summaryCache.keys()).filter(function (symbol) { return symbol.filePath === filePath; });\r\n    };\r\n    /**\r\n     * @param {?} staticSymbol\r\n     * @return {?}\r\n     */\r\n    AotSummaryResolver.prototype.getImportAs = function (staticSymbol) {\r\n        staticSymbol.assertNoMembers();\r\n        return ((this.importAs.get(staticSymbol)));\r\n    };\r\n    /**\r\n     * @param {?} filePath\r\n     * @return {?}\r\n     */\r\n    AotSummaryResolver.prototype._loadSummaryFile = function (filePath) {\r\n        var _this = this;\r\n        if (this.loadedFilePaths.has(filePath)) {\r\n            return;\r\n        }\r\n        this.loadedFilePaths.add(filePath);\r\n        if (this.isLibraryFile(filePath)) {\r\n            var /** @type {?} */ summaryFilePath = summaryFileName(filePath);\r\n            var /** @type {?} */ json = void 0;\r\n            try {\r\n                json = this.host.loadSummary(summaryFilePath);\r\n            }\r\n            catch (e) {\r\n                console.error(\"Error loading summary file \" + summaryFilePath);\r\n                throw e;\r\n            }\r\n            if (json) {\r\n                var _a = deserializeSummaries(this.staticSymbolCache, json), summaries = _a.summaries, importAs = _a.importAs;\r\n                summaries.forEach(function (summary) { return _this.summaryCache.set(summary.symbol, summary); });\r\n                importAs.forEach(function (importAs) {\r\n                    _this.importAs.set(importAs.symbol, _this.staticSymbolCache.get(ngfactoryFilePath(filePath), importAs.importAs));\r\n                });\r\n            }\r\n        }\r\n    };\r\n    return AotSummaryResolver;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Creates a new AotCompiler based on options and a host.\r\n * @param {?} compilerHost\r\n * @param {?} options\r\n * @return {?}\r\n */\r\nfunction createAotCompiler(compilerHost, options) {\r\n    var /** @type {?} */ translations = options.translations || '';\r\n    var /** @type {?} */ urlResolver = createOfflineCompileUrlResolver();\r\n    var /** @type {?} */ symbolCache = new StaticSymbolCache();\r\n    var /** @type {?} */ summaryResolver = new AotSummaryResolver(compilerHost, symbolCache);\r\n    var /** @type {?} */ symbolResolver = new StaticSymbolResolver(compilerHost, symbolCache, summaryResolver);\r\n    var /** @type {?} */ staticReflector = new StaticReflector(summaryResolver, symbolResolver);\r\n    StaticAndDynamicReflectionCapabilities.install(staticReflector);\r\n    var /** @type {?} */ console = new ɵConsole();\r\n    var /** @type {?} */ htmlParser = new I18NHtmlParser(new HtmlParser(), translations, options.i18nFormat, MissingTranslationStrategy.Warning, console);\r\n    var /** @type {?} */ config = new CompilerConfig({\r\n        defaultEncapsulation: ViewEncapsulation.Emulated,\r\n        useJit: false,\r\n        enableLegacyTemplate: options.enableLegacyTemplate !== false,\r\n    });\r\n    var /** @type {?} */ normalizer = new DirectiveNormalizer({ get: function (url) { return compilerHost.loadResource(url); } }, urlResolver, htmlParser, config);\r\n    var /** @type {?} */ expressionParser = new Parser(new Lexer());\r\n    var /** @type {?} */ elementSchemaRegistry = new DomElementSchemaRegistry();\r\n    var /** @type {?} */ tmplParser = new TemplateParser(config, expressionParser, elementSchemaRegistry, htmlParser, console, []);\r\n    var /** @type {?} */ resolver = new CompileMetadataResolver(config, new NgModuleResolver(staticReflector), new DirectiveResolver(staticReflector), new PipeResolver(staticReflector), summaryResolver, elementSchemaRegistry, normalizer, console, symbolCache, staticReflector);\r\n    // TODO(vicb): do not pass options.i18nFormat here\r\n    var /** @type {?} */ importResolver = {\r\n        getImportAs: function (symbol) { return ((symbolResolver.getImportAs(symbol))); },\r\n        fileNameToModuleName: function (fileName, containingFilePath) { return compilerHost.fileNameToModuleName(fileName, containingFilePath); },\r\n        getTypeArity: function (symbol) { return ((symbolResolver.getTypeArity(symbol))); }\r\n    };\r\n    var /** @type {?} */ viewCompiler = new ViewCompiler(config, elementSchemaRegistry);\r\n    var /** @type {?} */ compiler = new AotCompiler(config, compilerHost, resolver, tmplParser, new StyleCompiler(urlResolver), viewCompiler, new NgModuleCompiler(), new TypeScriptEmitter(importResolver), summaryResolver, options.locale || null, options.i18nFormat || null, options.genFilePreamble || null, symbolResolver);\r\n    return { compiler: compiler, reflector: staticReflector };\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} statements\r\n * @param {?} resultVars\r\n * @return {?}\r\n */\r\nfunction interpretStatements(statements, resultVars) {\r\n    var /** @type {?} */ stmtsWithReturn = statements.concat([new ReturnStatement(literalArr(resultVars.map(function (resultVar) { return variable(resultVar); })))]);\r\n    var /** @type {?} */ ctx = new _ExecutionContext(null, null, null, new Map());\r\n    var /** @type {?} */ visitor = new StatementInterpreter();\r\n    var /** @type {?} */ result = visitor.visitAllStatements(stmtsWithReturn, ctx);\r\n    return result != null ? result.value : null;\r\n}\r\n/**\r\n * @param {?} varNames\r\n * @param {?} varValues\r\n * @param {?} statements\r\n * @param {?} ctx\r\n * @param {?} visitor\r\n * @return {?}\r\n */\r\nfunction _executeFunctionStatements(varNames, varValues, statements, ctx, visitor) {\r\n    var /** @type {?} */ childCtx = ctx.createChildWihtLocalVars();\r\n    for (var /** @type {?} */ i = 0; i < varNames.length; i++) {\r\n        childCtx.vars.set(varNames[i], varValues[i]);\r\n    }\r\n    var /** @type {?} */ result = visitor.visitAllStatements(statements, childCtx);\r\n    return result ? result.value : null;\r\n}\r\nvar _ExecutionContext = (function () {\r\n    /**\r\n     * @param {?} parent\r\n     * @param {?} instance\r\n     * @param {?} className\r\n     * @param {?} vars\r\n     */\r\n    function _ExecutionContext(parent, instance, className, vars) {\r\n        this.parent = parent;\r\n        this.instance = instance;\r\n        this.className = className;\r\n        this.vars = vars;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    _ExecutionContext.prototype.createChildWihtLocalVars = function () {\r\n        return new _ExecutionContext(this, this.instance, this.className, new Map());\r\n    };\r\n    return _ExecutionContext;\r\n}());\r\nvar ReturnValue = (function () {\r\n    /**\r\n     * @param {?} value\r\n     */\r\n    function ReturnValue(value) {\r\n        this.value = value;\r\n    }\r\n    return ReturnValue;\r\n}());\r\n/**\r\n * @param {?} _classStmt\r\n * @param {?} _ctx\r\n * @param {?} _visitor\r\n * @return {?}\r\n */\r\nfunction createDynamicClass(_classStmt, _ctx, _visitor) {\r\n    var /** @type {?} */ propertyDescriptors = {};\r\n    _classStmt.getters.forEach(function (getter) {\r\n        // Note: use `function` instead of arrow function to capture `this`\r\n        propertyDescriptors[getter.name] = {\r\n            configurable: false,\r\n            get: function () {\r\n                var /** @type {?} */ instanceCtx = new _ExecutionContext(_ctx, this, _classStmt.name, _ctx.vars);\r\n                return _executeFunctionStatements([], [], getter.body, instanceCtx, _visitor);\r\n            }\r\n        };\r\n    });\r\n    _classStmt.methods.forEach(function (method) {\r\n        var /** @type {?} */ paramNames = method.params.map(function (param) { return param.name; });\r\n        // Note: use `function` instead of arrow function to capture `this`\r\n        propertyDescriptors[((method.name))] = {\r\n            writable: false,\r\n            configurable: false,\r\n            value: function () {\r\n                var args = [];\r\n                for (var _i = 0; _i < arguments.length; _i++) {\r\n                    args[_i] = arguments[_i];\r\n                }\r\n                var /** @type {?} */ instanceCtx = new _ExecutionContext(_ctx, this, _classStmt.name, _ctx.vars);\r\n                return _executeFunctionStatements(paramNames, args, method.body, instanceCtx, _visitor);\r\n            }\r\n        };\r\n    });\r\n    var /** @type {?} */ ctorParamNames = _classStmt.constructorMethod.params.map(function (param) { return param.name; });\r\n    // Note: use `function` instead of arrow function to capture `this`\r\n    var /** @type {?} */ ctor = function () {\r\n        var _this = this;\r\n        var args = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            args[_i] = arguments[_i];\r\n        }\r\n        var /** @type {?} */ instanceCtx = new _ExecutionContext(_ctx, this, _classStmt.name, _ctx.vars);\r\n        _classStmt.fields.forEach(function (field) { _this[field.name] = undefined; });\r\n        _executeFunctionStatements(ctorParamNames, args, _classStmt.constructorMethod.body, instanceCtx, _visitor);\r\n    };\r\n    var /** @type {?} */ superClass = _classStmt.parent ? _classStmt.parent.visitExpression(_visitor, _ctx) : Object;\r\n    ctor.prototype = Object.create(superClass.prototype, propertyDescriptors);\r\n    return ctor;\r\n}\r\nvar StatementInterpreter = (function () {\r\n    function StatementInterpreter() {\r\n    }\r\n    /**\r\n     * @param {?} ast\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.debugAst = function (ast) { return debugOutputAstAsTypeScript(ast); };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitDeclareVarStmt = function (stmt, ctx) {\r\n        ctx.vars.set(stmt.name, stmt.value.visitExpression(this, ctx));\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitWriteVarExpr = function (expr, ctx) {\r\n        var /** @type {?} */ value = expr.value.visitExpression(this, ctx);\r\n        var /** @type {?} */ currCtx = ctx;\r\n        while (currCtx != null) {\r\n            if (currCtx.vars.has(expr.name)) {\r\n                currCtx.vars.set(expr.name, value);\r\n                return value;\r\n            }\r\n            currCtx = ((currCtx.parent));\r\n        }\r\n        throw new Error(\"Not declared variable \" + expr.name);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitReadVarExpr = function (ast, ctx) {\r\n        var /** @type {?} */ varName = ((ast.name));\r\n        if (ast.builtin != null) {\r\n            switch (ast.builtin) {\r\n                case BuiltinVar.Super:\r\n                    return ctx.instance.__proto__;\r\n                case BuiltinVar.This:\r\n                    return ctx.instance;\r\n                case BuiltinVar.CatchError:\r\n                    varName = CATCH_ERROR_VAR$2;\r\n                    break;\r\n                case BuiltinVar.CatchStack:\r\n                    varName = CATCH_STACK_VAR$2;\r\n                    break;\r\n                default:\r\n                    throw new Error(\"Unknown builtin variable \" + ast.builtin);\r\n            }\r\n        }\r\n        var /** @type {?} */ currCtx = ctx;\r\n        while (currCtx != null) {\r\n            if (currCtx.vars.has(varName)) {\r\n                return currCtx.vars.get(varName);\r\n            }\r\n            currCtx = ((currCtx.parent));\r\n        }\r\n        throw new Error(\"Not declared variable \" + varName);\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitWriteKeyExpr = function (expr, ctx) {\r\n        var /** @type {?} */ receiver = expr.receiver.visitExpression(this, ctx);\r\n        var /** @type {?} */ index = expr.index.visitExpression(this, ctx);\r\n        var /** @type {?} */ value = expr.value.visitExpression(this, ctx);\r\n        receiver[index] = value;\r\n        return value;\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitWritePropExpr = function (expr, ctx) {\r\n        var /** @type {?} */ receiver = expr.receiver.visitExpression(this, ctx);\r\n        var /** @type {?} */ value = expr.value.visitExpression(this, ctx);\r\n        receiver[expr.name] = value;\r\n        return value;\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitInvokeMethodExpr = function (expr, ctx) {\r\n        var /** @type {?} */ receiver = expr.receiver.visitExpression(this, ctx);\r\n        var /** @type {?} */ args = this.visitAllExpressions(expr.args, ctx);\r\n        var /** @type {?} */ result;\r\n        if (expr.builtin != null) {\r\n            switch (expr.builtin) {\r\n                case BuiltinMethod.ConcatArray:\r\n                    result = receiver.concat.apply(receiver, args);\r\n                    break;\r\n                case BuiltinMethod.SubscribeObservable:\r\n                    result = receiver.subscribe({ next: args[0] });\r\n                    break;\r\n                case BuiltinMethod.Bind:\r\n                    result = receiver.bind.apply(receiver, args);\r\n                    break;\r\n                default:\r\n                    throw new Error(\"Unknown builtin method \" + expr.builtin);\r\n            }\r\n        }\r\n        else {\r\n            result = receiver[((expr.name))].apply(receiver, args);\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitInvokeFunctionExpr = function (stmt, ctx) {\r\n        var /** @type {?} */ args = this.visitAllExpressions(stmt.args, ctx);\r\n        var /** @type {?} */ fnExpr = stmt.fn;\r\n        if (fnExpr instanceof ReadVarExpr && fnExpr.builtin === BuiltinVar.Super) {\r\n            ctx.instance.constructor.prototype.constructor.apply(ctx.instance, args);\r\n            return null;\r\n        }\r\n        else {\r\n            var /** @type {?} */ fn$$1 = stmt.fn.visitExpression(this, ctx);\r\n            return fn$$1.apply(null, args);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitReturnStmt = function (stmt, ctx) {\r\n        return new ReturnValue(stmt.value.visitExpression(this, ctx));\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitDeclareClassStmt = function (stmt, ctx) {\r\n        var /** @type {?} */ clazz = createDynamicClass(stmt, ctx, this);\r\n        ctx.vars.set(stmt.name, clazz);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitExpressionStmt = function (stmt, ctx) {\r\n        return stmt.expr.visitExpression(this, ctx);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitIfStmt = function (stmt, ctx) {\r\n        var /** @type {?} */ condition = stmt.condition.visitExpression(this, ctx);\r\n        if (condition) {\r\n            return this.visitAllStatements(stmt.trueCase, ctx);\r\n        }\r\n        else if (stmt.falseCase != null) {\r\n            return this.visitAllStatements(stmt.falseCase, ctx);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitTryCatchStmt = function (stmt, ctx) {\r\n        try {\r\n            return this.visitAllStatements(stmt.bodyStmts, ctx);\r\n        }\r\n        catch (e) {\r\n            var /** @type {?} */ childCtx = ctx.createChildWihtLocalVars();\r\n            childCtx.vars.set(CATCH_ERROR_VAR$2, e);\r\n            childCtx.vars.set(CATCH_STACK_VAR$2, e.stack);\r\n            return this.visitAllStatements(stmt.catchStmts, childCtx);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitThrowStmt = function (stmt, ctx) {\r\n        throw stmt.error.visitExpression(this, ctx);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?=} context\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitCommentStmt = function (stmt, context) { return null; };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitInstantiateExpr = function (ast, ctx) {\r\n        var /** @type {?} */ args = this.visitAllExpressions(ast.args, ctx);\r\n        var /** @type {?} */ clazz = ast.classExpr.visitExpression(this, ctx);\r\n        return new (clazz.bind.apply(clazz, [void 0].concat(args)))();\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitLiteralExpr = function (ast, ctx) { return ast.value; };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitExternalExpr = function (ast, ctx) {\r\n        return ast.value.reference;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitConditionalExpr = function (ast, ctx) {\r\n        if (ast.condition.visitExpression(this, ctx)) {\r\n            return ast.trueCase.visitExpression(this, ctx);\r\n        }\r\n        else if (ast.falseCase != null) {\r\n            return ast.falseCase.visitExpression(this, ctx);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitNotExpr = function (ast, ctx) {\r\n        return !ast.condition.visitExpression(this, ctx);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitCastExpr = function (ast, ctx) {\r\n        return ast.value.visitExpression(this, ctx);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitFunctionExpr = function (ast, ctx) {\r\n        var /** @type {?} */ paramNames = ast.params.map(function (param) { return param.name; });\r\n        return _declareFn(paramNames, ast.statements, ctx, this);\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitDeclareFunctionStmt = function (stmt, ctx) {\r\n        var /** @type {?} */ paramNames = stmt.params.map(function (param) { return param.name; });\r\n        ctx.vars.set(stmt.name, _declareFn(paramNames, stmt.statements, ctx, this));\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitBinaryOperatorExpr = function (ast, ctx) {\r\n        var _this = this;\r\n        var /** @type {?} */ lhs = function () { return ast.lhs.visitExpression(_this, ctx); };\r\n        var /** @type {?} */ rhs = function () { return ast.rhs.visitExpression(_this, ctx); };\r\n        switch (ast.operator) {\r\n            case BinaryOperator.Equals:\r\n                return lhs() == rhs();\r\n            case BinaryOperator.Identical:\r\n                return lhs() === rhs();\r\n            case BinaryOperator.NotEquals:\r\n                return lhs() != rhs();\r\n            case BinaryOperator.NotIdentical:\r\n                return lhs() !== rhs();\r\n            case BinaryOperator.And:\r\n                return lhs() && rhs();\r\n            case BinaryOperator.Or:\r\n                return lhs() || rhs();\r\n            case BinaryOperator.Plus:\r\n                return lhs() + rhs();\r\n            case BinaryOperator.Minus:\r\n                return lhs() - rhs();\r\n            case BinaryOperator.Divide:\r\n                return lhs() / rhs();\r\n            case BinaryOperator.Multiply:\r\n                return lhs() * rhs();\r\n            case BinaryOperator.Modulo:\r\n                return lhs() % rhs();\r\n            case BinaryOperator.Lower:\r\n                return lhs() < rhs();\r\n            case BinaryOperator.LowerEquals:\r\n                return lhs() <= rhs();\r\n            case BinaryOperator.Bigger:\r\n                return lhs() > rhs();\r\n            case BinaryOperator.BiggerEquals:\r\n                return lhs() >= rhs();\r\n            default:\r\n                throw new Error(\"Unknown operator \" + ast.operator);\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitReadPropExpr = function (ast, ctx) {\r\n        var /** @type {?} */ result;\r\n        var /** @type {?} */ receiver = ast.receiver.visitExpression(this, ctx);\r\n        result = receiver[ast.name];\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitReadKeyExpr = function (ast, ctx) {\r\n        var /** @type {?} */ receiver = ast.receiver.visitExpression(this, ctx);\r\n        var /** @type {?} */ prop = ast.index.visitExpression(this, ctx);\r\n        return receiver[prop];\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitLiteralArrayExpr = function (ast, ctx) {\r\n        return this.visitAllExpressions(ast.entries, ctx);\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitLiteralMapExpr = function (ast, ctx) {\r\n        var _this = this;\r\n        var /** @type {?} */ result = {};\r\n        ast.entries.forEach(function (entry) { return ((result))[entry.key] = entry.value.visitExpression(_this, ctx); });\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} context\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitCommaExpr = function (ast, context) {\r\n        var /** @type {?} */ values = this.visitAllExpressions(ast.parts, context);\r\n        return values[values.length - 1];\r\n    };\r\n    /**\r\n     * @param {?} expressions\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitAllExpressions = function (expressions, ctx) {\r\n        var _this = this;\r\n        return expressions.map(function (expr) { return expr.visitExpression(_this, ctx); });\r\n    };\r\n    /**\r\n     * @param {?} statements\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    StatementInterpreter.prototype.visitAllStatements = function (statements, ctx) {\r\n        for (var /** @type {?} */ i = 0; i < statements.length; i++) {\r\n            var /** @type {?} */ stmt = statements[i];\r\n            var /** @type {?} */ val = stmt.visitStatement(this, ctx);\r\n            if (val instanceof ReturnValue) {\r\n                return val;\r\n            }\r\n        }\r\n        return null;\r\n    };\r\n    return StatementInterpreter;\r\n}());\r\n/**\r\n * @param {?} varNames\r\n * @param {?} statements\r\n * @param {?} ctx\r\n * @param {?} visitor\r\n * @return {?}\r\n */\r\nfunction _declareFn(varNames, statements, ctx, visitor) {\r\n    return function () {\r\n        var args = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            args[_i] = arguments[_i];\r\n        }\r\n        return _executeFunctionStatements(varNames, args, statements, ctx, visitor);\r\n    };\r\n}\r\nvar CATCH_ERROR_VAR$2 = 'error';\r\nvar CATCH_STACK_VAR$2 = 'stack';\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @abstract\r\n */\r\nvar AbstractJsEmitterVisitor = (function (_super) {\r\n    __extends(AbstractJsEmitterVisitor, _super);\r\n    function AbstractJsEmitterVisitor() {\r\n        return _super.call(this, false) || this;\r\n    }\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype.visitDeclareClassStmt = function (stmt, ctx) {\r\n        var _this = this;\r\n        ctx.pushClass(stmt);\r\n        this._visitClassConstructor(stmt, ctx);\r\n        if (stmt.parent != null) {\r\n            ctx.print(stmt, stmt.name + \".prototype = Object.create(\");\r\n            stmt.parent.visitExpression(this, ctx);\r\n            ctx.println(stmt, \".prototype);\");\r\n        }\r\n        stmt.getters.forEach(function (getter) { return _this._visitClassGetter(stmt, getter, ctx); });\r\n        stmt.methods.forEach(function (method) { return _this._visitClassMethod(stmt, method, ctx); });\r\n        ctx.popClass();\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype._visitClassConstructor = function (stmt, ctx) {\r\n        ctx.print(stmt, \"function \" + stmt.name + \"(\");\r\n        if (stmt.constructorMethod != null) {\r\n            this._visitParams(stmt.constructorMethod.params, ctx);\r\n        }\r\n        ctx.println(stmt, \") {\");\r\n        ctx.incIndent();\r\n        if (stmt.constructorMethod != null) {\r\n            if (stmt.constructorMethod.body.length > 0) {\r\n                ctx.println(stmt, \"var self = this;\");\r\n                this.visitAllStatements(stmt.constructorMethod.body, ctx);\r\n            }\r\n        }\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"}\");\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} getter\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype._visitClassGetter = function (stmt, getter, ctx) {\r\n        ctx.println(stmt, \"Object.defineProperty(\" + stmt.name + \".prototype, '\" + getter.name + \"', { get: function() {\");\r\n        ctx.incIndent();\r\n        if (getter.body.length > 0) {\r\n            ctx.println(stmt, \"var self = this;\");\r\n            this.visitAllStatements(getter.body, ctx);\r\n        }\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"}});\");\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} method\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype._visitClassMethod = function (stmt, method, ctx) {\r\n        ctx.print(stmt, stmt.name + \".prototype.\" + method.name + \" = function(\");\r\n        this._visitParams(method.params, ctx);\r\n        ctx.println(stmt, \") {\");\r\n        ctx.incIndent();\r\n        if (method.body.length > 0) {\r\n            ctx.println(stmt, \"var self = this;\");\r\n            this.visitAllStatements(method.body, ctx);\r\n        }\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"};\");\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype.visitReadVarExpr = function (ast, ctx) {\r\n        if (ast.builtin === BuiltinVar.This) {\r\n            ctx.print(ast, 'self');\r\n        }\r\n        else if (ast.builtin === BuiltinVar.Super) {\r\n            throw new Error(\"'super' needs to be handled at a parent ast node, not at the variable level!\");\r\n        }\r\n        else {\r\n            _super.prototype.visitReadVarExpr.call(this, ast, ctx);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype.visitDeclareVarStmt = function (stmt, ctx) {\r\n        ctx.print(stmt, \"var \" + stmt.name + \" = \");\r\n        stmt.value.visitExpression(this, ctx);\r\n        ctx.println(stmt, \";\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype.visitCastExpr = function (ast, ctx) {\r\n        ast.value.visitExpression(this, ctx);\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} expr\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype.visitInvokeFunctionExpr = function (expr, ctx) {\r\n        var /** @type {?} */ fnExpr = expr.fn;\r\n        if (fnExpr instanceof ReadVarExpr && fnExpr.builtin === BuiltinVar.Super) {\r\n            ((((ctx.currentClass)).parent)).visitExpression(this, ctx);\r\n            ctx.print(expr, \".call(this\");\r\n            if (expr.args.length > 0) {\r\n                ctx.print(expr, \", \");\r\n                this.visitAllExpressions(expr.args, ctx, ',');\r\n            }\r\n            ctx.print(expr, \")\");\r\n        }\r\n        else {\r\n            _super.prototype.visitInvokeFunctionExpr.call(this, expr, ctx);\r\n        }\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype.visitFunctionExpr = function (ast, ctx) {\r\n        ctx.print(ast, \"function(\");\r\n        this._visitParams(ast.params, ctx);\r\n        ctx.println(ast, \") {\");\r\n        ctx.incIndent();\r\n        this.visitAllStatements(ast.statements, ctx);\r\n        ctx.decIndent();\r\n        ctx.print(ast, \"}\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype.visitDeclareFunctionStmt = function (stmt, ctx) {\r\n        ctx.print(stmt, \"function \" + stmt.name + \"(\");\r\n        this._visitParams(stmt.params, ctx);\r\n        ctx.println(stmt, \") {\");\r\n        ctx.incIndent();\r\n        this.visitAllStatements(stmt.statements, ctx);\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"}\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} stmt\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype.visitTryCatchStmt = function (stmt, ctx) {\r\n        ctx.println(stmt, \"try {\");\r\n        ctx.incIndent();\r\n        this.visitAllStatements(stmt.bodyStmts, ctx);\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"} catch (\" + CATCH_ERROR_VAR$1.name + \") {\");\r\n        ctx.incIndent();\r\n        var /** @type {?} */ catchStmts = [/** @type {?} */ (CATCH_STACK_VAR$1.set(CATCH_ERROR_VAR$1.prop('stack')).toDeclStmt(null, [\r\n                StmtModifier.Final\r\n            ]))].concat(stmt.catchStmts);\r\n        this.visitAllStatements(catchStmts, ctx);\r\n        ctx.decIndent();\r\n        ctx.println(stmt, \"}\");\r\n        return null;\r\n    };\r\n    /**\r\n     * @param {?} params\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype._visitParams = function (params, ctx) {\r\n        this.visitAllObjects(function (param) { return ctx.print(null, param.name); }, params, ctx, ',');\r\n    };\r\n    /**\r\n     * @param {?} method\r\n     * @return {?}\r\n     */\r\n    AbstractJsEmitterVisitor.prototype.getBuiltinMethodName = function (method) {\r\n        var /** @type {?} */ name;\r\n        switch (method) {\r\n            case BuiltinMethod.ConcatArray:\r\n                name = 'concat';\r\n                break;\r\n            case BuiltinMethod.SubscribeObservable:\r\n                name = 'subscribe';\r\n                break;\r\n            case BuiltinMethod.Bind:\r\n                name = 'bind';\r\n                break;\r\n            default:\r\n                throw new Error(\"Unknown builtin method: \" + method);\r\n        }\r\n        return name;\r\n    };\r\n    return AbstractJsEmitterVisitor;\r\n}(AbstractEmitterVisitor));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @param {?} sourceUrl\r\n * @param {?} ctx\r\n * @param {?} vars\r\n * @return {?}\r\n */\r\nfunction evalExpression(sourceUrl$$1, ctx, vars) {\r\n    var /** @type {?} */ fnBody = ctx.toSource() + \"\\n//# sourceURL=\" + sourceUrl$$1;\r\n    var /** @type {?} */ fnArgNames = [];\r\n    var /** @type {?} */ fnArgValues = [];\r\n    for (var /** @type {?} */ argName in vars) {\r\n        fnArgNames.push(argName);\r\n        fnArgValues.push(vars[argName]);\r\n    }\r\n    if (isDevMode()) {\r\n        // using `new Function(...)` generates a header, 1 line of no arguments, 2 lines otherwise\r\n        // E.g. ```\r\n        // function anonymous(a,b,c\r\n        // /**/) { ... }```\r\n        // We don't want to hard code this fact, so we auto detect it via an empty function first.\r\n        var /** @type {?} */ emptyFn = new (Function.bind.apply(Function, [void 0].concat(fnArgNames.concat('return null;'))))().toString();\r\n        var /** @type {?} */ headerLines = emptyFn.slice(0, emptyFn.indexOf('return null;')).split('\\n').length - 1;\r\n        fnBody += \"\\n\" + ctx.toSourceMapGenerator(sourceUrl$$1, sourceUrl$$1, headerLines).toJsComment();\r\n    }\r\n    return new (Function.bind.apply(Function, [void 0].concat(fnArgNames.concat(fnBody))))().apply(void 0, fnArgValues);\r\n}\r\n/**\r\n * @param {?} sourceUrl\r\n * @param {?} statements\r\n * @param {?} resultVars\r\n * @return {?}\r\n */\r\nfunction jitStatements(sourceUrl$$1, statements, resultVars) {\r\n    var /** @type {?} */ converter = new JitEmitterVisitor();\r\n    var /** @type {?} */ ctx = EmitterVisitorContext.createRoot(resultVars);\r\n    var /** @type {?} */ returnStmt = new ReturnStatement(literalArr(resultVars.map(function (resultVar) { return variable(resultVar); })));\r\n    converter.visitAllStatements(statements.concat([returnStmt]), ctx);\r\n    return evalExpression(sourceUrl$$1, ctx, converter.getArgs());\r\n}\r\nvar JitEmitterVisitor = (function (_super) {\r\n    __extends(JitEmitterVisitor, _super);\r\n    function JitEmitterVisitor() {\r\n        var _this = _super.apply(this, arguments) || this;\r\n        _this._evalArgNames = [];\r\n        _this._evalArgValues = [];\r\n        return _this;\r\n    }\r\n    /**\r\n     * @return {?}\r\n     */\r\n    JitEmitterVisitor.prototype.getArgs = function () {\r\n        var /** @type {?} */ result = {};\r\n        for (var /** @type {?} */ i = 0; i < this._evalArgNames.length; i++) {\r\n            result[this._evalArgNames[i]] = this._evalArgValues[i];\r\n        }\r\n        return result;\r\n    };\r\n    /**\r\n     * @param {?} ast\r\n     * @param {?} ctx\r\n     * @return {?}\r\n     */\r\n    JitEmitterVisitor.prototype.visitExternalExpr = function (ast, ctx) {\r\n        var /** @type {?} */ value = ast.value.reference;\r\n        var /** @type {?} */ id = this._evalArgValues.indexOf(value);\r\n        if (id === -1) {\r\n            id = this._evalArgValues.length;\r\n            this._evalArgValues.push(value);\r\n            var /** @type {?} */ name = identifierName(ast.value) || 'val';\r\n            this._evalArgNames.push(\"jit_\" + name + id);\r\n        }\r\n        ctx.print(ast, this._evalArgNames[id]);\r\n        return null;\r\n    };\r\n    return JitEmitterVisitor;\r\n}(AbstractJsEmitterVisitor));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * An internal module of the Angular compiler that begins with component types,\r\n * extracts templates, and eventually produces a compiled version of the component\r\n * ready for linking into an application.\r\n *\r\n * \\@security When compiling templates at runtime, you must ensure that the entire template comes\r\n * from a trusted source. Attacker-controlled data introduced by a template could expose your\r\n * application to XSS risks.  For more detail, see the [Security Guide](http://g.co/ng/security).\r\n */\r\nvar JitCompiler = (function () {\r\n    /**\r\n     * @param {?} _injector\r\n     * @param {?} _metadataResolver\r\n     * @param {?} _templateParser\r\n     * @param {?} _styleCompiler\r\n     * @param {?} _viewCompiler\r\n     * @param {?} _ngModuleCompiler\r\n     * @param {?} _compilerConfig\r\n     * @param {?} _console\r\n     */\r\n    function JitCompiler(_injector, _metadataResolver, _templateParser, _styleCompiler, _viewCompiler, _ngModuleCompiler, _compilerConfig, _console) {\r\n        this._injector = _injector;\r\n        this._metadataResolver = _metadataResolver;\r\n        this._templateParser = _templateParser;\r\n        this._styleCompiler = _styleCompiler;\r\n        this._viewCompiler = _viewCompiler;\r\n        this._ngModuleCompiler = _ngModuleCompiler;\r\n        this._compilerConfig = _compilerConfig;\r\n        this._console = _console;\r\n        this._compiledTemplateCache = new Map();\r\n        this._compiledHostTemplateCache = new Map();\r\n        this._compiledDirectiveWrapperCache = new Map();\r\n        this._compiledNgModuleCache = new Map();\r\n        this._sharedStylesheetCount = 0;\r\n    }\r\n    Object.defineProperty(JitCompiler.prototype, \"injector\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._injector; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype.compileModuleSync = function (moduleType) {\r\n        return ((this._compileModuleAndComponents(moduleType, true).syncResult));\r\n    };\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype.compileModuleAsync = function (moduleType) {\r\n        return ((this._compileModuleAndComponents(moduleType, false).asyncResult));\r\n    };\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype.compileModuleAndAllComponentsSync = function (moduleType) {\r\n        return ((this._compileModuleAndAllComponents(moduleType, true).syncResult));\r\n    };\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype.compileModuleAndAllComponentsAsync = function (moduleType) {\r\n        return ((this._compileModuleAndAllComponents(moduleType, false).asyncResult));\r\n    };\r\n    /**\r\n     * @param {?} component\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype.getNgContentSelectors = function (component) {\r\n        this._console.warn('Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!');\r\n        var /** @type {?} */ template = this._compiledTemplateCache.get(component);\r\n        if (!template) {\r\n            throw new Error(\"The component \" + ɵstringify(component) + \" is not yet compiled!\");\r\n        }\r\n        return ((template.compMeta.template)).ngContentSelectors;\r\n    };\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @param {?} isSync\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype._compileModuleAndComponents = function (moduleType, isSync) {\r\n        var _this = this;\r\n        var /** @type {?} */ loadingPromise = this._loadModules(moduleType, isSync);\r\n        var /** @type {?} */ createResult = function () {\r\n            _this._compileComponents(moduleType, null);\r\n            return _this._compileModule(moduleType);\r\n        };\r\n        if (isSync) {\r\n            return new SyncAsyncResult(createResult());\r\n        }\r\n        else {\r\n            return new SyncAsyncResult(null, loadingPromise.then(createResult));\r\n        }\r\n    };\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @param {?} isSync\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype._compileModuleAndAllComponents = function (moduleType, isSync) {\r\n        var _this = this;\r\n        var /** @type {?} */ loadingPromise = this._loadModules(moduleType, isSync);\r\n        var /** @type {?} */ createResult = function () {\r\n            var /** @type {?} */ componentFactories = [];\r\n            _this._compileComponents(moduleType, componentFactories);\r\n            return new ModuleWithComponentFactories(_this._compileModule(moduleType), componentFactories);\r\n        };\r\n        if (isSync) {\r\n            return new SyncAsyncResult(createResult());\r\n        }\r\n        else {\r\n            return new SyncAsyncResult(null, loadingPromise.then(createResult));\r\n        }\r\n    };\r\n    /**\r\n     * @param {?} mainModule\r\n     * @param {?} isSync\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype._loadModules = function (mainModule, isSync) {\r\n        var _this = this;\r\n        var /** @type {?} */ loadingPromises = [];\r\n        var /** @type {?} */ ngModule = ((this._metadataResolver.getNgModuleMetadata(mainModule)));\r\n        // Note: the loadingPromise for a module only includes the loading of the exported directives\r\n        // of imported modules.\r\n        // However, for runtime compilation, we want to transitively compile all modules,\r\n        // so we also need to call loadNgModuleDirectiveAndPipeMetadata for all nested modules.\r\n        ngModule.transitiveModule.modules.forEach(function (localModuleMeta) {\r\n            loadingPromises.push(_this._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(localModuleMeta.reference, isSync));\r\n        });\r\n        return Promise.all(loadingPromises);\r\n    };\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype._compileModule = function (moduleType) {\r\n        var _this = this;\r\n        var /** @type {?} */ ngModuleFactory = ((this._compiledNgModuleCache.get(moduleType)));\r\n        if (!ngModuleFactory) {\r\n            var /** @type {?} */ moduleMeta_1 = ((this._metadataResolver.getNgModuleMetadata(moduleType)));\r\n            // Always provide a bound Compiler\r\n            var /** @type {?} */ extraProviders = [this._metadataResolver.getProviderMetadata(new ProviderMeta(Compiler, { useFactory: function () { return new ModuleBoundCompiler(_this, moduleMeta_1.type.reference); } }))];\r\n            var /** @type {?} */ compileResult = this._ngModuleCompiler.compile(moduleMeta_1, extraProviders);\r\n            if (!this._compilerConfig.useJit) {\r\n                ngModuleFactory =\r\n                    interpretStatements(compileResult.statements, [compileResult.ngModuleFactoryVar])[0];\r\n            }\r\n            else {\r\n                ngModuleFactory = jitStatements(ngModuleJitUrl(moduleMeta_1), compileResult.statements, [compileResult.ngModuleFactoryVar])[0];\r\n            }\r\n            this._compiledNgModuleCache.set(moduleMeta_1.type.reference, ngModuleFactory);\r\n        }\r\n        return ngModuleFactory;\r\n    };\r\n    /**\r\n     * \\@internal\r\n     * @param {?} mainModule\r\n     * @param {?} allComponentFactories\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype._compileComponents = function (mainModule, allComponentFactories) {\r\n        var _this = this;\r\n        var /** @type {?} */ ngModule = ((this._metadataResolver.getNgModuleMetadata(mainModule)));\r\n        var /** @type {?} */ moduleByDirective = new Map();\r\n        var /** @type {?} */ templates = new Set();\r\n        ngModule.transitiveModule.modules.forEach(function (localModuleSummary) {\r\n            var /** @type {?} */ localModuleMeta = ((_this._metadataResolver.getNgModuleMetadata(localModuleSummary.reference)));\r\n            localModuleMeta.declaredDirectives.forEach(function (dirIdentifier) {\r\n                moduleByDirective.set(dirIdentifier.reference, localModuleMeta);\r\n                var /** @type {?} */ dirMeta = _this._metadataResolver.getDirectiveMetadata(dirIdentifier.reference);\r\n                if (dirMeta.isComponent) {\r\n                    templates.add(_this._createCompiledTemplate(dirMeta, localModuleMeta));\r\n                    if (allComponentFactories) {\r\n                        var /** @type {?} */ template = _this._createCompiledHostTemplate(dirMeta.type.reference, localModuleMeta);\r\n                        templates.add(template);\r\n                        allComponentFactories.push(/** @type {?} */ (dirMeta.componentFactory));\r\n                    }\r\n                }\r\n            });\r\n        });\r\n        ngModule.transitiveModule.modules.forEach(function (localModuleSummary) {\r\n            var /** @type {?} */ localModuleMeta = ((_this._metadataResolver.getNgModuleMetadata(localModuleSummary.reference)));\r\n            localModuleMeta.declaredDirectives.forEach(function (dirIdentifier) {\r\n                var /** @type {?} */ dirMeta = _this._metadataResolver.getDirectiveMetadata(dirIdentifier.reference);\r\n                if (dirMeta.isComponent) {\r\n                    dirMeta.entryComponents.forEach(function (entryComponentType) {\r\n                        var /** @type {?} */ moduleMeta = ((moduleByDirective.get(entryComponentType.componentType)));\r\n                        templates.add(_this._createCompiledHostTemplate(entryComponentType.componentType, moduleMeta));\r\n                    });\r\n                }\r\n            });\r\n            localModuleMeta.entryComponents.forEach(function (entryComponentType) {\r\n                var /** @type {?} */ moduleMeta = ((moduleByDirective.get(entryComponentType.componentType)));\r\n                templates.add(_this._createCompiledHostTemplate(entryComponentType.componentType, moduleMeta));\r\n            });\r\n        });\r\n        templates.forEach(function (template) { return _this._compileTemplate(template); });\r\n    };\r\n    /**\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype.clearCacheFor = function (type) {\r\n        this._compiledNgModuleCache.delete(type);\r\n        this._metadataResolver.clearCacheFor(type);\r\n        this._compiledHostTemplateCache.delete(type);\r\n        var /** @type {?} */ compiledTemplate = this._compiledTemplateCache.get(type);\r\n        if (compiledTemplate) {\r\n            this._compiledTemplateCache.delete(type);\r\n        }\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype.clearCache = function () {\r\n        this._metadataResolver.clearCache();\r\n        this._compiledTemplateCache.clear();\r\n        this._compiledHostTemplateCache.clear();\r\n        this._compiledNgModuleCache.clear();\r\n    };\r\n    /**\r\n     * @param {?} compType\r\n     * @param {?} ngModule\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype._createCompiledHostTemplate = function (compType, ngModule) {\r\n        if (!ngModule) {\r\n            throw new Error(\"Component \" + ɵstringify(compType) + \" is not part of any NgModule or the module has not been imported into your module.\");\r\n        }\r\n        var /** @type {?} */ compiledTemplate = this._compiledHostTemplateCache.get(compType);\r\n        if (!compiledTemplate) {\r\n            var /** @type {?} */ compMeta = this._metadataResolver.getDirectiveMetadata(compType);\r\n            assertComponent(compMeta);\r\n            var /** @type {?} */ componentFactory = (compMeta.componentFactory);\r\n            var /** @type {?} */ hostClass = this._metadataResolver.getHostComponentType(compType);\r\n            var /** @type {?} */ hostMeta = createHostComponentMeta(hostClass, compMeta, /** @type {?} */ (ɵgetComponentViewDefinitionFactory(componentFactory)));\r\n            compiledTemplate =\r\n                new CompiledTemplate(true, compMeta.type, hostMeta, ngModule, [compMeta.type]);\r\n            this._compiledHostTemplateCache.set(compType, compiledTemplate);\r\n        }\r\n        return compiledTemplate;\r\n    };\r\n    /**\r\n     * @param {?} compMeta\r\n     * @param {?} ngModule\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype._createCompiledTemplate = function (compMeta, ngModule) {\r\n        var /** @type {?} */ compiledTemplate = this._compiledTemplateCache.get(compMeta.type.reference);\r\n        if (!compiledTemplate) {\r\n            assertComponent(compMeta);\r\n            compiledTemplate = new CompiledTemplate(false, compMeta.type, compMeta, ngModule, ngModule.transitiveModule.directives);\r\n            this._compiledTemplateCache.set(compMeta.type.reference, compiledTemplate);\r\n        }\r\n        return compiledTemplate;\r\n    };\r\n    /**\r\n     * @param {?} template\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype._compileTemplate = function (template) {\r\n        var _this = this;\r\n        if (template.isCompiled) {\r\n            return;\r\n        }\r\n        var /** @type {?} */ compMeta = template.compMeta;\r\n        var /** @type {?} */ externalStylesheetsByModuleUrl = new Map();\r\n        var /** @type {?} */ stylesCompileResult = this._styleCompiler.compileComponent(compMeta);\r\n        stylesCompileResult.externalStylesheets.forEach(function (r) { externalStylesheetsByModuleUrl.set(/** @type {?} */ ((r.meta.moduleUrl)), r); });\r\n        this._resolveStylesCompileResult(stylesCompileResult.componentStylesheet, externalStylesheetsByModuleUrl);\r\n        var /** @type {?} */ directives = template.directives.map(function (dir) { return _this._metadataResolver.getDirectiveSummary(dir.reference); });\r\n        var /** @type {?} */ pipes = template.ngModule.transitiveModule.pipes.map(function (pipe) { return _this._metadataResolver.getPipeSummary(pipe.reference); });\r\n        var _a = this._templateParser.parse(compMeta, /** @type {?} */ ((((compMeta.template)).template)), directives, pipes, template.ngModule.schemas, templateSourceUrl(template.ngModule.type, template.compMeta, /** @type {?} */ ((template.compMeta.template)))), parsedTemplate = _a.template, usedPipes = _a.pipes;\r\n        var /** @type {?} */ compileResult = this._viewCompiler.compileComponent(compMeta, parsedTemplate, variable(stylesCompileResult.componentStylesheet.stylesVar), usedPipes);\r\n        var /** @type {?} */ statements = stylesCompileResult.componentStylesheet.statements.concat(compileResult.statements);\r\n        var /** @type {?} */ viewClassAndRendererTypeVars = compMeta.isHost ?\r\n            [compileResult.viewClassVar] :\r\n            [compileResult.viewClassVar, compileResult.rendererTypeVar];\r\n        var /** @type {?} */ viewClass;\r\n        var /** @type {?} */ rendererType;\r\n        if (!this._compilerConfig.useJit) {\r\n            _b = interpretStatements(statements, viewClassAndRendererTypeVars), viewClass = _b[0], rendererType = _b[1];\r\n        }\r\n        else {\r\n            _c = jitStatements(templateJitUrl(template.ngModule.type, template.compMeta), statements, viewClassAndRendererTypeVars), viewClass = _c[0], rendererType = _c[1];\r\n        }\r\n        template.compiled(viewClass, rendererType);\r\n        var _b, _c;\r\n    };\r\n    /**\r\n     * @param {?} result\r\n     * @param {?} externalStylesheetsByModuleUrl\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype._resolveStylesCompileResult = function (result, externalStylesheetsByModuleUrl) {\r\n        var _this = this;\r\n        result.dependencies.forEach(function (dep, i) {\r\n            var /** @type {?} */ nestedCompileResult = ((externalStylesheetsByModuleUrl.get(dep.moduleUrl)));\r\n            var /** @type {?} */ nestedStylesArr = _this._resolveAndEvalStylesCompileResult(nestedCompileResult, externalStylesheetsByModuleUrl);\r\n            dep.valuePlaceholder.reference = nestedStylesArr;\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} result\r\n     * @param {?} externalStylesheetsByModuleUrl\r\n     * @return {?}\r\n     */\r\n    JitCompiler.prototype._resolveAndEvalStylesCompileResult = function (result, externalStylesheetsByModuleUrl) {\r\n        this._resolveStylesCompileResult(result, externalStylesheetsByModuleUrl);\r\n        if (!this._compilerConfig.useJit) {\r\n            return interpretStatements(result.statements, [result.stylesVar])[0];\r\n        }\r\n        else {\r\n            return jitStatements(sharedStylesheetJitUrl(result.meta, this._sharedStylesheetCount++), result.statements, [result.stylesVar])[0];\r\n        }\r\n    };\r\n    return JitCompiler;\r\n}());\r\nJitCompiler.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nJitCompiler.ctorParameters = function () { return [\r\n    { type: Injector, },\r\n    { type: CompileMetadataResolver, },\r\n    { type: TemplateParser, },\r\n    { type: StyleCompiler, },\r\n    { type: ViewCompiler, },\r\n    { type: NgModuleCompiler, },\r\n    { type: CompilerConfig, },\r\n    { type: ɵConsole, },\r\n]; };\r\nvar CompiledTemplate = (function () {\r\n    /**\r\n     * @param {?} isHost\r\n     * @param {?} compType\r\n     * @param {?} compMeta\r\n     * @param {?} ngModule\r\n     * @param {?} directives\r\n     */\r\n    function CompiledTemplate(isHost, compType, compMeta, ngModule, directives) {\r\n        this.isHost = isHost;\r\n        this.compType = compType;\r\n        this.compMeta = compMeta;\r\n        this.ngModule = ngModule;\r\n        this.directives = directives;\r\n        this._viewClass = ((null));\r\n        this.isCompiled = false;\r\n    }\r\n    /**\r\n     * @param {?} viewClass\r\n     * @param {?} rendererType\r\n     * @return {?}\r\n     */\r\n    CompiledTemplate.prototype.compiled = function (viewClass, rendererType) {\r\n        this._viewClass = viewClass;\r\n        ((this.compMeta.componentViewType)).setDelegate(viewClass);\r\n        for (var /** @type {?} */ prop in rendererType) {\r\n            ((this.compMeta.rendererType))[prop] = rendererType[prop];\r\n        }\r\n        this.isCompiled = true;\r\n    };\r\n    return CompiledTemplate;\r\n}());\r\n/**\r\n * @param {?} meta\r\n * @return {?}\r\n */\r\nfunction assertComponent(meta) {\r\n    if (!meta.isComponent) {\r\n        throw new Error(\"Could not compile '\" + identifierName(meta.type) + \"' because it is not a component.\");\r\n    }\r\n}\r\n/**\r\n * Implements `Compiler` by delegating to the JitCompiler using a known module.\r\n */\r\nvar ModuleBoundCompiler = (function () {\r\n    /**\r\n     * @param {?} _delegate\r\n     * @param {?} _ngModule\r\n     */\r\n    function ModuleBoundCompiler(_delegate, _ngModule) {\r\n        this._delegate = _delegate;\r\n        this._ngModule = _ngModule;\r\n    }\r\n    Object.defineProperty(ModuleBoundCompiler.prototype, \"_injector\", {\r\n        /**\r\n         * @return {?}\r\n         */\r\n        get: function () { return this._delegate.injector; },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    ModuleBoundCompiler.prototype.compileModuleSync = function (moduleType) {\r\n        return this._delegate.compileModuleSync(moduleType);\r\n    };\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    ModuleBoundCompiler.prototype.compileModuleAsync = function (moduleType) {\r\n        return this._delegate.compileModuleAsync(moduleType);\r\n    };\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    ModuleBoundCompiler.prototype.compileModuleAndAllComponentsSync = function (moduleType) {\r\n        return this._delegate.compileModuleAndAllComponentsSync(moduleType);\r\n    };\r\n    /**\r\n     * @template T\r\n     * @param {?} moduleType\r\n     * @return {?}\r\n     */\r\n    ModuleBoundCompiler.prototype.compileModuleAndAllComponentsAsync = function (moduleType) {\r\n        return this._delegate.compileModuleAndAllComponentsAsync(moduleType);\r\n    };\r\n    /**\r\n     * @param {?} component\r\n     * @return {?}\r\n     */\r\n    ModuleBoundCompiler.prototype.getNgContentSelectors = function (component) {\r\n        return this._delegate.getNgContentSelectors(component);\r\n    };\r\n    /**\r\n     * Clears all caches\r\n     * @return {?}\r\n     */\r\n    ModuleBoundCompiler.prototype.clearCache = function () { this._delegate.clearCache(); };\r\n    /**\r\n     * Clears the cache for the given component/ngModule.\r\n     * @param {?} type\r\n     * @return {?}\r\n     */\r\n    ModuleBoundCompiler.prototype.clearCacheFor = function (type) { this._delegate.clearCacheFor(type); };\r\n    return ModuleBoundCompiler;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * A container for message extracted from the templates.\r\n */\r\nvar MessageBundle = (function () {\r\n    /**\r\n     * @param {?} _htmlParser\r\n     * @param {?} _implicitTags\r\n     * @param {?} _implicitAttrs\r\n     * @param {?=} _locale\r\n     */\r\n    function MessageBundle(_htmlParser, _implicitTags, _implicitAttrs, _locale) {\r\n        if (_locale === void 0) { _locale = null; }\r\n        this._htmlParser = _htmlParser;\r\n        this._implicitTags = _implicitTags;\r\n        this._implicitAttrs = _implicitAttrs;\r\n        this._locale = _locale;\r\n        this._messages = [];\r\n    }\r\n    /**\r\n     * @param {?} html\r\n     * @param {?} url\r\n     * @param {?} interpolationConfig\r\n     * @return {?}\r\n     */\r\n    MessageBundle.prototype.updateFromTemplate = function (html, url, interpolationConfig) {\r\n        var /** @type {?} */ htmlParserResult = this._htmlParser.parse(html, url, true, interpolationConfig);\r\n        if (htmlParserResult.errors.length) {\r\n            return htmlParserResult.errors;\r\n        }\r\n        var /** @type {?} */ i18nParserResult = extractMessages(htmlParserResult.rootNodes, interpolationConfig, this._implicitTags, this._implicitAttrs);\r\n        if (i18nParserResult.errors.length) {\r\n            return i18nParserResult.errors;\r\n        }\r\n        (_a = this._messages).push.apply(_a, i18nParserResult.messages);\r\n        return [];\r\n        var _a;\r\n    };\r\n    /**\r\n     * @return {?}\r\n     */\r\n    MessageBundle.prototype.getMessages = function () { return this._messages; };\r\n    /**\r\n     * @param {?} serializer\r\n     * @param {?=} filterSources\r\n     * @return {?}\r\n     */\r\n    MessageBundle.prototype.write = function (serializer, filterSources) {\r\n        var /** @type {?} */ messages = {};\r\n        var /** @type {?} */ mapperVisitor = new MapPlaceholderNames();\r\n        // Deduplicate messages based on their ID\r\n        this._messages.forEach(function (message) {\r\n            var /** @type {?} */ id = serializer.digest(message);\r\n            if (!messages.hasOwnProperty(id)) {\r\n                messages[id] = message;\r\n            }\r\n            else {\r\n                (_a = messages[id].sources).push.apply(_a, message.sources);\r\n            }\r\n            var _a;\r\n        });\r\n        // Transform placeholder names using the serializer mapping\r\n        var /** @type {?} */ msgList = Object.keys(messages).map(function (id) {\r\n            var /** @type {?} */ mapper = serializer.createNameMapper(messages[id]);\r\n            var /** @type {?} */ src = messages[id];\r\n            var /** @type {?} */ nodes = mapper ? mapperVisitor.convert(src.nodes, mapper) : src.nodes;\r\n            var /** @type {?} */ transformedMessage = new Message(nodes, {}, {}, src.meaning, src.description, id);\r\n            transformedMessage.sources = src.sources;\r\n            if (filterSources) {\r\n                transformedMessage.sources.forEach(function (source) { return source.filePath = filterSources(source.filePath); });\r\n            }\r\n            return transformedMessage;\r\n        });\r\n        return serializer.write(msgList, this._locale);\r\n    };\r\n    return MessageBundle;\r\n}());\r\nvar MapPlaceholderNames = (function (_super) {\r\n    __extends(MapPlaceholderNames, _super);\r\n    function MapPlaceholderNames() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    /**\r\n     * @param {?} nodes\r\n     * @param {?} mapper\r\n     * @return {?}\r\n     */\r\n    MapPlaceholderNames.prototype.convert = function (nodes, mapper) {\r\n        var _this = this;\r\n        return mapper ? nodes.map(function (n) { return n.visit(_this, mapper); }) : nodes;\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?} mapper\r\n     * @return {?}\r\n     */\r\n    MapPlaceholderNames.prototype.visitTagPlaceholder = function (ph, mapper) {\r\n        var _this = this;\r\n        var /** @type {?} */ startName = ((mapper.toPublicName(ph.startName)));\r\n        var /** @type {?} */ closeName = ph.closeName ? ((mapper.toPublicName(ph.closeName))) : ph.closeName;\r\n        var /** @type {?} */ children = ph.children.map(function (n) { return n.visit(_this, mapper); });\r\n        return new TagPlaceholder(ph.tag, ph.attrs, startName, closeName, children, ph.isVoid, ph.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?} mapper\r\n     * @return {?}\r\n     */\r\n    MapPlaceholderNames.prototype.visitPlaceholder = function (ph, mapper) {\r\n        return new Placeholder(ph.value, /** @type {?} */ ((mapper.toPublicName(ph.name))), ph.sourceSpan);\r\n    };\r\n    /**\r\n     * @param {?} ph\r\n     * @param {?} mapper\r\n     * @return {?}\r\n     */\r\n    MapPlaceholderNames.prototype.visitIcuPlaceholder = function (ph, mapper) {\r\n        return new IcuPlaceholder(ph.value, /** @type {?} */ ((mapper.toPublicName(ph.name))), ph.sourceSpan);\r\n    };\r\n    return MapPlaceholderNames;\r\n}(CloneVisitor));\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Extract i18n messages from source code\r\n */\r\nvar Extractor = (function () {\r\n    /**\r\n     * @param {?} host\r\n     * @param {?} staticSymbolResolver\r\n     * @param {?} messageBundle\r\n     * @param {?} metadataResolver\r\n     */\r\n    function Extractor(host, staticSymbolResolver, messageBundle, metadataResolver) {\r\n        this.host = host;\r\n        this.staticSymbolResolver = staticSymbolResolver;\r\n        this.messageBundle = messageBundle;\r\n        this.metadataResolver = metadataResolver;\r\n    }\r\n    /**\r\n     * @param {?} rootFiles\r\n     * @return {?}\r\n     */\r\n    Extractor.prototype.extract = function (rootFiles) {\r\n        var _this = this;\r\n        var /** @type {?} */ programSymbols = extractProgramSymbols(this.staticSymbolResolver, rootFiles, this.host);\r\n        var _a = analyzeAndValidateNgModules(programSymbols, this.host, this.metadataResolver), files = _a.files, ngModules = _a.ngModules;\r\n        return Promise\r\n            .all(ngModules.map(function (ngModule) { return _this.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(ngModule.type.reference, false); }))\r\n            .then(function () {\r\n            var /** @type {?} */ errors = [];\r\n            files.forEach(function (file) {\r\n                var /** @type {?} */ compMetas = [];\r\n                file.directives.forEach(function (directiveType) {\r\n                    var /** @type {?} */ dirMeta = _this.metadataResolver.getDirectiveMetadata(directiveType);\r\n                    if (dirMeta && dirMeta.isComponent) {\r\n                        compMetas.push(dirMeta);\r\n                    }\r\n                });\r\n                compMetas.forEach(function (compMeta) {\r\n                    var /** @type {?} */ html = ((((compMeta.template)).template));\r\n                    var /** @type {?} */ interpolationConfig = InterpolationConfig.fromArray(/** @type {?} */ ((compMeta.template)).interpolation);\r\n                    errors.push.apply(errors, ((_this.messageBundle.updateFromTemplate(html, file.srcUrl, interpolationConfig))));\r\n                });\r\n            });\r\n            if (errors.length) {\r\n                throw new Error(errors.map(function (e) { return e.toString(); }).join('\\n'));\r\n            }\r\n            return _this.messageBundle;\r\n        });\r\n    };\r\n    /**\r\n     * @param {?} host\r\n     * @param {?} locale\r\n     * @return {?}\r\n     */\r\n    Extractor.create = function (host, locale) {\r\n        var /** @type {?} */ htmlParser = new I18NHtmlParser(new HtmlParser());\r\n        var /** @type {?} */ urlResolver = createOfflineCompileUrlResolver();\r\n        var /** @type {?} */ symbolCache = new StaticSymbolCache();\r\n        var /** @type {?} */ summaryResolver = new AotSummaryResolver(host, symbolCache);\r\n        var /** @type {?} */ staticSymbolResolver = new StaticSymbolResolver(host, symbolCache, summaryResolver);\r\n        var /** @type {?} */ staticReflector = new StaticReflector(summaryResolver, staticSymbolResolver);\r\n        StaticAndDynamicReflectionCapabilities.install(staticReflector);\r\n        var /** @type {?} */ config = new CompilerConfig({ defaultEncapsulation: ViewEncapsulation.Emulated, useJit: false });\r\n        var /** @type {?} */ normalizer = new DirectiveNormalizer({ get: function (url) { return host.loadResource(url); } }, urlResolver, htmlParser, config);\r\n        var /** @type {?} */ elementSchemaRegistry = new DomElementSchemaRegistry();\r\n        var /** @type {?} */ resolver = new CompileMetadataResolver(config, new NgModuleResolver(staticReflector), new DirectiveResolver(staticReflector), new PipeResolver(staticReflector), summaryResolver, elementSchemaRegistry, normalizer, new ɵConsole(), symbolCache, staticReflector);\r\n        // TODO(vicb): implicit tags & attributes\r\n        var /** @type {?} */ messageBundle = new MessageBundle(htmlParser, [], {}, locale);\r\n        var /** @type {?} */ extractor = new Extractor(host, staticSymbolResolver, messageBundle, resolver);\r\n        return { extractor: extractor, staticReflector: staticReflector };\r\n    };\r\n    return Extractor;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nvar _NO_RESOURCE_LOADER = {\r\n    /**\r\n     * @param {?} url\r\n     * @return {?}\r\n     */\r\n    get: function (url) {\r\n        throw new Error(\"No ResourceLoader implementation has been provided. Can't read the url \\\"\" + url + \"\\\"\");\r\n    }\r\n};\r\nvar baseHtmlParser = new InjectionToken('HtmlParser');\r\n/**\r\n * @param {?} parser\r\n * @param {?} translations\r\n * @param {?} format\r\n * @param {?} config\r\n * @param {?} console\r\n * @return {?}\r\n */\r\nfunction i18nHtmlParserFactory(parser, translations, format, config, console) {\r\n    return new I18NHtmlParser(parser, translations, format, /** @type {?} */ ((config.missingTranslation)), console);\r\n}\r\n/**\r\n * A set of providers that provide `JitCompiler` and its dependencies to use for\r\n * template compilation.\r\n */\r\nvar COMPILER_PROVIDERS = [\r\n    { provide: ɵReflector, useValue: ɵreflector },\r\n    { provide: ɵReflectorReader, useExisting: ɵReflector },\r\n    { provide: ResourceLoader, useValue: _NO_RESOURCE_LOADER },\r\n    SummaryResolver,\r\n    ɵConsole,\r\n    Lexer,\r\n    Parser,\r\n    {\r\n        provide: baseHtmlParser,\r\n        useClass: HtmlParser,\r\n    },\r\n    {\r\n        provide: I18NHtmlParser,\r\n        useFactory: i18nHtmlParserFactory,\r\n        deps: [\r\n            baseHtmlParser,\r\n            [new Optional(), new Inject(TRANSLATIONS)],\r\n            [new Optional(), new Inject(TRANSLATIONS_FORMAT)],\r\n            [CompilerConfig],\r\n            [ɵConsole],\r\n        ]\r\n    },\r\n    {\r\n        provide: HtmlParser,\r\n        useExisting: I18NHtmlParser,\r\n    },\r\n    TemplateParser,\r\n    DirectiveNormalizer,\r\n    CompileMetadataResolver,\r\n    DEFAULT_PACKAGE_URL_PROVIDER,\r\n    StyleCompiler,\r\n    ViewCompiler,\r\n    NgModuleCompiler,\r\n    { provide: CompilerConfig, useValue: new CompilerConfig() },\r\n    JitCompiler,\r\n    { provide: Compiler, useExisting: JitCompiler },\r\n    DomElementSchemaRegistry,\r\n    { provide: ElementSchemaRegistry, useExisting: DomElementSchemaRegistry },\r\n    UrlResolver,\r\n    DirectiveResolver,\r\n    PipeResolver,\r\n    NgModuleResolver,\r\n];\r\nvar JitCompilerFactory = (function () {\r\n    /**\r\n     * @param {?} defaultOptions\r\n     */\r\n    function JitCompilerFactory(defaultOptions) {\r\n        var compilerOptions = {\r\n            useDebug: isDevMode(),\r\n            useJit: true,\r\n            defaultEncapsulation: ViewEncapsulation.Emulated,\r\n            missingTranslation: MissingTranslationStrategy.Warning,\r\n            enableLegacyTemplate: true,\r\n        };\r\n        this._defaultOptions = [compilerOptions].concat(defaultOptions);\r\n    }\r\n    /**\r\n     * @param {?=} options\r\n     * @return {?}\r\n     */\r\n    JitCompilerFactory.prototype.createCompiler = function (options) {\r\n        if (options === void 0) { options = []; }\r\n        var /** @type {?} */ opts = _mergeOptions(this._defaultOptions.concat(options));\r\n        var /** @type {?} */ injector = ReflectiveInjector.resolveAndCreate([\r\n            COMPILER_PROVIDERS, {\r\n                provide: CompilerConfig,\r\n                useFactory: function () {\r\n                    return new CompilerConfig({\r\n                        // let explicit values from the compiler options overwrite options\r\n                        // from the app providers\r\n                        useJit: opts.useJit,\r\n                        // let explicit values from the compiler options overwrite options\r\n                        // from the app providers\r\n                        defaultEncapsulation: opts.defaultEncapsulation,\r\n                        missingTranslation: opts.missingTranslation,\r\n                        enableLegacyTemplate: opts.enableLegacyTemplate,\r\n                    });\r\n                },\r\n                deps: []\r\n            }, /** @type {?} */ ((opts.providers))\r\n        ]);\r\n        return injector.get(Compiler);\r\n    };\r\n    return JitCompilerFactory;\r\n}());\r\nJitCompilerFactory.decorators = [\r\n    { type: CompilerInjectable },\r\n];\r\n/**\r\n * @nocollapse\r\n */\r\nJitCompilerFactory.ctorParameters = function () { return [\r\n    { type: Array, decorators: [{ type: Inject, args: [COMPILER_OPTIONS,] },] },\r\n]; };\r\n/**\r\n * @return {?}\r\n */\r\nfunction _initReflector() {\r\n    ɵreflector.reflectionCapabilities = new ɵReflectionCapabilities();\r\n}\r\n/**\r\n * A platform that included corePlatform and the compiler.\r\n *\r\n * \\@experimental\r\n */\r\nvar platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [\r\n    { provide: COMPILER_OPTIONS, useValue: {}, multi: true },\r\n    { provide: CompilerFactory, useClass: JitCompilerFactory },\r\n    { provide: PLATFORM_INITIALIZER, useValue: _initReflector, multi: true },\r\n]);\r\n/**\r\n * @param {?} optionsArr\r\n * @return {?}\r\n */\r\nfunction _mergeOptions(optionsArr) {\r\n    return {\r\n        useJit: _lastDefined(optionsArr.map(function (options) { return options.useJit; })),\r\n        defaultEncapsulation: _lastDefined(optionsArr.map(function (options) { return options.defaultEncapsulation; })),\r\n        providers: _mergeArrays(optionsArr.map(function (options) { return ((options.providers)); })),\r\n        missingTranslation: _lastDefined(optionsArr.map(function (options) { return options.missingTranslation; })),\r\n    };\r\n}\r\n/**\r\n * @template T\r\n * @param {?} args\r\n * @return {?}\r\n */\r\nfunction _lastDefined(args) {\r\n    for (var /** @type {?} */ i = args.length - 1; i >= 0; i--) {\r\n        if (args[i] !== undefined) {\r\n            return args[i];\r\n        }\r\n    }\r\n    return undefined;\r\n}\r\n/**\r\n * @param {?} parts\r\n * @return {?}\r\n */\r\nfunction _mergeArrays(parts) {\r\n    var /** @type {?} */ result = [];\r\n    parts.forEach(function (part) { return part && result.push.apply(result, part); });\r\n    return result;\r\n}\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * Interface that defines how import statements should be generated.\r\n * @abstract\r\n */\r\nvar ImportResolver = (function () {\r\n    function ImportResolver() {\r\n    }\r\n    /**\r\n     * Converts a file path to a module name that can be used as an `import.\r\n     * I.e. `path/to/importedFile.ts` should be imported by `path/to/containingFile.ts`.\r\n     * @abstract\r\n     * @param {?} importedFilePath\r\n     * @param {?} containingFilePath\r\n     * @return {?}\r\n     */\r\n    ImportResolver.prototype.fileNameToModuleName = function (importedFilePath, containingFilePath) { };\r\n    /**\r\n     * Converts the given StaticSymbol into another StaticSymbol that should be used\r\n     * to generate the import from.\r\n     * @abstract\r\n     * @param {?} symbol\r\n     * @return {?}\r\n     */\r\n    ImportResolver.prototype.getImportAs = function (symbol) { };\r\n    /**\r\n     * Determine the arity of a type.\r\n     * @abstract\r\n     * @param {?} symbol\r\n     * @return {?}\r\n     */\r\n    ImportResolver.prototype.getTypeArity = function (symbol) { };\r\n    return ImportResolver;\r\n}());\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all APIs of the compiler package.\r\n *\r\n * <div class=\"callout is-critical\">\r\n *   <header>Unstable APIs</header>\r\n *   <p>\r\n *     All compiler apis are currently considered experimental and private!\r\n *   </p>\r\n *   <p>\r\n *     We expect the APIs in this package to keep on changing. Do not rely on them.\r\n *   </p>\r\n * </div>\r\n */\r\n// This file only reexports content of the `src` folder. Keep it that way.\r\n/**\r\n * @license\r\n * Copyright Google Inc. All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * @module\r\n * @description\r\n * Entry point for all public APIs of the compiler package.\r\n */\r\n// This file only reexports content of the `src` folder. Keep it that way.\r\nexport { VERSION, TEMPLATE_TRANSFORMS, CompilerConfig, JitCompiler, DirectiveResolver, PipeResolver, NgModuleResolver, DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, NgModuleCompiler, ViewCompiler, isSyntaxError, syntaxError, TextAst, BoundTextAst, AttrAst, BoundElementPropertyAst, BoundEventAst, ReferenceAst, VariableAst, ElementAst, EmbeddedTemplateAst, BoundDirectivePropertyAst, DirectiveAst, ProviderAst, ProviderAstType, NgContentAst, PropertyBindingType, templateVisitAll, CompileAnimationEntryMetadata, CompileAnimationStateMetadata, CompileAnimationStateDeclarationMetadata, CompileAnimationStateTransitionMetadata, CompileAnimationMetadata, CompileAnimationKeyframesSequenceMetadata, CompileAnimationStyleMetadata, CompileAnimationAnimateMetadata, CompileAnimationWithStepsMetadata, CompileAnimationSequenceMetadata, CompileAnimationGroupMetadata, identifierName, identifierModuleUrl, viewClassName, rendererTypeName, hostViewClassName, dirWrapperClassName, componentFactoryName, CompileSummaryKind, tokenName, tokenReference, CompileStylesheetMetadata, CompileTemplateMetadata, CompileDirectiveMetadata, createHostComponentMeta, CompilePipeMetadata, CompileNgModuleMetadata, TransitiveCompileNgModuleMetadata, ProviderMeta, flatten, sourceUrl, templateSourceUrl, sharedStylesheetJitUrl, ngModuleJitUrl, templateJitUrl, createAotCompiler, AotCompiler, analyzeNgModules, analyzeAndValidateNgModules, extractProgramSymbols, GeneratedFile, StaticReflector, StaticAndDynamicReflectionCapabilities, StaticSymbol, StaticSymbolCache, ResolvedStaticSymbol, StaticSymbolResolver, unescapeIdentifier, AotSummaryResolver, SummaryResolver, i18nHtmlParserFactory, COMPILER_PROVIDERS, JitCompilerFactory, platformCoreDynamic, createUrlResolverWithoutPackagePrefix, createOfflineCompileUrlResolver, DEFAULT_PACKAGE_URL_PROVIDER, UrlResolver, getUrlScheme, ResourceLoader, ElementSchemaRegistry, Extractor, I18NHtmlParser, MessageBundle, Serializer, Xliff, Xliff2, Xmb, Xtb, DirectiveNormalizer, ParserError, ParseSpan, AST, Quote, EmptyExpr, ImplicitReceiver, Chain, Conditional, PropertyRead, PropertyWrite, SafePropertyRead, KeyedRead, KeyedWrite, BindingPipe, LiteralPrimitive, LiteralArray, LiteralMap, Interpolation, Binary, PrefixNot, MethodCall, SafeMethodCall, FunctionCall, ASTWithSource, TemplateBinding, RecursiveAstVisitor, AstTransformer, TokenType, Lexer, Token, EOF, isIdentifier, isQuote, SplitInterpolation, TemplateBindingParseResult, Parser, _ParseAST, ERROR_COLLECTOR_TOKEN, CompileMetadataResolver, componentModuleUrl, Text, Expansion, ExpansionCase, Attribute$1 as Attribute, Element, Comment, visitAll, ParseTreeResult, TreeError, HtmlParser, HtmlTagDefinition, getHtmlTagDefinition, TagContentType, splitNsName, isNgContainer, isNgContent, isNgTemplate, getNsPrefix, mergeNsAndName, NAMED_ENTITIES, ImportResolver, debugOutputAstAsTypeScript, TypeScriptEmitter, ParseLocation, ParseSourceFile, ParseSourceSpan, ParseErrorLevel, ParseError, typeSourceSpan, DomElementSchemaRegistry, CssSelector, SelectorMatcher, SelectorListContext, SelectorContext, StylesCompileDependency, StylesCompileResult, CompiledStylesheet, StyleCompiler, TemplateParseError, TemplateParseResult, TemplateParser, splitClasses, createElementCssSelector, removeSummaryDuplicates };\r\n//# sourceMappingURL=compiler.js.map\r\n//# sourceMappingURL=compiler.es5.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angular/compiler/@angular/compiler.es5.js\n// module id = 491\n// module chunks = 2","\"use strict\";\r\n// Hot Module Replacement\r\nfunction bootloader(main) {\r\n    if (document.readyState === 'complete') {\r\n        main();\r\n    }\r\n    else {\r\n        document.addEventListener('DOMContentLoaded', main);\r\n    }\r\n}\r\nexports.bootloader = bootloader;\r\n// create new elements\r\nfunction createNewHosts(cmps) {\r\n    var components = cmps.map(function (componentNode) {\r\n        var newNode = document.createElement(componentNode.tagName);\r\n        // display none\r\n        var currentDisplay = newNode.style.display;\r\n        newNode.style.display = 'none';\r\n        var parentNode = componentNode.parentNode;\r\n        parentNode.insertBefore(newNode, componentNode);\r\n        return { currentDisplay: currentDisplay, newNode: newNode };\r\n    });\r\n    return function () {\r\n        components.forEach(function (cmp) {\r\n            cmp.newNode.style.display = cmp.currentDisplay;\r\n            cmp.newNode = null;\r\n            cmp.currentDisplay = null;\r\n        });\r\n    };\r\n}\r\nexports.createNewHosts = createNewHosts;\r\n// remove old styles\r\nfunction removeNgStyles() {\r\n    Array.prototype.slice.call(document.head.querySelectorAll('style'), 0)\r\n        .filter(function (style) { return style.innerText.indexOf('_ng') !== -1; })\r\n        .map(function (el) { return el.remove(); });\r\n}\r\nexports.removeNgStyles = removeNgStyles;\r\n// get input values\r\nfunction getInputValues() {\r\n    var inputs = document.querySelectorAll('input');\r\n    return Array.prototype.slice.call(inputs).map(function (input) { return input.value; });\r\n}\r\nexports.getInputValues = getInputValues;\r\n// set input values\r\nfunction setInputValues($inputs) {\r\n    var inputs = document.querySelectorAll('input');\r\n    if ($inputs && inputs.length === $inputs.length) {\r\n        $inputs.forEach(function (value, i) {\r\n            var el = inputs[i];\r\n            el.value = value;\r\n            el.dispatchEvent(new CustomEvent('input', { detail: el.value }));\r\n        });\r\n    }\r\n}\r\nexports.setInputValues = setInputValues;\r\n// get/set input values\r\nfunction createInputTransfer() {\r\n    var $inputs = getInputValues();\r\n    return function restoreInputValues() {\r\n        setInputValues($inputs);\r\n    };\r\n}\r\nexports.createInputTransfer = createInputTransfer;\r\n//# sourceMappingURL=helpers.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/@angularclass/hmr/dist/helpers.js\n// module id = 496\n// module chunks = 2","'use strict'\r\n\r\nexports.byteLength = byteLength\r\nexports.toByteArray = toByteArray\r\nexports.fromByteArray = fromByteArray\r\n\r\nvar lookup = []\r\nvar revLookup = []\r\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\r\n\r\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\r\nfor (var i = 0, len = code.length; i < len; ++i) {\r\n  lookup[i] = code[i]\r\n  revLookup[code.charCodeAt(i)] = i\r\n}\r\n\r\nrevLookup['-'.charCodeAt(0)] = 62\r\nrevLookup['_'.charCodeAt(0)] = 63\r\n\r\nfunction placeHoldersCount (b64) {\r\n  var len = b64.length\r\n  if (len % 4 > 0) {\r\n    throw new Error('Invalid string. Length must be a multiple of 4')\r\n  }\r\n\r\n  // the number of equal signs (place holders)\r\n  // if there are two placeholders, than the two characters before it\r\n  // represent one byte\r\n  // if there is only one, then the three characters before it represent 2 bytes\r\n  // this is just a cheap hack to not do indexOf twice\r\n  return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0\r\n}\r\n\r\nfunction byteLength (b64) {\r\n  // base64 is 4/3 + up to two characters of the original data\r\n  return b64.length * 3 / 4 - placeHoldersCount(b64)\r\n}\r\n\r\nfunction toByteArray (b64) {\r\n  var i, j, l, tmp, placeHolders, arr\r\n  var len = b64.length\r\n  placeHolders = placeHoldersCount(b64)\r\n\r\n  arr = new Arr(len * 3 / 4 - placeHolders)\r\n\r\n  // if there are placeholders, only get up to the last complete 4 chars\r\n  l = placeHolders > 0 ? len - 4 : len\r\n\r\n  var L = 0\r\n\r\n  for (i = 0, j = 0; i < l; i += 4, j += 3) {\r\n    tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)]\r\n    arr[L++] = (tmp >> 16) & 0xFF\r\n    arr[L++] = (tmp >> 8) & 0xFF\r\n    arr[L++] = tmp & 0xFF\r\n  }\r\n\r\n  if (placeHolders === 2) {\r\n    tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4)\r\n    arr[L++] = tmp & 0xFF\r\n  } else if (placeHolders === 1) {\r\n    tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2)\r\n    arr[L++] = (tmp >> 8) & 0xFF\r\n    arr[L++] = tmp & 0xFF\r\n  }\r\n\r\n  return arr\r\n}\r\n\r\nfunction tripletToBase64 (num) {\r\n  return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F]\r\n}\r\n\r\nfunction encodeChunk (uint8, start, end) {\r\n  var tmp\r\n  var output = []\r\n  for (var i = start; i < end; i += 3) {\r\n    tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])\r\n    output.push(tripletToBase64(tmp))\r\n  }\r\n  return output.join('')\r\n}\r\n\r\nfunction fromByteArray (uint8) {\r\n  var tmp\r\n  var len = uint8.length\r\n  var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\r\n  var output = ''\r\n  var parts = []\r\n  var maxChunkLength = 16383 // must be multiple of 3\r\n\r\n  // go through the array every three bytes, we'll deal with trailing stuff later\r\n  for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\r\n    parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\r\n  }\r\n\r\n  // pad the end with zeros, but make sure to not forget the extra bytes\r\n  if (extraBytes === 1) {\r\n    tmp = uint8[len - 1]\r\n    output += lookup[tmp >> 2]\r\n    output += lookup[(tmp << 4) & 0x3F]\r\n    output += '=='\r\n  } else if (extraBytes === 2) {\r\n    tmp = (uint8[len - 2] << 8) + (uint8[len - 1])\r\n    output += lookup[tmp >> 10]\r\n    output += lookup[(tmp >> 4) & 0x3F]\r\n    output += lookup[(tmp << 2) & 0x3F]\r\n    output += '='\r\n  }\r\n\r\n  parts.push(output)\r\n\r\n  return parts.join('')\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/base64-js/index.js\n// module id = 504\n// module chunks = 2","require('../modules/web.immediate');\r\nmodule.exports = require('../modules/_core').setImmediate;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/fn/set-immediate.js\n// module id = 505\n// module chunks = 2","module.exports = function(it){\r\n  if(typeof it != 'function')throw TypeError(it + ' is not a function!');\r\n  return it;\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_a-function.js\n// module id = 506\n// module chunks = 2","var isObject = require('./_is-object');\r\nmodule.exports = function(it){\r\n  if(!isObject(it))throw TypeError(it + ' is not an object!');\r\n  return it;\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_an-object.js\n// module id = 507\n// module chunks = 2","var toString = {}.toString;\r\n\r\nmodule.exports = function(it){\r\n  return toString.call(it).slice(8, -1);\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_cof.js\n// module id = 508\n// module chunks = 2","var global    = require('./_global')\r\n  , core      = require('./_core')\r\n  , ctx       = require('./_ctx')\r\n  , hide      = require('./_hide')\r\n  , PROTOTYPE = 'prototype';\r\n\r\nvar $export = function(type, name, source){\r\n  var IS_FORCED = type & $export.F\r\n    , IS_GLOBAL = type & $export.G\r\n    , IS_STATIC = type & $export.S\r\n    , IS_PROTO  = type & $export.P\r\n    , IS_BIND   = type & $export.B\r\n    , IS_WRAP   = type & $export.W\r\n    , exports   = IS_GLOBAL ? core : core[name] || (core[name] = {})\r\n    , expProto  = exports[PROTOTYPE]\r\n    , target    = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\r\n    , key, own, out;\r\n  if(IS_GLOBAL)source = name;\r\n  for(key in source){\r\n    // contains in native\r\n    own = !IS_FORCED && target && target[key] !== undefined;\r\n    if(own && key in exports)continue;\r\n    // export native or passed\r\n    out = own ? target[key] : source[key];\r\n    // prevent global pollution for namespaces\r\n    exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\r\n    // bind timers to global for call from export context\r\n    : IS_BIND && own ? ctx(out, global)\r\n    // wrap global constructors for prevent change them in library\r\n    : IS_WRAP && target[key] == out ? (function(C){\r\n      var F = function(a, b, c){\r\n        if(this instanceof C){\r\n          switch(arguments.length){\r\n            case 0: return new C;\r\n            case 1: return new C(a);\r\n            case 2: return new C(a, b);\r\n          } return new C(a, b, c);\r\n        } return C.apply(this, arguments);\r\n      };\r\n      F[PROTOTYPE] = C[PROTOTYPE];\r\n      return F;\r\n    // make static versions for prototype methods\r\n    })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\r\n    // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\r\n    if(IS_PROTO){\r\n      (exports.virtual || (exports.virtual = {}))[key] = out;\r\n      // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\r\n      if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out);\r\n    }\r\n  }\r\n};\r\n// type bitmap\r\n$export.F = 1;   // forced\r\n$export.G = 2;   // global\r\n$export.S = 4;   // static\r\n$export.P = 8;   // proto\r\n$export.B = 16;  // bind\r\n$export.W = 32;  // wrap\r\n$export.U = 64;  // safe\r\n$export.R = 128; // real proto method for `library` \r\nmodule.exports = $export;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_export.js\n// module id = 509\n// module chunks = 2","var dP         = require('./_object-dp')\r\n  , createDesc = require('./_property-desc');\r\nmodule.exports = require('./_descriptors') ? function(object, key, value){\r\n  return dP.f(object, key, createDesc(1, value));\r\n} : function(object, key, value){\r\n  object[key] = value;\r\n  return object;\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_hide.js\n// module id = 510\n// module chunks = 2","module.exports = require('./_global').document && document.documentElement;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_html.js\n// module id = 511\n// module chunks = 2","module.exports = !require('./_descriptors') && !require('./_fails')(function(){\r\n  return Object.defineProperty(require('./_dom-create')('div'), 'a', {get: function(){ return 7; }}).a != 7;\r\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_ie8-dom-define.js\n// module id = 512\n// module chunks = 2","// fast apply, http://jsperf.lnkit.com/fast-apply/5\r\nmodule.exports = function(fn, args, that){\r\n  var un = that === undefined;\r\n  switch(args.length){\r\n    case 0: return un ? fn()\r\n                      : fn.call(that);\r\n    case 1: return un ? fn(args[0])\r\n                      : fn.call(that, args[0]);\r\n    case 2: return un ? fn(args[0], args[1])\r\n                      : fn.call(that, args[0], args[1]);\r\n    case 3: return un ? fn(args[0], args[1], args[2])\r\n                      : fn.call(that, args[0], args[1], args[2]);\r\n    case 4: return un ? fn(args[0], args[1], args[2], args[3])\r\n                      : fn.call(that, args[0], args[1], args[2], args[3]);\r\n  } return              fn.apply(that, args);\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_invoke.js\n// module id = 513\n// module chunks = 2","var anObject       = require('./_an-object')\r\n  , IE8_DOM_DEFINE = require('./_ie8-dom-define')\r\n  , toPrimitive    = require('./_to-primitive')\r\n  , dP             = Object.defineProperty;\r\n\r\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes){\r\n  anObject(O);\r\n  P = toPrimitive(P, true);\r\n  anObject(Attributes);\r\n  if(IE8_DOM_DEFINE)try {\r\n    return dP(O, P, Attributes);\r\n  } catch(e){ /* empty */ }\r\n  if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');\r\n  if('value' in Attributes)O[P] = Attributes.value;\r\n  return O;\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_object-dp.js\n// module id = 514\n// module chunks = 2","module.exports = function(bitmap, value){\r\n  return {\r\n    enumerable  : !(bitmap & 1),\r\n    configurable: !(bitmap & 2),\r\n    writable    : !(bitmap & 4),\r\n    value       : value\r\n  };\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_property-desc.js\n// module id = 515\n// module chunks = 2","var ctx                = require('./_ctx')\r\n  , invoke             = require('./_invoke')\r\n  , html               = require('./_html')\r\n  , cel                = require('./_dom-create')\r\n  , global             = require('./_global')\r\n  , process            = global.process\r\n  , setTask            = global.setImmediate\r\n  , clearTask          = global.clearImmediate\r\n  , MessageChannel     = global.MessageChannel\r\n  , counter            = 0\r\n  , queue              = {}\r\n  , ONREADYSTATECHANGE = 'onreadystatechange'\r\n  , defer, channel, port;\r\nvar run = function(){\r\n  var id = +this;\r\n  if(queue.hasOwnProperty(id)){\r\n    var fn = queue[id];\r\n    delete queue[id];\r\n    fn();\r\n  }\r\n};\r\nvar listener = function(event){\r\n  run.call(event.data);\r\n};\r\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\r\nif(!setTask || !clearTask){\r\n  setTask = function setImmediate(fn){\r\n    var args = [], i = 1;\r\n    while(arguments.length > i)args.push(arguments[i++]);\r\n    queue[++counter] = function(){\r\n      invoke(typeof fn == 'function' ? fn : Function(fn), args);\r\n    };\r\n    defer(counter);\r\n    return counter;\r\n  };\r\n  clearTask = function clearImmediate(id){\r\n    delete queue[id];\r\n  };\r\n  // Node.js 0.8-\r\n  if(require('./_cof')(process) == 'process'){\r\n    defer = function(id){\r\n      process.nextTick(ctx(run, id, 1));\r\n    };\r\n  // Browsers with MessageChannel, includes WebWorkers\r\n  } else if(MessageChannel){\r\n    channel = new MessageChannel;\r\n    port    = channel.port2;\r\n    channel.port1.onmessage = listener;\r\n    defer = ctx(port.postMessage, port, 1);\r\n  // Browsers with postMessage, skip WebWorkers\r\n  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\r\n  } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){\r\n    defer = function(id){\r\n      global.postMessage(id + '', '*');\r\n    };\r\n    global.addEventListener('message', listener, false);\r\n  // IE8-\r\n  } else if(ONREADYSTATECHANGE in cel('script')){\r\n    defer = function(id){\r\n      html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function(){\r\n        html.removeChild(this);\r\n        run.call(id);\r\n      };\r\n    };\r\n  // Rest old browsers\r\n  } else {\r\n    defer = function(id){\r\n      setTimeout(ctx(run, id, 1), 0);\r\n    };\r\n  }\r\n}\r\nmodule.exports = {\r\n  set:   setTask,\r\n  clear: clearTask\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_task.js\n// module id = 516\n// module chunks = 2","// 7.1.1 ToPrimitive(input [, PreferredType])\r\nvar isObject = require('./_is-object');\r\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\r\n// and the second argument - flag - preferred type is a string\r\nmodule.exports = function(it, S){\r\n  if(!isObject(it))return it;\r\n  var fn, val;\r\n  if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\r\n  if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;\r\n  if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\r\n  throw TypeError(\"Can't convert object to primitive value\");\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/_to-primitive.js\n// module id = 517\n// module chunks = 2","var $export = require('./_export')\r\n  , $task   = require('./_task');\r\n$export($export.G + $export.B, {\r\n  setImmediate:   $task.set,\r\n  clearImmediate: $task.clear\r\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/core-js/library/modules/web.immediate.js\n// module id = 518\n// module chunks = 2","exports.read = function (buffer, offset, isLE, mLen, nBytes) {\r\n  var e, m\r\n  var eLen = nBytes * 8 - mLen - 1\r\n  var eMax = (1 << eLen) - 1\r\n  var eBias = eMax >> 1\r\n  var nBits = -7\r\n  var i = isLE ? (nBytes - 1) : 0\r\n  var d = isLE ? -1 : 1\r\n  var s = buffer[offset + i]\r\n\r\n  i += d\r\n\r\n  e = s & ((1 << (-nBits)) - 1)\r\n  s >>= (-nBits)\r\n  nBits += eLen\r\n  for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\r\n\r\n  m = e & ((1 << (-nBits)) - 1)\r\n  e >>= (-nBits)\r\n  nBits += mLen\r\n  for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\r\n\r\n  if (e === 0) {\r\n    e = 1 - eBias\r\n  } else if (e === eMax) {\r\n    return m ? NaN : ((s ? -1 : 1) * Infinity)\r\n  } else {\r\n    m = m + Math.pow(2, mLen)\r\n    e = e - eBias\r\n  }\r\n  return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\r\n}\r\n\r\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\r\n  var e, m, c\r\n  var eLen = nBytes * 8 - mLen - 1\r\n  var eMax = (1 << eLen) - 1\r\n  var eBias = eMax >> 1\r\n  var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\r\n  var i = isLE ? 0 : (nBytes - 1)\r\n  var d = isLE ? 1 : -1\r\n  var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\r\n\r\n  value = Math.abs(value)\r\n\r\n  if (isNaN(value) || value === Infinity) {\r\n    m = isNaN(value) ? 1 : 0\r\n    e = eMax\r\n  } else {\r\n    e = Math.floor(Math.log(value) / Math.LN2)\r\n    if (value * (c = Math.pow(2, -e)) < 1) {\r\n      e--\r\n      c *= 2\r\n    }\r\n    if (e + eBias >= 1) {\r\n      value += rt / c\r\n    } else {\r\n      value += rt * Math.pow(2, 1 - eBias)\r\n    }\r\n    if (value * c >= 2) {\r\n      e++\r\n      c /= 2\r\n    }\r\n\r\n    if (e + eBias >= eMax) {\r\n      m = 0\r\n      e = eMax\r\n    } else if (e + eBias >= 1) {\r\n      m = (value * c - 1) * Math.pow(2, mLen)\r\n      e = e + eBias\r\n    } else {\r\n      m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\r\n      e = 0\r\n    }\r\n  }\r\n\r\n  for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\r\n\r\n  e = (e << mLen) | m\r\n  eLen += mLen\r\n  for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\r\n\r\n  buffer[offset + i - d] |= s * 128\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ieee754/index.js\n// module id = 685\n// module chunks = 2","'use strict';\r\nvar Mutation = global.MutationObserver || global.WebKitMutationObserver;\r\n\r\nvar scheduleDrain;\r\n\r\n{\r\n  if (Mutation) {\r\n    var called = 0;\r\n    var observer = new Mutation(nextTick);\r\n    var element = global.document.createTextNode('');\r\n    observer.observe(element, {\r\n      characterData: true\r\n    });\r\n    scheduleDrain = function () {\r\n      element.data = (called = ++called % 2);\r\n    };\r\n  } else if (!global.setImmediate && typeof global.MessageChannel !== 'undefined') {\r\n    var channel = new global.MessageChannel();\r\n    channel.port1.onmessage = nextTick;\r\n    scheduleDrain = function () {\r\n      channel.port2.postMessage(0);\r\n    };\r\n  } else if ('document' in global && 'onreadystatechange' in global.document.createElement('script')) {\r\n    scheduleDrain = function () {\r\n\r\n      // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted\r\n      // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\r\n      var scriptEl = global.document.createElement('script');\r\n      scriptEl.onreadystatechange = function () {\r\n        nextTick();\r\n\r\n        scriptEl.onreadystatechange = null;\r\n        scriptEl.parentNode.removeChild(scriptEl);\r\n        scriptEl = null;\r\n      };\r\n      global.document.documentElement.appendChild(scriptEl);\r\n    };\r\n  } else {\r\n    scheduleDrain = function () {\r\n      setTimeout(nextTick, 0);\r\n    };\r\n  }\r\n}\r\n\r\nvar draining;\r\nvar queue = [];\r\n//named nextTick for less confusing stack traces\r\nfunction nextTick() {\r\n  draining = true;\r\n  var i, oldQueue;\r\n  var len = queue.length;\r\n  while (len) {\r\n    oldQueue = queue;\r\n    queue = [];\r\n    i = -1;\r\n    while (++i < len) {\r\n      oldQueue[i]();\r\n    }\r\n    len = queue.length;\r\n  }\r\n  draining = false;\r\n}\r\n\r\nmodule.exports = immediate;\r\nfunction immediate(task) {\r\n  if (queue.push(task) === 1 && !draining) {\r\n    scheduleDrain();\r\n  }\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/immediate/lib/browser.js\n// module id = 686\n// module chunks = 2","'use strict';\r\nvar USE_TYPEDARRAY = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Uint32Array !== 'undefined');\r\n\r\nvar pako = require(\"pako\");\r\nvar utils = require(\"./utils\");\r\nvar GenericWorker = require(\"./stream/GenericWorker\");\r\n\r\nvar ARRAY_TYPE = USE_TYPEDARRAY ? \"uint8array\" : \"array\";\r\n\r\nexports.magic = \"\\x08\\x00\";\r\n\r\n/**\r\n * Create a worker that uses pako to inflate/deflate.\r\n * @constructor\r\n * @param {String} action the name of the pako function to call : either \"Deflate\" or \"Inflate\".\r\n * @param {Object} options the options to use when (de)compressing.\r\n */\r\nfunction FlateWorker(action, options) {\r\n    GenericWorker.call(this, \"FlateWorker/\" + action);\r\n\r\n    this._pako = new pako[action]({\r\n        raw:true,\r\n        level : options.level || -1 // default compression\r\n    });\r\n    // the `meta` object from the last chunk received\r\n    // this allow this worker to pass around metadata\r\n    this.meta = {};\r\n\r\n    var self = this;\r\n    this._pako.onData = function(data) {\r\n        self.push({\r\n            data : data,\r\n            meta : self.meta\r\n        });\r\n    };\r\n}\r\n\r\nutils.inherits(FlateWorker, GenericWorker);\r\n\r\n/**\r\n * @see GenericWorker.processChunk\r\n */\r\nFlateWorker.prototype.processChunk = function (chunk) {\r\n    this.meta = chunk.meta;\r\n    this._pako.push(utils.transformTo(ARRAY_TYPE, chunk.data), false);\r\n};\r\n\r\n/**\r\n * @see GenericWorker.flush\r\n */\r\nFlateWorker.prototype.flush = function () {\r\n    GenericWorker.prototype.flush.call(this);\r\n    this._pako.push([], true);\r\n};\r\n/**\r\n * @see GenericWorker.cleanUp\r\n */\r\nFlateWorker.prototype.cleanUp = function () {\r\n    GenericWorker.prototype.cleanUp.call(this);\r\n    this._pako = null;\r\n};\r\n\r\nexports.compressWorker = function (compressionOptions) {\r\n    return new FlateWorker(\"Deflate\", compressionOptions);\r\n};\r\nexports.uncompressWorker = function () {\r\n    return new FlateWorker(\"Inflate\", {});\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/flate.js\n// module id = 687\n// module chunks = 2","'use strict';\r\n\r\nvar utils = require('../utils');\r\nvar GenericWorker = require('../stream/GenericWorker');\r\nvar utf8 = require('../utf8');\r\nvar crc32 = require('../crc32');\r\nvar signature = require('../signature');\r\n\r\n/**\r\n * Transform an integer into a string in hexadecimal.\r\n * @private\r\n * @param {number} dec the number to convert.\r\n * @param {number} bytes the number of bytes to generate.\r\n * @returns {string} the result.\r\n */\r\nvar decToHex = function(dec, bytes) {\r\n    var hex = \"\", i;\r\n    for (i = 0; i < bytes; i++) {\r\n        hex += String.fromCharCode(dec & 0xff);\r\n        dec = dec >>> 8;\r\n    }\r\n    return hex;\r\n};\r\n\r\n/**\r\n * Generate the UNIX part of the external file attributes.\r\n * @param {Object} unixPermissions the unix permissions or null.\r\n * @param {Boolean} isDir true if the entry is a directory, false otherwise.\r\n * @return {Number} a 32 bit integer.\r\n *\r\n * adapted from http://unix.stackexchange.com/questions/14705/the-zip-formats-external-file-attribute :\r\n *\r\n * TTTTsstrwxrwxrwx0000000000ADVSHR\r\n * ^^^^____________________________ file type, see zipinfo.c (UNX_*)\r\n *     ^^^_________________________ setuid, setgid, sticky\r\n *        ^^^^^^^^^________________ permissions\r\n *                 ^^^^^^^^^^______ not used ?\r\n *                           ^^^^^^ DOS attribute bits : Archive, Directory, Volume label, System file, Hidden, Read only\r\n */\r\nvar generateUnixExternalFileAttr = function (unixPermissions, isDir) {\r\n\r\n    var result = unixPermissions;\r\n    if (!unixPermissions) {\r\n        // I can't use octal values in strict mode, hence the hexa.\r\n        //  040775 => 0x41fd\r\n        // 0100664 => 0x81b4\r\n        result = isDir ? 0x41fd : 0x81b4;\r\n    }\r\n    return (result & 0xFFFF) << 16;\r\n};\r\n\r\n/**\r\n * Generate the DOS part of the external file attributes.\r\n * @param {Object} dosPermissions the dos permissions or null.\r\n * @param {Boolean} isDir true if the entry is a directory, false otherwise.\r\n * @return {Number} a 32 bit integer.\r\n *\r\n * Bit 0     Read-Only\r\n * Bit 1     Hidden\r\n * Bit 2     System\r\n * Bit 3     Volume Label\r\n * Bit 4     Directory\r\n * Bit 5     Archive\r\n */\r\nvar generateDosExternalFileAttr = function (dosPermissions, isDir) {\r\n\r\n    // the dir flag is already set for compatibility\r\n    return (dosPermissions || 0)  & 0x3F;\r\n};\r\n\r\n/**\r\n * Generate the various parts used in the construction of the final zip file.\r\n * @param {Object} streamInfo the hash with informations about the compressed file.\r\n * @param {Boolean} streamedContent is the content streamed ?\r\n * @param {Boolean} streamingEnded is the stream finished ?\r\n * @param {number} offset the current offset from the start of the zip file.\r\n * @param {String} platform let's pretend we are this platform (change platform dependents fields)\r\n * @param {Function} encodeFileName the function to encode the file name / comment.\r\n * @return {Object} the zip parts.\r\n */\r\nvar generateZipParts = function(streamInfo, streamedContent, streamingEnded, offset, platform, encodeFileName) {\r\n    var file = streamInfo['file'],\r\n    compression = streamInfo['compression'],\r\n    useCustomEncoding = encodeFileName !== utf8.utf8encode,\r\n    encodedFileName = utils.transformTo(\"string\", encodeFileName(file.name)),\r\n    utfEncodedFileName = utils.transformTo(\"string\", utf8.utf8encode(file.name)),\r\n    comment = file.comment,\r\n    encodedComment = utils.transformTo(\"string\", encodeFileName(comment)),\r\n    utfEncodedComment = utils.transformTo(\"string\", utf8.utf8encode(comment)),\r\n    useUTF8ForFileName = utfEncodedFileName.length !== file.name.length,\r\n    useUTF8ForComment = utfEncodedComment.length !== comment.length,\r\n    dosTime,\r\n    dosDate,\r\n    extraFields = \"\",\r\n    unicodePathExtraField = \"\",\r\n    unicodeCommentExtraField = \"\",\r\n    dir = file.dir,\r\n    date = file.date;\r\n\r\n\r\n    var dataInfo = {\r\n        crc32 : 0,\r\n        compressedSize : 0,\r\n        uncompressedSize : 0\r\n    };\r\n\r\n    // if the content is streamed, the sizes/crc32 are only available AFTER\r\n    // the end of the stream.\r\n    if (!streamedContent || streamingEnded) {\r\n        dataInfo.crc32 = streamInfo['crc32'];\r\n        dataInfo.compressedSize = streamInfo['compressedSize'];\r\n        dataInfo.uncompressedSize = streamInfo['uncompressedSize'];\r\n    }\r\n\r\n    var bitflag = 0;\r\n    if (streamedContent) {\r\n        // Bit 3: the sizes/crc32 are set to zero in the local header.\r\n        // The correct values are put in the data descriptor immediately\r\n        // following the compressed data.\r\n        bitflag |= 0x0008;\r\n    }\r\n    if (!useCustomEncoding && (useUTF8ForFileName || useUTF8ForComment)) {\r\n        // Bit 11: Language encoding flag (EFS).\r\n        bitflag |= 0x0800;\r\n    }\r\n\r\n\r\n    var extFileAttr = 0;\r\n    var versionMadeBy = 0;\r\n    if (dir) {\r\n        // dos or unix, we set the dos dir flag\r\n        extFileAttr |= 0x00010;\r\n    }\r\n    if(platform === \"UNIX\") {\r\n        versionMadeBy = 0x031E; // UNIX, version 3.0\r\n        extFileAttr |= generateUnixExternalFileAttr(file.unixPermissions, dir);\r\n    } else { // DOS or other, fallback to DOS\r\n        versionMadeBy = 0x0014; // DOS, version 2.0\r\n        extFileAttr |= generateDosExternalFileAttr(file.dosPermissions, dir);\r\n    }\r\n\r\n    // date\r\n    // @see http://www.delorie.com/djgpp/doc/rbinter/it/52/13.html\r\n    // @see http://www.delorie.com/djgpp/doc/rbinter/it/65/16.html\r\n    // @see http://www.delorie.com/djgpp/doc/rbinter/it/66/16.html\r\n\r\n    dosTime = date.getUTCHours();\r\n    dosTime = dosTime << 6;\r\n    dosTime = dosTime | date.getUTCMinutes();\r\n    dosTime = dosTime << 5;\r\n    dosTime = dosTime | date.getUTCSeconds() / 2;\r\n\r\n    dosDate = date.getUTCFullYear() - 1980;\r\n    dosDate = dosDate << 4;\r\n    dosDate = dosDate | (date.getUTCMonth() + 1);\r\n    dosDate = dosDate << 5;\r\n    dosDate = dosDate | date.getUTCDate();\r\n\r\n    if (useUTF8ForFileName) {\r\n        // set the unicode path extra field. unzip needs at least one extra\r\n        // field to correctly handle unicode path, so using the path is as good\r\n        // as any other information. This could improve the situation with\r\n        // other archive managers too.\r\n        // This field is usually used without the utf8 flag, with a non\r\n        // unicode path in the header (winrar, winzip). This helps (a bit)\r\n        // with the messy Windows' default compressed folders feature but\r\n        // breaks on p7zip which doesn't seek the unicode path extra field.\r\n        // So for now, UTF-8 everywhere !\r\n        unicodePathExtraField =\r\n            // Version\r\n            decToHex(1, 1) +\r\n            // NameCRC32\r\n            decToHex(crc32(encodedFileName), 4) +\r\n            // UnicodeName\r\n            utfEncodedFileName;\r\n\r\n        extraFields +=\r\n            // Info-ZIP Unicode Path Extra Field\r\n            \"\\x75\\x70\" +\r\n            // size\r\n            decToHex(unicodePathExtraField.length, 2) +\r\n            // content\r\n            unicodePathExtraField;\r\n    }\r\n\r\n    if(useUTF8ForComment) {\r\n\r\n        unicodeCommentExtraField =\r\n            // Version\r\n            decToHex(1, 1) +\r\n            // CommentCRC32\r\n            decToHex(crc32(encodedComment), 4) +\r\n            // UnicodeName\r\n            utfEncodedComment;\r\n\r\n        extraFields +=\r\n            // Info-ZIP Unicode Path Extra Field\r\n            \"\\x75\\x63\" +\r\n            // size\r\n            decToHex(unicodeCommentExtraField.length, 2) +\r\n            // content\r\n            unicodeCommentExtraField;\r\n    }\r\n\r\n    var header = \"\";\r\n\r\n    // version needed to extract\r\n    header += \"\\x0A\\x00\";\r\n    // general purpose bit flag\r\n    header += decToHex(bitflag, 2);\r\n    // compression method\r\n    header += compression.magic;\r\n    // last mod file time\r\n    header += decToHex(dosTime, 2);\r\n    // last mod file date\r\n    header += decToHex(dosDate, 2);\r\n    // crc-32\r\n    header += decToHex(dataInfo.crc32, 4);\r\n    // compressed size\r\n    header += decToHex(dataInfo.compressedSize, 4);\r\n    // uncompressed size\r\n    header += decToHex(dataInfo.uncompressedSize, 4);\r\n    // file name length\r\n    header += decToHex(encodedFileName.length, 2);\r\n    // extra field length\r\n    header += decToHex(extraFields.length, 2);\r\n\r\n\r\n    var fileRecord = signature.LOCAL_FILE_HEADER + header + encodedFileName + extraFields;\r\n\r\n    var dirRecord = signature.CENTRAL_FILE_HEADER +\r\n        // version made by (00: DOS)\r\n        decToHex(versionMadeBy, 2) +\r\n        // file header (common to file and central directory)\r\n        header +\r\n        // file comment length\r\n        decToHex(encodedComment.length, 2) +\r\n        // disk number start\r\n        \"\\x00\\x00\" +\r\n        // internal file attributes TODO\r\n        \"\\x00\\x00\" +\r\n        // external file attributes\r\n        decToHex(extFileAttr, 4) +\r\n        // relative offset of local header\r\n        decToHex(offset, 4) +\r\n        // file name\r\n        encodedFileName +\r\n        // extra field\r\n        extraFields +\r\n        // file comment\r\n        encodedComment;\r\n\r\n    return {\r\n        fileRecord: fileRecord,\r\n        dirRecord: dirRecord\r\n    };\r\n};\r\n\r\n/**\r\n * Generate the EOCD record.\r\n * @param {Number} entriesCount the number of entries in the zip file.\r\n * @param {Number} centralDirLength the length (in bytes) of the central dir.\r\n * @param {Number} localDirLength the length (in bytes) of the local dir.\r\n * @param {String} comment the zip file comment as a binary string.\r\n * @param {Function} encodeFileName the function to encode the comment.\r\n * @return {String} the EOCD record.\r\n */\r\nvar generateCentralDirectoryEnd = function (entriesCount, centralDirLength, localDirLength, comment, encodeFileName) {\r\n    var dirEnd = \"\";\r\n    var encodedComment = utils.transformTo(\"string\", encodeFileName(comment));\r\n\r\n    // end of central dir signature\r\n    dirEnd = signature.CENTRAL_DIRECTORY_END +\r\n        // number of this disk\r\n        \"\\x00\\x00\" +\r\n        // number of the disk with the start of the central directory\r\n        \"\\x00\\x00\" +\r\n        // total number of entries in the central directory on this disk\r\n        decToHex(entriesCount, 2) +\r\n        // total number of entries in the central directory\r\n        decToHex(entriesCount, 2) +\r\n        // size of the central directory   4 bytes\r\n        decToHex(centralDirLength, 4) +\r\n        // offset of start of central directory with respect to the starting disk number\r\n        decToHex(localDirLength, 4) +\r\n        // .ZIP file comment length\r\n        decToHex(encodedComment.length, 2) +\r\n        // .ZIP file comment\r\n        encodedComment;\r\n\r\n    return dirEnd;\r\n};\r\n\r\n/**\r\n * Generate data descriptors for a file entry.\r\n * @param {Object} streamInfo the hash generated by a worker, containing informations\r\n * on the file entry.\r\n * @return {String} the data descriptors.\r\n */\r\nvar generateDataDescriptors = function (streamInfo) {\r\n    var descriptor = \"\";\r\n    descriptor = signature.DATA_DESCRIPTOR +\r\n        // crc-32                          4 bytes\r\n        decToHex(streamInfo['crc32'], 4) +\r\n        // compressed size                 4 bytes\r\n        decToHex(streamInfo['compressedSize'], 4) +\r\n        // uncompressed size               4 bytes\r\n        decToHex(streamInfo['uncompressedSize'], 4);\r\n\r\n    return descriptor;\r\n};\r\n\r\n\r\n/**\r\n * A worker to concatenate other workers to create a zip file.\r\n * @param {Boolean} streamFiles `true` to stream the content of the files,\r\n * `false` to accumulate it.\r\n * @param {String} comment the comment to use.\r\n * @param {String} platform the platform to use, \"UNIX\" or \"DOS\".\r\n * @param {Function} encodeFileName the function to encode file names and comments.\r\n */\r\nfunction ZipFileWorker(streamFiles, comment, platform, encodeFileName) {\r\n    GenericWorker.call(this, \"ZipFileWorker\");\r\n    // The number of bytes written so far. This doesn't count accumulated chunks.\r\n    this.bytesWritten = 0;\r\n    // The comment of the zip file\r\n    this.zipComment = comment;\r\n    // The platform \"generating\" the zip file.\r\n    this.zipPlatform = platform;\r\n    // the function to encode file names and comments.\r\n    this.encodeFileName = encodeFileName;\r\n    // Should we stream the content of the files ?\r\n    this.streamFiles = streamFiles;\r\n    // If `streamFiles` is false, we will need to accumulate the content of the\r\n    // files to calculate sizes / crc32 (and write them *before* the content).\r\n    // This boolean indicates if we are accumulating chunks (it will change a lot\r\n    // during the lifetime of this worker).\r\n    this.accumulate = false;\r\n    // The buffer receiving chunks when accumulating content.\r\n    this.contentBuffer = [];\r\n    // The list of generated directory records.\r\n    this.dirRecords = [];\r\n    // The offset (in bytes) from the beginning of the zip file for the current source.\r\n    this.currentSourceOffset = 0;\r\n    // The total number of entries in this zip file.\r\n    this.entriesCount = 0;\r\n    // the name of the file currently being added, null when handling the end of the zip file.\r\n    // Used for the emited metadata.\r\n    this.currentFile = null;\r\n\r\n\r\n\r\n    this._sources = [];\r\n}\r\nutils.inherits(ZipFileWorker, GenericWorker);\r\n\r\n/**\r\n * @see GenericWorker.push\r\n */\r\nZipFileWorker.prototype.push = function (chunk) {\r\n\r\n    var currentFilePercent = chunk.meta.percent || 0;\r\n    var entriesCount = this.entriesCount;\r\n    var remainingFiles = this._sources.length;\r\n\r\n    if(this.accumulate) {\r\n        this.contentBuffer.push(chunk);\r\n    } else {\r\n        this.bytesWritten += chunk.data.length;\r\n\r\n        GenericWorker.prototype.push.call(this, {\r\n            data : chunk.data,\r\n            meta : {\r\n                currentFile : this.currentFile,\r\n                percent : entriesCount ? (currentFilePercent + 100 * (entriesCount - remainingFiles - 1)) / entriesCount : 100\r\n            }\r\n        });\r\n    }\r\n};\r\n\r\n/**\r\n * The worker started a new source (an other worker).\r\n * @param {Object} streamInfo the streamInfo object from the new source.\r\n */\r\nZipFileWorker.prototype.openedSource = function (streamInfo) {\r\n    this.currentSourceOffset = this.bytesWritten;\r\n    this.currentFile = streamInfo['file'].name;\r\n\r\n    var streamedContent = this.streamFiles && !streamInfo['file'].dir;\r\n\r\n    // don't stream folders (because they don't have any content)\r\n    if(streamedContent) {\r\n        var record = generateZipParts(streamInfo, streamedContent, false, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);\r\n        this.push({\r\n            data : record.fileRecord,\r\n            meta : {percent:0}\r\n        });\r\n    } else {\r\n        // we need to wait for the whole file before pushing anything\r\n        this.accumulate = true;\r\n    }\r\n};\r\n\r\n/**\r\n * The worker finished a source (an other worker).\r\n * @param {Object} streamInfo the streamInfo object from the finished source.\r\n */\r\nZipFileWorker.prototype.closedSource = function (streamInfo) {\r\n    this.accumulate = false;\r\n    var streamedContent = this.streamFiles && !streamInfo['file'].dir;\r\n    var record = generateZipParts(streamInfo, streamedContent, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);\r\n\r\n    this.dirRecords.push(record.dirRecord);\r\n    if(streamedContent) {\r\n        // after the streamed file, we put data descriptors\r\n        this.push({\r\n            data : generateDataDescriptors(streamInfo),\r\n            meta : {percent:100}\r\n        });\r\n    } else {\r\n        // the content wasn't streamed, we need to push everything now\r\n        // first the file record, then the content\r\n        this.push({\r\n            data : record.fileRecord,\r\n            meta : {percent:0}\r\n        });\r\n        while(this.contentBuffer.length) {\r\n            this.push(this.contentBuffer.shift());\r\n        }\r\n    }\r\n    this.currentFile = null;\r\n};\r\n\r\n/**\r\n * @see GenericWorker.flush\r\n */\r\nZipFileWorker.prototype.flush = function () {\r\n\r\n    var localDirLength = this.bytesWritten;\r\n    for(var i = 0; i < this.dirRecords.length; i++) {\r\n        this.push({\r\n            data : this.dirRecords[i],\r\n            meta : {percent:100}\r\n        });\r\n    }\r\n    var centralDirLength = this.bytesWritten - localDirLength;\r\n\r\n    var dirEnd = generateCentralDirectoryEnd(this.dirRecords.length, centralDirLength, localDirLength, this.zipComment, this.encodeFileName);\r\n\r\n    this.push({\r\n        data : dirEnd,\r\n        meta : {percent:100}\r\n    });\r\n};\r\n\r\n/**\r\n * Prepare the next source to be read.\r\n */\r\nZipFileWorker.prototype.prepareNextSource = function () {\r\n    this.previous = this._sources.shift();\r\n    this.openedSource(this.previous.streamInfo);\r\n    if (this.isPaused) {\r\n        this.previous.pause();\r\n    } else {\r\n        this.previous.resume();\r\n    }\r\n};\r\n\r\n/**\r\n * @see GenericWorker.registerPrevious\r\n */\r\nZipFileWorker.prototype.registerPrevious = function (previous) {\r\n    this._sources.push(previous);\r\n    var self = this;\r\n\r\n    previous.on('data', function (chunk) {\r\n        self.processChunk(chunk);\r\n    });\r\n    previous.on('end', function () {\r\n        self.closedSource(self.previous.streamInfo);\r\n        if(self._sources.length) {\r\n            self.prepareNextSource();\r\n        } else {\r\n            self.end();\r\n        }\r\n    });\r\n    previous.on('error', function (e) {\r\n        self.error(e);\r\n    });\r\n    return this;\r\n};\r\n\r\n/**\r\n * @see GenericWorker.resume\r\n */\r\nZipFileWorker.prototype.resume = function () {\r\n    if(!GenericWorker.prototype.resume.call(this)) {\r\n        return false;\r\n    }\r\n\r\n    if (!this.previous && this._sources.length) {\r\n        this.prepareNextSource();\r\n        return true;\r\n    }\r\n    if (!this.previous && !this._sources.length && !this.generatedError) {\r\n        this.end();\r\n        return true;\r\n    }\r\n};\r\n\r\n/**\r\n * @see GenericWorker.error\r\n */\r\nZipFileWorker.prototype.error = function (e) {\r\n    var sources = this._sources;\r\n    if(!GenericWorker.prototype.error.call(this, e)) {\r\n        return false;\r\n    }\r\n    for(var i = 0; i < sources.length; i++) {\r\n        try {\r\n            sources[i].error(e);\r\n        } catch(e) {\r\n            // the `error` exploded, nothing to do\r\n        }\r\n    }\r\n    return true;\r\n};\r\n\r\n/**\r\n * @see GenericWorker.lock\r\n */\r\nZipFileWorker.prototype.lock = function () {\r\n    GenericWorker.prototype.lock.call(this);\r\n    var sources = this._sources;\r\n    for(var i = 0; i < sources.length; i++) {\r\n        sources[i].lock();\r\n    }\r\n};\r\n\r\nmodule.exports = ZipFileWorker;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/generate/ZipFileWorker.js\n// module id = 688\n// module chunks = 2","'use strict';\r\n\r\nvar compressions = require('../compressions');\r\nvar ZipFileWorker = require('./ZipFileWorker');\r\n\r\n/**\r\n * Find the compression to use.\r\n * @param {String} fileCompression the compression defined at the file level, if any.\r\n * @param {String} zipCompression the compression defined at the load() level.\r\n * @return {Object} the compression object to use.\r\n */\r\nvar getCompression = function (fileCompression, zipCompression) {\r\n\r\n    var compressionName = fileCompression || zipCompression;\r\n    var compression = compressions[compressionName];\r\n    if (!compression) {\r\n        throw new Error(compressionName + \" is not a valid compression method !\");\r\n    }\r\n    return compression;\r\n};\r\n\r\n/**\r\n * Create a worker to generate a zip file.\r\n * @param {JSZip} zip the JSZip instance at the right root level.\r\n * @param {Object} options to generate the zip file.\r\n * @param {String} comment the comment to use.\r\n */\r\nexports.generateWorker = function (zip, options, comment) {\r\n\r\n    var zipFileWorker = new ZipFileWorker(options.streamFiles, comment, options.platform, options.encodeFileName);\r\n    var entriesCount = 0;\r\n    try {\r\n\r\n        zip.forEach(function (relativePath, file) {\r\n            entriesCount++;\r\n            var compression = getCompression(file.options.compression, options.compression);\r\n            var compressionOptions = file.options.compressionOptions || options.compressionOptions || {};\r\n            var dir = file.dir, date = file.date;\r\n\r\n            file._compressWorker(compression, compressionOptions)\r\n            .withStreamInfo(\"file\", {\r\n                name : relativePath,\r\n                dir : dir,\r\n                date : date,\r\n                comment : file.comment || \"\",\r\n                unixPermissions : file.unixPermissions,\r\n                dosPermissions : file.dosPermissions\r\n            })\r\n            .pipe(zipFileWorker);\r\n        });\r\n        zipFileWorker.entriesCount = entriesCount;\r\n    } catch (e) {\r\n        zipFileWorker.error(e);\r\n    }\r\n\r\n    return zipFileWorker;\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/generate/index.js\n// module id = 689\n// module chunks = 2","'use strict';\r\nvar utils = require('./utils');\r\nvar external = require(\"./external\");\r\nvar utf8 = require('./utf8');\r\nvar utils = require('./utils');\r\nvar ZipEntries = require('./zipEntries');\r\nvar Crc32Probe = require('./stream/Crc32Probe');\r\nvar nodejsUtils = require(\"./nodejsUtils\");\r\n\r\n/**\r\n * Check the CRC32 of an entry.\r\n * @param {ZipEntry} zipEntry the zip entry to check.\r\n * @return {Promise} the result.\r\n */\r\nfunction checkEntryCRC32(zipEntry) {\r\n    return new external.Promise(function (resolve, reject) {\r\n        var worker = zipEntry.decompressed.getContentWorker().pipe(new Crc32Probe());\r\n        worker.on(\"error\", function (e) {\r\n            reject(e);\r\n        })\r\n        .on(\"end\", function () {\r\n            if (worker.streamInfo.crc32 !== zipEntry.decompressed.crc32) {\r\n                reject(new Error(\"Corrupted zip : CRC32 mismatch\"));\r\n            } else {\r\n                resolve();\r\n            }\r\n        })\r\n        .resume();\r\n    });\r\n}\r\n\r\nmodule.exports = function(data, options) {\r\n    var zip = this;\r\n    options = utils.extend(options || {}, {\r\n        base64: false,\r\n        checkCRC32: false,\r\n        optimizedBinaryString: false,\r\n        createFolders: false,\r\n        decodeFileName: utf8.utf8decode\r\n    });\r\n\r\n    if (nodejsUtils.isNode && nodejsUtils.isStream(data)) {\r\n        return external.Promise.reject(new Error(\"JSZip can't accept a stream when loading a zip file.\"));\r\n    }\r\n\r\n    return utils.prepareContent(\"the loaded zip file\", data, true, options.optimizedBinaryString, options.base64)\r\n    .then(function(data) {\r\n        var zipEntries = new ZipEntries(options);\r\n        zipEntries.load(data);\r\n        return zipEntries;\r\n    }).then(function checkCRC32(zipEntries) {\r\n        var promises = [external.Promise.resolve(zipEntries)];\r\n        var files = zipEntries.files;\r\n        if (options.checkCRC32) {\r\n            for (var i = 0; i < files.length; i++) {\r\n                promises.push(checkEntryCRC32(files[i]));\r\n            }\r\n        }\r\n        return external.Promise.all(promises);\r\n    }).then(function addFiles(results) {\r\n        var zipEntries = results.shift();\r\n        var files = zipEntries.files;\r\n        for (var i = 0; i < files.length; i++) {\r\n            var input = files[i];\r\n            zip.file(input.fileNameStr, input.decompressed, {\r\n                binary: true,\r\n                optimizedBinaryString: true,\r\n                date: input.date,\r\n                dir: input.dir,\r\n                comment : input.fileCommentStr.length ? input.fileCommentStr : null,\r\n                unixPermissions : input.unixPermissions,\r\n                dosPermissions : input.dosPermissions,\r\n                createFolders: options.createFolders\r\n            });\r\n        }\r\n        if (zipEntries.zipComment.length) {\r\n            zip.comment = zipEntries.zipComment;\r\n        }\r\n\r\n        return zip;\r\n    });\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/load.js\n// module id = 690\n// module chunks = 2","\"use strict\";\r\n\r\nvar utils = require('../utils');\r\nvar GenericWorker = require('../stream/GenericWorker');\r\n\r\n/**\r\n * A worker that use a nodejs stream as source.\r\n * @constructor\r\n * @param {String} filename the name of the file entry for this stream.\r\n * @param {Readable} stream the nodejs stream.\r\n */\r\nfunction NodejsStreamInputAdapter(filename, stream) {\r\n    GenericWorker.call(this, \"Nodejs stream input adapter for \" + filename);\r\n    this._upstreamEnded = false;\r\n    this._bindStream(stream);\r\n}\r\n\r\nutils.inherits(NodejsStreamInputAdapter, GenericWorker);\r\n\r\n/**\r\n * Prepare the stream and bind the callbacks on it.\r\n * Do this ASAP on node 0.10 ! A lazy binding doesn't always work.\r\n * @param {Stream} stream the nodejs stream to use.\r\n */\r\nNodejsStreamInputAdapter.prototype._bindStream = function (stream) {\r\n    var self = this;\r\n    this._stream = stream;\r\n    stream.pause();\r\n    stream\r\n    .on(\"data\", function (chunk) {\r\n        self.push({\r\n            data: chunk,\r\n            meta : {\r\n                percent : 0\r\n            }\r\n        });\r\n    })\r\n    .on(\"error\", function (e) {\r\n        if(self.isPaused) {\r\n            this.generatedError = e;\r\n        } else {\r\n            self.error(e);\r\n        }\r\n    })\r\n    .on(\"end\", function () {\r\n        if(self.isPaused) {\r\n            self._upstreamEnded = true;\r\n        } else {\r\n            self.end();\r\n        }\r\n    });\r\n};\r\nNodejsStreamInputAdapter.prototype.pause = function () {\r\n    if(!GenericWorker.prototype.pause.call(this)) {\r\n        return false;\r\n    }\r\n    this._stream.pause();\r\n    return true;\r\n};\r\nNodejsStreamInputAdapter.prototype.resume = function () {\r\n    if(!GenericWorker.prototype.resume.call(this)) {\r\n        return false;\r\n    }\r\n\r\n    if(this._upstreamEnded) {\r\n        this.end();\r\n    } else {\r\n        this._stream.resume();\r\n    }\r\n\r\n    return true;\r\n};\r\n\r\nmodule.exports = NodejsStreamInputAdapter;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/nodejs/NodejsStreamInputAdapter.js\n// module id = 691\n// module chunks = 2","'use strict';\r\n\r\nvar Readable = require('readable-stream').Readable;\r\n\r\nvar util = require('util');\r\nutil.inherits(NodejsStreamOutputAdapter, Readable);\r\n\r\n/**\r\n* A nodejs stream using a worker as source.\r\n* @see the SourceWrapper in http://nodejs.org/api/stream.html\r\n* @constructor\r\n* @param {StreamHelper} helper the helper wrapping the worker\r\n* @param {Object} options the nodejs stream options\r\n* @param {Function} updateCb the update callback.\r\n*/\r\nfunction NodejsStreamOutputAdapter(helper, options, updateCb) {\r\n    Readable.call(this, options);\r\n    this._helper = helper;\r\n\r\n    var self = this;\r\n    helper.on(\"data\", function (data, meta) {\r\n        if (!self.push(data)) {\r\n            self._helper.pause();\r\n        }\r\n        if(updateCb) {\r\n            updateCb(meta);\r\n        }\r\n    })\r\n    .on(\"error\", function(e) {\r\n        self.emit('error', e);\r\n    })\r\n    .on(\"end\", function () {\r\n        self.push(null);\r\n    });\r\n}\r\n\r\n\r\nNodejsStreamOutputAdapter.prototype._read = function() {\r\n    this._helper.resume();\r\n};\r\n\r\nmodule.exports = NodejsStreamOutputAdapter;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/nodejs/NodejsStreamOutputAdapter.js\n// module id = 692\n// module chunks = 2","'use strict';\r\nvar utf8 = require('./utf8');\r\nvar utils = require('./utils');\r\nvar GenericWorker = require('./stream/GenericWorker');\r\nvar StreamHelper = require('./stream/StreamHelper');\r\nvar defaults = require('./defaults');\r\nvar CompressedObject = require('./compressedObject');\r\nvar ZipObject = require('./zipObject');\r\nvar generate = require(\"./generate\");\r\nvar nodejsUtils = require(\"./nodejsUtils\");\r\nvar NodejsStreamInputAdapter = require(\"./nodejs/NodejsStreamInputAdapter\");\r\n\r\n\r\n/**\r\n * Add a file in the current folder.\r\n * @private\r\n * @param {string} name the name of the file\r\n * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data of the file\r\n * @param {Object} originalOptions the options of the file\r\n * @return {Object} the new file.\r\n */\r\nvar fileAdd = function(name, data, originalOptions) {\r\n    // be sure sub folders exist\r\n    var dataType = utils.getTypeOf(data),\r\n        parent;\r\n\r\n\r\n    /*\r\n     * Correct options.\r\n     */\r\n\r\n    var o = utils.extend(originalOptions || {}, defaults);\r\n    o.date = o.date || new Date();\r\n    if (o.compression !== null) {\r\n        o.compression = o.compression.toUpperCase();\r\n    }\r\n\r\n    if (typeof o.unixPermissions === \"string\") {\r\n        o.unixPermissions = parseInt(o.unixPermissions, 8);\r\n    }\r\n\r\n    // UNX_IFDIR  0040000 see zipinfo.c\r\n    if (o.unixPermissions && (o.unixPermissions & 0x4000)) {\r\n        o.dir = true;\r\n    }\r\n    // Bit 4    Directory\r\n    if (o.dosPermissions && (o.dosPermissions & 0x0010)) {\r\n        o.dir = true;\r\n    }\r\n\r\n    if (o.dir) {\r\n        name = forceTrailingSlash(name);\r\n    }\r\n    if (o.createFolders && (parent = parentFolder(name))) {\r\n        folderAdd.call(this, parent, true);\r\n    }\r\n\r\n    var isUnicodeString = dataType === \"string\" && o.binary === false && o.base64 === false;\r\n    if (!originalOptions || typeof originalOptions.binary === \"undefined\") {\r\n        o.binary = !isUnicodeString;\r\n    }\r\n\r\n\r\n    var isCompressedEmpty = (data instanceof CompressedObject) && data.uncompressedSize === 0;\r\n\r\n    if (isCompressedEmpty || o.dir || !data || data.length === 0) {\r\n        o.base64 = false;\r\n        o.binary = true;\r\n        data = \"\";\r\n        o.compression = \"STORE\";\r\n        dataType = \"string\";\r\n    }\r\n\r\n    /*\r\n     * Convert content to fit.\r\n     */\r\n\r\n    var zipObjectContent = null;\r\n    if (data instanceof CompressedObject || data instanceof GenericWorker) {\r\n        zipObjectContent = data;\r\n    } else if (nodejsUtils.isNode && nodejsUtils.isStream(data)) {\r\n        zipObjectContent = new NodejsStreamInputAdapter(name, data);\r\n    } else {\r\n        zipObjectContent = utils.prepareContent(name, data, o.binary, o.optimizedBinaryString, o.base64);\r\n    }\r\n\r\n    var object = new ZipObject(name, zipObjectContent, o);\r\n    this.files[name] = object;\r\n    /*\r\n    TODO: we can't throw an exception because we have async promises\r\n    (we can have a promise of a Date() for example) but returning a\r\n    promise is useless because file(name, data) returns the JSZip\r\n    object for chaining. Should we break that to allow the user\r\n    to catch the error ?\r\n\r\n    return external.Promise.resolve(zipObjectContent)\r\n    .then(function () {\r\n        return object;\r\n    });\r\n    */\r\n};\r\n\r\n/**\r\n * Find the parent folder of the path.\r\n * @private\r\n * @param {string} path the path to use\r\n * @return {string} the parent folder, or \"\"\r\n */\r\nvar parentFolder = function (path) {\r\n    if (path.slice(-1) === '/') {\r\n        path = path.substring(0, path.length - 1);\r\n    }\r\n    var lastSlash = path.lastIndexOf('/');\r\n    return (lastSlash > 0) ? path.substring(0, lastSlash) : \"\";\r\n};\r\n\r\n/**\r\n * Returns the path with a slash at the end.\r\n * @private\r\n * @param {String} path the path to check.\r\n * @return {String} the path with a trailing slash.\r\n */\r\nvar forceTrailingSlash = function(path) {\r\n    // Check the name ends with a /\r\n    if (path.slice(-1) !== \"/\") {\r\n        path += \"/\"; // IE doesn't like substr(-1)\r\n    }\r\n    return path;\r\n};\r\n\r\n/**\r\n * Add a (sub) folder in the current folder.\r\n * @private\r\n * @param {string} name the folder's name\r\n * @param {boolean=} [createFolders] If true, automatically create sub\r\n *  folders. Defaults to false.\r\n * @return {Object} the new folder.\r\n */\r\nvar folderAdd = function(name, createFolders) {\r\n    createFolders = (typeof createFolders !== 'undefined') ? createFolders : defaults.createFolders;\r\n\r\n    name = forceTrailingSlash(name);\r\n\r\n    // Does this folder already exist?\r\n    if (!this.files[name]) {\r\n        fileAdd.call(this, name, null, {\r\n            dir: true,\r\n            createFolders: createFolders\r\n        });\r\n    }\r\n    return this.files[name];\r\n};\r\n\r\n/**\r\n* Cross-window, cross-Node-context regular expression detection\r\n* @param  {Object}  object Anything\r\n* @return {Boolean}        true if the object is a regular expression,\r\n* false otherwise\r\n*/\r\nfunction isRegExp(object) {\r\n    return Object.prototype.toString.call(object) === \"[object RegExp]\";\r\n}\r\n\r\n// return the actual prototype of JSZip\r\nvar out = {\r\n    /**\r\n     * @see loadAsync\r\n     */\r\n    load: function() {\r\n        throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\");\r\n    },\r\n\r\n\r\n    /**\r\n     * Call a callback function for each entry at this folder level.\r\n     * @param {Function} cb the callback function:\r\n     * function (relativePath, file) {...}\r\n     * It takes 2 arguments : the relative path and the file.\r\n     */\r\n    forEach: function(cb) {\r\n        var filename, relativePath, file;\r\n        for (filename in this.files) {\r\n            if (!this.files.hasOwnProperty(filename)) {\r\n                continue;\r\n            }\r\n            file = this.files[filename];\r\n            relativePath = filename.slice(this.root.length, filename.length);\r\n            if (relativePath && filename.slice(0, this.root.length) === this.root) { // the file is in the current root\r\n                cb(relativePath, file); // TODO reverse the parameters ? need to be clean AND consistent with the filter search fn...\r\n            }\r\n        }\r\n    },\r\n\r\n    /**\r\n     * Filter nested files/folders with the specified function.\r\n     * @param {Function} search the predicate to use :\r\n     * function (relativePath, file) {...}\r\n     * It takes 2 arguments : the relative path and the file.\r\n     * @return {Array} An array of matching elements.\r\n     */\r\n    filter: function(search) {\r\n        var result = [];\r\n        this.forEach(function (relativePath, entry) {\r\n            if (search(relativePath, entry)) { // the file matches the function\r\n                result.push(entry);\r\n            }\r\n\r\n        });\r\n        return result;\r\n    },\r\n\r\n    /**\r\n     * Add a file to the zip file, or search a file.\r\n     * @param   {string|RegExp} name The name of the file to add (if data is defined),\r\n     * the name of the file to find (if no data) or a regex to match files.\r\n     * @param   {String|ArrayBuffer|Uint8Array|Buffer} data  The file data, either raw or base64 encoded\r\n     * @param   {Object} o     File options\r\n     * @return  {JSZip|Object|Array} this JSZip object (when adding a file),\r\n     * a file (when searching by string) or an array of files (when searching by regex).\r\n     */\r\n    file: function(name, data, o) {\r\n        if (arguments.length === 1) {\r\n            if (isRegExp(name)) {\r\n                var regexp = name;\r\n                return this.filter(function(relativePath, file) {\r\n                    return !file.dir && regexp.test(relativePath);\r\n                });\r\n            }\r\n            else { // text\r\n                var obj = this.files[this.root + name];\r\n                if (obj && !obj.dir) {\r\n                    return obj;\r\n                } else {\r\n                    return null;\r\n                }\r\n            }\r\n        }\r\n        else { // more than one argument : we have data !\r\n            name = this.root + name;\r\n            fileAdd.call(this, name, data, o);\r\n        }\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * Add a directory to the zip file, or search.\r\n     * @param   {String|RegExp} arg The name of the directory to add, or a regex to search folders.\r\n     * @return  {JSZip} an object with the new directory as the root, or an array containing matching folders.\r\n     */\r\n    folder: function(arg) {\r\n        if (!arg) {\r\n            return this;\r\n        }\r\n\r\n        if (isRegExp(arg)) {\r\n            return this.filter(function(relativePath, file) {\r\n                return file.dir && arg.test(relativePath);\r\n            });\r\n        }\r\n\r\n        // else, name is a new folder\r\n        var name = this.root + arg;\r\n        var newFolder = folderAdd.call(this, name);\r\n\r\n        // Allow chaining by returning a new object with this folder as the root\r\n        var ret = this.clone();\r\n        ret.root = newFolder.name;\r\n        return ret;\r\n    },\r\n\r\n    /**\r\n     * Delete a file, or a directory and all sub-files, from the zip\r\n     * @param {string} name the name of the file to delete\r\n     * @return {JSZip} this JSZip object\r\n     */\r\n    remove: function(name) {\r\n        name = this.root + name;\r\n        var file = this.files[name];\r\n        if (!file) {\r\n            // Look for any folders\r\n            if (name.slice(-1) !== \"/\") {\r\n                name += \"/\";\r\n            }\r\n            file = this.files[name];\r\n        }\r\n\r\n        if (file && !file.dir) {\r\n            // file\r\n            delete this.files[name];\r\n        } else {\r\n            // maybe a folder, delete recursively\r\n            var kids = this.filter(function(relativePath, file) {\r\n                return file.name.slice(0, name.length) === name;\r\n            });\r\n            for (var i = 0; i < kids.length; i++) {\r\n                delete this.files[kids[i].name];\r\n            }\r\n        }\r\n\r\n        return this;\r\n    },\r\n\r\n    /**\r\n     * Generate the complete zip file\r\n     * @param {Object} options the options to generate the zip file :\r\n     * - compression, \"STORE\" by default.\r\n     * - type, \"base64\" by default. Values are : string, base64, uint8array, arraybuffer, blob.\r\n     * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the zip file\r\n     */\r\n    generate: function(options) {\r\n        throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\");\r\n    },\r\n\r\n    /**\r\n     * Generate the complete zip file as an internal stream.\r\n     * @param {Object} options the options to generate the zip file :\r\n     * - compression, \"STORE\" by default.\r\n     * - type, \"base64\" by default. Values are : string, base64, uint8array, arraybuffer, blob.\r\n     * @return {StreamHelper} the streamed zip file.\r\n     */\r\n    generateInternalStream: function(options) {\r\n      var worker, opts = {};\r\n      try {\r\n          opts = utils.extend(options || {}, {\r\n              streamFiles: false,\r\n              compression: \"STORE\",\r\n              compressionOptions : null,\r\n              type: \"\",\r\n              platform: \"DOS\",\r\n              comment: null,\r\n              mimeType: 'application/zip',\r\n              encodeFileName: utf8.utf8encode\r\n          });\r\n\r\n          opts.type = opts.type.toLowerCase();\r\n          opts.compression = opts.compression.toUpperCase();\r\n\r\n          // \"binarystring\" is prefered but the internals use \"string\".\r\n          if(opts.type === \"binarystring\") {\r\n            opts.type = \"string\";\r\n          }\r\n\r\n          if (!opts.type) {\r\n            throw new Error(\"No output type specified.\");\r\n          }\r\n\r\n          utils.checkSupport(opts.type);\r\n\r\n          // accept nodejs `process.platform`\r\n          if(\r\n              opts.platform === 'darwin' ||\r\n              opts.platform === 'freebsd' ||\r\n              opts.platform === 'linux' ||\r\n              opts.platform === 'sunos'\r\n          ) {\r\n              opts.platform = \"UNIX\";\r\n          }\r\n          if (opts.platform === 'win32') {\r\n              opts.platform = \"DOS\";\r\n          }\r\n\r\n          var comment = opts.comment || this.comment || \"\";\r\n          worker = generate.generateWorker(this, opts, comment);\r\n      } catch (e) {\r\n        worker = new GenericWorker(\"error\");\r\n        worker.error(e);\r\n      }\r\n      return new StreamHelper(worker, opts.type || \"string\", opts.mimeType);\r\n    },\r\n    /**\r\n     * Generate the complete zip file asynchronously.\r\n     * @see generateInternalStream\r\n     */\r\n    generateAsync: function(options, onUpdate) {\r\n        return this.generateInternalStream(options).accumulate(onUpdate);\r\n    },\r\n    /**\r\n     * Generate the complete zip file asynchronously.\r\n     * @see generateInternalStream\r\n     */\r\n    generateNodeStream: function(options, onUpdate) {\r\n        options = options || {};\r\n        if (!options.type) {\r\n            options.type = \"nodebuffer\";\r\n        }\r\n        return this.generateInternalStream(options).toNodejsStream(onUpdate);\r\n    }\r\n};\r\nmodule.exports = out;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/object.js\n// module id = 693\n// module chunks = 2","'use strict';\r\nvar Uint8ArrayReader = require('./Uint8ArrayReader');\r\nvar utils = require('../utils');\r\n\r\nfunction NodeBufferReader(data) {\r\n    Uint8ArrayReader.call(this, data);\r\n}\r\nutils.inherits(NodeBufferReader, Uint8ArrayReader);\r\n\r\n/**\r\n * @see DataReader.readData\r\n */\r\nNodeBufferReader.prototype.readData = function(size) {\r\n    this.checkOffset(size);\r\n    var result = this.data.slice(this.zero + this.index, this.zero + this.index + size);\r\n    this.index += size;\r\n    return result;\r\n};\r\nmodule.exports = NodeBufferReader;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/reader/NodeBufferReader.js\n// module id = 694\n// module chunks = 2","'use strict';\r\nvar DataReader = require('./DataReader');\r\nvar utils = require('../utils');\r\n\r\nfunction StringReader(data) {\r\n    DataReader.call(this, data);\r\n}\r\nutils.inherits(StringReader, DataReader);\r\n/**\r\n * @see DataReader.byteAt\r\n */\r\nStringReader.prototype.byteAt = function(i) {\r\n    return this.data.charCodeAt(this.zero + i);\r\n};\r\n/**\r\n * @see DataReader.lastIndexOfSignature\r\n */\r\nStringReader.prototype.lastIndexOfSignature = function(sig) {\r\n    return this.data.lastIndexOf(sig) - this.zero;\r\n};\r\n/**\r\n * @see DataReader.readAndCheckSignature\r\n */\r\nStringReader.prototype.readAndCheckSignature = function (sig) {\r\n    var data = this.readData(4);\r\n    return sig === data;\r\n};\r\n/**\r\n * @see DataReader.readData\r\n */\r\nStringReader.prototype.readData = function(size) {\r\n    this.checkOffset(size);\r\n    // this will work because the constructor applied the \"& 0xff\" mask.\r\n    var result = this.data.slice(this.zero + this.index, this.zero + this.index + size);\r\n    this.index += size;\r\n    return result;\r\n};\r\nmodule.exports = StringReader;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/reader/StringReader.js\n// module id = 695\n// module chunks = 2","'use strict';\r\n\r\nvar GenericWorker = require('./GenericWorker');\r\nvar utils = require('../utils');\r\n\r\n/**\r\n * A worker which convert chunks to a specified type.\r\n * @constructor\r\n * @param {String} destType the destination type.\r\n */\r\nfunction ConvertWorker(destType) {\r\n    GenericWorker.call(this, \"ConvertWorker to \" + destType);\r\n    this.destType = destType;\r\n}\r\nutils.inherits(ConvertWorker, GenericWorker);\r\n\r\n/**\r\n * @see GenericWorker.processChunk\r\n */\r\nConvertWorker.prototype.processChunk = function (chunk) {\r\n    this.push({\r\n        data : utils.transformTo(this.destType, chunk.data),\r\n        meta : chunk.meta\r\n    });\r\n};\r\nmodule.exports = ConvertWorker;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/stream/ConvertWorker.js\n// module id = 696\n// module chunks = 2","'use strict';\r\nvar readerFor = require('./reader/readerFor');\r\nvar utils = require('./utils');\r\nvar sig = require('./signature');\r\nvar ZipEntry = require('./zipEntry');\r\nvar utf8 = require('./utf8');\r\nvar support = require('./support');\r\n//  class ZipEntries {{{\r\n/**\r\n * All the entries in the zip file.\r\n * @constructor\r\n * @param {Object} loadOptions Options for loading the stream.\r\n */\r\nfunction ZipEntries(loadOptions) {\r\n    this.files = [];\r\n    this.loadOptions = loadOptions;\r\n}\r\nZipEntries.prototype = {\r\n    /**\r\n     * Check that the reader is on the speficied signature.\r\n     * @param {string} expectedSignature the expected signature.\r\n     * @throws {Error} if it is an other signature.\r\n     */\r\n    checkSignature: function(expectedSignature) {\r\n        if (!this.reader.readAndCheckSignature(expectedSignature)) {\r\n            this.reader.index -= 4;\r\n            var signature = this.reader.readString(4);\r\n            throw new Error(\"Corrupted zip or bug : unexpected signature \" + \"(\" + utils.pretty(signature) + \", expected \" + utils.pretty(expectedSignature) + \")\");\r\n        }\r\n    },\r\n    /**\r\n     * Check if the given signature is at the given index.\r\n     * @param {number} askedIndex the index to check.\r\n     * @param {string} expectedSignature the signature to expect.\r\n     * @return {boolean} true if the signature is here, false otherwise.\r\n     */\r\n    isSignature: function(askedIndex, expectedSignature) {\r\n        var currentIndex = this.reader.index;\r\n        this.reader.setIndex(askedIndex);\r\n        var signature = this.reader.readString(4);\r\n        var result = signature === expectedSignature;\r\n        this.reader.setIndex(currentIndex);\r\n        return result;\r\n    },\r\n    /**\r\n     * Read the end of the central directory.\r\n     */\r\n    readBlockEndOfCentral: function() {\r\n        this.diskNumber = this.reader.readInt(2);\r\n        this.diskWithCentralDirStart = this.reader.readInt(2);\r\n        this.centralDirRecordsOnThisDisk = this.reader.readInt(2);\r\n        this.centralDirRecords = this.reader.readInt(2);\r\n        this.centralDirSize = this.reader.readInt(4);\r\n        this.centralDirOffset = this.reader.readInt(4);\r\n\r\n        this.zipCommentLength = this.reader.readInt(2);\r\n        // warning : the encoding depends of the system locale\r\n        // On a linux machine with LANG=en_US.utf8, this field is utf8 encoded.\r\n        // On a windows machine, this field is encoded with the localized windows code page.\r\n        var zipComment = this.reader.readData(this.zipCommentLength);\r\n        var decodeParamType = support.uint8array ? \"uint8array\" : \"array\";\r\n        // To get consistent behavior with the generation part, we will assume that\r\n        // this is utf8 encoded unless specified otherwise.\r\n        var decodeContent = utils.transformTo(decodeParamType, zipComment);\r\n        this.zipComment = this.loadOptions.decodeFileName(decodeContent);\r\n    },\r\n    /**\r\n     * Read the end of the Zip 64 central directory.\r\n     * Not merged with the method readEndOfCentral :\r\n     * The end of central can coexist with its Zip64 brother,\r\n     * I don't want to read the wrong number of bytes !\r\n     */\r\n    readBlockZip64EndOfCentral: function() {\r\n        this.zip64EndOfCentralSize = this.reader.readInt(8);\r\n        this.reader.skip(4);\r\n        // this.versionMadeBy = this.reader.readString(2);\r\n        // this.versionNeeded = this.reader.readInt(2);\r\n        this.diskNumber = this.reader.readInt(4);\r\n        this.diskWithCentralDirStart = this.reader.readInt(4);\r\n        this.centralDirRecordsOnThisDisk = this.reader.readInt(8);\r\n        this.centralDirRecords = this.reader.readInt(8);\r\n        this.centralDirSize = this.reader.readInt(8);\r\n        this.centralDirOffset = this.reader.readInt(8);\r\n\r\n        this.zip64ExtensibleData = {};\r\n        var extraDataSize = this.zip64EndOfCentralSize - 44,\r\n            index = 0,\r\n            extraFieldId,\r\n            extraFieldLength,\r\n            extraFieldValue;\r\n        while (index < extraDataSize) {\r\n            extraFieldId = this.reader.readInt(2);\r\n            extraFieldLength = this.reader.readInt(4);\r\n            extraFieldValue = this.reader.readData(extraFieldLength);\r\n            this.zip64ExtensibleData[extraFieldId] = {\r\n                id: extraFieldId,\r\n                length: extraFieldLength,\r\n                value: extraFieldValue\r\n            };\r\n        }\r\n    },\r\n    /**\r\n     * Read the end of the Zip 64 central directory locator.\r\n     */\r\n    readBlockZip64EndOfCentralLocator: function() {\r\n        this.diskWithZip64CentralDirStart = this.reader.readInt(4);\r\n        this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8);\r\n        this.disksCount = this.reader.readInt(4);\r\n        if (this.disksCount > 1) {\r\n            throw new Error(\"Multi-volumes zip are not supported\");\r\n        }\r\n    },\r\n    /**\r\n     * Read the local files, based on the offset read in the central part.\r\n     */\r\n    readLocalFiles: function() {\r\n        var i, file;\r\n        for (i = 0; i < this.files.length; i++) {\r\n            file = this.files[i];\r\n            this.reader.setIndex(file.localHeaderOffset);\r\n            this.checkSignature(sig.LOCAL_FILE_HEADER);\r\n            file.readLocalPart(this.reader);\r\n            file.handleUTF8();\r\n            file.processAttributes();\r\n        }\r\n    },\r\n    /**\r\n     * Read the central directory.\r\n     */\r\n    readCentralDir: function() {\r\n        var file;\r\n\r\n        this.reader.setIndex(this.centralDirOffset);\r\n        while (this.reader.readAndCheckSignature(sig.CENTRAL_FILE_HEADER)) {\r\n            file = new ZipEntry({\r\n                zip64: this.zip64\r\n            }, this.loadOptions);\r\n            file.readCentralPart(this.reader);\r\n            this.files.push(file);\r\n        }\r\n\r\n        if (this.centralDirRecords !== this.files.length) {\r\n            if (this.centralDirRecords !== 0 && this.files.length === 0) {\r\n                // We expected some records but couldn't find ANY.\r\n                // This is really suspicious, as if something went wrong.\r\n                throw new Error(\"Corrupted zip or bug: expected \" + this.centralDirRecords + \" records in central dir, got \" + this.files.length);\r\n            } else {\r\n                // We found some records but not all.\r\n                // Something is wrong but we got something for the user: no error here.\r\n                // console.warn(\"expected\", this.centralDirRecords, \"records in central dir, got\", this.files.length);\r\n            }\r\n        }\r\n    },\r\n    /**\r\n     * Read the end of central directory.\r\n     */\r\n    readEndOfCentral: function() {\r\n        var offset = this.reader.lastIndexOfSignature(sig.CENTRAL_DIRECTORY_END);\r\n        if (offset < 0) {\r\n            // Check if the content is a truncated zip or complete garbage.\r\n            // A \"LOCAL_FILE_HEADER\" is not required at the beginning (auto\r\n            // extractible zip for example) but it can give a good hint.\r\n            // If an ajax request was used without responseType, we will also\r\n            // get unreadable data.\r\n            var isGarbage = !this.isSignature(0, sig.LOCAL_FILE_HEADER);\r\n\r\n            if (isGarbage) {\r\n                throw new Error(\"Can't find end of central directory : is this a zip file ? \" +\r\n                                \"If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html\");\r\n            } else {\r\n                throw new Error(\"Corrupted zip : can't find end of central directory\");\r\n            }\r\n\r\n        }\r\n        this.reader.setIndex(offset);\r\n        var endOfCentralDirOffset = offset;\r\n        this.checkSignature(sig.CENTRAL_DIRECTORY_END);\r\n        this.readBlockEndOfCentral();\r\n\r\n\r\n        /* extract from the zip spec :\r\n            4)  If one of the fields in the end of central directory\r\n                record is too small to hold required data, the field\r\n                should be set to -1 (0xFFFF or 0xFFFFFFFF) and the\r\n                ZIP64 format record should be created.\r\n            5)  The end of central directory record and the\r\n                Zip64 end of central directory locator record must\r\n                reside on the same disk when splitting or spanning\r\n                an archive.\r\n         */\r\n        if (this.diskNumber === utils.MAX_VALUE_16BITS || this.diskWithCentralDirStart === utils.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === utils.MAX_VALUE_16BITS || this.centralDirRecords === utils.MAX_VALUE_16BITS || this.centralDirSize === utils.MAX_VALUE_32BITS || this.centralDirOffset === utils.MAX_VALUE_32BITS) {\r\n            this.zip64 = true;\r\n\r\n            /*\r\n            Warning : the zip64 extension is supported, but ONLY if the 64bits integer read from\r\n            the zip file can fit into a 32bits integer. This cannot be solved : Javascript represents\r\n            all numbers as 64-bit double precision IEEE 754 floating point numbers.\r\n            So, we have 53bits for integers and bitwise operations treat everything as 32bits.\r\n            see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Bitwise_Operators\r\n            and http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf section 8.5\r\n            */\r\n\r\n            // should look for a zip64 EOCD locator\r\n            offset = this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIRECTORY_LOCATOR);\r\n            if (offset < 0) {\r\n                throw new Error(\"Corrupted zip : can't find the ZIP64 end of central directory locator\");\r\n            }\r\n            this.reader.setIndex(offset);\r\n            this.checkSignature(sig.ZIP64_CENTRAL_DIRECTORY_LOCATOR);\r\n            this.readBlockZip64EndOfCentralLocator();\r\n\r\n            // now the zip64 EOCD record\r\n            if (!this.isSignature(this.relativeOffsetEndOfZip64CentralDir, sig.ZIP64_CENTRAL_DIRECTORY_END)) {\r\n                // console.warn(\"ZIP64 end of central directory not where expected.\");\r\n                this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIRECTORY_END);\r\n                if (this.relativeOffsetEndOfZip64CentralDir < 0) {\r\n                    throw new Error(\"Corrupted zip : can't find the ZIP64 end of central directory\");\r\n                }\r\n            }\r\n            this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir);\r\n            this.checkSignature(sig.ZIP64_CENTRAL_DIRECTORY_END);\r\n            this.readBlockZip64EndOfCentral();\r\n        }\r\n\r\n        var expectedEndOfCentralDirOffset = this.centralDirOffset + this.centralDirSize;\r\n        if (this.zip64) {\r\n            expectedEndOfCentralDirOffset += 20; // end of central dir 64 locator\r\n            expectedEndOfCentralDirOffset += 12 /* should not include the leading 12 bytes */ + this.zip64EndOfCentralSize;\r\n        }\r\n\r\n        var extraBytes = endOfCentralDirOffset - expectedEndOfCentralDirOffset;\r\n\r\n        if (extraBytes > 0) {\r\n            // console.warn(extraBytes, \"extra bytes at beginning or within zipfile\");\r\n            if (this.isSignature(endOfCentralDirOffset, sig.CENTRAL_FILE_HEADER)) {\r\n                // The offsets seem wrong, but we have something at the specified offset.\r\n                // So… we keep it.\r\n            } else {\r\n                // the offset is wrong, update the \"zero\" of the reader\r\n                // this happens if data has been prepended (crx files for example)\r\n                this.reader.zero = extraBytes;\r\n            }\r\n        } else if (extraBytes < 0) {\r\n            throw new Error(\"Corrupted zip: missing \" + Math.abs(extraBytes) + \" bytes.\");\r\n        }\r\n    },\r\n    prepareReader: function(data) {\r\n        this.reader = readerFor(data);\r\n    },\r\n    /**\r\n     * Read a zip file and create ZipEntries.\r\n     * @param {String|ArrayBuffer|Uint8Array|Buffer} data the binary string representing a zip file.\r\n     */\r\n    load: function(data) {\r\n        this.prepareReader(data);\r\n        this.readEndOfCentral();\r\n        this.readCentralDir();\r\n        this.readLocalFiles();\r\n    }\r\n};\r\n// }}} end of ZipEntries\r\nmodule.exports = ZipEntries;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/zipEntries.js\n// module id = 697\n// module chunks = 2","'use strict';\r\nvar readerFor = require('./reader/readerFor');\r\nvar utils = require('./utils');\r\nvar CompressedObject = require('./compressedObject');\r\nvar crc32fn = require('./crc32');\r\nvar utf8 = require('./utf8');\r\nvar compressions = require('./compressions');\r\nvar support = require('./support');\r\n\r\nvar MADE_BY_DOS = 0x00;\r\nvar MADE_BY_UNIX = 0x03;\r\n\r\n/**\r\n * Find a compression registered in JSZip.\r\n * @param {string} compressionMethod the method magic to find.\r\n * @return {Object|null} the JSZip compression object, null if none found.\r\n */\r\nvar findCompression = function(compressionMethod) {\r\n    for (var method in compressions) {\r\n        if (!compressions.hasOwnProperty(method)) {\r\n            continue;\r\n        }\r\n        if (compressions[method].magic === compressionMethod) {\r\n            return compressions[method];\r\n        }\r\n    }\r\n    return null;\r\n};\r\n\r\n// class ZipEntry {{{\r\n/**\r\n * An entry in the zip file.\r\n * @constructor\r\n * @param {Object} options Options of the current file.\r\n * @param {Object} loadOptions Options for loading the stream.\r\n */\r\nfunction ZipEntry(options, loadOptions) {\r\n    this.options = options;\r\n    this.loadOptions = loadOptions;\r\n}\r\nZipEntry.prototype = {\r\n    /**\r\n     * say if the file is encrypted.\r\n     * @return {boolean} true if the file is encrypted, false otherwise.\r\n     */\r\n    isEncrypted: function() {\r\n        // bit 1 is set\r\n        return (this.bitFlag & 0x0001) === 0x0001;\r\n    },\r\n    /**\r\n     * say if the file has utf-8 filename/comment.\r\n     * @return {boolean} true if the filename/comment is in utf-8, false otherwise.\r\n     */\r\n    useUTF8: function() {\r\n        // bit 11 is set\r\n        return (this.bitFlag & 0x0800) === 0x0800;\r\n    },\r\n    /**\r\n     * Read the local part of a zip file and add the info in this object.\r\n     * @param {DataReader} reader the reader to use.\r\n     */\r\n    readLocalPart: function(reader) {\r\n        var compression, localExtraFieldsLength;\r\n\r\n        // we already know everything from the central dir !\r\n        // If the central dir data are false, we are doomed.\r\n        // On the bright side, the local part is scary  : zip64, data descriptors, both, etc.\r\n        // The less data we get here, the more reliable this should be.\r\n        // Let's skip the whole header and dash to the data !\r\n        reader.skip(22);\r\n        // in some zip created on windows, the filename stored in the central dir contains \\ instead of /.\r\n        // Strangely, the filename here is OK.\r\n        // I would love to treat these zip files as corrupted (see http://www.info-zip.org/FAQ.html#backslashes\r\n        // or APPNOTE#4.4.17.1, \"All slashes MUST be forward slashes '/'\") but there are a lot of bad zip generators...\r\n        // Search \"unzip mismatching \"local\" filename continuing with \"central\" filename version\" on\r\n        // the internet.\r\n        //\r\n        // I think I see the logic here : the central directory is used to display\r\n        // content and the local directory is used to extract the files. Mixing / and \\\r\n        // may be used to display \\ to windows users and use / when extracting the files.\r\n        // Unfortunately, this lead also to some issues : http://seclists.org/fulldisclosure/2009/Sep/394\r\n        this.fileNameLength = reader.readInt(2);\r\n        localExtraFieldsLength = reader.readInt(2); // can't be sure this will be the same as the central dir\r\n        // the fileName is stored as binary data, the handleUTF8 method will take care of the encoding.\r\n        this.fileName = reader.readData(this.fileNameLength);\r\n        reader.skip(localExtraFieldsLength);\r\n\r\n        if (this.compressedSize === -1 || this.uncompressedSize === -1) {\r\n            throw new Error(\"Bug or corrupted zip : didn't get enough informations from the central directory \" + \"(compressedSize === -1 || uncompressedSize === -1)\");\r\n        }\r\n\r\n        compression = findCompression(this.compressionMethod);\r\n        if (compression === null) { // no compression found\r\n            throw new Error(\"Corrupted zip : compression \" + utils.pretty(this.compressionMethod) + \" unknown (inner file : \" + utils.transformTo(\"string\", this.fileName) + \")\");\r\n        }\r\n        this.decompressed = new CompressedObject(this.compressedSize, this.uncompressedSize, this.crc32, compression, reader.readData(this.compressedSize));\r\n    },\r\n\r\n    /**\r\n     * Read the central part of a zip file and add the info in this object.\r\n     * @param {DataReader} reader the reader to use.\r\n     */\r\n    readCentralPart: function(reader) {\r\n        this.versionMadeBy = reader.readInt(2);\r\n        reader.skip(2);\r\n        // this.versionNeeded = reader.readInt(2);\r\n        this.bitFlag = reader.readInt(2);\r\n        this.compressionMethod = reader.readString(2);\r\n        this.date = reader.readDate();\r\n        this.crc32 = reader.readInt(4);\r\n        this.compressedSize = reader.readInt(4);\r\n        this.uncompressedSize = reader.readInt(4);\r\n        var fileNameLength = reader.readInt(2);\r\n        this.extraFieldsLength = reader.readInt(2);\r\n        this.fileCommentLength = reader.readInt(2);\r\n        this.diskNumberStart = reader.readInt(2);\r\n        this.internalFileAttributes = reader.readInt(2);\r\n        this.externalFileAttributes = reader.readInt(4);\r\n        this.localHeaderOffset = reader.readInt(4);\r\n\r\n        if (this.isEncrypted()) {\r\n            throw new Error(\"Encrypted zip are not supported\");\r\n        }\r\n\r\n        // will be read in the local part, see the comments there\r\n        reader.skip(fileNameLength);\r\n        this.readExtraFields(reader);\r\n        this.parseZIP64ExtraField(reader);\r\n        this.fileComment = reader.readData(this.fileCommentLength);\r\n    },\r\n\r\n    /**\r\n     * Parse the external file attributes and get the unix/dos permissions.\r\n     */\r\n    processAttributes: function () {\r\n        this.unixPermissions = null;\r\n        this.dosPermissions = null;\r\n        var madeBy = this.versionMadeBy >> 8;\r\n\r\n        // Check if we have the DOS directory flag set.\r\n        // We look for it in the DOS and UNIX permissions\r\n        // but some unknown platform could set it as a compatibility flag.\r\n        this.dir = this.externalFileAttributes & 0x0010 ? true : false;\r\n\r\n        if(madeBy === MADE_BY_DOS) {\r\n            // first 6 bits (0 to 5)\r\n            this.dosPermissions = this.externalFileAttributes & 0x3F;\r\n        }\r\n\r\n        if(madeBy === MADE_BY_UNIX) {\r\n            this.unixPermissions = (this.externalFileAttributes >> 16) & 0xFFFF;\r\n            // the octal permissions are in (this.unixPermissions & 0x01FF).toString(8);\r\n        }\r\n\r\n        // fail safe : if the name ends with a / it probably means a folder\r\n        if (!this.dir && this.fileNameStr.slice(-1) === '/') {\r\n            this.dir = true;\r\n        }\r\n    },\r\n\r\n    /**\r\n     * Parse the ZIP64 extra field and merge the info in the current ZipEntry.\r\n     * @param {DataReader} reader the reader to use.\r\n     */\r\n    parseZIP64ExtraField: function(reader) {\r\n\r\n        if (!this.extraFields[0x0001]) {\r\n            return;\r\n        }\r\n\r\n        // should be something, preparing the extra reader\r\n        var extraReader = readerFor(this.extraFields[0x0001].value);\r\n\r\n        // I really hope that these 64bits integer can fit in 32 bits integer, because js\r\n        // won't let us have more.\r\n        if (this.uncompressedSize === utils.MAX_VALUE_32BITS) {\r\n            this.uncompressedSize = extraReader.readInt(8);\r\n        }\r\n        if (this.compressedSize === utils.MAX_VALUE_32BITS) {\r\n            this.compressedSize = extraReader.readInt(8);\r\n        }\r\n        if (this.localHeaderOffset === utils.MAX_VALUE_32BITS) {\r\n            this.localHeaderOffset = extraReader.readInt(8);\r\n        }\r\n        if (this.diskNumberStart === utils.MAX_VALUE_32BITS) {\r\n            this.diskNumberStart = extraReader.readInt(4);\r\n        }\r\n    },\r\n    /**\r\n     * Read the central part of a zip file and add the info in this object.\r\n     * @param {DataReader} reader the reader to use.\r\n     */\r\n    readExtraFields: function(reader) {\r\n        var end = reader.index + this.extraFieldsLength,\r\n            extraFieldId,\r\n            extraFieldLength,\r\n            extraFieldValue;\r\n\r\n        if (!this.extraFields) {\r\n            this.extraFields = {};\r\n        }\r\n\r\n        while (reader.index < end) {\r\n            extraFieldId = reader.readInt(2);\r\n            extraFieldLength = reader.readInt(2);\r\n            extraFieldValue = reader.readData(extraFieldLength);\r\n\r\n            this.extraFields[extraFieldId] = {\r\n                id: extraFieldId,\r\n                length: extraFieldLength,\r\n                value: extraFieldValue\r\n            };\r\n        }\r\n    },\r\n    /**\r\n     * Apply an UTF8 transformation if needed.\r\n     */\r\n    handleUTF8: function() {\r\n        var decodeParamType = support.uint8array ? \"uint8array\" : \"array\";\r\n        if (this.useUTF8()) {\r\n            this.fileNameStr = utf8.utf8decode(this.fileName);\r\n            this.fileCommentStr = utf8.utf8decode(this.fileComment);\r\n        } else {\r\n            var upath = this.findExtraFieldUnicodePath();\r\n            if (upath !== null) {\r\n                this.fileNameStr = upath;\r\n            } else {\r\n                // ASCII text or unsupported code page\r\n                var fileNameByteArray =  utils.transformTo(decodeParamType, this.fileName);\r\n                this.fileNameStr = this.loadOptions.decodeFileName(fileNameByteArray);\r\n            }\r\n\r\n            var ucomment = this.findExtraFieldUnicodeComment();\r\n            if (ucomment !== null) {\r\n                this.fileCommentStr = ucomment;\r\n            } else {\r\n                // ASCII text or unsupported code page\r\n                var commentByteArray =  utils.transformTo(decodeParamType, this.fileComment);\r\n                this.fileCommentStr = this.loadOptions.decodeFileName(commentByteArray);\r\n            }\r\n        }\r\n    },\r\n\r\n    /**\r\n     * Find the unicode path declared in the extra field, if any.\r\n     * @return {String} the unicode path, null otherwise.\r\n     */\r\n    findExtraFieldUnicodePath: function() {\r\n        var upathField = this.extraFields[0x7075];\r\n        if (upathField) {\r\n            var extraReader = readerFor(upathField.value);\r\n\r\n            // wrong version\r\n            if (extraReader.readInt(1) !== 1) {\r\n                return null;\r\n            }\r\n\r\n            // the crc of the filename changed, this field is out of date.\r\n            if (crc32fn(this.fileName) !== extraReader.readInt(4)) {\r\n                return null;\r\n            }\r\n\r\n            return utf8.utf8decode(extraReader.readData(upathField.length - 5));\r\n        }\r\n        return null;\r\n    },\r\n\r\n    /**\r\n     * Find the unicode comment declared in the extra field, if any.\r\n     * @return {String} the unicode comment, null otherwise.\r\n     */\r\n    findExtraFieldUnicodeComment: function() {\r\n        var ucommentField = this.extraFields[0x6375];\r\n        if (ucommentField) {\r\n            var extraReader = readerFor(ucommentField.value);\r\n\r\n            // wrong version\r\n            if (extraReader.readInt(1) !== 1) {\r\n                return null;\r\n            }\r\n\r\n            // the crc of the comment changed, this field is out of date.\r\n            if (crc32fn(this.fileComment) !== extraReader.readInt(4)) {\r\n                return null;\r\n            }\r\n\r\n            return utf8.utf8decode(extraReader.readData(ucommentField.length - 5));\r\n        }\r\n        return null;\r\n    }\r\n};\r\nmodule.exports = ZipEntry;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/zipEntry.js\n// module id = 698\n// module chunks = 2","'use strict';\r\n\r\nvar StreamHelper = require('./stream/StreamHelper');\r\nvar DataWorker = require('./stream/DataWorker');\r\nvar utf8 = require('./utf8');\r\nvar CompressedObject = require('./compressedObject');\r\nvar GenericWorker = require('./stream/GenericWorker');\r\n\r\n/**\r\n * A simple object representing a file in the zip file.\r\n * @constructor\r\n * @param {string} name the name of the file\r\n * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data\r\n * @param {Object} options the options of the file\r\n */\r\nvar ZipObject = function(name, data, options) {\r\n    this.name = name;\r\n    this.dir = options.dir;\r\n    this.date = options.date;\r\n    this.comment = options.comment;\r\n    this.unixPermissions = options.unixPermissions;\r\n    this.dosPermissions = options.dosPermissions;\r\n\r\n    this._data = data;\r\n    this._dataBinary = options.binary;\r\n    // keep only the compression\r\n    this.options = {\r\n        compression : options.compression,\r\n        compressionOptions : options.compressionOptions\r\n    };\r\n};\r\n\r\nZipObject.prototype = {\r\n    /**\r\n     * Create an internal stream for the content of this object.\r\n     * @param {String} type the type of each chunk.\r\n     * @return StreamHelper the stream.\r\n     */\r\n    internalStream: function (type) {\r\n        var outputType = type.toLowerCase();\r\n        var askUnicodeString = outputType === \"string\" || outputType === \"text\";\r\n        if (outputType === \"binarystring\" || outputType === \"text\") {\r\n            outputType = \"string\";\r\n        }\r\n        var result = this._decompressWorker();\r\n\r\n        var isUnicodeString = !this._dataBinary;\r\n\r\n        if (isUnicodeString && !askUnicodeString) {\r\n            result = result.pipe(new utf8.Utf8EncodeWorker());\r\n        }\r\n        if (!isUnicodeString && askUnicodeString) {\r\n            result = result.pipe(new utf8.Utf8DecodeWorker());\r\n        }\r\n\r\n        return new StreamHelper(result, outputType, \"\");\r\n    },\r\n\r\n    /**\r\n     * Prepare the content in the asked type.\r\n     * @param {String} type the type of the result.\r\n     * @param {Function} onUpdate a function to call on each internal update.\r\n     * @return Promise the promise of the result.\r\n     */\r\n    async: function (type, onUpdate) {\r\n        return this.internalStream(type).accumulate(onUpdate);\r\n    },\r\n\r\n    /**\r\n     * Prepare the content as a nodejs stream.\r\n     * @param {String} type the type of each chunk.\r\n     * @param {Function} onUpdate a function to call on each internal update.\r\n     * @return Stream the stream.\r\n     */\r\n    nodeStream: function (type, onUpdate) {\r\n        return this.internalStream(type || \"nodebuffer\").toNodejsStream(onUpdate);\r\n    },\r\n\r\n    /**\r\n     * Return a worker for the compressed content.\r\n     * @private\r\n     * @param {Object} compression the compression object to use.\r\n     * @param {Object} compressionOptions the options to use when compressing.\r\n     * @return Worker the worker.\r\n     */\r\n    _compressWorker: function (compression, compressionOptions) {\r\n        if (\r\n            this._data instanceof CompressedObject &&\r\n            this._data.compression.magic === compression.magic\r\n        ) {\r\n            return this._data.getCompressedWorker();\r\n        } else {\r\n            var result = this._decompressWorker();\r\n            if(!this._dataBinary) {\r\n                result = result.pipe(new utf8.Utf8EncodeWorker());\r\n            }\r\n            return CompressedObject.createWorkerFrom(result, compression, compressionOptions);\r\n        }\r\n    },\r\n    /**\r\n     * Return a worker for the decompressed content.\r\n     * @private\r\n     * @return Worker the worker.\r\n     */\r\n    _decompressWorker : function () {\r\n        if (this._data instanceof CompressedObject) {\r\n            return this._data.getContentWorker();\r\n        } else if (this._data instanceof GenericWorker) {\r\n            return this._data;\r\n        } else {\r\n            return new DataWorker(this._data);\r\n        }\r\n    }\r\n};\r\n\r\nvar removedMethods = [\"asText\", \"asBinary\", \"asNodeBuffer\", \"asUint8Array\", \"asArrayBuffer\"];\r\nvar removedFn = function () {\r\n    throw new Error(\"This method has been removed in JSZip 3.0, please check the upgrade guide.\");\r\n};\r\n\r\nfor(var i = 0; i < removedMethods.length; i++) {\r\n    ZipObject.prototype[removedMethods[i]] = removedFn;\r\n}\r\nmodule.exports = ZipObject;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/jszip/lib/zipObject.js\n// module id = 699\n// module chunks = 2","'use strict';\r\nvar immediate = require('immediate');\r\n\r\n/* istanbul ignore next */\r\nfunction INTERNAL() {}\r\n\r\nvar handlers = {};\r\n\r\nvar REJECTED = ['REJECTED'];\r\nvar FULFILLED = ['FULFILLED'];\r\nvar PENDING = ['PENDING'];\r\n\r\nmodule.exports = Promise;\r\n\r\nfunction Promise(resolver) {\r\n  if (typeof resolver !== 'function') {\r\n    throw new TypeError('resolver must be a function');\r\n  }\r\n  this.state = PENDING;\r\n  this.queue = [];\r\n  this.outcome = void 0;\r\n  if (resolver !== INTERNAL) {\r\n    safelyResolveThenable(this, resolver);\r\n  }\r\n}\r\n\r\nPromise.prototype[\"catch\"] = function (onRejected) {\r\n  return this.then(null, onRejected);\r\n};\r\nPromise.prototype.then = function (onFulfilled, onRejected) {\r\n  if (typeof onFulfilled !== 'function' && this.state === FULFILLED ||\r\n    typeof onRejected !== 'function' && this.state === REJECTED) {\r\n    return this;\r\n  }\r\n  var promise = new this.constructor(INTERNAL);\r\n  if (this.state !== PENDING) {\r\n    var resolver = this.state === FULFILLED ? onFulfilled : onRejected;\r\n    unwrap(promise, resolver, this.outcome);\r\n  } else {\r\n    this.queue.push(new QueueItem(promise, onFulfilled, onRejected));\r\n  }\r\n\r\n  return promise;\r\n};\r\nfunction QueueItem(promise, onFulfilled, onRejected) {\r\n  this.promise = promise;\r\n  if (typeof onFulfilled === 'function') {\r\n    this.onFulfilled = onFulfilled;\r\n    this.callFulfilled = this.otherCallFulfilled;\r\n  }\r\n  if (typeof onRejected === 'function') {\r\n    this.onRejected = onRejected;\r\n    this.callRejected = this.otherCallRejected;\r\n  }\r\n}\r\nQueueItem.prototype.callFulfilled = function (value) {\r\n  handlers.resolve(this.promise, value);\r\n};\r\nQueueItem.prototype.otherCallFulfilled = function (value) {\r\n  unwrap(this.promise, this.onFulfilled, value);\r\n};\r\nQueueItem.prototype.callRejected = function (value) {\r\n  handlers.reject(this.promise, value);\r\n};\r\nQueueItem.prototype.otherCallRejected = function (value) {\r\n  unwrap(this.promise, this.onRejected, value);\r\n};\r\n\r\nfunction unwrap(promise, func, value) {\r\n  immediate(function () {\r\n    var returnValue;\r\n    try {\r\n      returnValue = func(value);\r\n    } catch (e) {\r\n      return handlers.reject(promise, e);\r\n    }\r\n    if (returnValue === promise) {\r\n      handlers.reject(promise, new TypeError('Cannot resolve promise with itself'));\r\n    } else {\r\n      handlers.resolve(promise, returnValue);\r\n    }\r\n  });\r\n}\r\n\r\nhandlers.resolve = function (self, value) {\r\n  var result = tryCatch(getThen, value);\r\n  if (result.status === 'error') {\r\n    return handlers.reject(self, result.value);\r\n  }\r\n  var thenable = result.value;\r\n\r\n  if (thenable) {\r\n    safelyResolveThenable(self, thenable);\r\n  } else {\r\n    self.state = FULFILLED;\r\n    self.outcome = value;\r\n    var i = -1;\r\n    var len = self.queue.length;\r\n    while (++i < len) {\r\n      self.queue[i].callFulfilled(value);\r\n    }\r\n  }\r\n  return self;\r\n};\r\nhandlers.reject = function (self, error) {\r\n  self.state = REJECTED;\r\n  self.outcome = error;\r\n  var i = -1;\r\n  var len = self.queue.length;\r\n  while (++i < len) {\r\n    self.queue[i].callRejected(error);\r\n  }\r\n  return self;\r\n};\r\n\r\nfunction getThen(obj) {\r\n  // Make sure we only access the accessor once as required by the spec\r\n  var then = obj && obj.then;\r\n  if (obj && (typeof obj === 'object' || typeof obj === 'function') && typeof then === 'function') {\r\n    return function appyThen() {\r\n      then.apply(obj, arguments);\r\n    };\r\n  }\r\n}\r\n\r\nfunction safelyResolveThenable(self, thenable) {\r\n  // Either fulfill, reject or reject with error\r\n  var called = false;\r\n  function onError(value) {\r\n    if (called) {\r\n      return;\r\n    }\r\n    called = true;\r\n    handlers.reject(self, value);\r\n  }\r\n\r\n  function onSuccess(value) {\r\n    if (called) {\r\n      return;\r\n    }\r\n    called = true;\r\n    handlers.resolve(self, value);\r\n  }\r\n\r\n  function tryToUnwrap() {\r\n    thenable(onSuccess, onError);\r\n  }\r\n\r\n  var result = tryCatch(tryToUnwrap);\r\n  if (result.status === 'error') {\r\n    onError(result.value);\r\n  }\r\n}\r\n\r\nfunction tryCatch(func, value) {\r\n  var out = {};\r\n  try {\r\n    out.value = func(value);\r\n    out.status = 'success';\r\n  } catch (e) {\r\n    out.status = 'error';\r\n    out.value = e;\r\n  }\r\n  return out;\r\n}\r\n\r\nPromise.resolve = resolve;\r\nfunction resolve(value) {\r\n  if (value instanceof this) {\r\n    return value;\r\n  }\r\n  return handlers.resolve(new this(INTERNAL), value);\r\n}\r\n\r\nPromise.reject = reject;\r\nfunction reject(reason) {\r\n  var promise = new this(INTERNAL);\r\n  return handlers.reject(promise, reason);\r\n}\r\n\r\nPromise.all = all;\r\nfunction all(iterable) {\r\n  var self = this;\r\n  if (Object.prototype.toString.call(iterable) !== '[object Array]') {\r\n    return this.reject(new TypeError('must be an array'));\r\n  }\r\n\r\n  var len = iterable.length;\r\n  var called = false;\r\n  if (!len) {\r\n    return this.resolve([]);\r\n  }\r\n\r\n  var values = new Array(len);\r\n  var resolved = 0;\r\n  var i = -1;\r\n  var promise = new this(INTERNAL);\r\n\r\n  while (++i < len) {\r\n    allResolver(iterable[i], i);\r\n  }\r\n  return promise;\r\n  function allResolver(value, i) {\r\n    self.resolve(value).then(resolveFromAll, function (error) {\r\n      if (!called) {\r\n        called = true;\r\n        handlers.reject(promise, error);\r\n      }\r\n    });\r\n    function resolveFromAll(outValue) {\r\n      values[i] = outValue;\r\n      if (++resolved === len && !called) {\r\n        called = true;\r\n        handlers.resolve(promise, values);\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nPromise.race = race;\r\nfunction race(iterable) {\r\n  var self = this;\r\n  if (Object.prototype.toString.call(iterable) !== '[object Array]') {\r\n    return this.reject(new TypeError('must be an array'));\r\n  }\r\n\r\n  var len = iterable.length;\r\n  var called = false;\r\n  if (!len) {\r\n    return this.resolve([]);\r\n  }\r\n\r\n  var i = -1;\r\n  var promise = new this(INTERNAL);\r\n\r\n  while (++i < len) {\r\n    resolver(iterable[i]);\r\n  }\r\n  return promise;\r\n  function resolver(value) {\r\n    self.resolve(value).then(function (response) {\r\n      if (!called) {\r\n        called = true;\r\n        handlers.resolve(promise, response);\r\n      }\r\n    }, function (error) {\r\n      if (!called) {\r\n        called = true;\r\n        handlers.reject(promise, error);\r\n      }\r\n    });\r\n  }\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/lie/lib/browser.js\n// module id = 700\n// module chunks = 2","var map = {\n\t\"./af\": 249,\n\t\"./af.js\": 249,\n\t\"./ar\": 254,\n\t\"./ar-ly\": 250,\n\t\"./ar-ly.js\": 250,\n\t\"./ar-ma\": 251,\n\t\"./ar-ma.js\": 251,\n\t\"./ar-sa\": 252,\n\t\"./ar-sa.js\": 252,\n\t\"./ar-tn\": 253,\n\t\"./ar-tn.js\": 253,\n\t\"./ar.js\": 254,\n\t\"./az\": 255,\n\t\"./az.js\": 255,\n\t\"./be\": 256,\n\t\"./be.js\": 256,\n\t\"./bg\": 257,\n\t\"./bg.js\": 257,\n\t\"./bn\": 258,\n\t\"./bn.js\": 258,\n\t\"./bo\": 259,\n\t\"./bo.js\": 259,\n\t\"./br\": 260,\n\t\"./br.js\": 260,\n\t\"./bs\": 261,\n\t\"./bs.js\": 261,\n\t\"./ca\": 262,\n\t\"./ca.js\": 262,\n\t\"./cs\": 263,\n\t\"./cs.js\": 263,\n\t\"./cv\": 264,\n\t\"./cv.js\": 264,\n\t\"./cy\": 265,\n\t\"./cy.js\": 265,\n\t\"./da\": 266,\n\t\"./da.js\": 266,\n\t\"./de\": 268,\n\t\"./de-at\": 267,\n\t\"./de-at.js\": 267,\n\t\"./de.js\": 268,\n\t\"./dv\": 269,\n\t\"./dv.js\": 269,\n\t\"./el\": 270,\n\t\"./el.js\": 270,\n\t\"./en-au\": 271,\n\t\"./en-au.js\": 271,\n\t\"./en-ca\": 272,\n\t\"./en-ca.js\": 272,\n\t\"./en-gb\": 273,\n\t\"./en-gb.js\": 273,\n\t\"./en-ie\": 274,\n\t\"./en-ie.js\": 274,\n\t\"./en-nz\": 275,\n\t\"./en-nz.js\": 275,\n\t\"./eo\": 276,\n\t\"./eo.js\": 276,\n\t\"./es\": 278,\n\t\"./es-do\": 277,\n\t\"./es-do.js\": 277,\n\t\"./es.js\": 278,\n\t\"./et\": 279,\n\t\"./et.js\": 279,\n\t\"./eu\": 280,\n\t\"./eu.js\": 280,\n\t\"./fa\": 281,\n\t\"./fa.js\": 281,\n\t\"./fi\": 282,\n\t\"./fi.js\": 282,\n\t\"./fo\": 283,\n\t\"./fo.js\": 283,\n\t\"./fr\": 286,\n\t\"./fr-ca\": 284,\n\t\"./fr-ca.js\": 284,\n\t\"./fr-ch\": 285,\n\t\"./fr-ch.js\": 285,\n\t\"./fr.js\": 286,\n\t\"./fy\": 287,\n\t\"./fy.js\": 287,\n\t\"./gd\": 288,\n\t\"./gd.js\": 288,\n\t\"./gl\": 289,\n\t\"./gl.js\": 289,\n\t\"./he\": 290,\n\t\"./he.js\": 290,\n\t\"./hi\": 291,\n\t\"./hi.js\": 291,\n\t\"./hr\": 292,\n\t\"./hr.js\": 292,\n\t\"./hu\": 293,\n\t\"./hu.js\": 293,\n\t\"./hy-am\": 294,\n\t\"./hy-am.js\": 294,\n\t\"./id\": 295,\n\t\"./id.js\": 295,\n\t\"./is\": 296,\n\t\"./is.js\": 296,\n\t\"./it\": 297,\n\t\"./it.js\": 297,\n\t\"./ja\": 298,\n\t\"./ja.js\": 298,\n\t\"./jv\": 299,\n\t\"./jv.js\": 299,\n\t\"./ka\": 300,\n\t\"./ka.js\": 300,\n\t\"./kk\": 301,\n\t\"./kk.js\": 301,\n\t\"./km\": 302,\n\t\"./km.js\": 302,\n\t\"./ko\": 303,\n\t\"./ko.js\": 303,\n\t\"./ky\": 304,\n\t\"./ky.js\": 304,\n\t\"./lb\": 305,\n\t\"./lb.js\": 305,\n\t\"./lo\": 306,\n\t\"./lo.js\": 306,\n\t\"./lt\": 307,\n\t\"./lt.js\": 307,\n\t\"./lv\": 308,\n\t\"./lv.js\": 308,\n\t\"./me\": 309,\n\t\"./me.js\": 309,\n\t\"./mi\": 310,\n\t\"./mi.js\": 310,\n\t\"./mk\": 311,\n\t\"./mk.js\": 311,\n\t\"./ml\": 312,\n\t\"./ml.js\": 312,\n\t\"./mr\": 313,\n\t\"./mr.js\": 313,\n\t\"./ms\": 315,\n\t\"./ms-my\": 314,\n\t\"./ms-my.js\": 314,\n\t\"./ms.js\": 315,\n\t\"./my\": 316,\n\t\"./my.js\": 316,\n\t\"./nb\": 317,\n\t\"./nb.js\": 317,\n\t\"./ne\": 318,\n\t\"./ne.js\": 318,\n\t\"./nl\": 319,\n\t\"./nl.js\": 319,\n\t\"./nn\": 320,\n\t\"./nn.js\": 320,\n\t\"./pa-in\": 321,\n\t\"./pa-in.js\": 321,\n\t\"./pl\": 322,\n\t\"./pl.js\": 322,\n\t\"./pt\": 324,\n\t\"./pt-br\": 323,\n\t\"./pt-br.js\": 323,\n\t\"./pt.js\": 324,\n\t\"./ro\": 325,\n\t\"./ro.js\": 325,\n\t\"./ru\": 326,\n\t\"./ru.js\": 326,\n\t\"./se\": 327,\n\t\"./se.js\": 327,\n\t\"./si\": 328,\n\t\"./si.js\": 328,\n\t\"./sk\": 329,\n\t\"./sk.js\": 329,\n\t\"./sl\": 330,\n\t\"./sl.js\": 330,\n\t\"./sq\": 331,\n\t\"./sq.js\": 331,\n\t\"./sr\": 333,\n\t\"./sr-cyrl\": 332,\n\t\"./sr-cyrl.js\": 332,\n\t\"./sr.js\": 333,\n\t\"./ss\": 334,\n\t\"./ss.js\": 334,\n\t\"./sv\": 335,\n\t\"./sv.js\": 335,\n\t\"./sw\": 336,\n\t\"./sw.js\": 336,\n\t\"./ta\": 337,\n\t\"./ta.js\": 337,\n\t\"./te\": 338,\n\t\"./te.js\": 338,\n\t\"./th\": 339,\n\t\"./th.js\": 339,\n\t\"./tl-ph\": 340,\n\t\"./tl-ph.js\": 340,\n\t\"./tlh\": 341,\n\t\"./tlh.js\": 341,\n\t\"./tr\": 342,\n\t\"./tr.js\": 342,\n\t\"./tzl\": 343,\n\t\"./tzl.js\": 343,\n\t\"./tzm\": 345,\n\t\"./tzm-latn\": 344,\n\t\"./tzm-latn.js\": 344,\n\t\"./tzm.js\": 345,\n\t\"./uk\": 346,\n\t\"./uk.js\": 346,\n\t\"./uz\": 347,\n\t\"./uz.js\": 347,\n\t\"./vi\": 348,\n\t\"./vi.js\": 348,\n\t\"./x-pseudo\": 349,\n\t\"./x-pseudo.js\": 349,\n\t\"./zh-cn\": 350,\n\t\"./zh-cn.js\": 350,\n\t\"./zh-hk\": 351,\n\t\"./zh-hk.js\": 351,\n\t\"./zh-tw\": 352,\n\t\"./zh-tw.js\": 352\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 701;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/moment/locale ^\\.\\/.*$\n// module id = 701\n// module chunks = 2","// Top level file is just a mixin of submodules & constants\r\n'use strict';\r\n\r\nvar assign    = require('./lib/utils/common').assign;\r\n\r\nvar deflate   = require('./lib/deflate');\r\nvar inflate   = require('./lib/inflate');\r\nvar constants = require('./lib/zlib/constants');\r\n\r\nvar pako = {};\r\n\r\nassign(pako, deflate, inflate, constants);\r\n\r\nmodule.exports = pako;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/index.js\n// module id = 722\n// module chunks = 2","'use strict';\r\n\r\n\r\nvar zlib_deflate = require('./zlib/deflate');\r\nvar utils        = require('./utils/common');\r\nvar strings      = require('./utils/strings');\r\nvar msg          = require('./zlib/messages');\r\nvar ZStream      = require('./zlib/zstream');\r\n\r\nvar toString = Object.prototype.toString;\r\n\r\n/* Public constants ==========================================================*/\r\n/* ===========================================================================*/\r\n\r\nvar Z_NO_FLUSH      = 0;\r\nvar Z_FINISH        = 4;\r\n\r\nvar Z_OK            = 0;\r\nvar Z_STREAM_END    = 1;\r\nvar Z_SYNC_FLUSH    = 2;\r\n\r\nvar Z_DEFAULT_COMPRESSION = -1;\r\n\r\nvar Z_DEFAULT_STRATEGY    = 0;\r\n\r\nvar Z_DEFLATED  = 8;\r\n\r\n/* ===========================================================================*/\r\n\r\n\r\n/**\r\n * class Deflate\r\n *\r\n * Generic JS-style wrapper for zlib calls. If you don't need\r\n * streaming behaviour - use more simple functions: [[deflate]],\r\n * [[deflateRaw]] and [[gzip]].\r\n **/\r\n\r\n/* internal\r\n * Deflate.chunks -> Array\r\n *\r\n * Chunks of output data, if [[Deflate#onData]] not overriden.\r\n **/\r\n\r\n/**\r\n * Deflate.result -> Uint8Array|Array\r\n *\r\n * Compressed result, generated by default [[Deflate#onData]]\r\n * and [[Deflate#onEnd]] handlers. Filled after you push last chunk\r\n * (call [[Deflate#push]] with `Z_FINISH` / `true` param)  or if you\r\n * push a chunk with explicit flush (call [[Deflate#push]] with\r\n * `Z_SYNC_FLUSH` param).\r\n **/\r\n\r\n/**\r\n * Deflate.err -> Number\r\n *\r\n * Error code after deflate finished. 0 (Z_OK) on success.\r\n * You will not need it in real life, because deflate errors\r\n * are possible only on wrong options or bad `onData` / `onEnd`\r\n * custom handlers.\r\n **/\r\n\r\n/**\r\n * Deflate.msg -> String\r\n *\r\n * Error message, if [[Deflate.err]] != 0\r\n **/\r\n\r\n\r\n/**\r\n * new Deflate(options)\r\n * - options (Object): zlib deflate options.\r\n *\r\n * Creates new deflator instance with specified params. Throws exception\r\n * on bad params. Supported options:\r\n *\r\n * - `level`\r\n * - `windowBits`\r\n * - `memLevel`\r\n * - `strategy`\r\n * - `dictionary`\r\n *\r\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\r\n * for more information on these.\r\n *\r\n * Additional options, for internal needs:\r\n *\r\n * - `chunkSize` - size of generated data chunks (16K by default)\r\n * - `raw` (Boolean) - do raw deflate\r\n * - `gzip` (Boolean) - create gzip wrapper\r\n * - `to` (String) - if equal to 'string', then result will be \"binary string\"\r\n *    (each char code [0..255])\r\n * - `header` (Object) - custom header for gzip\r\n *   - `text` (Boolean) - true if compressed data believed to be text\r\n *   - `time` (Number) - modification time, unix timestamp\r\n *   - `os` (Number) - operation system code\r\n *   - `extra` (Array) - array of bytes with extra data (max 65536)\r\n *   - `name` (String) - file name (binary string)\r\n *   - `comment` (String) - comment (binary string)\r\n *   - `hcrc` (Boolean) - true if header crc should be added\r\n *\r\n * ##### Example:\r\n *\r\n * ```javascript\r\n * var pako = require('pako')\r\n *   , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\r\n *   , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\r\n *\r\n * var deflate = new pako.Deflate({ level: 3});\r\n *\r\n * deflate.push(chunk1, false);\r\n * deflate.push(chunk2, true);  // true -> last chunk\r\n *\r\n * if (deflate.err) { throw new Error(deflate.err); }\r\n *\r\n * console.log(deflate.result);\r\n * ```\r\n **/\r\nfunction Deflate(options) {\r\n  if (!(this instanceof Deflate)) return new Deflate(options);\r\n\r\n  this.options = utils.assign({\r\n    level: Z_DEFAULT_COMPRESSION,\r\n    method: Z_DEFLATED,\r\n    chunkSize: 16384,\r\n    windowBits: 15,\r\n    memLevel: 8,\r\n    strategy: Z_DEFAULT_STRATEGY,\r\n    to: ''\r\n  }, options || {});\r\n\r\n  var opt = this.options;\r\n\r\n  if (opt.raw && (opt.windowBits > 0)) {\r\n    opt.windowBits = -opt.windowBits;\r\n  }\r\n\r\n  else if (opt.gzip && (opt.windowBits > 0) && (opt.windowBits < 16)) {\r\n    opt.windowBits += 16;\r\n  }\r\n\r\n  this.err    = 0;      // error code, if happens (0 = Z_OK)\r\n  this.msg    = '';     // error message\r\n  this.ended  = false;  // used to avoid multiple onEnd() calls\r\n  this.chunks = [];     // chunks of compressed data\r\n\r\n  this.strm = new ZStream();\r\n  this.strm.avail_out = 0;\r\n\r\n  var status = zlib_deflate.deflateInit2(\r\n    this.strm,\r\n    opt.level,\r\n    opt.method,\r\n    opt.windowBits,\r\n    opt.memLevel,\r\n    opt.strategy\r\n  );\r\n\r\n  if (status !== Z_OK) {\r\n    throw new Error(msg[status]);\r\n  }\r\n\r\n  if (opt.header) {\r\n    zlib_deflate.deflateSetHeader(this.strm, opt.header);\r\n  }\r\n\r\n  if (opt.dictionary) {\r\n    var dict;\r\n    // Convert data if needed\r\n    if (typeof opt.dictionary === 'string') {\r\n      // If we need to compress text, change encoding to utf8.\r\n      dict = strings.string2buf(opt.dictionary);\r\n    } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {\r\n      dict = new Uint8Array(opt.dictionary);\r\n    } else {\r\n      dict = opt.dictionary;\r\n    }\r\n\r\n    status = zlib_deflate.deflateSetDictionary(this.strm, dict);\r\n\r\n    if (status !== Z_OK) {\r\n      throw new Error(msg[status]);\r\n    }\r\n\r\n    this._dict_set = true;\r\n  }\r\n}\r\n\r\n/**\r\n * Deflate#push(data[, mode]) -> Boolean\r\n * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be\r\n *   converted to utf8 byte sequence.\r\n * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\r\n *   See constants. Skipped or `false` means Z_NO_FLUSH, `true` meansh Z_FINISH.\r\n *\r\n * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with\r\n * new compressed chunks. Returns `true` on success. The last data block must have\r\n * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\r\n * [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you\r\n * can use mode Z_SYNC_FLUSH, keeping the compression context.\r\n *\r\n * On fail call [[Deflate#onEnd]] with error code and return false.\r\n *\r\n * We strongly recommend to use `Uint8Array` on input for best speed (output\r\n * array format is detected automatically). Also, don't skip last param and always\r\n * use the same type in your code (boolean or number). That will improve JS speed.\r\n *\r\n * For regular `Array`-s make sure all elements are [0..255].\r\n *\r\n * ##### Example\r\n *\r\n * ```javascript\r\n * push(chunk, false); // push one of data chunks\r\n * ...\r\n * push(chunk, true);  // push last chunk\r\n * ```\r\n **/\r\nDeflate.prototype.push = function (data, mode) {\r\n  var strm = this.strm;\r\n  var chunkSize = this.options.chunkSize;\r\n  var status, _mode;\r\n\r\n  if (this.ended) { return false; }\r\n\r\n  _mode = (mode === ~~mode) ? mode : ((mode === true) ? Z_FINISH : Z_NO_FLUSH);\r\n\r\n  // Convert data if needed\r\n  if (typeof data === 'string') {\r\n    // If we need to compress text, change encoding to utf8.\r\n    strm.input = strings.string2buf(data);\r\n  } else if (toString.call(data) === '[object ArrayBuffer]') {\r\n    strm.input = new Uint8Array(data);\r\n  } else {\r\n    strm.input = data;\r\n  }\r\n\r\n  strm.next_in = 0;\r\n  strm.avail_in = strm.input.length;\r\n\r\n  do {\r\n    if (strm.avail_out === 0) {\r\n      strm.output = new utils.Buf8(chunkSize);\r\n      strm.next_out = 0;\r\n      strm.avail_out = chunkSize;\r\n    }\r\n    status = zlib_deflate.deflate(strm, _mode);    /* no bad return value */\r\n\r\n    if (status !== Z_STREAM_END && status !== Z_OK) {\r\n      this.onEnd(status);\r\n      this.ended = true;\r\n      return false;\r\n    }\r\n    if (strm.avail_out === 0 || (strm.avail_in === 0 && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH))) {\r\n      if (this.options.to === 'string') {\r\n        this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));\r\n      } else {\r\n        this.onData(utils.shrinkBuf(strm.output, strm.next_out));\r\n      }\r\n    }\r\n  } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== Z_STREAM_END);\r\n\r\n  // Finalize on the last chunk.\r\n  if (_mode === Z_FINISH) {\r\n    status = zlib_deflate.deflateEnd(this.strm);\r\n    this.onEnd(status);\r\n    this.ended = true;\r\n    return status === Z_OK;\r\n  }\r\n\r\n  // callback interim results if Z_SYNC_FLUSH.\r\n  if (_mode === Z_SYNC_FLUSH) {\r\n    this.onEnd(Z_OK);\r\n    strm.avail_out = 0;\r\n    return true;\r\n  }\r\n\r\n  return true;\r\n};\r\n\r\n\r\n/**\r\n * Deflate#onData(chunk) -> Void\r\n * - chunk (Uint8Array|Array|String): ouput data. Type of array depends\r\n *   on js engine support. When string output requested, each chunk\r\n *   will be string.\r\n *\r\n * By default, stores data blocks in `chunks[]` property and glue\r\n * those in `onEnd`. Override this handler, if you need another behaviour.\r\n **/\r\nDeflate.prototype.onData = function (chunk) {\r\n  this.chunks.push(chunk);\r\n};\r\n\r\n\r\n/**\r\n * Deflate#onEnd(status) -> Void\r\n * - status (Number): deflate status. 0 (Z_OK) on success,\r\n *   other if not.\r\n *\r\n * Called once after you tell deflate that the input stream is\r\n * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\r\n * or if an error happened. By default - join collected chunks,\r\n * free memory and fill `results` / `err` properties.\r\n **/\r\nDeflate.prototype.onEnd = function (status) {\r\n  // On success - join\r\n  if (status === Z_OK) {\r\n    if (this.options.to === 'string') {\r\n      this.result = this.chunks.join('');\r\n    } else {\r\n      this.result = utils.flattenChunks(this.chunks);\r\n    }\r\n  }\r\n  this.chunks = [];\r\n  this.err = status;\r\n  this.msg = this.strm.msg;\r\n};\r\n\r\n\r\n/**\r\n * deflate(data[, options]) -> Uint8Array|Array|String\r\n * - data (Uint8Array|Array|String): input data to compress.\r\n * - options (Object): zlib deflate options.\r\n *\r\n * Compress `data` with deflate algorithm and `options`.\r\n *\r\n * Supported options are:\r\n *\r\n * - level\r\n * - windowBits\r\n * - memLevel\r\n * - strategy\r\n * - dictionary\r\n *\r\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\r\n * for more information on these.\r\n *\r\n * Sugar (options):\r\n *\r\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\r\n *   negative windowBits implicitly.\r\n * - `to` (String) - if equal to 'string', then result will be \"binary string\"\r\n *    (each char code [0..255])\r\n *\r\n * ##### Example:\r\n *\r\n * ```javascript\r\n * var pako = require('pako')\r\n *   , data = Uint8Array([1,2,3,4,5,6,7,8,9]);\r\n *\r\n * console.log(pako.deflate(data));\r\n * ```\r\n **/\r\nfunction deflate(input, options) {\r\n  var deflator = new Deflate(options);\r\n\r\n  deflator.push(input, true);\r\n\r\n  // That will never happens, if you don't cheat with options :)\r\n  if (deflator.err) { throw deflator.msg; }\r\n\r\n  return deflator.result;\r\n}\r\n\r\n\r\n/**\r\n * deflateRaw(data[, options]) -> Uint8Array|Array|String\r\n * - data (Uint8Array|Array|String): input data to compress.\r\n * - options (Object): zlib deflate options.\r\n *\r\n * The same as [[deflate]], but creates raw data, without wrapper\r\n * (header and adler32 crc).\r\n **/\r\nfunction deflateRaw(input, options) {\r\n  options = options || {};\r\n  options.raw = true;\r\n  return deflate(input, options);\r\n}\r\n\r\n\r\n/**\r\n * gzip(data[, options]) -> Uint8Array|Array|String\r\n * - data (Uint8Array|Array|String): input data to compress.\r\n * - options (Object): zlib deflate options.\r\n *\r\n * The same as [[deflate]], but create gzip wrapper instead of\r\n * deflate one.\r\n **/\r\nfunction gzip(input, options) {\r\n  options = options || {};\r\n  options.gzip = true;\r\n  return deflate(input, options);\r\n}\r\n\r\n\r\nexports.Deflate = Deflate;\r\nexports.deflate = deflate;\r\nexports.deflateRaw = deflateRaw;\r\nexports.gzip = gzip;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/deflate.js\n// module id = 723\n// module chunks = 2","'use strict';\r\n\r\n\r\nvar zlib_inflate = require('./zlib/inflate');\r\nvar utils        = require('./utils/common');\r\nvar strings      = require('./utils/strings');\r\nvar c            = require('./zlib/constants');\r\nvar msg          = require('./zlib/messages');\r\nvar ZStream      = require('./zlib/zstream');\r\nvar GZheader     = require('./zlib/gzheader');\r\n\r\nvar toString = Object.prototype.toString;\r\n\r\n/**\r\n * class Inflate\r\n *\r\n * Generic JS-style wrapper for zlib calls. If you don't need\r\n * streaming behaviour - use more simple functions: [[inflate]]\r\n * and [[inflateRaw]].\r\n **/\r\n\r\n/* internal\r\n * inflate.chunks -> Array\r\n *\r\n * Chunks of output data, if [[Inflate#onData]] not overriden.\r\n **/\r\n\r\n/**\r\n * Inflate.result -> Uint8Array|Array|String\r\n *\r\n * Uncompressed result, generated by default [[Inflate#onData]]\r\n * and [[Inflate#onEnd]] handlers. Filled after you push last chunk\r\n * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you\r\n * push a chunk with explicit flush (call [[Inflate#push]] with\r\n * `Z_SYNC_FLUSH` param).\r\n **/\r\n\r\n/**\r\n * Inflate.err -> Number\r\n *\r\n * Error code after inflate finished. 0 (Z_OK) on success.\r\n * Should be checked if broken data possible.\r\n **/\r\n\r\n/**\r\n * Inflate.msg -> String\r\n *\r\n * Error message, if [[Inflate.err]] != 0\r\n **/\r\n\r\n\r\n/**\r\n * new Inflate(options)\r\n * - options (Object): zlib inflate options.\r\n *\r\n * Creates new inflator instance with specified params. Throws exception\r\n * on bad params. Supported options:\r\n *\r\n * - `windowBits`\r\n * - `dictionary`\r\n *\r\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\r\n * for more information on these.\r\n *\r\n * Additional options, for internal needs:\r\n *\r\n * - `chunkSize` - size of generated data chunks (16K by default)\r\n * - `raw` (Boolean) - do raw inflate\r\n * - `to` (String) - if equal to 'string', then result will be converted\r\n *   from utf8 to utf16 (javascript) string. When string output requested,\r\n *   chunk length can differ from `chunkSize`, depending on content.\r\n *\r\n * By default, when no options set, autodetect deflate/gzip data format via\r\n * wrapper header.\r\n *\r\n * ##### Example:\r\n *\r\n * ```javascript\r\n * var pako = require('pako')\r\n *   , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\r\n *   , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\r\n *\r\n * var inflate = new pako.Inflate({ level: 3});\r\n *\r\n * inflate.push(chunk1, false);\r\n * inflate.push(chunk2, true);  // true -> last chunk\r\n *\r\n * if (inflate.err) { throw new Error(inflate.err); }\r\n *\r\n * console.log(inflate.result);\r\n * ```\r\n **/\r\nfunction Inflate(options) {\r\n  if (!(this instanceof Inflate)) return new Inflate(options);\r\n\r\n  this.options = utils.assign({\r\n    chunkSize: 16384,\r\n    windowBits: 0,\r\n    to: ''\r\n  }, options || {});\r\n\r\n  var opt = this.options;\r\n\r\n  // Force window size for `raw` data, if not set directly,\r\n  // because we have no header for autodetect.\r\n  if (opt.raw && (opt.windowBits >= 0) && (opt.windowBits < 16)) {\r\n    opt.windowBits = -opt.windowBits;\r\n    if (opt.windowBits === 0) { opt.windowBits = -15; }\r\n  }\r\n\r\n  // If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate\r\n  if ((opt.windowBits >= 0) && (opt.windowBits < 16) &&\r\n      !(options && options.windowBits)) {\r\n    opt.windowBits += 32;\r\n  }\r\n\r\n  // Gzip header has no info about windows size, we can do autodetect only\r\n  // for deflate. So, if window size not set, force it to max when gzip possible\r\n  if ((opt.windowBits > 15) && (opt.windowBits < 48)) {\r\n    // bit 3 (16) -> gzipped data\r\n    // bit 4 (32) -> autodetect gzip/deflate\r\n    if ((opt.windowBits & 15) === 0) {\r\n      opt.windowBits |= 15;\r\n    }\r\n  }\r\n\r\n  this.err    = 0;      // error code, if happens (0 = Z_OK)\r\n  this.msg    = '';     // error message\r\n  this.ended  = false;  // used to avoid multiple onEnd() calls\r\n  this.chunks = [];     // chunks of compressed data\r\n\r\n  this.strm   = new ZStream();\r\n  this.strm.avail_out = 0;\r\n\r\n  var status  = zlib_inflate.inflateInit2(\r\n    this.strm,\r\n    opt.windowBits\r\n  );\r\n\r\n  if (status !== c.Z_OK) {\r\n    throw new Error(msg[status]);\r\n  }\r\n\r\n  this.header = new GZheader();\r\n\r\n  zlib_inflate.inflateGetHeader(this.strm, this.header);\r\n}\r\n\r\n/**\r\n * Inflate#push(data[, mode]) -> Boolean\r\n * - data (Uint8Array|Array|ArrayBuffer|String): input data\r\n * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\r\n *   See constants. Skipped or `false` means Z_NO_FLUSH, `true` meansh Z_FINISH.\r\n *\r\n * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with\r\n * new output chunks. Returns `true` on success. The last data block must have\r\n * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\r\n * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you\r\n * can use mode Z_SYNC_FLUSH, keeping the decompression context.\r\n *\r\n * On fail call [[Inflate#onEnd]] with error code and return false.\r\n *\r\n * We strongly recommend to use `Uint8Array` on input for best speed (output\r\n * format is detected automatically). Also, don't skip last param and always\r\n * use the same type in your code (boolean or number). That will improve JS speed.\r\n *\r\n * For regular `Array`-s make sure all elements are [0..255].\r\n *\r\n * ##### Example\r\n *\r\n * ```javascript\r\n * push(chunk, false); // push one of data chunks\r\n * ...\r\n * push(chunk, true);  // push last chunk\r\n * ```\r\n **/\r\nInflate.prototype.push = function (data, mode) {\r\n  var strm = this.strm;\r\n  var chunkSize = this.options.chunkSize;\r\n  var dictionary = this.options.dictionary;\r\n  var status, _mode;\r\n  var next_out_utf8, tail, utf8str;\r\n  var dict;\r\n\r\n  // Flag to properly process Z_BUF_ERROR on testing inflate call\r\n  // when we check that all output data was flushed.\r\n  var allowBufError = false;\r\n\r\n  if (this.ended) { return false; }\r\n  _mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);\r\n\r\n  // Convert data if needed\r\n  if (typeof data === 'string') {\r\n    // Only binary strings can be decompressed on practice\r\n    strm.input = strings.binstring2buf(data);\r\n  } else if (toString.call(data) === '[object ArrayBuffer]') {\r\n    strm.input = new Uint8Array(data);\r\n  } else {\r\n    strm.input = data;\r\n  }\r\n\r\n  strm.next_in = 0;\r\n  strm.avail_in = strm.input.length;\r\n\r\n  do {\r\n    if (strm.avail_out === 0) {\r\n      strm.output = new utils.Buf8(chunkSize);\r\n      strm.next_out = 0;\r\n      strm.avail_out = chunkSize;\r\n    }\r\n\r\n    status = zlib_inflate.inflate(strm, c.Z_NO_FLUSH);    /* no bad return value */\r\n\r\n    if (status === c.Z_NEED_DICT && dictionary) {\r\n      // Convert data if needed\r\n      if (typeof dictionary === 'string') {\r\n        dict = strings.string2buf(dictionary);\r\n      } else if (toString.call(dictionary) === '[object ArrayBuffer]') {\r\n        dict = new Uint8Array(dictionary);\r\n      } else {\r\n        dict = dictionary;\r\n      }\r\n\r\n      status = zlib_inflate.inflateSetDictionary(this.strm, dict);\r\n\r\n    }\r\n\r\n    if (status === c.Z_BUF_ERROR && allowBufError === true) {\r\n      status = c.Z_OK;\r\n      allowBufError = false;\r\n    }\r\n\r\n    if (status !== c.Z_STREAM_END && status !== c.Z_OK) {\r\n      this.onEnd(status);\r\n      this.ended = true;\r\n      return false;\r\n    }\r\n\r\n    if (strm.next_out) {\r\n      if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH))) {\r\n\r\n        if (this.options.to === 'string') {\r\n\r\n          next_out_utf8 = strings.utf8border(strm.output, strm.next_out);\r\n\r\n          tail = strm.next_out - next_out_utf8;\r\n          utf8str = strings.buf2string(strm.output, next_out_utf8);\r\n\r\n          // move tail\r\n          strm.next_out = tail;\r\n          strm.avail_out = chunkSize - tail;\r\n          if (tail) { utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); }\r\n\r\n          this.onData(utf8str);\r\n\r\n        } else {\r\n          this.onData(utils.shrinkBuf(strm.output, strm.next_out));\r\n        }\r\n      }\r\n    }\r\n\r\n    // When no more input data, we should check that internal inflate buffers\r\n    // are flushed. The only way to do it when avail_out = 0 - run one more\r\n    // inflate pass. But if output data not exists, inflate return Z_BUF_ERROR.\r\n    // Here we set flag to process this error properly.\r\n    //\r\n    // NOTE. Deflate does not return error in this case and does not needs such\r\n    // logic.\r\n    if (strm.avail_in === 0 && strm.avail_out === 0) {\r\n      allowBufError = true;\r\n    }\r\n\r\n  } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== c.Z_STREAM_END);\r\n\r\n  if (status === c.Z_STREAM_END) {\r\n    _mode = c.Z_FINISH;\r\n  }\r\n\r\n  // Finalize on the last chunk.\r\n  if (_mode === c.Z_FINISH) {\r\n    status = zlib_inflate.inflateEnd(this.strm);\r\n    this.onEnd(status);\r\n    this.ended = true;\r\n    return status === c.Z_OK;\r\n  }\r\n\r\n  // callback interim results if Z_SYNC_FLUSH.\r\n  if (_mode === c.Z_SYNC_FLUSH) {\r\n    this.onEnd(c.Z_OK);\r\n    strm.avail_out = 0;\r\n    return true;\r\n  }\r\n\r\n  return true;\r\n};\r\n\r\n\r\n/**\r\n * Inflate#onData(chunk) -> Void\r\n * - chunk (Uint8Array|Array|String): ouput data. Type of array depends\r\n *   on js engine support. When string output requested, each chunk\r\n *   will be string.\r\n *\r\n * By default, stores data blocks in `chunks[]` property and glue\r\n * those in `onEnd`. Override this handler, if you need another behaviour.\r\n **/\r\nInflate.prototype.onData = function (chunk) {\r\n  this.chunks.push(chunk);\r\n};\r\n\r\n\r\n/**\r\n * Inflate#onEnd(status) -> Void\r\n * - status (Number): inflate status. 0 (Z_OK) on success,\r\n *   other if not.\r\n *\r\n * Called either after you tell inflate that the input stream is\r\n * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\r\n * or if an error happened. By default - join collected chunks,\r\n * free memory and fill `results` / `err` properties.\r\n **/\r\nInflate.prototype.onEnd = function (status) {\r\n  // On success - join\r\n  if (status === c.Z_OK) {\r\n    if (this.options.to === 'string') {\r\n      // Glue & convert here, until we teach pako to send\r\n      // utf8 alligned strings to onData\r\n      this.result = this.chunks.join('');\r\n    } else {\r\n      this.result = utils.flattenChunks(this.chunks);\r\n    }\r\n  }\r\n  this.chunks = [];\r\n  this.err = status;\r\n  this.msg = this.strm.msg;\r\n};\r\n\r\n\r\n/**\r\n * inflate(data[, options]) -> Uint8Array|Array|String\r\n * - data (Uint8Array|Array|String): input data to decompress.\r\n * - options (Object): zlib inflate options.\r\n *\r\n * Decompress `data` with inflate/ungzip and `options`. Autodetect\r\n * format via wrapper header by default. That's why we don't provide\r\n * separate `ungzip` method.\r\n *\r\n * Supported options are:\r\n *\r\n * - windowBits\r\n *\r\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\r\n * for more information.\r\n *\r\n * Sugar (options):\r\n *\r\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\r\n *   negative windowBits implicitly.\r\n * - `to` (String) - if equal to 'string', then result will be converted\r\n *   from utf8 to utf16 (javascript) string. When string output requested,\r\n *   chunk length can differ from `chunkSize`, depending on content.\r\n *\r\n *\r\n * ##### Example:\r\n *\r\n * ```javascript\r\n * var pako = require('pako')\r\n *   , input = pako.deflate([1,2,3,4,5,6,7,8,9])\r\n *   , output;\r\n *\r\n * try {\r\n *   output = pako.inflate(input);\r\n * } catch (err)\r\n *   console.log(err);\r\n * }\r\n * ```\r\n **/\r\nfunction inflate(input, options) {\r\n  var inflator = new Inflate(options);\r\n\r\n  inflator.push(input, true);\r\n\r\n  // That will never happens, if you don't cheat with options :)\r\n  if (inflator.err) { throw inflator.msg; }\r\n\r\n  return inflator.result;\r\n}\r\n\r\n\r\n/**\r\n * inflateRaw(data[, options]) -> Uint8Array|Array|String\r\n * - data (Uint8Array|Array|String): input data to decompress.\r\n * - options (Object): zlib inflate options.\r\n *\r\n * The same as [[inflate]], but creates raw data, without wrapper\r\n * (header and adler32 crc).\r\n **/\r\nfunction inflateRaw(input, options) {\r\n  options = options || {};\r\n  options.raw = true;\r\n  return inflate(input, options);\r\n}\r\n\r\n\r\n/**\r\n * ungzip(data[, options]) -> Uint8Array|Array|String\r\n * - data (Uint8Array|Array|String): input data to decompress.\r\n * - options (Object): zlib inflate options.\r\n *\r\n * Just shortcut to [[inflate]], because it autodetects format\r\n * by header.content. Done for convenience.\r\n **/\r\n\r\n\r\nexports.Inflate = Inflate;\r\nexports.inflate = inflate;\r\nexports.inflateRaw = inflateRaw;\r\nexports.ungzip  = inflate;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/inflate.js\n// module id = 724\n// module chunks = 2","'use strict';\r\n\r\nvar utils   = require('../utils/common');\r\nvar trees   = require('./trees');\r\nvar adler32 = require('./adler32');\r\nvar crc32   = require('./crc32');\r\nvar msg     = require('./messages');\r\n\r\n/* Public constants ==========================================================*/\r\n/* ===========================================================================*/\r\n\r\n\r\n/* Allowed flush values; see deflate() and inflate() below for details */\r\nvar Z_NO_FLUSH      = 0;\r\nvar Z_PARTIAL_FLUSH = 1;\r\n//var Z_SYNC_FLUSH    = 2;\r\nvar Z_FULL_FLUSH    = 3;\r\nvar Z_FINISH        = 4;\r\nvar Z_BLOCK         = 5;\r\n//var Z_TREES         = 6;\r\n\r\n\r\n/* Return codes for the compression/decompression functions. Negative values\r\n * are errors, positive values are used for special but normal events.\r\n */\r\nvar Z_OK            = 0;\r\nvar Z_STREAM_END    = 1;\r\n//var Z_NEED_DICT     = 2;\r\n//var Z_ERRNO         = -1;\r\nvar Z_STREAM_ERROR  = -2;\r\nvar Z_DATA_ERROR    = -3;\r\n//var Z_MEM_ERROR     = -4;\r\nvar Z_BUF_ERROR     = -5;\r\n//var Z_VERSION_ERROR = -6;\r\n\r\n\r\n/* compression levels */\r\n//var Z_NO_COMPRESSION      = 0;\r\n//var Z_BEST_SPEED          = 1;\r\n//var Z_BEST_COMPRESSION    = 9;\r\nvar Z_DEFAULT_COMPRESSION = -1;\r\n\r\n\r\nvar Z_FILTERED            = 1;\r\nvar Z_HUFFMAN_ONLY        = 2;\r\nvar Z_RLE                 = 3;\r\nvar Z_FIXED               = 4;\r\nvar Z_DEFAULT_STRATEGY    = 0;\r\n\r\n/* Possible values of the data_type field (though see inflate()) */\r\n//var Z_BINARY              = 0;\r\n//var Z_TEXT                = 1;\r\n//var Z_ASCII               = 1; // = Z_TEXT\r\nvar Z_UNKNOWN             = 2;\r\n\r\n\r\n/* The deflate compression method */\r\nvar Z_DEFLATED  = 8;\r\n\r\n/*============================================================================*/\r\n\r\n\r\nvar MAX_MEM_LEVEL = 9;\r\n/* Maximum value for memLevel in deflateInit2 */\r\nvar MAX_WBITS = 15;\r\n/* 32K LZ77 window */\r\nvar DEF_MEM_LEVEL = 8;\r\n\r\n\r\nvar LENGTH_CODES  = 29;\r\n/* number of length codes, not counting the special END_BLOCK code */\r\nvar LITERALS      = 256;\r\n/* number of literal bytes 0..255 */\r\nvar L_CODES       = LITERALS + 1 + LENGTH_CODES;\r\n/* number of Literal or Length codes, including the END_BLOCK code */\r\nvar D_CODES       = 30;\r\n/* number of distance codes */\r\nvar BL_CODES      = 19;\r\n/* number of codes used to transfer the bit lengths */\r\nvar HEAP_SIZE     = 2 * L_CODES + 1;\r\n/* maximum heap size */\r\nvar MAX_BITS  = 15;\r\n/* All codes must not exceed MAX_BITS bits */\r\n\r\nvar MIN_MATCH = 3;\r\nvar MAX_MATCH = 258;\r\nvar MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);\r\n\r\nvar PRESET_DICT = 0x20;\r\n\r\nvar INIT_STATE = 42;\r\nvar EXTRA_STATE = 69;\r\nvar NAME_STATE = 73;\r\nvar COMMENT_STATE = 91;\r\nvar HCRC_STATE = 103;\r\nvar BUSY_STATE = 113;\r\nvar FINISH_STATE = 666;\r\n\r\nvar BS_NEED_MORE      = 1; /* block not completed, need more input or more output */\r\nvar BS_BLOCK_DONE     = 2; /* block flush performed */\r\nvar BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */\r\nvar BS_FINISH_DONE    = 4; /* finish done, accept no more input or output */\r\n\r\nvar OS_CODE = 0x03; // Unix :) . Don't detect, use this default.\r\n\r\nfunction err(strm, errorCode) {\r\n  strm.msg = msg[errorCode];\r\n  return errorCode;\r\n}\r\n\r\nfunction rank(f) {\r\n  return ((f) << 1) - ((f) > 4 ? 9 : 0);\r\n}\r\n\r\nfunction zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }\r\n\r\n\r\n/* =========================================================================\r\n * Flush as much pending output as possible. All deflate() output goes\r\n * through this function so some applications may wish to modify it\r\n * to avoid allocating a large strm->output buffer and copying into it.\r\n * (See also read_buf()).\r\n */\r\nfunction flush_pending(strm) {\r\n  var s = strm.state;\r\n\r\n  //_tr_flush_bits(s);\r\n  var len = s.pending;\r\n  if (len > strm.avail_out) {\r\n    len = strm.avail_out;\r\n  }\r\n  if (len === 0) { return; }\r\n\r\n  utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);\r\n  strm.next_out += len;\r\n  s.pending_out += len;\r\n  strm.total_out += len;\r\n  strm.avail_out -= len;\r\n  s.pending -= len;\r\n  if (s.pending === 0) {\r\n    s.pending_out = 0;\r\n  }\r\n}\r\n\r\n\r\nfunction flush_block_only(s, last) {\r\n  trees._tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);\r\n  s.block_start = s.strstart;\r\n  flush_pending(s.strm);\r\n}\r\n\r\n\r\nfunction put_byte(s, b) {\r\n  s.pending_buf[s.pending++] = b;\r\n}\r\n\r\n\r\n/* =========================================================================\r\n * Put a short in the pending buffer. The 16-bit value is put in MSB order.\r\n * IN assertion: the stream state is correct and there is enough room in\r\n * pending_buf.\r\n */\r\nfunction putShortMSB(s, b) {\r\n//  put_byte(s, (Byte)(b >> 8));\r\n//  put_byte(s, (Byte)(b & 0xff));\r\n  s.pending_buf[s.pending++] = (b >>> 8) & 0xff;\r\n  s.pending_buf[s.pending++] = b & 0xff;\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Read a new buffer from the current input stream, update the adler32\r\n * and total number of bytes read.  All deflate() input goes through\r\n * this function so some applications may wish to modify it to avoid\r\n * allocating a large strm->input buffer and copying from it.\r\n * (See also flush_pending()).\r\n */\r\nfunction read_buf(strm, buf, start, size) {\r\n  var len = strm.avail_in;\r\n\r\n  if (len > size) { len = size; }\r\n  if (len === 0) { return 0; }\r\n\r\n  strm.avail_in -= len;\r\n\r\n  // zmemcpy(buf, strm->next_in, len);\r\n  utils.arraySet(buf, strm.input, strm.next_in, len, start);\r\n  if (strm.state.wrap === 1) {\r\n    strm.adler = adler32(strm.adler, buf, len, start);\r\n  }\r\n\r\n  else if (strm.state.wrap === 2) {\r\n    strm.adler = crc32(strm.adler, buf, len, start);\r\n  }\r\n\r\n  strm.next_in += len;\r\n  strm.total_in += len;\r\n\r\n  return len;\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Set match_start to the longest match starting at the given string and\r\n * return its length. Matches shorter or equal to prev_length are discarded,\r\n * in which case the result is equal to prev_length and match_start is\r\n * garbage.\r\n * IN assertions: cur_match is the head of the hash chain for the current\r\n *   string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1\r\n * OUT assertion: the match length is not greater than s->lookahead.\r\n */\r\nfunction longest_match(s, cur_match) {\r\n  var chain_length = s.max_chain_length;      /* max hash chain length */\r\n  var scan = s.strstart; /* current string */\r\n  var match;                       /* matched string */\r\n  var len;                           /* length of current match */\r\n  var best_len = s.prev_length;              /* best match length so far */\r\n  var nice_match = s.nice_match;             /* stop if match long enough */\r\n  var limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ?\r\n      s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/;\r\n\r\n  var _win = s.window; // shortcut\r\n\r\n  var wmask = s.w_mask;\r\n  var prev  = s.prev;\r\n\r\n  /* Stop when cur_match becomes <= limit. To simplify the code,\r\n   * we prevent matches with the string of window index 0.\r\n   */\r\n\r\n  var strend = s.strstart + MAX_MATCH;\r\n  var scan_end1  = _win[scan + best_len - 1];\r\n  var scan_end   = _win[scan + best_len];\r\n\r\n  /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.\r\n   * It is easy to get rid of this optimization if necessary.\r\n   */\r\n  // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, \"Code too clever\");\r\n\r\n  /* Do not waste too much time if we already have a good match: */\r\n  if (s.prev_length >= s.good_match) {\r\n    chain_length >>= 2;\r\n  }\r\n  /* Do not look for matches beyond the end of the input. This is necessary\r\n   * to make deflate deterministic.\r\n   */\r\n  if (nice_match > s.lookahead) { nice_match = s.lookahead; }\r\n\r\n  // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, \"need lookahead\");\r\n\r\n  do {\r\n    // Assert(cur_match < s->strstart, \"no future\");\r\n    match = cur_match;\r\n\r\n    /* Skip to next match if the match length cannot increase\r\n     * or if the match length is less than 2.  Note that the checks below\r\n     * for insufficient lookahead only occur occasionally for performance\r\n     * reasons.  Therefore uninitialized memory will be accessed, and\r\n     * conditional jumps will be made that depend on those values.\r\n     * However the length of the match is limited to the lookahead, so\r\n     * the output of deflate is not affected by the uninitialized values.\r\n     */\r\n\r\n    if (_win[match + best_len]     !== scan_end  ||\r\n        _win[match + best_len - 1] !== scan_end1 ||\r\n        _win[match]                !== _win[scan] ||\r\n        _win[++match]              !== _win[scan + 1]) {\r\n      continue;\r\n    }\r\n\r\n    /* The check at best_len-1 can be removed because it will be made\r\n     * again later. (This heuristic is not always a win.)\r\n     * It is not necessary to compare scan[2] and match[2] since they\r\n     * are always equal when the other bytes match, given that\r\n     * the hash keys are equal and that HASH_BITS >= 8.\r\n     */\r\n    scan += 2;\r\n    match++;\r\n    // Assert(*scan == *match, \"match[2]?\");\r\n\r\n    /* We check for insufficient lookahead only every 8th comparison;\r\n     * the 256th check will be made at strstart+258.\r\n     */\r\n    do {\r\n      /*jshint noempty:false*/\r\n    } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\r\n             _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\r\n             _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\r\n             _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\r\n             scan < strend);\r\n\r\n    // Assert(scan <= s->window+(unsigned)(s->window_size-1), \"wild scan\");\r\n\r\n    len = MAX_MATCH - (strend - scan);\r\n    scan = strend - MAX_MATCH;\r\n\r\n    if (len > best_len) {\r\n      s.match_start = cur_match;\r\n      best_len = len;\r\n      if (len >= nice_match) {\r\n        break;\r\n      }\r\n      scan_end1  = _win[scan + best_len - 1];\r\n      scan_end   = _win[scan + best_len];\r\n    }\r\n  } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);\r\n\r\n  if (best_len <= s.lookahead) {\r\n    return best_len;\r\n  }\r\n  return s.lookahead;\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Fill the window when the lookahead becomes insufficient.\r\n * Updates strstart and lookahead.\r\n *\r\n * IN assertion: lookahead < MIN_LOOKAHEAD\r\n * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD\r\n *    At least one byte has been read, or avail_in == 0; reads are\r\n *    performed for at least two bytes (required for the zip translate_eol\r\n *    option -- not supported here).\r\n */\r\nfunction fill_window(s) {\r\n  var _w_size = s.w_size;\r\n  var p, n, m, more, str;\r\n\r\n  //Assert(s->lookahead < MIN_LOOKAHEAD, \"already enough lookahead\");\r\n\r\n  do {\r\n    more = s.window_size - s.lookahead - s.strstart;\r\n\r\n    // JS ints have 32 bit, block below not needed\r\n    /* Deal with !@#$% 64K limit: */\r\n    //if (sizeof(int) <= 2) {\r\n    //    if (more == 0 && s->strstart == 0 && s->lookahead == 0) {\r\n    //        more = wsize;\r\n    //\r\n    //  } else if (more == (unsigned)(-1)) {\r\n    //        /* Very unlikely, but possible on 16 bit machine if\r\n    //         * strstart == 0 && lookahead == 1 (input done a byte at time)\r\n    //         */\r\n    //        more--;\r\n    //    }\r\n    //}\r\n\r\n\r\n    /* If the window is almost full and there is insufficient lookahead,\r\n     * move the upper half to the lower one to make room in the upper half.\r\n     */\r\n    if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {\r\n\r\n      utils.arraySet(s.window, s.window, _w_size, _w_size, 0);\r\n      s.match_start -= _w_size;\r\n      s.strstart -= _w_size;\r\n      /* we now have strstart >= MAX_DIST */\r\n      s.block_start -= _w_size;\r\n\r\n      /* Slide the hash table (could be avoided with 32 bit values\r\n       at the expense of memory usage). We slide even when level == 0\r\n       to keep the hash table consistent if we switch back to level > 0\r\n       later. (Using level 0 permanently is not an optimal usage of\r\n       zlib, so we don't care about this pathological case.)\r\n       */\r\n\r\n      n = s.hash_size;\r\n      p = n;\r\n      do {\r\n        m = s.head[--p];\r\n        s.head[p] = (m >= _w_size ? m - _w_size : 0);\r\n      } while (--n);\r\n\r\n      n = _w_size;\r\n      p = n;\r\n      do {\r\n        m = s.prev[--p];\r\n        s.prev[p] = (m >= _w_size ? m - _w_size : 0);\r\n        /* If n is not on any hash chain, prev[n] is garbage but\r\n         * its value will never be used.\r\n         */\r\n      } while (--n);\r\n\r\n      more += _w_size;\r\n    }\r\n    if (s.strm.avail_in === 0) {\r\n      break;\r\n    }\r\n\r\n    /* If there was no sliding:\r\n     *    strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&\r\n     *    more == window_size - lookahead - strstart\r\n     * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)\r\n     * => more >= window_size - 2*WSIZE + 2\r\n     * In the BIG_MEM or MMAP case (not yet supported),\r\n     *   window_size == input_size + MIN_LOOKAHEAD  &&\r\n     *   strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.\r\n     * Otherwise, window_size == 2*WSIZE so more >= 2.\r\n     * If there was sliding, more >= WSIZE. So in all cases, more >= 2.\r\n     */\r\n    //Assert(more >= 2, \"more < 2\");\r\n    n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);\r\n    s.lookahead += n;\r\n\r\n    /* Initialize the hash value now that we have some input: */\r\n    if (s.lookahead + s.insert >= MIN_MATCH) {\r\n      str = s.strstart - s.insert;\r\n      s.ins_h = s.window[str];\r\n\r\n      /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */\r\n      s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask;\r\n//#if MIN_MATCH != 3\r\n//        Call update_hash() MIN_MATCH-3 more times\r\n//#endif\r\n      while (s.insert) {\r\n        /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */\r\n        s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;\r\n\r\n        s.prev[str & s.w_mask] = s.head[s.ins_h];\r\n        s.head[s.ins_h] = str;\r\n        str++;\r\n        s.insert--;\r\n        if (s.lookahead + s.insert < MIN_MATCH) {\r\n          break;\r\n        }\r\n      }\r\n    }\r\n    /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,\r\n     * but this is not important since only literal bytes will be emitted.\r\n     */\r\n\r\n  } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);\r\n\r\n  /* If the WIN_INIT bytes after the end of the current data have never been\r\n   * written, then zero those bytes in order to avoid memory check reports of\r\n   * the use of uninitialized (or uninitialised as Julian writes) bytes by\r\n   * the longest match routines.  Update the high water mark for the next\r\n   * time through here.  WIN_INIT is set to MAX_MATCH since the longest match\r\n   * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.\r\n   */\r\n//  if (s.high_water < s.window_size) {\r\n//    var curr = s.strstart + s.lookahead;\r\n//    var init = 0;\r\n//\r\n//    if (s.high_water < curr) {\r\n//      /* Previous high water mark below current data -- zero WIN_INIT\r\n//       * bytes or up to end of window, whichever is less.\r\n//       */\r\n//      init = s.window_size - curr;\r\n//      if (init > WIN_INIT)\r\n//        init = WIN_INIT;\r\n//      zmemzero(s->window + curr, (unsigned)init);\r\n//      s->high_water = curr + init;\r\n//    }\r\n//    else if (s->high_water < (ulg)curr + WIN_INIT) {\r\n//      /* High water mark at or above current data, but below current data\r\n//       * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up\r\n//       * to end of window, whichever is less.\r\n//       */\r\n//      init = (ulg)curr + WIN_INIT - s->high_water;\r\n//      if (init > s->window_size - s->high_water)\r\n//        init = s->window_size - s->high_water;\r\n//      zmemzero(s->window + s->high_water, (unsigned)init);\r\n//      s->high_water += init;\r\n//    }\r\n//  }\r\n//\r\n//  Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,\r\n//    \"not enough room for search\");\r\n}\r\n\r\n/* ===========================================================================\r\n * Copy without compression as much as possible from the input stream, return\r\n * the current block state.\r\n * This function does not insert new strings in the dictionary since\r\n * uncompressible data is probably not useful. This function is used\r\n * only for the level=0 compression option.\r\n * NOTE: this function should be optimized to avoid extra copying from\r\n * window to pending_buf.\r\n */\r\nfunction deflate_stored(s, flush) {\r\n  /* Stored blocks are limited to 0xffff bytes, pending_buf is limited\r\n   * to pending_buf_size, and each stored block has a 5 byte header:\r\n   */\r\n  var max_block_size = 0xffff;\r\n\r\n  if (max_block_size > s.pending_buf_size - 5) {\r\n    max_block_size = s.pending_buf_size - 5;\r\n  }\r\n\r\n  /* Copy as much as possible from input to output: */\r\n  for (;;) {\r\n    /* Fill the window as much as possible: */\r\n    if (s.lookahead <= 1) {\r\n\r\n      //Assert(s->strstart < s->w_size+MAX_DIST(s) ||\r\n      //  s->block_start >= (long)s->w_size, \"slide too late\");\r\n//      if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||\r\n//        s.block_start >= s.w_size)) {\r\n//        throw  new Error(\"slide too late\");\r\n//      }\r\n\r\n      fill_window(s);\r\n      if (s.lookahead === 0 && flush === Z_NO_FLUSH) {\r\n        return BS_NEED_MORE;\r\n      }\r\n\r\n      if (s.lookahead === 0) {\r\n        break;\r\n      }\r\n      /* flush the current block */\r\n    }\r\n    //Assert(s->block_start >= 0L, \"block gone\");\r\n//    if (s.block_start < 0) throw new Error(\"block gone\");\r\n\r\n    s.strstart += s.lookahead;\r\n    s.lookahead = 0;\r\n\r\n    /* Emit a stored block if pending_buf will be full: */\r\n    var max_start = s.block_start + max_block_size;\r\n\r\n    if (s.strstart === 0 || s.strstart >= max_start) {\r\n      /* strstart == 0 is possible when wraparound on 16-bit machine */\r\n      s.lookahead = s.strstart - max_start;\r\n      s.strstart = max_start;\r\n      /*** FLUSH_BLOCK(s, 0); ***/\r\n      flush_block_only(s, false);\r\n      if (s.strm.avail_out === 0) {\r\n        return BS_NEED_MORE;\r\n      }\r\n      /***/\r\n\r\n\r\n    }\r\n    /* Flush if we may have to slide, otherwise block_start may become\r\n     * negative and the data will be gone:\r\n     */\r\n    if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) {\r\n      /*** FLUSH_BLOCK(s, 0); ***/\r\n      flush_block_only(s, false);\r\n      if (s.strm.avail_out === 0) {\r\n        return BS_NEED_MORE;\r\n      }\r\n      /***/\r\n    }\r\n  }\r\n\r\n  s.insert = 0;\r\n\r\n  if (flush === Z_FINISH) {\r\n    /*** FLUSH_BLOCK(s, 1); ***/\r\n    flush_block_only(s, true);\r\n    if (s.strm.avail_out === 0) {\r\n      return BS_FINISH_STARTED;\r\n    }\r\n    /***/\r\n    return BS_FINISH_DONE;\r\n  }\r\n\r\n  if (s.strstart > s.block_start) {\r\n    /*** FLUSH_BLOCK(s, 0); ***/\r\n    flush_block_only(s, false);\r\n    if (s.strm.avail_out === 0) {\r\n      return BS_NEED_MORE;\r\n    }\r\n    /***/\r\n  }\r\n\r\n  return BS_NEED_MORE;\r\n}\r\n\r\n/* ===========================================================================\r\n * Compress as much as possible from the input stream, return the current\r\n * block state.\r\n * This function does not perform lazy evaluation of matches and inserts\r\n * new strings in the dictionary only for unmatched strings or for short\r\n * matches. It is used only for the fast compression options.\r\n */\r\nfunction deflate_fast(s, flush) {\r\n  var hash_head;        /* head of the hash chain */\r\n  var bflush;           /* set if current block must be flushed */\r\n\r\n  for (;;) {\r\n    /* Make sure that we always have enough lookahead, except\r\n     * at the end of the input file. We need MAX_MATCH bytes\r\n     * for the next match, plus MIN_MATCH bytes to insert the\r\n     * string following the next match.\r\n     */\r\n    if (s.lookahead < MIN_LOOKAHEAD) {\r\n      fill_window(s);\r\n      if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {\r\n        return BS_NEED_MORE;\r\n      }\r\n      if (s.lookahead === 0) {\r\n        break; /* flush the current block */\r\n      }\r\n    }\r\n\r\n    /* Insert the string window[strstart .. strstart+2] in the\r\n     * dictionary, and set hash_head to the head of the hash chain:\r\n     */\r\n    hash_head = 0/*NIL*/;\r\n    if (s.lookahead >= MIN_MATCH) {\r\n      /*** INSERT_STRING(s, s.strstart, hash_head); ***/\r\n      s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\r\n      hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\r\n      s.head[s.ins_h] = s.strstart;\r\n      /***/\r\n    }\r\n\r\n    /* Find the longest match, discarding those <= prev_length.\r\n     * At this point we have always match_length < MIN_MATCH\r\n     */\r\n    if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {\r\n      /* To simplify the code, we prevent matches with the string\r\n       * of window index 0 (in particular we have to avoid a match\r\n       * of the string with itself at the start of the input file).\r\n       */\r\n      s.match_length = longest_match(s, hash_head);\r\n      /* longest_match() sets match_start */\r\n    }\r\n    if (s.match_length >= MIN_MATCH) {\r\n      // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only\r\n\r\n      /*** _tr_tally_dist(s, s.strstart - s.match_start,\r\n                     s.match_length - MIN_MATCH, bflush); ***/\r\n      bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);\r\n\r\n      s.lookahead -= s.match_length;\r\n\r\n      /* Insert new strings in the hash table only if the match length\r\n       * is not too large. This saves time but degrades compression.\r\n       */\r\n      if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) {\r\n        s.match_length--; /* string at strstart already in table */\r\n        do {\r\n          s.strstart++;\r\n          /*** INSERT_STRING(s, s.strstart, hash_head); ***/\r\n          s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\r\n          hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\r\n          s.head[s.ins_h] = s.strstart;\r\n          /***/\r\n          /* strstart never exceeds WSIZE-MAX_MATCH, so there are\r\n           * always MIN_MATCH bytes ahead.\r\n           */\r\n        } while (--s.match_length !== 0);\r\n        s.strstart++;\r\n      } else\r\n      {\r\n        s.strstart += s.match_length;\r\n        s.match_length = 0;\r\n        s.ins_h = s.window[s.strstart];\r\n        /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */\r\n        s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) & s.hash_mask;\r\n\r\n//#if MIN_MATCH != 3\r\n//                Call UPDATE_HASH() MIN_MATCH-3 more times\r\n//#endif\r\n        /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not\r\n         * matter since it will be recomputed at next deflate call.\r\n         */\r\n      }\r\n    } else {\r\n      /* No match, output a literal byte */\r\n      //Tracevv((stderr,\"%c\", s.window[s.strstart]));\r\n      /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\r\n      bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\r\n\r\n      s.lookahead--;\r\n      s.strstart++;\r\n    }\r\n    if (bflush) {\r\n      /*** FLUSH_BLOCK(s, 0); ***/\r\n      flush_block_only(s, false);\r\n      if (s.strm.avail_out === 0) {\r\n        return BS_NEED_MORE;\r\n      }\r\n      /***/\r\n    }\r\n  }\r\n  s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1);\r\n  if (flush === Z_FINISH) {\r\n    /*** FLUSH_BLOCK(s, 1); ***/\r\n    flush_block_only(s, true);\r\n    if (s.strm.avail_out === 0) {\r\n      return BS_FINISH_STARTED;\r\n    }\r\n    /***/\r\n    return BS_FINISH_DONE;\r\n  }\r\n  if (s.last_lit) {\r\n    /*** FLUSH_BLOCK(s, 0); ***/\r\n    flush_block_only(s, false);\r\n    if (s.strm.avail_out === 0) {\r\n      return BS_NEED_MORE;\r\n    }\r\n    /***/\r\n  }\r\n  return BS_BLOCK_DONE;\r\n}\r\n\r\n/* ===========================================================================\r\n * Same as above, but achieves better compression. We use a lazy\r\n * evaluation for matches: a match is finally adopted only if there is\r\n * no better match at the next window position.\r\n */\r\nfunction deflate_slow(s, flush) {\r\n  var hash_head;          /* head of hash chain */\r\n  var bflush;              /* set if current block must be flushed */\r\n\r\n  var max_insert;\r\n\r\n  /* Process the input block. */\r\n  for (;;) {\r\n    /* Make sure that we always have enough lookahead, except\r\n     * at the end of the input file. We need MAX_MATCH bytes\r\n     * for the next match, plus MIN_MATCH bytes to insert the\r\n     * string following the next match.\r\n     */\r\n    if (s.lookahead < MIN_LOOKAHEAD) {\r\n      fill_window(s);\r\n      if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {\r\n        return BS_NEED_MORE;\r\n      }\r\n      if (s.lookahead === 0) { break; } /* flush the current block */\r\n    }\r\n\r\n    /* Insert the string window[strstart .. strstart+2] in the\r\n     * dictionary, and set hash_head to the head of the hash chain:\r\n     */\r\n    hash_head = 0/*NIL*/;\r\n    if (s.lookahead >= MIN_MATCH) {\r\n      /*** INSERT_STRING(s, s.strstart, hash_head); ***/\r\n      s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\r\n      hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\r\n      s.head[s.ins_h] = s.strstart;\r\n      /***/\r\n    }\r\n\r\n    /* Find the longest match, discarding those <= prev_length.\r\n     */\r\n    s.prev_length = s.match_length;\r\n    s.prev_match = s.match_start;\r\n    s.match_length = MIN_MATCH - 1;\r\n\r\n    if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match &&\r\n        s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD)/*MAX_DIST(s)*/) {\r\n      /* To simplify the code, we prevent matches with the string\r\n       * of window index 0 (in particular we have to avoid a match\r\n       * of the string with itself at the start of the input file).\r\n       */\r\n      s.match_length = longest_match(s, hash_head);\r\n      /* longest_match() sets match_start */\r\n\r\n      if (s.match_length <= 5 &&\r\n         (s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) {\r\n\r\n        /* If prev_match is also MIN_MATCH, match_start is garbage\r\n         * but we will ignore the current match anyway.\r\n         */\r\n        s.match_length = MIN_MATCH - 1;\r\n      }\r\n    }\r\n    /* If there was a match at the previous step and the current\r\n     * match is not better, output the previous match:\r\n     */\r\n    if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {\r\n      max_insert = s.strstart + s.lookahead - MIN_MATCH;\r\n      /* Do not insert strings in hash table beyond this. */\r\n\r\n      //check_match(s, s.strstart-1, s.prev_match, s.prev_length);\r\n\r\n      /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,\r\n                     s.prev_length - MIN_MATCH, bflush);***/\r\n      bflush = trees._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);\r\n      /* Insert in hash table all strings up to the end of the match.\r\n       * strstart-1 and strstart are already inserted. If there is not\r\n       * enough lookahead, the last two strings are not inserted in\r\n       * the hash table.\r\n       */\r\n      s.lookahead -= s.prev_length - 1;\r\n      s.prev_length -= 2;\r\n      do {\r\n        if (++s.strstart <= max_insert) {\r\n          /*** INSERT_STRING(s, s.strstart, hash_head); ***/\r\n          s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\r\n          hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\r\n          s.head[s.ins_h] = s.strstart;\r\n          /***/\r\n        }\r\n      } while (--s.prev_length !== 0);\r\n      s.match_available = 0;\r\n      s.match_length = MIN_MATCH - 1;\r\n      s.strstart++;\r\n\r\n      if (bflush) {\r\n        /*** FLUSH_BLOCK(s, 0); ***/\r\n        flush_block_only(s, false);\r\n        if (s.strm.avail_out === 0) {\r\n          return BS_NEED_MORE;\r\n        }\r\n        /***/\r\n      }\r\n\r\n    } else if (s.match_available) {\r\n      /* If there was no match at the previous position, output a\r\n       * single literal. If there was a match but the current match\r\n       * is longer, truncate the previous match to a single literal.\r\n       */\r\n      //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\r\n      /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\r\n      bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);\r\n\r\n      if (bflush) {\r\n        /*** FLUSH_BLOCK_ONLY(s, 0) ***/\r\n        flush_block_only(s, false);\r\n        /***/\r\n      }\r\n      s.strstart++;\r\n      s.lookahead--;\r\n      if (s.strm.avail_out === 0) {\r\n        return BS_NEED_MORE;\r\n      }\r\n    } else {\r\n      /* There is no previous match to compare with, wait for\r\n       * the next step to decide.\r\n       */\r\n      s.match_available = 1;\r\n      s.strstart++;\r\n      s.lookahead--;\r\n    }\r\n  }\r\n  //Assert (flush != Z_NO_FLUSH, \"no flush?\");\r\n  if (s.match_available) {\r\n    //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\r\n    /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\r\n    bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);\r\n\r\n    s.match_available = 0;\r\n  }\r\n  s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;\r\n  if (flush === Z_FINISH) {\r\n    /*** FLUSH_BLOCK(s, 1); ***/\r\n    flush_block_only(s, true);\r\n    if (s.strm.avail_out === 0) {\r\n      return BS_FINISH_STARTED;\r\n    }\r\n    /***/\r\n    return BS_FINISH_DONE;\r\n  }\r\n  if (s.last_lit) {\r\n    /*** FLUSH_BLOCK(s, 0); ***/\r\n    flush_block_only(s, false);\r\n    if (s.strm.avail_out === 0) {\r\n      return BS_NEED_MORE;\r\n    }\r\n    /***/\r\n  }\r\n\r\n  return BS_BLOCK_DONE;\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * For Z_RLE, simply look for runs of bytes, generate matches only of distance\r\n * one.  Do not maintain a hash table.  (It will be regenerated if this run of\r\n * deflate switches away from Z_RLE.)\r\n */\r\nfunction deflate_rle(s, flush) {\r\n  var bflush;            /* set if current block must be flushed */\r\n  var prev;              /* byte at distance one to match */\r\n  var scan, strend;      /* scan goes up to strend for length of run */\r\n\r\n  var _win = s.window;\r\n\r\n  for (;;) {\r\n    /* Make sure that we always have enough lookahead, except\r\n     * at the end of the input file. We need MAX_MATCH bytes\r\n     * for the longest run, plus one for the unrolled loop.\r\n     */\r\n    if (s.lookahead <= MAX_MATCH) {\r\n      fill_window(s);\r\n      if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH) {\r\n        return BS_NEED_MORE;\r\n      }\r\n      if (s.lookahead === 0) { break; } /* flush the current block */\r\n    }\r\n\r\n    /* See how many times the previous byte repeats */\r\n    s.match_length = 0;\r\n    if (s.lookahead >= MIN_MATCH && s.strstart > 0) {\r\n      scan = s.strstart - 1;\r\n      prev = _win[scan];\r\n      if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {\r\n        strend = s.strstart + MAX_MATCH;\r\n        do {\r\n          /*jshint noempty:false*/\r\n        } while (prev === _win[++scan] && prev === _win[++scan] &&\r\n                 prev === _win[++scan] && prev === _win[++scan] &&\r\n                 prev === _win[++scan] && prev === _win[++scan] &&\r\n                 prev === _win[++scan] && prev === _win[++scan] &&\r\n                 scan < strend);\r\n        s.match_length = MAX_MATCH - (strend - scan);\r\n        if (s.match_length > s.lookahead) {\r\n          s.match_length = s.lookahead;\r\n        }\r\n      }\r\n      //Assert(scan <= s->window+(uInt)(s->window_size-1), \"wild scan\");\r\n    }\r\n\r\n    /* Emit match if have run of MIN_MATCH or longer, else emit literal */\r\n    if (s.match_length >= MIN_MATCH) {\r\n      //check_match(s, s.strstart, s.strstart - 1, s.match_length);\r\n\r\n      /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/\r\n      bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH);\r\n\r\n      s.lookahead -= s.match_length;\r\n      s.strstart += s.match_length;\r\n      s.match_length = 0;\r\n    } else {\r\n      /* No match, output a literal byte */\r\n      //Tracevv((stderr,\"%c\", s->window[s->strstart]));\r\n      /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\r\n      bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\r\n\r\n      s.lookahead--;\r\n      s.strstart++;\r\n    }\r\n    if (bflush) {\r\n      /*** FLUSH_BLOCK(s, 0); ***/\r\n      flush_block_only(s, false);\r\n      if (s.strm.avail_out === 0) {\r\n        return BS_NEED_MORE;\r\n      }\r\n      /***/\r\n    }\r\n  }\r\n  s.insert = 0;\r\n  if (flush === Z_FINISH) {\r\n    /*** FLUSH_BLOCK(s, 1); ***/\r\n    flush_block_only(s, true);\r\n    if (s.strm.avail_out === 0) {\r\n      return BS_FINISH_STARTED;\r\n    }\r\n    /***/\r\n    return BS_FINISH_DONE;\r\n  }\r\n  if (s.last_lit) {\r\n    /*** FLUSH_BLOCK(s, 0); ***/\r\n    flush_block_only(s, false);\r\n    if (s.strm.avail_out === 0) {\r\n      return BS_NEED_MORE;\r\n    }\r\n    /***/\r\n  }\r\n  return BS_BLOCK_DONE;\r\n}\r\n\r\n/* ===========================================================================\r\n * For Z_HUFFMAN_ONLY, do not look for matches.  Do not maintain a hash table.\r\n * (It will be regenerated if this run of deflate switches away from Huffman.)\r\n */\r\nfunction deflate_huff(s, flush) {\r\n  var bflush;             /* set if current block must be flushed */\r\n\r\n  for (;;) {\r\n    /* Make sure that we have a literal to write. */\r\n    if (s.lookahead === 0) {\r\n      fill_window(s);\r\n      if (s.lookahead === 0) {\r\n        if (flush === Z_NO_FLUSH) {\r\n          return BS_NEED_MORE;\r\n        }\r\n        break;      /* flush the current block */\r\n      }\r\n    }\r\n\r\n    /* Output a literal byte */\r\n    s.match_length = 0;\r\n    //Tracevv((stderr,\"%c\", s->window[s->strstart]));\r\n    /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\r\n    bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\r\n    s.lookahead--;\r\n    s.strstart++;\r\n    if (bflush) {\r\n      /*** FLUSH_BLOCK(s, 0); ***/\r\n      flush_block_only(s, false);\r\n      if (s.strm.avail_out === 0) {\r\n        return BS_NEED_MORE;\r\n      }\r\n      /***/\r\n    }\r\n  }\r\n  s.insert = 0;\r\n  if (flush === Z_FINISH) {\r\n    /*** FLUSH_BLOCK(s, 1); ***/\r\n    flush_block_only(s, true);\r\n    if (s.strm.avail_out === 0) {\r\n      return BS_FINISH_STARTED;\r\n    }\r\n    /***/\r\n    return BS_FINISH_DONE;\r\n  }\r\n  if (s.last_lit) {\r\n    /*** FLUSH_BLOCK(s, 0); ***/\r\n    flush_block_only(s, false);\r\n    if (s.strm.avail_out === 0) {\r\n      return BS_NEED_MORE;\r\n    }\r\n    /***/\r\n  }\r\n  return BS_BLOCK_DONE;\r\n}\r\n\r\n/* Values for max_lazy_match, good_match and max_chain_length, depending on\r\n * the desired pack level (0..9). The values given below have been tuned to\r\n * exclude worst case performance for pathological files. Better values may be\r\n * found for specific files.\r\n */\r\nfunction Config(good_length, max_lazy, nice_length, max_chain, func) {\r\n  this.good_length = good_length;\r\n  this.max_lazy = max_lazy;\r\n  this.nice_length = nice_length;\r\n  this.max_chain = max_chain;\r\n  this.func = func;\r\n}\r\n\r\nvar configuration_table;\r\n\r\nconfiguration_table = [\r\n  /*      good lazy nice chain */\r\n  new Config(0, 0, 0, 0, deflate_stored),          /* 0 store only */\r\n  new Config(4, 4, 8, 4, deflate_fast),            /* 1 max speed, no lazy matches */\r\n  new Config(4, 5, 16, 8, deflate_fast),           /* 2 */\r\n  new Config(4, 6, 32, 32, deflate_fast),          /* 3 */\r\n\r\n  new Config(4, 4, 16, 16, deflate_slow),          /* 4 lazy matches */\r\n  new Config(8, 16, 32, 32, deflate_slow),         /* 5 */\r\n  new Config(8, 16, 128, 128, deflate_slow),       /* 6 */\r\n  new Config(8, 32, 128, 256, deflate_slow),       /* 7 */\r\n  new Config(32, 128, 258, 1024, deflate_slow),    /* 8 */\r\n  new Config(32, 258, 258, 4096, deflate_slow)     /* 9 max compression */\r\n];\r\n\r\n\r\n/* ===========================================================================\r\n * Initialize the \"longest match\" routines for a new zlib stream\r\n */\r\nfunction lm_init(s) {\r\n  s.window_size = 2 * s.w_size;\r\n\r\n  /*** CLEAR_HASH(s); ***/\r\n  zero(s.head); // Fill with NIL (= 0);\r\n\r\n  /* Set the default configuration parameters:\r\n   */\r\n  s.max_lazy_match = configuration_table[s.level].max_lazy;\r\n  s.good_match = configuration_table[s.level].good_length;\r\n  s.nice_match = configuration_table[s.level].nice_length;\r\n  s.max_chain_length = configuration_table[s.level].max_chain;\r\n\r\n  s.strstart = 0;\r\n  s.block_start = 0;\r\n  s.lookahead = 0;\r\n  s.insert = 0;\r\n  s.match_length = s.prev_length = MIN_MATCH - 1;\r\n  s.match_available = 0;\r\n  s.ins_h = 0;\r\n}\r\n\r\n\r\nfunction DeflateState() {\r\n  this.strm = null;            /* pointer back to this zlib stream */\r\n  this.status = 0;            /* as the name implies */\r\n  this.pending_buf = null;      /* output still pending */\r\n  this.pending_buf_size = 0;  /* size of pending_buf */\r\n  this.pending_out = 0;       /* next pending byte to output to the stream */\r\n  this.pending = 0;           /* nb of bytes in the pending buffer */\r\n  this.wrap = 0;              /* bit 0 true for zlib, bit 1 true for gzip */\r\n  this.gzhead = null;         /* gzip header information to write */\r\n  this.gzindex = 0;           /* where in extra, name, or comment */\r\n  this.method = Z_DEFLATED; /* can only be DEFLATED */\r\n  this.last_flush = -1;   /* value of flush param for previous deflate call */\r\n\r\n  this.w_size = 0;  /* LZ77 window size (32K by default) */\r\n  this.w_bits = 0;  /* log2(w_size)  (8..16) */\r\n  this.w_mask = 0;  /* w_size - 1 */\r\n\r\n  this.window = null;\r\n  /* Sliding window. Input bytes are read into the second half of the window,\r\n   * and move to the first half later to keep a dictionary of at least wSize\r\n   * bytes. With this organization, matches are limited to a distance of\r\n   * wSize-MAX_MATCH bytes, but this ensures that IO is always\r\n   * performed with a length multiple of the block size.\r\n   */\r\n\r\n  this.window_size = 0;\r\n  /* Actual size of window: 2*wSize, except when the user input buffer\r\n   * is directly used as sliding window.\r\n   */\r\n\r\n  this.prev = null;\r\n  /* Link to older string with same hash index. To limit the size of this\r\n   * array to 64K, this link is maintained only for the last 32K strings.\r\n   * An index in this array is thus a window index modulo 32K.\r\n   */\r\n\r\n  this.head = null;   /* Heads of the hash chains or NIL. */\r\n\r\n  this.ins_h = 0;       /* hash index of string to be inserted */\r\n  this.hash_size = 0;   /* number of elements in hash table */\r\n  this.hash_bits = 0;   /* log2(hash_size) */\r\n  this.hash_mask = 0;   /* hash_size-1 */\r\n\r\n  this.hash_shift = 0;\r\n  /* Number of bits by which ins_h must be shifted at each input\r\n   * step. It must be such that after MIN_MATCH steps, the oldest\r\n   * byte no longer takes part in the hash key, that is:\r\n   *   hash_shift * MIN_MATCH >= hash_bits\r\n   */\r\n\r\n  this.block_start = 0;\r\n  /* Window position at the beginning of the current output block. Gets\r\n   * negative when the window is moved backwards.\r\n   */\r\n\r\n  this.match_length = 0;      /* length of best match */\r\n  this.prev_match = 0;        /* previous match */\r\n  this.match_available = 0;   /* set if previous match exists */\r\n  this.strstart = 0;          /* start of string to insert */\r\n  this.match_start = 0;       /* start of matching string */\r\n  this.lookahead = 0;         /* number of valid bytes ahead in window */\r\n\r\n  this.prev_length = 0;\r\n  /* Length of the best match at previous step. Matches not greater than this\r\n   * are discarded. This is used in the lazy match evaluation.\r\n   */\r\n\r\n  this.max_chain_length = 0;\r\n  /* To speed up deflation, hash chains are never searched beyond this\r\n   * length.  A higher limit improves compression ratio but degrades the\r\n   * speed.\r\n   */\r\n\r\n  this.max_lazy_match = 0;\r\n  /* Attempt to find a better match only when the current match is strictly\r\n   * smaller than this value. This mechanism is used only for compression\r\n   * levels >= 4.\r\n   */\r\n  // That's alias to max_lazy_match, don't use directly\r\n  //this.max_insert_length = 0;\r\n  /* Insert new strings in the hash table only if the match length is not\r\n   * greater than this length. This saves time but degrades compression.\r\n   * max_insert_length is used only for compression levels <= 3.\r\n   */\r\n\r\n  this.level = 0;     /* compression level (1..9) */\r\n  this.strategy = 0;  /* favor or force Huffman coding*/\r\n\r\n  this.good_match = 0;\r\n  /* Use a faster search when the previous match is longer than this */\r\n\r\n  this.nice_match = 0; /* Stop searching when current match exceeds this */\r\n\r\n              /* used by trees.c: */\r\n\r\n  /* Didn't use ct_data typedef below to suppress compiler warning */\r\n\r\n  // struct ct_data_s dyn_ltree[HEAP_SIZE];   /* literal and length tree */\r\n  // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */\r\n  // struct ct_data_s bl_tree[2*BL_CODES+1];  /* Huffman tree for bit lengths */\r\n\r\n  // Use flat array of DOUBLE size, with interleaved fata,\r\n  // because JS does not support effective\r\n  this.dyn_ltree  = new utils.Buf16(HEAP_SIZE * 2);\r\n  this.dyn_dtree  = new utils.Buf16((2 * D_CODES + 1) * 2);\r\n  this.bl_tree    = new utils.Buf16((2 * BL_CODES + 1) * 2);\r\n  zero(this.dyn_ltree);\r\n  zero(this.dyn_dtree);\r\n  zero(this.bl_tree);\r\n\r\n  this.l_desc   = null;         /* desc. for literal tree */\r\n  this.d_desc   = null;         /* desc. for distance tree */\r\n  this.bl_desc  = null;         /* desc. for bit length tree */\r\n\r\n  //ush bl_count[MAX_BITS+1];\r\n  this.bl_count = new utils.Buf16(MAX_BITS + 1);\r\n  /* number of codes at each bit length for an optimal tree */\r\n\r\n  //int heap[2*L_CODES+1];      /* heap used to build the Huffman trees */\r\n  this.heap = new utils.Buf16(2 * L_CODES + 1);  /* heap used to build the Huffman trees */\r\n  zero(this.heap);\r\n\r\n  this.heap_len = 0;               /* number of elements in the heap */\r\n  this.heap_max = 0;               /* element of largest frequency */\r\n  /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.\r\n   * The same heap array is used to build all trees.\r\n   */\r\n\r\n  this.depth = new utils.Buf16(2 * L_CODES + 1); //uch depth[2*L_CODES+1];\r\n  zero(this.depth);\r\n  /* Depth of each subtree used as tie breaker for trees of equal frequency\r\n   */\r\n\r\n  this.l_buf = 0;          /* buffer index for literals or lengths */\r\n\r\n  this.lit_bufsize = 0;\r\n  /* Size of match buffer for literals/lengths.  There are 4 reasons for\r\n   * limiting lit_bufsize to 64K:\r\n   *   - frequencies can be kept in 16 bit counters\r\n   *   - if compression is not successful for the first block, all input\r\n   *     data is still in the window so we can still emit a stored block even\r\n   *     when input comes from standard input.  (This can also be done for\r\n   *     all blocks if lit_bufsize is not greater than 32K.)\r\n   *   - if compression is not successful for a file smaller than 64K, we can\r\n   *     even emit a stored file instead of a stored block (saving 5 bytes).\r\n   *     This is applicable only for zip (not gzip or zlib).\r\n   *   - creating new Huffman trees less frequently may not provide fast\r\n   *     adaptation to changes in the input data statistics. (Take for\r\n   *     example a binary file with poorly compressible code followed by\r\n   *     a highly compressible string table.) Smaller buffer sizes give\r\n   *     fast adaptation but have of course the overhead of transmitting\r\n   *     trees more frequently.\r\n   *   - I can't count above 4\r\n   */\r\n\r\n  this.last_lit = 0;      /* running index in l_buf */\r\n\r\n  this.d_buf = 0;\r\n  /* Buffer index for distances. To simplify the code, d_buf and l_buf have\r\n   * the same number of elements. To use different lengths, an extra flag\r\n   * array would be necessary.\r\n   */\r\n\r\n  this.opt_len = 0;       /* bit length of current block with optimal trees */\r\n  this.static_len = 0;    /* bit length of current block with static trees */\r\n  this.matches = 0;       /* number of string matches in current block */\r\n  this.insert = 0;        /* bytes at end of window left to insert */\r\n\r\n\r\n  this.bi_buf = 0;\r\n  /* Output buffer. bits are inserted starting at the bottom (least\r\n   * significant bits).\r\n   */\r\n  this.bi_valid = 0;\r\n  /* Number of valid bits in bi_buf.  All bits above the last valid bit\r\n   * are always zero.\r\n   */\r\n\r\n  // Used for window memory init. We safely ignore it for JS. That makes\r\n  // sense only for pointers and memory check tools.\r\n  //this.high_water = 0;\r\n  /* High water mark offset in window for initialized bytes -- bytes above\r\n   * this are set to zero in order to avoid memory check warnings when\r\n   * longest match routines access bytes past the input.  This is then\r\n   * updated to the new high water mark.\r\n   */\r\n}\r\n\r\n\r\nfunction deflateResetKeep(strm) {\r\n  var s;\r\n\r\n  if (!strm || !strm.state) {\r\n    return err(strm, Z_STREAM_ERROR);\r\n  }\r\n\r\n  strm.total_in = strm.total_out = 0;\r\n  strm.data_type = Z_UNKNOWN;\r\n\r\n  s = strm.state;\r\n  s.pending = 0;\r\n  s.pending_out = 0;\r\n\r\n  if (s.wrap < 0) {\r\n    s.wrap = -s.wrap;\r\n    /* was made negative by deflate(..., Z_FINISH); */\r\n  }\r\n  s.status = (s.wrap ? INIT_STATE : BUSY_STATE);\r\n  strm.adler = (s.wrap === 2) ?\r\n    0  // crc32(0, Z_NULL, 0)\r\n  :\r\n    1; // adler32(0, Z_NULL, 0)\r\n  s.last_flush = Z_NO_FLUSH;\r\n  trees._tr_init(s);\r\n  return Z_OK;\r\n}\r\n\r\n\r\nfunction deflateReset(strm) {\r\n  var ret = deflateResetKeep(strm);\r\n  if (ret === Z_OK) {\r\n    lm_init(strm.state);\r\n  }\r\n  return ret;\r\n}\r\n\r\n\r\nfunction deflateSetHeader(strm, head) {\r\n  if (!strm || !strm.state) { return Z_STREAM_ERROR; }\r\n  if (strm.state.wrap !== 2) { return Z_STREAM_ERROR; }\r\n  strm.state.gzhead = head;\r\n  return Z_OK;\r\n}\r\n\r\n\r\nfunction deflateInit2(strm, level, method, windowBits, memLevel, strategy) {\r\n  if (!strm) { // === Z_NULL\r\n    return Z_STREAM_ERROR;\r\n  }\r\n  var wrap = 1;\r\n\r\n  if (level === Z_DEFAULT_COMPRESSION) {\r\n    level = 6;\r\n  }\r\n\r\n  if (windowBits < 0) { /* suppress zlib wrapper */\r\n    wrap = 0;\r\n    windowBits = -windowBits;\r\n  }\r\n\r\n  else if (windowBits > 15) {\r\n    wrap = 2;           /* write gzip wrapper instead */\r\n    windowBits -= 16;\r\n  }\r\n\r\n\r\n  if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED ||\r\n    windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||\r\n    strategy < 0 || strategy > Z_FIXED) {\r\n    return err(strm, Z_STREAM_ERROR);\r\n  }\r\n\r\n\r\n  if (windowBits === 8) {\r\n    windowBits = 9;\r\n  }\r\n  /* until 256-byte window bug fixed */\r\n\r\n  var s = new DeflateState();\r\n\r\n  strm.state = s;\r\n  s.strm = strm;\r\n\r\n  s.wrap = wrap;\r\n  s.gzhead = null;\r\n  s.w_bits = windowBits;\r\n  s.w_size = 1 << s.w_bits;\r\n  s.w_mask = s.w_size - 1;\r\n\r\n  s.hash_bits = memLevel + 7;\r\n  s.hash_size = 1 << s.hash_bits;\r\n  s.hash_mask = s.hash_size - 1;\r\n  s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);\r\n\r\n  s.window = new utils.Buf8(s.w_size * 2);\r\n  s.head = new utils.Buf16(s.hash_size);\r\n  s.prev = new utils.Buf16(s.w_size);\r\n\r\n  // Don't need mem init magic for JS.\r\n  //s.high_water = 0;  /* nothing written to s->window yet */\r\n\r\n  s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */\r\n\r\n  s.pending_buf_size = s.lit_bufsize * 4;\r\n\r\n  //overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);\r\n  //s->pending_buf = (uchf *) overlay;\r\n  s.pending_buf = new utils.Buf8(s.pending_buf_size);\r\n\r\n  // It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)\r\n  //s->d_buf = overlay + s->lit_bufsize/sizeof(ush);\r\n  s.d_buf = 1 * s.lit_bufsize;\r\n\r\n  //s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize;\r\n  s.l_buf = (1 + 2) * s.lit_bufsize;\r\n\r\n  s.level = level;\r\n  s.strategy = strategy;\r\n  s.method = method;\r\n\r\n  return deflateReset(strm);\r\n}\r\n\r\nfunction deflateInit(strm, level) {\r\n  return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);\r\n}\r\n\r\n\r\nfunction deflate(strm, flush) {\r\n  var old_flush, s;\r\n  var beg, val; // for gzip header write only\r\n\r\n  if (!strm || !strm.state ||\r\n    flush > Z_BLOCK || flush < 0) {\r\n    return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;\r\n  }\r\n\r\n  s = strm.state;\r\n\r\n  if (!strm.output ||\r\n      (!strm.input && strm.avail_in !== 0) ||\r\n      (s.status === FINISH_STATE && flush !== Z_FINISH)) {\r\n    return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR);\r\n  }\r\n\r\n  s.strm = strm; /* just in case */\r\n  old_flush = s.last_flush;\r\n  s.last_flush = flush;\r\n\r\n  /* Write the header */\r\n  if (s.status === INIT_STATE) {\r\n\r\n    if (s.wrap === 2) { // GZIP header\r\n      strm.adler = 0;  //crc32(0L, Z_NULL, 0);\r\n      put_byte(s, 31);\r\n      put_byte(s, 139);\r\n      put_byte(s, 8);\r\n      if (!s.gzhead) { // s->gzhead == Z_NULL\r\n        put_byte(s, 0);\r\n        put_byte(s, 0);\r\n        put_byte(s, 0);\r\n        put_byte(s, 0);\r\n        put_byte(s, 0);\r\n        put_byte(s, s.level === 9 ? 2 :\r\n                    (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?\r\n                     4 : 0));\r\n        put_byte(s, OS_CODE);\r\n        s.status = BUSY_STATE;\r\n      }\r\n      else {\r\n        put_byte(s, (s.gzhead.text ? 1 : 0) +\r\n                    (s.gzhead.hcrc ? 2 : 0) +\r\n                    (!s.gzhead.extra ? 0 : 4) +\r\n                    (!s.gzhead.name ? 0 : 8) +\r\n                    (!s.gzhead.comment ? 0 : 16)\r\n                );\r\n        put_byte(s, s.gzhead.time & 0xff);\r\n        put_byte(s, (s.gzhead.time >> 8) & 0xff);\r\n        put_byte(s, (s.gzhead.time >> 16) & 0xff);\r\n        put_byte(s, (s.gzhead.time >> 24) & 0xff);\r\n        put_byte(s, s.level === 9 ? 2 :\r\n                    (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?\r\n                     4 : 0));\r\n        put_byte(s, s.gzhead.os & 0xff);\r\n        if (s.gzhead.extra && s.gzhead.extra.length) {\r\n          put_byte(s, s.gzhead.extra.length & 0xff);\r\n          put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);\r\n        }\r\n        if (s.gzhead.hcrc) {\r\n          strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);\r\n        }\r\n        s.gzindex = 0;\r\n        s.status = EXTRA_STATE;\r\n      }\r\n    }\r\n    else // DEFLATE header\r\n    {\r\n      var header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;\r\n      var level_flags = -1;\r\n\r\n      if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {\r\n        level_flags = 0;\r\n      } else if (s.level < 6) {\r\n        level_flags = 1;\r\n      } else if (s.level === 6) {\r\n        level_flags = 2;\r\n      } else {\r\n        level_flags = 3;\r\n      }\r\n      header |= (level_flags << 6);\r\n      if (s.strstart !== 0) { header |= PRESET_DICT; }\r\n      header += 31 - (header % 31);\r\n\r\n      s.status = BUSY_STATE;\r\n      putShortMSB(s, header);\r\n\r\n      /* Save the adler32 of the preset dictionary: */\r\n      if (s.strstart !== 0) {\r\n        putShortMSB(s, strm.adler >>> 16);\r\n        putShortMSB(s, strm.adler & 0xffff);\r\n      }\r\n      strm.adler = 1; // adler32(0L, Z_NULL, 0);\r\n    }\r\n  }\r\n\r\n//#ifdef GZIP\r\n  if (s.status === EXTRA_STATE) {\r\n    if (s.gzhead.extra/* != Z_NULL*/) {\r\n      beg = s.pending;  /* start of bytes to update crc */\r\n\r\n      while (s.gzindex < (s.gzhead.extra.length & 0xffff)) {\r\n        if (s.pending === s.pending_buf_size) {\r\n          if (s.gzhead.hcrc && s.pending > beg) {\r\n            strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\r\n          }\r\n          flush_pending(strm);\r\n          beg = s.pending;\r\n          if (s.pending === s.pending_buf_size) {\r\n            break;\r\n          }\r\n        }\r\n        put_byte(s, s.gzhead.extra[s.gzindex] & 0xff);\r\n        s.gzindex++;\r\n      }\r\n      if (s.gzhead.hcrc && s.pending > beg) {\r\n        strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\r\n      }\r\n      if (s.gzindex === s.gzhead.extra.length) {\r\n        s.gzindex = 0;\r\n        s.status = NAME_STATE;\r\n      }\r\n    }\r\n    else {\r\n      s.status = NAME_STATE;\r\n    }\r\n  }\r\n  if (s.status === NAME_STATE) {\r\n    if (s.gzhead.name/* != Z_NULL*/) {\r\n      beg = s.pending;  /* start of bytes to update crc */\r\n      //int val;\r\n\r\n      do {\r\n        if (s.pending === s.pending_buf_size) {\r\n          if (s.gzhead.hcrc && s.pending > beg) {\r\n            strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\r\n          }\r\n          flush_pending(strm);\r\n          beg = s.pending;\r\n          if (s.pending === s.pending_buf_size) {\r\n            val = 1;\r\n            break;\r\n          }\r\n        }\r\n        // JS specific: little magic to add zero terminator to end of string\r\n        if (s.gzindex < s.gzhead.name.length) {\r\n          val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;\r\n        } else {\r\n          val = 0;\r\n        }\r\n        put_byte(s, val);\r\n      } while (val !== 0);\r\n\r\n      if (s.gzhead.hcrc && s.pending > beg) {\r\n        strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\r\n      }\r\n      if (val === 0) {\r\n        s.gzindex = 0;\r\n        s.status = COMMENT_STATE;\r\n      }\r\n    }\r\n    else {\r\n      s.status = COMMENT_STATE;\r\n    }\r\n  }\r\n  if (s.status === COMMENT_STATE) {\r\n    if (s.gzhead.comment/* != Z_NULL*/) {\r\n      beg = s.pending;  /* start of bytes to update crc */\r\n      //int val;\r\n\r\n      do {\r\n        if (s.pending === s.pending_buf_size) {\r\n          if (s.gzhead.hcrc && s.pending > beg) {\r\n            strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\r\n          }\r\n          flush_pending(strm);\r\n          beg = s.pending;\r\n          if (s.pending === s.pending_buf_size) {\r\n            val = 1;\r\n            break;\r\n          }\r\n        }\r\n        // JS specific: little magic to add zero terminator to end of string\r\n        if (s.gzindex < s.gzhead.comment.length) {\r\n          val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;\r\n        } else {\r\n          val = 0;\r\n        }\r\n        put_byte(s, val);\r\n      } while (val !== 0);\r\n\r\n      if (s.gzhead.hcrc && s.pending > beg) {\r\n        strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\r\n      }\r\n      if (val === 0) {\r\n        s.status = HCRC_STATE;\r\n      }\r\n    }\r\n    else {\r\n      s.status = HCRC_STATE;\r\n    }\r\n  }\r\n  if (s.status === HCRC_STATE) {\r\n    if (s.gzhead.hcrc) {\r\n      if (s.pending + 2 > s.pending_buf_size) {\r\n        flush_pending(strm);\r\n      }\r\n      if (s.pending + 2 <= s.pending_buf_size) {\r\n        put_byte(s, strm.adler & 0xff);\r\n        put_byte(s, (strm.adler >> 8) & 0xff);\r\n        strm.adler = 0; //crc32(0L, Z_NULL, 0);\r\n        s.status = BUSY_STATE;\r\n      }\r\n    }\r\n    else {\r\n      s.status = BUSY_STATE;\r\n    }\r\n  }\r\n//#endif\r\n\r\n  /* Flush as much pending output as possible */\r\n  if (s.pending !== 0) {\r\n    flush_pending(strm);\r\n    if (strm.avail_out === 0) {\r\n      /* Since avail_out is 0, deflate will be called again with\r\n       * more output space, but possibly with both pending and\r\n       * avail_in equal to zero. There won't be anything to do,\r\n       * but this is not an error situation so make sure we\r\n       * return OK instead of BUF_ERROR at next call of deflate:\r\n       */\r\n      s.last_flush = -1;\r\n      return Z_OK;\r\n    }\r\n\r\n    /* Make sure there is something to do and avoid duplicate consecutive\r\n     * flushes. For repeated and useless calls with Z_FINISH, we keep\r\n     * returning Z_STREAM_END instead of Z_BUF_ERROR.\r\n     */\r\n  } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&\r\n    flush !== Z_FINISH) {\r\n    return err(strm, Z_BUF_ERROR);\r\n  }\r\n\r\n  /* User must not provide more input after the first FINISH: */\r\n  if (s.status === FINISH_STATE && strm.avail_in !== 0) {\r\n    return err(strm, Z_BUF_ERROR);\r\n  }\r\n\r\n  /* Start a new block or continue the current one.\r\n   */\r\n  if (strm.avail_in !== 0 || s.lookahead !== 0 ||\r\n    (flush !== Z_NO_FLUSH && s.status !== FINISH_STATE)) {\r\n    var bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) :\r\n      (s.strategy === Z_RLE ? deflate_rle(s, flush) :\r\n        configuration_table[s.level].func(s, flush));\r\n\r\n    if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {\r\n      s.status = FINISH_STATE;\r\n    }\r\n    if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {\r\n      if (strm.avail_out === 0) {\r\n        s.last_flush = -1;\r\n        /* avoid BUF_ERROR next call, see above */\r\n      }\r\n      return Z_OK;\r\n      /* If flush != Z_NO_FLUSH && avail_out == 0, the next call\r\n       * of deflate should use the same flush parameter to make sure\r\n       * that the flush is complete. So we don't have to output an\r\n       * empty block here, this will be done at next call. This also\r\n       * ensures that for a very small output buffer, we emit at most\r\n       * one empty block.\r\n       */\r\n    }\r\n    if (bstate === BS_BLOCK_DONE) {\r\n      if (flush === Z_PARTIAL_FLUSH) {\r\n        trees._tr_align(s);\r\n      }\r\n      else if (flush !== Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */\r\n\r\n        trees._tr_stored_block(s, 0, 0, false);\r\n        /* For a full flush, this empty block will be recognized\r\n         * as a special marker by inflate_sync().\r\n         */\r\n        if (flush === Z_FULL_FLUSH) {\r\n          /*** CLEAR_HASH(s); ***/             /* forget history */\r\n          zero(s.head); // Fill with NIL (= 0);\r\n\r\n          if (s.lookahead === 0) {\r\n            s.strstart = 0;\r\n            s.block_start = 0;\r\n            s.insert = 0;\r\n          }\r\n        }\r\n      }\r\n      flush_pending(strm);\r\n      if (strm.avail_out === 0) {\r\n        s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */\r\n        return Z_OK;\r\n      }\r\n    }\r\n  }\r\n  //Assert(strm->avail_out > 0, \"bug2\");\r\n  //if (strm.avail_out <= 0) { throw new Error(\"bug2\");}\r\n\r\n  if (flush !== Z_FINISH) { return Z_OK; }\r\n  if (s.wrap <= 0) { return Z_STREAM_END; }\r\n\r\n  /* Write the trailer */\r\n  if (s.wrap === 2) {\r\n    put_byte(s, strm.adler & 0xff);\r\n    put_byte(s, (strm.adler >> 8) & 0xff);\r\n    put_byte(s, (strm.adler >> 16) & 0xff);\r\n    put_byte(s, (strm.adler >> 24) & 0xff);\r\n    put_byte(s, strm.total_in & 0xff);\r\n    put_byte(s, (strm.total_in >> 8) & 0xff);\r\n    put_byte(s, (strm.total_in >> 16) & 0xff);\r\n    put_byte(s, (strm.total_in >> 24) & 0xff);\r\n  }\r\n  else\r\n  {\r\n    putShortMSB(s, strm.adler >>> 16);\r\n    putShortMSB(s, strm.adler & 0xffff);\r\n  }\r\n\r\n  flush_pending(strm);\r\n  /* If avail_out is zero, the application will call deflate again\r\n   * to flush the rest.\r\n   */\r\n  if (s.wrap > 0) { s.wrap = -s.wrap; }\r\n  /* write the trailer only once! */\r\n  return s.pending !== 0 ? Z_OK : Z_STREAM_END;\r\n}\r\n\r\nfunction deflateEnd(strm) {\r\n  var status;\r\n\r\n  if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {\r\n    return Z_STREAM_ERROR;\r\n  }\r\n\r\n  status = strm.state.status;\r\n  if (status !== INIT_STATE &&\r\n    status !== EXTRA_STATE &&\r\n    status !== NAME_STATE &&\r\n    status !== COMMENT_STATE &&\r\n    status !== HCRC_STATE &&\r\n    status !== BUSY_STATE &&\r\n    status !== FINISH_STATE\r\n  ) {\r\n    return err(strm, Z_STREAM_ERROR);\r\n  }\r\n\r\n  strm.state = null;\r\n\r\n  return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK;\r\n}\r\n\r\n\r\n/* =========================================================================\r\n * Initializes the compression dictionary from the given byte\r\n * sequence without producing any compressed output.\r\n */\r\nfunction deflateSetDictionary(strm, dictionary) {\r\n  var dictLength = dictionary.length;\r\n\r\n  var s;\r\n  var str, n;\r\n  var wrap;\r\n  var avail;\r\n  var next;\r\n  var input;\r\n  var tmpDict;\r\n\r\n  if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {\r\n    return Z_STREAM_ERROR;\r\n  }\r\n\r\n  s = strm.state;\r\n  wrap = s.wrap;\r\n\r\n  if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) {\r\n    return Z_STREAM_ERROR;\r\n  }\r\n\r\n  /* when using zlib wrappers, compute Adler-32 for provided dictionary */\r\n  if (wrap === 1) {\r\n    /* adler32(strm->adler, dictionary, dictLength); */\r\n    strm.adler = adler32(strm.adler, dictionary, dictLength, 0);\r\n  }\r\n\r\n  s.wrap = 0;   /* avoid computing Adler-32 in read_buf */\r\n\r\n  /* if dictionary would fill window, just replace the history */\r\n  if (dictLength >= s.w_size) {\r\n    if (wrap === 0) {            /* already empty otherwise */\r\n      /*** CLEAR_HASH(s); ***/\r\n      zero(s.head); // Fill with NIL (= 0);\r\n      s.strstart = 0;\r\n      s.block_start = 0;\r\n      s.insert = 0;\r\n    }\r\n    /* use the tail */\r\n    // dictionary = dictionary.slice(dictLength - s.w_size);\r\n    tmpDict = new utils.Buf8(s.w_size);\r\n    utils.arraySet(tmpDict, dictionary, dictLength - s.w_size, s.w_size, 0);\r\n    dictionary = tmpDict;\r\n    dictLength = s.w_size;\r\n  }\r\n  /* insert dictionary into window and hash */\r\n  avail = strm.avail_in;\r\n  next = strm.next_in;\r\n  input = strm.input;\r\n  strm.avail_in = dictLength;\r\n  strm.next_in = 0;\r\n  strm.input = dictionary;\r\n  fill_window(s);\r\n  while (s.lookahead >= MIN_MATCH) {\r\n    str = s.strstart;\r\n    n = s.lookahead - (MIN_MATCH - 1);\r\n    do {\r\n      /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */\r\n      s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;\r\n\r\n      s.prev[str & s.w_mask] = s.head[s.ins_h];\r\n\r\n      s.head[s.ins_h] = str;\r\n      str++;\r\n    } while (--n);\r\n    s.strstart = str;\r\n    s.lookahead = MIN_MATCH - 1;\r\n    fill_window(s);\r\n  }\r\n  s.strstart += s.lookahead;\r\n  s.block_start = s.strstart;\r\n  s.insert = s.lookahead;\r\n  s.lookahead = 0;\r\n  s.match_length = s.prev_length = MIN_MATCH - 1;\r\n  s.match_available = 0;\r\n  strm.next_in = next;\r\n  strm.input = input;\r\n  strm.avail_in = avail;\r\n  s.wrap = wrap;\r\n  return Z_OK;\r\n}\r\n\r\n\r\nexports.deflateInit = deflateInit;\r\nexports.deflateInit2 = deflateInit2;\r\nexports.deflateReset = deflateReset;\r\nexports.deflateResetKeep = deflateResetKeep;\r\nexports.deflateSetHeader = deflateSetHeader;\r\nexports.deflate = deflate;\r\nexports.deflateEnd = deflateEnd;\r\nexports.deflateSetDictionary = deflateSetDictionary;\r\nexports.deflateInfo = 'pako deflate (from Nodeca project)';\r\n\r\n/* Not implemented\r\nexports.deflateBound = deflateBound;\r\nexports.deflateCopy = deflateCopy;\r\nexports.deflateParams = deflateParams;\r\nexports.deflatePending = deflatePending;\r\nexports.deflatePrime = deflatePrime;\r\nexports.deflateTune = deflateTune;\r\n*/\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/deflate.js\n// module id = 725\n// module chunks = 2","'use strict';\r\n\r\n\r\nfunction GZheader() {\r\n  /* true if compressed data believed to be text */\r\n  this.text       = 0;\r\n  /* modification time */\r\n  this.time       = 0;\r\n  /* extra flags (not used when writing a gzip file) */\r\n  this.xflags     = 0;\r\n  /* operating system */\r\n  this.os         = 0;\r\n  /* pointer to extra field or Z_NULL if none */\r\n  this.extra      = null;\r\n  /* extra field length (valid if extra != Z_NULL) */\r\n  this.extra_len  = 0; // Actually, we don't need it in JS,\r\n                       // but leave for few code modifications\r\n\r\n  //\r\n  // Setup limits is not necessary because in js we should not preallocate memory\r\n  // for inflate use constant limit in 65536 bytes\r\n  //\r\n\r\n  /* space at extra (only when reading header) */\r\n  // this.extra_max  = 0;\r\n  /* pointer to zero-terminated file name or Z_NULL */\r\n  this.name       = '';\r\n  /* space at name (only when reading header) */\r\n  // this.name_max   = 0;\r\n  /* pointer to zero-terminated comment or Z_NULL */\r\n  this.comment    = '';\r\n  /* space at comment (only when reading header) */\r\n  // this.comm_max   = 0;\r\n  /* true if there was or will be a header crc */\r\n  this.hcrc       = 0;\r\n  /* true when done reading gzip header (not used when writing a gzip file) */\r\n  this.done       = false;\r\n}\r\n\r\nmodule.exports = GZheader;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/gzheader.js\n// module id = 726\n// module chunks = 2","'use strict';\r\n\r\n// See state defs from inflate.js\r\nvar BAD = 30;       /* got a data error -- remain here until reset */\r\nvar TYPE = 12;      /* i: waiting for type bits, including last-flag bit */\r\n\r\n/*\r\n   Decode literal, length, and distance codes and write out the resulting\r\n   literal and match bytes until either not enough input or output is\r\n   available, an end-of-block is encountered, or a data error is encountered.\r\n   When large enough input and output buffers are supplied to inflate(), for\r\n   example, a 16K input buffer and a 64K output buffer, more than 95% of the\r\n   inflate execution time is spent in this routine.\r\n\r\n   Entry assumptions:\r\n\r\n        state.mode === LEN\r\n        strm.avail_in >= 6\r\n        strm.avail_out >= 258\r\n        start >= strm.avail_out\r\n        state.bits < 8\r\n\r\n   On return, state.mode is one of:\r\n\r\n        LEN -- ran out of enough output space or enough available input\r\n        TYPE -- reached end of block code, inflate() to interpret next block\r\n        BAD -- error in block data\r\n\r\n   Notes:\r\n\r\n    - The maximum input bits used by a length/distance pair is 15 bits for the\r\n      length code, 5 bits for the length extra, 15 bits for the distance code,\r\n      and 13 bits for the distance extra.  This totals 48 bits, or six bytes.\r\n      Therefore if strm.avail_in >= 6, then there is enough input to avoid\r\n      checking for available input while decoding.\r\n\r\n    - The maximum bytes that a single length/distance pair can output is 258\r\n      bytes, which is the maximum length that can be coded.  inflate_fast()\r\n      requires strm.avail_out >= 258 for each loop to avoid checking for\r\n      output space.\r\n */\r\nmodule.exports = function inflate_fast(strm, start) {\r\n  var state;\r\n  var _in;                    /* local strm.input */\r\n  var last;                   /* have enough input while in < last */\r\n  var _out;                   /* local strm.output */\r\n  var beg;                    /* inflate()'s initial strm.output */\r\n  var end;                    /* while out < end, enough space available */\r\n//#ifdef INFLATE_STRICT\r\n  var dmax;                   /* maximum distance from zlib header */\r\n//#endif\r\n  var wsize;                  /* window size or zero if not using window */\r\n  var whave;                  /* valid bytes in the window */\r\n  var wnext;                  /* window write index */\r\n  // Use `s_window` instead `window`, avoid conflict with instrumentation tools\r\n  var s_window;               /* allocated sliding window, if wsize != 0 */\r\n  var hold;                   /* local strm.hold */\r\n  var bits;                   /* local strm.bits */\r\n  var lcode;                  /* local strm.lencode */\r\n  var dcode;                  /* local strm.distcode */\r\n  var lmask;                  /* mask for first level of length codes */\r\n  var dmask;                  /* mask for first level of distance codes */\r\n  var here;                   /* retrieved table entry */\r\n  var op;                     /* code bits, operation, extra bits, or */\r\n                              /*  window position, window bytes to copy */\r\n  var len;                    /* match length, unused bytes */\r\n  var dist;                   /* match distance */\r\n  var from;                   /* where to copy match from */\r\n  var from_source;\r\n\r\n\r\n  var input, output; // JS specific, because we have no pointers\r\n\r\n  /* copy state to local variables */\r\n  state = strm.state;\r\n  //here = state.here;\r\n  _in = strm.next_in;\r\n  input = strm.input;\r\n  last = _in + (strm.avail_in - 5);\r\n  _out = strm.next_out;\r\n  output = strm.output;\r\n  beg = _out - (start - strm.avail_out);\r\n  end = _out + (strm.avail_out - 257);\r\n//#ifdef INFLATE_STRICT\r\n  dmax = state.dmax;\r\n//#endif\r\n  wsize = state.wsize;\r\n  whave = state.whave;\r\n  wnext = state.wnext;\r\n  s_window = state.window;\r\n  hold = state.hold;\r\n  bits = state.bits;\r\n  lcode = state.lencode;\r\n  dcode = state.distcode;\r\n  lmask = (1 << state.lenbits) - 1;\r\n  dmask = (1 << state.distbits) - 1;\r\n\r\n\r\n  /* decode literals and length/distances until end-of-block or not enough\r\n     input data or output space */\r\n\r\n  top:\r\n  do {\r\n    if (bits < 15) {\r\n      hold += input[_in++] << bits;\r\n      bits += 8;\r\n      hold += input[_in++] << bits;\r\n      bits += 8;\r\n    }\r\n\r\n    here = lcode[hold & lmask];\r\n\r\n    dolen:\r\n    for (;;) { // Goto emulation\r\n      op = here >>> 24/*here.bits*/;\r\n      hold >>>= op;\r\n      bits -= op;\r\n      op = (here >>> 16) & 0xff/*here.op*/;\r\n      if (op === 0) {                          /* literal */\r\n        //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\r\n        //        \"inflate:         literal '%c'\\n\" :\r\n        //        \"inflate:         literal 0x%02x\\n\", here.val));\r\n        output[_out++] = here & 0xffff/*here.val*/;\r\n      }\r\n      else if (op & 16) {                     /* length base */\r\n        len = here & 0xffff/*here.val*/;\r\n        op &= 15;                           /* number of extra bits */\r\n        if (op) {\r\n          if (bits < op) {\r\n            hold += input[_in++] << bits;\r\n            bits += 8;\r\n          }\r\n          len += hold & ((1 << op) - 1);\r\n          hold >>>= op;\r\n          bits -= op;\r\n        }\r\n        //Tracevv((stderr, \"inflate:         length %u\\n\", len));\r\n        if (bits < 15) {\r\n          hold += input[_in++] << bits;\r\n          bits += 8;\r\n          hold += input[_in++] << bits;\r\n          bits += 8;\r\n        }\r\n        here = dcode[hold & dmask];\r\n\r\n        dodist:\r\n        for (;;) { // goto emulation\r\n          op = here >>> 24/*here.bits*/;\r\n          hold >>>= op;\r\n          bits -= op;\r\n          op = (here >>> 16) & 0xff/*here.op*/;\r\n\r\n          if (op & 16) {                      /* distance base */\r\n            dist = here & 0xffff/*here.val*/;\r\n            op &= 15;                       /* number of extra bits */\r\n            if (bits < op) {\r\n              hold += input[_in++] << bits;\r\n              bits += 8;\r\n              if (bits < op) {\r\n                hold += input[_in++] << bits;\r\n                bits += 8;\r\n              }\r\n            }\r\n            dist += hold & ((1 << op) - 1);\r\n//#ifdef INFLATE_STRICT\r\n            if (dist > dmax) {\r\n              strm.msg = 'invalid distance too far back';\r\n              state.mode = BAD;\r\n              break top;\r\n            }\r\n//#endif\r\n            hold >>>= op;\r\n            bits -= op;\r\n            //Tracevv((stderr, \"inflate:         distance %u\\n\", dist));\r\n            op = _out - beg;                /* max distance in output */\r\n            if (dist > op) {                /* see if copy from window */\r\n              op = dist - op;               /* distance back in window */\r\n              if (op > whave) {\r\n                if (state.sane) {\r\n                  strm.msg = 'invalid distance too far back';\r\n                  state.mode = BAD;\r\n                  break top;\r\n                }\r\n\r\n// (!) This block is disabled in zlib defailts,\r\n// don't enable it for binary compatibility\r\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\r\n//                if (len <= op - whave) {\r\n//                  do {\r\n//                    output[_out++] = 0;\r\n//                  } while (--len);\r\n//                  continue top;\r\n//                }\r\n//                len -= op - whave;\r\n//                do {\r\n//                  output[_out++] = 0;\r\n//                } while (--op > whave);\r\n//                if (op === 0) {\r\n//                  from = _out - dist;\r\n//                  do {\r\n//                    output[_out++] = output[from++];\r\n//                  } while (--len);\r\n//                  continue top;\r\n//                }\r\n//#endif\r\n              }\r\n              from = 0; // window index\r\n              from_source = s_window;\r\n              if (wnext === 0) {           /* very common case */\r\n                from += wsize - op;\r\n                if (op < len) {         /* some from window */\r\n                  len -= op;\r\n                  do {\r\n                    output[_out++] = s_window[from++];\r\n                  } while (--op);\r\n                  from = _out - dist;  /* rest from output */\r\n                  from_source = output;\r\n                }\r\n              }\r\n              else if (wnext < op) {      /* wrap around window */\r\n                from += wsize + wnext - op;\r\n                op -= wnext;\r\n                if (op < len) {         /* some from end of window */\r\n                  len -= op;\r\n                  do {\r\n                    output[_out++] = s_window[from++];\r\n                  } while (--op);\r\n                  from = 0;\r\n                  if (wnext < len) {  /* some from start of window */\r\n                    op = wnext;\r\n                    len -= op;\r\n                    do {\r\n                      output[_out++] = s_window[from++];\r\n                    } while (--op);\r\n                    from = _out - dist;      /* rest from output */\r\n                    from_source = output;\r\n                  }\r\n                }\r\n              }\r\n              else {                      /* contiguous in window */\r\n                from += wnext - op;\r\n                if (op < len) {         /* some from window */\r\n                  len -= op;\r\n                  do {\r\n                    output[_out++] = s_window[from++];\r\n                  } while (--op);\r\n                  from = _out - dist;  /* rest from output */\r\n                  from_source = output;\r\n                }\r\n              }\r\n              while (len > 2) {\r\n                output[_out++] = from_source[from++];\r\n                output[_out++] = from_source[from++];\r\n                output[_out++] = from_source[from++];\r\n                len -= 3;\r\n              }\r\n              if (len) {\r\n                output[_out++] = from_source[from++];\r\n                if (len > 1) {\r\n                  output[_out++] = from_source[from++];\r\n                }\r\n              }\r\n            }\r\n            else {\r\n              from = _out - dist;          /* copy direct from output */\r\n              do {                        /* minimum length is three */\r\n                output[_out++] = output[from++];\r\n                output[_out++] = output[from++];\r\n                output[_out++] = output[from++];\r\n                len -= 3;\r\n              } while (len > 2);\r\n              if (len) {\r\n                output[_out++] = output[from++];\r\n                if (len > 1) {\r\n                  output[_out++] = output[from++];\r\n                }\r\n              }\r\n            }\r\n          }\r\n          else if ((op & 64) === 0) {          /* 2nd level distance code */\r\n            here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\r\n            continue dodist;\r\n          }\r\n          else {\r\n            strm.msg = 'invalid distance code';\r\n            state.mode = BAD;\r\n            break top;\r\n          }\r\n\r\n          break; // need to emulate goto via \"continue\"\r\n        }\r\n      }\r\n      else if ((op & 64) === 0) {              /* 2nd level length code */\r\n        here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\r\n        continue dolen;\r\n      }\r\n      else if (op & 32) {                     /* end-of-block */\r\n        //Tracevv((stderr, \"inflate:         end of block\\n\"));\r\n        state.mode = TYPE;\r\n        break top;\r\n      }\r\n      else {\r\n        strm.msg = 'invalid literal/length code';\r\n        state.mode = BAD;\r\n        break top;\r\n      }\r\n\r\n      break; // need to emulate goto via \"continue\"\r\n    }\r\n  } while (_in < last && _out < end);\r\n\r\n  /* return unused bytes (on entry, bits < 8, so in won't go too far back) */\r\n  len = bits >> 3;\r\n  _in -= len;\r\n  bits -= len << 3;\r\n  hold &= (1 << bits) - 1;\r\n\r\n  /* update state and return */\r\n  strm.next_in = _in;\r\n  strm.next_out = _out;\r\n  strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));\r\n  strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));\r\n  state.hold = hold;\r\n  state.bits = bits;\r\n  return;\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/inffast.js\n// module id = 727\n// module chunks = 2","'use strict';\r\n\r\n\r\nvar utils         = require('../utils/common');\r\nvar adler32       = require('./adler32');\r\nvar crc32         = require('./crc32');\r\nvar inflate_fast  = require('./inffast');\r\nvar inflate_table = require('./inftrees');\r\n\r\nvar CODES = 0;\r\nvar LENS = 1;\r\nvar DISTS = 2;\r\n\r\n/* Public constants ==========================================================*/\r\n/* ===========================================================================*/\r\n\r\n\r\n/* Allowed flush values; see deflate() and inflate() below for details */\r\n//var Z_NO_FLUSH      = 0;\r\n//var Z_PARTIAL_FLUSH = 1;\r\n//var Z_SYNC_FLUSH    = 2;\r\n//var Z_FULL_FLUSH    = 3;\r\nvar Z_FINISH        = 4;\r\nvar Z_BLOCK         = 5;\r\nvar Z_TREES         = 6;\r\n\r\n\r\n/* Return codes for the compression/decompression functions. Negative values\r\n * are errors, positive values are used for special but normal events.\r\n */\r\nvar Z_OK            = 0;\r\nvar Z_STREAM_END    = 1;\r\nvar Z_NEED_DICT     = 2;\r\n//var Z_ERRNO         = -1;\r\nvar Z_STREAM_ERROR  = -2;\r\nvar Z_DATA_ERROR    = -3;\r\nvar Z_MEM_ERROR     = -4;\r\nvar Z_BUF_ERROR     = -5;\r\n//var Z_VERSION_ERROR = -6;\r\n\r\n/* The deflate compression method */\r\nvar Z_DEFLATED  = 8;\r\n\r\n\r\n/* STATES ====================================================================*/\r\n/* ===========================================================================*/\r\n\r\n\r\nvar    HEAD = 1;       /* i: waiting for magic header */\r\nvar    FLAGS = 2;      /* i: waiting for method and flags (gzip) */\r\nvar    TIME = 3;       /* i: waiting for modification time (gzip) */\r\nvar    OS = 4;         /* i: waiting for extra flags and operating system (gzip) */\r\nvar    EXLEN = 5;      /* i: waiting for extra length (gzip) */\r\nvar    EXTRA = 6;      /* i: waiting for extra bytes (gzip) */\r\nvar    NAME = 7;       /* i: waiting for end of file name (gzip) */\r\nvar    COMMENT = 8;    /* i: waiting for end of comment (gzip) */\r\nvar    HCRC = 9;       /* i: waiting for header crc (gzip) */\r\nvar    DICTID = 10;    /* i: waiting for dictionary check value */\r\nvar    DICT = 11;      /* waiting for inflateSetDictionary() call */\r\nvar        TYPE = 12;      /* i: waiting for type bits, including last-flag bit */\r\nvar        TYPEDO = 13;    /* i: same, but skip check to exit inflate on new block */\r\nvar        STORED = 14;    /* i: waiting for stored size (length and complement) */\r\nvar        COPY_ = 15;     /* i/o: same as COPY below, but only first time in */\r\nvar        COPY = 16;      /* i/o: waiting for input or output to copy stored block */\r\nvar        TABLE = 17;     /* i: waiting for dynamic block table lengths */\r\nvar        LENLENS = 18;   /* i: waiting for code length code lengths */\r\nvar        CODELENS = 19;  /* i: waiting for length/lit and distance code lengths */\r\nvar            LEN_ = 20;      /* i: same as LEN below, but only first time in */\r\nvar            LEN = 21;       /* i: waiting for length/lit/eob code */\r\nvar            LENEXT = 22;    /* i: waiting for length extra bits */\r\nvar            DIST = 23;      /* i: waiting for distance code */\r\nvar            DISTEXT = 24;   /* i: waiting for distance extra bits */\r\nvar            MATCH = 25;     /* o: waiting for output space to copy string */\r\nvar            LIT = 26;       /* o: waiting for output space to write literal */\r\nvar    CHECK = 27;     /* i: waiting for 32-bit check value */\r\nvar    LENGTH = 28;    /* i: waiting for 32-bit length (gzip) */\r\nvar    DONE = 29;      /* finished check, done -- remain here until reset */\r\nvar    BAD = 30;       /* got a data error -- remain here until reset */\r\nvar    MEM = 31;       /* got an inflate() memory error -- remain here until reset */\r\nvar    SYNC = 32;      /* looking for synchronization bytes to restart inflate() */\r\n\r\n/* ===========================================================================*/\r\n\r\n\r\n\r\nvar ENOUGH_LENS = 852;\r\nvar ENOUGH_DISTS = 592;\r\n//var ENOUGH =  (ENOUGH_LENS+ENOUGH_DISTS);\r\n\r\nvar MAX_WBITS = 15;\r\n/* 32K LZ77 window */\r\nvar DEF_WBITS = MAX_WBITS;\r\n\r\n\r\nfunction zswap32(q) {\r\n  return  (((q >>> 24) & 0xff) +\r\n          ((q >>> 8) & 0xff00) +\r\n          ((q & 0xff00) << 8) +\r\n          ((q & 0xff) << 24));\r\n}\r\n\r\n\r\nfunction InflateState() {\r\n  this.mode = 0;             /* current inflate mode */\r\n  this.last = false;          /* true if processing last block */\r\n  this.wrap = 0;              /* bit 0 true for zlib, bit 1 true for gzip */\r\n  this.havedict = false;      /* true if dictionary provided */\r\n  this.flags = 0;             /* gzip header method and flags (0 if zlib) */\r\n  this.dmax = 0;              /* zlib header max distance (INFLATE_STRICT) */\r\n  this.check = 0;             /* protected copy of check value */\r\n  this.total = 0;             /* protected copy of output count */\r\n  // TODO: may be {}\r\n  this.head = null;           /* where to save gzip header information */\r\n\r\n  /* sliding window */\r\n  this.wbits = 0;             /* log base 2 of requested window size */\r\n  this.wsize = 0;             /* window size or zero if not using window */\r\n  this.whave = 0;             /* valid bytes in the window */\r\n  this.wnext = 0;             /* window write index */\r\n  this.window = null;         /* allocated sliding window, if needed */\r\n\r\n  /* bit accumulator */\r\n  this.hold = 0;              /* input bit accumulator */\r\n  this.bits = 0;              /* number of bits in \"in\" */\r\n\r\n  /* for string and stored block copying */\r\n  this.length = 0;            /* literal or length of data to copy */\r\n  this.offset = 0;            /* distance back to copy string from */\r\n\r\n  /* for table and code decoding */\r\n  this.extra = 0;             /* extra bits needed */\r\n\r\n  /* fixed and dynamic code tables */\r\n  this.lencode = null;          /* starting table for length/literal codes */\r\n  this.distcode = null;         /* starting table for distance codes */\r\n  this.lenbits = 0;           /* index bits for lencode */\r\n  this.distbits = 0;          /* index bits for distcode */\r\n\r\n  /* dynamic table building */\r\n  this.ncode = 0;             /* number of code length code lengths */\r\n  this.nlen = 0;              /* number of length code lengths */\r\n  this.ndist = 0;             /* number of distance code lengths */\r\n  this.have = 0;              /* number of code lengths in lens[] */\r\n  this.next = null;              /* next available space in codes[] */\r\n\r\n  this.lens = new utils.Buf16(320); /* temporary storage for code lengths */\r\n  this.work = new utils.Buf16(288); /* work area for code table building */\r\n\r\n  /*\r\n   because we don't have pointers in js, we use lencode and distcode directly\r\n   as buffers so we don't need codes\r\n  */\r\n  //this.codes = new utils.Buf32(ENOUGH);       /* space for code tables */\r\n  this.lendyn = null;              /* dynamic table for length/literal codes (JS specific) */\r\n  this.distdyn = null;             /* dynamic table for distance codes (JS specific) */\r\n  this.sane = 0;                   /* if false, allow invalid distance too far */\r\n  this.back = 0;                   /* bits back of last unprocessed length/lit */\r\n  this.was = 0;                    /* initial length of match */\r\n}\r\n\r\nfunction inflateResetKeep(strm) {\r\n  var state;\r\n\r\n  if (!strm || !strm.state) { return Z_STREAM_ERROR; }\r\n  state = strm.state;\r\n  strm.total_in = strm.total_out = state.total = 0;\r\n  strm.msg = ''; /*Z_NULL*/\r\n  if (state.wrap) {       /* to support ill-conceived Java test suite */\r\n    strm.adler = state.wrap & 1;\r\n  }\r\n  state.mode = HEAD;\r\n  state.last = 0;\r\n  state.havedict = 0;\r\n  state.dmax = 32768;\r\n  state.head = null/*Z_NULL*/;\r\n  state.hold = 0;\r\n  state.bits = 0;\r\n  //state.lencode = state.distcode = state.next = state.codes;\r\n  state.lencode = state.lendyn = new utils.Buf32(ENOUGH_LENS);\r\n  state.distcode = state.distdyn = new utils.Buf32(ENOUGH_DISTS);\r\n\r\n  state.sane = 1;\r\n  state.back = -1;\r\n  //Tracev((stderr, \"inflate: reset\\n\"));\r\n  return Z_OK;\r\n}\r\n\r\nfunction inflateReset(strm) {\r\n  var state;\r\n\r\n  if (!strm || !strm.state) { return Z_STREAM_ERROR; }\r\n  state = strm.state;\r\n  state.wsize = 0;\r\n  state.whave = 0;\r\n  state.wnext = 0;\r\n  return inflateResetKeep(strm);\r\n\r\n}\r\n\r\nfunction inflateReset2(strm, windowBits) {\r\n  var wrap;\r\n  var state;\r\n\r\n  /* get the state */\r\n  if (!strm || !strm.state) { return Z_STREAM_ERROR; }\r\n  state = strm.state;\r\n\r\n  /* extract wrap request from windowBits parameter */\r\n  if (windowBits < 0) {\r\n    wrap = 0;\r\n    windowBits = -windowBits;\r\n  }\r\n  else {\r\n    wrap = (windowBits >> 4) + 1;\r\n    if (windowBits < 48) {\r\n      windowBits &= 15;\r\n    }\r\n  }\r\n\r\n  /* set number of window bits, free window if different */\r\n  if (windowBits && (windowBits < 8 || windowBits > 15)) {\r\n    return Z_STREAM_ERROR;\r\n  }\r\n  if (state.window !== null && state.wbits !== windowBits) {\r\n    state.window = null;\r\n  }\r\n\r\n  /* update state and reset the rest of it */\r\n  state.wrap = wrap;\r\n  state.wbits = windowBits;\r\n  return inflateReset(strm);\r\n}\r\n\r\nfunction inflateInit2(strm, windowBits) {\r\n  var ret;\r\n  var state;\r\n\r\n  if (!strm) { return Z_STREAM_ERROR; }\r\n  //strm.msg = Z_NULL;                 /* in case we return an error */\r\n\r\n  state = new InflateState();\r\n\r\n  //if (state === Z_NULL) return Z_MEM_ERROR;\r\n  //Tracev((stderr, \"inflate: allocated\\n\"));\r\n  strm.state = state;\r\n  state.window = null/*Z_NULL*/;\r\n  ret = inflateReset2(strm, windowBits);\r\n  if (ret !== Z_OK) {\r\n    strm.state = null/*Z_NULL*/;\r\n  }\r\n  return ret;\r\n}\r\n\r\nfunction inflateInit(strm) {\r\n  return inflateInit2(strm, DEF_WBITS);\r\n}\r\n\r\n\r\n/*\r\n Return state with length and distance decoding tables and index sizes set to\r\n fixed code decoding.  Normally this returns fixed tables from inffixed.h.\r\n If BUILDFIXED is defined, then instead this routine builds the tables the\r\n first time it's called, and returns those tables the first time and\r\n thereafter.  This reduces the size of the code by about 2K bytes, in\r\n exchange for a little execution time.  However, BUILDFIXED should not be\r\n used for threaded applications, since the rewriting of the tables and virgin\r\n may not be thread-safe.\r\n */\r\nvar virgin = true;\r\n\r\nvar lenfix, distfix; // We have no pointers in JS, so keep tables separate\r\n\r\nfunction fixedtables(state) {\r\n  /* build fixed huffman tables if first call (may not be thread safe) */\r\n  if (virgin) {\r\n    var sym;\r\n\r\n    lenfix = new utils.Buf32(512);\r\n    distfix = new utils.Buf32(32);\r\n\r\n    /* literal/length table */\r\n    sym = 0;\r\n    while (sym < 144) { state.lens[sym++] = 8; }\r\n    while (sym < 256) { state.lens[sym++] = 9; }\r\n    while (sym < 280) { state.lens[sym++] = 7; }\r\n    while (sym < 288) { state.lens[sym++] = 8; }\r\n\r\n    inflate_table(LENS,  state.lens, 0, 288, lenfix,   0, state.work, { bits: 9 });\r\n\r\n    /* distance table */\r\n    sym = 0;\r\n    while (sym < 32) { state.lens[sym++] = 5; }\r\n\r\n    inflate_table(DISTS, state.lens, 0, 32,   distfix, 0, state.work, { bits: 5 });\r\n\r\n    /* do this just once */\r\n    virgin = false;\r\n  }\r\n\r\n  state.lencode = lenfix;\r\n  state.lenbits = 9;\r\n  state.distcode = distfix;\r\n  state.distbits = 5;\r\n}\r\n\r\n\r\n/*\r\n Update the window with the last wsize (normally 32K) bytes written before\r\n returning.  If window does not exist yet, create it.  This is only called\r\n when a window is already in use, or when output has been written during this\r\n inflate call, but the end of the deflate stream has not been reached yet.\r\n It is also called to create a window for dictionary data when a dictionary\r\n is loaded.\r\n\r\n Providing output buffers larger than 32K to inflate() should provide a speed\r\n advantage, since only the last 32K of output is copied to the sliding window\r\n upon return from inflate(), and since all distances after the first 32K of\r\n output will fall in the output data, making match copies simpler and faster.\r\n The advantage may be dependent on the size of the processor's data caches.\r\n */\r\nfunction updatewindow(strm, src, end, copy) {\r\n  var dist;\r\n  var state = strm.state;\r\n\r\n  /* if it hasn't been done already, allocate space for the window */\r\n  if (state.window === null) {\r\n    state.wsize = 1 << state.wbits;\r\n    state.wnext = 0;\r\n    state.whave = 0;\r\n\r\n    state.window = new utils.Buf8(state.wsize);\r\n  }\r\n\r\n  /* copy state->wsize or less output bytes into the circular window */\r\n  if (copy >= state.wsize) {\r\n    utils.arraySet(state.window, src, end - state.wsize, state.wsize, 0);\r\n    state.wnext = 0;\r\n    state.whave = state.wsize;\r\n  }\r\n  else {\r\n    dist = state.wsize - state.wnext;\r\n    if (dist > copy) {\r\n      dist = copy;\r\n    }\r\n    //zmemcpy(state->window + state->wnext, end - copy, dist);\r\n    utils.arraySet(state.window, src, end - copy, dist, state.wnext);\r\n    copy -= dist;\r\n    if (copy) {\r\n      //zmemcpy(state->window, end - copy, copy);\r\n      utils.arraySet(state.window, src, end - copy, copy, 0);\r\n      state.wnext = copy;\r\n      state.whave = state.wsize;\r\n    }\r\n    else {\r\n      state.wnext += dist;\r\n      if (state.wnext === state.wsize) { state.wnext = 0; }\r\n      if (state.whave < state.wsize) { state.whave += dist; }\r\n    }\r\n  }\r\n  return 0;\r\n}\r\n\r\nfunction inflate(strm, flush) {\r\n  var state;\r\n  var input, output;          // input/output buffers\r\n  var next;                   /* next input INDEX */\r\n  var put;                    /* next output INDEX */\r\n  var have, left;             /* available input and output */\r\n  var hold;                   /* bit buffer */\r\n  var bits;                   /* bits in bit buffer */\r\n  var _in, _out;              /* save starting available input and output */\r\n  var copy;                   /* number of stored or match bytes to copy */\r\n  var from;                   /* where to copy match bytes from */\r\n  var from_source;\r\n  var here = 0;               /* current decoding table entry */\r\n  var here_bits, here_op, here_val; // paked \"here\" denormalized (JS specific)\r\n  //var last;                   /* parent table entry */\r\n  var last_bits, last_op, last_val; // paked \"last\" denormalized (JS specific)\r\n  var len;                    /* length to copy for repeats, bits to drop */\r\n  var ret;                    /* return code */\r\n  var hbuf = new utils.Buf8(4);    /* buffer for gzip header crc calculation */\r\n  var opts;\r\n\r\n  var n; // temporary var for NEED_BITS\r\n\r\n  var order = /* permutation of code lengths */\r\n    [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ];\r\n\r\n\r\n  if (!strm || !strm.state || !strm.output ||\r\n      (!strm.input && strm.avail_in !== 0)) {\r\n    return Z_STREAM_ERROR;\r\n  }\r\n\r\n  state = strm.state;\r\n  if (state.mode === TYPE) { state.mode = TYPEDO; }    /* skip check */\r\n\r\n\r\n  //--- LOAD() ---\r\n  put = strm.next_out;\r\n  output = strm.output;\r\n  left = strm.avail_out;\r\n  next = strm.next_in;\r\n  input = strm.input;\r\n  have = strm.avail_in;\r\n  hold = state.hold;\r\n  bits = state.bits;\r\n  //---\r\n\r\n  _in = have;\r\n  _out = left;\r\n  ret = Z_OK;\r\n\r\n  inf_leave: // goto emulation\r\n  for (;;) {\r\n    switch (state.mode) {\r\n    case HEAD:\r\n      if (state.wrap === 0) {\r\n        state.mode = TYPEDO;\r\n        break;\r\n      }\r\n      //=== NEEDBITS(16);\r\n      while (bits < 16) {\r\n        if (have === 0) { break inf_leave; }\r\n        have--;\r\n        hold += input[next++] << bits;\r\n        bits += 8;\r\n      }\r\n      //===//\r\n      if ((state.wrap & 2) && hold === 0x8b1f) {  /* gzip header */\r\n        state.check = 0/*crc32(0L, Z_NULL, 0)*/;\r\n        //=== CRC2(state.check, hold);\r\n        hbuf[0] = hold & 0xff;\r\n        hbuf[1] = (hold >>> 8) & 0xff;\r\n        state.check = crc32(state.check, hbuf, 2, 0);\r\n        //===//\r\n\r\n        //=== INITBITS();\r\n        hold = 0;\r\n        bits = 0;\r\n        //===//\r\n        state.mode = FLAGS;\r\n        break;\r\n      }\r\n      state.flags = 0;           /* expect zlib header */\r\n      if (state.head) {\r\n        state.head.done = false;\r\n      }\r\n      if (!(state.wrap & 1) ||   /* check if zlib header allowed */\r\n        (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {\r\n        strm.msg = 'incorrect header check';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n      if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {\r\n        strm.msg = 'unknown compression method';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n      //--- DROPBITS(4) ---//\r\n      hold >>>= 4;\r\n      bits -= 4;\r\n      //---//\r\n      len = (hold & 0x0f)/*BITS(4)*/ + 8;\r\n      if (state.wbits === 0) {\r\n        state.wbits = len;\r\n      }\r\n      else if (len > state.wbits) {\r\n        strm.msg = 'invalid window size';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n      state.dmax = 1 << len;\r\n      //Tracev((stderr, \"inflate:   zlib header ok\\n\"));\r\n      strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\r\n      state.mode = hold & 0x200 ? DICTID : TYPE;\r\n      //=== INITBITS();\r\n      hold = 0;\r\n      bits = 0;\r\n      //===//\r\n      break;\r\n    case FLAGS:\r\n      //=== NEEDBITS(16); */\r\n      while (bits < 16) {\r\n        if (have === 0) { break inf_leave; }\r\n        have--;\r\n        hold += input[next++] << bits;\r\n        bits += 8;\r\n      }\r\n      //===//\r\n      state.flags = hold;\r\n      if ((state.flags & 0xff) !== Z_DEFLATED) {\r\n        strm.msg = 'unknown compression method';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n      if (state.flags & 0xe000) {\r\n        strm.msg = 'unknown header flags set';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n      if (state.head) {\r\n        state.head.text = ((hold >> 8) & 1);\r\n      }\r\n      if (state.flags & 0x0200) {\r\n        //=== CRC2(state.check, hold);\r\n        hbuf[0] = hold & 0xff;\r\n        hbuf[1] = (hold >>> 8) & 0xff;\r\n        state.check = crc32(state.check, hbuf, 2, 0);\r\n        //===//\r\n      }\r\n      //=== INITBITS();\r\n      hold = 0;\r\n      bits = 0;\r\n      //===//\r\n      state.mode = TIME;\r\n      /* falls through */\r\n    case TIME:\r\n      //=== NEEDBITS(32); */\r\n      while (bits < 32) {\r\n        if (have === 0) { break inf_leave; }\r\n        have--;\r\n        hold += input[next++] << bits;\r\n        bits += 8;\r\n      }\r\n      //===//\r\n      if (state.head) {\r\n        state.head.time = hold;\r\n      }\r\n      if (state.flags & 0x0200) {\r\n        //=== CRC4(state.check, hold)\r\n        hbuf[0] = hold & 0xff;\r\n        hbuf[1] = (hold >>> 8) & 0xff;\r\n        hbuf[2] = (hold >>> 16) & 0xff;\r\n        hbuf[3] = (hold >>> 24) & 0xff;\r\n        state.check = crc32(state.check, hbuf, 4, 0);\r\n        //===\r\n      }\r\n      //=== INITBITS();\r\n      hold = 0;\r\n      bits = 0;\r\n      //===//\r\n      state.mode = OS;\r\n      /* falls through */\r\n    case OS:\r\n      //=== NEEDBITS(16); */\r\n      while (bits < 16) {\r\n        if (have === 0) { break inf_leave; }\r\n        have--;\r\n        hold += input[next++] << bits;\r\n        bits += 8;\r\n      }\r\n      //===//\r\n      if (state.head) {\r\n        state.head.xflags = (hold & 0xff);\r\n        state.head.os = (hold >> 8);\r\n      }\r\n      if (state.flags & 0x0200) {\r\n        //=== CRC2(state.check, hold);\r\n        hbuf[0] = hold & 0xff;\r\n        hbuf[1] = (hold >>> 8) & 0xff;\r\n        state.check = crc32(state.check, hbuf, 2, 0);\r\n        //===//\r\n      }\r\n      //=== INITBITS();\r\n      hold = 0;\r\n      bits = 0;\r\n      //===//\r\n      state.mode = EXLEN;\r\n      /* falls through */\r\n    case EXLEN:\r\n      if (state.flags & 0x0400) {\r\n        //=== NEEDBITS(16); */\r\n        while (bits < 16) {\r\n          if (have === 0) { break inf_leave; }\r\n          have--;\r\n          hold += input[next++] << bits;\r\n          bits += 8;\r\n        }\r\n        //===//\r\n        state.length = hold;\r\n        if (state.head) {\r\n          state.head.extra_len = hold;\r\n        }\r\n        if (state.flags & 0x0200) {\r\n          //=== CRC2(state.check, hold);\r\n          hbuf[0] = hold & 0xff;\r\n          hbuf[1] = (hold >>> 8) & 0xff;\r\n          state.check = crc32(state.check, hbuf, 2, 0);\r\n          //===//\r\n        }\r\n        //=== INITBITS();\r\n        hold = 0;\r\n        bits = 0;\r\n        //===//\r\n      }\r\n      else if (state.head) {\r\n        state.head.extra = null/*Z_NULL*/;\r\n      }\r\n      state.mode = EXTRA;\r\n      /* falls through */\r\n    case EXTRA:\r\n      if (state.flags & 0x0400) {\r\n        copy = state.length;\r\n        if (copy > have) { copy = have; }\r\n        if (copy) {\r\n          if (state.head) {\r\n            len = state.head.extra_len - state.length;\r\n            if (!state.head.extra) {\r\n              // Use untyped array for more conveniend processing later\r\n              state.head.extra = new Array(state.head.extra_len);\r\n            }\r\n            utils.arraySet(\r\n              state.head.extra,\r\n              input,\r\n              next,\r\n              // extra field is limited to 65536 bytes\r\n              // - no need for additional size check\r\n              copy,\r\n              /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/\r\n              len\r\n            );\r\n            //zmemcpy(state.head.extra + len, next,\r\n            //        len + copy > state.head.extra_max ?\r\n            //        state.head.extra_max - len : copy);\r\n          }\r\n          if (state.flags & 0x0200) {\r\n            state.check = crc32(state.check, input, copy, next);\r\n          }\r\n          have -= copy;\r\n          next += copy;\r\n          state.length -= copy;\r\n        }\r\n        if (state.length) { break inf_leave; }\r\n      }\r\n      state.length = 0;\r\n      state.mode = NAME;\r\n      /* falls through */\r\n    case NAME:\r\n      if (state.flags & 0x0800) {\r\n        if (have === 0) { break inf_leave; }\r\n        copy = 0;\r\n        do {\r\n          // TODO: 2 or 1 bytes?\r\n          len = input[next + copy++];\r\n          /* use constant limit because in js we should not preallocate memory */\r\n          if (state.head && len &&\r\n              (state.length < 65536 /*state.head.name_max*/)) {\r\n            state.head.name += String.fromCharCode(len);\r\n          }\r\n        } while (len && copy < have);\r\n\r\n        if (state.flags & 0x0200) {\r\n          state.check = crc32(state.check, input, copy, next);\r\n        }\r\n        have -= copy;\r\n        next += copy;\r\n        if (len) { break inf_leave; }\r\n      }\r\n      else if (state.head) {\r\n        state.head.name = null;\r\n      }\r\n      state.length = 0;\r\n      state.mode = COMMENT;\r\n      /* falls through */\r\n    case COMMENT:\r\n      if (state.flags & 0x1000) {\r\n        if (have === 0) { break inf_leave; }\r\n        copy = 0;\r\n        do {\r\n          len = input[next + copy++];\r\n          /* use constant limit because in js we should not preallocate memory */\r\n          if (state.head && len &&\r\n              (state.length < 65536 /*state.head.comm_max*/)) {\r\n            state.head.comment += String.fromCharCode(len);\r\n          }\r\n        } while (len && copy < have);\r\n        if (state.flags & 0x0200) {\r\n          state.check = crc32(state.check, input, copy, next);\r\n        }\r\n        have -= copy;\r\n        next += copy;\r\n        if (len) { break inf_leave; }\r\n      }\r\n      else if (state.head) {\r\n        state.head.comment = null;\r\n      }\r\n      state.mode = HCRC;\r\n      /* falls through */\r\n    case HCRC:\r\n      if (state.flags & 0x0200) {\r\n        //=== NEEDBITS(16); */\r\n        while (bits < 16) {\r\n          if (have === 0) { break inf_leave; }\r\n          have--;\r\n          hold += input[next++] << bits;\r\n          bits += 8;\r\n        }\r\n        //===//\r\n        if (hold !== (state.check & 0xffff)) {\r\n          strm.msg = 'header crc mismatch';\r\n          state.mode = BAD;\r\n          break;\r\n        }\r\n        //=== INITBITS();\r\n        hold = 0;\r\n        bits = 0;\r\n        //===//\r\n      }\r\n      if (state.head) {\r\n        state.head.hcrc = ((state.flags >> 9) & 1);\r\n        state.head.done = true;\r\n      }\r\n      strm.adler = state.check = 0;\r\n      state.mode = TYPE;\r\n      break;\r\n    case DICTID:\r\n      //=== NEEDBITS(32); */\r\n      while (bits < 32) {\r\n        if (have === 0) { break inf_leave; }\r\n        have--;\r\n        hold += input[next++] << bits;\r\n        bits += 8;\r\n      }\r\n      //===//\r\n      strm.adler = state.check = zswap32(hold);\r\n      //=== INITBITS();\r\n      hold = 0;\r\n      bits = 0;\r\n      //===//\r\n      state.mode = DICT;\r\n      /* falls through */\r\n    case DICT:\r\n      if (state.havedict === 0) {\r\n        //--- RESTORE() ---\r\n        strm.next_out = put;\r\n        strm.avail_out = left;\r\n        strm.next_in = next;\r\n        strm.avail_in = have;\r\n        state.hold = hold;\r\n        state.bits = bits;\r\n        //---\r\n        return Z_NEED_DICT;\r\n      }\r\n      strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\r\n      state.mode = TYPE;\r\n      /* falls through */\r\n    case TYPE:\r\n      if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }\r\n      /* falls through */\r\n    case TYPEDO:\r\n      if (state.last) {\r\n        //--- BYTEBITS() ---//\r\n        hold >>>= bits & 7;\r\n        bits -= bits & 7;\r\n        //---//\r\n        state.mode = CHECK;\r\n        break;\r\n      }\r\n      //=== NEEDBITS(3); */\r\n      while (bits < 3) {\r\n        if (have === 0) { break inf_leave; }\r\n        have--;\r\n        hold += input[next++] << bits;\r\n        bits += 8;\r\n      }\r\n      //===//\r\n      state.last = (hold & 0x01)/*BITS(1)*/;\r\n      //--- DROPBITS(1) ---//\r\n      hold >>>= 1;\r\n      bits -= 1;\r\n      //---//\r\n\r\n      switch ((hold & 0x03)/*BITS(2)*/) {\r\n      case 0:                             /* stored block */\r\n        //Tracev((stderr, \"inflate:     stored block%s\\n\",\r\n        //        state.last ? \" (last)\" : \"\"));\r\n        state.mode = STORED;\r\n        break;\r\n      case 1:                             /* fixed block */\r\n        fixedtables(state);\r\n        //Tracev((stderr, \"inflate:     fixed codes block%s\\n\",\r\n        //        state.last ? \" (last)\" : \"\"));\r\n        state.mode = LEN_;             /* decode codes */\r\n        if (flush === Z_TREES) {\r\n          //--- DROPBITS(2) ---//\r\n          hold >>>= 2;\r\n          bits -= 2;\r\n          //---//\r\n          break inf_leave;\r\n        }\r\n        break;\r\n      case 2:                             /* dynamic block */\r\n        //Tracev((stderr, \"inflate:     dynamic codes block%s\\n\",\r\n        //        state.last ? \" (last)\" : \"\"));\r\n        state.mode = TABLE;\r\n        break;\r\n      case 3:\r\n        strm.msg = 'invalid block type';\r\n        state.mode = BAD;\r\n      }\r\n      //--- DROPBITS(2) ---//\r\n      hold >>>= 2;\r\n      bits -= 2;\r\n      //---//\r\n      break;\r\n    case STORED:\r\n      //--- BYTEBITS() ---// /* go to byte boundary */\r\n      hold >>>= bits & 7;\r\n      bits -= bits & 7;\r\n      //---//\r\n      //=== NEEDBITS(32); */\r\n      while (bits < 32) {\r\n        if (have === 0) { break inf_leave; }\r\n        have--;\r\n        hold += input[next++] << bits;\r\n        bits += 8;\r\n      }\r\n      //===//\r\n      if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {\r\n        strm.msg = 'invalid stored block lengths';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n      state.length = hold & 0xffff;\r\n      //Tracev((stderr, \"inflate:       stored length %u\\n\",\r\n      //        state.length));\r\n      //=== INITBITS();\r\n      hold = 0;\r\n      bits = 0;\r\n      //===//\r\n      state.mode = COPY_;\r\n      if (flush === Z_TREES) { break inf_leave; }\r\n      /* falls through */\r\n    case COPY_:\r\n      state.mode = COPY;\r\n      /* falls through */\r\n    case COPY:\r\n      copy = state.length;\r\n      if (copy) {\r\n        if (copy > have) { copy = have; }\r\n        if (copy > left) { copy = left; }\r\n        if (copy === 0) { break inf_leave; }\r\n        //--- zmemcpy(put, next, copy); ---\r\n        utils.arraySet(output, input, next, copy, put);\r\n        //---//\r\n        have -= copy;\r\n        next += copy;\r\n        left -= copy;\r\n        put += copy;\r\n        state.length -= copy;\r\n        break;\r\n      }\r\n      //Tracev((stderr, \"inflate:       stored end\\n\"));\r\n      state.mode = TYPE;\r\n      break;\r\n    case TABLE:\r\n      //=== NEEDBITS(14); */\r\n      while (bits < 14) {\r\n        if (have === 0) { break inf_leave; }\r\n        have--;\r\n        hold += input[next++] << bits;\r\n        bits += 8;\r\n      }\r\n      //===//\r\n      state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257;\r\n      //--- DROPBITS(5) ---//\r\n      hold >>>= 5;\r\n      bits -= 5;\r\n      //---//\r\n      state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1;\r\n      //--- DROPBITS(5) ---//\r\n      hold >>>= 5;\r\n      bits -= 5;\r\n      //---//\r\n      state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4;\r\n      //--- DROPBITS(4) ---//\r\n      hold >>>= 4;\r\n      bits -= 4;\r\n      //---//\r\n//#ifndef PKZIP_BUG_WORKAROUND\r\n      if (state.nlen > 286 || state.ndist > 30) {\r\n        strm.msg = 'too many length or distance symbols';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n//#endif\r\n      //Tracev((stderr, \"inflate:       table sizes ok\\n\"));\r\n      state.have = 0;\r\n      state.mode = LENLENS;\r\n      /* falls through */\r\n    case LENLENS:\r\n      while (state.have < state.ncode) {\r\n        //=== NEEDBITS(3);\r\n        while (bits < 3) {\r\n          if (have === 0) { break inf_leave; }\r\n          have--;\r\n          hold += input[next++] << bits;\r\n          bits += 8;\r\n        }\r\n        //===//\r\n        state.lens[order[state.have++]] = (hold & 0x07);//BITS(3);\r\n        //--- DROPBITS(3) ---//\r\n        hold >>>= 3;\r\n        bits -= 3;\r\n        //---//\r\n      }\r\n      while (state.have < 19) {\r\n        state.lens[order[state.have++]] = 0;\r\n      }\r\n      // We have separate tables & no pointers. 2 commented lines below not needed.\r\n      //state.next = state.codes;\r\n      //state.lencode = state.next;\r\n      // Switch to use dynamic table\r\n      state.lencode = state.lendyn;\r\n      state.lenbits = 7;\r\n\r\n      opts = { bits: state.lenbits };\r\n      ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);\r\n      state.lenbits = opts.bits;\r\n\r\n      if (ret) {\r\n        strm.msg = 'invalid code lengths set';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n      //Tracev((stderr, \"inflate:       code lengths ok\\n\"));\r\n      state.have = 0;\r\n      state.mode = CODELENS;\r\n      /* falls through */\r\n    case CODELENS:\r\n      while (state.have < state.nlen + state.ndist) {\r\n        for (;;) {\r\n          here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/\r\n          here_bits = here >>> 24;\r\n          here_op = (here >>> 16) & 0xff;\r\n          here_val = here & 0xffff;\r\n\r\n          if ((here_bits) <= bits) { break; }\r\n          //--- PULLBYTE() ---//\r\n          if (have === 0) { break inf_leave; }\r\n          have--;\r\n          hold += input[next++] << bits;\r\n          bits += 8;\r\n          //---//\r\n        }\r\n        if (here_val < 16) {\r\n          //--- DROPBITS(here.bits) ---//\r\n          hold >>>= here_bits;\r\n          bits -= here_bits;\r\n          //---//\r\n          state.lens[state.have++] = here_val;\r\n        }\r\n        else {\r\n          if (here_val === 16) {\r\n            //=== NEEDBITS(here.bits + 2);\r\n            n = here_bits + 2;\r\n            while (bits < n) {\r\n              if (have === 0) { break inf_leave; }\r\n              have--;\r\n              hold += input[next++] << bits;\r\n              bits += 8;\r\n            }\r\n            //===//\r\n            //--- DROPBITS(here.bits) ---//\r\n            hold >>>= here_bits;\r\n            bits -= here_bits;\r\n            //---//\r\n            if (state.have === 0) {\r\n              strm.msg = 'invalid bit length repeat';\r\n              state.mode = BAD;\r\n              break;\r\n            }\r\n            len = state.lens[state.have - 1];\r\n            copy = 3 + (hold & 0x03);//BITS(2);\r\n            //--- DROPBITS(2) ---//\r\n            hold >>>= 2;\r\n            bits -= 2;\r\n            //---//\r\n          }\r\n          else if (here_val === 17) {\r\n            //=== NEEDBITS(here.bits + 3);\r\n            n = here_bits + 3;\r\n            while (bits < n) {\r\n              if (have === 0) { break inf_leave; }\r\n              have--;\r\n              hold += input[next++] << bits;\r\n              bits += 8;\r\n            }\r\n            //===//\r\n            //--- DROPBITS(here.bits) ---//\r\n            hold >>>= here_bits;\r\n            bits -= here_bits;\r\n            //---//\r\n            len = 0;\r\n            copy = 3 + (hold & 0x07);//BITS(3);\r\n            //--- DROPBITS(3) ---//\r\n            hold >>>= 3;\r\n            bits -= 3;\r\n            //---//\r\n          }\r\n          else {\r\n            //=== NEEDBITS(here.bits + 7);\r\n            n = here_bits + 7;\r\n            while (bits < n) {\r\n              if (have === 0) { break inf_leave; }\r\n              have--;\r\n              hold += input[next++] << bits;\r\n              bits += 8;\r\n            }\r\n            //===//\r\n            //--- DROPBITS(here.bits) ---//\r\n            hold >>>= here_bits;\r\n            bits -= here_bits;\r\n            //---//\r\n            len = 0;\r\n            copy = 11 + (hold & 0x7f);//BITS(7);\r\n            //--- DROPBITS(7) ---//\r\n            hold >>>= 7;\r\n            bits -= 7;\r\n            //---//\r\n          }\r\n          if (state.have + copy > state.nlen + state.ndist) {\r\n            strm.msg = 'invalid bit length repeat';\r\n            state.mode = BAD;\r\n            break;\r\n          }\r\n          while (copy--) {\r\n            state.lens[state.have++] = len;\r\n          }\r\n        }\r\n      }\r\n\r\n      /* handle error breaks in while */\r\n      if (state.mode === BAD) { break; }\r\n\r\n      /* check for end-of-block code (better have one) */\r\n      if (state.lens[256] === 0) {\r\n        strm.msg = 'invalid code -- missing end-of-block';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n\r\n      /* build code tables -- note: do not change the lenbits or distbits\r\n         values here (9 and 6) without reading the comments in inftrees.h\r\n         concerning the ENOUGH constants, which depend on those values */\r\n      state.lenbits = 9;\r\n\r\n      opts = { bits: state.lenbits };\r\n      ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);\r\n      // We have separate tables & no pointers. 2 commented lines below not needed.\r\n      // state.next_index = opts.table_index;\r\n      state.lenbits = opts.bits;\r\n      // state.lencode = state.next;\r\n\r\n      if (ret) {\r\n        strm.msg = 'invalid literal/lengths set';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n\r\n      state.distbits = 6;\r\n      //state.distcode.copy(state.codes);\r\n      // Switch to use dynamic table\r\n      state.distcode = state.distdyn;\r\n      opts = { bits: state.distbits };\r\n      ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);\r\n      // We have separate tables & no pointers. 2 commented lines below not needed.\r\n      // state.next_index = opts.table_index;\r\n      state.distbits = opts.bits;\r\n      // state.distcode = state.next;\r\n\r\n      if (ret) {\r\n        strm.msg = 'invalid distances set';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n      //Tracev((stderr, 'inflate:       codes ok\\n'));\r\n      state.mode = LEN_;\r\n      if (flush === Z_TREES) { break inf_leave; }\r\n      /* falls through */\r\n    case LEN_:\r\n      state.mode = LEN;\r\n      /* falls through */\r\n    case LEN:\r\n      if (have >= 6 && left >= 258) {\r\n        //--- RESTORE() ---\r\n        strm.next_out = put;\r\n        strm.avail_out = left;\r\n        strm.next_in = next;\r\n        strm.avail_in = have;\r\n        state.hold = hold;\r\n        state.bits = bits;\r\n        //---\r\n        inflate_fast(strm, _out);\r\n        //--- LOAD() ---\r\n        put = strm.next_out;\r\n        output = strm.output;\r\n        left = strm.avail_out;\r\n        next = strm.next_in;\r\n        input = strm.input;\r\n        have = strm.avail_in;\r\n        hold = state.hold;\r\n        bits = state.bits;\r\n        //---\r\n\r\n        if (state.mode === TYPE) {\r\n          state.back = -1;\r\n        }\r\n        break;\r\n      }\r\n      state.back = 0;\r\n      for (;;) {\r\n        here = state.lencode[hold & ((1 << state.lenbits) - 1)];  /*BITS(state.lenbits)*/\r\n        here_bits = here >>> 24;\r\n        here_op = (here >>> 16) & 0xff;\r\n        here_val = here & 0xffff;\r\n\r\n        if (here_bits <= bits) { break; }\r\n        //--- PULLBYTE() ---//\r\n        if (have === 0) { break inf_leave; }\r\n        have--;\r\n        hold += input[next++] << bits;\r\n        bits += 8;\r\n        //---//\r\n      }\r\n      if (here_op && (here_op & 0xf0) === 0) {\r\n        last_bits = here_bits;\r\n        last_op = here_op;\r\n        last_val = here_val;\r\n        for (;;) {\r\n          here = state.lencode[last_val +\r\n                  ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\r\n          here_bits = here >>> 24;\r\n          here_op = (here >>> 16) & 0xff;\r\n          here_val = here & 0xffff;\r\n\r\n          if ((last_bits + here_bits) <= bits) { break; }\r\n          //--- PULLBYTE() ---//\r\n          if (have === 0) { break inf_leave; }\r\n          have--;\r\n          hold += input[next++] << bits;\r\n          bits += 8;\r\n          //---//\r\n        }\r\n        //--- DROPBITS(last.bits) ---//\r\n        hold >>>= last_bits;\r\n        bits -= last_bits;\r\n        //---//\r\n        state.back += last_bits;\r\n      }\r\n      //--- DROPBITS(here.bits) ---//\r\n      hold >>>= here_bits;\r\n      bits -= here_bits;\r\n      //---//\r\n      state.back += here_bits;\r\n      state.length = here_val;\r\n      if (here_op === 0) {\r\n        //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\r\n        //        \"inflate:         literal '%c'\\n\" :\r\n        //        \"inflate:         literal 0x%02x\\n\", here.val));\r\n        state.mode = LIT;\r\n        break;\r\n      }\r\n      if (here_op & 32) {\r\n        //Tracevv((stderr, \"inflate:         end of block\\n\"));\r\n        state.back = -1;\r\n        state.mode = TYPE;\r\n        break;\r\n      }\r\n      if (here_op & 64) {\r\n        strm.msg = 'invalid literal/length code';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n      state.extra = here_op & 15;\r\n      state.mode = LENEXT;\r\n      /* falls through */\r\n    case LENEXT:\r\n      if (state.extra) {\r\n        //=== NEEDBITS(state.extra);\r\n        n = state.extra;\r\n        while (bits < n) {\r\n          if (have === 0) { break inf_leave; }\r\n          have--;\r\n          hold += input[next++] << bits;\r\n          bits += 8;\r\n        }\r\n        //===//\r\n        state.length += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\r\n        //--- DROPBITS(state.extra) ---//\r\n        hold >>>= state.extra;\r\n        bits -= state.extra;\r\n        //---//\r\n        state.back += state.extra;\r\n      }\r\n      //Tracevv((stderr, \"inflate:         length %u\\n\", state.length));\r\n      state.was = state.length;\r\n      state.mode = DIST;\r\n      /* falls through */\r\n    case DIST:\r\n      for (;;) {\r\n        here = state.distcode[hold & ((1 << state.distbits) - 1)];/*BITS(state.distbits)*/\r\n        here_bits = here >>> 24;\r\n        here_op = (here >>> 16) & 0xff;\r\n        here_val = here & 0xffff;\r\n\r\n        if ((here_bits) <= bits) { break; }\r\n        //--- PULLBYTE() ---//\r\n        if (have === 0) { break inf_leave; }\r\n        have--;\r\n        hold += input[next++] << bits;\r\n        bits += 8;\r\n        //---//\r\n      }\r\n      if ((here_op & 0xf0) === 0) {\r\n        last_bits = here_bits;\r\n        last_op = here_op;\r\n        last_val = here_val;\r\n        for (;;) {\r\n          here = state.distcode[last_val +\r\n                  ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\r\n          here_bits = here >>> 24;\r\n          here_op = (here >>> 16) & 0xff;\r\n          here_val = here & 0xffff;\r\n\r\n          if ((last_bits + here_bits) <= bits) { break; }\r\n          //--- PULLBYTE() ---//\r\n          if (have === 0) { break inf_leave; }\r\n          have--;\r\n          hold += input[next++] << bits;\r\n          bits += 8;\r\n          //---//\r\n        }\r\n        //--- DROPBITS(last.bits) ---//\r\n        hold >>>= last_bits;\r\n        bits -= last_bits;\r\n        //---//\r\n        state.back += last_bits;\r\n      }\r\n      //--- DROPBITS(here.bits) ---//\r\n      hold >>>= here_bits;\r\n      bits -= here_bits;\r\n      //---//\r\n      state.back += here_bits;\r\n      if (here_op & 64) {\r\n        strm.msg = 'invalid distance code';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n      state.offset = here_val;\r\n      state.extra = (here_op) & 15;\r\n      state.mode = DISTEXT;\r\n      /* falls through */\r\n    case DISTEXT:\r\n      if (state.extra) {\r\n        //=== NEEDBITS(state.extra);\r\n        n = state.extra;\r\n        while (bits < n) {\r\n          if (have === 0) { break inf_leave; }\r\n          have--;\r\n          hold += input[next++] << bits;\r\n          bits += 8;\r\n        }\r\n        //===//\r\n        state.offset += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\r\n        //--- DROPBITS(state.extra) ---//\r\n        hold >>>= state.extra;\r\n        bits -= state.extra;\r\n        //---//\r\n        state.back += state.extra;\r\n      }\r\n//#ifdef INFLATE_STRICT\r\n      if (state.offset > state.dmax) {\r\n        strm.msg = 'invalid distance too far back';\r\n        state.mode = BAD;\r\n        break;\r\n      }\r\n//#endif\r\n      //Tracevv((stderr, \"inflate:         distance %u\\n\", state.offset));\r\n      state.mode = MATCH;\r\n      /* falls through */\r\n    case MATCH:\r\n      if (left === 0) { break inf_leave; }\r\n      copy = _out - left;\r\n      if (state.offset > copy) {         /* copy from window */\r\n        copy = state.offset - copy;\r\n        if (copy > state.whave) {\r\n          if (state.sane) {\r\n            strm.msg = 'invalid distance too far back';\r\n            state.mode = BAD;\r\n            break;\r\n          }\r\n// (!) This block is disabled in zlib defailts,\r\n// don't enable it for binary compatibility\r\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\r\n//          Trace((stderr, \"inflate.c too far\\n\"));\r\n//          copy -= state.whave;\r\n//          if (copy > state.length) { copy = state.length; }\r\n//          if (copy > left) { copy = left; }\r\n//          left -= copy;\r\n//          state.length -= copy;\r\n//          do {\r\n//            output[put++] = 0;\r\n//          } while (--copy);\r\n//          if (state.length === 0) { state.mode = LEN; }\r\n//          break;\r\n//#endif\r\n        }\r\n        if (copy > state.wnext) {\r\n          copy -= state.wnext;\r\n          from = state.wsize - copy;\r\n        }\r\n        else {\r\n          from = state.wnext - copy;\r\n        }\r\n        if (copy > state.length) { copy = state.length; }\r\n        from_source = state.window;\r\n      }\r\n      else {                              /* copy from output */\r\n        from_source = output;\r\n        from = put - state.offset;\r\n        copy = state.length;\r\n      }\r\n      if (copy > left) { copy = left; }\r\n      left -= copy;\r\n      state.length -= copy;\r\n      do {\r\n        output[put++] = from_source[from++];\r\n      } while (--copy);\r\n      if (state.length === 0) { state.mode = LEN; }\r\n      break;\r\n    case LIT:\r\n      if (left === 0) { break inf_leave; }\r\n      output[put++] = state.length;\r\n      left--;\r\n      state.mode = LEN;\r\n      break;\r\n    case CHECK:\r\n      if (state.wrap) {\r\n        //=== NEEDBITS(32);\r\n        while (bits < 32) {\r\n          if (have === 0) { break inf_leave; }\r\n          have--;\r\n          // Use '|' insdead of '+' to make sure that result is signed\r\n          hold |= input[next++] << bits;\r\n          bits += 8;\r\n        }\r\n        //===//\r\n        _out -= left;\r\n        strm.total_out += _out;\r\n        state.total += _out;\r\n        if (_out) {\r\n          strm.adler = state.check =\r\n              /*UPDATE(state.check, put - _out, _out);*/\r\n              (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));\r\n\r\n        }\r\n        _out = left;\r\n        // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too\r\n        if ((state.flags ? hold : zswap32(hold)) !== state.check) {\r\n          strm.msg = 'incorrect data check';\r\n          state.mode = BAD;\r\n          break;\r\n        }\r\n        //=== INITBITS();\r\n        hold = 0;\r\n        bits = 0;\r\n        //===//\r\n        //Tracev((stderr, \"inflate:   check matches trailer\\n\"));\r\n      }\r\n      state.mode = LENGTH;\r\n      /* falls through */\r\n    case LENGTH:\r\n      if (state.wrap && state.flags) {\r\n        //=== NEEDBITS(32);\r\n        while (bits < 32) {\r\n          if (have === 0) { break inf_leave; }\r\n          have--;\r\n          hold += input[next++] << bits;\r\n          bits += 8;\r\n        }\r\n        //===//\r\n        if (hold !== (state.total & 0xffffffff)) {\r\n          strm.msg = 'incorrect length check';\r\n          state.mode = BAD;\r\n          break;\r\n        }\r\n        //=== INITBITS();\r\n        hold = 0;\r\n        bits = 0;\r\n        //===//\r\n        //Tracev((stderr, \"inflate:   length matches trailer\\n\"));\r\n      }\r\n      state.mode = DONE;\r\n      /* falls through */\r\n    case DONE:\r\n      ret = Z_STREAM_END;\r\n      break inf_leave;\r\n    case BAD:\r\n      ret = Z_DATA_ERROR;\r\n      break inf_leave;\r\n    case MEM:\r\n      return Z_MEM_ERROR;\r\n    case SYNC:\r\n      /* falls through */\r\n    default:\r\n      return Z_STREAM_ERROR;\r\n    }\r\n  }\r\n\r\n  // inf_leave <- here is real place for \"goto inf_leave\", emulated via \"break inf_leave\"\r\n\r\n  /*\r\n     Return from inflate(), updating the total counts and the check value.\r\n     If there was no progress during the inflate() call, return a buffer\r\n     error.  Call updatewindow() to create and/or update the window state.\r\n     Note: a memory error from inflate() is non-recoverable.\r\n   */\r\n\r\n  //--- RESTORE() ---\r\n  strm.next_out = put;\r\n  strm.avail_out = left;\r\n  strm.next_in = next;\r\n  strm.avail_in = have;\r\n  state.hold = hold;\r\n  state.bits = bits;\r\n  //---\r\n\r\n  if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&\r\n                      (state.mode < CHECK || flush !== Z_FINISH))) {\r\n    if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {\r\n      state.mode = MEM;\r\n      return Z_MEM_ERROR;\r\n    }\r\n  }\r\n  _in -= strm.avail_in;\r\n  _out -= strm.avail_out;\r\n  strm.total_in += _in;\r\n  strm.total_out += _out;\r\n  state.total += _out;\r\n  if (state.wrap && _out) {\r\n    strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/\r\n      (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));\r\n  }\r\n  strm.data_type = state.bits + (state.last ? 64 : 0) +\r\n                    (state.mode === TYPE ? 128 : 0) +\r\n                    (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);\r\n  if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) {\r\n    ret = Z_BUF_ERROR;\r\n  }\r\n  return ret;\r\n}\r\n\r\nfunction inflateEnd(strm) {\r\n\r\n  if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) {\r\n    return Z_STREAM_ERROR;\r\n  }\r\n\r\n  var state = strm.state;\r\n  if (state.window) {\r\n    state.window = null;\r\n  }\r\n  strm.state = null;\r\n  return Z_OK;\r\n}\r\n\r\nfunction inflateGetHeader(strm, head) {\r\n  var state;\r\n\r\n  /* check state */\r\n  if (!strm || !strm.state) { return Z_STREAM_ERROR; }\r\n  state = strm.state;\r\n  if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; }\r\n\r\n  /* save header structure */\r\n  state.head = head;\r\n  head.done = false;\r\n  return Z_OK;\r\n}\r\n\r\nfunction inflateSetDictionary(strm, dictionary) {\r\n  var dictLength = dictionary.length;\r\n\r\n  var state;\r\n  var dictid;\r\n  var ret;\r\n\r\n  /* check state */\r\n  if (!strm /* == Z_NULL */ || !strm.state /* == Z_NULL */) { return Z_STREAM_ERROR; }\r\n  state = strm.state;\r\n\r\n  if (state.wrap !== 0 && state.mode !== DICT) {\r\n    return Z_STREAM_ERROR;\r\n  }\r\n\r\n  /* check for correct dictionary identifier */\r\n  if (state.mode === DICT) {\r\n    dictid = 1; /* adler32(0, null, 0)*/\r\n    /* dictid = adler32(dictid, dictionary, dictLength); */\r\n    dictid = adler32(dictid, dictionary, dictLength, 0);\r\n    if (dictid !== state.check) {\r\n      return Z_DATA_ERROR;\r\n    }\r\n  }\r\n  /* copy dictionary to window using updatewindow(), which will amend the\r\n   existing dictionary if appropriate */\r\n  ret = updatewindow(strm, dictionary, dictLength, dictLength);\r\n  if (ret) {\r\n    state.mode = MEM;\r\n    return Z_MEM_ERROR;\r\n  }\r\n  state.havedict = 1;\r\n  // Tracev((stderr, \"inflate:   dictionary set\\n\"));\r\n  return Z_OK;\r\n}\r\n\r\nexports.inflateReset = inflateReset;\r\nexports.inflateReset2 = inflateReset2;\r\nexports.inflateResetKeep = inflateResetKeep;\r\nexports.inflateInit = inflateInit;\r\nexports.inflateInit2 = inflateInit2;\r\nexports.inflate = inflate;\r\nexports.inflateEnd = inflateEnd;\r\nexports.inflateGetHeader = inflateGetHeader;\r\nexports.inflateSetDictionary = inflateSetDictionary;\r\nexports.inflateInfo = 'pako inflate (from Nodeca project)';\r\n\r\n/* Not implemented\r\nexports.inflateCopy = inflateCopy;\r\nexports.inflateGetDictionary = inflateGetDictionary;\r\nexports.inflateMark = inflateMark;\r\nexports.inflatePrime = inflatePrime;\r\nexports.inflateSync = inflateSync;\r\nexports.inflateSyncPoint = inflateSyncPoint;\r\nexports.inflateUndermine = inflateUndermine;\r\n*/\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/inflate.js\n// module id = 728\n// module chunks = 2","'use strict';\r\n\r\n\r\nvar utils = require('../utils/common');\r\n\r\nvar MAXBITS = 15;\r\nvar ENOUGH_LENS = 852;\r\nvar ENOUGH_DISTS = 592;\r\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\r\n\r\nvar CODES = 0;\r\nvar LENS = 1;\r\nvar DISTS = 2;\r\n\r\nvar lbase = [ /* Length codes 257..285 base */\r\n  3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,\r\n  35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0\r\n];\r\n\r\nvar lext = [ /* Length codes 257..285 extra */\r\n  16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,\r\n  19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78\r\n];\r\n\r\nvar dbase = [ /* Distance codes 0..29 base */\r\n  1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,\r\n  257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,\r\n  8193, 12289, 16385, 24577, 0, 0\r\n];\r\n\r\nvar dext = [ /* Distance codes 0..29 extra */\r\n  16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,\r\n  23, 23, 24, 24, 25, 25, 26, 26, 27, 27,\r\n  28, 28, 29, 29, 64, 64\r\n];\r\n\r\nmodule.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)\r\n{\r\n  var bits = opts.bits;\r\n      //here = opts.here; /* table entry for duplication */\r\n\r\n  var len = 0;               /* a code's length in bits */\r\n  var sym = 0;               /* index of code symbols */\r\n  var min = 0, max = 0;          /* minimum and maximum code lengths */\r\n  var root = 0;              /* number of index bits for root table */\r\n  var curr = 0;              /* number of index bits for current table */\r\n  var drop = 0;              /* code bits to drop for sub-table */\r\n  var left = 0;                   /* number of prefix codes available */\r\n  var used = 0;              /* code entries in table used */\r\n  var huff = 0;              /* Huffman code */\r\n  var incr;              /* for incrementing code, index */\r\n  var fill;              /* index for replicating entries */\r\n  var low;               /* low bits for current root entry */\r\n  var mask;              /* mask for low root bits */\r\n  var next;             /* next available space in table */\r\n  var base = null;     /* base value table to use */\r\n  var base_index = 0;\r\n//  var shoextra;    /* extra bits table to use */\r\n  var end;                    /* use base and extra for symbol > end */\r\n  var count = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1];    /* number of codes of each length */\r\n  var offs = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1];     /* offsets in table for each length */\r\n  var extra = null;\r\n  var extra_index = 0;\r\n\r\n  var here_bits, here_op, here_val;\r\n\r\n  /*\r\n   Process a set of code lengths to create a canonical Huffman code.  The\r\n   code lengths are lens[0..codes-1].  Each length corresponds to the\r\n   symbols 0..codes-1.  The Huffman code is generated by first sorting the\r\n   symbols by length from short to long, and retaining the symbol order\r\n   for codes with equal lengths.  Then the code starts with all zero bits\r\n   for the first code of the shortest length, and the codes are integer\r\n   increments for the same length, and zeros are appended as the length\r\n   increases.  For the deflate format, these bits are stored backwards\r\n   from their more natural integer increment ordering, and so when the\r\n   decoding tables are built in the large loop below, the integer codes\r\n   are incremented backwards.\r\n\r\n   This routine assumes, but does not check, that all of the entries in\r\n   lens[] are in the range 0..MAXBITS.  The caller must assure this.\r\n   1..MAXBITS is interpreted as that code length.  zero means that that\r\n   symbol does not occur in this code.\r\n\r\n   The codes are sorted by computing a count of codes for each length,\r\n   creating from that a table of starting indices for each length in the\r\n   sorted table, and then entering the symbols in order in the sorted\r\n   table.  The sorted table is work[], with that space being provided by\r\n   the caller.\r\n\r\n   The length counts are used for other purposes as well, i.e. finding\r\n   the minimum and maximum length codes, determining if there are any\r\n   codes at all, checking for a valid set of lengths, and looking ahead\r\n   at length counts to determine sub-table sizes when building the\r\n   decoding tables.\r\n   */\r\n\r\n  /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */\r\n  for (len = 0; len <= MAXBITS; len++) {\r\n    count[len] = 0;\r\n  }\r\n  for (sym = 0; sym < codes; sym++) {\r\n    count[lens[lens_index + sym]]++;\r\n  }\r\n\r\n  /* bound code lengths, force root to be within code lengths */\r\n  root = bits;\r\n  for (max = MAXBITS; max >= 1; max--) {\r\n    if (count[max] !== 0) { break; }\r\n  }\r\n  if (root > max) {\r\n    root = max;\r\n  }\r\n  if (max === 0) {                     /* no symbols to code at all */\r\n    //table.op[opts.table_index] = 64;  //here.op = (var char)64;    /* invalid code marker */\r\n    //table.bits[opts.table_index] = 1;   //here.bits = (var char)1;\r\n    //table.val[opts.table_index++] = 0;   //here.val = (var short)0;\r\n    table[table_index++] = (1 << 24) | (64 << 16) | 0;\r\n\r\n\r\n    //table.op[opts.table_index] = 64;\r\n    //table.bits[opts.table_index] = 1;\r\n    //table.val[opts.table_index++] = 0;\r\n    table[table_index++] = (1 << 24) | (64 << 16) | 0;\r\n\r\n    opts.bits = 1;\r\n    return 0;     /* no symbols, but wait for decoding to report error */\r\n  }\r\n  for (min = 1; min < max; min++) {\r\n    if (count[min] !== 0) { break; }\r\n  }\r\n  if (root < min) {\r\n    root = min;\r\n  }\r\n\r\n  /* check for an over-subscribed or incomplete set of lengths */\r\n  left = 1;\r\n  for (len = 1; len <= MAXBITS; len++) {\r\n    left <<= 1;\r\n    left -= count[len];\r\n    if (left < 0) {\r\n      return -1;\r\n    }        /* over-subscribed */\r\n  }\r\n  if (left > 0 && (type === CODES || max !== 1)) {\r\n    return -1;                      /* incomplete set */\r\n  }\r\n\r\n  /* generate offsets into symbol table for each length for sorting */\r\n  offs[1] = 0;\r\n  for (len = 1; len < MAXBITS; len++) {\r\n    offs[len + 1] = offs[len] + count[len];\r\n  }\r\n\r\n  /* sort symbols by length, by symbol order within each length */\r\n  for (sym = 0; sym < codes; sym++) {\r\n    if (lens[lens_index + sym] !== 0) {\r\n      work[offs[lens[lens_index + sym]]++] = sym;\r\n    }\r\n  }\r\n\r\n  /*\r\n   Create and fill in decoding tables.  In this loop, the table being\r\n   filled is at next and has curr index bits.  The code being used is huff\r\n   with length len.  That code is converted to an index by dropping drop\r\n   bits off of the bottom.  For codes where len is less than drop + curr,\r\n   those top drop + curr - len bits are incremented through all values to\r\n   fill the table with replicated entries.\r\n\r\n   root is the number of index bits for the root table.  When len exceeds\r\n   root, sub-tables are created pointed to by the root entry with an index\r\n   of the low root bits of huff.  This is saved in low to check for when a\r\n   new sub-table should be started.  drop is zero when the root table is\r\n   being filled, and drop is root when sub-tables are being filled.\r\n\r\n   When a new sub-table is needed, it is necessary to look ahead in the\r\n   code lengths to determine what size sub-table is needed.  The length\r\n   counts are used for this, and so count[] is decremented as codes are\r\n   entered in the tables.\r\n\r\n   used keeps track of how many table entries have been allocated from the\r\n   provided *table space.  It is checked for LENS and DIST tables against\r\n   the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in\r\n   the initial root table size constants.  See the comments in inftrees.h\r\n   for more information.\r\n\r\n   sym increments through all symbols, and the loop terminates when\r\n   all codes of length max, i.e. all codes, have been processed.  This\r\n   routine permits incomplete codes, so another loop after this one fills\r\n   in the rest of the decoding tables with invalid code markers.\r\n   */\r\n\r\n  /* set up for code type */\r\n  // poor man optimization - use if-else instead of switch,\r\n  // to avoid deopts in old v8\r\n  if (type === CODES) {\r\n    base = extra = work;    /* dummy value--not used */\r\n    end = 19;\r\n\r\n  } else if (type === LENS) {\r\n    base = lbase;\r\n    base_index -= 257;\r\n    extra = lext;\r\n    extra_index -= 257;\r\n    end = 256;\r\n\r\n  } else {                    /* DISTS */\r\n    base = dbase;\r\n    extra = dext;\r\n    end = -1;\r\n  }\r\n\r\n  /* initialize opts for loop */\r\n  huff = 0;                   /* starting code */\r\n  sym = 0;                    /* starting code symbol */\r\n  len = min;                  /* starting code length */\r\n  next = table_index;              /* current table to fill in */\r\n  curr = root;                /* current table index bits */\r\n  drop = 0;                   /* current bits to drop from code for index */\r\n  low = -1;                   /* trigger new sub-table when len > root */\r\n  used = 1 << root;          /* use root table entries */\r\n  mask = used - 1;            /* mask for comparing low */\r\n\r\n  /* check available table space */\r\n  if ((type === LENS && used > ENOUGH_LENS) ||\r\n    (type === DISTS && used > ENOUGH_DISTS)) {\r\n    return 1;\r\n  }\r\n\r\n  var i = 0;\r\n  /* process all codes and make table entries */\r\n  for (;;) {\r\n    i++;\r\n    /* create table entry */\r\n    here_bits = len - drop;\r\n    if (work[sym] < end) {\r\n      here_op = 0;\r\n      here_val = work[sym];\r\n    }\r\n    else if (work[sym] > end) {\r\n      here_op = extra[extra_index + work[sym]];\r\n      here_val = base[base_index + work[sym]];\r\n    }\r\n    else {\r\n      here_op = 32 + 64;         /* end of block */\r\n      here_val = 0;\r\n    }\r\n\r\n    /* replicate for those indices with low len bits equal to huff */\r\n    incr = 1 << (len - drop);\r\n    fill = 1 << curr;\r\n    min = fill;                 /* save offset to next table */\r\n    do {\r\n      fill -= incr;\r\n      table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val |0;\r\n    } while (fill !== 0);\r\n\r\n    /* backwards increment the len-bit code huff */\r\n    incr = 1 << (len - 1);\r\n    while (huff & incr) {\r\n      incr >>= 1;\r\n    }\r\n    if (incr !== 0) {\r\n      huff &= incr - 1;\r\n      huff += incr;\r\n    } else {\r\n      huff = 0;\r\n    }\r\n\r\n    /* go to next symbol, update count, len */\r\n    sym++;\r\n    if (--count[len] === 0) {\r\n      if (len === max) { break; }\r\n      len = lens[lens_index + work[sym]];\r\n    }\r\n\r\n    /* create new sub-table if needed */\r\n    if (len > root && (huff & mask) !== low) {\r\n      /* if first time, transition to sub-tables */\r\n      if (drop === 0) {\r\n        drop = root;\r\n      }\r\n\r\n      /* increment past last table */\r\n      next += min;            /* here min is 1 << curr */\r\n\r\n      /* determine length of next table */\r\n      curr = len - drop;\r\n      left = 1 << curr;\r\n      while (curr + drop < max) {\r\n        left -= count[curr + drop];\r\n        if (left <= 0) { break; }\r\n        curr++;\r\n        left <<= 1;\r\n      }\r\n\r\n      /* check for enough space */\r\n      used += 1 << curr;\r\n      if ((type === LENS && used > ENOUGH_LENS) ||\r\n        (type === DISTS && used > ENOUGH_DISTS)) {\r\n        return 1;\r\n      }\r\n\r\n      /* point entry in root table to sub-table */\r\n      low = huff & mask;\r\n      /*table.op[low] = curr;\r\n      table.bits[low] = root;\r\n      table.val[low] = next - opts.table_index;*/\r\n      table[low] = (root << 24) | (curr << 16) | (next - table_index) |0;\r\n    }\r\n  }\r\n\r\n  /* fill in remaining table entry if code is incomplete (guaranteed to have\r\n   at most one remaining entry, since if the code is incomplete, the\r\n   maximum code length that was allowed to get this far is one bit) */\r\n  if (huff !== 0) {\r\n    //table.op[next + huff] = 64;            /* invalid code marker */\r\n    //table.bits[next + huff] = len - drop;\r\n    //table.val[next + huff] = 0;\r\n    table[next + huff] = ((len - drop) << 24) | (64 << 16) |0;\r\n  }\r\n\r\n  /* set return parameters */\r\n  //opts.table_index += used;\r\n  opts.bits = root;\r\n  return 0;\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/inftrees.js\n// module id = 729\n// module chunks = 2","'use strict';\r\n\r\n\r\nvar utils = require('../utils/common');\r\n\r\n/* Public constants ==========================================================*/\r\n/* ===========================================================================*/\r\n\r\n\r\n//var Z_FILTERED          = 1;\r\n//var Z_HUFFMAN_ONLY      = 2;\r\n//var Z_RLE               = 3;\r\nvar Z_FIXED               = 4;\r\n//var Z_DEFAULT_STRATEGY  = 0;\r\n\r\n/* Possible values of the data_type field (though see inflate()) */\r\nvar Z_BINARY              = 0;\r\nvar Z_TEXT                = 1;\r\n//var Z_ASCII             = 1; // = Z_TEXT\r\nvar Z_UNKNOWN             = 2;\r\n\r\n/*============================================================================*/\r\n\r\n\r\nfunction zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }\r\n\r\n// From zutil.h\r\n\r\nvar STORED_BLOCK = 0;\r\nvar STATIC_TREES = 1;\r\nvar DYN_TREES    = 2;\r\n/* The three kinds of block type */\r\n\r\nvar MIN_MATCH    = 3;\r\nvar MAX_MATCH    = 258;\r\n/* The minimum and maximum match lengths */\r\n\r\n// From deflate.h\r\n/* ===========================================================================\r\n * Internal compression state.\r\n */\r\n\r\nvar LENGTH_CODES  = 29;\r\n/* number of length codes, not counting the special END_BLOCK code */\r\n\r\nvar LITERALS      = 256;\r\n/* number of literal bytes 0..255 */\r\n\r\nvar L_CODES       = LITERALS + 1 + LENGTH_CODES;\r\n/* number of Literal or Length codes, including the END_BLOCK code */\r\n\r\nvar D_CODES       = 30;\r\n/* number of distance codes */\r\n\r\nvar BL_CODES      = 19;\r\n/* number of codes used to transfer the bit lengths */\r\n\r\nvar HEAP_SIZE     = 2 * L_CODES + 1;\r\n/* maximum heap size */\r\n\r\nvar MAX_BITS      = 15;\r\n/* All codes must not exceed MAX_BITS bits */\r\n\r\nvar Buf_size      = 16;\r\n/* size of bit buffer in bi_buf */\r\n\r\n\r\n/* ===========================================================================\r\n * Constants\r\n */\r\n\r\nvar MAX_BL_BITS = 7;\r\n/* Bit length codes must not exceed MAX_BL_BITS bits */\r\n\r\nvar END_BLOCK   = 256;\r\n/* end of block literal code */\r\n\r\nvar REP_3_6     = 16;\r\n/* repeat previous bit length 3-6 times (2 bits of repeat count) */\r\n\r\nvar REPZ_3_10   = 17;\r\n/* repeat a zero length 3-10 times  (3 bits of repeat count) */\r\n\r\nvar REPZ_11_138 = 18;\r\n/* repeat a zero length 11-138 times  (7 bits of repeat count) */\r\n\r\n/* eslint-disable comma-spacing,array-bracket-spacing */\r\nvar extra_lbits =   /* extra bits for each length code */\r\n  [0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];\r\n\r\nvar extra_dbits =   /* extra bits for each distance code */\r\n  [0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];\r\n\r\nvar extra_blbits =  /* extra bits for each bit length code */\r\n  [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];\r\n\r\nvar bl_order =\r\n  [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];\r\n/* eslint-enable comma-spacing,array-bracket-spacing */\r\n\r\n/* The lengths of the bit length codes are sent in order of decreasing\r\n * probability, to avoid transmitting the lengths for unused bit length codes.\r\n */\r\n\r\n/* ===========================================================================\r\n * Local data. These are initialized only once.\r\n */\r\n\r\n// We pre-fill arrays with 0 to avoid uninitialized gaps\r\n\r\nvar DIST_CODE_LEN = 512; /* see definition of array dist_code below */\r\n\r\n// !!!! Use flat array insdead of structure, Freq = i*2, Len = i*2+1\r\nvar static_ltree  = new Array((L_CODES + 2) * 2);\r\nzero(static_ltree);\r\n/* The static literal tree. Since the bit lengths are imposed, there is no\r\n * need for the L_CODES extra codes used during heap construction. However\r\n * The codes 286 and 287 are needed to build a canonical tree (see _tr_init\r\n * below).\r\n */\r\n\r\nvar static_dtree  = new Array(D_CODES * 2);\r\nzero(static_dtree);\r\n/* The static distance tree. (Actually a trivial tree since all codes use\r\n * 5 bits.)\r\n */\r\n\r\nvar _dist_code    = new Array(DIST_CODE_LEN);\r\nzero(_dist_code);\r\n/* Distance codes. The first 256 values correspond to the distances\r\n * 3 .. 258, the last 256 values correspond to the top 8 bits of\r\n * the 15 bit distances.\r\n */\r\n\r\nvar _length_code  = new Array(MAX_MATCH - MIN_MATCH + 1);\r\nzero(_length_code);\r\n/* length code for each normalized match length (0 == MIN_MATCH) */\r\n\r\nvar base_length   = new Array(LENGTH_CODES);\r\nzero(base_length);\r\n/* First normalized length for each code (0 = MIN_MATCH) */\r\n\r\nvar base_dist     = new Array(D_CODES);\r\nzero(base_dist);\r\n/* First normalized distance for each code (0 = distance of 1) */\r\n\r\n\r\nfunction StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {\r\n\r\n  this.static_tree  = static_tree;  /* static tree or NULL */\r\n  this.extra_bits   = extra_bits;   /* extra bits for each code or NULL */\r\n  this.extra_base   = extra_base;   /* base index for extra_bits */\r\n  this.elems        = elems;        /* max number of elements in the tree */\r\n  this.max_length   = max_length;   /* max bit length for the codes */\r\n\r\n  // show if `static_tree` has data or dummy - needed for monomorphic objects\r\n  this.has_stree    = static_tree && static_tree.length;\r\n}\r\n\r\n\r\nvar static_l_desc;\r\nvar static_d_desc;\r\nvar static_bl_desc;\r\n\r\n\r\nfunction TreeDesc(dyn_tree, stat_desc) {\r\n  this.dyn_tree = dyn_tree;     /* the dynamic tree */\r\n  this.max_code = 0;            /* largest code with non zero frequency */\r\n  this.stat_desc = stat_desc;   /* the corresponding static tree */\r\n}\r\n\r\n\r\n\r\nfunction d_code(dist) {\r\n  return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Output a short LSB first on the stream.\r\n * IN assertion: there is enough room in pendingBuf.\r\n */\r\nfunction put_short(s, w) {\r\n//    put_byte(s, (uch)((w) & 0xff));\r\n//    put_byte(s, (uch)((ush)(w) >> 8));\r\n  s.pending_buf[s.pending++] = (w) & 0xff;\r\n  s.pending_buf[s.pending++] = (w >>> 8) & 0xff;\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Send a value on a given number of bits.\r\n * IN assertion: length <= 16 and value fits in length bits.\r\n */\r\nfunction send_bits(s, value, length) {\r\n  if (s.bi_valid > (Buf_size - length)) {\r\n    s.bi_buf |= (value << s.bi_valid) & 0xffff;\r\n    put_short(s, s.bi_buf);\r\n    s.bi_buf = value >> (Buf_size - s.bi_valid);\r\n    s.bi_valid += length - Buf_size;\r\n  } else {\r\n    s.bi_buf |= (value << s.bi_valid) & 0xffff;\r\n    s.bi_valid += length;\r\n  }\r\n}\r\n\r\n\r\nfunction send_code(s, c, tree) {\r\n  send_bits(s, tree[c * 2]/*.Code*/, tree[c * 2 + 1]/*.Len*/);\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Reverse the first len bits of a code, using straightforward code (a faster\r\n * method would use a table)\r\n * IN assertion: 1 <= len <= 15\r\n */\r\nfunction bi_reverse(code, len) {\r\n  var res = 0;\r\n  do {\r\n    res |= code & 1;\r\n    code >>>= 1;\r\n    res <<= 1;\r\n  } while (--len > 0);\r\n  return res >>> 1;\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Flush the bit buffer, keeping at most 7 bits in it.\r\n */\r\nfunction bi_flush(s) {\r\n  if (s.bi_valid === 16) {\r\n    put_short(s, s.bi_buf);\r\n    s.bi_buf = 0;\r\n    s.bi_valid = 0;\r\n\r\n  } else if (s.bi_valid >= 8) {\r\n    s.pending_buf[s.pending++] = s.bi_buf & 0xff;\r\n    s.bi_buf >>= 8;\r\n    s.bi_valid -= 8;\r\n  }\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Compute the optimal bit lengths for a tree and update the total bit length\r\n * for the current block.\r\n * IN assertion: the fields freq and dad are set, heap[heap_max] and\r\n *    above are the tree nodes sorted by increasing frequency.\r\n * OUT assertions: the field len is set to the optimal bit length, the\r\n *     array bl_count contains the frequencies for each bit length.\r\n *     The length opt_len is updated; static_len is also updated if stree is\r\n *     not null.\r\n */\r\nfunction gen_bitlen(s, desc)\r\n//    deflate_state *s;\r\n//    tree_desc *desc;    /* the tree descriptor */\r\n{\r\n  var tree            = desc.dyn_tree;\r\n  var max_code        = desc.max_code;\r\n  var stree           = desc.stat_desc.static_tree;\r\n  var has_stree       = desc.stat_desc.has_stree;\r\n  var extra           = desc.stat_desc.extra_bits;\r\n  var base            = desc.stat_desc.extra_base;\r\n  var max_length      = desc.stat_desc.max_length;\r\n  var h;              /* heap index */\r\n  var n, m;           /* iterate over the tree elements */\r\n  var bits;           /* bit length */\r\n  var xbits;          /* extra bits */\r\n  var f;              /* frequency */\r\n  var overflow = 0;   /* number of elements with bit length too large */\r\n\r\n  for (bits = 0; bits <= MAX_BITS; bits++) {\r\n    s.bl_count[bits] = 0;\r\n  }\r\n\r\n  /* In a first pass, compute the optimal bit lengths (which may\r\n   * overflow in the case of the bit length tree).\r\n   */\r\n  tree[s.heap[s.heap_max] * 2 + 1]/*.Len*/ = 0; /* root of the heap */\r\n\r\n  for (h = s.heap_max + 1; h < HEAP_SIZE; h++) {\r\n    n = s.heap[h];\r\n    bits = tree[tree[n * 2 + 1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1;\r\n    if (bits > max_length) {\r\n      bits = max_length;\r\n      overflow++;\r\n    }\r\n    tree[n * 2 + 1]/*.Len*/ = bits;\r\n    /* We overwrite tree[n].Dad which is no longer needed */\r\n\r\n    if (n > max_code) { continue; } /* not a leaf node */\r\n\r\n    s.bl_count[bits]++;\r\n    xbits = 0;\r\n    if (n >= base) {\r\n      xbits = extra[n - base];\r\n    }\r\n    f = tree[n * 2]/*.Freq*/;\r\n    s.opt_len += f * (bits + xbits);\r\n    if (has_stree) {\r\n      s.static_len += f * (stree[n * 2 + 1]/*.Len*/ + xbits);\r\n    }\r\n  }\r\n  if (overflow === 0) { return; }\r\n\r\n  // Trace((stderr,\"\\nbit length overflow\\n\"));\r\n  /* This happens for example on obj2 and pic of the Calgary corpus */\r\n\r\n  /* Find the first bit length which could increase: */\r\n  do {\r\n    bits = max_length - 1;\r\n    while (s.bl_count[bits] === 0) { bits--; }\r\n    s.bl_count[bits]--;      /* move one leaf down the tree */\r\n    s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */\r\n    s.bl_count[max_length]--;\r\n    /* The brother of the overflow item also moves one step up,\r\n     * but this does not affect bl_count[max_length]\r\n     */\r\n    overflow -= 2;\r\n  } while (overflow > 0);\r\n\r\n  /* Now recompute all bit lengths, scanning in increasing frequency.\r\n   * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all\r\n   * lengths instead of fixing only the wrong ones. This idea is taken\r\n   * from 'ar' written by Haruhiko Okumura.)\r\n   */\r\n  for (bits = max_length; bits !== 0; bits--) {\r\n    n = s.bl_count[bits];\r\n    while (n !== 0) {\r\n      m = s.heap[--h];\r\n      if (m > max_code) { continue; }\r\n      if (tree[m * 2 + 1]/*.Len*/ !== bits) {\r\n        // Trace((stderr,\"code %d bits %d->%d\\n\", m, tree[m].Len, bits));\r\n        s.opt_len += (bits - tree[m * 2 + 1]/*.Len*/) * tree[m * 2]/*.Freq*/;\r\n        tree[m * 2 + 1]/*.Len*/ = bits;\r\n      }\r\n      n--;\r\n    }\r\n  }\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Generate the codes for a given tree and bit counts (which need not be\r\n * optimal).\r\n * IN assertion: the array bl_count contains the bit length statistics for\r\n * the given tree and the field len is set for all tree elements.\r\n * OUT assertion: the field code is set for all tree elements of non\r\n *     zero code length.\r\n */\r\nfunction gen_codes(tree, max_code, bl_count)\r\n//    ct_data *tree;             /* the tree to decorate */\r\n//    int max_code;              /* largest code with non zero frequency */\r\n//    ushf *bl_count;            /* number of codes at each bit length */\r\n{\r\n  var next_code = new Array(MAX_BITS + 1); /* next code value for each bit length */\r\n  var code = 0;              /* running code value */\r\n  var bits;                  /* bit index */\r\n  var n;                     /* code index */\r\n\r\n  /* The distribution counts are first used to generate the code values\r\n   * without bit reversal.\r\n   */\r\n  for (bits = 1; bits <= MAX_BITS; bits++) {\r\n    next_code[bits] = code = (code + bl_count[bits - 1]) << 1;\r\n  }\r\n  /* Check that the bit counts in bl_count are consistent. The last code\r\n   * must be all ones.\r\n   */\r\n  //Assert (code + bl_count[MAX_BITS]-1 == (1<<MAX_BITS)-1,\r\n  //        \"inconsistent bit counts\");\r\n  //Tracev((stderr,\"\\ngen_codes: max_code %d \", max_code));\r\n\r\n  for (n = 0;  n <= max_code; n++) {\r\n    var len = tree[n * 2 + 1]/*.Len*/;\r\n    if (len === 0) { continue; }\r\n    /* Now reverse the bits */\r\n    tree[n * 2]/*.Code*/ = bi_reverse(next_code[len]++, len);\r\n\r\n    //Tracecv(tree != static_ltree, (stderr,\"\\nn %3d %c l %2d c %4x (%x) \",\r\n    //     n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1));\r\n  }\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Initialize the various 'constant' tables.\r\n */\r\nfunction tr_static_init() {\r\n  var n;        /* iterates over tree elements */\r\n  var bits;     /* bit counter */\r\n  var length;   /* length value */\r\n  var code;     /* code value */\r\n  var dist;     /* distance index */\r\n  var bl_count = new Array(MAX_BITS + 1);\r\n  /* number of codes at each bit length for an optimal tree */\r\n\r\n  // do check in _tr_init()\r\n  //if (static_init_done) return;\r\n\r\n  /* For some embedded targets, global variables are not initialized: */\r\n/*#ifdef NO_INIT_GLOBAL_POINTERS\r\n  static_l_desc.static_tree = static_ltree;\r\n  static_l_desc.extra_bits = extra_lbits;\r\n  static_d_desc.static_tree = static_dtree;\r\n  static_d_desc.extra_bits = extra_dbits;\r\n  static_bl_desc.extra_bits = extra_blbits;\r\n#endif*/\r\n\r\n  /* Initialize the mapping length (0..255) -> length code (0..28) */\r\n  length = 0;\r\n  for (code = 0; code < LENGTH_CODES - 1; code++) {\r\n    base_length[code] = length;\r\n    for (n = 0; n < (1 << extra_lbits[code]); n++) {\r\n      _length_code[length++] = code;\r\n    }\r\n  }\r\n  //Assert (length == 256, \"tr_static_init: length != 256\");\r\n  /* Note that the length 255 (match length 258) can be represented\r\n   * in two different ways: code 284 + 5 bits or code 285, so we\r\n   * overwrite length_code[255] to use the best encoding:\r\n   */\r\n  _length_code[length - 1] = code;\r\n\r\n  /* Initialize the mapping dist (0..32K) -> dist code (0..29) */\r\n  dist = 0;\r\n  for (code = 0; code < 16; code++) {\r\n    base_dist[code] = dist;\r\n    for (n = 0; n < (1 << extra_dbits[code]); n++) {\r\n      _dist_code[dist++] = code;\r\n    }\r\n  }\r\n  //Assert (dist == 256, \"tr_static_init: dist != 256\");\r\n  dist >>= 7; /* from now on, all distances are divided by 128 */\r\n  for (; code < D_CODES; code++) {\r\n    base_dist[code] = dist << 7;\r\n    for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) {\r\n      _dist_code[256 + dist++] = code;\r\n    }\r\n  }\r\n  //Assert (dist == 256, \"tr_static_init: 256+dist != 512\");\r\n\r\n  /* Construct the codes of the static literal tree */\r\n  for (bits = 0; bits <= MAX_BITS; bits++) {\r\n    bl_count[bits] = 0;\r\n  }\r\n\r\n  n = 0;\r\n  while (n <= 143) {\r\n    static_ltree[n * 2 + 1]/*.Len*/ = 8;\r\n    n++;\r\n    bl_count[8]++;\r\n  }\r\n  while (n <= 255) {\r\n    static_ltree[n * 2 + 1]/*.Len*/ = 9;\r\n    n++;\r\n    bl_count[9]++;\r\n  }\r\n  while (n <= 279) {\r\n    static_ltree[n * 2 + 1]/*.Len*/ = 7;\r\n    n++;\r\n    bl_count[7]++;\r\n  }\r\n  while (n <= 287) {\r\n    static_ltree[n * 2 + 1]/*.Len*/ = 8;\r\n    n++;\r\n    bl_count[8]++;\r\n  }\r\n  /* Codes 286 and 287 do not exist, but we must include them in the\r\n   * tree construction to get a canonical Huffman tree (longest code\r\n   * all ones)\r\n   */\r\n  gen_codes(static_ltree, L_CODES + 1, bl_count);\r\n\r\n  /* The static distance tree is trivial: */\r\n  for (n = 0; n < D_CODES; n++) {\r\n    static_dtree[n * 2 + 1]/*.Len*/ = 5;\r\n    static_dtree[n * 2]/*.Code*/ = bi_reverse(n, 5);\r\n  }\r\n\r\n  // Now data ready and we can init static trees\r\n  static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS + 1, L_CODES, MAX_BITS);\r\n  static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0,          D_CODES, MAX_BITS);\r\n  static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0,         BL_CODES, MAX_BL_BITS);\r\n\r\n  //static_init_done = true;\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Initialize a new block.\r\n */\r\nfunction init_block(s) {\r\n  var n; /* iterates over tree elements */\r\n\r\n  /* Initialize the trees. */\r\n  for (n = 0; n < L_CODES;  n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; }\r\n  for (n = 0; n < D_CODES;  n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; }\r\n  for (n = 0; n < BL_CODES; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; }\r\n\r\n  s.dyn_ltree[END_BLOCK * 2]/*.Freq*/ = 1;\r\n  s.opt_len = s.static_len = 0;\r\n  s.last_lit = s.matches = 0;\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Flush the bit buffer and align the output on a byte boundary\r\n */\r\nfunction bi_windup(s)\r\n{\r\n  if (s.bi_valid > 8) {\r\n    put_short(s, s.bi_buf);\r\n  } else if (s.bi_valid > 0) {\r\n    //put_byte(s, (Byte)s->bi_buf);\r\n    s.pending_buf[s.pending++] = s.bi_buf;\r\n  }\r\n  s.bi_buf = 0;\r\n  s.bi_valid = 0;\r\n}\r\n\r\n/* ===========================================================================\r\n * Copy a stored block, storing first the length and its\r\n * one's complement if requested.\r\n */\r\nfunction copy_block(s, buf, len, header)\r\n//DeflateState *s;\r\n//charf    *buf;    /* the input data */\r\n//unsigned len;     /* its length */\r\n//int      header;  /* true if block header must be written */\r\n{\r\n  bi_windup(s);        /* align on byte boundary */\r\n\r\n  if (header) {\r\n    put_short(s, len);\r\n    put_short(s, ~len);\r\n  }\r\n//  while (len--) {\r\n//    put_byte(s, *buf++);\r\n//  }\r\n  utils.arraySet(s.pending_buf, s.window, buf, len, s.pending);\r\n  s.pending += len;\r\n}\r\n\r\n/* ===========================================================================\r\n * Compares to subtrees, using the tree depth as tie breaker when\r\n * the subtrees have equal frequency. This minimizes the worst case length.\r\n */\r\nfunction smaller(tree, n, m, depth) {\r\n  var _n2 = n * 2;\r\n  var _m2 = m * 2;\r\n  return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ ||\r\n         (tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m]));\r\n}\r\n\r\n/* ===========================================================================\r\n * Restore the heap property by moving down the tree starting at node k,\r\n * exchanging a node with the smallest of its two sons if necessary, stopping\r\n * when the heap property is re-established (each father smaller than its\r\n * two sons).\r\n */\r\nfunction pqdownheap(s, tree, k)\r\n//    deflate_state *s;\r\n//    ct_data *tree;  /* the tree to restore */\r\n//    int k;               /* node to move down */\r\n{\r\n  var v = s.heap[k];\r\n  var j = k << 1;  /* left son of k */\r\n  while (j <= s.heap_len) {\r\n    /* Set j to the smallest of the two sons: */\r\n    if (j < s.heap_len &&\r\n      smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) {\r\n      j++;\r\n    }\r\n    /* Exit if v is smaller than both sons */\r\n    if (smaller(tree, v, s.heap[j], s.depth)) { break; }\r\n\r\n    /* Exchange v with the smallest son */\r\n    s.heap[k] = s.heap[j];\r\n    k = j;\r\n\r\n    /* And continue down the tree, setting j to the left son of k */\r\n    j <<= 1;\r\n  }\r\n  s.heap[k] = v;\r\n}\r\n\r\n\r\n// inlined manually\r\n// var SMALLEST = 1;\r\n\r\n/* ===========================================================================\r\n * Send the block data compressed using the given Huffman trees\r\n */\r\nfunction compress_block(s, ltree, dtree)\r\n//    deflate_state *s;\r\n//    const ct_data *ltree; /* literal tree */\r\n//    const ct_data *dtree; /* distance tree */\r\n{\r\n  var dist;           /* distance of matched string */\r\n  var lc;             /* match length or unmatched char (if dist == 0) */\r\n  var lx = 0;         /* running index in l_buf */\r\n  var code;           /* the code to send */\r\n  var extra;          /* number of extra bits to send */\r\n\r\n  if (s.last_lit !== 0) {\r\n    do {\r\n      dist = (s.pending_buf[s.d_buf + lx * 2] << 8) | (s.pending_buf[s.d_buf + lx * 2 + 1]);\r\n      lc = s.pending_buf[s.l_buf + lx];\r\n      lx++;\r\n\r\n      if (dist === 0) {\r\n        send_code(s, lc, ltree); /* send a literal byte */\r\n        //Tracecv(isgraph(lc), (stderr,\" '%c' \", lc));\r\n      } else {\r\n        /* Here, lc is the match length - MIN_MATCH */\r\n        code = _length_code[lc];\r\n        send_code(s, code + LITERALS + 1, ltree); /* send the length code */\r\n        extra = extra_lbits[code];\r\n        if (extra !== 0) {\r\n          lc -= base_length[code];\r\n          send_bits(s, lc, extra);       /* send the extra length bits */\r\n        }\r\n        dist--; /* dist is now the match distance - 1 */\r\n        code = d_code(dist);\r\n        //Assert (code < D_CODES, \"bad d_code\");\r\n\r\n        send_code(s, code, dtree);       /* send the distance code */\r\n        extra = extra_dbits[code];\r\n        if (extra !== 0) {\r\n          dist -= base_dist[code];\r\n          send_bits(s, dist, extra);   /* send the extra distance bits */\r\n        }\r\n      } /* literal or match pair ? */\r\n\r\n      /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */\r\n      //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,\r\n      //       \"pendingBuf overflow\");\r\n\r\n    } while (lx < s.last_lit);\r\n  }\r\n\r\n  send_code(s, END_BLOCK, ltree);\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Construct one Huffman tree and assigns the code bit strings and lengths.\r\n * Update the total bit length for the current block.\r\n * IN assertion: the field freq is set for all tree elements.\r\n * OUT assertions: the fields len and code are set to the optimal bit length\r\n *     and corresponding code. The length opt_len is updated; static_len is\r\n *     also updated if stree is not null. The field max_code is set.\r\n */\r\nfunction build_tree(s, desc)\r\n//    deflate_state *s;\r\n//    tree_desc *desc; /* the tree descriptor */\r\n{\r\n  var tree     = desc.dyn_tree;\r\n  var stree    = desc.stat_desc.static_tree;\r\n  var has_stree = desc.stat_desc.has_stree;\r\n  var elems    = desc.stat_desc.elems;\r\n  var n, m;          /* iterate over heap elements */\r\n  var max_code = -1; /* largest code with non zero frequency */\r\n  var node;          /* new node being created */\r\n\r\n  /* Construct the initial heap, with least frequent element in\r\n   * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].\r\n   * heap[0] is not used.\r\n   */\r\n  s.heap_len = 0;\r\n  s.heap_max = HEAP_SIZE;\r\n\r\n  for (n = 0; n < elems; n++) {\r\n    if (tree[n * 2]/*.Freq*/ !== 0) {\r\n      s.heap[++s.heap_len] = max_code = n;\r\n      s.depth[n] = 0;\r\n\r\n    } else {\r\n      tree[n * 2 + 1]/*.Len*/ = 0;\r\n    }\r\n  }\r\n\r\n  /* The pkzip format requires that at least one distance code exists,\r\n   * and that at least one bit should be sent even if there is only one\r\n   * possible code. So to avoid special checks later on we force at least\r\n   * two codes of non zero frequency.\r\n   */\r\n  while (s.heap_len < 2) {\r\n    node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);\r\n    tree[node * 2]/*.Freq*/ = 1;\r\n    s.depth[node] = 0;\r\n    s.opt_len--;\r\n\r\n    if (has_stree) {\r\n      s.static_len -= stree[node * 2 + 1]/*.Len*/;\r\n    }\r\n    /* node is 0 or 1 so it does not have extra bits */\r\n  }\r\n  desc.max_code = max_code;\r\n\r\n  /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,\r\n   * establish sub-heaps of increasing lengths:\r\n   */\r\n  for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); }\r\n\r\n  /* Construct the Huffman tree by repeatedly combining the least two\r\n   * frequent nodes.\r\n   */\r\n  node = elems;              /* next internal node of the tree */\r\n  do {\r\n    //pqremove(s, tree, n);  /* n = node of least frequency */\r\n    /*** pqremove ***/\r\n    n = s.heap[1/*SMALLEST*/];\r\n    s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--];\r\n    pqdownheap(s, tree, 1/*SMALLEST*/);\r\n    /***/\r\n\r\n    m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */\r\n\r\n    s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */\r\n    s.heap[--s.heap_max] = m;\r\n\r\n    /* Create a new node father of n and m */\r\n    tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/;\r\n    s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;\r\n    tree[n * 2 + 1]/*.Dad*/ = tree[m * 2 + 1]/*.Dad*/ = node;\r\n\r\n    /* and insert the new node in the heap */\r\n    s.heap[1/*SMALLEST*/] = node++;\r\n    pqdownheap(s, tree, 1/*SMALLEST*/);\r\n\r\n  } while (s.heap_len >= 2);\r\n\r\n  s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/];\r\n\r\n  /* At this point, the fields freq and dad are set. We can now\r\n   * generate the bit lengths.\r\n   */\r\n  gen_bitlen(s, desc);\r\n\r\n  /* The field len is now set, we can generate the bit codes */\r\n  gen_codes(tree, max_code, s.bl_count);\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Scan a literal or distance tree to determine the frequencies of the codes\r\n * in the bit length tree.\r\n */\r\nfunction scan_tree(s, tree, max_code)\r\n//    deflate_state *s;\r\n//    ct_data *tree;   /* the tree to be scanned */\r\n//    int max_code;    /* and its largest code of non zero frequency */\r\n{\r\n  var n;                     /* iterates over all tree elements */\r\n  var prevlen = -1;          /* last emitted length */\r\n  var curlen;                /* length of current code */\r\n\r\n  var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */\r\n\r\n  var count = 0;             /* repeat count of the current code */\r\n  var max_count = 7;         /* max repeat count */\r\n  var min_count = 4;         /* min repeat count */\r\n\r\n  if (nextlen === 0) {\r\n    max_count = 138;\r\n    min_count = 3;\r\n  }\r\n  tree[(max_code + 1) * 2 + 1]/*.Len*/ = 0xffff; /* guard */\r\n\r\n  for (n = 0; n <= max_code; n++) {\r\n    curlen = nextlen;\r\n    nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;\r\n\r\n    if (++count < max_count && curlen === nextlen) {\r\n      continue;\r\n\r\n    } else if (count < min_count) {\r\n      s.bl_tree[curlen * 2]/*.Freq*/ += count;\r\n\r\n    } else if (curlen !== 0) {\r\n\r\n      if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; }\r\n      s.bl_tree[REP_3_6 * 2]/*.Freq*/++;\r\n\r\n    } else if (count <= 10) {\r\n      s.bl_tree[REPZ_3_10 * 2]/*.Freq*/++;\r\n\r\n    } else {\r\n      s.bl_tree[REPZ_11_138 * 2]/*.Freq*/++;\r\n    }\r\n\r\n    count = 0;\r\n    prevlen = curlen;\r\n\r\n    if (nextlen === 0) {\r\n      max_count = 138;\r\n      min_count = 3;\r\n\r\n    } else if (curlen === nextlen) {\r\n      max_count = 6;\r\n      min_count = 3;\r\n\r\n    } else {\r\n      max_count = 7;\r\n      min_count = 4;\r\n    }\r\n  }\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Send a literal or distance tree in compressed form, using the codes in\r\n * bl_tree.\r\n */\r\nfunction send_tree(s, tree, max_code)\r\n//    deflate_state *s;\r\n//    ct_data *tree; /* the tree to be scanned */\r\n//    int max_code;       /* and its largest code of non zero frequency */\r\n{\r\n  var n;                     /* iterates over all tree elements */\r\n  var prevlen = -1;          /* last emitted length */\r\n  var curlen;                /* length of current code */\r\n\r\n  var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */\r\n\r\n  var count = 0;             /* repeat count of the current code */\r\n  var max_count = 7;         /* max repeat count */\r\n  var min_count = 4;         /* min repeat count */\r\n\r\n  /* tree[max_code+1].Len = -1; */  /* guard already set */\r\n  if (nextlen === 0) {\r\n    max_count = 138;\r\n    min_count = 3;\r\n  }\r\n\r\n  for (n = 0; n <= max_code; n++) {\r\n    curlen = nextlen;\r\n    nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;\r\n\r\n    if (++count < max_count && curlen === nextlen) {\r\n      continue;\r\n\r\n    } else if (count < min_count) {\r\n      do { send_code(s, curlen, s.bl_tree); } while (--count !== 0);\r\n\r\n    } else if (curlen !== 0) {\r\n      if (curlen !== prevlen) {\r\n        send_code(s, curlen, s.bl_tree);\r\n        count--;\r\n      }\r\n      //Assert(count >= 3 && count <= 6, \" 3_6?\");\r\n      send_code(s, REP_3_6, s.bl_tree);\r\n      send_bits(s, count - 3, 2);\r\n\r\n    } else if (count <= 10) {\r\n      send_code(s, REPZ_3_10, s.bl_tree);\r\n      send_bits(s, count - 3, 3);\r\n\r\n    } else {\r\n      send_code(s, REPZ_11_138, s.bl_tree);\r\n      send_bits(s, count - 11, 7);\r\n    }\r\n\r\n    count = 0;\r\n    prevlen = curlen;\r\n    if (nextlen === 0) {\r\n      max_count = 138;\r\n      min_count = 3;\r\n\r\n    } else if (curlen === nextlen) {\r\n      max_count = 6;\r\n      min_count = 3;\r\n\r\n    } else {\r\n      max_count = 7;\r\n      min_count = 4;\r\n    }\r\n  }\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Construct the Huffman tree for the bit lengths and return the index in\r\n * bl_order of the last bit length code to send.\r\n */\r\nfunction build_bl_tree(s) {\r\n  var max_blindex;  /* index of last bit length code of non zero freq */\r\n\r\n  /* Determine the bit length frequencies for literal and distance trees */\r\n  scan_tree(s, s.dyn_ltree, s.l_desc.max_code);\r\n  scan_tree(s, s.dyn_dtree, s.d_desc.max_code);\r\n\r\n  /* Build the bit length tree: */\r\n  build_tree(s, s.bl_desc);\r\n  /* opt_len now includes the length of the tree representations, except\r\n   * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.\r\n   */\r\n\r\n  /* Determine the number of bit length codes to send. The pkzip format\r\n   * requires that at least 4 bit length codes be sent. (appnote.txt says\r\n   * 3 but the actual value used is 4.)\r\n   */\r\n  for (max_blindex = BL_CODES - 1; max_blindex >= 3; max_blindex--) {\r\n    if (s.bl_tree[bl_order[max_blindex] * 2 + 1]/*.Len*/ !== 0) {\r\n      break;\r\n    }\r\n  }\r\n  /* Update opt_len to include the bit length tree and counts */\r\n  s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;\r\n  //Tracev((stderr, \"\\ndyn trees: dyn %ld, stat %ld\",\r\n  //        s->opt_len, s->static_len));\r\n\r\n  return max_blindex;\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Send the header for a block using dynamic Huffman trees: the counts, the\r\n * lengths of the bit length codes, the literal tree and the distance tree.\r\n * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.\r\n */\r\nfunction send_all_trees(s, lcodes, dcodes, blcodes)\r\n//    deflate_state *s;\r\n//    int lcodes, dcodes, blcodes; /* number of codes for each tree */\r\n{\r\n  var rank;                    /* index in bl_order */\r\n\r\n  //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, \"not enough codes\");\r\n  //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,\r\n  //        \"too many codes\");\r\n  //Tracev((stderr, \"\\nbl counts: \"));\r\n  send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */\r\n  send_bits(s, dcodes - 1,   5);\r\n  send_bits(s, blcodes - 4,  4); /* not -3 as stated in appnote.txt */\r\n  for (rank = 0; rank < blcodes; rank++) {\r\n    //Tracev((stderr, \"\\nbl code %2d \", bl_order[rank]));\r\n    send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1]/*.Len*/, 3);\r\n  }\r\n  //Tracev((stderr, \"\\nbl tree: sent %ld\", s->bits_sent));\r\n\r\n  send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */\r\n  //Tracev((stderr, \"\\nlit tree: sent %ld\", s->bits_sent));\r\n\r\n  send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */\r\n  //Tracev((stderr, \"\\ndist tree: sent %ld\", s->bits_sent));\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Check if the data type is TEXT or BINARY, using the following algorithm:\r\n * - TEXT if the two conditions below are satisfied:\r\n *    a) There are no non-portable control characters belonging to the\r\n *       \"black list\" (0..6, 14..25, 28..31).\r\n *    b) There is at least one printable character belonging to the\r\n *       \"white list\" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).\r\n * - BINARY otherwise.\r\n * - The following partially-portable control characters form a\r\n *   \"gray list\" that is ignored in this detection algorithm:\r\n *   (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).\r\n * IN assertion: the fields Freq of dyn_ltree are set.\r\n */\r\nfunction detect_data_type(s) {\r\n  /* black_mask is the bit mask of black-listed bytes\r\n   * set bits 0..6, 14..25, and 28..31\r\n   * 0xf3ffc07f = binary 11110011111111111100000001111111\r\n   */\r\n  var black_mask = 0xf3ffc07f;\r\n  var n;\r\n\r\n  /* Check for non-textual (\"black-listed\") bytes. */\r\n  for (n = 0; n <= 31; n++, black_mask >>>= 1) {\r\n    if ((black_mask & 1) && (s.dyn_ltree[n * 2]/*.Freq*/ !== 0)) {\r\n      return Z_BINARY;\r\n    }\r\n  }\r\n\r\n  /* Check for textual (\"white-listed\") bytes. */\r\n  if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 ||\r\n      s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) {\r\n    return Z_TEXT;\r\n  }\r\n  for (n = 32; n < LITERALS; n++) {\r\n    if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) {\r\n      return Z_TEXT;\r\n    }\r\n  }\r\n\r\n  /* There are no \"black-listed\" or \"white-listed\" bytes:\r\n   * this stream either is empty or has tolerated (\"gray-listed\") bytes only.\r\n   */\r\n  return Z_BINARY;\r\n}\r\n\r\n\r\nvar static_init_done = false;\r\n\r\n/* ===========================================================================\r\n * Initialize the tree data structures for a new zlib stream.\r\n */\r\nfunction _tr_init(s)\r\n{\r\n\r\n  if (!static_init_done) {\r\n    tr_static_init();\r\n    static_init_done = true;\r\n  }\r\n\r\n  s.l_desc  = new TreeDesc(s.dyn_ltree, static_l_desc);\r\n  s.d_desc  = new TreeDesc(s.dyn_dtree, static_d_desc);\r\n  s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);\r\n\r\n  s.bi_buf = 0;\r\n  s.bi_valid = 0;\r\n\r\n  /* Initialize the first block of the first file: */\r\n  init_block(s);\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Send a stored block\r\n */\r\nfunction _tr_stored_block(s, buf, stored_len, last)\r\n//DeflateState *s;\r\n//charf *buf;       /* input block */\r\n//ulg stored_len;   /* length of input block */\r\n//int last;         /* one if this is the last block for a file */\r\n{\r\n  send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3);    /* send block type */\r\n  copy_block(s, buf, stored_len, true); /* with header */\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Send one empty static block to give enough lookahead for inflate.\r\n * This takes 10 bits, of which 7 may remain in the bit buffer.\r\n */\r\nfunction _tr_align(s) {\r\n  send_bits(s, STATIC_TREES << 1, 3);\r\n  send_code(s, END_BLOCK, static_ltree);\r\n  bi_flush(s);\r\n}\r\n\r\n\r\n/* ===========================================================================\r\n * Determine the best encoding for the current block: dynamic trees, static\r\n * trees or store, and output the encoded block to the zip file.\r\n */\r\nfunction _tr_flush_block(s, buf, stored_len, last)\r\n//DeflateState *s;\r\n//charf *buf;       /* input block, or NULL if too old */\r\n//ulg stored_len;   /* length of input block */\r\n//int last;         /* one if this is the last block for a file */\r\n{\r\n  var opt_lenb, static_lenb;  /* opt_len and static_len in bytes */\r\n  var max_blindex = 0;        /* index of last bit length code of non zero freq */\r\n\r\n  /* Build the Huffman trees unless a stored block is forced */\r\n  if (s.level > 0) {\r\n\r\n    /* Check if the file is binary or text */\r\n    if (s.strm.data_type === Z_UNKNOWN) {\r\n      s.strm.data_type = detect_data_type(s);\r\n    }\r\n\r\n    /* Construct the literal and distance trees */\r\n    build_tree(s, s.l_desc);\r\n    // Tracev((stderr, \"\\nlit data: dyn %ld, stat %ld\", s->opt_len,\r\n    //        s->static_len));\r\n\r\n    build_tree(s, s.d_desc);\r\n    // Tracev((stderr, \"\\ndist data: dyn %ld, stat %ld\", s->opt_len,\r\n    //        s->static_len));\r\n    /* At this point, opt_len and static_len are the total bit lengths of\r\n     * the compressed block data, excluding the tree representations.\r\n     */\r\n\r\n    /* Build the bit length tree for the above two trees, and get the index\r\n     * in bl_order of the last bit length code to send.\r\n     */\r\n    max_blindex = build_bl_tree(s);\r\n\r\n    /* Determine the best encoding. Compute the block lengths in bytes. */\r\n    opt_lenb = (s.opt_len + 3 + 7) >>> 3;\r\n    static_lenb = (s.static_len + 3 + 7) >>> 3;\r\n\r\n    // Tracev((stderr, \"\\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u \",\r\n    //        opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,\r\n    //        s->last_lit));\r\n\r\n    if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; }\r\n\r\n  } else {\r\n    // Assert(buf != (char*)0, \"lost buf\");\r\n    opt_lenb = static_lenb = stored_len + 5; /* force a stored block */\r\n  }\r\n\r\n  if ((stored_len + 4 <= opt_lenb) && (buf !== -1)) {\r\n    /* 4: two words for the lengths */\r\n\r\n    /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.\r\n     * Otherwise we can't have processed more than WSIZE input bytes since\r\n     * the last block flush, because compression would have been\r\n     * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to\r\n     * transform a block into a stored block.\r\n     */\r\n    _tr_stored_block(s, buf, stored_len, last);\r\n\r\n  } else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {\r\n\r\n    send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);\r\n    compress_block(s, static_ltree, static_dtree);\r\n\r\n  } else {\r\n    send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3);\r\n    send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1);\r\n    compress_block(s, s.dyn_ltree, s.dyn_dtree);\r\n  }\r\n  // Assert (s->compressed_len == s->bits_sent, \"bad compressed size\");\r\n  /* The above check is made mod 2^32, for files larger than 512 MB\r\n   * and uLong implemented on 32 bits.\r\n   */\r\n  init_block(s);\r\n\r\n  if (last) {\r\n    bi_windup(s);\r\n  }\r\n  // Tracev((stderr,\"\\ncomprlen %lu(%lu) \", s->compressed_len>>3,\r\n  //       s->compressed_len-7*last));\r\n}\r\n\r\n/* ===========================================================================\r\n * Save the match info and tally the frequency counts. Return true if\r\n * the current block must be flushed.\r\n */\r\nfunction _tr_tally(s, dist, lc)\r\n//    deflate_state *s;\r\n//    unsigned dist;  /* distance of matched string */\r\n//    unsigned lc;    /* match length-MIN_MATCH or unmatched char (if dist==0) */\r\n{\r\n  //var out_length, in_length, dcode;\r\n\r\n  s.pending_buf[s.d_buf + s.last_lit * 2]     = (dist >>> 8) & 0xff;\r\n  s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff;\r\n\r\n  s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff;\r\n  s.last_lit++;\r\n\r\n  if (dist === 0) {\r\n    /* lc is the unmatched char */\r\n    s.dyn_ltree[lc * 2]/*.Freq*/++;\r\n  } else {\r\n    s.matches++;\r\n    /* Here, lc is the match length - MIN_MATCH */\r\n    dist--;             /* dist = match distance - 1 */\r\n    //Assert((ush)dist < (ush)MAX_DIST(s) &&\r\n    //       (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&\r\n    //       (ush)d_code(dist) < (ush)D_CODES,  \"_tr_tally: bad match\");\r\n\r\n    s.dyn_ltree[(_length_code[lc] + LITERALS + 1) * 2]/*.Freq*/++;\r\n    s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++;\r\n  }\r\n\r\n// (!) This block is disabled in zlib defailts,\r\n// don't enable it for binary compatibility\r\n\r\n//#ifdef TRUNCATE_BLOCK\r\n//  /* Try to guess if it is profitable to stop the current block here */\r\n//  if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {\r\n//    /* Compute an upper bound for the compressed length */\r\n//    out_length = s.last_lit*8;\r\n//    in_length = s.strstart - s.block_start;\r\n//\r\n//    for (dcode = 0; dcode < D_CODES; dcode++) {\r\n//      out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);\r\n//    }\r\n//    out_length >>>= 3;\r\n//    //Tracev((stderr,\"\\nlast_lit %u, in %ld, out ~%ld(%ld%%) \",\r\n//    //       s->last_lit, in_length, out_length,\r\n//    //       100L - out_length*100L/in_length));\r\n//    if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {\r\n//      return true;\r\n//    }\r\n//  }\r\n//#endif\r\n\r\n  return (s.last_lit === s.lit_bufsize - 1);\r\n  /* We avoid equality with lit_bufsize because of wraparound at 64K\r\n   * on 16 bit machines and because stored blocks are restricted to\r\n   * 64K-1 bytes.\r\n   */\r\n}\r\n\r\nexports._tr_init  = _tr_init;\r\nexports._tr_stored_block = _tr_stored_block;\r\nexports._tr_flush_block  = _tr_flush_block;\r\nexports._tr_tally = _tr_tally;\r\nexports._tr_align = _tr_align;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/pako/lib/zlib/trees.js\n// module id = 730\n// module chunks = 2","module.exports = require('./lib/_stream_duplex.js');\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/duplex-browser.js\n// module id = 733\n// module chunks = 2","// a passthrough stream.\r\n// basically just the most minimal sort of Transform stream.\r\n// Every written chunk gets output as-is.\r\n\r\n'use strict';\r\n\r\nmodule.exports = PassThrough;\r\n\r\nvar Transform = require('./_stream_transform');\r\n\r\n/*<replacement>*/\r\nvar util = require('core-util-is');\r\nutil.inherits = require('inherits');\r\n/*</replacement>*/\r\n\r\nutil.inherits(PassThrough, Transform);\r\n\r\nfunction PassThrough(options) {\r\n  if (!(this instanceof PassThrough)) return new PassThrough(options);\r\n\r\n  Transform.call(this, options);\r\n}\r\n\r\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\r\n  cb(null, chunk);\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/lib/_stream_passthrough.js\n// module id = 734\n// module chunks = 2","'use strict';\r\n\r\n/*<replacement>*/\r\n\r\nvar Buffer = require('safe-buffer').Buffer;\r\n/*</replacement>*/\r\n\r\nmodule.exports = BufferList;\r\n\r\nfunction BufferList() {\r\n  this.head = null;\r\n  this.tail = null;\r\n  this.length = 0;\r\n}\r\n\r\nBufferList.prototype.push = function (v) {\r\n  var entry = { data: v, next: null };\r\n  if (this.length > 0) this.tail.next = entry;else this.head = entry;\r\n  this.tail = entry;\r\n  ++this.length;\r\n};\r\n\r\nBufferList.prototype.unshift = function (v) {\r\n  var entry = { data: v, next: this.head };\r\n  if (this.length === 0) this.tail = entry;\r\n  this.head = entry;\r\n  ++this.length;\r\n};\r\n\r\nBufferList.prototype.shift = function () {\r\n  if (this.length === 0) return;\r\n  var ret = this.head.data;\r\n  if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\r\n  --this.length;\r\n  return ret;\r\n};\r\n\r\nBufferList.prototype.clear = function () {\r\n  this.head = this.tail = null;\r\n  this.length = 0;\r\n};\r\n\r\nBufferList.prototype.join = function (s) {\r\n  if (this.length === 0) return '';\r\n  var p = this.head;\r\n  var ret = '' + p.data;\r\n  while (p = p.next) {\r\n    ret += s + p.data;\r\n  }return ret;\r\n};\r\n\r\nBufferList.prototype.concat = function (n) {\r\n  if (this.length === 0) return Buffer.alloc(0);\r\n  if (this.length === 1) return this.head.data;\r\n  var ret = Buffer.allocUnsafe(n >>> 0);\r\n  var p = this.head;\r\n  var i = 0;\r\n  while (p) {\r\n    p.data.copy(ret, i);\r\n    i += p.data.length;\r\n    p = p.next;\r\n  }\r\n  return ret;\r\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/lib/internal/streams/BufferList.js\n// module id = 735\n// module chunks = 2","module.exports = require('./readable').PassThrough\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/passthrough.js\n// module id = 736\n// module chunks = 2","module.exports = require('./readable').Transform\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/transform.js\n// module id = 737\n// module chunks = 2","module.exports = require('./lib/_stream_writable.js');\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/readable-stream/writable-browser.js\n// module id = 738\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Subscriber_1 = require('./Subscriber');\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar InnerSubscriber = (function (_super) {\r\n    __extends(InnerSubscriber, _super);\r\n    function InnerSubscriber(parent, outerValue, outerIndex) {\r\n        _super.call(this);\r\n        this.parent = parent;\r\n        this.outerValue = outerValue;\r\n        this.outerIndex = outerIndex;\r\n        this.index = 0;\r\n    }\r\n    InnerSubscriber.prototype._next = function (value) {\r\n        this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);\r\n    };\r\n    InnerSubscriber.prototype._error = function (error) {\r\n        this.parent.notifyError(error, this);\r\n        this.unsubscribe();\r\n    };\r\n    InnerSubscriber.prototype._complete = function () {\r\n        this.parent.notifyComplete(this);\r\n        this.unsubscribe();\r\n    };\r\n    return InnerSubscriber;\r\n}(Subscriber_1.Subscriber));\r\nexports.InnerSubscriber = InnerSubscriber;\r\n//# sourceMappingURL=InnerSubscriber.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/InnerSubscriber.js\n// module id = 739\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Observable_1 = require('../Observable');\r\nvar ScalarObservable_1 = require('./ScalarObservable');\r\nvar EmptyObservable_1 = require('./EmptyObservable');\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @extends {Ignored}\r\n * @hide true\r\n */\r\nvar ArrayLikeObservable = (function (_super) {\r\n    __extends(ArrayLikeObservable, _super);\r\n    function ArrayLikeObservable(arrayLike, scheduler) {\r\n        _super.call(this);\r\n        this.arrayLike = arrayLike;\r\n        this.scheduler = scheduler;\r\n        if (!scheduler && arrayLike.length === 1) {\r\n            this._isScalar = true;\r\n            this.value = arrayLike[0];\r\n        }\r\n    }\r\n    ArrayLikeObservable.create = function (arrayLike, scheduler) {\r\n        var length = arrayLike.length;\r\n        if (length === 0) {\r\n            return new EmptyObservable_1.EmptyObservable();\r\n        }\r\n        else if (length === 1) {\r\n            return new ScalarObservable_1.ScalarObservable(arrayLike[0], scheduler);\r\n        }\r\n        else {\r\n            return new ArrayLikeObservable(arrayLike, scheduler);\r\n        }\r\n    };\r\n    ArrayLikeObservable.dispatch = function (state) {\r\n        var arrayLike = state.arrayLike, index = state.index, length = state.length, subscriber = state.subscriber;\r\n        if (subscriber.closed) {\r\n            return;\r\n        }\r\n        if (index >= length) {\r\n            subscriber.complete();\r\n            return;\r\n        }\r\n        subscriber.next(arrayLike[index]);\r\n        state.index = index + 1;\r\n        this.schedule(state);\r\n    };\r\n    ArrayLikeObservable.prototype._subscribe = function (subscriber) {\r\n        var index = 0;\r\n        var _a = this, arrayLike = _a.arrayLike, scheduler = _a.scheduler;\r\n        var length = arrayLike.length;\r\n        if (scheduler) {\r\n            return scheduler.schedule(ArrayLikeObservable.dispatch, 0, {\r\n                arrayLike: arrayLike, index: index, length: length, subscriber: subscriber\r\n            });\r\n        }\r\n        else {\r\n            for (var i = 0; i < length && !subscriber.closed; i++) {\r\n                subscriber.next(arrayLike[i]);\r\n            }\r\n            subscriber.complete();\r\n        }\r\n    };\r\n    return ArrayLikeObservable;\r\n}(Observable_1.Observable));\r\nexports.ArrayLikeObservable = ArrayLikeObservable;\r\n//# sourceMappingURL=ArrayLikeObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/ArrayLikeObservable.js\n// module id = 741\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar Observable_1 = require('../Observable');\r\nvar EmptyObservable_1 = require('./EmptyObservable');\r\nvar isArray_1 = require('../util/isArray');\r\nvar subscribeToResult_1 = require('../util/subscribeToResult');\r\nvar OuterSubscriber_1 = require('../OuterSubscriber');\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @extends {Ignored}\r\n * @hide true\r\n */\r\nvar ForkJoinObservable = (function (_super) {\r\n    __extends(ForkJoinObservable, _super);\r\n    function ForkJoinObservable(sources, resultSelector) {\r\n        _super.call(this);\r\n        this.sources = sources;\r\n        this.resultSelector = resultSelector;\r\n    }\r\n    /* tslint:enable:max-line-length */\r\n    /**\r\n     * @param sources\r\n     * @return {any}\r\n     * @static true\r\n     * @name forkJoin\r\n     * @owner Observable\r\n     */\r\n    ForkJoinObservable.create = function () {\r\n        var sources = [];\r\n        for (var _i = 0; _i < arguments.length; _i++) {\r\n            sources[_i - 0] = arguments[_i];\r\n        }\r\n        if (sources === null || arguments.length === 0) {\r\n            return new EmptyObservable_1.EmptyObservable();\r\n        }\r\n        var resultSelector = null;\r\n        if (typeof sources[sources.length - 1] === 'function') {\r\n            resultSelector = sources.pop();\r\n        }\r\n        // if the first and only other argument besides the resultSelector is an array\r\n        // assume it's been called with `forkJoin([obs1, obs2, obs3], resultSelector)`\r\n        if (sources.length === 1 && isArray_1.isArray(sources[0])) {\r\n            sources = sources[0];\r\n        }\r\n        if (sources.length === 0) {\r\n            return new EmptyObservable_1.EmptyObservable();\r\n        }\r\n        return new ForkJoinObservable(sources, resultSelector);\r\n    };\r\n    ForkJoinObservable.prototype._subscribe = function (subscriber) {\r\n        return new ForkJoinSubscriber(subscriber, this.sources, this.resultSelector);\r\n    };\r\n    return ForkJoinObservable;\r\n}(Observable_1.Observable));\r\nexports.ForkJoinObservable = ForkJoinObservable;\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @ignore\r\n * @extends {Ignored}\r\n */\r\nvar ForkJoinSubscriber = (function (_super) {\r\n    __extends(ForkJoinSubscriber, _super);\r\n    function ForkJoinSubscriber(destination, sources, resultSelector) {\r\n        _super.call(this, destination);\r\n        this.sources = sources;\r\n        this.resultSelector = resultSelector;\r\n        this.completed = 0;\r\n        this.haveValues = 0;\r\n        var len = sources.length;\r\n        this.total = len;\r\n        this.values = new Array(len);\r\n        for (var i = 0; i < len; i++) {\r\n            var source = sources[i];\r\n            var innerSubscription = subscribeToResult_1.subscribeToResult(this, source, null, i);\r\n            if (innerSubscription) {\r\n                innerSubscription.outerIndex = i;\r\n                this.add(innerSubscription);\r\n            }\r\n        }\r\n    }\r\n    ForkJoinSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\r\n        this.values[outerIndex] = innerValue;\r\n        if (!innerSub._hasValue) {\r\n            innerSub._hasValue = true;\r\n            this.haveValues++;\r\n        }\r\n    };\r\n    ForkJoinSubscriber.prototype.notifyComplete = function (innerSub) {\r\n        var destination = this.destination;\r\n        var _a = this, haveValues = _a.haveValues, resultSelector = _a.resultSelector, values = _a.values;\r\n        var len = values.length;\r\n        if (!innerSub._hasValue) {\r\n            destination.complete();\r\n            return;\r\n        }\r\n        this.completed++;\r\n        if (this.completed !== len) {\r\n            return;\r\n        }\r\n        if (haveValues === len) {\r\n            var value = resultSelector ? resultSelector.apply(this, values) : values;\r\n            destination.next(value);\r\n        }\r\n        destination.complete();\r\n    };\r\n    return ForkJoinSubscriber;\r\n}(OuterSubscriber_1.OuterSubscriber));\r\n//# sourceMappingURL=ForkJoinObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/ForkJoinObservable.js\n// module id = 742\n// module chunks = 2","\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar root_1 = require('../util/root');\r\nvar Observable_1 = require('../Observable');\r\nvar iterator_1 = require('../symbol/iterator');\r\n/**\r\n * We need this JSDoc comment for affecting ESDoc.\r\n * @extends {Ignored}\r\n * @hide true\r\n */\r\nvar IteratorObservable = (function (_super) {\r\n    __extends(IteratorObservable, _super);\r\n    function IteratorObservable(iterator, scheduler) {\r\n        _super.call(this);\r\n        this.scheduler = scheduler;\r\n        if (iterator == null) {\r\n            throw new Error('iterator cannot be null.');\r\n        }\r\n        this.iterator = getIterator(iterator);\r\n    }\r\n    IteratorObservable.create = function (iterator, scheduler) {\r\n        return new IteratorObservable(iterator, scheduler);\r\n    };\r\n    IteratorObservable.dispatch = function (state) {\r\n        var index = state.index, hasError = state.hasError, iterator = state.iterator, subscriber = state.subscriber;\r\n        if (hasError) {\r\n            subscriber.error(state.error);\r\n            return;\r\n        }\r\n        var result = iterator.next();\r\n        if (result.done) {\r\n            subscriber.complete();\r\n            return;\r\n        }\r\n        subscriber.next(result.value);\r\n        state.index = index + 1;\r\n        if (subscriber.closed) {\r\n            if (typeof iterator.return === 'function') {\r\n                iterator.return();\r\n            }\r\n            return;\r\n        }\r\n        this.schedule(state);\r\n    };\r\n    IteratorObservable.prototype._subscribe = function (subscriber) {\r\n        var index = 0;\r\n        var _a = this, iterator = _a.iterator, scheduler = _a.scheduler;\r\n        if (scheduler) {\r\n            return scheduler.schedule(IteratorObservable.dispatch, 0, {\r\n                index: index, iterator: iterator, subscriber: subscriber\r\n            });\r\n        }\r\n        else {\r\n            do {\r\n                var result = iterator.next();\r\n                if (result.done) {\r\n                    subscriber.complete();\r\n                    break;\r\n                }\r\n                else {\r\n                    subscriber.next(result.value);\r\n                }\r\n                if (subscriber.closed) {\r\n                    if (typeof iterator.return === 'function') {\r\n                        iterator.return();\r\n                    }\r\n                    break;\r\n                }\r\n            } while (true);\r\n        }\r\n    };\r\n    return IteratorObservable;\r\n}(Observable_1.Observable));\r\nexports.IteratorObservable = IteratorObservable;\r\nvar StringIterator = (function () {\r\n    function StringIterator(str, idx, len) {\r\n        if (idx === void 0) { idx = 0; }\r\n        if (len === void 0) { len = str.length; }\r\n        this.str = str;\r\n        this.idx = idx;\r\n        this.len = len;\r\n    }\r\n    StringIterator.prototype[iterator_1.$$iterator] = function () { return (this); };\r\n    StringIterator.prototype.next = function () {\r\n        return this.idx < this.len ? {\r\n            done: false,\r\n            value: this.str.charAt(this.idx++)\r\n        } : {\r\n            done: true,\r\n            value: undefined\r\n        };\r\n    };\r\n    return StringIterator;\r\n}());\r\nvar ArrayIterator = (function () {\r\n    function ArrayIterator(arr, idx, len) {\r\n        if (idx === void 0) { idx = 0; }\r\n        if (len === void 0) { len = toLength(arr); }\r\n        this.arr = arr;\r\n        this.idx = idx;\r\n        this.len = len;\r\n    }\r\n    ArrayIterator.prototype[iterator_1.$$iterator] = function () { return this; };\r\n    ArrayIterator.prototype.next = function () {\r\n        return this.idx < this.len ? {\r\n            done: false,\r\n            value: this.arr[this.idx++]\r\n        } : {\r\n            done: true,\r\n            value: undefined\r\n        };\r\n    };\r\n    return ArrayIterator;\r\n}());\r\nfunction getIterator(obj) {\r\n    var i = obj[iterator_1.$$iterator];\r\n    if (!i && typeof obj === 'string') {\r\n        return new StringIterator(obj);\r\n    }\r\n    if (!i && obj.length !== undefined) {\r\n        return new ArrayIterator(obj);\r\n    }\r\n    if (!i) {\r\n        throw new TypeError('object is not iterable');\r\n    }\r\n    return obj[iterator_1.$$iterator]();\r\n}\r\nvar maxSafeInteger = Math.pow(2, 53) - 1;\r\nfunction toLength(o) {\r\n    var len = +o.length;\r\n    if (isNaN(len)) {\r\n        return 0;\r\n    }\r\n    if (len === 0 || !numberIsFinite(len)) {\r\n        return len;\r\n    }\r\n    len = sign(len) * Math.floor(Math.abs(len));\r\n    if (len <= 0) {\r\n        return 0;\r\n    }\r\n    if (len > maxSafeInteger) {\r\n        return maxSafeInteger;\r\n    }\r\n    return len;\r\n}\r\nfunction numberIsFinite(value) {\r\n    return typeof value === 'number' && root_1.root.isFinite(value);\r\n}\r\nfunction sign(value) {\r\n    var valueAsNumber = +value;\r\n    if (valueAsNumber === 0) {\r\n        return valueAsNumber;\r\n    }\r\n    if (isNaN(valueAsNumber)) {\r\n        return valueAsNumber;\r\n    }\r\n    return valueAsNumber < 0 ? -1 : 1;\r\n}\r\n//# sourceMappingURL=IteratorObservable.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/observable/IteratorObservable.js\n// module id = 744\n// module chunks = 2","\"use strict\";\r\nvar Subscriber_1 = require('../Subscriber');\r\nvar rxSubscriber_1 = require('../symbol/rxSubscriber');\r\nvar Observer_1 = require('../Observer');\r\nfunction toSubscriber(nextOrObserver, error, complete) {\r\n    if (nextOrObserver) {\r\n        if (nextOrObserver instanceof Subscriber_1.Subscriber) {\r\n            return nextOrObserver;\r\n        }\r\n        if (nextOrObserver[rxSubscriber_1.$$rxSubscriber]) {\r\n            return nextOrObserver[rxSubscriber_1.$$rxSubscriber]();\r\n        }\r\n    }\r\n    if (!nextOrObserver && !error && !complete) {\r\n        return new Subscriber_1.Subscriber(Observer_1.empty);\r\n    }\r\n    return new Subscriber_1.Subscriber(nextOrObserver, error, complete);\r\n}\r\nexports.toSubscriber = toSubscriber;\r\n//# sourceMappingURL=toSubscriber.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/rxjs/util/toSubscriber.js\n// module id = 750\n// module chunks = 2","// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\nmodule.exports = Stream;\r\n\r\nvar EE = require('events').EventEmitter;\r\nvar inherits = require('inherits');\r\n\r\ninherits(Stream, EE);\r\nStream.Readable = require('readable-stream/readable.js');\r\nStream.Writable = require('readable-stream/writable.js');\r\nStream.Duplex = require('readable-stream/duplex.js');\r\nStream.Transform = require('readable-stream/transform.js');\r\nStream.PassThrough = require('readable-stream/passthrough.js');\r\n\r\n// Backwards-compat with node 0.4.x\r\nStream.Stream = Stream;\r\n\r\n\r\n\r\n// old-style streams.  Note that the pipe method (the only relevant\r\n// part of this class) is overridden in the Readable class.\r\n\r\nfunction Stream() {\r\n  EE.call(this);\r\n}\r\n\r\nStream.prototype.pipe = function(dest, options) {\r\n  var source = this;\r\n\r\n  function ondata(chunk) {\r\n    if (dest.writable) {\r\n      if (false === dest.write(chunk) && source.pause) {\r\n        source.pause();\r\n      }\r\n    }\r\n  }\r\n\r\n  source.on('data', ondata);\r\n\r\n  function ondrain() {\r\n    if (source.readable && source.resume) {\r\n      source.resume();\r\n    }\r\n  }\r\n\r\n  dest.on('drain', ondrain);\r\n\r\n  // If the 'end' option is not supplied, dest.end() will be called when\r\n  // source gets the 'end' or 'close' events.  Only dest.end() once.\r\n  if (!dest._isStdio && (!options || options.end !== false)) {\r\n    source.on('end', onend);\r\n    source.on('close', onclose);\r\n  }\r\n\r\n  var didOnEnd = false;\r\n  function onend() {\r\n    if (didOnEnd) return;\r\n    didOnEnd = true;\r\n\r\n    dest.end();\r\n  }\r\n\r\n\r\n  function onclose() {\r\n    if (didOnEnd) return;\r\n    didOnEnd = true;\r\n\r\n    if (typeof dest.destroy === 'function') dest.destroy();\r\n  }\r\n\r\n  // don't leave dangling pipes when there are errors.\r\n  function onerror(er) {\r\n    cleanup();\r\n    if (EE.listenerCount(this, 'error') === 0) {\r\n      throw er; // Unhandled stream error in pipe.\r\n    }\r\n  }\r\n\r\n  source.on('error', onerror);\r\n  dest.on('error', onerror);\r\n\r\n  // remove all the event listeners that were added.\r\n  function cleanup() {\r\n    source.removeListener('data', ondata);\r\n    dest.removeListener('drain', ondrain);\r\n\r\n    source.removeListener('end', onend);\r\n    source.removeListener('close', onclose);\r\n\r\n    source.removeListener('error', onerror);\r\n    dest.removeListener('error', onerror);\r\n\r\n    source.removeListener('end', cleanup);\r\n    source.removeListener('close', cleanup);\r\n\r\n    dest.removeListener('close', cleanup);\r\n  }\r\n\r\n  source.on('end', cleanup);\r\n  source.on('close', cleanup);\r\n\r\n  dest.on('close', cleanup);\r\n\r\n  dest.emit('pipe', source);\r\n\r\n  // Allow for unix-like usage: A.pipe(B).pipe(C)\r\n  return dest;\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/stream-browserify/index.js\n// module id = 751\n// module chunks = 2","\r\n/**\r\n * Module exports.\r\n */\r\n\r\nmodule.exports = deprecate;\r\n\r\n/**\r\n * Mark that a method should not be used.\r\n * Returns a modified function which warns once by default.\r\n *\r\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\r\n *\r\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\r\n * will throw an Error when invoked.\r\n *\r\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\r\n * will invoke `console.trace()` instead of `console.error()`.\r\n *\r\n * @param {Function} fn - the function to deprecate\r\n * @param {String} msg - the string to print to the console when `fn` is invoked\r\n * @returns {Function} a new \"deprecated\" version of `fn`\r\n * @api public\r\n */\r\n\r\nfunction deprecate (fn, msg) {\r\n  if (config('noDeprecation')) {\r\n    return fn;\r\n  }\r\n\r\n  var warned = false;\r\n  function deprecated() {\r\n    if (!warned) {\r\n      if (config('throwDeprecation')) {\r\n        throw new Error(msg);\r\n      } else if (config('traceDeprecation')) {\r\n        console.trace(msg);\r\n      } else {\r\n        console.warn(msg);\r\n      }\r\n      warned = true;\r\n    }\r\n    return fn.apply(this, arguments);\r\n  }\r\n\r\n  return deprecated;\r\n}\r\n\r\n/**\r\n * Checks `localStorage` for boolean values for the given `name`.\r\n *\r\n * @param {String} name\r\n * @returns {Boolean}\r\n * @api private\r\n */\r\n\r\nfunction config (name) {\r\n  // accessing global.localStorage can trigger a DOMException in sandboxed iframes\r\n  try {\r\n    if (!global.localStorage) return false;\r\n  } catch (_) {\r\n    return false;\r\n  }\r\n  var val = global.localStorage[name];\r\n  if (null == val) return false;\r\n  return String(val).toLowerCase() === 'true';\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/util-deprecate/browser.js\n// module id = 752\n// module chunks = 2","module.exports = function isBuffer(arg) {\r\n  return arg && typeof arg === 'object'\r\n    && typeof arg.copy === 'function'\r\n    && typeof arg.fill === 'function'\r\n    && typeof arg.readUInt8 === 'function';\r\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/util/support/isBufferBrowser.js\n// module id = 753\n// module chunks = 2","// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\nvar formatRegExp = /%[sdj%]/g;\r\nexports.format = function(f) {\r\n  if (!isString(f)) {\r\n    var objects = [];\r\n    for (var i = 0; i < arguments.length; i++) {\r\n      objects.push(inspect(arguments[i]));\r\n    }\r\n    return objects.join(' ');\r\n  }\r\n\r\n  var i = 1;\r\n  var args = arguments;\r\n  var len = args.length;\r\n  var str = String(f).replace(formatRegExp, function(x) {\r\n    if (x === '%%') return '%';\r\n    if (i >= len) return x;\r\n    switch (x) {\r\n      case '%s': return String(args[i++]);\r\n      case '%d': return Number(args[i++]);\r\n      case '%j':\r\n        try {\r\n          return JSON.stringify(args[i++]);\r\n        } catch (_) {\r\n          return '[Circular]';\r\n        }\r\n      default:\r\n        return x;\r\n    }\r\n  });\r\n  for (var x = args[i]; i < len; x = args[++i]) {\r\n    if (isNull(x) || !isObject(x)) {\r\n      str += ' ' + x;\r\n    } else {\r\n      str += ' ' + inspect(x);\r\n    }\r\n  }\r\n  return str;\r\n};\r\n\r\n\r\n// Mark that a method should not be used.\r\n// Returns a modified function which warns once by default.\r\n// If --no-deprecation is set, then it is a no-op.\r\nexports.deprecate = function(fn, msg) {\r\n  // Allow for deprecating things in the process of starting up.\r\n  if (isUndefined(global.process)) {\r\n    return function() {\r\n      return exports.deprecate(fn, msg).apply(this, arguments);\r\n    };\r\n  }\r\n\r\n  if (process.noDeprecation === true) {\r\n    return fn;\r\n  }\r\n\r\n  var warned = false;\r\n  function deprecated() {\r\n    if (!warned) {\r\n      if (process.throwDeprecation) {\r\n        throw new Error(msg);\r\n      } else if (process.traceDeprecation) {\r\n        console.trace(msg);\r\n      } else {\r\n        console.error(msg);\r\n      }\r\n      warned = true;\r\n    }\r\n    return fn.apply(this, arguments);\r\n  }\r\n\r\n  return deprecated;\r\n};\r\n\r\n\r\nvar debugs = {};\r\nvar debugEnviron;\r\nexports.debuglog = function(set) {\r\n  if (isUndefined(debugEnviron))\r\n    debugEnviron = process.env.NODE_DEBUG || '';\r\n  set = set.toUpperCase();\r\n  if (!debugs[set]) {\r\n    if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\r\n      var pid = process.pid;\r\n      debugs[set] = function() {\r\n        var msg = exports.format.apply(exports, arguments);\r\n        console.error('%s %d: %s', set, pid, msg);\r\n      };\r\n    } else {\r\n      debugs[set] = function() {};\r\n    }\r\n  }\r\n  return debugs[set];\r\n};\r\n\r\n\r\n/**\r\n * Echos the value of a value. Trys to print the value out\r\n * in the best way possible given the different types.\r\n *\r\n * @param {Object} obj The object to print out.\r\n * @param {Object} opts Optional options object that alters the output.\r\n */\r\n/* legacy: obj, showHidden, depth, colors*/\r\nfunction inspect(obj, opts) {\r\n  // default options\r\n  var ctx = {\r\n    seen: [],\r\n    stylize: stylizeNoColor\r\n  };\r\n  // legacy...\r\n  if (arguments.length >= 3) ctx.depth = arguments[2];\r\n  if (arguments.length >= 4) ctx.colors = arguments[3];\r\n  if (isBoolean(opts)) {\r\n    // legacy...\r\n    ctx.showHidden = opts;\r\n  } else if (opts) {\r\n    // got an \"options\" object\r\n    exports._extend(ctx, opts);\r\n  }\r\n  // set default options\r\n  if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\r\n  if (isUndefined(ctx.depth)) ctx.depth = 2;\r\n  if (isUndefined(ctx.colors)) ctx.colors = false;\r\n  if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\r\n  if (ctx.colors) ctx.stylize = stylizeWithColor;\r\n  return formatValue(ctx, obj, ctx.depth);\r\n}\r\nexports.inspect = inspect;\r\n\r\n\r\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\r\ninspect.colors = {\r\n  'bold' : [1, 22],\r\n  'italic' : [3, 23],\r\n  'underline' : [4, 24],\r\n  'inverse' : [7, 27],\r\n  'white' : [37, 39],\r\n  'grey' : [90, 39],\r\n  'black' : [30, 39],\r\n  'blue' : [34, 39],\r\n  'cyan' : [36, 39],\r\n  'green' : [32, 39],\r\n  'magenta' : [35, 39],\r\n  'red' : [31, 39],\r\n  'yellow' : [33, 39]\r\n};\r\n\r\n// Don't use 'blue' not visible on cmd.exe\r\ninspect.styles = {\r\n  'special': 'cyan',\r\n  'number': 'yellow',\r\n  'boolean': 'yellow',\r\n  'undefined': 'grey',\r\n  'null': 'bold',\r\n  'string': 'green',\r\n  'date': 'magenta',\r\n  // \"name\": intentionally not styling\r\n  'regexp': 'red'\r\n};\r\n\r\n\r\nfunction stylizeWithColor(str, styleType) {\r\n  var style = inspect.styles[styleType];\r\n\r\n  if (style) {\r\n    return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\r\n           '\\u001b[' + inspect.colors[style][1] + 'm';\r\n  } else {\r\n    return str;\r\n  }\r\n}\r\n\r\n\r\nfunction stylizeNoColor(str, styleType) {\r\n  return str;\r\n}\r\n\r\n\r\nfunction arrayToHash(array) {\r\n  var hash = {};\r\n\r\n  array.forEach(function(val, idx) {\r\n    hash[val] = true;\r\n  });\r\n\r\n  return hash;\r\n}\r\n\r\n\r\nfunction formatValue(ctx, value, recurseTimes) {\r\n  // Provide a hook for user-specified inspect functions.\r\n  // Check that value is an object with an inspect function on it\r\n  if (ctx.customInspect &&\r\n      value &&\r\n      isFunction(value.inspect) &&\r\n      // Filter out the util module, it's inspect function is special\r\n      value.inspect !== exports.inspect &&\r\n      // Also filter out any prototype objects using the circular check.\r\n      !(value.constructor && value.constructor.prototype === value)) {\r\n    var ret = value.inspect(recurseTimes, ctx);\r\n    if (!isString(ret)) {\r\n      ret = formatValue(ctx, ret, recurseTimes);\r\n    }\r\n    return ret;\r\n  }\r\n\r\n  // Primitive types cannot have properties\r\n  var primitive = formatPrimitive(ctx, value);\r\n  if (primitive) {\r\n    return primitive;\r\n  }\r\n\r\n  // Look up the keys of the object.\r\n  var keys = Object.keys(value);\r\n  var visibleKeys = arrayToHash(keys);\r\n\r\n  if (ctx.showHidden) {\r\n    keys = Object.getOwnPropertyNames(value);\r\n  }\r\n\r\n  // IE doesn't make error fields non-enumerable\r\n  // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\r\n  if (isError(value)\r\n      && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\r\n    return formatError(value);\r\n  }\r\n\r\n  // Some type of object without properties can be shortcutted.\r\n  if (keys.length === 0) {\r\n    if (isFunction(value)) {\r\n      var name = value.name ? ': ' + value.name : '';\r\n      return ctx.stylize('[Function' + name + ']', 'special');\r\n    }\r\n    if (isRegExp(value)) {\r\n      return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\r\n    }\r\n    if (isDate(value)) {\r\n      return ctx.stylize(Date.prototype.toString.call(value), 'date');\r\n    }\r\n    if (isError(value)) {\r\n      return formatError(value);\r\n    }\r\n  }\r\n\r\n  var base = '', array = false, braces = ['{', '}'];\r\n\r\n  // Make Array say that they are Array\r\n  if (isArray(value)) {\r\n    array = true;\r\n    braces = ['[', ']'];\r\n  }\r\n\r\n  // Make functions say that they are functions\r\n  if (isFunction(value)) {\r\n    var n = value.name ? ': ' + value.name : '';\r\n    base = ' [Function' + n + ']';\r\n  }\r\n\r\n  // Make RegExps say that they are RegExps\r\n  if (isRegExp(value)) {\r\n    base = ' ' + RegExp.prototype.toString.call(value);\r\n  }\r\n\r\n  // Make dates with properties first say the date\r\n  if (isDate(value)) {\r\n    base = ' ' + Date.prototype.toUTCString.call(value);\r\n  }\r\n\r\n  // Make error with message first say the error\r\n  if (isError(value)) {\r\n    base = ' ' + formatError(value);\r\n  }\r\n\r\n  if (keys.length === 0 && (!array || value.length == 0)) {\r\n    return braces[0] + base + braces[1];\r\n  }\r\n\r\n  if (recurseTimes < 0) {\r\n    if (isRegExp(value)) {\r\n      return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\r\n    } else {\r\n      return ctx.stylize('[Object]', 'special');\r\n    }\r\n  }\r\n\r\n  ctx.seen.push(value);\r\n\r\n  var output;\r\n  if (array) {\r\n    output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\r\n  } else {\r\n    output = keys.map(function(key) {\r\n      return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\r\n    });\r\n  }\r\n\r\n  ctx.seen.pop();\r\n\r\n  return reduceToSingleString(output, base, braces);\r\n}\r\n\r\n\r\nfunction formatPrimitive(ctx, value) {\r\n  if (isUndefined(value))\r\n    return ctx.stylize('undefined', 'undefined');\r\n  if (isString(value)) {\r\n    var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\r\n                                             .replace(/'/g, \"\\\\'\")\r\n                                             .replace(/\\\\\"/g, '\"') + '\\'';\r\n    return ctx.stylize(simple, 'string');\r\n  }\r\n  if (isNumber(value))\r\n    return ctx.stylize('' + value, 'number');\r\n  if (isBoolean(value))\r\n    return ctx.stylize('' + value, 'boolean');\r\n  // For some reason typeof null is \"object\", so special case here.\r\n  if (isNull(value))\r\n    return ctx.stylize('null', 'null');\r\n}\r\n\r\n\r\nfunction formatError(value) {\r\n  return '[' + Error.prototype.toString.call(value) + ']';\r\n}\r\n\r\n\r\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\r\n  var output = [];\r\n  for (var i = 0, l = value.length; i < l; ++i) {\r\n    if (hasOwnProperty(value, String(i))) {\r\n      output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\r\n          String(i), true));\r\n    } else {\r\n      output.push('');\r\n    }\r\n  }\r\n  keys.forEach(function(key) {\r\n    if (!key.match(/^\\d+$/)) {\r\n      output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\r\n          key, true));\r\n    }\r\n  });\r\n  return output;\r\n}\r\n\r\n\r\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\r\n  var name, str, desc;\r\n  desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\r\n  if (desc.get) {\r\n    if (desc.set) {\r\n      str = ctx.stylize('[Getter/Setter]', 'special');\r\n    } else {\r\n      str = ctx.stylize('[Getter]', 'special');\r\n    }\r\n  } else {\r\n    if (desc.set) {\r\n      str = ctx.stylize('[Setter]', 'special');\r\n    }\r\n  }\r\n  if (!hasOwnProperty(visibleKeys, key)) {\r\n    name = '[' + key + ']';\r\n  }\r\n  if (!str) {\r\n    if (ctx.seen.indexOf(desc.value) < 0) {\r\n      if (isNull(recurseTimes)) {\r\n        str = formatValue(ctx, desc.value, null);\r\n      } else {\r\n        str = formatValue(ctx, desc.value, recurseTimes - 1);\r\n      }\r\n      if (str.indexOf('\\n') > -1) {\r\n        if (array) {\r\n          str = str.split('\\n').map(function(line) {\r\n            return '  ' + line;\r\n          }).join('\\n').substr(2);\r\n        } else {\r\n          str = '\\n' + str.split('\\n').map(function(line) {\r\n            return '   ' + line;\r\n          }).join('\\n');\r\n        }\r\n      }\r\n    } else {\r\n      str = ctx.stylize('[Circular]', 'special');\r\n    }\r\n  }\r\n  if (isUndefined(name)) {\r\n    if (array && key.match(/^\\d+$/)) {\r\n      return str;\r\n    }\r\n    name = JSON.stringify('' + key);\r\n    if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\r\n      name = name.substr(1, name.length - 2);\r\n      name = ctx.stylize(name, 'name');\r\n    } else {\r\n      name = name.replace(/'/g, \"\\\\'\")\r\n                 .replace(/\\\\\"/g, '\"')\r\n                 .replace(/(^\"|\"$)/g, \"'\");\r\n      name = ctx.stylize(name, 'string');\r\n    }\r\n  }\r\n\r\n  return name + ': ' + str;\r\n}\r\n\r\n\r\nfunction reduceToSingleString(output, base, braces) {\r\n  var numLinesEst = 0;\r\n  var length = output.reduce(function(prev, cur) {\r\n    numLinesEst++;\r\n    if (cur.indexOf('\\n') >= 0) numLinesEst++;\r\n    return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\r\n  }, 0);\r\n\r\n  if (length > 60) {\r\n    return braces[0] +\r\n           (base === '' ? '' : base + '\\n ') +\r\n           ' ' +\r\n           output.join(',\\n  ') +\r\n           ' ' +\r\n           braces[1];\r\n  }\r\n\r\n  return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\r\n}\r\n\r\n\r\n// NOTE: These type checking functions intentionally don't use `instanceof`\r\n// because it is fragile and can be easily faked with `Object.create()`.\r\nfunction isArray(ar) {\r\n  return Array.isArray(ar);\r\n}\r\nexports.isArray = isArray;\r\n\r\nfunction isBoolean(arg) {\r\n  return typeof arg === 'boolean';\r\n}\r\nexports.isBoolean = isBoolean;\r\n\r\nfunction isNull(arg) {\r\n  return arg === null;\r\n}\r\nexports.isNull = isNull;\r\n\r\nfunction isNullOrUndefined(arg) {\r\n  return arg == null;\r\n}\r\nexports.isNullOrUndefined = isNullOrUndefined;\r\n\r\nfunction isNumber(arg) {\r\n  return typeof arg === 'number';\r\n}\r\nexports.isNumber = isNumber;\r\n\r\nfunction isString(arg) {\r\n  return typeof arg === 'string';\r\n}\r\nexports.isString = isString;\r\n\r\nfunction isSymbol(arg) {\r\n  return typeof arg === 'symbol';\r\n}\r\nexports.isSymbol = isSymbol;\r\n\r\nfunction isUndefined(arg) {\r\n  return arg === void 0;\r\n}\r\nexports.isUndefined = isUndefined;\r\n\r\nfunction isRegExp(re) {\r\n  return isObject(re) && objectToString(re) === '[object RegExp]';\r\n}\r\nexports.isRegExp = isRegExp;\r\n\r\nfunction isObject(arg) {\r\n  return typeof arg === 'object' && arg !== null;\r\n}\r\nexports.isObject = isObject;\r\n\r\nfunction isDate(d) {\r\n  return isObject(d) && objectToString(d) === '[object Date]';\r\n}\r\nexports.isDate = isDate;\r\n\r\nfunction isError(e) {\r\n  return isObject(e) &&\r\n      (objectToString(e) === '[object Error]' || e instanceof Error);\r\n}\r\nexports.isError = isError;\r\n\r\nfunction isFunction(arg) {\r\n  return typeof arg === 'function';\r\n}\r\nexports.isFunction = isFunction;\r\n\r\nfunction isPrimitive(arg) {\r\n  return arg === null ||\r\n         typeof arg === 'boolean' ||\r\n         typeof arg === 'number' ||\r\n         typeof arg === 'string' ||\r\n         typeof arg === 'symbol' ||  // ES6 symbol\r\n         typeof arg === 'undefined';\r\n}\r\nexports.isPrimitive = isPrimitive;\r\n\r\nexports.isBuffer = require('./support/isBuffer');\r\n\r\nfunction objectToString(o) {\r\n  return Object.prototype.toString.call(o);\r\n}\r\n\r\n\r\nfunction pad(n) {\r\n  return n < 10 ? '0' + n.toString(10) : n.toString(10);\r\n}\r\n\r\n\r\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\r\n              'Oct', 'Nov', 'Dec'];\r\n\r\n// 26 Feb 16:19:34\r\nfunction timestamp() {\r\n  var d = new Date();\r\n  var time = [pad(d.getHours()),\r\n              pad(d.getMinutes()),\r\n              pad(d.getSeconds())].join(':');\r\n  return [d.getDate(), months[d.getMonth()], time].join(' ');\r\n}\r\n\r\n\r\n// log is just a thin wrapper to console.log that prepends a timestamp\r\nexports.log = function() {\r\n  console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\r\n};\r\n\r\n\r\n/**\r\n * Inherit the prototype methods from one constructor into another.\r\n *\r\n * The Function.prototype.inherits from lang.js rewritten as a standalone\r\n * function (not on Function.prototype). NOTE: If this file is to be loaded\r\n * during bootstrapping this function needs to be rewritten using some native\r\n * functions as prototype setup using normal JavaScript does not work as\r\n * expected during bootstrapping (see mirror.js in r114903).\r\n *\r\n * @param {function} ctor Constructor function which needs to inherit the\r\n *     prototype.\r\n * @param {function} superCtor Constructor function to inherit prototype from.\r\n */\r\nexports.inherits = require('inherits');\r\n\r\nexports._extend = function(origin, add) {\r\n  // Don't do anything if add isn't an object\r\n  if (!add || !isObject(add)) return origin;\r\n\r\n  var keys = Object.keys(add);\r\n  var i = keys.length;\r\n  while (i--) {\r\n    origin[keys[i]] = add[keys[i]];\r\n  }\r\n  return origin;\r\n};\r\n\r\nfunction hasOwnProperty(obj, prop) {\r\n  return Object.prototype.hasOwnProperty.call(obj, prop);\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/util/util.js\n// module id = 754\n// module chunks = 2","module.exports = function(module) {\r\n\tif(!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tif(!module.children) module.children = [];\r\n\t\tObject.defineProperty(module, \"loaded\", {\r\n\t\t\tenumerable: true,\r\n\t\t\tconfigurable: false,\r\n\t\t\tget: function() { return module.l; }\r\n\t\t});\r\n\t\tObject.defineProperty(module, \"id\", {\r\n\t\t\tenumerable: true,\r\n\t\t\tconfigurable: false,\r\n\t\t\tget: function() { return module.i; }\r\n\t\t});\r\n\t\tmodule.webpackPolyfill = 1;\r\n\t}\r\n\treturn module;\r\n}\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/module.js\n// module id = 755\n// module chunks = 2","/* (ignored) */\n\n\n//////////////////\n// WEBPACK FOOTER\n// util (ignored)\n// module id = 756\n// module chunks = 2","// For vendors for example jQuery, Lodash, angular2-jwt just import them here unless you plan on\r\n// chunking vendors files for async loading. You would need to import the async loaded vendors\r\n// at the entry point of the async loaded file. Also see custom-typings.d.ts as you also need to\r\n// run `typings install x` where `x` is your module\r\n\r\n// Angular 2\r\nimport '@angular/platform-browser';\r\nimport '@angular/platform-browser-dynamic';\r\nimport '@angular/core';\r\nimport '@angular/common';\r\nimport '@angular/forms';\r\nimport '@angular/http';\r\nimport '@angular/router';\r\nimport '@angularclass/hmr';\r\n\r\n// RxJS\r\nimport 'rxjs/add/operator/map';\r\nimport 'rxjs/add/operator/mergeMap';\r\n\r\nimport 'jquery';\r\nimport 'tether';\r\nimport 'bootstrap';\r\nimport 'widgster';\r\nimport 'bootstrap-select';\r\nimport 'select2';\r\nimport 'pace';\r\n\r\nimport 'jquery-sparkline';\r\nimport 'jszip';\r\nimport 'messenger/build/js/messenger.js';\r\nimport \"assets/fileinput/fileinput.min.js\"\r\nimport \"assets/datapicker/bootstrap-material-datetimepicker.js\";\r\nimport \"assets/Semantic/semantic.js\";\r\n\r\n\r\nimport \"../node_modules/datatables.net/js/jquery.dataTables.js\";\r\nimport \"../node_modules/datatables.net-buttons/js/dataTables.buttons.js\";\r\nimport \"../node_modules/datatables.net-buttons/js/buttons.html5.js\";\r\nimport \"../node_modules/datatables.net-buttons/js/buttons.flash.js\";\r\nimport \"../node_modules/datatables.net-buttons/js/buttons.print.js\";\r\n\r\nif ('production' === ENV) {\r\n    // Production\r\n\r\n\r\n} else {\r\n    // Development\r\n\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// node_modules/angular2-template-loader!./~/angular-router-loader/src?loader=system&genDir=compiled/src/app&aot=false!./src/vendor.browser.ts"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1oIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACxicA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AChIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7dA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACz1TA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC/6HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACz7LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACtQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC15IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC9vDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/+dA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;AC9qEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxqDA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7EA;AACA;AACA;;;;;;;ACFA;AACA;AACA;AACA;AACA;;;;;;ACJA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnLA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACphMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACLA;AACA;AACA;AACA;;;;;;ACHA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/hBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1KA;AACA;AACA;AACA;AACA;AACA;;;;;;ACLA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzDA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC5FA;AACA;AACA;AACA;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACNA;AACA;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC5NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACtGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC3GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACpJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AChKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACtHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AChJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACtGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC5NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACt6BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrLA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;ACh9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACh6CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACz1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACt/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACt6BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9lLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC3osBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACtqCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACllFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACj/zBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjHA;AACA;;;;;;ACDA;AACA;AACA;AACA;;;;;;ACHA;AACA;AACA;AACA;AACA;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACPA;;;;;;ACAA;AACA;AACA;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3hBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC5PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AChOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC9zDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjgDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACjrCA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/DA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AClKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC9HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC3kBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnBA;;;;;;;;;;ACAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAEA;AACA;AAGA;AAAA;AACA;AAEA;;;;","sourceRoot":""}